InvokeAI/frontend/dist/assets/index.ae92a637.js

691 lines
1.2 MiB

function nq(e,t){for(var n=0;n<t.length;n++){const i=t[n];if(typeof i!="string"&&!Array.isArray(i)){for(const o in i)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(i,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>i[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&i(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerpolicy&&(s.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?s.credentials="include":o.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var jc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rq(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var E={exports:{}},lE={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 n="18.2.0",i=Symbol.for("react.element"),o=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),v=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),L=Symbol.iterator,D="@@iterator";function P(S){if(S===null||typeof S!="object")return null;var O=L&&S[L]||S[D];return typeof O=="function"?O:null}var I={current:null},F={transition:null},z={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},q={current:null},Y={},Q=null;function ie(S){Q=S}Y.setExtraStackFrame=function(S){Q=S},Y.getCurrentStack=null,Y.getStackAddendum=function(){var S="";Q&&(S+=Q);var O=Y.getCurrentStack;return O&&(S+=O()||""),S};var ae=!1,me=!1,ze=!1,te=!1,ee=!1,we={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:F,ReactCurrentOwner:q};we.ReactDebugCurrentFrame=Y,we.ReactCurrentActQueue=z;function ye(S){{for(var O=arguments.length,V=new Array(O>1?O-1:0),G=1;G<O;G++)V[G-1]=arguments[G];le("warn",S,V)}}function K(S){{for(var O=arguments.length,V=new Array(O>1?O-1:0),G=1;G<O;G++)V[G-1]=arguments[G];le("error",S,V)}}function le(S,O,V){{var G=we.ReactDebugCurrentFrame,se=G.getStackAddendum();se!==""&&(O+="%s",V=V.concat([se]));var Ue=V.map(function(Te){return String(Te)});Ue.unshift("Warning: "+O),Function.prototype.apply.call(console[S],console,Ue)}}var ge={};function pe(S,O){{var V=S.constructor,G=V&&(V.displayName||V.name)||"ReactClass",se=G+"."+O;if(ge[se])return;K("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.",O,G),ge[se]=!0}}var Ee={isMounted:function(S){return!1},enqueueForceUpdate:function(S,O,V){pe(S,"forceUpdate")},enqueueReplaceState:function(S,O,V,G){pe(S,"replaceState")},enqueueSetState:function(S,O,V,G){pe(S,"setState")}},Oe=Object.assign,Pe={};Object.freeze(Pe);function Xe(S,O,V){this.props=S,this.context=O,this.refs=Pe,this.updater=V||Ee}Xe.prototype.isReactComponent={},Xe.prototype.setState=function(S,O){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,O,"setState")},Xe.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};{var et={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)."]},at=function(S,O){Object.defineProperty(Xe.prototype,S,{get:function(){ye("%s(...) is deprecated in plain JavaScript React classes. %s",O[0],O[1])}})};for(var kt in et)et.hasOwnProperty(kt)&&at(kt,et[kt])}function He(){}He.prototype=Xe.prototype;function ot(S,O,V){this.props=S,this.context=O,this.refs=Pe,this.updater=V||Ee}var wt=ot.prototype=new He;wt.constructor=ot,Oe(wt,Xe.prototype),wt.isPureReactComponent=!0;function It(){var S={current:null};return Object.seal(S),S}var We=Array.isArray;function Vt(S){return We(S)}function Ce(S){{var O=typeof Symbol=="function"&&Symbol.toStringTag,V=O&&S[Symbol.toStringTag]||S.constructor.name||"Object";return V}}function nt(S){try{return Ct(S),!1}catch{return!0}}function Ct(S){return""+S}function rt(S){if(nt(S))return K("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ce(S)),Ct(S)}function sn(S,O,V){var G=S.displayName;if(G)return G;var se=O.displayName||O.name||"";return se!==""?V+"("+se+")":V}function On(S){return S.displayName||"Context"}function Tt(S){if(S==null)return null;if(typeof S.tag=="number"&&K("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 s:return"Fragment";case o:return"Portal";case p:return"Profiler";case l:return"StrictMode";case b:return"Suspense";case w:return"SuspenseList"}if(typeof S=="object")switch(S.$$typeof){case v:var O=S;return On(O)+".Consumer";case m:var V=S;return On(V._context)+".Provider";case g:return sn(S,S.render,"ForwardRef");case C:var G=S.displayName||null;return G!==null?G:Tt(S.type)||"Memo";case T:{var se=S,Ue=se._payload,Te=se._init;try{return Tt(Te(Ue))}catch{return null}}}return null}var ln=Object.prototype.hasOwnProperty,Mn={key:!0,ref:!0,__self:!0,__source:!0},yn,Ze,tt;tt={};function rn(S){if(ln.call(S,"ref")){var O=Object.getOwnPropertyDescriptor(S,"ref").get;if(O&&O.isReactWarning)return!1}return S.ref!==void 0}function Dt(S){if(ln.call(S,"key")){var O=Object.getOwnPropertyDescriptor(S,"key").get;if(O&&O.isReactWarning)return!1}return S.key!==void 0}function Ie(S,O){var V=function(){yn||(yn=!0,K("%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)",O))};V.isReactWarning=!0,Object.defineProperty(S,"key",{get:V,configurable:!0})}function Zt(S,O){var V=function(){Ze||(Ze=!0,K("%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)",O))};V.isReactWarning=!0,Object.defineProperty(S,"ref",{get:V,configurable:!0})}function Tn(S){if(typeof S.ref=="string"&&q.current&&S.__self&&q.current.stateNode!==S.__self){var O=Tt(q.current.type);tt[O]||(K('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',O,S.ref),tt[O]=!0)}}var Ge=function(S,O,V,G,se,Ue,Te){var Ye={$$typeof:i,type:S,key:O,ref:V,props:Te,_owner:Ue};return Ye._store={},Object.defineProperty(Ye._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ye,"_self",{configurable:!1,enumerable:!1,writable:!1,value:G}),Object.defineProperty(Ye,"_source",{configurable:!1,enumerable:!1,writable:!1,value:se}),Object.freeze&&(Object.freeze(Ye.props),Object.freeze(Ye)),Ye};function ut(S,O,V){var G,se={},Ue=null,Te=null,Ye=null,ft=null;if(O!=null){rn(O)&&(Te=O.ref,Tn(O)),Dt(O)&&(rt(O.key),Ue=""+O.key),Ye=O.__self===void 0?null:O.__self,ft=O.__source===void 0?null:O.__source;for(G in O)ln.call(O,G)&&!Mn.hasOwnProperty(G)&&(se[G]=O[G])}var Nt=arguments.length-2;if(Nt===1)se.children=V;else if(Nt>1){for(var $t=Array(Nt),xt=0;xt<Nt;xt++)$t[xt]=arguments[xt+2];Object.freeze&&Object.freeze($t),se.children=$t}if(S&&S.defaultProps){var Gt=S.defaultProps;for(G in Gt)se[G]===void 0&&(se[G]=Gt[G])}if(Ue||Te){var Lt=typeof S=="function"?S.displayName||S.name||"Unknown":S;Ue&&Ie(se,Lt),Te&&Zt(se,Lt)}return Ge(S,Ue,Te,Ye,ft,q.current,se)}function At(S,O){var V=Ge(S.type,O,S.ref,S._self,S._source,S._owner,S.props);return V}function gn(S,O,V){if(S==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+S+".");var G,se=Oe({},S.props),Ue=S.key,Te=S.ref,Ye=S._self,ft=S._source,Nt=S._owner;if(O!=null){rn(O)&&(Te=O.ref,Nt=q.current),Dt(O)&&(rt(O.key),Ue=""+O.key);var $t;S.type&&S.type.defaultProps&&($t=S.type.defaultProps);for(G in O)ln.call(O,G)&&!Mn.hasOwnProperty(G)&&(O[G]===void 0&&$t!==void 0?se[G]=$t[G]:se[G]=O[G])}var xt=arguments.length-2;if(xt===1)se.children=V;else if(xt>1){for(var Gt=Array(xt),Lt=0;Lt<xt;Lt++)Gt[Lt]=arguments[Lt+2];se.children=Gt}return Ge(S.type,Ue,Te,Ye,ft,Nt,se)}function en(S){return typeof S=="object"&&S!==null&&S.$$typeof===i}var Rn=".",Fn=":";function zr(S){var O=/[=:]/g,V={"=":"=0",":":"=2"},G=S.replace(O,function(se){return V[se]});return"$"+G}var Pn=!1,Ti=/\/+/g;function Vn(S){return S.replace(Ti,"$&/")}function kn(S,O){return typeof S=="object"&&S!==null&&S.key!=null?(rt(S.key),zr(""+S.key)):O.toString(36)}function Ri(S,O,V,G,se){var Ue=typeof S;(Ue==="undefined"||Ue==="boolean")&&(S=null);var Te=!1;if(S===null)Te=!0;else switch(Ue){case"string":case"number":Te=!0;break;case"object":switch(S.$$typeof){case i:case o:Te=!0}}if(Te){var Ye=S,ft=se(Ye),Nt=G===""?Rn+kn(Ye,0):G;if(Vt(ft)){var $t="";Nt!=null&&($t=Vn(Nt)+"/"),Ri(ft,O,$t,"",function(Pd){return Pd})}else ft!=null&&(en(ft)&&(ft.key&&(!Ye||Ye.key!==ft.key)&&rt(ft.key),ft=At(ft,V+(ft.key&&(!Ye||Ye.key!==ft.key)?Vn(""+ft.key)+"/":"")+Nt)),O.push(ft));return 1}var xt,Gt,Lt=0,jt=G===""?Rn:G+Fn;if(Vt(S))for(var Da=0;Da<S.length;Da++)xt=S[Da],Gt=jt+kn(xt,Da),Lt+=Ri(xt,O,V,Gt,se);else{var Mi=P(S);if(typeof Mi=="function"){var rs=S;Mi===rs.entries&&(Pn||ye("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Pn=!0);for(var Ju=Mi.call(rs),In,$a=0;!(In=Ju.next()).done;)xt=In.value,Gt=jt+kn(xt,$a++),Lt+=Ri(xt,O,V,Gt,se)}else if(Ue==="object"){var ks=String(S);throw new Error("Objects are not valid as a React child (found: "+(ks==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":ks)+"). If you meant to render a collection of children, use an array instead.")}}return Lt}function Er(S,O,V){if(S==null)return S;var G=[],se=0;return Ri(S,G,"","",function(Ue){return O.call(V,Ue,se++)}),G}function Wo(S){var O=0;return Er(S,function(){O++}),O}function Ss(S,O,V){Er(S,function(){O.apply(this,arguments)},V)}function ws(S){return Er(S,function(O){return O})||[]}function Go(S){if(!en(S))throw new Error("React.Children.only expected to receive a single React element child.");return S}function Yo(S){var O={$$typeof:v,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};O.Provider={$$typeof:m,_context:O};var V=!1,G=!1,se=!1;{var Ue={$$typeof:v,_context:O};Object.defineProperties(Ue,{Provider:{get:function(){return G||(G=!0,K("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),O.Provider},set:function(Te){O.Provider=Te}},_currentValue:{get:function(){return O._currentValue},set:function(Te){O._currentValue=Te}},_currentValue2:{get:function(){return O._currentValue2},set:function(Te){O._currentValue2=Te}},_threadCount:{get:function(){return O._threadCount},set:function(Te){O._threadCount=Te}},Consumer:{get:function(){return V||(V=!0,K("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),O.Consumer}},displayName:{get:function(){return O.displayName},set:function(Te){se||(ye("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",Te),se=!0)}}}),O.Consumer=Ue}return O._currentRenderer=null,O._currentRenderer2=null,O}var xr=-1,Yi=0,Ja=1,qi=2;function X(S){if(S._status===xr){var O=S._result,V=O();if(V.then(function(Ue){if(S._status===Yi||S._status===xr){var Te=S;Te._status=Ja,Te._result=Ue}},function(Ue){if(S._status===Yi||S._status===xr){var Te=S;Te._status=qi,Te._result=Ue}}),S._status===xr){var G=S;G._status=Yi,G._result=V}}if(S._status===Ja){var se=S._result;return se===void 0&&K(`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?`,se),"default"in se||K(`lazy: Expected the result of a dynamic import() call. Instead received: %s
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))`,se),se.default}else throw S._result}function Ve(S){var O={_status:xr,_result:S},V={$$typeof:T,_payload:O,_init:X};{var G,se;Object.defineProperties(V,{defaultProps:{configurable:!0,get:function(){return G},set:function(Ue){K("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=Ue,Object.defineProperty(V,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return se},set:function(Ue){K("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."),se=Ue,Object.defineProperty(V,"propTypes",{enumerable:!0})}}})}return V}function Qe(S){S!=null&&S.$$typeof===C?K("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof S!="function"?K("forwardRef requires a render function but was given %s.",S===null?"null":typeof S):S.length!==0&&S.length!==2&&K("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)&&K("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var O={$$typeof:g,render:S};{var V;Object.defineProperty(O,"displayName",{enumerable:!1,configurable:!0,get:function(){return V},set:function(G){V=G,!S.name&&!S.displayName&&(S.displayName=G)}})}return O}var _t;_t=Symbol.for("react.module.reference");function un(S){return!!(typeof S=="string"||typeof S=="function"||S===s||S===p||ee||S===l||S===b||S===w||te||S===R||ae||me||ze||typeof S=="object"&&S!==null&&(S.$$typeof===T||S.$$typeof===C||S.$$typeof===m||S.$$typeof===v||S.$$typeof===g||S.$$typeof===_t||S.getModuleId!==void 0))}function Cn(S,O){un(S)||K("memo: The first argument must be a component. Instead received: %s",S===null?"null":typeof S);var V={$$typeof:C,type:S,compare:O===void 0?null:O};{var G;Object.defineProperty(V,"displayName",{enumerable:!1,configurable:!0,get:function(){return G},set:function(se){G=se,!S.name&&!S.displayName&&(S.displayName=se)}})}return V}function st(){var S=I.current;return S===null&&K(`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 Kt(S){var O=st();if(S._context!==void 0){var V=S._context;V.Consumer===S?K("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&&K("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return O.useContext(S)}function Hn(S){var O=st();return O.useState(S)}function Un(S,O,V){var G=st();return G.useReducer(S,O,V)}function fn(S){var O=st();return O.useRef(S)}function Kr(S,O){var V=st();return V.useEffect(S,O)}function Aa(S,O){var V=st();return V.useInsertionEffect(S,O)}function qo(S,O){var V=st();return V.useLayoutEffect(S,O)}function ki(S,O){var V=st();return V.useCallback(S,O)}function wo(S,O){var V=st();return V.useMemo(S,O)}function Xu(S,O,V){var G=st();return G.useImperativeHandle(S,O,V)}function La(S,O){{var V=st();return V.useDebugValue(S,O)}}function cl(){var S=st();return S.useTransition()}function eo(S){var O=st();return O.useDeferredValue(S)}function tn(){var S=st();return S.useId()}function to(S,O,V){var G=st();return G.useSyncExternalStore(S,O,V)}var Ai=0,Zo,Cs,Ko,Ns,Es,Xo,Qo;function _s(){}_s.__reactDisabledLog=!0;function fl(){{if(Ai===0){Zo=console.log,Cs=console.info,Ko=console.warn,Ns=console.error,Es=console.group,Xo=console.groupCollapsed,Qo=console.groupEnd;var S={configurable:!0,enumerable:!0,value:_s,writable:!0};Object.defineProperties(console,{info:S,log:S,warn:S,error:S,group:S,groupCollapsed:S,groupEnd:S})}Ai++}}function dl(){{if(Ai--,Ai===0){var S={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Oe({},S,{value:Zo}),info:Oe({},S,{value:Cs}),warn:Oe({},S,{value:Ko}),error:Oe({},S,{value:Ns}),group:Oe({},S,{value:Es}),groupCollapsed:Oe({},S,{value:Xo}),groupEnd:Oe({},S,{value:Qo})})}Ai<0&&K("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Oa=we.ReactCurrentDispatcher,Gr;function Zi(S,O,V){{if(Gr===void 0)try{throw Error()}catch(se){var G=se.stack.trim().match(/\n( *(at )?)/);Gr=G&&G[1]||""}return`
`+Gr+S}}var Li=!1,Ki;{var Ts=typeof WeakMap=="function"?WeakMap:Map;Ki=new Ts}function Jo(S,O){if(!S||Li)return"";{var V=Ki.get(S);if(V!==void 0)return V}var G;Li=!0;var se=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ue;Ue=Oa.current,Oa.current=null,fl();try{if(O){var Te=function(){throw Error()};if(Object.defineProperty(Te.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Te,[])}catch(jt){G=jt}Reflect.construct(S,[],Te)}else{try{Te.call()}catch(jt){G=jt}S.call(Te.prototype)}}else{try{throw Error()}catch(jt){G=jt}S()}}catch(jt){if(jt&&G&&typeof jt.stack=="string"){for(var Ye=jt.stack.split(`
`),ft=G.stack.split(`
`),Nt=Ye.length-1,$t=ft.length-1;Nt>=1&&$t>=0&&Ye[Nt]!==ft[$t];)$t--;for(;Nt>=1&&$t>=0;Nt--,$t--)if(Ye[Nt]!==ft[$t]){if(Nt!==1||$t!==1)do if(Nt--,$t--,$t<0||Ye[Nt]!==ft[$t]){var xt=`
`+Ye[Nt].replace(" at new "," at ");return S.displayName&&xt.includes("<anonymous>")&&(xt=xt.replace("<anonymous>",S.displayName)),typeof S=="function"&&Ki.set(S,xt),xt}while(Nt>=1&&$t>=0);break}}}finally{Li=!1,Oa.current=Ue,dl(),Error.prepareStackTrace=se}var Gt=S?S.displayName||S.name:"",Lt=Gt?Zi(Gt):"";return typeof S=="function"&&Ki.set(S,Lt),Lt}function Rs(S,O,V){return Jo(S,!1)}function Jl(S){var O=S.prototype;return!!(O&&O.isReactComponent)}function Oi(S,O,V){if(S==null)return"";if(typeof S=="function")return Jo(S,Jl(S));if(typeof S=="string")return Zi(S);switch(S){case b:return Zi("Suspense");case w:return Zi("SuspenseList")}if(typeof S=="object")switch(S.$$typeof){case g:return Rs(S.render);case C:return Oi(S.type,O,V);case T:{var G=S,se=G._payload,Ue=G._init;try{return Oi(Ue(se),O,V)}catch{}}}return""}var es={},Xi=we.ReactDebugCurrentFrame;function Ma(S){if(S){var O=S._owner,V=Oi(S.type,S._source,O?O.type:null);Xi.setExtraStackFrame(V)}else Xi.setExtraStackFrame(null)}function pl(S,O,V,G,se){{var Ue=Function.call.bind(ln);for(var Te in S)if(Ue(S,Te)){var Ye=void 0;try{if(typeof S[Te]!="function"){var ft=Error((G||"React class")+": "+V+" type `"+Te+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof S[Te]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ft.name="Invariant Violation",ft}Ye=S[Te](O,Te,G,V,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Nt){Ye=Nt}Ye&&!(Ye instanceof Error)&&(Ma(se),K("%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,Te,typeof Ye),Ma(null)),Ye instanceof Error&&!(Ye.message in es)&&(es[Ye.message]=!0,Ma(se),K("Failed %s type: %s",V,Ye.message),Ma(null))}}}function dn(S){if(S){var O=S._owner,V=Oi(S.type,S._source,O?O.type:null);ie(V)}else ie(null)}var Pa;Pa=!1;function ts(){if(q.current){var S=Tt(q.current.type);if(S)return`
Check the render method of \``+S+"`."}return""}function Wt(S){if(S!==void 0){var O=S.fileName.replace(/^.*[\\\/]/,""),V=S.lineNumber;return`
Check your code at `+O+":"+V+"."}return""}function ml(S){return S!=null?Wt(S.__source):""}var _r={};function no(S){var O=ts();if(!O){var V=typeof S=="string"?S:S.displayName||S.name;V&&(O=`
Check the top-level render call using <`+V+">.")}return O}function oa(S,O){if(!(!S._store||S._store.validated||S.key!=null)){S._store.validated=!0;var V=no(O);if(!_r[V]){_r[V]=!0;var G="";S&&S._owner&&S._owner!==q.current&&(G=" It was passed a child from "+Tt(S._owner.type)+"."),dn(S),K('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),dn(null)}}}function Co(S,O){if(typeof S=="object"){if(Vt(S))for(var V=0;V<S.length;V++){var G=S[V];en(G)&&oa(G,O)}else if(en(S))S._store&&(S._store.validated=!0);else if(S){var se=P(S);if(typeof se=="function"&&se!==S.entries)for(var Ue=se.call(S),Te;!(Te=Ue.next()).done;)en(Te.value)&&oa(Te.value,O)}}}function Pr(S){{var O=S.type;if(O==null||typeof O=="string")return;var V;if(typeof O=="function")V=O.propTypes;else if(typeof O=="object"&&(O.$$typeof===g||O.$$typeof===C))V=O.propTypes;else return;if(V){var G=Tt(O);pl(V,S.props,"prop",G,S)}else if(O.PropTypes!==void 0&&!Pa){Pa=!0;var se=Tt(O);K("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",se||"Unknown")}typeof O.getDefaultProps=="function"&&!O.getDefaultProps.isReactClassApproved&&K("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function lr(S){{for(var O=Object.keys(S.props),V=0;V<O.length;V++){var G=O[V];if(G!=="children"&&G!=="key"){dn(S),K("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",G),dn(null);break}}S.ref!==null&&(dn(S),K("Invalid attribute `ref` supplied to `React.Fragment`."),dn(null))}}function ns(S,O,V){var G=un(S);if(!G){var se="";(S===void 0||typeof S=="object"&&S!==null&&Object.keys(S).length===0)&&(se+=" 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 Ue=ml(O);Ue?se+=Ue:se+=ts();var Te;S===null?Te="null":Vt(S)?Te="array":S!==void 0&&S.$$typeof===i?(Te="<"+(Tt(S.type)||"Unknown")+" />",se=" Did you accidentally export a JSX literal instead of a component?"):Te=typeof S,K("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Te,se)}var Ye=ut.apply(this,arguments);if(Ye==null)return Ye;if(G)for(var ft=2;ft<arguments.length;ft++)Co(arguments[ft],S);return S===s?lr(Ye):Pr(Ye),Ye}var ri=!1;function br(S){var O=ns.bind(null,S);return O.type=S,ri||(ri=!0,ye("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(O,"type",{enumerable:!1,get:function(){return ye("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:S}),S}}),O}function di(S,O,V){for(var G=gn.apply(this,arguments),se=2;se<arguments.length;se++)Co(arguments[se],G.type);return Pr(G),G}function Qu(S,O){var V=F.transition;F.transition={};var G=F.transition;F.transition._updatedFibers=new Set;try{S()}finally{if(F.transition=V,V===null&&G._updatedFibers){var se=G._updatedFibers.size;se>10&&ye("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 No=!1,Ia=null;function hl(S){if(Ia===null)try{var O=("require"+Math.random()).slice(0,7),V=e&&e[O];Ia=V.call(e,"timers").setImmediate}catch{Ia=function(se){No===!1&&(No=!0,typeof MessageChannel>"u"&&K("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 Ue=new MessageChannel;Ue.port1.onmessage=se,Ue.port2.postMessage(void 0)}}return Ia(S)}var bn=0,zn=!1;function eu(S){{var O=bn;bn++,z.current===null&&(z.current=[]);var V=z.isBatchingLegacy,G;try{if(z.isBatchingLegacy=!0,G=S(),!V&&z.didScheduleLegacyUpdate){var se=z.current;se!==null&&(z.didScheduleLegacyUpdate=!1,be(se))}}catch(Gt){throw Qi(O),Gt}finally{z.isBatchingLegacy=V}if(G!==null&&typeof G=="object"&&typeof G.then=="function"){var Ue=G,Te=!1,Ye={then:function(Gt,Lt){Te=!0,Ue.then(function(jt){Qi(O),bn===0?W(jt,Gt,Lt):Gt(jt)},function(jt){Qi(O),Lt(jt)})}};return!zn&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){Te||(zn=!0,K("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 () => ...);"))}),Ye}else{var ft=G;if(Qi(O),bn===0){var Nt=z.current;Nt!==null&&(be(Nt),z.current=null);var $t={then:function(Gt,Lt){z.current===null?(z.current=[],W(ft,Gt,Lt)):Gt(ft)}};return $t}else{var xt={then:function(Gt,Lt){Gt(ft)}};return xt}}}}function Qi(S){S!==bn-1&&K("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),bn=S}function W(S,O,V){{var G=z.current;if(G!==null)try{be(G),hl(function(){G.length===0?(z.current=null,O(S)):W(S,O,V)})}catch(se){V(se)}else O(S)}}var ne=!1;function be(S){if(!ne){ne=!0;var O=0;try{for(;O<S.length;O++){var V=S[O];do V=V(!0);while(V!==null)}S.length=0}catch(G){throw S=S.slice(O+1),G}finally{ne=!1}}}var ct=ns,pn=di,Bn=br,Xt={map:Er,forEach:Ss,count:Wo,toArray:ws,only:Go};t.Children=Xt,t.Component=Xe,t.Fragment=s,t.Profiler=p,t.PureComponent=ot,t.StrictMode=l,t.Suspense=b,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=we,t.cloneElement=pn,t.createContext=Yo,t.createElement=ct,t.createFactory=Bn,t.createRef=It,t.forwardRef=Qe,t.isValidElement=en,t.lazy=Ve,t.memo=Cn,t.startTransition=Qu,t.unstable_act=eu,t.useCallback=ki,t.useContext=Kt,t.useDebugValue=La,t.useDeferredValue=eo,t.useEffect=Kr,t.useId=tn,t.useImperativeHandle=Xu,t.useInsertionEffect=Aa,t.useLayoutEffect=qo,t.useMemo=wo,t.useReducer=Un,t.useRef=fn,t.useState=Hn,t.useSyncExternalStore=to,t.useTransition=cl,t.version=n,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()})(lE,lE.exports);(function(e){e.exports=lE.exports})(E);const Ne=rq(E.exports),uE=nq({__proto__:null,default:Ne},[E.exports]);var cE={},ef={exports:{}},ms={},AD={exports:{}},LD={};/**
* @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,n=!1,i=5;function o(Ge,ut){var At=Ge.length;Ge.push(ut),p(Ge,ut,At)}function s(Ge){return Ge.length===0?null:Ge[0]}function l(Ge){if(Ge.length===0)return null;var ut=Ge[0],At=Ge.pop();return At!==ut&&(Ge[0]=At,m(Ge,At,0)),ut}function p(Ge,ut,At){for(var gn=At;gn>0;){var en=gn-1>>>1,Rn=Ge[en];if(v(Rn,ut)>0)Ge[en]=ut,Ge[gn]=Rn,gn=en;else return}}function m(Ge,ut,At){for(var gn=At,en=Ge.length,Rn=en>>>1;gn<Rn;){var Fn=(gn+1)*2-1,zr=Ge[Fn],Pn=Fn+1,Ti=Ge[Pn];if(v(zr,ut)<0)Pn<en&&v(Ti,zr)<0?(Ge[gn]=Ti,Ge[Pn]=ut,gn=Pn):(Ge[gn]=zr,Ge[Fn]=ut,gn=Fn);else if(Pn<en&&v(Ti,ut)<0)Ge[gn]=Ti,Ge[Pn]=ut,gn=Pn;else return}}function v(Ge,ut){var At=Ge.sortIndex-ut.sortIndex;return At!==0?At:Ge.id-ut.id}var g=1,b=2,w=3,C=4,T=5;function R(Ge,ut){}var L=typeof performance=="object"&&typeof performance.now=="function";if(L){var D=performance;e.unstable_now=function(){return D.now()}}else{var P=Date,I=P.now();e.unstable_now=function(){return P.now()-I}}var F=1073741823,z=-1,q=250,Y=5e3,Q=1e4,ie=F,ae=[],me=[],ze=1,te=null,ee=w,we=!1,ye=!1,K=!1,le=typeof setTimeout=="function"?setTimeout:null,ge=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 Ee(Ge){for(var ut=s(me);ut!==null;){if(ut.callback===null)l(me);else if(ut.startTime<=Ge)l(me),ut.sortIndex=ut.expirationTime,o(ae,ut);else return;ut=s(me)}}function Oe(Ge){if(K=!1,Ee(Ge),!ye)if(s(ae)!==null)ye=!0,rn(Pe);else{var ut=s(me);ut!==null&&Dt(Oe,ut.startTime-Ge)}}function Pe(Ge,ut){ye=!1,K&&(K=!1,Ie()),we=!0;var At=ee;try{var gn;if(!n)return Xe(Ge,ut)}finally{te=null,ee=At,we=!1}}function Xe(Ge,ut){var At=ut;for(Ee(At),te=s(ae);te!==null&&!t&&!(te.expirationTime>At&&(!Ge||On()));){var gn=te.callback;if(typeof gn=="function"){te.callback=null,ee=te.priorityLevel;var en=te.expirationTime<=At,Rn=gn(en);At=e.unstable_now(),typeof Rn=="function"?te.callback=Rn:te===s(ae)&&l(ae),Ee(At)}else l(ae);te=s(ae)}if(te!==null)return!0;var Fn=s(me);return Fn!==null&&Dt(Oe,Fn.startTime-At),!1}function et(Ge,ut){switch(Ge){case g:case b:case w:case C:case T:break;default:Ge=w}var At=ee;ee=Ge;try{return ut()}finally{ee=At}}function at(Ge){var ut;switch(ee){case g:case b:case w:ut=w;break;default:ut=ee;break}var At=ee;ee=ut;try{return Ge()}finally{ee=At}}function kt(Ge){var ut=ee;return function(){var At=ee;ee=ut;try{return Ge.apply(this,arguments)}finally{ee=At}}}function He(Ge,ut,At){var gn=e.unstable_now(),en;if(typeof At=="object"&&At!==null){var Rn=At.delay;typeof Rn=="number"&&Rn>0?en=gn+Rn:en=gn}else en=gn;var Fn;switch(Ge){case g:Fn=z;break;case b:Fn=q;break;case T:Fn=ie;break;case C:Fn=Q;break;case w:default:Fn=Y;break}var zr=en+Fn,Pn={id:ze++,callback:ut,priorityLevel:Ge,startTime:en,expirationTime:zr,sortIndex:-1};return en>gn?(Pn.sortIndex=en,o(me,Pn),s(ae)===null&&Pn===s(me)&&(K?Ie():K=!0,Dt(Oe,en-gn))):(Pn.sortIndex=zr,o(ae,Pn),!ye&&!we&&(ye=!0,rn(Pe))),Pn}function ot(){}function wt(){!ye&&!we&&(ye=!0,rn(Pe))}function It(){return s(ae)}function We(Ge){Ge.callback=null}function Vt(){return ee}var Ce=!1,nt=null,Ct=-1,rt=i,sn=-1;function On(){var Ge=e.unstable_now()-sn;return!(Ge<rt)}function Tt(){}function ln(Ge){if(Ge<0||Ge>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}Ge>0?rt=Math.floor(1e3/Ge):rt=i}var Mn=function(){if(nt!==null){var Ge=e.unstable_now();sn=Ge;var ut=!0,At=!0;try{At=nt(ut,Ge)}finally{At?yn():(Ce=!1,nt=null)}}else Ce=!1},yn;if(typeof pe=="function")yn=function(){pe(Mn)};else if(typeof MessageChannel<"u"){var Ze=new MessageChannel,tt=Ze.port2;Ze.port1.onmessage=Mn,yn=function(){tt.postMessage(null)}}else yn=function(){le(Mn,0)};function rn(Ge){nt=Ge,Ce||(Ce=!0,yn())}function Dt(Ge,ut){Ct=le(function(){Ge(e.unstable_now())},ut)}function Ie(){ge(Ct),Ct=-1}var Zt=Tt,Tn=null;e.unstable_IdlePriority=T,e.unstable_ImmediatePriority=g,e.unstable_LowPriority=C,e.unstable_NormalPriority=w,e.unstable_Profiling=Tn,e.unstable_UserBlockingPriority=b,e.unstable_cancelCallback=We,e.unstable_continueExecution=wt,e.unstable_forceFrameRate=ln,e.unstable_getCurrentPriorityLevel=Vt,e.unstable_getFirstCallbackNode=It,e.unstable_next=at,e.unstable_pauseExecution=ot,e.unstable_requestPaint=Zt,e.unstable_runWithPriority=et,e.unstable_scheduleCallback=He,e.unstable_shouldYield=On,e.unstable_wrapCallback=kt,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()})(LD);(function(e){e.exports=LD})(AD);/**
* @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=E.exports,t=AD.exports,n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,i=!1;function o(r){i=r}function s(r){if(!i){for(var a=arguments.length,u=new Array(a>1?a-1:0),f=1;f<a;f++)u[f-1]=arguments[f];p("warn",r,u)}}function l(r){if(!i){for(var a=arguments.length,u=new Array(a>1?a-1:0),f=1;f<a;f++)u[f-1]=arguments[f];p("error",r,u)}}function p(r,a,u){{var f=n.ReactDebugCurrentFrame,h=f.getStackAddendum();h!==""&&(a+="%s",u=u.concat([h]));var x=u.map(function(_){return String(_)});x.unshift("Warning: "+a),Function.prototype.apply.call(console[r],console,x)}}var m=0,v=1,g=2,b=3,w=4,C=5,T=6,R=7,L=8,D=9,P=10,I=11,F=12,z=13,q=14,Y=15,Q=16,ie=17,ae=18,me=19,ze=21,te=22,ee=23,we=24,ye=25,K=!0,le=!1,ge=!1,pe=!1,Ee=!1,Oe=!0,Pe=!1,Xe=!1,et=!0,at=!0,kt=!0,He=new Set,ot={},wt={};function It(r,a){We(r,a),We(r+"Capture",a)}function We(r,a){ot[r]&&l("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",r),ot[r]=a;{var u=r.toLowerCase();wt[u]=r,r==="onDoubleClick"&&(wt.ondblclick=r)}for(var f=0;f<a.length;f++)He.add(a[f])}var Vt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ce=Object.prototype.hasOwnProperty;function nt(r){{var a=typeof Symbol=="function"&&Symbol.toStringTag,u=a&&r[Symbol.toStringTag]||r.constructor.name||"Object";return u}}function Ct(r){try{return rt(r),!1}catch{return!0}}function rt(r){return""+r}function sn(r,a){if(Ct(r))return l("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",a,nt(r)),rt(r)}function On(r){if(Ct(r))return l("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",nt(r)),rt(r)}function Tt(r,a){if(Ct(r))return l("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",a,nt(r)),rt(r)}function ln(r,a){if(Ct(r))return l("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",a,nt(r)),rt(r)}function Mn(r){if(Ct(r))return l("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",nt(r)),rt(r)}function yn(r){if(Ct(r))return l("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.",nt(r)),rt(r)}var Ze=0,tt=1,rn=2,Dt=3,Ie=4,Zt=5,Tn=6,Ge=":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",ut=Ge+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",At=new RegExp("^["+Ge+"]["+ut+"]*$"),gn={},en={};function Rn(r){return Ce.call(en,r)?!0:Ce.call(gn,r)?!1:At.test(r)?(en[r]=!0,!0):(gn[r]=!0,l("Invalid attribute name: `%s`",r),!1)}function Fn(r,a,u){return a!==null?a.type===Ze:u?!1:r.length>2&&(r[0]==="o"||r[0]==="O")&&(r[1]==="n"||r[1]==="N")}function zr(r,a,u,f){if(u!==null&&u.type===Ze)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":{if(f)return!1;if(u!==null)return!u.acceptsBooleans;var h=r.toLowerCase().slice(0,5);return h!=="data-"&&h!=="aria-"}default:return!1}}function Pn(r,a,u,f){if(a===null||typeof a>"u"||zr(r,a,u,f))return!0;if(f)return!1;if(u!==null)switch(u.type){case Dt:return!a;case Ie:return a===!1;case Zt:return isNaN(a);case Tn:return isNaN(a)||a<1}return!1}function Ti(r){return kn.hasOwnProperty(r)?kn[r]:null}function Vn(r,a,u,f,h,x,_){this.acceptsBooleans=a===rn||a===Dt||a===Ie,this.attributeName=f,this.attributeNamespace=h,this.mustUseProperty=u,this.propertyName=r,this.type=a,this.sanitizeURL=x,this.removeEmptyString=_}var kn={},Ri=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Ri.forEach(function(r){kn[r]=new Vn(r,Ze,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var a=r[0],u=r[1];kn[a]=new Vn(a,tt,!1,u,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){kn[r]=new Vn(r,rn,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){kn[r]=new Vn(r,rn,!1,r,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(r){kn[r]=new Vn(r,Dt,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){kn[r]=new Vn(r,Dt,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){kn[r]=new Vn(r,Ie,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){kn[r]=new Vn(r,Tn,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){kn[r]=new Vn(r,Zt,!1,r.toLowerCase(),null,!1,!1)});var Er=/[\-\:]([a-z])/g,Wo=function(r){return r[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(r){var a=r.replace(Er,Wo);kn[a]=new Vn(a,tt,!1,r,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(r){var a=r.replace(Er,Wo);kn[a]=new Vn(a,tt,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var a=r.replace(Er,Wo);kn[a]=new Vn(a,tt,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){kn[r]=new Vn(r,tt,!1,r.toLowerCase(),null,!1,!1)});var Ss="xlinkHref";kn[Ss]=new Vn("xlinkHref",tt,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){kn[r]=new Vn(r,tt,!1,r.toLowerCase(),null,!0,!0)});var ws=/^[\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,Go=!1;function Yo(r){!Go&&ws.test(r)&&(Go=!0,l("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(r)))}function xr(r,a,u,f){if(f.mustUseProperty){var h=f.propertyName;return r[h]}else{sn(u,a),f.sanitizeURL&&Yo(""+u);var x=f.attributeName,_=null;if(f.type===Ie){if(r.hasAttribute(x)){var A=r.getAttribute(x);return A===""?!0:Pn(a,u,f,!1)?A:A===""+u?u:A}}else if(r.hasAttribute(x)){if(Pn(a,u,f,!1))return r.getAttribute(x);if(f.type===Dt)return u;_=r.getAttribute(x)}return Pn(a,u,f,!1)?_===null?u:_:_===""+u?u:_}}function Yi(r,a,u,f){{if(!Rn(a))return;if(!r.hasAttribute(a))return u===void 0?void 0:null;var h=r.getAttribute(a);return sn(u,a),h===""+u?u:h}}function Ja(r,a,u,f){var h=Ti(a);if(!Fn(a,h,f)){if(Pn(a,u,h,f)&&(u=null),f||h===null){if(Rn(a)){var x=a;u===null?r.removeAttribute(x):(sn(u,a),r.setAttribute(x,""+u))}return}var _=h.mustUseProperty;if(_){var A=h.propertyName;if(u===null){var M=h.type;r[A]=M===Dt?!1:""}else r[A]=u;return}var U=h.attributeName,H=h.attributeNamespace;if(u===null)r.removeAttribute(U);else{var oe=h.type,re;oe===Dt||oe===Ie&&u===!0?re="":(sn(u,U),re=""+u,h.sanitizeURL&&Yo(re.toString())),H?r.setAttributeNS(H,U,re):r.setAttribute(U,re)}}}var qi=Symbol.for("react.element"),X=Symbol.for("react.portal"),Ve=Symbol.for("react.fragment"),Qe=Symbol.for("react.strict_mode"),_t=Symbol.for("react.profiler"),un=Symbol.for("react.provider"),Cn=Symbol.for("react.context"),st=Symbol.for("react.forward_ref"),Kt=Symbol.for("react.suspense"),Hn=Symbol.for("react.suspense_list"),Un=Symbol.for("react.memo"),fn=Symbol.for("react.lazy"),Kr=Symbol.for("react.scope"),Aa=Symbol.for("react.debug_trace_mode"),qo=Symbol.for("react.offscreen"),ki=Symbol.for("react.legacy_hidden"),wo=Symbol.for("react.cache"),Xu=Symbol.for("react.tracing_marker"),La=Symbol.iterator,cl="@@iterator";function eo(r){if(r===null||typeof r!="object")return null;var a=La&&r[La]||r[cl];return typeof a=="function"?a:null}var tn=Object.assign,to=0,Ai,Zo,Cs,Ko,Ns,Es,Xo;function Qo(){}Qo.__reactDisabledLog=!0;function _s(){{if(to===0){Ai=console.log,Zo=console.info,Cs=console.warn,Ko=console.error,Ns=console.group,Es=console.groupCollapsed,Xo=console.groupEnd;var r={configurable:!0,enumerable:!0,value:Qo,writable:!0};Object.defineProperties(console,{info:r,log:r,warn:r,error:r,group:r,groupCollapsed:r,groupEnd:r})}to++}}function fl(){{if(to--,to===0){var r={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:tn({},r,{value:Ai}),info:tn({},r,{value:Zo}),warn:tn({},r,{value:Cs}),error:tn({},r,{value:Ko}),group:tn({},r,{value:Ns}),groupCollapsed:tn({},r,{value:Es}),groupEnd:tn({},r,{value:Xo})})}to<0&&l("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var dl=n.ReactCurrentDispatcher,Oa;function Gr(r,a,u){{if(Oa===void 0)try{throw Error()}catch(h){var f=h.stack.trim().match(/\n( *(at )?)/);Oa=f&&f[1]||""}return`
`+Oa+r}}var Zi=!1,Li;{var Ki=typeof WeakMap=="function"?WeakMap:Map;Li=new Ki}function Ts(r,a){if(!r||Zi)return"";{var u=Li.get(r);if(u!==void 0)return u}var f;Zi=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var x;x=dl.current,dl.current=null,_s();try{if(a){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(Se){f=Se}Reflect.construct(r,[],_)}else{try{_.call()}catch(Se){f=Se}r.call(_.prototype)}}else{try{throw Error()}catch(Se){f=Se}r()}}catch(Se){if(Se&&f&&typeof Se.stack=="string"){for(var A=Se.stack.split(`
`),M=f.stack.split(`
`),U=A.length-1,H=M.length-1;U>=1&&H>=0&&A[U]!==M[H];)H--;for(;U>=1&&H>=0;U--,H--)if(A[U]!==M[H]){if(U!==1||H!==1)do if(U--,H--,H<0||A[U]!==M[H]){var oe=`
`+A[U].replace(" at new "," at ");return r.displayName&&oe.includes("<anonymous>")&&(oe=oe.replace("<anonymous>",r.displayName)),typeof r=="function"&&Li.set(r,oe),oe}while(U>=1&&H>=0);break}}}finally{Zi=!1,dl.current=x,fl(),Error.prepareStackTrace=h}var re=r?r.displayName||r.name:"",xe=re?Gr(re):"";return typeof r=="function"&&Li.set(r,xe),xe}function Jo(r,a,u){return Ts(r,!0)}function Rs(r,a,u){return Ts(r,!1)}function Jl(r){var a=r.prototype;return!!(a&&a.isReactComponent)}function Oi(r,a,u){if(r==null)return"";if(typeof r=="function")return Ts(r,Jl(r));if(typeof r=="string")return Gr(r);switch(r){case Kt:return Gr("Suspense");case Hn:return Gr("SuspenseList")}if(typeof r=="object")switch(r.$$typeof){case st:return Rs(r.render);case Un:return Oi(r.type,a,u);case fn:{var f=r,h=f._payload,x=f._init;try{return Oi(x(h),a,u)}catch{}}}return""}function es(r){switch(r._debugOwner&&r._debugOwner.type,r._debugSource,r.tag){case C:return Gr(r.type);case Q:return Gr("Lazy");case z:return Gr("Suspense");case me:return Gr("SuspenseList");case m:case g:case Y:return Rs(r.type);case I:return Rs(r.type.render);case v:return Jo(r.type);default:return""}}function Xi(r){try{var a="",u=r;do a+=es(u),u=u.return;while(u);return a}catch(f){return`
Error generating stack: `+f.message+`
`+f.stack}}function Ma(r,a,u){var f=r.displayName;if(f)return f;var h=a.displayName||a.name||"";return h!==""?u+"("+h+")":u}function pl(r){return r.displayName||"Context"}function dn(r){if(r==null)return null;if(typeof r.tag=="number"&&l("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case Ve:return"Fragment";case X:return"Portal";case _t:return"Profiler";case Qe:return"StrictMode";case Kt:return"Suspense";case Hn:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case Cn:var a=r;return pl(a)+".Consumer";case un:var u=r;return pl(u._context)+".Provider";case st:return Ma(r,r.render,"ForwardRef");case Un:var f=r.displayName||null;return f!==null?f:dn(r.type)||"Memo";case fn:{var h=r,x=h._payload,_=h._init;try{return dn(_(x))}catch{return null}}}return null}function Pa(r,a,u){var f=a.displayName||a.name||"";return r.displayName||(f!==""?u+"("+f+")":u)}function ts(r){return r.displayName||"Context"}function Wt(r){var a=r.tag,u=r.type;switch(a){case we:return"Cache";case D:var f=u;return ts(f)+".Consumer";case P:var h=u;return ts(h._context)+".Provider";case ae:return"DehydratedFragment";case I:return Pa(u,u.render,"ForwardRef");case R:return"Fragment";case C:return u;case w:return"Portal";case b:return"Root";case T:return"Text";case Q:return dn(u);case L:return u===Qe?"StrictMode":"Mode";case te:return"Offscreen";case F:return"Profiler";case ze:return"Scope";case z:return"Suspense";case me:return"SuspenseList";case ye:return"TracingMarker";case v:case m:case ie:case g:case q:case Y:if(typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u;break}return null}var ml=n.ReactDebugCurrentFrame,_r=null,no=!1;function oa(){{if(_r===null)return null;var r=_r._debugOwner;if(r!==null&&typeof r<"u")return Wt(r)}return null}function Co(){return _r===null?"":Xi(_r)}function Pr(){ml.getCurrentStack=null,_r=null,no=!1}function lr(r){ml.getCurrentStack=r===null?null:Co,_r=r,no=!1}function ns(){return _r}function ri(r){no=r}function br(r){return""+r}function di(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return yn(r),r;default:return""}}var Qu={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function No(r,a){Qu[a.type]||a.onChange||a.onInput||a.readOnly||a.disabled||a.value==null||l("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||l("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 Ia(r){var a=r.type,u=r.nodeName;return u&&u.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function hl(r){return r._valueTracker}function bn(r){r._valueTracker=null}function zn(r){var a="";return r&&(Ia(r)?a=r.checked?"true":"false":a=r.value),a}function eu(r){var a=Ia(r)?"checked":"value",u=Object.getOwnPropertyDescriptor(r.constructor.prototype,a);yn(r[a]);var f=""+r[a];if(!(r.hasOwnProperty(a)||typeof u>"u"||typeof u.get!="function"||typeof u.set!="function")){var h=u.get,x=u.set;Object.defineProperty(r,a,{configurable:!0,get:function(){return h.call(this)},set:function(A){yn(A),f=""+A,x.call(this,A)}}),Object.defineProperty(r,a,{enumerable:u.enumerable});var _={getValue:function(){return f},setValue:function(A){yn(A),f=""+A},stopTracking:function(){bn(r),delete r[a]}};return _}}function Qi(r){hl(r)||(r._valueTracker=eu(r))}function W(r){if(!r)return!1;var a=hl(r);if(!a)return!0;var u=a.getValue(),f=zn(r);return f!==u?(a.setValue(f),!0):!1}function ne(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var be=!1,ct=!1,pn=!1,Bn=!1;function Xt(r){var a=r.type==="checkbox"||r.type==="radio";return a?r.checked!=null:r.value!=null}function S(r,a){var u=r,f=a.checked,h=tn({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:f??u._wrapperState.initialChecked});return h}function O(r,a){No("input",a),a.checked!==void 0&&a.defaultChecked!==void 0&&!ct&&(l("%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",oa()||"A component",a.type),ct=!0),a.value!==void 0&&a.defaultValue!==void 0&&!be&&(l("%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",oa()||"A component",a.type),be=!0);var u=r,f=a.defaultValue==null?"":a.defaultValue;u._wrapperState={initialChecked:a.checked!=null?a.checked:a.defaultChecked,initialValue:di(a.value!=null?a.value:f),controlled:Xt(a)}}function V(r,a){var u=r,f=a.checked;f!=null&&Ja(u,"checked",f,!1)}function G(r,a){var u=r;{var f=Xt(a);!u._wrapperState.controlled&&f&&!Bn&&(l("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"),Bn=!0),u._wrapperState.controlled&&!f&&!pn&&(l("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"),pn=!0)}V(r,a);var h=di(a.value),x=a.type;if(h!=null)x==="number"?(h===0&&u.value===""||u.value!=h)&&(u.value=br(h)):u.value!==br(h)&&(u.value=br(h));else if(x==="submit"||x==="reset"){u.removeAttribute("value");return}a.hasOwnProperty("value")?Ye(u,a.type,h):a.hasOwnProperty("defaultValue")&&Ye(u,a.type,di(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(u.defaultChecked=!!a.defaultChecked)}function se(r,a,u){var f=r;if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var h=a.type,x=h==="submit"||h==="reset";if(x&&(a.value===void 0||a.value===null))return;var _=br(f._wrapperState.initialValue);u||_!==f.value&&(f.value=_),f.defaultValue=_}var A=f.name;A!==""&&(f.name=""),f.defaultChecked=!f.defaultChecked,f.defaultChecked=!!f._wrapperState.initialChecked,A!==""&&(f.name=A)}function Ue(r,a){var u=r;G(u,a),Te(u,a)}function Te(r,a){var u=a.name;if(a.type==="radio"&&u!=null){for(var f=r;f.parentNode;)f=f.parentNode;sn(u,"name");for(var h=f.querySelectorAll("input[name="+JSON.stringify(""+u)+'][type="radio"]'),x=0;x<h.length;x++){var _=h[x];if(!(_===r||_.form!==r.form)){var A=Bt(_);if(!A)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");W(_),G(_,A)}}}}function Ye(r,a,u){(a!=="number"||ne(r.ownerDocument)!==r)&&(u==null?r.defaultValue=br(r._wrapperState.initialValue):r.defaultValue!==br(u)&&(r.defaultValue=br(u)))}var ft=!1,Nt=!1,$t=!1;function xt(r,a){a.value==null&&(typeof a.children=="object"&&a.children!==null?e.Children.forEach(a.children,function(u){u!=null&&(typeof u=="string"||typeof u=="number"||Nt||(Nt=!0,l("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):a.dangerouslySetInnerHTML!=null&&($t||($t=!0,l("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),a.selected!=null&&!ft&&(l("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),ft=!0)}function Gt(r,a){a.value!=null&&r.setAttribute("value",br(di(a.value)))}var Lt=Array.isArray;function jt(r){return Lt(r)}var Da;Da=!1;function Mi(){var r=oa();return r?`
Check the render method of \``+r+"`.":""}var rs=["value","defaultValue"];function Ju(r){{No("select",r);for(var a=0;a<rs.length;a++){var u=rs[a];if(r[u]!=null){var f=jt(r[u]);r.multiple&&!f?l("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",u,Mi()):!r.multiple&&f&&l("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",u,Mi())}}}}function In(r,a,u,f){var h=r.options;if(a){for(var x=u,_={},A=0;A<x.length;A++)_["$"+x[A]]=!0;for(var M=0;M<h.length;M++){var U=_.hasOwnProperty("$"+h[M].value);h[M].selected!==U&&(h[M].selected=U),U&&f&&(h[M].defaultSelected=!0)}}else{for(var H=br(di(u)),oe=null,re=0;re<h.length;re++){if(h[re].value===H){h[re].selected=!0,f&&(h[re].defaultSelected=!0);return}oe===null&&!h[re].disabled&&(oe=h[re])}oe!==null&&(oe.selected=!0)}}function $a(r,a){return tn({},a,{value:void 0})}function ks(r,a){var u=r;Ju(a),u._wrapperState={wasMultiple:!!a.multiple},a.value!==void 0&&a.defaultValue!==void 0&&!Da&&(l("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"),Da=!0)}function Pd(r,a){var u=r;u.multiple=!!a.multiple;var f=a.value;f!=null?In(u,!!a.multiple,f,!1):a.defaultValue!=null&&In(u,!!a.multiple,a.defaultValue,!0)}function p0(r,a){var u=r,f=u._wrapperState.wasMultiple;u._wrapperState.wasMultiple=!!a.multiple;var h=a.value;h!=null?In(u,!!a.multiple,h,!1):f!==!!a.multiple&&(a.defaultValue!=null?In(u,!!a.multiple,a.defaultValue,!0):In(u,!!a.multiple,a.multiple?[]:"",!1))}function x4(r,a){var u=r,f=a.value;f!=null&&In(u,!!a.multiple,f,!1)}var cy=!1;function m0(r,a){var u=r;if(a.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var f=tn({},a,{value:void 0,defaultValue:void 0,children:br(u._wrapperState.initialValue)});return f}function h0(r,a){var u=r;No("textarea",a),a.value!==void 0&&a.defaultValue!==void 0&&!cy&&(l("%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",oa()||"A component"),cy=!0);var f=a.value;if(f==null){var h=a.children,x=a.defaultValue;if(h!=null){l("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(x!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(jt(h)){if(h.length>1)throw new Error("<textarea> can only have at most one child.");h=h[0]}x=h}}x==null&&(x=""),f=x}u._wrapperState={initialValue:di(f)}}function Id(r,a){var u=r,f=di(a.value),h=di(a.defaultValue);if(f!=null){var x=br(f);x!==u.value&&(u.value=x),a.defaultValue==null&&u.defaultValue!==x&&(u.defaultValue=x)}h!=null&&(u.defaultValue=br(h))}function ec(r,a){var u=r,f=u.textContent;f===u._wrapperState.initialValue&&f!==""&&f!==null&&(u.value=f)}function S4(r,a){Id(r,a)}var As="http://www.w3.org/1999/xhtml",fy="http://www.w3.org/1998/Math/MathML",Dd="http://www.w3.org/2000/svg";function $d(r){switch(r){case"svg":return Dd;case"math":return fy;default:return As}}function zm(r,a){return r==null||r===As?$d(a):r===Dd&&a==="foreignObject"?As:r}var w4=function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(a,u,f,h){MSApp.execUnsafeLocalFunction(function(){return r(a,u,f,h)})}:r},rf,Bm=w4(function(r,a){if(r.namespaceURI===Dd&&!("innerHTML"in r)){rf=rf||document.createElement("div"),rf.innerHTML="<svg>"+a.valueOf().toString()+"</svg>";for(var u=rf.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;u.firstChild;)r.appendChild(u.firstChild);return}r.innerHTML=a}),Fa=1,Ls=3,Wn=8,is=9,tc=11,Fd=function(r,a){if(a){var u=r.firstChild;if(u&&u===r.lastChild&&u.nodeType===Ls){u.nodeValue=a;return}}r.textContent=a},dy={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"]},zd={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 C4(r,a){return r+a.charAt(0).toUpperCase()+a.substring(1)}var N4=["Webkit","ms","Moz","O"];Object.keys(zd).forEach(function(r){N4.forEach(function(a){zd[C4(a,r)]=zd[r]})});function v0(r,a,u){var f=a==null||typeof a=="boolean"||a==="";return f?"":!u&&typeof a=="number"&&a!==0&&!(zd.hasOwnProperty(r)&&zd[r])?a+"px":(ln(a,r),(""+a).trim())}var E4=/([A-Z])/g,af=/^ms-/;function _4(r){return r.replace(E4,"-$1").toLowerCase().replace(af,"-ms-")}var py=function(){};{var g0=/^(?:webkit|moz|o)[A-Z]/,my=/^-ms-/,tu=/-(.)/g,Bd=/;\s*$/,of={},b0={},hy=!1,nc=!1,as=function(r){return r.replace(tu,function(a,u){return u.toUpperCase()})},vy=function(r){of.hasOwnProperty(r)&&of[r]||(of[r]=!0,l("Unsupported style property %s. Did you mean %s?",r,as(r.replace(my,"ms-"))))},T4=function(r){of.hasOwnProperty(r)&&of[r]||(of[r]=!0,l("Unsupported vendor-prefixed style property %s. Did you mean %s?",r,r.charAt(0).toUpperCase()+r.slice(1)))},R4=function(r,a){b0.hasOwnProperty(a)&&b0[a]||(b0[a]=!0,l(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,r,a.replace(Bd,"")))},k4=function(r,a){hy||(hy=!0,l("`NaN` is an invalid value for the `%s` css style property.",r))},A4=function(r,a){nc||(nc=!0,l("`Infinity` is an invalid value for the `%s` css style property.",r))};py=function(r,a){r.indexOf("-")>-1?vy(r):g0.test(r)?T4(r):Bd.test(a)&&R4(r,a),typeof a=="number"&&(isNaN(a)?k4(r,a):isFinite(a)||A4(r,a))}}var L4=py;function sf(r){{var a="",u="";for(var f in r)if(!!r.hasOwnProperty(f)){var h=r[f];if(h!=null){var x=f.indexOf("--")===0;a+=u+(x?f:_4(f))+":",a+=v0(f,h,x),u=";"}}return a||null}}function fe(r,a){var u=r.style;for(var f in a)if(!!a.hasOwnProperty(f)){var h=f.indexOf("--")===0;h||L4(f,a[f]);var x=v0(f,a[f],h);f==="float"&&(f="cssFloat"),h?u.setProperty(f,x):u[f]=x}}function Ae(r){return r==null||typeof r=="boolean"||r===""}function _e(r){var a={};for(var u in r)for(var f=dy[u]||[u],h=0;h<f.length;h++)a[f[h]]=u;return a}function gt(r,a){{if(!a)return;var u=_e(r),f=_e(a),h={};for(var x in u){var _=u[x],A=f[x];if(A&&_!==A){var M=_+","+A;if(h[M])continue;h[M]=!0,l("%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.",Ae(r[_])?"Removing":"Updating",_,A)}}}}var an={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},Kn=tn({menuitem:!0},an),ii="__html";function tr(r,a){if(!!a){if(Kn[r]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw new Error(r+" 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"||!(ii 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&&l("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 vl(r,a){if(r.indexOf("-")===-1)return typeof a.is=="string";switch(r){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 Um={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"},ro={"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},gl={},O4=new RegExp("^(aria)-["+ut+"]*$"),lf=new RegExp("^(aria)[A-Z]["+ut+"]*$");function jm(r,a){{if(Ce.call(gl,a)&&gl[a])return!0;if(lf.test(a)){var u="aria-"+a.slice(4).toLowerCase(),f=ro.hasOwnProperty(u)?u:null;if(f==null)return l("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",a),gl[a]=!0,!0;if(a!==f)return l("Invalid ARIA attribute `%s`. Did you mean `%s`?",a,f),gl[a]=!0,!0}if(O4.test(a)){var h=a.toLowerCase(),x=ro.hasOwnProperty(h)?h:null;if(x==null)return gl[a]=!0,!1;if(a!==x)return l("Unknown ARIA attribute `%s`. Did you mean `%s`?",a,x),gl[a]=!0,!0}}return!0}function Vm(r,a){{var u=[];for(var f in a){var h=jm(r,f);h||u.push(f)}var x=u.map(function(_){return"`"+_+"`"}).join(", ");u.length===1?l("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",x,r):u.length>1&&l("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",x,r)}}function nr(r,a){vl(r,a)||Vm(r,a)}var gy=!1;function by(r,a){{if(r!=="input"&&r!=="textarea"&&r!=="select")return;a!=null&&a.value===null&&!gy&&(gy=!0,r==="select"&&a.multiple?l("`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.",r):l("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",r))}}var Ud=function(){};{var sa={},yy=/^on./,M4=/^on[^A-Z]/,Hm=new RegExp("^(aria)-["+ut+"]*$"),nu=new RegExp("^(aria)[A-Z]["+ut+"]*$");Ud=function(r,a,u,f){if(Ce.call(sa,a)&&sa[a])return!0;var h=a.toLowerCase();if(h==="onfocusin"||h==="onfocusout")return l("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."),sa[a]=!0,!0;if(f!=null){var x=f.registrationNameDependencies,_=f.possibleRegistrationNames;if(x.hasOwnProperty(a))return!0;var A=_.hasOwnProperty(h)?_[h]:null;if(A!=null)return l("Invalid event handler property `%s`. Did you mean `%s`?",a,A),sa[a]=!0,!0;if(yy.test(a))return l("Unknown event handler property `%s`. It will be ignored.",a),sa[a]=!0,!0}else if(yy.test(a))return M4.test(a)&&l("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",a),sa[a]=!0,!0;if(Hm.test(a)||nu.test(a))return!0;if(h==="innerhtml")return l("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),sa[a]=!0,!0;if(h==="aria")return l("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),sa[a]=!0,!0;if(h==="is"&&u!==null&&u!==void 0&&typeof u!="string")return l("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof u),sa[a]=!0,!0;if(typeof u=="number"&&isNaN(u))return l("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",a),sa[a]=!0,!0;var M=Ti(a),U=M!==null&&M.type===Ze;if(Um.hasOwnProperty(h)){var H=Um[h];if(H!==a)return l("Invalid DOM property `%s`. Did you mean `%s`?",a,H),sa[a]=!0,!0}else if(!U&&a!==h)return l("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,h),sa[a]=!0,!0;return typeof u=="boolean"&&zr(a,u,M,!1)?(u?l('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()}.',u,a,a,u,a):l('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.',u,a,a,u,a,a,a),sa[a]=!0,!0):U?!0:zr(a,u,M,!1)?(sa[a]=!0,!1):((u==="false"||u==="true")&&M!==null&&M.type===Dt&&(l("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",u,a,u==="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,u),sa[a]=!0),!0)}}var Wm=function(r,a,u){{var f=[];for(var h in a){var x=Ud(r,h,a[h],u);x||f.push(h)}var _=f.map(function(A){return"`"+A+"`"}).join(", ");f.length===1?l("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 ",_,r):f.length>1&&l("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 ",_,r)}};function xy(r,a,u){vl(r,a)||Wm(r,a,u)}var jd=1,Gm=1<<1,uf=1<<2,Ym=jd|Gm|uf,cf=null;function Vd(r){cf!==null&&l("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),cf=r}function rc(){cf===null&&l("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),cf=null}function qm(r){return r===cf}function y0(r){var a=r.target||r.srcElement||window;return a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===Ls?a.parentNode:a}var x0=null,ff=null,bl=null;function Hd(r){var a=Je(r);if(!!a){if(typeof x0!="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 u=a.stateNode;if(u){var f=Bt(u);x0(a.stateNode,a.type,f)}}}function S0(r){x0=r}function Sy(r){ff?bl?bl.push(r):bl=[r]:ff=r}function wy(){return ff!==null||bl!==null}function Cy(){if(!!ff){var r=ff,a=bl;if(ff=null,bl=null,Hd(r),a)for(var u=0;u<a.length;u++)Hd(a[u])}}var Ny=function(r,a){return r(a)},Xr=function(){},pi=!1;function P4(){var r=wy();r&&(Xr(),Cy())}function Ey(r,a,u){if(pi)return r(a,u);pi=!0;try{return Ny(r,a,u)}finally{pi=!1,P4()}}function _y(r,a,u){Ny=r,Xr=u}function I4(r){return r==="button"||r==="input"||r==="select"||r==="textarea"}function w0(r,a,u){switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(u.disabled&&I4(a));default:return!1}}function yl(r,a){var u=r.stateNode;if(u===null)return null;var f=Bt(u);if(f===null)return null;var h=f[a];if(w0(a,r.type,f))return null;if(h&&typeof h!="function")throw new Error("Expected `"+a+"` listener to be a function, instead got a value of `"+typeof h+"` type.");return h}var Wd=!1;if(Vt)try{var Os={};Object.defineProperty(Os,"passive",{get:function(){Wd=!0}}),window.addEventListener("test",Os,Os),window.removeEventListener("test",Os,Os)}catch{Wd=!1}function df(r,a,u,f,h,x,_,A,M){var U=Array.prototype.slice.call(arguments,3);try{a.apply(u,U)}catch(H){this.onError(H)}}var pf=df;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var mf=document.createElement("react");pf=function(a,u,f,h,x,_,A,M,U){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"),oe=!1,re=!0,xe=window.event,Se=Object.getOwnPropertyDescriptor(window,"event");function Re(){mf.removeEventListener(ke,Ot,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=xe)}var ht=Array.prototype.slice.call(arguments,3);function Ot(){oe=!0,Re(),u.apply(f,ht),re=!1}var Et,$n=!1,_n=!1;function he(ve){if(Et=ve.error,$n=!0,Et===null&&ve.colno===0&&ve.lineno===0&&(_n=!0),ve.defaultPrevented&&Et!=null&&typeof Et=="object")try{Et._suppressLogging=!0}catch{}}var ke="react-"+(a||"invokeguardedcallback");if(window.addEventListener("error",he),mf.addEventListener(ke,Ot,!1),H.initEvent(ke,!1,!1),mf.dispatchEvent(H),Se&&Object.defineProperty(window,"event",Se),oe&&re&&($n?_n&&(Et=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.")):Et=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(Et)),window.removeEventListener("error",he),!oe)return Re(),df.apply(this,arguments)}}var hf=pf,vf=!1,Zm=null,Km=!1,C0=null,D4={onError:function(r){vf=!0,Zm=r}};function gf(r,a,u,f,h,x,_,A,M){vf=!1,Zm=null,hf.apply(D4,arguments)}function Gd(r,a,u,f,h,x,_,A,M){if(gf.apply(this,arguments),vf){var U=ru();Km||(Km=!0,C0=U)}}function Ty(){if(Km){var r=C0;throw Km=!1,C0=null,r}}function B(){return vf}function ru(){if(vf){var r=Zm;return vf=!1,Zm=null,r}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 xl(r){return r._reactInternals}function Eo(r){return r._reactInternals!==void 0}function An(r,a){r._reactInternals=a}var Ut=0,bf=1,Qr=2,mn=4,ic=16,Yd=32,N0=64,jn=128,Sl=256,Ji=512,ac=1024,os=2048,wl=4096,oc=8192,Xm=16384,Cl=os|mn|N0|Ji|ac|Xm,$4=32767,qd=32768,la=65536,E0=131072,Ry=1048576,Nl=2097152,sc=4194304,_0=8388608,ai=16777216,Qm=33554432,T0=mn|ac|0,R0=Qr|mn|ic|Yd|Ji|wl|oc,Zd=mn|N0|Ji|oc,yf=os|ic,Ms=sc|_0|Nl,ky=n.ReactCurrentOwner;function lc(r){var a=r,u=r;if(r.alternate)for(;a.return;)a=a.return;else{var f=a;do a=f,(a.flags&(Qr|wl))!==Ut&&(u=a.return),f=a.return;while(f)}return a.tag===b?u:null}function Ay(r){if(r.tag===z){var a=r.memoizedState;if(a===null){var u=r.alternate;u!==null&&(a=u.memoizedState)}if(a!==null)return a.dehydrated}return null}function Jm(r){return r.tag===b?r.stateNode.containerInfo:null}function Kd(r){return lc(r)===r}function eh(r){{var a=ky.current;if(a!==null&&a.tag===v){var u=a,f=u.stateNode;f._warnedAboutRefsInRender||l("%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.",Wt(u)||"A component"),f._warnedAboutRefsInRender=!0}}var h=xl(r);return h?lc(h)===h:!1}function Ly(r){if(lc(r)!==r)throw new Error("Unable to find node on an unmounted component.")}function k0(r){var a=r.alternate;if(!a){var u=lc(r);if(u===null)throw new Error("Unable to find node on an unmounted component.");return u!==r?null:r}for(var f=r,h=a;;){var x=f.return;if(x===null)break;var _=x.alternate;if(_===null){var A=x.return;if(A!==null){f=h=A;continue}break}if(x.child===_.child){for(var M=x.child;M;){if(M===f)return Ly(x),r;if(M===h)return Ly(x),a;M=M.sibling}throw new Error("Unable to find node on an unmounted component.")}if(f.return!==h.return)f=x,h=_;else{for(var U=!1,H=x.child;H;){if(H===f){U=!0,f=x,h=_;break}if(H===h){U=!0,h=x,f=_;break}H=H.sibling}if(!U){for(H=_.child;H;){if(H===f){U=!0,f=_,h=x;break}if(H===h){U=!0,h=_,f=x;break}H=H.sibling}if(!U)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!==h)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!==b)throw new Error("Unable to find node on an unmounted component.");return f.stateNode.current===f?r:a}function Oy(r){var a=k0(r);return a!==null?Ps(a):null}function Ps(r){if(r.tag===C||r.tag===T)return r;for(var a=r.child;a!==null;){var u=Ps(a);if(u!==null)return u;a=a.sibling}return null}function A0(r){var a=k0(r);return a!==null?iu(a):null}function iu(r){if(r.tag===C||r.tag===T)return r;for(var a=r.child;a!==null;){if(a.tag!==w){var u=iu(a);if(u!==null)return u}a=a.sibling}return null}var io=t.unstable_scheduleCallback,F4=t.unstable_cancelCallback,My=t.unstable_shouldYield,Py=t.unstable_requestPaint,Br=t.unstable_now,au=t.unstable_getCurrentPriorityLevel,Xd=t.unstable_ImmediatePriority,L0=t.unstable_UserBlockingPriority,Is=t.unstable_NormalPriority,z4=t.unstable_LowPriority,th=t.unstable_IdlePriority,Pi=t.unstable_yieldValue,O0=t.unstable_setDisableYieldValue,uc=null,Sr=null,lt=null,ao=!1,Ii=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function Iy(r){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var a=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(a.isDisabled)return!0;if(!a.supportsFiber)return l("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{et&&(r=tn({},r,{getLaneLabelMap:j4,injectProfilingHooks:P0})),uc=a.inject(r),Sr=a}catch(u){l("React instrumentation encountered an error: %s.",u)}return!!a.checkDCE}function ua(r,a){if(Sr&&typeof Sr.onScheduleFiberRoot=="function")try{Sr.onScheduleFiberRoot(uc,r,a)}catch(u){ao||(ao=!0,l("React instrumentation encountered an error: %s",u))}}function M0(r,a){if(Sr&&typeof Sr.onCommitFiberRoot=="function")try{var u=(r.current.flags&jn)===jn;if(at){var f;switch(a){case fa:f=Xd;break;case zs:f=L0;break;case Tr:f=Is;break;case hh:f=th;break;default:f=Is;break}Sr.onCommitFiberRoot(uc,r,f,u)}}catch(h){ao||(ao=!0,l("React instrumentation encountered an error: %s",h))}}function B4(r){if(Sr&&typeof Sr.onPostCommitFiberRoot=="function")try{Sr.onPostCommitFiberRoot(uc,r)}catch(a){ao||(ao=!0,l("React instrumentation encountered an error: %s",a))}}function U4(r){if(Sr&&typeof Sr.onCommitFiberUnmount=="function")try{Sr.onCommitFiberUnmount(uc,r)}catch(a){ao||(ao=!0,l("React instrumentation encountered an error: %s",a))}}function mi(r){if(typeof Pi=="function"&&(O0(r),o(r)),Sr&&typeof Sr.setStrictMode=="function")try{Sr.setStrictMode(uc,r)}catch(a){ao||(ao=!0,l("React instrumentation encountered an error: %s",a))}}function P0(r){lt=r}function j4(){{for(var r=new Map,a=1,u=0;u<j0;u++){var f=q4(a);r.set(a,f),a*=2}return r}}function Qd(r){lt!==null&&typeof lt.markCommitStarted=="function"&&lt.markCommitStarted(r)}function I0(){lt!==null&&typeof lt.markCommitStopped=="function"&&lt.markCommitStopped()}function Jd(r){lt!==null&&typeof lt.markComponentRenderStarted=="function"&&lt.markComponentRenderStarted(r)}function xf(){lt!==null&&typeof lt.markComponentRenderStopped=="function"&&lt.markComponentRenderStopped()}function ep(r){lt!==null&&typeof lt.markComponentPassiveEffectMountStarted=="function"&&lt.markComponentPassiveEffectMountStarted(r)}function V4(){lt!==null&&typeof lt.markComponentPassiveEffectMountStopped=="function"&&lt.markComponentPassiveEffectMountStopped()}function H4(r){lt!==null&&typeof lt.markComponentPassiveEffectUnmountStarted=="function"&&lt.markComponentPassiveEffectUnmountStarted(r)}function D0(){lt!==null&&typeof lt.markComponentPassiveEffectUnmountStopped=="function"&&lt.markComponentPassiveEffectUnmountStopped()}function Dy(r){lt!==null&&typeof lt.markComponentLayoutEffectMountStarted=="function"&&lt.markComponentLayoutEffectMountStarted(r)}function W4(){lt!==null&&typeof lt.markComponentLayoutEffectMountStopped=="function"&&lt.markComponentLayoutEffectMountStopped()}function $y(r){lt!==null&&typeof lt.markComponentLayoutEffectUnmountStarted=="function"&&lt.markComponentLayoutEffectUnmountStarted(r)}function Fy(){lt!==null&&typeof lt.markComponentLayoutEffectUnmountStopped=="function"&&lt.markComponentLayoutEffectUnmountStopped()}function zy(r,a,u){lt!==null&&typeof lt.markComponentErrored=="function"&&lt.markComponentErrored(r,a,u)}function $0(r,a,u){lt!==null&&typeof lt.markComponentSuspended=="function"&&lt.markComponentSuspended(r,a,u)}function G4(r){lt!==null&&typeof lt.markLayoutEffectsStarted=="function"&&lt.markLayoutEffectsStarted(r)}function F0(){lt!==null&&typeof lt.markLayoutEffectsStopped=="function"&&lt.markLayoutEffectsStopped()}function By(r){lt!==null&&typeof lt.markPassiveEffectsStarted=="function"&&lt.markPassiveEffectsStarted(r)}function Uy(){lt!==null&&typeof lt.markPassiveEffectsStopped=="function"&&lt.markPassiveEffectsStopped()}function z0(r){lt!==null&&typeof lt.markRenderStarted=="function"&&lt.markRenderStarted(r)}function nh(){lt!==null&&typeof lt.markRenderYielded=="function"&&lt.markRenderYielded()}function jy(){lt!==null&&typeof lt.markRenderStopped=="function"&&lt.markRenderStopped()}function Vy(r){lt!==null&&typeof lt.markRenderScheduled=="function"&&lt.markRenderScheduled(r)}function Hy(r,a){lt!==null&&typeof lt.markForceUpdateScheduled=="function"&&lt.markForceUpdateScheduled(r,a)}function B0(r,a){lt!==null&&typeof lt.markStateUpdateScheduled=="function"&&lt.markStateUpdateScheduled(r,a)}var Ft=0,Nn=1,Gn=2,Yr=8,_o=16,Wy=Math.clz32?Math.clz32:Y4,U0=Math.log,xn=Math.LN2;function Y4(r){var a=r>>>0;return a===0?32:31-(U0(a)/xn|0)|0}var j0=31,Be=0,oi=0,qt=1,Sf=2,Jr=4,cc=8,oo=16,fc=32,dc=4194240,wf=64,ca=128,Ds=256,tp=512,rh=1024,Cf=2048,ih=4096,np=8192,ah=16384,rp=32768,ip=65536,$s=131072,V0=262144,Fs=524288,oh=1048576,sh=2097152,Nf=130023424,Ef=4194304,H0=8388608,W0=16777216,lh=33554432,uh=67108864,Gy=Ef,_f=134217728,G0=268435455,hi=268435456,ea=536870912,so=1073741824;function q4(r){{if(r&qt)return"Sync";if(r&Sf)return"InputContinuousHydration";if(r&Jr)return"InputContinuous";if(r&cc)return"DefaultHydration";if(r&oo)return"Default";if(r&fc)return"TransitionHydration";if(r&dc)return"Transition";if(r&Nf)return"Retry";if(r&_f)return"SelectiveHydration";if(r&hi)return"IdleHydration";if(r&ea)return"Idle";if(r&so)return"Offscreen"}}var rr=-1,El=wf,ap=Ef;function Tf(r){switch(_l(r)){case qt:return qt;case Sf:return Sf;case Jr:return Jr;case cc:return cc;case oo:return oo;case fc:return fc;case wf:case ca:case Ds:case tp:case rh:case Cf:case ih:case np:case ah:case rp:case ip:case $s:case V0:case Fs:case oh:case sh:return r&dc;case Ef:case H0:case W0:case lh:case uh:return r&Nf;case _f:return _f;case hi:return hi;case ea:return ea;case so:return so;default:return l("Should have found matching lanes. This is a bug in React."),r}}function ch(r,a){var u=r.pendingLanes;if(u===Be)return Be;var f=Be,h=r.suspendedLanes,x=r.pingedLanes,_=u&G0;if(_!==Be){var A=_&~h;if(A!==Be)f=Tf(A);else{var M=_&x;M!==Be&&(f=Tf(M))}}else{var U=u&~h;U!==Be?f=Tf(U):x!==Be&&(f=Tf(x))}if(f===Be)return Be;if(a!==Be&&a!==f&&(a&h)===Be){var H=_l(f),oe=_l(a);if(H>=oe||H===oo&&(oe&dc)!==Be)return a}(f&Jr)!==Be&&(f|=u&oo);var re=r.entangledLanes;if(re!==Be)for(var xe=r.entanglements,Se=f&re;Se>0;){var Re=ou(Se),ht=1<<Re;f|=xe[Re],Se&=~ht}return f}function Yy(r,a){for(var u=r.eventTimes,f=rr;a>0;){var h=ou(a),x=1<<h,_=u[h];_>f&&(f=_),a&=~x}return f}function Rf(r,a){switch(r){case qt:case Sf:case Jr:return a+250;case cc:case oo:case fc:case wf:case ca:case Ds:case tp:case rh:case Cf:case ih:case np:case ah:case rp:case ip:case $s:case V0:case Fs:case oh:case sh:return a+5e3;case Ef:case H0:case W0:case lh:case uh:return rr;case _f:case hi:case ea:case so:return rr;default:return l("Should have found matching lanes. This is a bug in React."),rr}}function op(r,a){for(var u=r.pendingLanes,f=r.suspendedLanes,h=r.pingedLanes,x=r.expirationTimes,_=u;_>0;){var A=ou(_),M=1<<A,U=x[A];U===rr?((M&f)===Be||(M&h)!==Be)&&(x[A]=Rf(M,a)):U<=a&&(r.expiredLanes|=M),_&=~M}}function Z4(r){return Tf(r.pendingLanes)}function fh(r){var a=r.pendingLanes&~so;return a!==Be?a:a&so?so:Be}function qy(r){return(r&qt)!==Be}function kf(r){return(r&G0)!==Be}function Y0(r){return(r&Nf)===r}function dh(r){var a=qt|Jr|oo;return(r&a)===Be}function q0(r){return(r&dc)===r}function pc(r,a){var u=Sf|Jr|cc|oo;return(a&u)!==Be}function K4(r,a){return(a&r.expiredLanes)!==Be}function Z0(r){return(r&dc)!==Be}function sp(){var r=El;return El<<=1,(El&dc)===Be&&(El=wf),r}function Zy(){var r=ap;return ap<<=1,(ap&Nf)===Be&&(ap=Ef),r}function _l(r){return r&-r}function lp(r){return _l(r)}function ou(r){return 31-Wy(r)}function ss(r){return ou(r)}function za(r,a){return(r&a)!==Be}function mc(r,a){return(r&a)===a}function hn(r,a){return r|a}function up(r,a){return r&~a}function Ky(r,a){return r&a}function bR(r){return r}function Tl(r,a){return r!==oi&&r<a?r:a}function cp(r){for(var a=[],u=0;u<j0;u++)a.push(r);return a}function hc(r,a,u){r.pendingLanes|=a,a!==ea&&(r.suspendedLanes=Be,r.pingedLanes=Be);var f=r.eventTimes,h=ss(a);f[h]=u}function K0(r,a){r.suspendedLanes|=a,r.pingedLanes&=~a;for(var u=r.expirationTimes,f=a;f>0;){var h=ou(f),x=1<<h;u[h]=rr,f&=~x}}function fp(r,a,u){r.pingedLanes|=r.suspendedLanes&a}function Af(r,a){var u=r.pendingLanes&~a;r.pendingLanes=a,r.suspendedLanes=Be,r.pingedLanes=Be,r.expiredLanes&=a,r.mutableReadLanes&=a,r.entangledLanes&=a;for(var f=r.entanglements,h=r.eventTimes,x=r.expirationTimes,_=u;_>0;){var A=ou(_),M=1<<A;f[A]=Be,h[A]=rr,x[A]=rr,_&=~M}}function zt(r,a){for(var u=r.entangledLanes|=a,f=r.entanglements,h=u;h;){var x=ou(h),_=1<<x;_&a|f[x]&a&&(f[x]|=a),h&=~_}}function ph(r,a){var u=_l(a),f;switch(u){case Jr:f=Sf;break;case oo:f=cc;break;case wf:case ca:case Ds:case tp:case rh:case Cf:case ih:case np:case ah:case rp:case ip:case $s:case V0:case Fs:case oh:case sh:case Ef:case H0:case W0:case lh:case uh:f=fc;break;case ea:f=hi;break;default:f=oi;break}return(f&(r.suspendedLanes|a))!==oi?oi:f}function mh(r,a,u){if(!!Ii)for(var f=r.pendingUpdatersLaneMap;u>0;){var h=ss(u),x=1<<h,_=f[h];_.add(a),u&=~x}}function su(r,a){if(!!Ii)for(var u=r.pendingUpdatersLaneMap,f=r.memoizedUpdaters;a>0;){var h=ss(a),x=1<<h,_=u[h];_.size>0&&(_.forEach(function(A){var M=A.alternate;(M===null||!f.has(M))&&f.add(A)}),_.clear()),a&=~x}}function Xy(r,a){return null}var fa=qt,zs=Jr,Tr=oo,hh=ea,dp=oi;function To(){return dp}function vi(r){dp=r}function Qy(r,a){var u=dp;try{return dp=r,a()}finally{dp=u}}function X4(r,a){return r!==0&&r<a?r:a}function Q4(r,a){return r===0||r>a?r:a}function X0(r,a){return r!==0&&r<a}function Bs(r){var a=_l(r);return X0(fa,a)?X0(zs,a)?kf(a)?Tr:hh:zs:fa}function gi(r){var a=r.current.memoizedState;return a.isDehydrated}var vh;function J4(r){vh=r}function Q0(r){vh(r)}var J0;function ew(r){J0=r}var Lf;function Jy(r){Lf=r}var e1;function tw(r){e1=r}var e2;function nw(r){e2=r}var t1=!1,pp=[],Rl=null,lu=null,Us=null,Of=new Map,kl=new Map,js=[],t2=["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 n2(r){return t2.indexOf(r)>-1}function gh(r,a,u,f,h){return{blockedOn:r,domEventName:a,eventSystemFlags:u,nativeEvent:h,targetContainers:[f]}}function n1(r,a){switch(r){case"focusin":case"focusout":Rl=null;break;case"dragenter":case"dragleave":lu=null;break;case"mouseover":case"mouseout":Us=null;break;case"pointerover":case"pointerout":{var u=a.pointerId;Of.delete(u);break}case"gotpointercapture":case"lostpointercapture":{var f=a.pointerId;kl.delete(f);break}}}function Ba(r,a,u,f,h,x){if(r===null||r.nativeEvent!==x){var _=gh(a,u,f,h,x);if(a!==null){var A=Je(a);A!==null&&J0(A)}return _}r.eventSystemFlags|=f;var M=r.targetContainers;return h!==null&&M.indexOf(h)===-1&&M.push(h),r}function vc(r,a,u,f,h){switch(a){case"focusin":{var x=h;return Rl=Ba(Rl,r,a,u,f,x),!0}case"dragenter":{var _=h;return lu=Ba(lu,r,a,u,f,_),!0}case"mouseover":{var A=h;return Us=Ba(Us,r,a,u,f,A),!0}case"pointerover":{var M=h,U=M.pointerId;return Of.set(U,Ba(Of.get(U)||null,r,a,u,f,M)),!0}case"gotpointercapture":{var H=h,oe=H.pointerId;return kl.set(oe,Ba(kl.get(oe)||null,r,a,u,f,H)),!0}}return!1}function r2(r){var a=Fe(r.target);if(a!==null){var u=lc(a);if(u!==null){var f=u.tag;if(f===z){var h=Ay(u);if(h!==null){r.blockedOn=h,e2(r.priority,function(){Lf(u)});return}}else if(f===b){var x=u.stateNode;if(gi(x)){r.blockedOn=Jm(u);return}}}}r.blockedOn=null}function i2(r){for(var a=e1(),u={blockedOn:null,target:r,priority:a},f=0;f<js.length&&X0(a,js[f].priority);f++);js.splice(f,0,u),f===0&&r2(u)}function bh(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;a.length>0;){var u=a[0],f=i1(r.domEventName,r.eventSystemFlags,u,r.nativeEvent);if(f===null){var h=r.nativeEvent,x=new h.constructor(h.type,h);Vd(x),h.target.dispatchEvent(x),rc()}else{var _=Je(f);return _!==null&&J0(_),r.blockedOn=f,!1}a.shift()}return!0}function a2(r,a,u){bh(r)&&u.delete(a)}function rw(){t1=!1,Rl!==null&&bh(Rl)&&(Rl=null),lu!==null&&bh(lu)&&(lu=null),Us!==null&&bh(Us)&&(Us=null),Of.forEach(a2),kl.forEach(a2)}function mp(r,a){r.blockedOn===a&&(r.blockedOn=null,t1||(t1=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,rw)))}function hp(r){if(pp.length>0){mp(pp[0],r);for(var a=1;a<pp.length;a++){var u=pp[a];u.blockedOn===r&&(u.blockedOn=null)}}Rl!==null&&mp(Rl,r),lu!==null&&mp(lu,r),Us!==null&&mp(Us,r);var f=function(A){return mp(A,r)};Of.forEach(f),kl.forEach(f);for(var h=0;h<js.length;h++){var x=js[h];x.blockedOn===r&&(x.blockedOn=null)}for(;js.length>0;){var _=js[0];if(_.blockedOn!==null)break;r2(_),_.blockedOn===null&&js.shift()}}var Mf=n.ReactCurrentBatchConfig,r1=!0;function o2(r){r1=!!r}function iw(){return r1}function aw(r,a,u){var f=u2(a),h;switch(f){case fa:h=ow;break;case zs:h=s2;break;case Tr:default:h=yh;break}return h.bind(null,a,u,r)}function ow(r,a,u,f){var h=To(),x=Mf.transition;Mf.transition=null;try{vi(fa),yh(r,a,u,f)}finally{vi(h),Mf.transition=x}}function s2(r,a,u,f){var h=To(),x=Mf.transition;Mf.transition=null;try{vi(zs),yh(r,a,u,f)}finally{vi(h),Mf.transition=x}}function yh(r,a,u,f){!r1||l2(r,a,u,f)}function l2(r,a,u,f){var h=i1(r,a,u,f);if(h===null){x1(r,a,f,xh,u),n1(r,f);return}if(vc(h,r,a,u,f)){f.stopPropagation();return}if(n1(r,f),a&uf&&n2(r)){for(;h!==null;){var x=Je(h);x!==null&&Q0(x);var _=i1(r,a,u,f);if(_===null&&x1(r,a,f,xh,u),_===h)break;h=_}h!==null&&f.stopPropagation();return}x1(r,a,f,null,u)}var xh=null;function i1(r,a,u,f){xh=null;var h=y0(f),x=Fe(h);if(x!==null){var _=lc(x);if(_===null)x=null;else{var A=_.tag;if(A===z){var M=Ay(_);if(M!==null)return M;x=null}else if(A===b){var U=_.stateNode;if(gi(U))return Jm(_);x=null}else _!==x&&(x=null)}}return xh=x,null}function u2(r){switch(r){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 fa;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 zs;case"message":{var a=au();switch(a){case Xd:return fa;case L0:return zs;case Is:case z4:return Tr;case th:return hh;default:return Tr}}default:return Tr}}function c2(r,a,u){return r.addEventListener(a,u,!1),u}function sw(r,a,u){return r.addEventListener(a,u,!0),u}function lw(r,a,u,f){return r.addEventListener(a,u,{capture:!0,passive:f}),u}function uw(r,a,u,f){return r.addEventListener(a,u,{passive:f}),u}var vp=null,a1=null,gp=null;function Ro(r){return vp=r,a1=d2(),!0}function cw(){vp=null,a1=null,gp=null}function f2(){if(gp)return gp;var r,a=a1,u=a.length,f,h=d2(),x=h.length;for(r=0;r<u&&a[r]===h[r];r++);var _=u-r;for(f=1;f<=_&&a[u-f]===h[x-f];f++);var A=f>1?1-f:void 0;return gp=h.slice(r,A),gp}function d2(){return"value"in vp?vp.value:vp.textContent}function bp(r){var a,u=r.keyCode;return"charCode"in r?(a=r.charCode,a===0&&u===13&&(a=13)):a=u,a===10&&(a=13),a>=32||a===13?a:0}function Sh(){return!0}function p2(){return!1}function lo(r){function a(u,f,h,x,_){this._reactName=u,this._targetInst=h,this.type=f,this.nativeEvent=x,this.target=_,this.currentTarget=null;for(var A in r)if(!!r.hasOwnProperty(A)){var M=r[A];M?this[A]=M(x):this[A]=x[A]}var U=x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1;return U?this.isDefaultPrevented=Sh:this.isDefaultPrevented=p2,this.isPropagationStopped=p2,this}return tn(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;!u||(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=Sh)},stopPropagation:function(){var u=this.nativeEvent;!u||(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=Sh)},persist:function(){},isPersistent:Sh}),a}var Pf={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},yp=lo(Pf),xp=tn({},Pf,{view:0,detail:0}),fw=lo(xp),o1,s1,Sp;function dw(r){r!==Sp&&(Sp&&r.type==="mousemove"?(o1=r.screenX-Sp.screenX,s1=r.screenY-Sp.screenY):(o1=0,s1=0),Sp=r)}var wh=tn({},xp,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:c1,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(dw(r),o1)},movementY:function(r){return"movementY"in r?r.movementY:s1}}),m2=lo(wh),pw=tn({},wh,{dataTransfer:0}),mw=lo(pw),hw=tn({},xp,{relatedTarget:0}),l1=lo(hw),vw=tn({},Pf,{animationName:0,elapsedTime:0,pseudoElement:0}),gw=lo(vw),bw=tn({},Pf,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),yw=lo(bw),xw=tn({},Pf,{data:0}),h2=lo(xw),Sw=h2,ww={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},u1={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 v2(r){if(r.key){var a=ww[r.key]||r.key;if(a!=="Unidentified")return a}if(r.type==="keypress"){var u=bp(r);return u===13?"Enter":String.fromCharCode(u)}return r.type==="keydown"||r.type==="keyup"?u1[r.keyCode]||"Unidentified":""}var Cw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Nw(r){var a=this,u=a.nativeEvent;if(u.getModifierState)return u.getModifierState(r);var f=Cw[r];return f?!!u[f]:!1}function c1(r){return Nw}var Ew=tn({},xp,{key:v2,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:c1,charCode:function(r){return r.type==="keypress"?bp(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?bp(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),_w=lo(Ew),Tw=tn({},wh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),g2=lo(Tw),Rw=tn({},xp,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:c1}),b2=lo(Rw),kw=tn({},Pf,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ch=lo(kw),Aw=tn({},wh,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),Lw=lo(Aw),Ow=[9,13,27,32],y2=229,f1=Vt&&"CompositionEvent"in window,wp=null;Vt&&"documentMode"in document&&(wp=document.documentMode);var Mw=Vt&&"TextEvent"in window&&!wp,x2=Vt&&(!f1||wp&&wp>8&&wp<=11),S2=32,w2=String.fromCharCode(S2);function Pw(){It("onBeforeInput",["compositionend","keypress","textInput","paste"]),It("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),It("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),It("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var C2=!1;function Iw(r){return(r.ctrlKey||r.altKey||r.metaKey)&&!(r.ctrlKey&&r.altKey)}function Dw(r){switch(r){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function $w(r,a){return r==="keydown"&&a.keyCode===y2}function N2(r,a){switch(r){case"keyup":return Ow.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==y2;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function d1(r){var a=r.detail;return typeof a=="object"&&"data"in a?a.data:null}function p1(r){return r.locale==="ko"}var If=!1;function Fw(r,a,u,f,h){var x,_;if(f1?x=Dw(a):If?N2(a,f)&&(x="onCompositionEnd"):$w(a,f)&&(x="onCompositionStart"),!x)return null;x2&&!p1(f)&&(!If&&x==="onCompositionStart"?If=Ro(h):x==="onCompositionEnd"&&If&&(_=f2()));var A=on(u,x);if(A.length>0){var M=new h2(x,a,null,f,h);if(r.push({event:M,listeners:A}),_)M.data=_;else{var U=d1(f);U!==null&&(M.data=U)}}}function zw(r,a){switch(r){case"compositionend":return d1(a);case"keypress":var u=a.which;return u!==S2?null:(C2=!0,w2);case"textInput":var f=a.data;return f===w2&&C2?null:f;default:return null}}function Bw(r,a){if(If){if(r==="compositionend"||!f1&&N2(r,a)){var u=f2();return cw(),If=!1,u}return null}switch(r){case"paste":return null;case"keypress":if(!Iw(a)){if(a.char&&a.char.length>1)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return x2&&!p1(a)?null:a.data;default:return null}}function Nh(r,a,u,f,h){var x;if(Mw?x=zw(a,f):x=Bw(a,f),!x)return null;var _=on(u,"onBeforeInput");if(_.length>0){var A=new Sw("onBeforeInput","beforeinput",null,f,h);r.push({event:A,listeners:_}),A.data=x}}function Uw(r,a,u,f,h,x,_){Fw(r,a,u,f,h),Nh(r,a,u,f,h)}var jw={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 E2(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!jw[r.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 Vw(r){if(!Vt)return!1;var a="on"+r,u=a in document;if(!u){var f=document.createElement("div");f.setAttribute(a,"return;"),u=typeof f[a]=="function"}return u}function Hw(){It("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function _2(r,a,u,f){Sy(f);var h=on(a,"onChange");if(h.length>0){var x=new yp("onChange","change",null,u,f);r.push({event:x,listeners:h})}}var Cp=null,Np=null;function Ww(r){var a=r.nodeName&&r.nodeName.toLowerCase();return a==="select"||a==="input"&&r.type==="file"}function Gw(r){var a=[];_2(a,Np,r,y0(r)),Ey(Yw,a)}function Yw(r){y1(r,0)}function gc(r){var a=bt(r);if(W(a))return r}function qw(r,a){if(r==="change")return a}var m1=!1;Vt&&(m1=Vw("input")&&(!document.documentMode||document.documentMode>9));function T2(r,a){Cp=r,Np=a,Cp.attachEvent("onpropertychange",h1)}function Eh(){!Cp||(Cp.detachEvent("onpropertychange",h1),Cp=null,Np=null)}function h1(r){r.propertyName==="value"&&gc(Np)&&Gw(r)}function R2(r,a,u){r==="focusin"?(Eh(),T2(a,u)):r==="focusout"&&Eh()}function k2(r,a){if(r==="selectionchange"||r==="keyup"||r==="keydown")return gc(Np)}function A2(r){var a=r.nodeName;return a&&a.toLowerCase()==="input"&&(r.type==="checkbox"||r.type==="radio")}function Zw(r,a){if(r==="click")return gc(a)}function Kw(r,a){if(r==="input"||r==="change")return gc(a)}function Xw(r){var a=r._wrapperState;!a||!a.controlled||r.type!=="number"||Ye(r,"number",r.value)}function _h(r,a,u,f,h,x,_){var A=u?bt(u):window,M,U;if(Ww(A)?M=qw:E2(A)?m1?M=Kw:(M=k2,U=R2):A2(A)&&(M=Zw),M){var H=M(a,u);if(H){_2(r,H,f,h);return}}U&&U(a,A,u),a==="focusout"&&Xw(A)}function Th(){We("onMouseEnter",["mouseout","mouseover"]),We("onMouseLeave",["mouseout","mouseover"]),We("onPointerEnter",["pointerout","pointerover"]),We("onPointerLeave",["pointerout","pointerover"])}function Qw(r,a,u,f,h,x,_){var A=a==="mouseover"||a==="pointerover",M=a==="mouseout"||a==="pointerout";if(A&&!qm(f)){var U=f.relatedTarget||f.fromElement;if(U&&(Fe(U)||Le(U)))return}if(!(!M&&!A)){var H;if(h.window===h)H=h;else{var oe=h.ownerDocument;oe?H=oe.defaultView||oe.parentWindow:H=window}var re,xe;if(M){var Se=f.relatedTarget||f.toElement;if(re=u,xe=Se?Fe(Se):null,xe!==null){var Re=lc(xe);(xe!==Re||xe.tag!==C&&xe.tag!==T)&&(xe=null)}}else re=null,xe=u;if(re!==xe){var ht=m2,Ot="onMouseLeave",Et="onMouseEnter",$n="mouse";(a==="pointerout"||a==="pointerover")&&(ht=g2,Ot="onPointerLeave",Et="onPointerEnter",$n="pointer");var _n=re==null?H:bt(re),he=xe==null?H:bt(xe),ke=new ht(Ot,$n+"leave",re,f,h);ke.target=_n,ke.relatedTarget=he;var ve=null,Ke=Fe(h);if(Ke===u){var vt=new ht(Et,$n+"enter",xe,f,h);vt.target=he,vt.relatedTarget=_n,ve=vt}vC(r,ke,ve,re,xe)}}}function Jw(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}var da=typeof Object.is=="function"?Object.is:Jw;function Df(r,a){if(da(r,a))return!0;if(typeof r!="object"||r===null||typeof a!="object"||a===null)return!1;var u=Object.keys(r),f=Object.keys(a);if(u.length!==f.length)return!1;for(var h=0;h<u.length;h++){var x=u[h];if(!Ce.call(a,x)||!da(r[x],a[x]))return!1}return!0}function L2(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function eC(r){for(;r;){if(r.nextSibling)return r.nextSibling;r=r.parentNode}}function O2(r,a){for(var u=L2(r),f=0,h=0;u;){if(u.nodeType===Ls){if(h=f+u.textContent.length,f<=a&&h>=a)return{node:u,offset:a-f};f=h}u=L2(eC(u))}}function tC(r){var a=r.ownerDocument,u=a&&a.defaultView||window,f=u.getSelection&&u.getSelection();if(!f||f.rangeCount===0)return null;var h=f.anchorNode,x=f.anchorOffset,_=f.focusNode,A=f.focusOffset;try{h.nodeType,_.nodeType}catch{return null}return nC(r,h,x,_,A)}function nC(r,a,u,f,h){var x=0,_=-1,A=-1,M=0,U=0,H=r,oe=null;e:for(;;){for(var re=null;H===a&&(u===0||H.nodeType===Ls)&&(_=x+u),H===f&&(h===0||H.nodeType===Ls)&&(A=x+h),H.nodeType===Ls&&(x+=H.nodeValue.length),(re=H.firstChild)!==null;)oe=H,H=re;for(;;){if(H===r)break e;if(oe===a&&++M===u&&(_=x),oe===f&&++U===h&&(A=x),(re=H.nextSibling)!==null)break;H=oe,oe=H.parentNode}H=re}return _===-1||A===-1?null:{start:_,end:A}}function rC(r,a){var u=r.ownerDocument||document,f=u&&u.defaultView||window;if(!!f.getSelection){var h=f.getSelection(),x=r.textContent.length,_=Math.min(a.start,x),A=a.end===void 0?_:Math.min(a.end,x);if(!h.extend&&_>A){var M=A;A=_,_=M}var U=O2(r,_),H=O2(r,A);if(U&&H){if(h.rangeCount===1&&h.anchorNode===U.node&&h.anchorOffset===U.offset&&h.focusNode===H.node&&h.focusOffset===H.offset)return;var oe=u.createRange();oe.setStart(U.node,U.offset),h.removeAllRanges(),_>A?(h.addRange(oe),h.extend(H.node,H.offset)):(oe.setEnd(H.node,H.offset),h.addRange(oe))}}}function M2(r){return r&&r.nodeType===Ls}function P2(r,a){return!r||!a?!1:r===a?!0:M2(r)?!1:M2(a)?P2(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1}function iC(r){return r&&r.ownerDocument&&P2(r.ownerDocument.documentElement,r)}function aC(r){try{return typeof r.contentWindow.location.href=="string"}catch{return!1}}function I2(){for(var r=window,a=ne();a instanceof r.HTMLIFrameElement;){if(aC(a))r=a.contentWindow;else return a;a=ne(r.document)}return a}function v1(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a&&(a==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||a==="textarea"||r.contentEditable==="true")}function ls(){var r=I2();return{focusedElem:r,selectionRange:v1(r)?sC(r):null}}function oC(r){var a=I2(),u=r.focusedElem,f=r.selectionRange;if(a!==u&&iC(u)){f!==null&&v1(u)&&bc(u,f);for(var h=[],x=u;x=x.parentNode;)x.nodeType===Fa&&h.push({element:x,left:x.scrollLeft,top:x.scrollTop});typeof u.focus=="function"&&u.focus();for(var _=0;_<h.length;_++){var A=h[_];A.element.scrollLeft=A.left,A.element.scrollTop=A.top}}}function sC(r){var a;return"selectionStart"in r?a={start:r.selectionStart,end:r.selectionEnd}:a=tC(r),a||{start:0,end:0}}function bc(r,a){var u=a.start,f=a.end;f===void 0&&(f=u),"selectionStart"in r?(r.selectionStart=u,r.selectionEnd=Math.min(f,r.value.length)):rC(r,a)}var cn=Vt&&"documentMode"in document&&document.documentMode<=11;function lC(){It("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var si=null,Ir=null,Ep=null,Vs=!1;function uC(r){if("selectionStart"in r&&v1(r))return{start:r.selectionStart,end:r.selectionEnd};var a=r.ownerDocument&&r.ownerDocument.defaultView||window,u=a.getSelection();return{anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}}function cC(r){return r.window===r?r.document:r.nodeType===is?r:r.ownerDocument}function D2(r,a,u){var f=cC(u);if(!(Vs||si==null||si!==ne(f))){var h=uC(si);if(!Ep||!Df(Ep,h)){Ep=h;var x=on(Ir,"onSelect");if(x.length>0){var _=new yp("onSelect","select",null,a,u);r.push({event:_,listeners:x}),_.target=si}}}}function fC(r,a,u,f,h,x,_){var A=u?bt(u):window;switch(a){case"focusin":(E2(A)||A.contentEditable==="true")&&(si=A,Ir=u,Ep=null);break;case"focusout":si=null,Ir=null,Ep=null;break;case"mousedown":Vs=!0;break;case"contextmenu":case"mouseup":case"dragend":Vs=!1,D2(r,f,h);break;case"selectionchange":if(cn)break;case"keydown":case"keyup":D2(r,f,h)}}function Rh(r,a){var u={};return u[r.toLowerCase()]=a.toLowerCase(),u["Webkit"+r]="webkit"+a,u["Moz"+r]="moz"+a,u}var uu={animationend:Rh("Animation","AnimationEnd"),animationiteration:Rh("Animation","AnimationIteration"),animationstart:Rh("Animation","AnimationStart"),transitionend:Rh("Transition","TransitionEnd")},g1={},Hs={};Vt&&(Hs=document.createElement("div").style,"AnimationEvent"in window||(delete uu.animationend.animation,delete uu.animationiteration.animation,delete uu.animationstart.animation),"TransitionEvent"in window||delete uu.transitionend.transition);function _p(r){if(g1[r])return g1[r];if(!uu[r])return r;var a=uu[r];for(var u in a)if(a.hasOwnProperty(u)&&u in Hs)return g1[r]=a[u];return r}var Tp=_p("animationend"),Rr=_p("animationiteration"),Dr=_p("animationstart"),b1=_p("transitionend"),$2=new Map,F2=["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 cu(r,a){$2.set(r,a),It(a,[r])}function dC(){for(var r=0;r<F2.length;r++){var a=F2[r],u=a.toLowerCase(),f=a[0].toUpperCase()+a.slice(1);cu(u,"on"+f)}cu(Tp,"onAnimationEnd"),cu(Rr,"onAnimationIteration"),cu(Dr,"onAnimationStart"),cu("dblclick","onDoubleClick"),cu("focusin","onFocus"),cu("focusout","onBlur"),cu(b1,"onTransitionEnd")}function pC(r,a,u,f,h,x,_){var A=$2.get(a);if(A!==void 0){var M=yp,U=a;switch(a){case"keypress":if(bp(f)===0)return;case"keydown":case"keyup":M=_w;break;case"focusin":U="focus",M=l1;break;case"focusout":U="blur",M=l1;break;case"beforeblur":case"afterblur":M=l1;break;case"click":if(f.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":M=m2;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":M=mw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":M=b2;break;case Tp:case Rr:case Dr:M=gw;break;case b1:M=Ch;break;case"scroll":M=fw;break;case"wheel":M=Lw;break;case"copy":case"cut":case"paste":M=yw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":M=g2;break}var H=(x&uf)!==0;{var oe=!H&&a==="scroll",re=Al(u,A,f.type,H,oe);if(re.length>0){var xe=new M(A,U,null,f,h);r.push({event:xe,listeners:re})}}}}dC(),Th(),Hw(),lC(),Pw();function mC(r,a,u,f,h,x,_){pC(r,a,u,f,h,x);var A=(x&Ym)===0;A&&(Qw(r,a,u,f,h),_h(r,a,u,f,h),fC(r,a,u,f,h),Uw(r,a,u,f,h))}var $f=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],yc=new Set(["cancel","close","invalid","load","scroll","toggle"].concat($f));function kh(r,a,u){var f=r.type||"unknown-event";r.currentTarget=u,Gd(f,a,void 0,r),r.currentTarget=null}function hC(r,a,u){var f;if(u)for(var h=a.length-1;h>=0;h--){var x=a[h],_=x.instance,A=x.currentTarget,M=x.listener;if(_!==f&&r.isPropagationStopped())return;kh(r,M,A),f=_}else for(var U=0;U<a.length;U++){var H=a[U],oe=H.instance,re=H.currentTarget,xe=H.listener;if(oe!==f&&r.isPropagationStopped())return;kh(r,xe,re),f=oe}}function y1(r,a){for(var u=(a&uf)!==0,f=0;f<r.length;f++){var h=r[f],x=h.event,_=h.listeners;hC(x,_,u)}Ty()}function Ah(r,a,u,f,h){var x=y0(u),_=[];mC(_,r,f,u,x,a),y1(_,a)}function En(r,a){yc.has(r)||l('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',r);var u=!1,f=Ht(a),h=Jn(r,u);f.has(h)||(z2(a,r,Gm,u),f.add(h))}function fu(r,a,u){yc.has(r)&&!a&&l('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',r);var f=0;a&&(f|=uf),z2(u,r,f,a)}var Lh="_reactListening"+Math.random().toString(36).slice(2);function Rp(r){if(!r[Lh]){r[Lh]=!0,He.forEach(function(u){u!=="selectionchange"&&(yc.has(u)||fu(u,!1,r),fu(u,!0,r))});var a=r.nodeType===is?r:r.ownerDocument;a!==null&&(a[Lh]||(a[Lh]=!0,fu("selectionchange",!1,a)))}}function z2(r,a,u,f,h){var x=aw(r,a,u),_=void 0;Wd&&(a==="touchstart"||a==="touchmove"||a==="wheel")&&(_=!0),r=r,f?_!==void 0?lw(r,a,x,_):sw(r,a,x):_!==void 0?uw(r,a,x,_):c2(r,a,x)}function B2(r,a){return r===a||r.nodeType===Wn&&r.parentNode===a}function x1(r,a,u,f,h){var x=f;if((a&jd)===0&&(a&Gm)===0){var _=h;if(f!==null){var A=f;e:for(;;){if(A===null)return;var M=A.tag;if(M===b||M===w){var U=A.stateNode.containerInfo;if(B2(U,_))break;if(M===w)for(var H=A.return;H!==null;){var oe=H.tag;if(oe===b||oe===w){var re=H.stateNode.containerInfo;if(B2(re,_))return}H=H.return}for(;U!==null;){var xe=Fe(U);if(xe===null)return;var Se=xe.tag;if(Se===C||Se===T){A=x=xe;continue e}U=U.parentNode}}A=A.return}}}Ey(function(){return Ah(r,a,u,x)})}function Ff(r,a,u){return{instance:r,listener:a,currentTarget:u}}function Al(r,a,u,f,h,x){for(var _=a!==null?a+"Capture":null,A=f?_:a,M=[],U=r,H=null;U!==null;){var oe=U,re=oe.stateNode,xe=oe.tag;if(xe===C&&re!==null&&(H=re,A!==null)){var Se=yl(U,A);Se!=null&&M.push(Ff(U,Se,H))}if(h)break;U=U.return}return M}function on(r,a){for(var u=a+"Capture",f=[],h=r;h!==null;){var x=h,_=x.stateNode,A=x.tag;if(A===C&&_!==null){var M=_,U=yl(h,u);U!=null&&f.unshift(Ff(h,U,M));var H=yl(h,a);H!=null&&f.push(Ff(h,H,M))}h=h.return}return f}function xc(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==C);return r||null}function ko(r,a){for(var u=r,f=a,h=0,x=u;x;x=xc(x))h++;for(var _=0,A=f;A;A=xc(A))_++;for(;h-_>0;)u=xc(u),h--;for(;_-h>0;)f=xc(f),_--;for(var M=h;M--;){if(u===f||f!==null&&u===f.alternate)return u;u=xc(u),f=xc(f)}return null}function S1(r,a,u,f,h){for(var x=a._reactName,_=[],A=u;A!==null&&A!==f;){var M=A,U=M.alternate,H=M.stateNode,oe=M.tag;if(U!==null&&U===f)break;if(oe===C&&H!==null){var re=H;if(h){var xe=yl(A,x);xe!=null&&_.unshift(Ff(A,xe,re))}else if(!h){var Se=yl(A,x);Se!=null&&_.push(Ff(A,Se,re))}}A=A.return}_.length!==0&&r.push({event:a,listeners:_})}function vC(r,a,u,f,h){var x=f&&h?ko(f,h):null;f!==null&&S1(r,a,f,x,!1),h!==null&&u!==null&&S1(r,u,h,x,!0)}function Jn(r,a){return r+"__"+(a?"capture":"bubble")}var Ua=!1,zf="dangerouslySetInnerHTML",Sc="suppressContentEditableWarning",du="suppressHydrationWarning",U2="autoFocus",wc="children",Cc="style",Oh="__html",w1,Mh,kp,j2,Ph,V2,H2;w1={dialog:!0,webview:!0},Mh=function(r,a){nr(r,a),by(r,a),xy(r,a,{registrationNameDependencies:ot,possibleRegistrationNames:wt})},V2=Vt&&!document.documentMode,kp=function(r,a,u){if(!Ua){var f=Ih(u),h=Ih(a);h!==f&&(Ua=!0,l("Prop `%s` did not match. Server: %s Client: %s",r,JSON.stringify(h),JSON.stringify(f)))}},j2=function(r){if(!Ua){Ua=!0;var a=[];r.forEach(function(u){a.push(u)}),l("Extra attributes from the server: %s",a)}},Ph=function(r,a){a===!1?l("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.",r,r,r):l("Expected `%s` listener to be a function, instead got a value of `%s` type.",r,typeof a)},H2=function(r,a){var u=r.namespaceURI===As?r.ownerDocument.createElement(r.tagName):r.ownerDocument.createElementNS(r.namespaceURI,r.tagName);return u.innerHTML=a,u.innerHTML};var gC=/\r\n?/g,C1=/\u0000|\uFFFD/g;function Ih(r){Mn(r);var a=typeof r=="string"?r:""+r;return a.replace(gC,`
`).replace(C1,"")}function Bf(r,a,u,f){var h=Ih(a),x=Ih(r);if(x!==h&&(f&&(Ua||(Ua=!0,l('Text content did not match. Server: "%s" Client: "%s"',x,h))),u&&K))throw new Error("Text content does not match server-rendered HTML.")}function W2(r){return r.nodeType===is?r:r.ownerDocument}function bC(){}function Dh(r){r.onclick=bC}function bi(r,a,u,f,h){for(var x in f)if(!!f.hasOwnProperty(x)){var _=f[x];if(x===Cc)_&&Object.freeze(_),fe(a,_);else if(x===zf){var A=_?_[Oh]:void 0;A!=null&&Bm(a,A)}else if(x===wc)if(typeof _=="string"){var M=r!=="textarea"||_!=="";M&&Fd(a,_)}else typeof _=="number"&&Fd(a,""+_);else x===Sc||x===du||x===U2||(ot.hasOwnProperty(x)?_!=null&&(typeof _!="function"&&Ph(x,_),x==="onScroll"&&En("scroll",a)):_!=null&&Ja(a,x,_,h))}}function ja(r,a,u,f){for(var h=0;h<a.length;h+=2){var x=a[h],_=a[h+1];x===Cc?fe(r,_):x===zf?Bm(r,_):x===wc?Fd(r,_):Ja(r,x,_,f)}}function yC(r,a,u,f){var h,x=W2(u),_,A=f;if(A===As&&(A=$d(r)),A===As){if(h=vl(r,a),!h&&r!==r.toLowerCase()&&l("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",r),r==="script"){var M=x.createElement("div");M.innerHTML="<script><\/script>";var U=M.firstChild;_=M.removeChild(U)}else if(typeof a.is=="string")_=x.createElement(r,{is:a.is});else if(_=x.createElement(r),r==="select"){var H=_;a.multiple?H.multiple=!0:a.size&&(H.size=a.size)}}else _=x.createElementNS(A,r);return A===As&&!h&&Object.prototype.toString.call(_)==="[object HTMLUnknownElement]"&&!Ce.call(w1,r)&&(w1[r]=!0,l("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",r)),_}function xC(r,a){return W2(a).createTextNode(r)}function SC(r,a,u,f){var h=vl(a,u);Mh(a,u);var x;switch(a){case"dialog":En("cancel",r),En("close",r),x=u;break;case"iframe":case"object":case"embed":En("load",r),x=u;break;case"video":case"audio":for(var _=0;_<$f.length;_++)En($f[_],r);x=u;break;case"source":En("error",r),x=u;break;case"img":case"image":case"link":En("error",r),En("load",r),x=u;break;case"details":En("toggle",r),x=u;break;case"input":O(r,u),x=S(r,u),En("invalid",r);break;case"option":xt(r,u),x=u;break;case"select":ks(r,u),x=$a(r,u),En("invalid",r);break;case"textarea":h0(r,u),x=m0(r,u),En("invalid",r);break;default:x=u}switch(tr(a,x),bi(a,r,f,x,h),a){case"input":Qi(r),se(r,u,!1);break;case"textarea":Qi(r),ec(r);break;case"option":Gt(r,u);break;case"select":Pd(r,u);break;default:typeof x.onClick=="function"&&Dh(r);break}}function G2(r,a,u,f,h){Mh(a,f);var x=null,_,A;switch(a){case"input":_=S(r,u),A=S(r,f),x=[];break;case"select":_=$a(r,u),A=$a(r,f),x=[];break;case"textarea":_=m0(r,u),A=m0(r,f),x=[];break;default:_=u,A=f,typeof _.onClick!="function"&&typeof A.onClick=="function"&&Dh(r);break}tr(a,A);var M,U,H=null;for(M in _)if(!(A.hasOwnProperty(M)||!_.hasOwnProperty(M)||_[M]==null))if(M===Cc){var oe=_[M];for(U in oe)oe.hasOwnProperty(U)&&(H||(H={}),H[U]="")}else M===zf||M===wc||M===Sc||M===du||M===U2||(ot.hasOwnProperty(M)?x||(x=[]):(x=x||[]).push(M,null));for(M in A){var re=A[M],xe=_?.[M];if(!(!A.hasOwnProperty(M)||re===xe||re==null&&xe==null))if(M===Cc)if(re&&Object.freeze(re),xe){for(U in xe)xe.hasOwnProperty(U)&&(!re||!re.hasOwnProperty(U))&&(H||(H={}),H[U]="");for(U in re)re.hasOwnProperty(U)&&xe[U]!==re[U]&&(H||(H={}),H[U]=re[U])}else H||(x||(x=[]),x.push(M,H)),H=re;else if(M===zf){var Se=re?re[Oh]:void 0,Re=xe?xe[Oh]:void 0;Se!=null&&Re!==Se&&(x=x||[]).push(M,Se)}else M===wc?(typeof re=="string"||typeof re=="number")&&(x=x||[]).push(M,""+re):M===Sc||M===du||(ot.hasOwnProperty(M)?(re!=null&&(typeof re!="function"&&Ph(M,re),M==="onScroll"&&En("scroll",r)),!x&&xe!==re&&(x=[])):(x=x||[]).push(M,re))}return H&&(gt(H,A[Cc]),(x=x||[]).push(Cc,H)),x}function wC(r,a,u,f,h){u==="input"&&h.type==="radio"&&h.name!=null&&V(r,h);var x=vl(u,f),_=vl(u,h);switch(ja(r,a,x,_),u){case"input":G(r,h);break;case"textarea":Id(r,h);break;case"select":p0(r,h);break}}function CC(r){{var a=r.toLowerCase();return Um.hasOwnProperty(a)&&Um[a]||null}}function NC(r,a,u,f,h,x,_){var A,M;switch(A=vl(a,u),Mh(a,u),a){case"dialog":En("cancel",r),En("close",r);break;case"iframe":case"object":case"embed":En("load",r);break;case"video":case"audio":for(var U=0;U<$f.length;U++)En($f[U],r);break;case"source":En("error",r);break;case"img":case"image":case"link":En("error",r),En("load",r);break;case"details":En("toggle",r);break;case"input":O(r,u),En("invalid",r);break;case"option":xt(r,u);break;case"select":ks(r,u),En("invalid",r);break;case"textarea":h0(r,u),En("invalid",r);break}tr(a,u);{M=new Set;for(var H=r.attributes,oe=0;oe<H.length;oe++){var re=H[oe].name.toLowerCase();switch(re){case"value":break;case"checked":break;case"selected":break;default:M.add(H[oe].name)}}}var xe=null;for(var Se in u)if(!!u.hasOwnProperty(Se)){var Re=u[Se];if(Se===wc)typeof Re=="string"?r.textContent!==Re&&(u[du]!==!0&&Bf(r.textContent,Re,x,_),xe=[wc,Re]):typeof Re=="number"&&r.textContent!==""+Re&&(u[du]!==!0&&Bf(r.textContent,Re,x,_),xe=[wc,""+Re]);else if(ot.hasOwnProperty(Se))Re!=null&&(typeof Re!="function"&&Ph(Se,Re),Se==="onScroll"&&En("scroll",r));else if(_&&!0&&typeof A=="boolean"){var ht=void 0,Ot=A&&Pe?null:Ti(Se);if(u[du]!==!0){if(!(Se===Sc||Se===du||Se==="value"||Se==="checked"||Se==="selected")){if(Se===zf){var Et=r.innerHTML,$n=Re?Re[Oh]:void 0;if($n!=null){var _n=H2(r,$n);_n!==Et&&kp(Se,Et,_n)}}else if(Se===Cc){if(M.delete(Se),V2){var he=sf(Re);ht=r.getAttribute("style"),he!==ht&&kp(Se,ht,he)}}else if(A&&!Pe)M.delete(Se.toLowerCase()),ht=Yi(r,Se,Re),Re!==ht&&kp(Se,ht,Re);else if(!Fn(Se,Ot,A)&&!Pn(Se,Re,Ot,A)){var ke=!1;if(Ot!==null)M.delete(Ot.attributeName),ht=xr(r,Se,Re,Ot);else{var ve=f;if(ve===As&&(ve=$d(a)),ve===As)M.delete(Se.toLowerCase());else{var Ke=CC(Se);Ke!==null&&Ke!==Se&&(ke=!0,M.delete(Ke)),M.delete(Se)}ht=Yi(r,Se,Re)}var vt=Pe;!vt&&Re!==ht&&!ke&&kp(Se,ht,Re)}}}}}switch(_&&M.size>0&&u[du]!==!0&&j2(M),a){case"input":Qi(r),se(r,u,!0);break;case"textarea":Qi(r),ec(r);break;case"select":case"option":break;default:typeof u.onClick=="function"&&Dh(r);break}return xe}function Y2(r,a,u){var f=r.nodeValue!==a;return f}function N1(r,a){{if(Ua)return;Ua=!0,l("Did not expect server HTML to contain a <%s> in <%s>.",a.nodeName.toLowerCase(),r.nodeName.toLowerCase())}}function E1(r,a){{if(Ua)return;Ua=!0,l('Did not expect server HTML to contain the text node "%s" in <%s>.',a.nodeValue,r.nodeName.toLowerCase())}}function _1(r,a,u){{if(Ua)return;Ua=!0,l("Expected server HTML to contain a matching <%s> in <%s>.",a,r.nodeName.toLowerCase())}}function $h(r,a){{if(a===""||Ua)return;Ua=!0,l('Expected server HTML to contain a matching text node for "%s" in <%s>.',a,r.nodeName.toLowerCase())}}function q2(r,a,u){switch(a){case"input":Ue(r,u);return;case"textarea":S4(r,u);return;case"select":x4(r,u);return}}var Ap=function(){},Lp=function(){};{var EC=["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"],Z2=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],Uf=Z2.concat(["button"]),_C=["dd","dt","li","option","optgroup","p","rp","rt"],K2={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};Lp=function(r,a){var u=tn({},r||K2),f={tag:a};return Z2.indexOf(a)!==-1&&(u.aTagInScope=null,u.buttonTagInScope=null,u.nobrTagInScope=null),Uf.indexOf(a)!==-1&&(u.pTagInButtonScope=null),EC.indexOf(a)!==-1&&a!=="address"&&a!=="div"&&a!=="p"&&(u.listItemTagAutoclosing=null,u.dlItemTagAutoclosing=null),u.current=f,a==="form"&&(u.formTag=f),a==="a"&&(u.aTagInScope=f),a==="button"&&(u.buttonTagInScope=f),a==="nobr"&&(u.nobrTagInScope=f),a==="p"&&(u.pTagInButtonScope=f),a==="li"&&(u.listItemTagAutoclosing=f),(a==="dd"||a==="dt")&&(u.dlItemTagAutoclosing=f),u};var TC=function(r,a){switch(a){case"select":return r==="option"||r==="optgroup"||r==="#text";case"optgroup":return r==="option"||r==="#text";case"option":return r==="#text";case"tr":return r==="th"||r==="td"||r==="style"||r==="script"||r==="template";case"tbody":case"thead":case"tfoot":return r==="tr"||r==="style"||r==="script"||r==="template";case"colgroup":return r==="col"||r==="template";case"table":return r==="caption"||r==="colgroup"||r==="tbody"||r==="tfoot"||r==="thead"||r==="style"||r==="script"||r==="template";case"head":return r==="base"||r==="basefont"||r==="bgsound"||r==="link"||r==="meta"||r==="title"||r==="noscript"||r==="noframes"||r==="style"||r==="script"||r==="template";case"html":return r==="head"||r==="body"||r==="frameset";case"frameset":return r==="frame";case"#document":return r==="html"}switch(r){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 _C.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},RC=function(r,a){switch(r){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},X2={};Ap=function(r,a,u){u=u||K2;var f=u.current,h=f&&f.tag;a!=null&&(r!=null&&l("validateDOMNesting: when childText is passed, childTag should be null"),r="#text");var x=TC(r,h)?null:f,_=x?null:RC(r,u),A=x||_;if(!!A){var M=A.tag,U=!!x+"|"+r+"|"+M;if(!X2[U]){X2[U]=!0;var H=r,oe="";if(r==="#text"?/\S/.test(a)?H="Text nodes":(H="Whitespace text nodes",oe=" Make sure you don't have any extra whitespace between tags on each line of your source code."):H="<"+r+">",x){var re="";M==="table"&&r==="tr"&&(re+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),l("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",H,M,oe,re)}else l("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",H,M)}}}}var Op="suppressHydrationWarning",Mp="$",Fh="/$",Pp="$?",Ip="$!",kC="style",T1=null,R1=null;function AC(r){var a,u,f=r.nodeType;switch(f){case is:case tc:{a=f===is?"#document":"#fragment";var h=r.documentElement;u=h?h.namespaceURI:zm(null,"");break}default:{var x=f===Wn?r.parentNode:r,_=x.namespaceURI||null;a=x.tagName,u=zm(_,a);break}}{var A=a.toLowerCase(),M=Lp(null,A);return{namespace:u,ancestorInfo:M}}}function LC(r,a,u){{var f=r,h=zm(f.namespace,a),x=Lp(f.ancestorInfo,a);return{namespace:h,ancestorInfo:x}}}function yR(r){return r}function OC(r){T1=iw(),R1=ls();var a=null;return o2(!1),a}function MC(r){oC(R1),o2(T1),T1=null,R1=null}function PC(r,a,u,f,h){var x;{var _=f;if(Ap(r,null,_.ancestorInfo),typeof a.children=="string"||typeof a.children=="number"){var A=""+a.children,M=Lp(_.ancestorInfo,r);Ap(null,A,M)}x=_.namespace}var U=yC(r,a,u,x);return J(h,U),vn(U,a),U}function IC(r,a){r.appendChild(a)}function DC(r,a,u,f,h){switch(SC(r,a,u,f),a){case"button":case"input":case"select":case"textarea":return!!u.autoFocus;case"img":return!0;default:return!1}}function $C(r,a,u,f,h,x){{var _=x;if(typeof f.children!=typeof u.children&&(typeof f.children=="string"||typeof f.children=="number")){var A=""+f.children,M=Lp(_.ancestorInfo,a);Ap(null,A,M)}}return G2(r,a,u,f)}function k1(r,a){return r==="textarea"||r==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}function FC(r,a,u,f){{var h=u;Ap(null,r,h.ancestorInfo)}var x=xC(r,a);return J(f,x),x}function zC(){var r=window.event;return r===void 0?Tr:u2(r.type)}var A1=typeof setTimeout=="function"?setTimeout:void 0,BC=typeof clearTimeout=="function"?clearTimeout:void 0,L1=-1,Q2=typeof Promise=="function"?Promise:void 0,UC=typeof queueMicrotask=="function"?queueMicrotask:typeof Q2<"u"?function(r){return Q2.resolve(null).then(r).catch(jC)}:A1;function jC(r){setTimeout(function(){throw r})}function VC(r,a,u,f){switch(a){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();return;case"img":{u.src&&(r.src=u.src);return}}}function O1(r,a,u,f,h,x){wC(r,a,u,f,h),vn(r,h)}function M1(r){Fd(r,"")}function J2(r,a,u){r.nodeValue=u}function HC(r,a){r.appendChild(a)}function WC(r,a){var u;r.nodeType===Wn?(u=r.parentNode,u.insertBefore(a,r)):(u=r,u.appendChild(a));var f=r._reactRootContainer;f==null&&u.onclick===null&&Dh(u)}function GC(r,a,u){r.insertBefore(a,u)}function P1(r,a,u){r.nodeType===Wn?r.parentNode.insertBefore(a,u):r.insertBefore(a,u)}function YC(r,a){r.removeChild(a)}function qC(r,a){r.nodeType===Wn?r.parentNode.removeChild(a):r.removeChild(a)}function I1(r,a){var u=a,f=0;do{var h=u.nextSibling;if(r.removeChild(u),h&&h.nodeType===Wn){var x=h.data;if(x===Fh)if(f===0){r.removeChild(h),hp(a);return}else f--;else(x===Mp||x===Pp||x===Ip)&&f++}u=h}while(u);hp(a)}function Va(r,a){r.nodeType===Wn?I1(r.parentNode,a):r.nodeType===Fa&&I1(r,a),hp(r)}function D1(r){r=r;var a=r.style;typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"}function ZC(r){r.nodeValue=""}function KC(r,a){r=r;var u=a[kC],f=u!=null&&u.hasOwnProperty("display")?u.display:null;r.style.display=v0("display",f)}function XC(r,a){r.nodeValue=a}function QC(r){r.nodeType===Fa?r.textContent="":r.nodeType===is&&r.documentElement&&r.removeChild(r.documentElement)}function $1(r,a,u){return r.nodeType!==Fa||a.toLowerCase()!==r.nodeName.toLowerCase()?null:r}function JC(r,a){return a===""||r.nodeType!==Ls?null:r}function F1(r){return r.nodeType!==Wn?null:r}function ex(r){return r.data===Pp}function z1(r){return r.data===Ip}function eN(r){var a=r.nextSibling&&r.nextSibling.dataset,u,f,h;return a&&(u=a.dgst,f=a.msg,h=a.stck),{message:f,digest:u,stack:h}}function tN(r,a){r._reactRetry=a}function Dp(r){for(;r!=null;r=r.nextSibling){var a=r.nodeType;if(a===Fa||a===Ls)break;if(a===Wn){var u=r.data;if(u===Mp||u===Ip||u===Pp)break;if(u===Fh)return null}}return r}function $p(r){return Dp(r.nextSibling)}function nN(r){return Dp(r.firstChild)}function rN(r){return Dp(r.firstChild)}function B1(r){return Dp(r.nextSibling)}function U1(r,a,u,f,h,x,_){J(x,r),vn(r,u);var A;{var M=h;A=M.namespace}var U=(x.mode&Nn)!==Ft;return NC(r,a,u,A,f,U,_)}function iN(r,a,u,f){return J(u,r),u.mode&Nn,Y2(r,a)}function aN(r,a){J(a,r)}function oN(r){for(var a=r.nextSibling,u=0;a;){if(a.nodeType===Wn){var f=a.data;if(f===Fh){if(u===0)return $p(a);u--}else(f===Mp||f===Ip||f===Pp)&&u++}a=a.nextSibling}return null}function tx(r){for(var a=r.previousSibling,u=0;a;){if(a.nodeType===Wn){var f=a.data;if(f===Mp||f===Ip||f===Pp){if(u===0)return a;u--}else f===Fh&&u++}a=a.previousSibling}return null}function sN(r){hp(r)}function lN(r){hp(r)}function uN(r){return r!=="head"&&r!=="body"}function cN(r,a,u,f){var h=!0;Bf(a.nodeValue,u,f,h)}function fN(r,a,u,f,h,x){if(a[Op]!==!0){var _=!0;Bf(f.nodeValue,h,x,_)}}function dN(r,a){a.nodeType===Fa?N1(r,a):a.nodeType===Wn||E1(r,a)}function pN(r,a){{var u=r.parentNode;u!==null&&(a.nodeType===Fa?N1(u,a):a.nodeType===Wn||E1(u,a))}}function mN(r,a,u,f,h){(h||a[Op]!==!0)&&(f.nodeType===Fa?N1(u,f):f.nodeType===Wn||E1(u,f))}function hN(r,a,u){_1(r,a)}function vN(r,a){$h(r,a)}function gN(r,a,u){{var f=r.parentNode;f!==null&&_1(f,a)}}function bN(r,a){{var u=r.parentNode;u!==null&&$h(u,a)}}function yN(r,a,u,f,h,x){(x||a[Op]!==!0)&&_1(u,f)}function xN(r,a,u,f,h){(h||a[Op]!==!0)&&$h(u,f)}function SN(r){l("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",r.nodeName.toLowerCase())}function wN(r){Rp(r)}var jf=Math.random().toString(36).slice(2),c="__reactFiber$"+jf,d="__reactProps$"+jf,y="__reactContainer$"+jf,k="__reactEvents$"+jf,$="__reactListeners$"+jf,j="__reactHandles$"+jf;function Z(r){delete r[c],delete r[d],delete r[k],delete r[$],delete r[j]}function J(r,a){a[c]=r}function de(r,a){a[y]=r}function De(r){r[y]=null}function Le(r){return!!r[y]}function Fe(r){var a=r[c];if(a)return a;for(var u=r.parentNode;u;){if(a=u[y]||u[c],a){var f=a.alternate;if(a.child!==null||f!==null&&f.child!==null)for(var h=tx(r);h!==null;){var x=h[c];if(x)return x;h=tx(h)}return a}r=u,u=r.parentNode}return null}function Je(r){var a=r[c]||r[y];return a&&(a.tag===C||a.tag===T||a.tag===z||a.tag===b)?a:null}function bt(r){if(r.tag===C||r.tag===T)return r.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function Bt(r){return r[d]||null}function vn(r,a){r[d]=a}function Ht(r){var a=r[k];return a===void 0&&(a=r[k]=new Set),a}var Sn={},Ln=n.ReactDebugCurrentFrame;function ta(r){if(r){var a=r._owner,u=Oi(r.type,r._source,a?a.type:null);Ln.setExtraStackFrame(u)}else Ln.setExtraStackFrame(null)}function wr(r,a,u,f,h){{var x=Function.call.bind(Ce);for(var _ in r)if(x(r,_)){var A=void 0;try{if(typeof r[_]!="function"){var M=Error((f||"React class")+": "+u+" type `"+_+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[_]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw M.name="Invariant Violation",M}A=r[_](a,_,f,u,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(U){A=U}A&&!(A instanceof Error)&&(ta(h),l("%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",u,_,typeof A),ta(null)),A instanceof Error&&!(A.message in Sn)&&(Sn[A.message]=!0,ta(h),l("Failed %s type: %s",u,A.message),ta(null))}}}var pa=[],kr;kr=[];var li=-1;function na(r){return{current:r}}function Di(r,a){if(li<0){l("Unexpected pop.");return}a!==kr[li]&&l("Unexpected Fiber popped."),r.current=pa[li],pa[li]=null,kr[li]=null,li--}function Ha(r,a,u){li++,pa[li]=r.current,kr[li]=u,r.current=a}var CN;CN={};var us={};Object.freeze(us);var Nc=na(us),pu=na(!1),NN=us;function zh(r,a,u){return u&&mu(a)?NN:Nc.current}function xR(r,a,u){{var f=r.stateNode;f.__reactInternalMemoizedUnmaskedChildContext=a,f.__reactInternalMemoizedMaskedChildContext=u}}function Bh(r,a){{var u=r.type,f=u.contextTypes;if(!f)return us;var h=r.stateNode;if(h&&h.__reactInternalMemoizedUnmaskedChildContext===a)return h.__reactInternalMemoizedMaskedChildContext;var x={};for(var _ in f)x[_]=a[_];{var A=Wt(r)||"Unknown";wr(f,x,"context",A)}return h&&xR(r,a,x),x}}function nx(){return pu.current}function mu(r){{var a=r.childContextTypes;return a!=null}}function rx(r){Di(pu,r),Di(Nc,r)}function EN(r){Di(pu,r),Di(Nc,r)}function SR(r,a,u){{if(Nc.current!==us)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Ha(Nc,a,r),Ha(pu,u,r)}}function wR(r,a,u){{var f=r.stateNode,h=a.childContextTypes;if(typeof f.getChildContext!="function"){{var x=Wt(r)||"Unknown";CN[x]||(CN[x]=!0,l("%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.",x,x))}return u}var _=f.getChildContext();for(var A in _)if(!(A in h))throw new Error((Wt(r)||"Unknown")+'.getChildContext(): key "'+A+'" is not defined in childContextTypes.');{var M=Wt(r)||"Unknown";wr(h,_,"child context",M)}return tn({},u,_)}}function ix(r){{var a=r.stateNode,u=a&&a.__reactInternalMemoizedMergedChildContext||us;return NN=Nc.current,Ha(Nc,u,r),Ha(pu,pu.current,r),!0}}function CR(r,a,u){{var f=r.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(u){var h=wR(r,a,NN);f.__reactInternalMemoizedMergedChildContext=h,Di(pu,r),Di(Nc,r),Ha(Nc,h,r),Ha(pu,u,r)}else Di(pu,r),Ha(pu,u,r)}}function uH(r){{if(!Kd(r)||r.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=r;do{switch(a.tag){case b:return a.stateNode.context;case v:{var u=a.type;if(mu(u))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 Vf=0,ax=1,Ec=null,_N=!1,TN=!1;function NR(r){Ec===null?Ec=[r]:Ec.push(r)}function cH(r){_N=!0,NR(r)}function ER(){_N&&Hf()}function Hf(){if(!TN&&Ec!==null){TN=!0;var r=0,a=To();try{var u=!0,f=Ec;for(vi(fa);r<f.length;r++){var h=f[r];do h=h(u);while(h!==null)}Ec=null,_N=!1}catch(x){throw Ec!==null&&(Ec=Ec.slice(r+1)),io(Xd,Hf),x}finally{vi(a),TN=!1}}return null}var Uh=[],jh=0,ox=null,sx=0,Ws=[],Gs=0,Fp=null,_c=1,Tc="";function fH(r){return Bp(),(r.flags&Ry)!==Ut}function dH(r){return Bp(),sx}function pH(){var r=Tc,a=_c,u=a&~mH(a);return u.toString(32)+r}function zp(r,a){Bp(),Uh[jh++]=sx,Uh[jh++]=ox,ox=r,sx=a}function _R(r,a,u){Bp(),Ws[Gs++]=_c,Ws[Gs++]=Tc,Ws[Gs++]=Fp,Fp=r;var f=_c,h=Tc,x=lx(f)-1,_=f&~(1<<x),A=u+1,M=lx(a)+x;if(M>30){var U=x-x%5,H=(1<<U)-1,oe=(_&H).toString(32),re=_>>U,xe=x-U,Se=lx(a)+xe,Re=A<<xe,ht=Re|re,Ot=oe+h;_c=1<<Se|ht,Tc=Ot}else{var Et=A<<x,$n=Et|_,_n=h;_c=1<<M|$n,Tc=_n}}function RN(r){Bp();var a=r.return;if(a!==null){var u=1,f=0;zp(r,u),_R(r,u,f)}}function lx(r){return 32-Wy(r)}function mH(r){return 1<<lx(r)-1}function kN(r){for(;r===ox;)ox=Uh[--jh],Uh[jh]=null,sx=Uh[--jh],Uh[jh]=null;for(;r===Fp;)Fp=Ws[--Gs],Ws[Gs]=null,Tc=Ws[--Gs],Ws[Gs]=null,_c=Ws[--Gs],Ws[Gs]=null}function hH(){return Bp(),Fp!==null?{id:_c,overflow:Tc}:null}function vH(r,a){Bp(),Ws[Gs++]=_c,Ws[Gs++]=Tc,Ws[Gs++]=Fp,_c=a.id,Tc=a.overflow,Fp=r}function Bp(){ha()||l("Expected to be hydrating. This is a bug in React. Please file an issue.")}var ma=null,Ys=null,Ll=!1,Up=!1,Wf=null;function gH(){Ll&&l("We should not be hydrating here. This is a bug in React. Please file a bug.")}function TR(){Up=!0}function bH(){return Up}function yH(r){var a=r.stateNode.containerInfo;return Ys=rN(a),ma=r,Ll=!0,Wf=null,Up=!1,!0}function xH(r,a,u){return Ys=B1(a),ma=r,Ll=!0,Wf=null,Up=!1,u!==null&&vH(r,u),!0}function RR(r,a){switch(r.tag){case b:{dN(r.stateNode.containerInfo,a);break}case C:{var u=(r.mode&Nn)!==Ft;mN(r.type,r.memoizedProps,r.stateNode,a,u);break}case z:{var f=r.memoizedState;f.dehydrated!==null&&pN(f.dehydrated,a);break}}}function kR(r,a){RR(r,a);var u=CY();u.stateNode=a,u.return=r;var f=r.deletions;f===null?(r.deletions=[u],r.flags|=ic):f.push(u)}function AN(r,a){{if(Up)return;switch(r.tag){case b:{var u=r.stateNode.containerInfo;switch(a.tag){case C:var f=a.type;a.pendingProps,hN(u,f);break;case T:var h=a.pendingProps;vN(u,h);break}break}case C:{var x=r.type,_=r.memoizedProps,A=r.stateNode;switch(a.tag){case C:{var M=a.type,U=a.pendingProps,H=(r.mode&Nn)!==Ft;yN(x,_,A,M,U,H);break}case T:{var oe=a.pendingProps,re=(r.mode&Nn)!==Ft;xN(x,_,A,oe,re);break}}break}case z:{var xe=r.memoizedState,Se=xe.dehydrated;if(Se!==null)switch(a.tag){case C:var Re=a.type;a.pendingProps,gN(Se,Re);break;case T:var ht=a.pendingProps;bN(Se,ht);break}break}default:return}}}function AR(r,a){a.flags=a.flags&~wl|Qr,AN(r,a)}function LR(r,a){switch(r.tag){case C:{var u=r.type;r.pendingProps;var f=$1(a,u);return f!==null?(r.stateNode=f,ma=r,Ys=nN(f),!0):!1}case T:{var h=r.pendingProps,x=JC(a,h);return x!==null?(r.stateNode=x,ma=r,Ys=null,!0):!1}case z:{var _=F1(a);if(_!==null){var A={dehydrated:_,treeContext:hH(),retryLane:so};r.memoizedState=A;var M=NY(_);return M.return=r,r.child=M,ma=r,Ys=null,!0}return!1}default:return!1}}function LN(r){return(r.mode&Nn)!==Ft&&(r.flags&jn)===Ut}function ON(r){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function MN(r){if(!!Ll){var a=Ys;if(!a){LN(r)&&(AN(ma,r),ON()),AR(ma,r),Ll=!1,ma=r;return}var u=a;if(!LR(r,a)){LN(r)&&(AN(ma,r),ON()),a=$p(u);var f=ma;if(!a||!LR(r,a)){AR(ma,r),Ll=!1,ma=r;return}kR(f,u)}}}function SH(r,a,u){var f=r.stateNode,h=!Up,x=U1(f,r.type,r.memoizedProps,a,u,r,h);return r.updateQueue=x,x!==null}function wH(r){var a=r.stateNode,u=r.memoizedProps,f=iN(a,u,r);if(f){var h=ma;if(h!==null)switch(h.tag){case b:{var x=h.stateNode.containerInfo,_=(h.mode&Nn)!==Ft;cN(x,a,u,_);break}case C:{var A=h.type,M=h.memoizedProps,U=h.stateNode,H=(h.mode&Nn)!==Ft;fN(A,M,U,a,u,H);break}}}return f}function CH(r){var a=r.memoizedState,u=a!==null?a.dehydrated:null;if(!u)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");aN(u,r)}function NH(r){var a=r.memoizedState,u=a!==null?a.dehydrated:null;if(!u)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 oN(u)}function OR(r){for(var a=r.return;a!==null&&a.tag!==C&&a.tag!==b&&a.tag!==z;)a=a.return;ma=a}function ux(r){if(r!==ma)return!1;if(!Ll)return OR(r),Ll=!0,!1;if(r.tag!==b&&(r.tag!==C||uN(r.type)&&!k1(r.type,r.memoizedProps))){var a=Ys;if(a)if(LN(r))MR(r),ON();else for(;a;)kR(r,a),a=$p(a)}return OR(r),r.tag===z?Ys=NH(r):Ys=ma?$p(r.stateNode):null,!0}function EH(){return Ll&&Ys!==null}function MR(r){for(var a=Ys;a;)RR(r,a),a=$p(a)}function Vh(){ma=null,Ys=null,Ll=!1,Up=!1}function PR(){Wf!==null&&(RA(Wf),Wf=null)}function ha(){return Ll}function PN(r){Wf===null?Wf=[r]:Wf.push(r)}var _H=n.ReactCurrentBatchConfig,TH=null;function RH(){return _H.transition}var Ol={recordUnsafeLifecycleWarnings:function(r,a){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(r,a){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var kH=function(r){for(var a=null,u=r;u!==null;)u.mode&Yr&&(a=u),u=u.return;return a},jp=function(r){var a=[];return r.forEach(function(u){a.push(u)}),a.sort().join(", ")},j1=[],V1=[],H1=[],W1=[],G1=[],Y1=[],Vp=new Set;Ol.recordUnsafeLifecycleWarnings=function(r,a){Vp.has(r.type)||(typeof a.componentWillMount=="function"&&a.componentWillMount.__suppressDeprecationWarning!==!0&&j1.push(r),r.mode&Yr&&typeof a.UNSAFE_componentWillMount=="function"&&V1.push(r),typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&H1.push(r),r.mode&Yr&&typeof a.UNSAFE_componentWillReceiveProps=="function"&&W1.push(r),typeof a.componentWillUpdate=="function"&&a.componentWillUpdate.__suppressDeprecationWarning!==!0&&G1.push(r),r.mode&Yr&&typeof a.UNSAFE_componentWillUpdate=="function"&&Y1.push(r))},Ol.flushPendingUnsafeLifecycleWarnings=function(){var r=new Set;j1.length>0&&(j1.forEach(function(re){r.add(Wt(re)||"Component"),Vp.add(re.type)}),j1=[]);var a=new Set;V1.length>0&&(V1.forEach(function(re){a.add(Wt(re)||"Component"),Vp.add(re.type)}),V1=[]);var u=new Set;H1.length>0&&(H1.forEach(function(re){u.add(Wt(re)||"Component"),Vp.add(re.type)}),H1=[]);var f=new Set;W1.length>0&&(W1.forEach(function(re){f.add(Wt(re)||"Component"),Vp.add(re.type)}),W1=[]);var h=new Set;G1.length>0&&(G1.forEach(function(re){h.add(Wt(re)||"Component"),Vp.add(re.type)}),G1=[]);var x=new Set;if(Y1.length>0&&(Y1.forEach(function(re){x.add(Wt(re)||"Component"),Vp.add(re.type)}),Y1=[]),a.size>0){var _=jp(a);l(`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`,_)}if(f.size>0){var A=jp(f);l(`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`,A)}if(x.size>0){var M=jp(x);l(`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`,M)}if(r.size>0){var U=jp(r);s(`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`,U)}if(u.size>0){var H=jp(u);s(`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(h.size>0){var oe=jp(h);s(`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`,oe)}};var cx=new Map,IR=new Set;Ol.recordLegacyContextWarning=function(r,a){var u=kH(r);if(u===null){l("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(!IR.has(r.type)){var f=cx.get(u);(r.type.contextTypes!=null||r.type.childContextTypes!=null||a!==null&&typeof a.getChildContext=="function")&&(f===void 0&&(f=[],cx.set(u,f)),f.push(r))}},Ol.flushLegacyContextWarning=function(){cx.forEach(function(r,a){if(r.length!==0){var u=r[0],f=new Set;r.forEach(function(x){f.add(Wt(x)||"Component"),IR.add(x.type)});var h=jp(f);try{lr(u),l(`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`,h)}finally{Pr()}}})},Ol.discardPendingWarnings=function(){j1=[],V1=[],H1=[],W1=[],G1=[],Y1=[],cx=new Map}}function Ml(r,a){if(r&&r.defaultProps){var u=tn({},a),f=r.defaultProps;for(var h in f)u[h]===void 0&&(u[h]=f[h]);return u}return a}var IN=na(null),DN;DN={};var fx=null,Hh=null,$N=null,dx=!1;function px(){fx=null,Hh=null,$N=null,dx=!1}function DR(){dx=!0}function $R(){dx=!1}function FR(r,a,u){Ha(IN,a._currentValue,r),a._currentValue=u,a._currentRenderer!==void 0&&a._currentRenderer!==null&&a._currentRenderer!==DN&&l("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),a._currentRenderer=DN}function FN(r,a){var u=IN.current;Di(IN,a),r._currentValue=u}function zN(r,a,u){for(var f=r;f!==null;){var h=f.alternate;if(mc(f.childLanes,a)?h!==null&&!mc(h.childLanes,a)&&(h.childLanes=hn(h.childLanes,a)):(f.childLanes=hn(f.childLanes,a),h!==null&&(h.childLanes=hn(h.childLanes,a))),f===u)break;f=f.return}f!==u&&l("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 AH(r,a,u){LH(r,a,u)}function LH(r,a,u){var f=r.child;for(f!==null&&(f.return=r);f!==null;){var h=void 0,x=f.dependencies;if(x!==null){h=f.child;for(var _=x.firstContext;_!==null;){if(_.context===a){if(f.tag===v){var A=lp(u),M=Rc(rr,A);M.tag=hx;var U=f.updateQueue;if(U!==null){var H=U.shared,oe=H.pending;oe===null?M.next=M:(M.next=oe.next,oe.next=M),H.pending=M}}f.lanes=hn(f.lanes,u);var re=f.alternate;re!==null&&(re.lanes=hn(re.lanes,u)),zN(f.return,u,r),x.lanes=hn(x.lanes,u);break}_=_.next}}else if(f.tag===P)h=f.type===r.type?null:f.child;else if(f.tag===ae){var xe=f.return;if(xe===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");xe.lanes=hn(xe.lanes,u);var Se=xe.alternate;Se!==null&&(Se.lanes=hn(Se.lanes,u)),zN(xe,u,r),h=f.sibling}else h=f.child;if(h!==null)h.return=f;else for(h=f;h!==null;){if(h===r){h=null;break}var Re=h.sibling;if(Re!==null){Re.return=h.return,h=Re;break}h=h.return}f=h}}function Wh(r,a){fx=r,Hh=null,$N=null;var u=r.dependencies;if(u!==null){var f=u.firstContext;f!==null&&(za(u.lanes,a)&&sg(),u.firstContext=null)}}function yi(r){dx&&l("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=r._currentValue;if($N!==r){var u={context:r,memoizedValue:a,next:null};if(Hh===null){if(fx===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().");Hh=u,fx.dependencies={lanes:Be,firstContext:u}}else Hh=Hh.next=u}return a}var Hp=null;function BN(r){Hp===null?Hp=[r]:Hp.push(r)}function OH(){if(Hp!==null){for(var r=0;r<Hp.length;r++){var a=Hp[r],u=a.interleaved;if(u!==null){a.interleaved=null;var f=u.next,h=a.pending;if(h!==null){var x=h.next;h.next=f,u.next=x}a.pending=u}}Hp=null}}function zR(r,a,u,f){var h=a.interleaved;return h===null?(u.next=u,BN(a)):(u.next=h.next,h.next=u),a.interleaved=u,mx(r,f)}function MH(r,a,u,f){var h=a.interleaved;h===null?(u.next=u,BN(a)):(u.next=h.next,h.next=u),a.interleaved=u}function PH(r,a,u,f){var h=a.interleaved;return h===null?(u.next=u,BN(a)):(u.next=h.next,h.next=u),a.interleaved=u,mx(r,f)}function Ao(r,a){return mx(r,a)}var IH=mx;function mx(r,a){r.lanes=hn(r.lanes,a);var u=r.alternate;u!==null&&(u.lanes=hn(u.lanes,a)),u===null&&(r.flags&(Qr|wl))!==Ut&&BA(r);for(var f=r,h=r.return;h!==null;)h.childLanes=hn(h.childLanes,a),u=h.alternate,u!==null?u.childLanes=hn(u.childLanes,a):(h.flags&(Qr|wl))!==Ut&&BA(r),f=h,h=h.return;if(f.tag===b){var x=f.stateNode;return x}else return null}var BR=0,UR=1,hx=2,UN=3,vx=!1,jN,gx;jN=!1,gx=null;function VN(r){var a={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:Be},effects:null};r.updateQueue=a}function jR(r,a){var u=a.updateQueue,f=r.updateQueue;if(u===f){var h={baseState:f.baseState,firstBaseUpdate:f.firstBaseUpdate,lastBaseUpdate:f.lastBaseUpdate,shared:f.shared,effects:f.effects};a.updateQueue=h}}function Rc(r,a){var u={eventTime:r,lane:a,tag:BR,payload:null,callback:null,next:null};return u}function Gf(r,a,u){var f=r.updateQueue;if(f===null)return null;var h=f.shared;if(gx===h&&!jN&&(l("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."),jN=!0),IG()){var x=h.pending;return x===null?a.next=a:(a.next=x.next,x.next=a),h.pending=a,IH(r,u)}else return PH(r,h,a,u)}function bx(r,a,u){var f=a.updateQueue;if(f!==null){var h=f.shared;if(Z0(u)){var x=h.lanes;x=Ky(x,r.pendingLanes);var _=hn(x,u);h.lanes=_,zt(r,_)}}}function HN(r,a){var u=r.updateQueue,f=r.alternate;if(f!==null){var h=f.updateQueue;if(u===h){var x=null,_=null,A=u.firstBaseUpdate;if(A!==null){var M=A;do{var U={eventTime:M.eventTime,lane:M.lane,tag:M.tag,payload:M.payload,callback:M.callback,next:null};_===null?x=_=U:(_.next=U,_=U),M=M.next}while(M!==null);_===null?x=_=a:(_.next=a,_=a)}else x=_=a;u={baseState:h.baseState,firstBaseUpdate:x,lastBaseUpdate:_,shared:h.shared,effects:h.effects},r.updateQueue=u;return}}var H=u.lastBaseUpdate;H===null?u.firstBaseUpdate=a:H.next=a,u.lastBaseUpdate=a}function DH(r,a,u,f,h,x){switch(u.tag){case UR:{var _=u.payload;if(typeof _=="function"){DR();var A=_.call(x,f,h);{if(r.mode&Yr){mi(!0);try{_.call(x,f,h)}finally{mi(!1)}}$R()}return A}return _}case UN:r.flags=r.flags&~la|jn;case BR:{var M=u.payload,U;if(typeof M=="function"){DR(),U=M.call(x,f,h);{if(r.mode&Yr){mi(!0);try{M.call(x,f,h)}finally{mi(!1)}}$R()}}else U=M;return U==null?f:tn({},f,U)}case hx:return vx=!0,f}return f}function yx(r,a,u,f){var h=r.updateQueue;vx=!1,gx=h.shared;var x=h.firstBaseUpdate,_=h.lastBaseUpdate,A=h.shared.pending;if(A!==null){h.shared.pending=null;var M=A,U=M.next;M.next=null,_===null?x=U:_.next=U,_=M;var H=r.alternate;if(H!==null){var oe=H.updateQueue,re=oe.lastBaseUpdate;re!==_&&(re===null?oe.firstBaseUpdate=U:re.next=U,oe.lastBaseUpdate=M)}}if(x!==null){var xe=h.baseState,Se=Be,Re=null,ht=null,Ot=null,Et=x;do{var $n=Et.lane,_n=Et.eventTime;if(mc(f,$n)){if(Ot!==null){var ke={eventTime:_n,lane:oi,tag:Et.tag,payload:Et.payload,callback:Et.callback,next:null};Ot=Ot.next=ke}xe=DH(r,h,Et,xe,a,u);var ve=Et.callback;if(ve!==null&&Et.lane!==oi){r.flags|=N0;var Ke=h.effects;Ke===null?h.effects=[Et]:Ke.push(Et)}}else{var he={eventTime:_n,lane:$n,tag:Et.tag,payload:Et.payload,callback:Et.callback,next:null};Ot===null?(ht=Ot=he,Re=xe):Ot=Ot.next=he,Se=hn(Se,$n)}if(Et=Et.next,Et===null){if(A=h.shared.pending,A===null)break;var vt=A,dt=vt.next;vt.next=null,Et=dt,h.lastBaseUpdate=vt,h.shared.pending=null}}while(!0);Ot===null&&(Re=xe),h.baseState=Re,h.firstBaseUpdate=ht,h.lastBaseUpdate=Ot;var Yt=h.shared.interleaved;if(Yt!==null){var nn=Yt;do Se=hn(Se,nn.lane),nn=nn.next;while(nn!==Yt)}else x===null&&(h.shared.lanes=Be);yg(Se),r.lanes=Se,r.memoizedState=xe}gx=null}function $H(r,a){if(typeof r!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+r));r.call(a)}function VR(){vx=!1}function xx(){return vx}function HR(r,a,u){var f=a.effects;if(a.effects=null,f!==null)for(var h=0;h<f.length;h++){var x=f[h],_=x.callback;_!==null&&(x.callback=null,$H(_,u))}}var WN={},WR=new e.Component().refs,GN,YN,qN,ZN,KN,GR,Sx,XN,QN,JN;{GN=new Set,YN=new Set,qN=new Set,ZN=new Set,XN=new Set,KN=new Set,QN=new Set,JN=new Set;var YR=new Set;Sx=function(r,a){if(!(r===null||typeof r=="function")){var u=a+"_"+r;YR.has(u)||(YR.add(u),l("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a,r))}},GR=function(r,a){if(a===void 0){var u=dn(r)||"Component";KN.has(u)||(KN.add(u),l("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",u))}},Object.defineProperty(WN,"_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(WN)}function e9(r,a,u,f){var h=r.memoizedState,x=u(f,h);{if(r.mode&Yr){mi(!0);try{x=u(f,h)}finally{mi(!1)}}GR(a,x)}var _=x==null?h:tn({},h,x);if(r.memoizedState=_,r.lanes===Be){var A=r.updateQueue;A.baseState=_}}var t9={isMounted:eh,enqueueSetState:function(r,a,u){var f=xl(r),h=fo(),x=ed(f),_=Rc(h,x);_.payload=a,u!=null&&(Sx(u,"setState"),_.callback=u);var A=Gf(f,_,x);A!==null&&(Hi(A,f,x,h),bx(A,f,x)),B0(f,x)},enqueueReplaceState:function(r,a,u){var f=xl(r),h=fo(),x=ed(f),_=Rc(h,x);_.tag=UR,_.payload=a,u!=null&&(Sx(u,"replaceState"),_.callback=u);var A=Gf(f,_,x);A!==null&&(Hi(A,f,x,h),bx(A,f,x)),B0(f,x)},enqueueForceUpdate:function(r,a){var u=xl(r),f=fo(),h=ed(u),x=Rc(f,h);x.tag=hx,a!=null&&(Sx(a,"forceUpdate"),x.callback=a);var _=Gf(u,x,h);_!==null&&(Hi(_,u,h,f),bx(_,u,h)),Hy(u,h)}};function qR(r,a,u,f,h,x,_){var A=r.stateNode;if(typeof A.shouldComponentUpdate=="function"){var M=A.shouldComponentUpdate(f,x,_);{if(r.mode&Yr){mi(!0);try{M=A.shouldComponentUpdate(f,x,_)}finally{mi(!1)}}M===void 0&&l("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",dn(a)||"Component")}return M}return a.prototype&&a.prototype.isPureReactComponent?!Df(u,f)||!Df(h,x):!0}function FH(r,a,u){var f=r.stateNode;{var h=dn(a)||"Component",x=f.render;x||(a.prototype&&typeof a.prototype.render=="function"?l("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",h):l("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",h)),f.getInitialState&&!f.getInitialState.isReactClassApproved&&!f.state&&l("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?",h),f.getDefaultProps&&!f.getDefaultProps.isReactClassApproved&&l("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.",h),f.propTypes&&l("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",h),f.contextType&&l("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",h),f.contextTypes&&l("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",h),a.contextType&&a.contextTypes&&!QN.has(a)&&(QN.add(a),l("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",h)),typeof f.componentShouldUpdate=="function"&&l("%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.",h),a.prototype&&a.prototype.isPureReactComponent&&typeof f.shouldComponentUpdate<"u"&&l("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",dn(a)||"A pure component"),typeof f.componentDidUnmount=="function"&&l("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",h),typeof f.componentDidReceiveProps=="function"&&l("%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().",h),typeof f.componentWillRecieveProps=="function"&&l("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",h),typeof f.UNSAFE_componentWillRecieveProps=="function"&&l("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",h);var _=f.props!==u;f.props!==void 0&&_&&l("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",h,h),f.defaultProps&&l("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",h,h),typeof f.getSnapshotBeforeUpdate=="function"&&typeof f.componentDidUpdate!="function"&&!qN.has(a)&&(qN.add(a),l("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",dn(a))),typeof f.getDerivedStateFromProps=="function"&&l("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",h),typeof f.getDerivedStateFromError=="function"&&l("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",h),typeof a.getSnapshotBeforeUpdate=="function"&&l("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",h);var A=f.state;A&&(typeof A!="object"||jt(A))&&l("%s.state: must be set to an object or null",h),typeof f.getChildContext=="function"&&typeof a.childContextTypes!="object"&&l("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",h)}}function ZR(r,a){a.updater=t9,r.stateNode=a,An(a,r),a._reactInternalInstance=WN}function KR(r,a,u){var f=!1,h=us,x=us,_=a.contextType;if("contextType"in a){var A=_===null||_!==void 0&&_.$$typeof===Cn&&_._context===void 0;if(!A&&!JN.has(a)){JN.add(a);var M="";_===void 0?M=" 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 _!="object"?M=" However, it is set to a "+typeof _+".":_.$$typeof===un?M=" Did you accidentally pass the Context.Provider instead?":_._context!==void 0?M=" Did you accidentally pass the Context.Consumer instead?":M=" However, it is set to an object with keys {"+Object.keys(_).join(", ")+"}.",l("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",dn(a)||"Component",M)}}if(typeof _=="object"&&_!==null)x=yi(_);else{h=zh(r,a,!0);var U=a.contextTypes;f=U!=null,x=f?Bh(r,h):us}var H=new a(u,x);if(r.mode&Yr){mi(!0);try{H=new a(u,x)}finally{mi(!1)}}var oe=r.memoizedState=H.state!==null&&H.state!==void 0?H.state:null;ZR(r,H);{if(typeof a.getDerivedStateFromProps=="function"&&oe===null){var re=dn(a)||"Component";YN.has(re)||(YN.add(re),l("`%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.",re,H.state===null?"null":"undefined",re))}if(typeof a.getDerivedStateFromProps=="function"||typeof H.getSnapshotBeforeUpdate=="function"){var xe=null,Se=null,Re=null;if(typeof H.componentWillMount=="function"&&H.componentWillMount.__suppressDeprecationWarning!==!0?xe="componentWillMount":typeof H.UNSAFE_componentWillMount=="function"&&(xe="UNSAFE_componentWillMount"),typeof H.componentWillReceiveProps=="function"&&H.componentWillReceiveProps.__suppressDeprecationWarning!==!0?Se="componentWillReceiveProps":typeof H.UNSAFE_componentWillReceiveProps=="function"&&(Se="UNSAFE_componentWillReceiveProps"),typeof H.componentWillUpdate=="function"&&H.componentWillUpdate.__suppressDeprecationWarning!==!0?Re="componentWillUpdate":typeof H.UNSAFE_componentWillUpdate=="function"&&(Re="UNSAFE_componentWillUpdate"),xe!==null||Se!==null||Re!==null){var ht=dn(a)||"Component",Ot=typeof a.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";ZN.has(ht)||(ZN.add(ht),l(`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`,ht,Ot,xe!==null?`
`+xe:"",Se!==null?`
`+Se:"",Re!==null?`
`+Re:""))}}}return f&&xR(r,h,x),H}function zH(r,a){var u=a.state;typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),u!==a.state&&(l("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Wt(r)||"Component"),t9.enqueueReplaceState(a,a.state,null))}function XR(r,a,u,f){var h=a.state;if(typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(u,f),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(u,f),a.state!==h){{var x=Wt(r)||"Component";GN.has(x)||(GN.add(x),l("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",x))}t9.enqueueReplaceState(a,a.state,null)}}function n9(r,a,u,f){FH(r,a,u);var h=r.stateNode;h.props=u,h.state=r.memoizedState,h.refs=WR,VN(r);var x=a.contextType;if(typeof x=="object"&&x!==null)h.context=yi(x);else{var _=zh(r,a,!0);h.context=Bh(r,_)}{if(h.state===u){var A=dn(a)||"Component";XN.has(A)||(XN.add(A),l("%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.",A))}r.mode&Yr&&Ol.recordLegacyContextWarning(r,h),Ol.recordUnsafeLifecycleWarnings(r,h)}h.state=r.memoizedState;var M=a.getDerivedStateFromProps;if(typeof M=="function"&&(e9(r,a,M,u),h.state=r.memoizedState),typeof a.getDerivedStateFromProps!="function"&&typeof h.getSnapshotBeforeUpdate!="function"&&(typeof h.UNSAFE_componentWillMount=="function"||typeof h.componentWillMount=="function")&&(zH(r,h),yx(r,u,h,f),h.state=r.memoizedState),typeof h.componentDidMount=="function"){var U=mn;U|=sc,(r.mode&_o)!==Ft&&(U|=ai),r.flags|=U}}function BH(r,a,u,f){var h=r.stateNode,x=r.memoizedProps;h.props=x;var _=h.context,A=a.contextType,M=us;if(typeof A=="object"&&A!==null)M=yi(A);else{var U=zh(r,a,!0);M=Bh(r,U)}var H=a.getDerivedStateFromProps,oe=typeof H=="function"||typeof h.getSnapshotBeforeUpdate=="function";!oe&&(typeof h.UNSAFE_componentWillReceiveProps=="function"||typeof h.componentWillReceiveProps=="function")&&(x!==u||_!==M)&&XR(r,h,u,M),VR();var re=r.memoizedState,xe=h.state=re;if(yx(r,u,h,f),xe=r.memoizedState,x===u&&re===xe&&!nx()&&!xx()){if(typeof h.componentDidMount=="function"){var Se=mn;Se|=sc,(r.mode&_o)!==Ft&&(Se|=ai),r.flags|=Se}return!1}typeof H=="function"&&(e9(r,a,H,u),xe=r.memoizedState);var Re=xx()||qR(r,a,x,u,re,xe,M);if(Re){if(!oe&&(typeof h.UNSAFE_componentWillMount=="function"||typeof h.componentWillMount=="function")&&(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"){var ht=mn;ht|=sc,(r.mode&_o)!==Ft&&(ht|=ai),r.flags|=ht}}else{if(typeof h.componentDidMount=="function"){var Ot=mn;Ot|=sc,(r.mode&_o)!==Ft&&(Ot|=ai),r.flags|=Ot}r.memoizedProps=u,r.memoizedState=xe}return h.props=u,h.state=xe,h.context=M,Re}function UH(r,a,u,f,h){var x=a.stateNode;jR(r,a);var _=a.memoizedProps,A=a.type===a.elementType?_:Ml(a.type,_);x.props=A;var M=a.pendingProps,U=x.context,H=u.contextType,oe=us;if(typeof H=="object"&&H!==null)oe=yi(H);else{var re=zh(a,u,!0);oe=Bh(a,re)}var xe=u.getDerivedStateFromProps,Se=typeof xe=="function"||typeof x.getSnapshotBeforeUpdate=="function";!Se&&(typeof x.UNSAFE_componentWillReceiveProps=="function"||typeof x.componentWillReceiveProps=="function")&&(_!==M||U!==oe)&&XR(a,x,f,oe),VR();var Re=a.memoizedState,ht=x.state=Re;if(yx(a,f,x,h),ht=a.memoizedState,_===M&&Re===ht&&!nx()&&!xx()&&!ge)return typeof x.componentDidUpdate=="function"&&(_!==r.memoizedProps||Re!==r.memoizedState)&&(a.flags|=mn),typeof x.getSnapshotBeforeUpdate=="function"&&(_!==r.memoizedProps||Re!==r.memoizedState)&&(a.flags|=ac),!1;typeof xe=="function"&&(e9(a,u,xe,f),ht=a.memoizedState);var Ot=xx()||qR(a,u,A,f,Re,ht,oe)||ge;return Ot?(!Se&&(typeof x.UNSAFE_componentWillUpdate=="function"||typeof x.componentWillUpdate=="function")&&(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(f,ht,oe),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(f,ht,oe)),typeof x.componentDidUpdate=="function"&&(a.flags|=mn),typeof x.getSnapshotBeforeUpdate=="function"&&(a.flags|=ac)):(typeof x.componentDidUpdate=="function"&&(_!==r.memoizedProps||Re!==r.memoizedState)&&(a.flags|=mn),typeof x.getSnapshotBeforeUpdate=="function"&&(_!==r.memoizedProps||Re!==r.memoizedState)&&(a.flags|=ac),a.memoizedProps=f,a.memoizedState=ht),x.props=f,x.state=ht,x.context=oe,Ot}var r9,i9,a9,o9,s9,QR=function(r,a){};r9=!1,i9=!1,a9={},o9={},s9={},QR=function(r,a){if(!(r===null||typeof r!="object")&&!(!r._store||r._store.validated||r.key!=null)){if(typeof r._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.");r._store.validated=!0;var u=Wt(a)||"Component";o9[u]||(o9[u]=!0,l('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function q1(r,a,u){var f=u.ref;if(f!==null&&typeof f!="function"&&typeof f!="object"){if((r.mode&Yr||Xe)&&!(u._owner&&u._self&&u._owner.stateNode!==u._self)){var h=Wt(r)||"Component";a9[h]||(l('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),a9[h]=!0)}if(u._owner){var x=u._owner,_;if(x){var A=x;if(A.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");_=A.stateNode}if(!_)throw new Error("Missing owner for string ref "+f+". This error is likely caused by a bug in React. Please file an issue.");var M=_;Tt(f,"ref");var U=""+f;if(a!==null&&a.ref!==null&&typeof a.ref=="function"&&a.ref._stringRef===U)return a.ref;var H=function(oe){var re=M.refs;re===WR&&(re=M.refs={}),oe===null?delete re[U]:re[U]=oe};return H._stringRef=U,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(!u._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 wx(r,a){var u=Object.prototype.toString.call(a);throw new Error("Objects are not valid as a React child (found: "+(u==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":u)+"). If you meant to render a collection of children, use an array instead.")}function Cx(r){{var a=Wt(r)||"Component";if(s9[a])return;s9[a]=!0,l("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 JR(r){var a=r._payload,u=r._init;return u(a)}function ek(r){function a(he,ke){if(!!r){var ve=he.deletions;ve===null?(he.deletions=[ke],he.flags|=ic):ve.push(ke)}}function u(he,ke){if(!r)return null;for(var ve=ke;ve!==null;)a(he,ve),ve=ve.sibling;return null}function f(he,ke){for(var ve=new Map,Ke=ke;Ke!==null;)Ke.key!==null?ve.set(Ke.key,Ke):ve.set(Ke.index,Ke),Ke=Ke.sibling;return ve}function h(he,ke){var ve=Qp(he,ke);return ve.index=0,ve.sibling=null,ve}function x(he,ke,ve){if(he.index=ve,!r)return he.flags|=Ry,ke;var Ke=he.alternate;if(Ke!==null){var vt=Ke.index;return vt<ke?(he.flags|=Qr,ke):vt}else return he.flags|=Qr,ke}function _(he){return r&&he.alternate===null&&(he.flags|=Qr),he}function A(he,ke,ve,Ke){if(ke===null||ke.tag!==T){var vt=P6(ve,he.mode,Ke);return vt.return=he,vt}else{var dt=h(ke,ve);return dt.return=he,dt}}function M(he,ke,ve,Ke){var vt=ve.type;if(vt===Ve)return H(he,ke,ve.props.children,Ke,ve.key);if(ke!==null&&(ke.elementType===vt||HA(ke,ve)||typeof vt=="object"&&vt!==null&&vt.$$typeof===fn&&JR(vt)===ke.type)){var dt=h(ke,ve.props);return dt.ref=q1(he,ke,ve),dt.return=he,dt._debugSource=ve._source,dt._debugOwner=ve._owner,dt}var Yt=M6(ve,he.mode,Ke);return Yt.ref=q1(he,ke,ve),Yt.return=he,Yt}function U(he,ke,ve,Ke){if(ke===null||ke.tag!==w||ke.stateNode.containerInfo!==ve.containerInfo||ke.stateNode.implementation!==ve.implementation){var vt=I6(ve,he.mode,Ke);return vt.return=he,vt}else{var dt=h(ke,ve.children||[]);return dt.return=he,dt}}function H(he,ke,ve,Ke,vt){if(ke===null||ke.tag!==R){var dt=nd(ve,he.mode,Ke,vt);return dt.return=he,dt}else{var Yt=h(ke,ve);return Yt.return=he,Yt}}function oe(he,ke,ve){if(typeof ke=="string"&&ke!==""||typeof ke=="number"){var Ke=P6(""+ke,he.mode,ve);return Ke.return=he,Ke}if(typeof ke=="object"&&ke!==null){switch(ke.$$typeof){case qi:{var vt=M6(ke,he.mode,ve);return vt.ref=q1(he,null,ke),vt.return=he,vt}case X:{var dt=I6(ke,he.mode,ve);return dt.return=he,dt}case fn:{var Yt=ke._payload,nn=ke._init;return oe(he,nn(Yt),ve)}}if(jt(ke)||eo(ke)){var cr=nd(ke,he.mode,ve,null);return cr.return=he,cr}wx(he,ke)}return typeof ke=="function"&&Cx(he),null}function re(he,ke,ve,Ke){var vt=ke!==null?ke.key:null;if(typeof ve=="string"&&ve!==""||typeof ve=="number")return vt!==null?null:A(he,ke,""+ve,Ke);if(typeof ve=="object"&&ve!==null){switch(ve.$$typeof){case qi:return ve.key===vt?M(he,ke,ve,Ke):null;case X:return ve.key===vt?U(he,ke,ve,Ke):null;case fn:{var dt=ve._payload,Yt=ve._init;return re(he,ke,Yt(dt),Ke)}}if(jt(ve)||eo(ve))return vt!==null?null:H(he,ke,ve,Ke,null);wx(he,ve)}return typeof ve=="function"&&Cx(he),null}function xe(he,ke,ve,Ke,vt){if(typeof Ke=="string"&&Ke!==""||typeof Ke=="number"){var dt=he.get(ve)||null;return A(ke,dt,""+Ke,vt)}if(typeof Ke=="object"&&Ke!==null){switch(Ke.$$typeof){case qi:{var Yt=he.get(Ke.key===null?ve:Ke.key)||null;return M(ke,Yt,Ke,vt)}case X:{var nn=he.get(Ke.key===null?ve:Ke.key)||null;return U(ke,nn,Ke,vt)}case fn:var cr=Ke._payload,Yn=Ke._init;return xe(he,ke,ve,Yn(cr),vt)}if(jt(Ke)||eo(Ke)){var ui=he.get(ve)||null;return H(ke,ui,Ke,vt,null)}wx(ke,Ke)}return typeof Ke=="function"&&Cx(ke),null}function Se(he,ke,ve){{if(typeof he!="object"||he===null)return ke;switch(he.$$typeof){case qi:case X:QR(he,ve);var Ke=he.key;if(typeof Ke!="string")break;if(ke===null){ke=new Set,ke.add(Ke);break}if(!ke.has(Ke)){ke.add(Ke);break}l("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.",Ke);break;case fn:var vt=he._payload,dt=he._init;Se(dt(vt),ke,ve);break}}return ke}function Re(he,ke,ve,Ke){for(var vt=null,dt=0;dt<ve.length;dt++){var Yt=ve[dt];vt=Se(Yt,vt,he)}for(var nn=null,cr=null,Yn=ke,ui=0,qn=0,ei=null;Yn!==null&&qn<ve.length;qn++){Yn.index>qn?(ei=Yn,Yn=null):ei=Yn.sibling;var Ga=re(he,Yn,ve[qn],Ke);if(Ga===null){Yn===null&&(Yn=ei);break}r&&Yn&&Ga.alternate===null&&a(he,Yn),ui=x(Ga,ui,qn),cr===null?nn=Ga:cr.sibling=Ga,cr=Ga,Yn=ei}if(qn===ve.length){if(u(he,Yn),ha()){var wa=qn;zp(he,wa)}return nn}if(Yn===null){for(;qn<ve.length;qn++){var fs=oe(he,ve[qn],Ke);fs!==null&&(ui=x(fs,ui,qn),cr===null?nn=fs:cr.sibling=fs,cr=fs)}if(ha()){var po=qn;zp(he,po)}return nn}for(var mo=f(he,Yn);qn<ve.length;qn++){var Ya=xe(mo,he,qn,ve[qn],Ke);Ya!==null&&(r&&Ya.alternate!==null&&mo.delete(Ya.key===null?qn:Ya.key),ui=x(Ya,ui,qn),cr===null?nn=Ya:cr.sibling=Ya,cr=Ya)}if(r&&mo.forEach(function(lv){return a(he,lv)}),ha()){var Pc=qn;zp(he,Pc)}return nn}function ht(he,ke,ve,Ke){var vt=eo(ve);if(typeof vt!="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"&&ve[Symbol.toStringTag]==="Generator"&&(i9||l("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."),i9=!0),ve.entries===vt&&(r9||l("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),r9=!0);var dt=vt.call(ve);if(dt)for(var Yt=null,nn=dt.next();!nn.done;nn=dt.next()){var cr=nn.value;Yt=Se(cr,Yt,he)}}var Yn=vt.call(ve);if(Yn==null)throw new Error("An iterable object provided no iterator.");for(var ui=null,qn=null,ei=ke,Ga=0,wa=0,fs=null,po=Yn.next();ei!==null&&!po.done;wa++,po=Yn.next()){ei.index>wa?(fs=ei,ei=null):fs=ei.sibling;var mo=re(he,ei,po.value,Ke);if(mo===null){ei===null&&(ei=fs);break}r&&ei&&mo.alternate===null&&a(he,ei),Ga=x(mo,Ga,wa),qn===null?ui=mo:qn.sibling=mo,qn=mo,ei=fs}if(po.done){if(u(he,ei),ha()){var Ya=wa;zp(he,Ya)}return ui}if(ei===null){for(;!po.done;wa++,po=Yn.next()){var Pc=oe(he,po.value,Ke);Pc!==null&&(Ga=x(Pc,Ga,wa),qn===null?ui=Pc:qn.sibling=Pc,qn=Pc)}if(ha()){var lv=wa;zp(he,lv)}return ui}for(var Ng=f(he,ei);!po.done;wa++,po=Yn.next()){var wu=xe(Ng,he,wa,po.value,Ke);wu!==null&&(r&&wu.alternate!==null&&Ng.delete(wu.key===null?wa:wu.key),Ga=x(wu,Ga,wa),qn===null?ui=wu:qn.sibling=wu,qn=wu)}if(r&&Ng.forEach(function(tq){return a(he,tq)}),ha()){var eq=wa;zp(he,eq)}return ui}function Ot(he,ke,ve,Ke){if(ke!==null&&ke.tag===T){u(he,ke.sibling);var vt=h(ke,ve);return vt.return=he,vt}u(he,ke);var dt=P6(ve,he.mode,Ke);return dt.return=he,dt}function Et(he,ke,ve,Ke){for(var vt=ve.key,dt=ke;dt!==null;){if(dt.key===vt){var Yt=ve.type;if(Yt===Ve){if(dt.tag===R){u(he,dt.sibling);var nn=h(dt,ve.props.children);return nn.return=he,nn._debugSource=ve._source,nn._debugOwner=ve._owner,nn}}else if(dt.elementType===Yt||HA(dt,ve)||typeof Yt=="object"&&Yt!==null&&Yt.$$typeof===fn&&JR(Yt)===dt.type){u(he,dt.sibling);var cr=h(dt,ve.props);return cr.ref=q1(he,dt,ve),cr.return=he,cr._debugSource=ve._source,cr._debugOwner=ve._owner,cr}u(he,dt);break}else a(he,dt);dt=dt.sibling}if(ve.type===Ve){var Yn=nd(ve.props.children,he.mode,Ke,ve.key);return Yn.return=he,Yn}else{var ui=M6(ve,he.mode,Ke);return ui.ref=q1(he,ke,ve),ui.return=he,ui}}function $n(he,ke,ve,Ke){for(var vt=ve.key,dt=ke;dt!==null;){if(dt.key===vt)if(dt.tag===w&&dt.stateNode.containerInfo===ve.containerInfo&&dt.stateNode.implementation===ve.implementation){u(he,dt.sibling);var Yt=h(dt,ve.children||[]);return Yt.return=he,Yt}else{u(he,dt);break}else a(he,dt);dt=dt.sibling}var nn=I6(ve,he.mode,Ke);return nn.return=he,nn}function _n(he,ke,ve,Ke){var vt=typeof ve=="object"&&ve!==null&&ve.type===Ve&&ve.key===null;if(vt&&(ve=ve.props.children),typeof ve=="object"&&ve!==null){switch(ve.$$typeof){case qi:return _(Et(he,ke,ve,Ke));case X:return _($n(he,ke,ve,Ke));case fn:var dt=ve._payload,Yt=ve._init;return _n(he,ke,Yt(dt),Ke)}if(jt(ve))return Re(he,ke,ve,Ke);if(eo(ve))return ht(he,ke,ve,Ke);wx(he,ve)}return typeof ve=="string"&&ve!==""||typeof ve=="number"?_(Ot(he,ke,""+ve,Ke)):(typeof ve=="function"&&Cx(he),u(he,ke))}return _n}var Gh=ek(!0),tk=ek(!1);function jH(r,a){if(r!==null&&a.child!==r.child)throw new Error("Resuming work not yet implemented.");if(a.child!==null){var u=a.child,f=Qp(u,u.pendingProps);for(a.child=f,f.return=a;u.sibling!==null;)u=u.sibling,f=f.sibling=Qp(u,u.pendingProps),f.return=a;f.sibling=null}}function VH(r,a){for(var u=r.child;u!==null;)bY(u,a),u=u.sibling}var Z1={},Yf=na(Z1),K1=na(Z1),Nx=na(Z1);function Ex(r){if(r===Z1)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return r}function nk(){var r=Ex(Nx.current);return r}function l9(r,a){Ha(Nx,a,r),Ha(K1,r,r),Ha(Yf,Z1,r);var u=AC(a);Di(Yf,r),Ha(Yf,u,r)}function Yh(r){Di(Yf,r),Di(K1,r),Di(Nx,r)}function u9(){var r=Ex(Yf.current);return r}function rk(r){Ex(Nx.current);var a=Ex(Yf.current),u=LC(a,r.type);a!==u&&(Ha(K1,r,r),Ha(Yf,u,r))}function c9(r){K1.current===r&&(Di(Yf,r),Di(K1,r))}var HH=0,ik=1,ak=1,X1=2,Pl=na(HH);function f9(r,a){return(r&a)!==0}function qh(r){return r&ik}function d9(r,a){return r&ik|a}function WH(r,a){return r|a}function qf(r,a){Ha(Pl,a,r)}function Zh(r){Di(Pl,r)}function GH(r,a){var u=r.memoizedState;return u!==null?u.dehydrated!==null:(r.memoizedProps,!0)}function _x(r){for(var a=r;a!==null;){if(a.tag===z){var u=a.memoizedState;if(u!==null){var f=u.dehydrated;if(f===null||ex(f)||z1(f))return a}}else if(a.tag===me&&a.memoizedProps.revealOrder!==void 0){var h=(a.flags&jn)!==Ut;if(h)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)return null;for(;a.sibling===null;){if(a.return===null||a.return===r)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Lo=0,$i=1,hu=2,Fi=4,va=8,p9=[];function m9(){for(var r=0;r<p9.length;r++){var a=p9[r];a._workInProgressVersionPrimary=null}p9.length=0}function YH(r,a){var u=a._getVersion,f=u(a._source);r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[a,f]:r.mutableSourceEagerHydrationData.push(a,f)}var pt=n.ReactCurrentDispatcher,Q1=n.ReactCurrentBatchConfig,h9,Kh;h9=new Set;var Wp=Be,ur=null,zi=null,Bi=null,Tx=!1,J1=!1,eg=0,qH=0,ZH=25,Me=null,qs=null,Zf=-1,v9=!1;function er(){{var r=Me;qs===null?qs=[r]:qs.push(r)}}function it(){{var r=Me;qs!==null&&(Zf++,qs[Zf]!==r&&KH(r))}}function Xh(r){r!=null&&!jt(r)&&l("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Me,typeof r)}function KH(r){{var a=Wt(ur);if(!h9.has(a)&&(h9.add(a),qs!==null)){for(var u="",f=30,h=0;h<=Zf;h++){for(var x=qs[h],_=h===Zf?r:x,A=h+1+". "+x;A.length<f;)A+=" ";A+=_+`
`,u+=A}l(`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,u)}}}function Wa(){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 g9(r,a){if(v9)return!1;if(a===null)return l("%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.",Me),!1;r.length!==a.length&&l(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
Previous: %s
Incoming: %s`,Me,"["+a.join(", ")+"]","["+r.join(", ")+"]");for(var u=0;u<a.length&&u<r.length;u++)if(!da(r[u],a[u]))return!1;return!0}function Qh(r,a,u,f,h,x){Wp=x,ur=a,qs=r!==null?r._debugHookTypes:null,Zf=-1,v9=r!==null&&r.type!==a.type,a.memoizedState=null,a.updateQueue=null,a.lanes=Be,r!==null&&r.memoizedState!==null?pt.current=Tk:qs!==null?pt.current=_k:pt.current=Ek;var _=u(f,h);if(J1){var A=0;do{if(J1=!1,eg=0,A>=ZH)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");A+=1,v9=!1,zi=null,Bi=null,a.updateQueue=null,Zf=-1,pt.current=Rk,_=u(f,h)}while(J1)}pt.current=Bx,a._debugHookTypes=qs;var M=zi!==null&&zi.next!==null;if(Wp=Be,ur=null,zi=null,Bi=null,Me=null,qs=null,Zf=-1,r!==null&&(r.flags&Ms)!==(a.flags&Ms)&&(r.mode&Nn)!==Ft&&l("Internal React error: Expected static flag was missing. Please notify the React team."),Tx=!1,M)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return _}function Jh(){var r=eg!==0;return eg=0,r}function ok(r,a,u){a.updateQueue=r.updateQueue,(a.mode&_o)!==Ft?a.flags&=~(Qm|ai|os|mn):a.flags&=~(os|mn),r.lanes=up(r.lanes,u)}function sk(){if(pt.current=Bx,Tx){for(var r=ur.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}Tx=!1}Wp=Be,ur=null,zi=null,Bi=null,qs=null,Zf=-1,Me=null,xk=!1,J1=!1,eg=0}function vu(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Bi===null?ur.memoizedState=Bi=r:Bi=Bi.next=r,Bi}function Zs(){var r;if(zi===null){var a=ur.alternate;a!==null?r=a.memoizedState:r=null}else r=zi.next;var u;if(Bi===null?u=ur.memoizedState:u=Bi.next,u!==null)Bi=u,u=Bi.next,zi=r;else{if(r===null)throw new Error("Rendered more hooks than during the previous render.");zi=r;var f={memoizedState:zi.memoizedState,baseState:zi.baseState,baseQueue:zi.baseQueue,queue:zi.queue,next:null};Bi===null?ur.memoizedState=Bi=f:Bi=Bi.next=f}return Bi}function lk(){return{lastEffect:null,stores:null}}function b9(r,a){return typeof a=="function"?a(r):a}function y9(r,a,u){var f=vu(),h;u!==void 0?h=u(a):h=a,f.memoizedState=f.baseState=h;var x={pending:null,interleaved:null,lanes:Be,dispatch:null,lastRenderedReducer:r,lastRenderedState:h};f.queue=x;var _=x.dispatch=eW.bind(null,ur,x);return[f.memoizedState,_]}function x9(r,a,u){var f=Zs(),h=f.queue;if(h===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");h.lastRenderedReducer=r;var x=zi,_=x.baseQueue,A=h.pending;if(A!==null){if(_!==null){var M=_.next,U=A.next;_.next=U,A.next=M}x.baseQueue!==_&&l("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),x.baseQueue=_=A,h.pending=null}if(_!==null){var H=_.next,oe=x.baseState,re=null,xe=null,Se=null,Re=H;do{var ht=Re.lane;if(mc(Wp,ht)){if(Se!==null){var Et={lane:oi,action:Re.action,hasEagerState:Re.hasEagerState,eagerState:Re.eagerState,next:null};Se=Se.next=Et}if(Re.hasEagerState)oe=Re.eagerState;else{var $n=Re.action;oe=r(oe,$n)}}else{var Ot={lane:ht,action:Re.action,hasEagerState:Re.hasEagerState,eagerState:Re.eagerState,next:null};Se===null?(xe=Se=Ot,re=oe):Se=Se.next=Ot,ur.lanes=hn(ur.lanes,ht),yg(ht)}Re=Re.next}while(Re!==null&&Re!==H);Se===null?re=oe:Se.next=xe,da(oe,f.memoizedState)||sg(),f.memoizedState=oe,f.baseState=re,f.baseQueue=Se,h.lastRenderedState=oe}var _n=h.interleaved;if(_n!==null){var he=_n;do{var ke=he.lane;ur.lanes=hn(ur.lanes,ke),yg(ke),he=he.next}while(he!==_n)}else _===null&&(h.lanes=Be);var ve=h.dispatch;return[f.memoizedState,ve]}function S9(r,a,u){var f=Zs(),h=f.queue;if(h===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");h.lastRenderedReducer=r;var x=h.dispatch,_=h.pending,A=f.memoizedState;if(_!==null){h.pending=null;var M=_.next,U=M;do{var H=U.action;A=r(A,H),U=U.next}while(U!==M);da(A,f.memoizedState)||sg(),f.memoizedState=A,f.baseQueue===null&&(f.baseState=A),h.lastRenderedState=A}return[A,x]}function g4e(r,a,u){}function b4e(r,a,u){}function w9(r,a,u){var f=ur,h=vu(),x,_=ha();if(_){if(u===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");x=u(),Kh||x!==u()&&(l("The result of getServerSnapshot should be cached to avoid an infinite loop"),Kh=!0)}else{if(x=a(),!Kh){var A=a();da(x,A)||(l("The result of getSnapshot should be cached to avoid an infinite loop"),Kh=!0)}var M=i5();if(M===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");pc(M,Wp)||uk(f,a,x)}h.memoizedState=x;var U={value:x,getSnapshot:a};return h.queue=U,Ox(fk.bind(null,f,U,r),[r]),f.flags|=os,tg($i|va,ck.bind(null,f,U,x,a),void 0,null),x}function Rx(r,a,u){var f=ur,h=Zs(),x=a();if(!Kh){var _=a();da(x,_)||(l("The result of getSnapshot should be cached to avoid an infinite loop"),Kh=!0)}var A=h.memoizedState,M=!da(A,x);M&&(h.memoizedState=x,sg());var U=h.queue;if(rg(fk.bind(null,f,U,r),[r]),U.getSnapshot!==a||M||Bi!==null&&Bi.memoizedState.tag&$i){f.flags|=os,tg($i|va,ck.bind(null,f,U,x,a),void 0,null);var H=i5();if(H===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");pc(H,Wp)||uk(f,a,x)}return x}function uk(r,a,u){r.flags|=Xm;var f={getSnapshot:a,value:u},h=ur.updateQueue;if(h===null)h=lk(),ur.updateQueue=h,h.stores=[f];else{var x=h.stores;x===null?h.stores=[f]:x.push(f)}}function ck(r,a,u,f){a.value=u,a.getSnapshot=f,dk(a)&&pk(r)}function fk(r,a,u){var f=function(){dk(a)&&pk(r)};return u(f)}function dk(r){var a=r.getSnapshot,u=r.value;try{var f=a();return!da(u,f)}catch{return!0}}function pk(r){var a=Ao(r,qt);a!==null&&Hi(a,r,qt,rr)}function kx(r){var a=vu();typeof r=="function"&&(r=r()),a.memoizedState=a.baseState=r;var u={pending:null,interleaved:null,lanes:Be,dispatch:null,lastRenderedReducer:b9,lastRenderedState:r};a.queue=u;var f=u.dispatch=tW.bind(null,ur,u);return[a.memoizedState,f]}function C9(r){return x9(b9)}function N9(r){return S9(b9)}function tg(r,a,u,f){var h={tag:r,create:a,destroy:u,deps:f,next:null},x=ur.updateQueue;if(x===null)x=lk(),ur.updateQueue=x,x.lastEffect=h.next=h;else{var _=x.lastEffect;if(_===null)x.lastEffect=h.next=h;else{var A=_.next;_.next=h,h.next=A,x.lastEffect=h}}return h}function E9(r){var a=vu();{var u={current:r};return a.memoizedState=u,u}}function Ax(r){var a=Zs();return a.memoizedState}function ng(r,a,u,f){var h=vu(),x=f===void 0?null:f;ur.flags|=r,h.memoizedState=tg($i|a,u,void 0,x)}function Lx(r,a,u,f){var h=Zs(),x=f===void 0?null:f,_=void 0;if(zi!==null){var A=zi.memoizedState;if(_=A.destroy,x!==null){var M=A.deps;if(g9(x,M)){h.memoizedState=tg(a,u,_,x);return}}}ur.flags|=r,h.memoizedState=tg($i|a,u,_,x)}function Ox(r,a){return(ur.mode&_o)!==Ft?ng(Qm|os|_0,va,r,a):ng(os|_0,va,r,a)}function rg(r,a){return Lx(os,va,r,a)}function _9(r,a){return ng(mn,hu,r,a)}function Mx(r,a){return Lx(mn,hu,r,a)}function T9(r,a){var u=mn;return u|=sc,(ur.mode&_o)!==Ft&&(u|=ai),ng(u,Fi,r,a)}function Px(r,a){return Lx(mn,Fi,r,a)}function mk(r,a){if(typeof a=="function"){var u=a,f=r();return u(f),function(){u(null)}}else if(a!=null){var h=a;h.hasOwnProperty("current")||l("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(h).join(", ")+"}");var x=r();return h.current=x,function(){h.current=null}}}function R9(r,a,u){typeof a!="function"&&l("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",a!==null?typeof a:"null");var f=u!=null?u.concat([r]):null,h=mn;return h|=sc,(ur.mode&_o)!==Ft&&(h|=ai),ng(h,Fi,mk.bind(null,a,r),f)}function Ix(r,a,u){typeof a!="function"&&l("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",a!==null?typeof a:"null");var f=u!=null?u.concat([r]):null;return Lx(mn,Fi,mk.bind(null,a,r),f)}function XH(r,a){}var Dx=XH;function k9(r,a){var u=vu(),f=a===void 0?null:a;return u.memoizedState=[r,f],r}function $x(r,a){var u=Zs(),f=a===void 0?null:a,h=u.memoizedState;if(h!==null&&f!==null){var x=h[1];if(g9(f,x))return h[0]}return u.memoizedState=[r,f],r}function A9(r,a){var u=vu(),f=a===void 0?null:a,h=r();return u.memoizedState=[h,f],h}function Fx(r,a){var u=Zs(),f=a===void 0?null:a,h=u.memoizedState;if(h!==null&&f!==null){var x=h[1];if(g9(f,x))return h[0]}var _=r();return u.memoizedState=[_,f],_}function L9(r){var a=vu();return a.memoizedState=r,r}function hk(r){var a=Zs(),u=zi,f=u.memoizedState;return gk(a,f,r)}function vk(r){var a=Zs();if(zi===null)return a.memoizedState=r,r;var u=zi.memoizedState;return gk(a,u,r)}function gk(r,a,u){var f=!dh(Wp);if(f){if(!da(u,a)){var h=sp();ur.lanes=hn(ur.lanes,h),yg(h),r.baseState=!0}return a}else return r.baseState&&(r.baseState=!1,sg()),r.memoizedState=u,u}function QH(r,a,u){var f=To();vi(X4(f,zs)),r(!0);var h=Q1.transition;Q1.transition={};var x=Q1.transition;Q1.transition._updatedFibers=new Set;try{r(!1),a()}finally{if(vi(f),Q1.transition=h,h===null&&x._updatedFibers){var _=x._updatedFibers.size;_>10&&s("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."),x._updatedFibers.clear()}}}function O9(){var r=kx(!1),a=r[0],u=r[1],f=QH.bind(null,u),h=vu();return h.memoizedState=f,[a,f]}function bk(){var r=C9(),a=r[0],u=Zs(),f=u.memoizedState;return[a,f]}function yk(){var r=N9(),a=r[0],u=Zs(),f=u.memoizedState;return[a,f]}var xk=!1;function JH(){return xk}function M9(){var r=vu(),a=i5(),u=a.identifierPrefix,f;if(ha()){var h=pH();f=":"+u+"R"+h;var x=eg++;x>0&&(f+="H"+x.toString(32)),f+=":"}else{var _=qH++;f=":"+u+"r"+_.toString(32)+":"}return r.memoizedState=f,f}function zx(){var r=Zs(),a=r.memoizedState;return a}function eW(r,a,u){typeof arguments[3]=="function"&&l("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=ed(r),h={lane:f,action:u,hasEagerState:!1,eagerState:null,next:null};if(Sk(r))wk(a,h);else{var x=zR(r,a,h,f);if(x!==null){var _=fo();Hi(x,r,f,_),Ck(x,a,f)}}Nk(r,f)}function tW(r,a,u){typeof arguments[3]=="function"&&l("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=ed(r),h={lane:f,action:u,hasEagerState:!1,eagerState:null,next:null};if(Sk(r))wk(a,h);else{var x=r.alternate;if(r.lanes===Be&&(x===null||x.lanes===Be)){var _=a.lastRenderedReducer;if(_!==null){var A;A=pt.current,pt.current=Il;try{var M=a.lastRenderedState,U=_(M,u);if(h.hasEagerState=!0,h.eagerState=U,da(U,M)){MH(r,a,h,f);return}}catch{}finally{pt.current=A}}}var H=zR(r,a,h,f);if(H!==null){var oe=fo();Hi(H,r,f,oe),Ck(H,a,f)}}Nk(r,f)}function Sk(r){var a=r.alternate;return r===ur||a!==null&&a===ur}function wk(r,a){J1=Tx=!0;var u=r.pending;u===null?a.next=a:(a.next=u.next,u.next=a),r.pending=a}function Ck(r,a,u){if(Z0(u)){var f=a.lanes;f=Ky(f,r.pendingLanes);var h=hn(f,u);a.lanes=h,zt(r,h)}}function Nk(r,a,u){B0(r,a)}var Bx={readContext:yi,useCallback:Wa,useContext:Wa,useEffect:Wa,useImperativeHandle:Wa,useInsertionEffect:Wa,useLayoutEffect:Wa,useMemo:Wa,useReducer:Wa,useRef:Wa,useState:Wa,useDebugValue:Wa,useDeferredValue:Wa,useTransition:Wa,useMutableSource:Wa,useSyncExternalStore:Wa,useId:Wa,unstable_isNewReconciler:le},Ek=null,_k=null,Tk=null,Rk=null,gu=null,Il=null,Ux=null;{var P9=function(){l("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().")},Jt=function(){l("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")};Ek={readContext:function(r){return yi(r)},useCallback:function(r,a){return Me="useCallback",er(),Xh(a),k9(r,a)},useContext:function(r){return Me="useContext",er(),yi(r)},useEffect:function(r,a){return Me="useEffect",er(),Xh(a),Ox(r,a)},useImperativeHandle:function(r,a,u){return Me="useImperativeHandle",er(),Xh(u),R9(r,a,u)},useInsertionEffect:function(r,a){return Me="useInsertionEffect",er(),Xh(a),_9(r,a)},useLayoutEffect:function(r,a){return Me="useLayoutEffect",er(),Xh(a),T9(r,a)},useMemo:function(r,a){Me="useMemo",er(),Xh(a);var u=pt.current;pt.current=gu;try{return A9(r,a)}finally{pt.current=u}},useReducer:function(r,a,u){Me="useReducer",er();var f=pt.current;pt.current=gu;try{return y9(r,a,u)}finally{pt.current=f}},useRef:function(r){return Me="useRef",er(),E9(r)},useState:function(r){Me="useState",er();var a=pt.current;pt.current=gu;try{return kx(r)}finally{pt.current=a}},useDebugValue:function(r,a){return Me="useDebugValue",er(),void 0},useDeferredValue:function(r){return Me="useDeferredValue",er(),L9(r)},useTransition:function(){return Me="useTransition",er(),O9()},useMutableSource:function(r,a,u){return Me="useMutableSource",er(),void 0},useSyncExternalStore:function(r,a,u){return Me="useSyncExternalStore",er(),w9(r,a,u)},useId:function(){return Me="useId",er(),M9()},unstable_isNewReconciler:le},_k={readContext:function(r){return yi(r)},useCallback:function(r,a){return Me="useCallback",it(),k9(r,a)},useContext:function(r){return Me="useContext",it(),yi(r)},useEffect:function(r,a){return Me="useEffect",it(),Ox(r,a)},useImperativeHandle:function(r,a,u){return Me="useImperativeHandle",it(),R9(r,a,u)},useInsertionEffect:function(r,a){return Me="useInsertionEffect",it(),_9(r,a)},useLayoutEffect:function(r,a){return Me="useLayoutEffect",it(),T9(r,a)},useMemo:function(r,a){Me="useMemo",it();var u=pt.current;pt.current=gu;try{return A9(r,a)}finally{pt.current=u}},useReducer:function(r,a,u){Me="useReducer",it();var f=pt.current;pt.current=gu;try{return y9(r,a,u)}finally{pt.current=f}},useRef:function(r){return Me="useRef",it(),E9(r)},useState:function(r){Me="useState",it();var a=pt.current;pt.current=gu;try{return kx(r)}finally{pt.current=a}},useDebugValue:function(r,a){return Me="useDebugValue",it(),void 0},useDeferredValue:function(r){return Me="useDeferredValue",it(),L9(r)},useTransition:function(){return Me="useTransition",it(),O9()},useMutableSource:function(r,a,u){return Me="useMutableSource",it(),void 0},useSyncExternalStore:function(r,a,u){return Me="useSyncExternalStore",it(),w9(r,a,u)},useId:function(){return Me="useId",it(),M9()},unstable_isNewReconciler:le},Tk={readContext:function(r){return yi(r)},useCallback:function(r,a){return Me="useCallback",it(),$x(r,a)},useContext:function(r){return Me="useContext",it(),yi(r)},useEffect:function(r,a){return Me="useEffect",it(),rg(r,a)},useImperativeHandle:function(r,a,u){return Me="useImperativeHandle",it(),Ix(r,a,u)},useInsertionEffect:function(r,a){return Me="useInsertionEffect",it(),Mx(r,a)},useLayoutEffect:function(r,a){return Me="useLayoutEffect",it(),Px(r,a)},useMemo:function(r,a){Me="useMemo",it();var u=pt.current;pt.current=Il;try{return Fx(r,a)}finally{pt.current=u}},useReducer:function(r,a,u){Me="useReducer",it();var f=pt.current;pt.current=Il;try{return x9(r,a,u)}finally{pt.current=f}},useRef:function(r){return Me="useRef",it(),Ax()},useState:function(r){Me="useState",it();var a=pt.current;pt.current=Il;try{return C9(r)}finally{pt.current=a}},useDebugValue:function(r,a){return Me="useDebugValue",it(),Dx()},useDeferredValue:function(r){return Me="useDeferredValue",it(),hk(r)},useTransition:function(){return Me="useTransition",it(),bk()},useMutableSource:function(r,a,u){return Me="useMutableSource",it(),void 0},useSyncExternalStore:function(r,a,u){return Me="useSyncExternalStore",it(),Rx(r,a)},useId:function(){return Me="useId",it(),zx()},unstable_isNewReconciler:le},Rk={readContext:function(r){return yi(r)},useCallback:function(r,a){return Me="useCallback",it(),$x(r,a)},useContext:function(r){return Me="useContext",it(),yi(r)},useEffect:function(r,a){return Me="useEffect",it(),rg(r,a)},useImperativeHandle:function(r,a,u){return Me="useImperativeHandle",it(),Ix(r,a,u)},useInsertionEffect:function(r,a){return Me="useInsertionEffect",it(),Mx(r,a)},useLayoutEffect:function(r,a){return Me="useLayoutEffect",it(),Px(r,a)},useMemo:function(r,a){Me="useMemo",it();var u=pt.current;pt.current=Ux;try{return Fx(r,a)}finally{pt.current=u}},useReducer:function(r,a,u){Me="useReducer",it();var f=pt.current;pt.current=Ux;try{return S9(r,a,u)}finally{pt.current=f}},useRef:function(r){return Me="useRef",it(),Ax()},useState:function(r){Me="useState",it();var a=pt.current;pt.current=Ux;try{return N9(r)}finally{pt.current=a}},useDebugValue:function(r,a){return Me="useDebugValue",it(),Dx()},useDeferredValue:function(r){return Me="useDeferredValue",it(),vk(r)},useTransition:function(){return Me="useTransition",it(),yk()},useMutableSource:function(r,a,u){return Me="useMutableSource",it(),void 0},useSyncExternalStore:function(r,a,u){return Me="useSyncExternalStore",it(),Rx(r,a)},useId:function(){return Me="useId",it(),zx()},unstable_isNewReconciler:le},gu={readContext:function(r){return P9(),yi(r)},useCallback:function(r,a){return Me="useCallback",Jt(),er(),k9(r,a)},useContext:function(r){return Me="useContext",Jt(),er(),yi(r)},useEffect:function(r,a){return Me="useEffect",Jt(),er(),Ox(r,a)},useImperativeHandle:function(r,a,u){return Me="useImperativeHandle",Jt(),er(),R9(r,a,u)},useInsertionEffect:function(r,a){return Me="useInsertionEffect",Jt(),er(),_9(r,a)},useLayoutEffect:function(r,a){return Me="useLayoutEffect",Jt(),er(),T9(r,a)},useMemo:function(r,a){Me="useMemo",Jt(),er();var u=pt.current;pt.current=gu;try{return A9(r,a)}finally{pt.current=u}},useReducer:function(r,a,u){Me="useReducer",Jt(),er();var f=pt.current;pt.current=gu;try{return y9(r,a,u)}finally{pt.current=f}},useRef:function(r){return Me="useRef",Jt(),er(),E9(r)},useState:function(r){Me="useState",Jt(),er();var a=pt.current;pt.current=gu;try{return kx(r)}finally{pt.current=a}},useDebugValue:function(r,a){return Me="useDebugValue",Jt(),er(),void 0},useDeferredValue:function(r){return Me="useDeferredValue",Jt(),er(),L9(r)},useTransition:function(){return Me="useTransition",Jt(),er(),O9()},useMutableSource:function(r,a,u){return Me="useMutableSource",Jt(),er(),void 0},useSyncExternalStore:function(r,a,u){return Me="useSyncExternalStore",Jt(),er(),w9(r,a,u)},useId:function(){return Me="useId",Jt(),er(),M9()},unstable_isNewReconciler:le},Il={readContext:function(r){return P9(),yi(r)},useCallback:function(r,a){return Me="useCallback",Jt(),it(),$x(r,a)},useContext:function(r){return Me="useContext",Jt(),it(),yi(r)},useEffect:function(r,a){return Me="useEffect",Jt(),it(),rg(r,a)},useImperativeHandle:function(r,a,u){return Me="useImperativeHandle",Jt(),it(),Ix(r,a,u)},useInsertionEffect:function(r,a){return Me="useInsertionEffect",Jt(),it(),Mx(r,a)},useLayoutEffect:function(r,a){return Me="useLayoutEffect",Jt(),it(),Px(r,a)},useMemo:function(r,a){Me="useMemo",Jt(),it();var u=pt.current;pt.current=Il;try{return Fx(r,a)}finally{pt.current=u}},useReducer:function(r,a,u){Me="useReducer",Jt(),it();var f=pt.current;pt.current=Il;try{return x9(r,a,u)}finally{pt.current=f}},useRef:function(r){return Me="useRef",Jt(),it(),Ax()},useState:function(r){Me="useState",Jt(),it();var a=pt.current;pt.current=Il;try{return C9(r)}finally{pt.current=a}},useDebugValue:function(r,a){return Me="useDebugValue",Jt(),it(),Dx()},useDeferredValue:function(r){return Me="useDeferredValue",Jt(),it(),hk(r)},useTransition:function(){return Me="useTransition",Jt(),it(),bk()},useMutableSource:function(r,a,u){return Me="useMutableSource",Jt(),it(),void 0},useSyncExternalStore:function(r,a,u){return Me="useSyncExternalStore",Jt(),it(),Rx(r,a)},useId:function(){return Me="useId",Jt(),it(),zx()},unstable_isNewReconciler:le},Ux={readContext:function(r){return P9(),yi(r)},useCallback:function(r,a){return Me="useCallback",Jt(),it(),$x(r,a)},useContext:function(r){return Me="useContext",Jt(),it(),yi(r)},useEffect:function(r,a){return Me="useEffect",Jt(),it(),rg(r,a)},useImperativeHandle:function(r,a,u){return Me="useImperativeHandle",Jt(),it(),Ix(r,a,u)},useInsertionEffect:function(r,a){return Me="useInsertionEffect",Jt(),it(),Mx(r,a)},useLayoutEffect:function(r,a){return Me="useLayoutEffect",Jt(),it(),Px(r,a)},useMemo:function(r,a){Me="useMemo",Jt(),it();var u=pt.current;pt.current=Il;try{return Fx(r,a)}finally{pt.current=u}},useReducer:function(r,a,u){Me="useReducer",Jt(),it();var f=pt.current;pt.current=Il;try{return S9(r,a,u)}finally{pt.current=f}},useRef:function(r){return Me="useRef",Jt(),it(),Ax()},useState:function(r){Me="useState",Jt(),it();var a=pt.current;pt.current=Il;try{return N9(r)}finally{pt.current=a}},useDebugValue:function(r,a){return Me="useDebugValue",Jt(),it(),Dx()},useDeferredValue:function(r){return Me="useDeferredValue",Jt(),it(),vk(r)},useTransition:function(){return Me="useTransition",Jt(),it(),yk()},useMutableSource:function(r,a,u){return Me="useMutableSource",Jt(),it(),void 0},useSyncExternalStore:function(r,a,u){return Me="useSyncExternalStore",Jt(),it(),Rx(r,a)},useId:function(){return Me="useId",Jt(),it(),zx()},unstable_isNewReconciler:le}}var Kf=t.unstable_now,kk=0,jx=-1,ig=-1,Vx=-1,I9=!1,Hx=!1;function Ak(){return I9}function nW(){Hx=!0}function rW(){I9=!1,Hx=!1}function iW(){I9=Hx,Hx=!1}function Lk(){return kk}function Ok(){kk=Kf()}function D9(r){ig=Kf(),r.actualStartTime<0&&(r.actualStartTime=Kf())}function Mk(r){ig=-1}function Wx(r,a){if(ig>=0){var u=Kf()-ig;r.actualDuration+=u,a&&(r.selfBaseDuration=u),ig=-1}}function bu(r){if(jx>=0){var a=Kf()-jx;jx=-1;for(var u=r.return;u!==null;){switch(u.tag){case b:var f=u.stateNode;f.effectDuration+=a;return;case F:var h=u.stateNode;h.effectDuration+=a;return}u=u.return}}}function $9(r){if(Vx>=0){var a=Kf()-Vx;Vx=-1;for(var u=r.return;u!==null;){switch(u.tag){case b:var f=u.stateNode;f!==null&&(f.passiveEffectDuration+=a);return;case F:var h=u.stateNode;h!==null&&(h.passiveEffectDuration+=a);return}u=u.return}}}function yu(){jx=Kf()}function F9(){Vx=Kf()}function z9(r){for(var a=r.child;a;)r.actualDuration+=a.actualDuration,a=a.sibling}function Gp(r,a){return{value:r,source:a,stack:Xi(a),digest:null}}function B9(r,a,u){return{value:r,source:null,stack:u??null,digest:a??null}}function aW(r,a){return!0}function U9(r,a){try{var u=aW(r,a);if(u===!1)return;var f=a.value,h=a.source,x=a.stack,_=x!==null?x:"";if(f!=null&&f._suppressLogging){if(r.tag===v)return;console.error(f)}var A=h?Wt(h):null,M=A?"The above error occurred in the <"+A+"> component:":"The above error occurred in one of your React components:",U;if(r.tag===b)U=`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=Wt(r)||"Anonymous";U="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+H+".")}var oe=M+`
`+_+`
`+(""+U);console.error(oe)}catch(re){setTimeout(function(){throw re})}}var oW=typeof WeakMap=="function"?WeakMap:Map;function Pk(r,a,u){var f=Rc(rr,u);f.tag=UN,f.payload={element:null};var h=a.value;return f.callback=function(){QG(h),U9(r,a)},f}function j9(r,a,u){var f=Rc(rr,u);f.tag=UN;var h=r.type.getDerivedStateFromError;if(typeof h=="function"){var x=a.value;f.payload=function(){return h(x)},f.callback=function(){WA(r),U9(r,a)}}var _=r.stateNode;return _!==null&&typeof _.componentDidCatch=="function"&&(f.callback=function(){WA(r),U9(r,a),typeof h!="function"&&KG(this);var M=a.value,U=a.stack;this.componentDidCatch(M,{componentStack:U!==null?U:""}),typeof h!="function"&&(za(r.lanes,qt)||l("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Wt(r)||"Unknown"))}),f}function Ik(r,a,u){var f=r.pingCache,h;if(f===null?(f=r.pingCache=new oW,h=new Set,f.set(a,h)):(h=f.get(a),h===void 0&&(h=new Set,f.set(a,h))),!h.has(u)){h.add(u);var x=JG.bind(null,r,a,u);Ii&&xg(r,u),a.then(x,x)}}function sW(r,a,u,f){var h=r.updateQueue;if(h===null){var x=new Set;x.add(u),r.updateQueue=x}else h.add(u)}function lW(r,a){var u=r.tag;if((r.mode&Nn)===Ft&&(u===m||u===I||u===Y)){var f=r.alternate;f?(r.updateQueue=f.updateQueue,r.memoizedState=f.memoizedState,r.lanes=f.lanes):(r.updateQueue=null,r.memoizedState=null)}}function Dk(r){var a=r;do{if(a.tag===z&&GH(a))return a;a=a.return}while(a!==null);return null}function $k(r,a,u,f,h){if((r.mode&Nn)===Ft){if(r===a)r.flags|=la;else{if(r.flags|=jn,u.flags|=E0,u.flags&=~(Cl|qd),u.tag===v){var x=u.alternate;if(x===null)u.tag=ie;else{var _=Rc(rr,qt);_.tag=hx,Gf(u,_,qt)}}u.lanes=hn(u.lanes,qt)}return r}return r.flags|=la,r.lanes=h,r}function uW(r,a,u,f,h){if(u.flags|=qd,Ii&&xg(r,h),f!==null&&typeof f=="object"&&typeof f.then=="function"){var x=f;lW(u),ha()&&u.mode&Nn&&TR();var _=Dk(a);if(_!==null){_.flags&=~Sl,$k(_,a,u,r,h),_.mode&Nn&&Ik(r,x,h),sW(_,r,x);return}else{if(!qy(h)){Ik(r,x,h),S6();return}var A=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=A}}else if(ha()&&u.mode&Nn){TR();var M=Dk(a);if(M!==null){(M.flags&la)===Ut&&(M.flags|=Sl),$k(M,a,u,r,h),PN(Gp(f,u));return}}f=Gp(f,u),jG(f);var U=a;do{switch(U.tag){case b:{var H=f;U.flags|=la;var oe=lp(h);U.lanes=hn(U.lanes,oe);var re=Pk(U,H,oe);HN(U,re);return}case v:var xe=f,Se=U.type,Re=U.stateNode;if((U.flags&jn)===Ut&&(typeof Se.getDerivedStateFromError=="function"||Re!==null&&typeof Re.componentDidCatch=="function"&&!DA(Re))){U.flags|=la;var ht=lp(h);U.lanes=hn(U.lanes,ht);var Ot=j9(U,xe,ht);HN(U,Ot);return}break}U=U.return}while(U!==null)}function cW(){return null}var ag=n.ReactCurrentOwner,Dl=!1,V9,og,H9,W9,G9,Yp,Y9,Gx;V9={},og={},H9={},W9={},G9={},Yp=!1,Y9={},Gx={};function uo(r,a,u,f){r===null?a.child=tk(a,null,u,f):a.child=Gh(a,r.child,u,f)}function fW(r,a,u,f){a.child=Gh(a,r.child,null,f),a.child=Gh(a,null,u,f)}function Fk(r,a,u,f,h){if(a.type!==a.elementType){var x=u.propTypes;x&&wr(x,f,"prop",dn(u))}var _=u.render,A=a.ref,M,U;Wh(a,h),Jd(a);{if(ag.current=a,ri(!0),M=Qh(r,a,_,f,A,h),U=Jh(),a.mode&Yr){mi(!0);try{M=Qh(r,a,_,f,A,h),U=Jh()}finally{mi(!1)}}ri(!1)}return xf(),r!==null&&!Dl?(ok(r,a,h),kc(r,a,h)):(ha()&&U&&RN(a),a.flags|=bf,uo(r,a,M,h),a.child)}function zk(r,a,u,f,h){if(r===null){var x=u.type;if(vY(x)&&u.compare===null&&u.defaultProps===void 0){var _=x;return _=sv(x),a.tag=Y,a.type=_,K9(a,x),Bk(r,a,_,f,h)}{var A=x.propTypes;A&&wr(A,f,"prop",dn(x))}var M=O6(u.type,null,f,a,a.mode,h);return M.ref=a.ref,M.return=a,a.child=M,M}{var U=u.type,H=U.propTypes;H&&wr(H,f,"prop",dn(U))}var oe=r.child,re=n6(r,h);if(!re){var xe=oe.memoizedProps,Se=u.compare;if(Se=Se!==null?Se:Df,Se(xe,f)&&r.ref===a.ref)return kc(r,a,h)}a.flags|=bf;var Re=Qp(oe,f);return Re.ref=a.ref,Re.return=a,a.child=Re,Re}function Bk(r,a,u,f,h){if(a.type!==a.elementType){var x=a.elementType;if(x.$$typeof===fn){var _=x,A=_._payload,M=_._init;try{x=M(A)}catch{x=null}var U=x&&x.propTypes;U&&wr(U,f,"prop",dn(x))}}if(r!==null){var H=r.memoizedProps;if(Df(H,f)&&r.ref===a.ref&&a.type===r.type)if(Dl=!1,a.pendingProps=f=H,n6(r,h))(r.flags&E0)!==Ut&&(Dl=!0);else return a.lanes=r.lanes,kc(r,a,h)}return q9(r,a,u,f,h)}function Uk(r,a,u){var f=a.pendingProps,h=f.children,x=r!==null?r.memoizedState:null;if(f.mode==="hidden"||pe)if((a.mode&Nn)===Ft){var _={baseLanes:Be,cachePool:null,transitions:null};a.memoizedState=_,a5(a,u)}else if(za(u,so)){var oe={baseLanes:Be,cachePool:null,transitions:null};a.memoizedState=oe;var re=x!==null?x.baseLanes:u;a5(a,re)}else{var A=null,M;if(x!==null){var U=x.baseLanes;M=hn(U,u)}else M=u;a.lanes=a.childLanes=so;var H={baseLanes:M,cachePool:A,transitions:null};return a.memoizedState=H,a.updateQueue=null,a5(a,M),null}else{var xe;x!==null?(xe=hn(x.baseLanes,u),a.memoizedState=null):xe=u,a5(a,xe)}return uo(r,a,h,u),a.child}function dW(r,a,u){var f=a.pendingProps;return uo(r,a,f,u),a.child}function pW(r,a,u){var f=a.pendingProps.children;return uo(r,a,f,u),a.child}function mW(r,a,u){{a.flags|=mn;{var f=a.stateNode;f.effectDuration=0,f.passiveEffectDuration=0}}var h=a.pendingProps,x=h.children;return uo(r,a,x,u),a.child}function jk(r,a){var u=a.ref;(r===null&&u!==null||r!==null&&r.ref!==u)&&(a.flags|=Ji,a.flags|=Nl)}function q9(r,a,u,f,h){if(a.type!==a.elementType){var x=u.propTypes;x&&wr(x,f,"prop",dn(u))}var _;{var A=zh(a,u,!0);_=Bh(a,A)}var M,U;Wh(a,h),Jd(a);{if(ag.current=a,ri(!0),M=Qh(r,a,u,f,_,h),U=Jh(),a.mode&Yr){mi(!0);try{M=Qh(r,a,u,f,_,h),U=Jh()}finally{mi(!1)}}ri(!1)}return xf(),r!==null&&!Dl?(ok(r,a,h),kc(r,a,h)):(ha()&&U&&RN(a),a.flags|=bf,uo(r,a,M,h),a.child)}function Vk(r,a,u,f,h){{switch(LY(a)){case!1:{var x=a.stateNode,_=a.type,A=new _(a.memoizedProps,x.context),M=A.state;x.updater.enqueueSetState(x,M,null);break}case!0:{a.flags|=jn,a.flags|=la;var U=new Error("Simulated error coming from DevTools"),H=lp(h);a.lanes=hn(a.lanes,H);var oe=j9(a,Gp(U,a),H);HN(a,oe);break}}if(a.type!==a.elementType){var re=u.propTypes;re&&wr(re,f,"prop",dn(u))}}var xe;mu(u)?(xe=!0,ix(a)):xe=!1,Wh(a,h);var Se=a.stateNode,Re;Se===null?(qx(r,a),KR(a,u,f),n9(a,u,f,h),Re=!0):r===null?Re=BH(a,u,f,h):Re=UH(r,a,u,f,h);var ht=Z9(r,a,u,Re,xe,h);{var Ot=a.stateNode;Re&&Ot.props!==f&&(Yp||l("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Wt(a)||"a component"),Yp=!0)}return ht}function Z9(r,a,u,f,h,x){jk(r,a);var _=(a.flags&jn)!==Ut;if(!f&&!_)return h&&CR(a,u,!1),kc(r,a,x);var A=a.stateNode;ag.current=a;var M;if(_&&typeof u.getDerivedStateFromError!="function")M=null,Mk();else{Jd(a);{if(ri(!0),M=A.render(),a.mode&Yr){mi(!0);try{A.render()}finally{mi(!1)}}ri(!1)}xf()}return a.flags|=bf,r!==null&&_?fW(r,a,M,x):uo(r,a,M,x),a.memoizedState=A.state,h&&CR(a,u,!0),a.child}function Hk(r){var a=r.stateNode;a.pendingContext?SR(r,a.pendingContext,a.pendingContext!==a.context):a.context&&SR(r,a.context,!1),l9(r,a.containerInfo)}function hW(r,a,u){if(Hk(a),r===null)throw new Error("Should have a current fiber. This is a bug in React.");var f=a.pendingProps,h=a.memoizedState,x=h.element;jR(r,a),yx(a,f,null,u);var _=a.memoizedState;a.stateNode;var A=_.element;if(h.isDehydrated){var M={element:A,isDehydrated:!1,cache:_.cache,pendingSuspenseBoundaries:_.pendingSuspenseBoundaries,transitions:_.transitions},U=a.updateQueue;if(U.baseState=M,a.memoizedState=M,a.flags&Sl){var H=Gp(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 Wk(r,a,A,u,H)}else if(A!==x){var oe=Gp(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),a);return Wk(r,a,A,u,oe)}else{yH(a);var re=tk(a,null,A,u);a.child=re;for(var xe=re;xe;)xe.flags=xe.flags&~Qr|wl,xe=xe.sibling}}else{if(Vh(),A===x)return kc(r,a,u);uo(r,a,A,u)}return a.child}function Wk(r,a,u,f,h){return Vh(),PN(h),a.flags|=Sl,uo(r,a,u,f),a.child}function vW(r,a,u){rk(a),r===null&&MN(a);var f=a.type,h=a.pendingProps,x=r!==null?r.memoizedProps:null,_=h.children,A=k1(f,h);return A?_=null:x!==null&&k1(f,x)&&(a.flags|=Yd),jk(r,a),uo(r,a,_,u),a.child}function gW(r,a){return r===null&&MN(a),null}function bW(r,a,u,f){qx(r,a);var h=a.pendingProps,x=u,_=x._payload,A=x._init,M=A(_);a.type=M;var U=a.tag=gY(M),H=Ml(M,h),oe;switch(U){case m:return K9(a,M),a.type=M=sv(M),oe=q9(null,a,M,H,f),oe;case v:return a.type=M=_6(M),oe=Vk(null,a,M,H,f),oe;case I:return a.type=M=T6(M),oe=Fk(null,a,M,H,f),oe;case q:{if(a.type!==a.elementType){var re=M.propTypes;re&&wr(re,H,"prop",dn(M))}return oe=zk(null,a,M,Ml(M.type,H),f),oe}}var xe="";throw M!==null&&typeof M=="object"&&M.$$typeof===fn&&(xe=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+M+". "+("Lazy element type must resolve to a class or function."+xe))}function yW(r,a,u,f,h){qx(r,a),a.tag=v;var x;return mu(u)?(x=!0,ix(a)):x=!1,Wh(a,h),KR(a,u,f),n9(a,u,f,h),Z9(null,a,u,!0,x,h)}function xW(r,a,u,f){qx(r,a);var h=a.pendingProps,x;{var _=zh(a,u,!1);x=Bh(a,_)}Wh(a,f);var A,M;Jd(a);{if(u.prototype&&typeof u.prototype.render=="function"){var U=dn(u)||"Unknown";V9[U]||(l("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.",U,U),V9[U]=!0)}a.mode&Yr&&Ol.recordLegacyContextWarning(a,null),ri(!0),ag.current=a,A=Qh(null,a,u,h,x,f),M=Jh(),ri(!1)}if(xf(),a.flags|=bf,typeof A=="object"&&A!==null&&typeof A.render=="function"&&A.$$typeof===void 0){var H=dn(u)||"Unknown";og[H]||(l("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),og[H]=!0)}if(typeof A=="object"&&A!==null&&typeof A.render=="function"&&A.$$typeof===void 0){{var oe=dn(u)||"Unknown";og[oe]||(l("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.",oe,oe,oe),og[oe]=!0)}a.tag=v,a.memoizedState=null,a.updateQueue=null;var re=!1;return mu(u)?(re=!0,ix(a)):re=!1,a.memoizedState=A.state!==null&&A.state!==void 0?A.state:null,VN(a),ZR(a,A),n9(a,u,h,f),Z9(null,a,u,!0,re,f)}else{if(a.tag=m,a.mode&Yr){mi(!0);try{A=Qh(null,a,u,h,x,f),M=Jh()}finally{mi(!1)}}return ha()&&M&&RN(a),uo(null,a,A,f),K9(a,u),a.child}}function K9(r,a){{if(a&&a.childContextTypes&&l("%s(...): childContextTypes cannot be defined on a function component.",a.displayName||a.name||"Component"),r.ref!==null){var u="",f=oa();f&&(u+=`
Check the render method of \``+f+"`.");var h=f||"",x=r._debugSource;x&&(h=x.fileName+":"+x.lineNumber),G9[h]||(G9[h]=!0,l("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",u))}if(typeof a.getDerivedStateFromProps=="function"){var _=dn(a)||"Unknown";W9[_]||(l("%s: Function components do not support getDerivedStateFromProps.",_),W9[_]=!0)}if(typeof a.contextType=="object"&&a.contextType!==null){var A=dn(a)||"Unknown";H9[A]||(l("%s: Function components do not support contextType.",A),H9[A]=!0)}}}var X9={dehydrated:null,treeContext:null,retryLane:oi};function Q9(r){return{baseLanes:r,cachePool:cW(),transitions:null}}function SW(r,a){var u=null;return{baseLanes:hn(r.baseLanes,a),cachePool:u,transitions:r.transitions}}function wW(r,a,u,f){if(a!==null){var h=a.memoizedState;if(h===null)return!1}return f9(r,X1)}function CW(r,a){return up(r.childLanes,a)}function Gk(r,a,u){var f=a.pendingProps;OY(a)&&(a.flags|=jn);var h=Pl.current,x=!1,_=(a.flags&jn)!==Ut;if(_||wW(h,r)?(x=!0,a.flags&=~jn):(r===null||r.memoizedState!==null)&&(h=WH(h,ak)),h=qh(h),qf(a,h),r===null){MN(a);var A=a.memoizedState;if(A!==null){var M=A.dehydrated;if(M!==null)return RW(a,M)}var U=f.children,H=f.fallback;if(x){var oe=NW(a,U,H,u),re=a.child;return re.memoizedState=Q9(u),a.memoizedState=X9,oe}else return J9(a,U)}else{var xe=r.memoizedState;if(xe!==null){var Se=xe.dehydrated;if(Se!==null)return kW(r,a,_,f,Se,xe,u)}if(x){var Re=f.fallback,ht=f.children,Ot=_W(r,a,ht,Re,u),Et=a.child,$n=r.child.memoizedState;return Et.memoizedState=$n===null?Q9(u):SW($n,u),Et.childLanes=CW(r,u),a.memoizedState=X9,Ot}else{var _n=f.children,he=EW(r,a,_n,u);return a.memoizedState=null,he}}}function J9(r,a,u){var f=r.mode,h={mode:"visible",children:a},x=e6(h,f);return x.return=r,r.child=x,x}function NW(r,a,u,f){var h=r.mode,x=r.child,_={mode:"hidden",children:a},A,M;return(h&Nn)===Ft&&x!==null?(A=x,A.childLanes=Be,A.pendingProps=_,r.mode&Gn&&(A.actualDuration=0,A.actualStartTime=-1,A.selfBaseDuration=0,A.treeBaseDuration=0),M=nd(u,h,f,null)):(A=e6(_,h),M=nd(u,h,f,null)),A.return=r,M.return=r,A.sibling=M,r.child=A,M}function e6(r,a,u){return YA(r,a,Be,null)}function Yk(r,a){return Qp(r,a)}function EW(r,a,u,f){var h=r.child,x=h.sibling,_=Yk(h,{mode:"visible",children:u});if((a.mode&Nn)===Ft&&(_.lanes=f),_.return=a,_.sibling=null,x!==null){var A=a.deletions;A===null?(a.deletions=[x],a.flags|=ic):A.push(x)}return a.child=_,_}function _W(r,a,u,f,h){var x=a.mode,_=r.child,A=_.sibling,M={mode:"hidden",children:u},U;if((x&Nn)===Ft&&a.child!==_){var H=a.child;U=H,U.childLanes=Be,U.pendingProps=M,a.mode&Gn&&(U.actualDuration=0,U.actualStartTime=-1,U.selfBaseDuration=_.selfBaseDuration,U.treeBaseDuration=_.treeBaseDuration),a.deletions=null}else U=Yk(_,M),U.subtreeFlags=_.subtreeFlags&Ms;var oe;return A!==null?oe=Qp(A,f):(oe=nd(f,x,h,null),oe.flags|=Qr),oe.return=a,U.return=a,U.sibling=oe,a.child=U,oe}function Yx(r,a,u,f){f!==null&&PN(f),Gh(a,r.child,null,u);var h=a.pendingProps,x=h.children,_=J9(a,x);return _.flags|=Qr,a.memoizedState=null,_}function TW(r,a,u,f,h){var x=a.mode,_={mode:"visible",children:u},A=e6(_,x),M=nd(f,x,h,null);return M.flags|=Qr,A.return=a,M.return=a,A.sibling=M,a.child=A,(a.mode&Nn)!==Ft&&Gh(a,r.child,null,h),M}function RW(r,a,u){return(r.mode&Nn)===Ft?(l("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."),r.lanes=qt):z1(a)?r.lanes=cc:r.lanes=so,null}function kW(r,a,u,f,h,x,_){if(u)if(a.flags&Sl){a.flags&=~Sl;var he=B9(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return Yx(r,a,_,he)}else{if(a.memoizedState!==null)return a.child=r.child,a.flags|=jn,null;var ke=f.children,ve=f.fallback,Ke=TW(r,a,ke,ve,_),vt=a.child;return vt.memoizedState=Q9(_),a.memoizedState=X9,Ke}else{if(gH(),(a.mode&Nn)===Ft)return Yx(r,a,_,null);if(z1(h)){var A,M,U;{var H=eN(h);A=H.digest,M=H.message,U=H.stack}var oe;M?oe=new Error(M):oe=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var re=B9(oe,A,U);return Yx(r,a,_,re)}var xe=za(_,r.childLanes);if(Dl||xe){var Se=i5();if(Se!==null){var Re=ph(Se,_);if(Re!==oi&&Re!==x.retryLane){x.retryLane=Re;var ht=rr;Ao(r,Re),Hi(Se,r,Re,ht)}}S6();var Ot=B9(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 Yx(r,a,_,Ot)}else if(ex(h)){a.flags|=jn,a.child=r.child;var Et=eY.bind(null,r);return tN(h,Et),null}else{xH(a,h,x.treeContext);var $n=f.children,_n=J9(a,$n);return _n.flags|=wl,_n}}}function qk(r,a,u){r.lanes=hn(r.lanes,a);var f=r.alternate;f!==null&&(f.lanes=hn(f.lanes,a)),zN(r.return,a,u)}function AW(r,a,u){for(var f=a;f!==null;){if(f.tag===z){var h=f.memoizedState;h!==null&&qk(f,u,r)}else if(f.tag===me)qk(f,u,r);else if(f.child!==null){f.child.return=f,f=f.child;continue}if(f===r)return;for(;f.sibling===null;){if(f.return===null||f.return===r)return;f=f.return}f.sibling.return=f.return,f=f.sibling}}function LW(r){for(var a=r,u=null;a!==null;){var f=a.alternate;f!==null&&_x(f)===null&&(u=a),a=a.sibling}return u}function OW(r){if(r!==void 0&&r!=="forwards"&&r!=="backwards"&&r!=="together"&&!Y9[r])if(Y9[r]=!0,typeof r=="string")switch(r.toLowerCase()){case"together":case"forwards":case"backwards":{l('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',r,r.toLowerCase());break}case"forward":case"backward":{l('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',r,r.toLowerCase());break}default:l('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',r);break}else l('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',r)}function MW(r,a){r!==void 0&&!Gx[r]&&(r!=="collapsed"&&r!=="hidden"?(Gx[r]=!0,l('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',r)):a!=="forwards"&&a!=="backwards"&&(Gx[r]=!0,l('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',r)))}function Zk(r,a){{var u=jt(r),f=!u&&typeof eo(r)=="function";if(u||f){var h=u?"array":"iterable";return l("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>",h,a,h),!1}}return!0}function PW(r,a){if((a==="forwards"||a==="backwards")&&r!==void 0&&r!==null&&r!==!1)if(jt(r)){for(var u=0;u<r.length;u++)if(!Zk(r[u],u))return}else{var f=eo(r);if(typeof f=="function"){var h=f.call(r);if(h)for(var x=h.next(),_=0;!x.done;x=h.next()){if(!Zk(x.value,_))return;_++}}else l('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 t6(r,a,u,f,h){var x=r.memoizedState;x===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:f,tail:u,tailMode:h}:(x.isBackwards=a,x.rendering=null,x.renderingStartTime=0,x.last=f,x.tail=u,x.tailMode=h)}function Kk(r,a,u){var f=a.pendingProps,h=f.revealOrder,x=f.tail,_=f.children;OW(h),MW(x,h),PW(_,h),uo(r,a,_,u);var A=Pl.current,M=f9(A,X1);if(M)A=d9(A,X1),a.flags|=jn;else{var U=r!==null&&(r.flags&jn)!==Ut;U&&AW(a,a.child,u),A=qh(A)}if(qf(a,A),(a.mode&Nn)===Ft)a.memoizedState=null;else switch(h){case"forwards":{var H=LW(a.child),oe;H===null?(oe=a.child,a.child=null):(oe=H.sibling,H.sibling=null),t6(a,!1,oe,H,x);break}case"backwards":{var re=null,xe=a.child;for(a.child=null;xe!==null;){var Se=xe.alternate;if(Se!==null&&_x(Se)===null){a.child=xe;break}var Re=xe.sibling;xe.sibling=re,re=xe,xe=Re}t6(a,!0,re,null,x);break}case"together":{t6(a,!1,null,null,void 0);break}default:a.memoizedState=null}return a.child}function IW(r,a,u){l9(a,a.stateNode.containerInfo);var f=a.pendingProps;return r===null?a.child=Gh(a,null,f,u):uo(r,a,f,u),a.child}var Xk=!1;function DW(r,a,u){var f=a.type,h=f._context,x=a.pendingProps,_=a.memoizedProps,A=x.value;{"value"in x||Xk||(Xk=!0,l("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var M=a.type.propTypes;M&&wr(M,x,"prop","Context.Provider")}if(FR(a,h,A),_!==null){var U=_.value;if(da(U,A)){if(_.children===x.children&&!nx())return kc(r,a,u)}else AH(a,h,u)}var H=x.children;return uo(r,a,H,u),a.child}var Qk=!1;function $W(r,a,u){var f=a.type;f._context===void 0?f!==f.Consumer&&(Qk||(Qk=!0,l("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 h=a.pendingProps,x=h.children;typeof x!="function"&&l("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."),Wh(a,u);var _=yi(f);Jd(a);var A;return ag.current=a,ri(!0),A=x(_),ri(!1),xf(),a.flags|=bf,uo(r,a,A,u),a.child}function sg(){Dl=!0}function qx(r,a){(a.mode&Nn)===Ft&&r!==null&&(r.alternate=null,a.alternate=null,a.flags|=Qr)}function kc(r,a,u){return r!==null&&(a.dependencies=r.dependencies),Mk(),yg(a.lanes),za(u,a.childLanes)?(jH(r,a),a.child):null}function FW(r,a,u){{var f=a.return;if(f===null)throw new Error("Cannot swap the root fiber.");if(r.alternate=null,a.alternate=null,u.index=a.index,u.sibling=a.sibling,u.return=a.return,u.ref=a.ref,a===f.child)f.child=u;else{var h=f.child;if(h===null)throw new Error("Expected parent to have a child.");for(;h.sibling!==a;)if(h=h.sibling,h===null)throw new Error("Expected to find the previous sibling.");h.sibling=u}var x=f.deletions;return x===null?(f.deletions=[r],f.flags|=ic):x.push(r),u.flags|=Qr,u}}function n6(r,a){var u=r.lanes;return!!za(u,a)}function zW(r,a,u){switch(a.tag){case b:Hk(a),a.stateNode,Vh();break;case C:rk(a);break;case v:{var f=a.type;mu(f)&&ix(a);break}case w:l9(a,a.stateNode.containerInfo);break;case P:{var h=a.memoizedProps.value,x=a.type._context;FR(a,x,h);break}case F:{var _=za(u,a.childLanes);_&&(a.flags|=mn);{var A=a.stateNode;A.effectDuration=0,A.passiveEffectDuration=0}}break;case z:{var M=a.memoizedState;if(M!==null){if(M.dehydrated!==null)return qf(a,qh(Pl.current)),a.flags|=jn,null;var U=a.child,H=U.childLanes;if(za(u,H))return Gk(r,a,u);qf(a,qh(Pl.current));var oe=kc(r,a,u);return oe!==null?oe.sibling:null}else qf(a,qh(Pl.current));break}case me:{var re=(r.flags&jn)!==Ut,xe=za(u,a.childLanes);if(re){if(xe)return Kk(r,a,u);a.flags|=jn}var Se=a.memoizedState;if(Se!==null&&(Se.rendering=null,Se.tail=null,Se.lastEffect=null),qf(a,Pl.current),xe)break;return null}case te:case ee:return a.lanes=Be,Uk(r,a,u)}return kc(r,a,u)}function Jk(r,a,u){if(a._debugNeedsRemount&&r!==null)return FW(r,a,O6(a.type,a.key,a.pendingProps,a._debugOwner||null,a.mode,a.lanes));if(r!==null){var f=r.memoizedProps,h=a.pendingProps;if(f!==h||nx()||a.type!==r.type)Dl=!0;else{var x=n6(r,u);if(!x&&(a.flags&jn)===Ut)return Dl=!1,zW(r,a,u);(r.flags&E0)!==Ut?Dl=!0:Dl=!1}}else if(Dl=!1,ha()&&fH(a)){var _=a.index,A=dH();_R(a,A,_)}switch(a.lanes=Be,a.tag){case g:return xW(r,a,a.type,u);case Q:{var M=a.elementType;return bW(r,a,M,u)}case m:{var U=a.type,H=a.pendingProps,oe=a.elementType===U?H:Ml(U,H);return q9(r,a,U,oe,u)}case v:{var re=a.type,xe=a.pendingProps,Se=a.elementType===re?xe:Ml(re,xe);return Vk(r,a,re,Se,u)}case b:return hW(r,a,u);case C:return vW(r,a,u);case T:return gW(r,a);case z:return Gk(r,a,u);case w:return IW(r,a,u);case I:{var Re=a.type,ht=a.pendingProps,Ot=a.elementType===Re?ht:Ml(Re,ht);return Fk(r,a,Re,Ot,u)}case R:return dW(r,a,u);case L:return pW(r,a,u);case F:return mW(r,a,u);case P:return DW(r,a,u);case D:return $W(r,a,u);case q:{var Et=a.type,$n=a.pendingProps,_n=Ml(Et,$n);if(a.type!==a.elementType){var he=Et.propTypes;he&&wr(he,_n,"prop",dn(Et))}return _n=Ml(Et.type,_n),zk(r,a,Et,_n,u)}case Y:return Bk(r,a,a.type,a.pendingProps,u);case ie:{var ke=a.type,ve=a.pendingProps,Ke=a.elementType===ke?ve:Ml(ke,ve);return yW(r,a,ke,Ke,u)}case me:return Kk(r,a,u);case ze:break;case te:return Uk(r,a,u)}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 ev(r){r.flags|=mn}function eA(r){r.flags|=Ji,r.flags|=Nl}var tA,r6,nA,rA;tA=function(r,a,u,f){for(var h=a.child;h!==null;){if(h.tag===C||h.tag===T)IC(r,h.stateNode);else if(h.tag!==w){if(h.child!==null){h.child.return=h,h=h.child;continue}}if(h===a)return;for(;h.sibling===null;){if(h.return===null||h.return===a)return;h=h.return}h.sibling.return=h.return,h=h.sibling}},r6=function(r,a){},nA=function(r,a,u,f,h){var x=r.memoizedProps;if(x!==f){var _=a.stateNode,A=u9(),M=$C(_,u,x,f,h,A);a.updateQueue=M,M&&ev(a)}},rA=function(r,a,u,f){u!==f&&ev(a)};function lg(r,a){if(!ha())switch(r.tailMode){case"hidden":{for(var u=r.tail,f=null;u!==null;)u.alternate!==null&&(f=u),u=u.sibling;f===null?r.tail=null:f.sibling=null;break}case"collapsed":{for(var h=r.tail,x=null;h!==null;)h.alternate!==null&&(x=h),h=h.sibling;x===null?!a&&r.tail!==null?r.tail.sibling=null:r.tail=null:x.sibling=null;break}}}function ga(r){var a=r.alternate!==null&&r.alternate.child===r.child,u=Be,f=Ut;if(a){if((r.mode&Gn)!==Ft){for(var M=r.selfBaseDuration,U=r.child;U!==null;)u=hn(u,hn(U.lanes,U.childLanes)),f|=U.subtreeFlags&Ms,f|=U.flags&Ms,M+=U.treeBaseDuration,U=U.sibling;r.treeBaseDuration=M}else for(var H=r.child;H!==null;)u=hn(u,hn(H.lanes,H.childLanes)),f|=H.subtreeFlags&Ms,f|=H.flags&Ms,H.return=r,H=H.sibling;r.subtreeFlags|=f}else{if((r.mode&Gn)!==Ft){for(var h=r.actualDuration,x=r.selfBaseDuration,_=r.child;_!==null;)u=hn(u,hn(_.lanes,_.childLanes)),f|=_.subtreeFlags,f|=_.flags,h+=_.actualDuration,x+=_.treeBaseDuration,_=_.sibling;r.actualDuration=h,r.treeBaseDuration=x}else for(var A=r.child;A!==null;)u=hn(u,hn(A.lanes,A.childLanes)),f|=A.subtreeFlags,f|=A.flags,A.return=r,A=A.sibling;r.subtreeFlags|=f}return r.childLanes=u,a}function BW(r,a,u){if(EH()&&(a.mode&Nn)!==Ft&&(a.flags&jn)===Ut)return MR(a),Vh(),a.flags|=Sl|qd|la,!1;var f=ux(a);if(u!==null&&u.dehydrated!==null)if(r===null){if(!f)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(CH(a),ga(a),(a.mode&Gn)!==Ft){var h=u!==null;if(h){var x=a.child;x!==null&&(a.treeBaseDuration-=x.treeBaseDuration)}}return!1}else{if(Vh(),(a.flags&jn)===Ut&&(a.memoizedState=null),a.flags|=mn,ga(a),(a.mode&Gn)!==Ft){var _=u!==null;if(_){var A=a.child;A!==null&&(a.treeBaseDuration-=A.treeBaseDuration)}}return!1}else return PR(),!0}function iA(r,a,u){var f=a.pendingProps;switch(kN(a),a.tag){case g:case Q:case Y:case m:case I:case R:case L:case F:case D:case q:return ga(a),null;case v:{var h=a.type;return mu(h)&&rx(a),ga(a),null}case b:{var x=a.stateNode;if(Yh(a),EN(a),m9(),x.pendingContext&&(x.context=x.pendingContext,x.pendingContext=null),r===null||r.child===null){var _=ux(a);if(_)ev(a);else if(r!==null){var A=r.memoizedState;(!A.isDehydrated||(a.flags&Sl)!==Ut)&&(a.flags|=ac,PR())}}return r6(r,a),ga(a),null}case C:{c9(a);var M=nk(),U=a.type;if(r!==null&&a.stateNode!=null)nA(r,a,U,f,M),r.ref!==a.ref&&eA(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 ga(a),null}var H=u9(),oe=ux(a);if(oe)SH(a,M,H)&&ev(a);else{var re=PC(U,f,M,H,a);tA(re,a,!1,!1),a.stateNode=re,DC(re,U,f,M)&&ev(a)}a.ref!==null&&eA(a)}return ga(a),null}case T:{var xe=f;if(r&&a.stateNode!=null){var Se=r.memoizedProps;rA(r,a,Se,xe)}else{if(typeof xe!="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 Re=nk(),ht=u9(),Ot=ux(a);Ot?wH(a)&&ev(a):a.stateNode=FC(xe,Re,ht,a)}return ga(a),null}case z:{Zh(a);var Et=a.memoizedState;if(r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){var $n=BW(r,a,Et);if(!$n)return a.flags&la?a:null}if((a.flags&jn)!==Ut)return a.lanes=u,(a.mode&Gn)!==Ft&&z9(a),a;var _n=Et!==null,he=r!==null&&r.memoizedState!==null;if(_n!==he&&_n){var ke=a.child;if(ke.flags|=oc,(a.mode&Nn)!==Ft){var ve=r===null&&(a.memoizedProps.unstable_avoidThisFallback!==!0||!Ee);ve||f9(Pl.current,ak)?UG():S6()}}var Ke=a.updateQueue;if(Ke!==null&&(a.flags|=mn),ga(a),(a.mode&Gn)!==Ft&&_n){var vt=a.child;vt!==null&&(a.treeBaseDuration-=vt.treeBaseDuration)}return null}case w:return Yh(a),r6(r,a),r===null&&wN(a.stateNode.containerInfo),ga(a),null;case P:var dt=a.type._context;return FN(dt,a),ga(a),null;case ie:{var Yt=a.type;return mu(Yt)&&rx(a),ga(a),null}case me:{Zh(a);var nn=a.memoizedState;if(nn===null)return ga(a),null;var cr=(a.flags&jn)!==Ut,Yn=nn.rendering;if(Yn===null)if(cr)lg(nn,!1);else{var ui=VG()&&(r===null||(r.flags&jn)===Ut);if(!ui)for(var qn=a.child;qn!==null;){var ei=_x(qn);if(ei!==null){cr=!0,a.flags|=jn,lg(nn,!1);var Ga=ei.updateQueue;return Ga!==null&&(a.updateQueue=Ga,a.flags|=mn),a.subtreeFlags=Ut,VH(a,u),qf(a,d9(Pl.current,X1)),a.child}qn=qn.sibling}nn.tail!==null&&Br()>EA()&&(a.flags|=jn,cr=!0,lg(nn,!1),a.lanes=Gy)}else{if(!cr){var wa=_x(Yn);if(wa!==null){a.flags|=jn,cr=!0;var fs=wa.updateQueue;if(fs!==null&&(a.updateQueue=fs,a.flags|=mn),lg(nn,!0),nn.tail===null&&nn.tailMode==="hidden"&&!Yn.alternate&&!ha())return ga(a),null}else Br()*2-nn.renderingStartTime>EA()&&u!==so&&(a.flags|=jn,cr=!0,lg(nn,!1),a.lanes=Gy)}if(nn.isBackwards)Yn.sibling=a.child,a.child=Yn;else{var po=nn.last;po!==null?po.sibling=Yn:a.child=Yn,nn.last=Yn}}if(nn.tail!==null){var mo=nn.tail;nn.rendering=mo,nn.tail=mo.sibling,nn.renderingStartTime=Br(),mo.sibling=null;var Ya=Pl.current;return cr?Ya=d9(Ya,X1):Ya=qh(Ya),qf(a,Ya),mo}return ga(a),null}case ze:break;case te:case ee:{x6(a);var Pc=a.memoizedState,lv=Pc!==null;if(r!==null){var Ng=r.memoizedState,wu=Ng!==null;wu!==lv&&!pe&&(a.flags|=oc)}return!lv||(a.mode&Nn)===Ft?ga(a):za(Su,so)&&(ga(a),a.subtreeFlags&(Qr|mn)&&(a.flags|=oc)),null}case we:return null;case ye: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 UW(r,a,u){switch(kN(a),a.tag){case v:{var f=a.type;mu(f)&&rx(a);var h=a.flags;return h&la?(a.flags=h&~la|jn,(a.mode&Gn)!==Ft&&z9(a),a):null}case b:{a.stateNode,Yh(a),EN(a),m9();var x=a.flags;return(x&la)!==Ut&&(x&jn)===Ut?(a.flags=x&~la|jn,a):null}case C:return c9(a),null;case z:{Zh(a);var _=a.memoizedState;if(_!==null&&_.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.");Vh()}var A=a.flags;return A&la?(a.flags=A&~la|jn,(a.mode&Gn)!==Ft&&z9(a),a):null}case me:return Zh(a),null;case w:return Yh(a),null;case P:var M=a.type._context;return FN(M,a),null;case te:case ee:return x6(a),null;case we:return null;default:return null}}function aA(r,a,u){switch(kN(a),a.tag){case v:{var f=a.type.childContextTypes;f!=null&&rx(a);break}case b:{a.stateNode,Yh(a),EN(a),m9();break}case C:{c9(a);break}case w:Yh(a);break;case z:Zh(a);break;case me:Zh(a);break;case P:var h=a.type._context;FN(h,a);break;case te:case ee:x6(a);break}}var oA=null;oA=new Set;var Zx=!1,ba=!1,jW=typeof WeakSet=="function"?WeakSet:Set,St=null,tv=null,nv=null;function VW(r){gf(null,function(){throw r}),ru()}var HW=function(r,a){if(a.props=r.memoizedProps,a.state=r.memoizedState,r.mode&Gn)try{yu(),a.componentWillUnmount()}finally{bu(r)}else a.componentWillUnmount()};function sA(r,a){try{Xf(Fi,r)}catch(u){Cr(r,a,u)}}function i6(r,a,u){try{HW(r,u)}catch(f){Cr(r,a,f)}}function WW(r,a,u){try{u.componentDidMount()}catch(f){Cr(r,a,f)}}function lA(r,a){try{cA(r)}catch(u){Cr(r,a,u)}}function rv(r,a){var u=r.ref;if(u!==null)if(typeof u=="function"){var f;try{if(at&&kt&&r.mode&Gn)try{yu(),f=u(null)}finally{bu(r)}else f=u(null)}catch(h){Cr(r,a,h)}typeof f=="function"&&l("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Wt(r))}else u.current=null}function Kx(r,a,u){try{u()}catch(f){Cr(r,a,f)}}var uA=!1;function GW(r,a){OC(r.containerInfo),St=a,YW();var u=uA;return uA=!1,u}function YW(){for(;St!==null;){var r=St,a=r.child;(r.subtreeFlags&T0)!==Ut&&a!==null?(a.return=r,St=a):qW()}}function qW(){for(;St!==null;){var r=St;lr(r);try{ZW(r)}catch(u){Cr(r,r.return,u)}Pr();var a=r.sibling;if(a!==null){a.return=r.return,St=a;return}St=r.return}}function ZW(r){var a=r.alternate,u=r.flags;if((u&ac)!==Ut){switch(lr(r),r.tag){case m:case I:case Y:break;case v:{if(a!==null){var f=a.memoizedProps,h=a.memoizedState,x=r.stateNode;r.type===r.elementType&&!Yp&&(x.props!==r.memoizedProps&&l("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.",Wt(r)||"instance"),x.state!==r.memoizedState&&l("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.",Wt(r)||"instance"));var _=x.getSnapshotBeforeUpdate(r.elementType===r.type?f:Ml(r.type,f),h);{var A=oA;_===void 0&&!A.has(r.type)&&(A.add(r.type),l("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Wt(r)))}x.__reactInternalSnapshotBeforeUpdate=_}break}case b:{{var M=r.stateNode;QC(M.containerInfo)}break}case C:case T:case w:case ie: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.")}Pr()}}function $l(r,a,u){var f=a.updateQueue,h=f!==null?f.lastEffect:null;if(h!==null){var x=h.next,_=x;do{if((_.tag&r)===r){var A=_.destroy;_.destroy=void 0,A!==void 0&&((r&va)!==Lo?H4(a):(r&Fi)!==Lo&&$y(a),(r&hu)!==Lo&&Sg(!0),Kx(a,u,A),(r&hu)!==Lo&&Sg(!1),(r&va)!==Lo?D0():(r&Fi)!==Lo&&Fy())}_=_.next}while(_!==x)}}function Xf(r,a){var u=a.updateQueue,f=u!==null?u.lastEffect:null;if(f!==null){var h=f.next,x=h;do{if((x.tag&r)===r){(r&va)!==Lo?ep(a):(r&Fi)!==Lo&&Dy(a);var _=x.create;(r&hu)!==Lo&&Sg(!0),x.destroy=_(),(r&hu)!==Lo&&Sg(!1),(r&va)!==Lo?V4():(r&Fi)!==Lo&&W4();{var A=x.destroy;if(A!==void 0&&typeof A!="function"){var M=void 0;(x.tag&Fi)!==Ut?M="useLayoutEffect":(x.tag&hu)!==Ut?M="useInsertionEffect":M="useEffect";var U=void 0;A===null?U=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof A.then=="function"?U=`
It looks like you wrote `+M+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
`+M+`(() => {
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`:U=" You returned: "+A,l("%s must not return anything besides a function, which is used for clean-up.%s",M,U)}}}x=x.next}while(x!==h)}}function KW(r,a){if((a.flags&mn)!==Ut)switch(a.tag){case F:{var u=a.stateNode.passiveEffectDuration,f=a.memoizedProps,h=f.id,x=f.onPostCommit,_=Lk(),A=a.alternate===null?"mount":"update";Ak()&&(A="nested-update"),typeof x=="function"&&x(h,A,u,_);var M=a.return;e:for(;M!==null;){switch(M.tag){case b:var U=M.stateNode;U.passiveEffectDuration+=u;break e;case F:var H=M.stateNode;H.passiveEffectDuration+=u;break e}M=M.return}break}}}function XW(r,a,u,f){if((u.flags&Zd)!==Ut)switch(u.tag){case m:case I:case Y:{if(!ba)if(u.mode&Gn)try{yu(),Xf(Fi|$i,u)}finally{bu(u)}else Xf(Fi|$i,u);break}case v:{var h=u.stateNode;if(u.flags&mn&&!ba)if(a===null)if(u.type===u.elementType&&!Yp&&(h.props!==u.memoizedProps&&l("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.",Wt(u)||"instance"),h.state!==u.memoizedState&&l("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.",Wt(u)||"instance")),u.mode&Gn)try{yu(),h.componentDidMount()}finally{bu(u)}else h.componentDidMount();else{var x=u.elementType===u.type?a.memoizedProps:Ml(u.type,a.memoizedProps),_=a.memoizedState;if(u.type===u.elementType&&!Yp&&(h.props!==u.memoizedProps&&l("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.",Wt(u)||"instance"),h.state!==u.memoizedState&&l("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.",Wt(u)||"instance")),u.mode&Gn)try{yu(),h.componentDidUpdate(x,_,h.__reactInternalSnapshotBeforeUpdate)}finally{bu(u)}else h.componentDidUpdate(x,_,h.__reactInternalSnapshotBeforeUpdate)}var A=u.updateQueue;A!==null&&(u.type===u.elementType&&!Yp&&(h.props!==u.memoizedProps&&l("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.",Wt(u)||"instance"),h.state!==u.memoizedState&&l("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.",Wt(u)||"instance")),HR(u,A,h));break}case b:{var M=u.updateQueue;if(M!==null){var U=null;if(u.child!==null)switch(u.child.tag){case C:U=u.child.stateNode;break;case v:U=u.child.stateNode;break}HR(u,M,U)}break}case C:{var H=u.stateNode;if(a===null&&u.flags&mn){var oe=u.type,re=u.memoizedProps;VC(H,oe,re)}break}case T:break;case w:break;case F:{{var xe=u.memoizedProps,Se=xe.onCommit,Re=xe.onRender,ht=u.stateNode.effectDuration,Ot=Lk(),Et=a===null?"mount":"update";Ak()&&(Et="nested-update"),typeof Re=="function"&&Re(u.memoizedProps.id,Et,u.actualDuration,u.treeBaseDuration,u.actualStartTime,Ot);{typeof Se=="function"&&Se(u.memoizedProps.id,Et,ht,Ot),qG(u);var $n=u.return;e:for(;$n!==null;){switch($n.tag){case b:var _n=$n.stateNode;_n.effectDuration+=ht;break e;case F:var he=$n.stateNode;he.effectDuration+=ht;break e}$n=$n.return}}}break}case z:{aG(r,u);break}case me:case ie:case ze:case te:case ee:case ye: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.")}ba||u.flags&Ji&&cA(u)}function QW(r){switch(r.tag){case m:case I:case Y:{if(r.mode&Gn)try{yu(),sA(r,r.return)}finally{bu(r)}else sA(r,r.return);break}case v:{var a=r.stateNode;typeof a.componentDidMount=="function"&&WW(r,r.return,a),lA(r,r.return);break}case C:{lA(r,r.return);break}}}function JW(r,a){for(var u=null,f=r;;){if(f.tag===C){if(u===null){u=f;try{var h=f.stateNode;a?D1(h):KC(f.stateNode,f.memoizedProps)}catch(_){Cr(r,r.return,_)}}}else if(f.tag===T){if(u===null)try{var x=f.stateNode;a?ZC(x):XC(x,f.memoizedProps)}catch(_){Cr(r,r.return,_)}}else if(!((f.tag===te||f.tag===ee)&&f.memoizedState!==null&&f!==r)){if(f.child!==null){f.child.return=f,f=f.child;continue}}if(f===r)return;for(;f.sibling===null;){if(f.return===null||f.return===r)return;u===f&&(u=null),f=f.return}u===f&&(u=null),f.sibling.return=f.return,f=f.sibling}}function cA(r){var a=r.ref;if(a!==null){var u=r.stateNode,f;switch(r.tag){case C:f=u;break;default:f=u}if(typeof a=="function"){var h;if(r.mode&Gn)try{yu(),h=a(f)}finally{bu(r)}else h=a(f);typeof h=="function"&&l("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Wt(r))}else a.hasOwnProperty("current")||l("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Wt(r)),a.current=f}}function eG(r){var a=r.alternate;a!==null&&(a.return=null),r.return=null}function fA(r){var a=r.alternate;a!==null&&(r.alternate=null,fA(a));{if(r.child=null,r.deletions=null,r.sibling=null,r.tag===C){var u=r.stateNode;u!==null&&Z(u)}r.stateNode=null,r._debugOwner=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}}function tG(r){for(var a=r.return;a!==null;){if(dA(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 dA(r){return r.tag===C||r.tag===b||r.tag===w}function pA(r){var a=r;e:for(;;){for(;a.sibling===null;){if(a.return===null||dA(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==C&&a.tag!==T&&a.tag!==ae;){if(a.flags&Qr||a.child===null||a.tag===w)continue e;a.child.return=a,a=a.child}if(!(a.flags&Qr))return a.stateNode}}function nG(r){var a=tG(r);switch(a.tag){case C:{var u=a.stateNode;a.flags&Yd&&(M1(u),a.flags&=~Yd);var f=pA(r);o6(r,f,u);break}case b:case w:{var h=a.stateNode.containerInfo,x=pA(r);a6(r,x,h);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function a6(r,a,u){var f=r.tag,h=f===C||f===T;if(h){var x=r.stateNode;a?P1(u,x,a):WC(u,x)}else if(f!==w){var _=r.child;if(_!==null){a6(_,a,u);for(var A=_.sibling;A!==null;)a6(A,a,u),A=A.sibling}}}function o6(r,a,u){var f=r.tag,h=f===C||f===T;if(h){var x=r.stateNode;a?GC(u,x,a):HC(u,x)}else if(f!==w){var _=r.child;if(_!==null){o6(_,a,u);for(var A=_.sibling;A!==null;)o6(A,a,u),A=A.sibling}}}var ya=null,Fl=!1;function rG(r,a,u){{var f=a;e:for(;f!==null;){switch(f.tag){case C:{ya=f.stateNode,Fl=!1;break e}case b:{ya=f.stateNode.containerInfo,Fl=!0;break e}case w:{ya=f.stateNode.containerInfo,Fl=!0;break e}}f=f.return}if(ya===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");mA(r,a,u),ya=null,Fl=!1}eG(u)}function Qf(r,a,u){for(var f=u.child;f!==null;)mA(r,a,f),f=f.sibling}function mA(r,a,u){switch(U4(u),u.tag){case C:ba||rv(u,a);case T:{{var f=ya,h=Fl;ya=null,Qf(r,a,u),ya=f,Fl=h,ya!==null&&(Fl?qC(ya,u.stateNode):YC(ya,u.stateNode))}return}case ae:{ya!==null&&(Fl?Va(ya,u.stateNode):I1(ya,u.stateNode));return}case w:{{var x=ya,_=Fl;ya=u.stateNode.containerInfo,Fl=!0,Qf(r,a,u),ya=x,Fl=_}return}case m:case I:case q:case Y:{if(!ba){var A=u.updateQueue;if(A!==null){var M=A.lastEffect;if(M!==null){var U=M.next,H=U;do{var oe=H,re=oe.destroy,xe=oe.tag;re!==void 0&&((xe&hu)!==Lo?Kx(u,a,re):(xe&Fi)!==Lo&&($y(u),u.mode&Gn?(yu(),Kx(u,a,re),bu(u)):Kx(u,a,re),Fy())),H=H.next}while(H!==U)}}}Qf(r,a,u);return}case v:{if(!ba){rv(u,a);var Se=u.stateNode;typeof Se.componentWillUnmount=="function"&&i6(u,a,Se)}Qf(r,a,u);return}case ze:{Qf(r,a,u);return}case te:{if(u.mode&Nn){var Re=ba;ba=Re||u.memoizedState!==null,Qf(r,a,u),ba=Re}else Qf(r,a,u);break}default:{Qf(r,a,u);return}}}function iG(r){r.memoizedState}function aG(r,a){var u=a.memoizedState;if(u===null){var f=a.alternate;if(f!==null){var h=f.memoizedState;if(h!==null){var x=h.dehydrated;x!==null&&lN(x)}}}}function hA(r){var a=r.updateQueue;if(a!==null){r.updateQueue=null;var u=r.stateNode;u===null&&(u=r.stateNode=new jW),a.forEach(function(f){var h=tY.bind(null,r,f);if(!u.has(f)){if(u.add(f),Ii)if(tv!==null&&nv!==null)xg(nv,tv);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");f.then(h,h)}})}}function oG(r,a,u){tv=u,nv=r,lr(a),vA(a,r),lr(a),tv=null,nv=null}function zl(r,a,u){var f=a.deletions;if(f!==null)for(var h=0;h<f.length;h++){var x=f[h];try{rG(r,a,x)}catch(M){Cr(x,a,M)}}var _=ns();if(a.subtreeFlags&R0)for(var A=a.child;A!==null;)lr(A),vA(A,r),A=A.sibling;lr(_)}function vA(r,a,u){var f=r.alternate,h=r.flags;switch(r.tag){case m:case I:case q:case Y:{if(zl(a,r),xu(r),h&mn){try{$l(hu|$i,r,r.return),Xf(hu|$i,r)}catch(Yt){Cr(r,r.return,Yt)}if(r.mode&Gn){try{yu(),$l(Fi|$i,r,r.return)}catch(Yt){Cr(r,r.return,Yt)}bu(r)}else try{$l(Fi|$i,r,r.return)}catch(Yt){Cr(r,r.return,Yt)}}return}case v:{zl(a,r),xu(r),h&Ji&&f!==null&&rv(f,f.return);return}case C:{zl(a,r),xu(r),h&Ji&&f!==null&&rv(f,f.return);{if(r.flags&Yd){var x=r.stateNode;try{M1(x)}catch(Yt){Cr(r,r.return,Yt)}}if(h&mn){var _=r.stateNode;if(_!=null){var A=r.memoizedProps,M=f!==null?f.memoizedProps:A,U=r.type,H=r.updateQueue;if(r.updateQueue=null,H!==null)try{O1(_,H,U,M,A,r)}catch(Yt){Cr(r,r.return,Yt)}}}}return}case T:{if(zl(a,r),xu(r),h&mn){if(r.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 oe=r.stateNode,re=r.memoizedProps,xe=f!==null?f.memoizedProps:re;try{J2(oe,xe,re)}catch(Yt){Cr(r,r.return,Yt)}}return}case b:{if(zl(a,r),xu(r),h&mn&&f!==null){var Se=f.memoizedState;if(Se.isDehydrated)try{sN(a.containerInfo)}catch(Yt){Cr(r,r.return,Yt)}}return}case w:{zl(a,r),xu(r);return}case z:{zl(a,r),xu(r);var Re=r.child;if(Re.flags&oc){var ht=Re.stateNode,Ot=Re.memoizedState,Et=Ot!==null;if(ht.isHidden=Et,Et){var $n=Re.alternate!==null&&Re.alternate.memoizedState!==null;$n||BG()}}if(h&mn){try{iG(r)}catch(Yt){Cr(r,r.return,Yt)}hA(r)}return}case te:{var _n=f!==null&&f.memoizedState!==null;if(r.mode&Nn){var he=ba;ba=he||_n,zl(a,r),ba=he}else zl(a,r);if(xu(r),h&oc){var ke=r.stateNode,ve=r.memoizedState,Ke=ve!==null,vt=r;if(ke.isHidden=Ke,Ke&&!_n&&(vt.mode&Nn)!==Ft){St=vt;for(var dt=vt.child;dt!==null;)St=dt,lG(dt),dt=dt.sibling}JW(vt,Ke)}return}case me:{zl(a,r),xu(r),h&mn&&hA(r);return}case ze:return;default:{zl(a,r),xu(r);return}}}function xu(r){var a=r.flags;if(a&Qr){try{nG(r)}catch(u){Cr(r,r.return,u)}r.flags&=~Qr}a&wl&&(r.flags&=~wl)}function sG(r,a,u){tv=u,nv=a,St=r,gA(r,a,u),tv=null,nv=null}function gA(r,a,u){for(var f=(r.mode&Nn)!==Ft;St!==null;){var h=St,x=h.child;if(h.tag===te&&f){var _=h.memoizedState!==null,A=_||Zx;if(A){s6(r,a,u);continue}else{var M=h.alternate,U=M!==null&&M.memoizedState!==null,H=U||ba,oe=Zx,re=ba;Zx=A,ba=H,ba&&!re&&(St=h,uG(h));for(var xe=x;xe!==null;)St=xe,gA(xe,a,u),xe=xe.sibling;St=h,Zx=oe,ba=re,s6(r,a,u);continue}}(h.subtreeFlags&Zd)!==Ut&&x!==null?(x.return=h,St=x):s6(r,a,u)}}function s6(r,a,u){for(;St!==null;){var f=St;if((f.flags&Zd)!==Ut){var h=f.alternate;lr(f);try{XW(a,h,f,u)}catch(_){Cr(f,f.return,_)}Pr()}if(f===r){St=null;return}var x=f.sibling;if(x!==null){x.return=f.return,St=x;return}St=f.return}}function lG(r){for(;St!==null;){var a=St,u=a.child;switch(a.tag){case m:case I:case q:case Y:{if(a.mode&Gn)try{yu(),$l(Fi,a,a.return)}finally{bu(a)}else $l(Fi,a,a.return);break}case v:{rv(a,a.return);var f=a.stateNode;typeof f.componentWillUnmount=="function"&&i6(a,a.return,f);break}case C:{rv(a,a.return);break}case te:{var h=a.memoizedState!==null;if(h){bA(r);continue}break}}u!==null?(u.return=a,St=u):bA(r)}}function bA(r){for(;St!==null;){var a=St;if(a===r){St=null;return}var u=a.sibling;if(u!==null){u.return=a.return,St=u;return}St=a.return}}function uG(r){for(;St!==null;){var a=St,u=a.child;if(a.tag===te){var f=a.memoizedState!==null;if(f){yA(r);continue}}u!==null?(u.return=a,St=u):yA(r)}}function yA(r){for(;St!==null;){var a=St;lr(a);try{QW(a)}catch(f){Cr(a,a.return,f)}if(Pr(),a===r){St=null;return}var u=a.sibling;if(u!==null){u.return=a.return,St=u;return}St=a.return}}function cG(r,a,u,f){St=a,fG(a,r,u,f)}function fG(r,a,u,f){for(;St!==null;){var h=St,x=h.child;(h.subtreeFlags&yf)!==Ut&&x!==null?(x.return=h,St=x):dG(r,a,u,f)}}function dG(r,a,u,f){for(;St!==null;){var h=St;if((h.flags&os)!==Ut){lr(h);try{pG(a,h,u,f)}catch(_){Cr(h,h.return,_)}Pr()}if(h===r){St=null;return}var x=h.sibling;if(x!==null){x.return=h.return,St=x;return}St=h.return}}function pG(r,a,u,f){switch(a.tag){case m:case I:case Y:{if(a.mode&Gn){F9();try{Xf(va|$i,a)}finally{$9(a)}}else Xf(va|$i,a);break}}}function mG(r){St=r,hG()}function hG(){for(;St!==null;){var r=St,a=r.child;if((St.flags&ic)!==Ut){var u=r.deletions;if(u!==null){for(var f=0;f<u.length;f++){var h=u[f];St=h,bG(h,r)}{var x=r.alternate;if(x!==null){var _=x.child;if(_!==null){x.child=null;do{var A=_.sibling;_.sibling=null,_=A}while(_!==null)}}}St=r}}(r.subtreeFlags&yf)!==Ut&&a!==null?(a.return=r,St=a):vG()}}function vG(){for(;St!==null;){var r=St;(r.flags&os)!==Ut&&(lr(r),gG(r),Pr());var a=r.sibling;if(a!==null){a.return=r.return,St=a;return}St=r.return}}function gG(r){switch(r.tag){case m:case I:case Y:{r.mode&Gn?(F9(),$l(va|$i,r,r.return),$9(r)):$l(va|$i,r,r.return);break}}}function bG(r,a){for(;St!==null;){var u=St;lr(u),xG(u,a),Pr();var f=u.child;f!==null?(f.return=u,St=f):yG(r)}}function yG(r){for(;St!==null;){var a=St,u=a.sibling,f=a.return;if(fA(a),a===r){St=null;return}if(u!==null){u.return=f,St=u;return}St=f}}function xG(r,a){switch(r.tag){case m:case I:case Y:{r.mode&Gn?(F9(),$l(va,r,a),$9(r)):$l(va,r,a);break}}}function SG(r){switch(r.tag){case m:case I:case Y:{try{Xf(Fi|$i,r)}catch(u){Cr(r,r.return,u)}break}case v:{var a=r.stateNode;try{a.componentDidMount()}catch(u){Cr(r,r.return,u)}break}}}function wG(r){switch(r.tag){case m:case I:case Y:{try{Xf(va|$i,r)}catch(a){Cr(r,r.return,a)}break}}}function CG(r){switch(r.tag){case m:case I:case Y:{try{$l(Fi|$i,r,r.return)}catch(u){Cr(r,r.return,u)}break}case v:{var a=r.stateNode;typeof a.componentWillUnmount=="function"&&i6(r,r.return,a);break}}}function NG(r){switch(r.tag){case m:case I:case Y:try{$l(va|$i,r,r.return)}catch(a){Cr(r,r.return,a)}}}if(typeof Symbol=="function"&&Symbol.for){var ug=Symbol.for;ug("selector.component"),ug("selector.has_pseudo_class"),ug("selector.role"),ug("selector.test_id"),ug("selector.text")}var EG=[];function _G(){EG.forEach(function(r){return r()})}var TG=n.ReactCurrentActQueue;function RG(r){{var a=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,u=typeof jest<"u";return u&&a!==!1}}function xA(){{var r=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!r&&TG.current!==null&&l("The current testing environment is not configured to support act(...)"),r}}var kG=Math.ceil,l6=n.ReactCurrentDispatcher,u6=n.ReactCurrentOwner,xa=n.ReactCurrentBatchConfig,Bl=n.ReactCurrentActQueue,Ui=0,SA=1,Sa=2,Ks=4,Ac=0,cg=1,qp=2,Xx=3,fg=4,wA=5,c6=6,Dn=Ui,co=null,qr=null,ji=Be,Su=Be,f6=na(Be),Vi=Ac,dg=null,Qx=Be,pg=Be,Jx=Be,mg=null,Oo=null,d6=0,CA=500,NA=1/0,AG=500,Lc=null;function hg(){NA=Br()+AG}function EA(){return NA}var e5=!1,p6=null,iv=null,Zp=!1,Jf=null,vg=Be,m6=[],h6=null,LG=50,gg=0,v6=null,g6=!1,t5=!1,OG=50,av=0,n5=null,bg=rr,r5=Be,_A=!1;function i5(){return co}function fo(){return(Dn&(Sa|Ks))!==Ui?Br():(bg!==rr||(bg=Br()),bg)}function ed(r){var a=r.mode;if((a&Nn)===Ft)return qt;if((Dn&Sa)!==Ui&&ji!==Be)return lp(ji);var u=RH()!==TH;if(u){if(xa.transition!==null){var f=xa.transition;f._updatedFibers||(f._updatedFibers=new Set),f._updatedFibers.add(r)}return r5===oi&&(r5=sp()),r5}var h=To();if(h!==oi)return h;var x=zC();return x}function MG(r){var a=r.mode;return(a&Nn)===Ft?qt:Zy()}function Hi(r,a,u,f){rY(),_A&&l("useInsertionEffect must not schedule updates."),g6&&(t5=!0),hc(r,u,f),(Dn&Sa)!==Be&&r===co?oY(a):(Ii&&mh(r,a,u),sY(a),r===co&&((Dn&Sa)===Ui&&(pg=hn(pg,u)),Vi===fg&&td(r,ji)),Mo(r,f),u===qt&&Dn===Ui&&(a.mode&Nn)===Ft&&!Bl.isBatchingLegacy&&(hg(),ER()))}function PG(r,a,u){var f=r.current;f.lanes=a,hc(r,a,u),Mo(r,u)}function IG(r){return(Dn&Sa)!==Ui}function Mo(r,a){var u=r.callbackNode;op(r,a);var f=ch(r,r===co?ji:Be);if(f===Be){u!==null&&jA(u),r.callbackNode=null,r.callbackPriority=oi;return}var h=_l(f),x=r.callbackPriority;if(x===h&&!(Bl.current!==null&&u!==N6)){u==null&&x!==qt&&l("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}u!=null&&jA(u);var _;if(h===qt)r.tag===Vf?(Bl.isBatchingLegacy!==null&&(Bl.didScheduleLegacyUpdate=!0),cH(kA.bind(null,r))):NR(kA.bind(null,r)),Bl.current!==null?Bl.current.push(Hf):UC(function(){(Dn&(Sa|Ks))===Ui&&Hf()}),_=null;else{var A;switch(Bs(f)){case fa:A=Xd;break;case zs:A=L0;break;case Tr:A=Is;break;case hh:A=th;break;default:A=Is;break}_=E6(A,TA.bind(null,r))}r.callbackPriority=h,r.callbackNode=_}function TA(r,a){if(rW(),bg=rr,r5=Be,(Dn&(Sa|Ks))!==Ui)throw new Error("Should not already be working.");var u=r.callbackNode,f=Mc();if(f&&r.callbackNode!==u)return null;var h=ch(r,r===co?ji:Be);if(h===Be)return null;var x=!pc(r,h)&&!K4(r,h)&&!a,_=x?WG(r,h):o5(r,h);if(_!==Ac){if(_===qp){var A=fh(r);A!==Be&&(h=A,_=b6(r,A))}if(_===cg){var M=dg;throw Kp(r,Be),td(r,h),Mo(r,Br()),M}if(_===c6)td(r,h);else{var U=!pc(r,h),H=r.current.alternate;if(U&&!$G(H)){if(_=o5(r,h),_===qp){var oe=fh(r);oe!==Be&&(h=oe,_=b6(r,oe))}if(_===cg){var re=dg;throw Kp(r,Be),td(r,h),Mo(r,Br()),re}}r.finishedWork=H,r.finishedLanes=h,DG(r,_,h)}}return Mo(r,Br()),r.callbackNode===u?TA.bind(null,r):null}function b6(r,a){var u=mg;if(gi(r)){var f=Kp(r,a);f.flags|=Sl,SN(r.containerInfo)}var h=o5(r,a);if(h!==qp){var x=Oo;Oo=u,x!==null&&RA(x)}return h}function RA(r){Oo===null?Oo=r:Oo.push.apply(Oo,r)}function DG(r,a,u){switch(a){case Ac:case cg:throw new Error("Root did not complete. This is a bug in React.");case qp:{Xp(r,Oo,Lc);break}case Xx:{if(td(r,u),Y0(u)&&!VA()){var f=d6+CA-Br();if(f>10){var h=ch(r,Be);if(h!==Be)break;var x=r.suspendedLanes;if(!mc(x,u)){fo(),fp(r,x);break}r.timeoutHandle=A1(Xp.bind(null,r,Oo,Lc),f);break}}Xp(r,Oo,Lc);break}case fg:{if(td(r,u),q0(u))break;if(!VA()){var _=Yy(r,u),A=_,M=Br()-A,U=nY(M)-M;if(U>10){r.timeoutHandle=A1(Xp.bind(null,r,Oo,Lc),U);break}}Xp(r,Oo,Lc);break}case wA:{Xp(r,Oo,Lc);break}default:throw new Error("Unknown root exit status.")}}function $G(r){for(var a=r;;){if(a.flags&Xm){var u=a.updateQueue;if(u!==null){var f=u.stores;if(f!==null)for(var h=0;h<f.length;h++){var x=f[h],_=x.getSnapshot,A=x.value;try{if(!da(_(),A))return!1}catch{return!1}}}}var M=a.child;if(a.subtreeFlags&Xm&&M!==null){M.return=a,a=M;continue}if(a===r)return!0;for(;a.sibling===null;){if(a.return===null||a.return===r)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}return!0}function td(r,a){a=up(a,Jx),a=up(a,pg),K0(r,a)}function kA(r){if(iW(),(Dn&(Sa|Ks))!==Ui)throw new Error("Should not already be working.");Mc();var a=ch(r,Be);if(!za(a,qt))return Mo(r,Br()),null;var u=o5(r,a);if(r.tag!==Vf&&u===qp){var f=fh(r);f!==Be&&(a=f,u=b6(r,f))}if(u===cg){var h=dg;throw Kp(r,Be),td(r,a),Mo(r,Br()),h}if(u===c6)throw new Error("Root did not complete. This is a bug in React.");var x=r.current.alternate;return r.finishedWork=x,r.finishedLanes=a,Xp(r,Oo,Lc),Mo(r,Br()),null}function FG(r,a){a!==Be&&(zt(r,hn(a,qt)),Mo(r,Br()),(Dn&(Sa|Ks))===Ui&&(hg(),Hf()))}function y6(r,a){var u=Dn;Dn|=SA;try{return r(a)}finally{Dn=u,Dn===Ui&&!Bl.isBatchingLegacy&&(hg(),ER())}}function zG(r,a,u,f,h){var x=To(),_=xa.transition;try{return xa.transition=null,vi(fa),r(a,u,f,h)}finally{vi(x),xa.transition=_,Dn===Ui&&hg()}}function Oc(r){Jf!==null&&Jf.tag===Vf&&(Dn&(Sa|Ks))===Ui&&Mc();var a=Dn;Dn|=SA;var u=xa.transition,f=To();try{return xa.transition=null,vi(fa),r?r():void 0}finally{vi(f),xa.transition=u,Dn=a,(Dn&(Sa|Ks))===Ui&&Hf()}}function AA(){return(Dn&(Sa|Ks))!==Ui}function a5(r,a){Ha(f6,Su,r),Su=hn(Su,a)}function x6(r){Su=f6.current,Di(f6,r)}function Kp(r,a){r.finishedWork=null,r.finishedLanes=Be;var u=r.timeoutHandle;if(u!==L1&&(r.timeoutHandle=L1,BC(u)),qr!==null)for(var f=qr.return;f!==null;){var h=f.alternate;aA(h,f),f=f.return}co=r;var x=Qp(r.current,null);return qr=x,ji=Su=a,Vi=Ac,dg=null,Qx=Be,pg=Be,Jx=Be,mg=null,Oo=null,OH(),Ol.discardPendingWarnings(),x}function LA(r,a){do{var u=qr;try{if(px(),sk(),Pr(),u6.current=null,u===null||u.return===null){Vi=cg,dg=a,qr=null;return}if(at&&u.mode&Gn&&Wx(u,!0),et)if(xf(),a!==null&&typeof a=="object"&&typeof a.then=="function"){var f=a;$0(u,f,ji)}else zy(u,a,ji);uW(r,u.return,u,a,ji),IA(u)}catch(h){a=h,qr===u&&u!==null?(u=u.return,qr=u):u=qr;continue}return}while(!0)}function OA(){var r=l6.current;return l6.current=Bx,r===null?Bx:r}function MA(r){l6.current=r}function BG(){d6=Br()}function yg(r){Qx=hn(r,Qx)}function UG(){Vi===Ac&&(Vi=Xx)}function S6(){(Vi===Ac||Vi===Xx||Vi===qp)&&(Vi=fg),co!==null&&(kf(Qx)||kf(pg))&&td(co,ji)}function jG(r){Vi!==fg&&(Vi=qp),mg===null?mg=[r]:mg.push(r)}function VG(){return Vi===Ac}function o5(r,a){var u=Dn;Dn|=Sa;var f=OA();if(co!==r||ji!==a){if(Ii){var h=r.memoizedUpdaters;h.size>0&&(xg(r,ji),h.clear()),su(r,a)}Lc=Xy(),Kp(r,a)}z0(a);do try{HG();break}catch(x){LA(r,x)}while(!0);if(px(),Dn=u,MA(f),qr!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return jy(),co=null,ji=Be,Vi}function HG(){for(;qr!==null;)PA(qr)}function WG(r,a){var u=Dn;Dn|=Sa;var f=OA();if(co!==r||ji!==a){if(Ii){var h=r.memoizedUpdaters;h.size>0&&(xg(r,ji),h.clear()),su(r,a)}Lc=Xy(),hg(),Kp(r,a)}z0(a);do try{GG();break}catch(x){LA(r,x)}while(!0);return px(),MA(f),Dn=u,qr!==null?(nh(),Ac):(jy(),co=null,ji=Be,Vi)}function GG(){for(;qr!==null&&!My();)PA(qr)}function PA(r){var a=r.alternate;lr(r);var u;(r.mode&Gn)!==Ft?(D9(r),u=w6(a,r,Su),Wx(r,!0)):u=w6(a,r,Su),Pr(),r.memoizedProps=r.pendingProps,u===null?IA(r):qr=u,u6.current=null}function IA(r){var a=r;do{var u=a.alternate,f=a.return;if((a.flags&qd)===Ut){lr(a);var h=void 0;if((a.mode&Gn)===Ft?h=iA(u,a,Su):(D9(a),h=iA(u,a,Su),Wx(a,!1)),Pr(),h!==null){qr=h;return}}else{var x=UW(u,a);if(x!==null){x.flags&=$4,qr=x;return}if((a.mode&Gn)!==Ft){Wx(a,!1);for(var _=a.actualDuration,A=a.child;A!==null;)_+=A.actualDuration,A=A.sibling;a.actualDuration=_}if(f!==null)f.flags|=qd,f.subtreeFlags=Ut,f.deletions=null;else{Vi=c6,qr=null;return}}var M=a.sibling;if(M!==null){qr=M;return}a=f,qr=a}while(a!==null);Vi===Ac&&(Vi=wA)}function Xp(r,a,u){var f=To(),h=xa.transition;try{xa.transition=null,vi(fa),YG(r,a,u,f)}finally{xa.transition=h,vi(f)}return null}function YG(r,a,u,f){do Mc();while(Jf!==null);if(iY(),(Dn&(Sa|Ks))!==Ui)throw new Error("Should not already be working.");var h=r.finishedWork,x=r.finishedLanes;if(Qd(x),h===null)return I0(),null;if(x===Be&&l("root.finishedLanes should not be empty during a commit. This is a bug in React."),r.finishedWork=null,r.finishedLanes=Be,h===r.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.");r.callbackNode=null,r.callbackPriority=oi;var _=hn(h.lanes,h.childLanes);Af(r,_),r===co&&(co=null,qr=null,ji=Be),((h.subtreeFlags&yf)!==Ut||(h.flags&yf)!==Ut)&&(Zp||(Zp=!0,h6=u,E6(Is,function(){return Mc(),null})));var A=(h.subtreeFlags&(T0|R0|Zd|yf))!==Ut,M=(h.flags&(T0|R0|Zd|yf))!==Ut;if(A||M){var U=xa.transition;xa.transition=null;var H=To();vi(fa);var oe=Dn;Dn|=Ks,u6.current=null,GW(r,h),Ok(),oG(r,h,x),MC(r.containerInfo),r.current=h,G4(x),sG(h,r,x),F0(),Py(),Dn=oe,vi(H),xa.transition=U}else r.current=h,Ok();var re=Zp;if(Zp?(Zp=!1,Jf=r,vg=x):(av=0,n5=null),_=r.pendingLanes,_===Be&&(iv=null),re||zA(r.current,!1),M0(h.stateNode,f),Ii&&r.memoizedUpdaters.clear(),_G(),Mo(r,Br()),a!==null)for(var xe=r.onRecoverableError,Se=0;Se<a.length;Se++){var Re=a[Se],ht=Re.stack,Ot=Re.digest;xe(Re.value,{componentStack:ht,digest:Ot})}if(e5){e5=!1;var Et=p6;throw p6=null,Et}return za(vg,qt)&&r.tag!==Vf&&Mc(),_=r.pendingLanes,za(_,qt)?(nW(),r===v6?gg++:(gg=0,v6=r)):gg=0,Hf(),I0(),null}function Mc(){if(Jf!==null){var r=Bs(vg),a=Q4(Tr,r),u=xa.transition,f=To();try{return xa.transition=null,vi(a),ZG()}finally{vi(f),xa.transition=u}}return!1}function qG(r){m6.push(r),Zp||(Zp=!0,E6(Is,function(){return Mc(),null}))}function ZG(){if(Jf===null)return!1;var r=h6;h6=null;var a=Jf,u=vg;if(Jf=null,vg=Be,(Dn&(Sa|Ks))!==Ui)throw new Error("Cannot flush passive effects while already rendering.");g6=!0,t5=!1,By(u);var f=Dn;Dn|=Ks,mG(a.current),cG(a,a.current,u,r);{var h=m6;m6=[];for(var x=0;x<h.length;x++){var _=h[x];KW(a,_)}}Uy(),zA(a.current,!0),Dn=f,Hf(),t5?a===n5?av++:(av=0,n5=a):av=0,g6=!1,t5=!1,B4(a);{var A=a.current.stateNode;A.effectDuration=0,A.passiveEffectDuration=0}return!0}function DA(r){return iv!==null&&iv.has(r)}function KG(r){iv===null?iv=new Set([r]):iv.add(r)}function XG(r){e5||(e5=!0,p6=r)}var QG=XG;function $A(r,a,u){var f=Gp(u,a),h=Pk(r,f,qt),x=Gf(r,h,qt),_=fo();x!==null&&(hc(x,qt,_),Mo(x,_))}function Cr(r,a,u){if(VW(u),Sg(!1),r.tag===b){$A(r,r,u);return}var f=null;for(f=a;f!==null;){if(f.tag===b){$A(f,r,u);return}else if(f.tag===v){var h=f.type,x=f.stateNode;if(typeof h.getDerivedStateFromError=="function"||typeof x.componentDidCatch=="function"&&!DA(x)){var _=Gp(u,r),A=j9(f,_,qt),M=Gf(f,A,qt),U=fo();M!==null&&(hc(M,qt,U),Mo(M,U));return}}f=f.return}l(`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`,u)}function JG(r,a,u){var f=r.pingCache;f!==null&&f.delete(a);var h=fo();fp(r,u),lY(r),co===r&&mc(ji,u)&&(Vi===fg||Vi===Xx&&Y0(ji)&&Br()-d6<CA?Kp(r,Be):Jx=hn(Jx,u)),Mo(r,h)}function FA(r,a){a===oi&&(a=MG(r));var u=fo(),f=Ao(r,a);f!==null&&(hc(f,a,u),Mo(f,u))}function eY(r){var a=r.memoizedState,u=oi;a!==null&&(u=a.retryLane),FA(r,u)}function tY(r,a){var u=oi,f;switch(r.tag){case z:f=r.stateNode;var h=r.memoizedState;h!==null&&(u=h.retryLane);break;case me:f=r.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}f!==null&&f.delete(a),FA(r,u)}function nY(r){return r<120?120:r<480?480:r<1080?1080:r<1920?1920:r<3e3?3e3:r<4320?4320:kG(r/1960)*1960}function rY(){if(gg>LG)throw gg=0,v6=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.");av>OG&&(av=0,n5=null,l("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 iY(){Ol.flushLegacyContextWarning(),Ol.flushPendingUnsafeLifecycleWarnings()}function zA(r,a){lr(r),s5(r,ai,CG),a&&s5(r,Qm,NG),s5(r,ai,SG),a&&s5(r,Qm,wG),Pr()}function s5(r,a,u){for(var f=r,h=null;f!==null;){var x=f.subtreeFlags&a;f!==h&&f.child!==null&&x!==Ut?f=f.child:((f.flags&a)!==Ut&&u(f),f.sibling!==null?f=f.sibling:f=h=f.return)}}var l5=null;function BA(r){{if((Dn&Sa)!==Ui||!(r.mode&Nn))return;var a=r.tag;if(a!==g&&a!==b&&a!==v&&a!==m&&a!==I&&a!==q&&a!==Y)return;var u=Wt(r)||"ReactComponent";if(l5!==null){if(l5.has(u))return;l5.add(u)}else l5=new Set([u]);var f=_r;try{lr(r),l("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?lr(r):Pr()}}}var w6;{var aY=null;w6=function(r,a,u){var f=qA(aY,a);try{return Jk(r,a,u)}catch(x){if(bH()||x!==null&&typeof x=="object"&&typeof x.then=="function")throw x;if(px(),sk(),aA(r,a),qA(a,f),a.mode&Gn&&D9(a),gf(null,Jk,null,r,a,u),B()){var h=ru();typeof h=="object"&&h!==null&&h._suppressLogging&&typeof x=="object"&&x!==null&&!x._suppressLogging&&(x._suppressLogging=!0)}throw x}}}var UA=!1,C6;C6=new Set;function oY(r){if(no&&!JH())switch(r.tag){case m:case I:case Y:{var a=qr&&Wt(qr)||"Unknown",u=a;if(!C6.has(u)){C6.add(u);var f=Wt(r)||"Unknown";l("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:{UA||(l("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),UA=!0);break}}}function xg(r,a){if(Ii){var u=r.memoizedUpdaters;u.forEach(function(f){mh(r,f,a)})}}var N6={};function E6(r,a){{var u=Bl.current;return u!==null?(u.push(a),N6):io(r,a)}}function jA(r){if(r!==N6)return F4(r)}function VA(){return Bl.current!==null}function sY(r){{if(r.mode&Nn){if(!xA())return}else if(!RG()||Dn!==Ui||r.tag!==m&&r.tag!==I&&r.tag!==Y)return;if(Bl.current===null){var a=_r;try{lr(r),l(`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`,Wt(r))}finally{a?lr(r):Pr()}}}}function lY(r){r.tag!==Vf&&xA()&&Bl.current===null&&l(`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 Sg(r){_A=r}var Xs=null,ov=null,uY=function(r){Xs=r};function sv(r){{if(Xs===null)return r;var a=Xs(r);return a===void 0?r:a.current}}function _6(r){return sv(r)}function T6(r){{if(Xs===null)return r;var a=Xs(r);if(a===void 0){if(r!=null&&typeof r.render=="function"){var u=sv(r.render);if(r.render!==u){var f={$$typeof:st,render:u};return r.displayName!==void 0&&(f.displayName=r.displayName),f}}return r}return a.current}}function HA(r,a){{if(Xs===null)return!1;var u=r.elementType,f=a.type,h=!1,x=typeof f=="object"&&f!==null?f.$$typeof:null;switch(r.tag){case v:{typeof f=="function"&&(h=!0);break}case m:{(typeof f=="function"||x===fn)&&(h=!0);break}case I:{(x===st||x===fn)&&(h=!0);break}case q:case Y:{(x===Un||x===fn)&&(h=!0);break}default:return!1}if(h){var _=Xs(u);if(_!==void 0&&_===Xs(f))return!0}return!1}}function WA(r){{if(Xs===null||typeof WeakSet!="function")return;ov===null&&(ov=new WeakSet),ov.add(r)}}var cY=function(r,a){{if(Xs===null)return;var u=a.staleFamilies,f=a.updatedFamilies;Mc(),Oc(function(){R6(r.current,f,u)})}},fY=function(r,a){{if(r.context!==us)return;Mc(),Oc(function(){wg(a,r,null,null)})}};function R6(r,a,u){{var f=r.alternate,h=r.child,x=r.sibling,_=r.tag,A=r.type,M=null;switch(_){case m:case Y:case v:M=A;break;case I:M=A.render;break}if(Xs===null)throw new Error("Expected resolveFamily to be set during hot reload.");var U=!1,H=!1;if(M!==null){var oe=Xs(M);oe!==void 0&&(u.has(oe)?H=!0:a.has(oe)&&(_===v?H=!0:U=!0))}if(ov!==null&&(ov.has(r)||f!==null&&ov.has(f))&&(H=!0),H&&(r._debugNeedsRemount=!0),H||U){var re=Ao(r,qt);re!==null&&Hi(re,r,qt,rr)}h!==null&&!H&&R6(h,a,u),x!==null&&R6(x,a,u)}}var dY=function(r,a){{var u=new Set,f=new Set(a.map(function(h){return h.current}));return k6(r.current,f,u),u}};function k6(r,a,u){{var f=r.child,h=r.sibling,x=r.tag,_=r.type,A=null;switch(x){case m:case Y:case v:A=_;break;case I:A=_.render;break}var M=!1;A!==null&&a.has(A)&&(M=!0),M?pY(r,u):f!==null&&k6(f,a,u),h!==null&&k6(h,a,u)}}function pY(r,a){{var u=mY(r,a);if(u)return;for(var f=r;;){switch(f.tag){case C:a.add(f.stateNode);return;case w:a.add(f.stateNode.containerInfo);return;case b:a.add(f.stateNode.containerInfo);return}if(f.return===null)throw new Error("Expected to reach root first.");f=f.return}}}function mY(r,a){for(var u=r,f=!1;;){if(u.tag===C)f=!0,a.add(u.stateNode);else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===r)return f;for(;u.sibling===null;){if(u.return===null||u.return===r)return f;u=u.return}u.sibling.return=u.return,u=u.sibling}return!1}var A6;{A6=!1;try{var GA=Object.preventExtensions({})}catch{A6=!0}}function hY(r,a,u,f){this.tag=r,this.key=u,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=Ut,this.subtreeFlags=Ut,this.deletions=null,this.lanes=Be,this.childLanes=Be,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,!A6&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var cs=function(r,a,u,f){return new hY(r,a,u,f)};function L6(r){var a=r.prototype;return!!(a&&a.isReactComponent)}function vY(r){return typeof r=="function"&&!L6(r)&&r.defaultProps===void 0}function gY(r){if(typeof r=="function")return L6(r)?v:m;if(r!=null){var a=r.$$typeof;if(a===st)return I;if(a===Un)return q}return g}function Qp(r,a){var u=r.alternate;u===null?(u=cs(r.tag,a,r.key,r.mode),u.elementType=r.elementType,u.type=r.type,u.stateNode=r.stateNode,u._debugSource=r._debugSource,u._debugOwner=r._debugOwner,u._debugHookTypes=r._debugHookTypes,u.alternate=r,r.alternate=u):(u.pendingProps=a,u.type=r.type,u.flags=Ut,u.subtreeFlags=Ut,u.deletions=null,u.actualDuration=0,u.actualStartTime=-1),u.flags=r.flags&Ms,u.childLanes=r.childLanes,u.lanes=r.lanes,u.child=r.child,u.memoizedProps=r.memoizedProps,u.memoizedState=r.memoizedState,u.updateQueue=r.updateQueue;var f=r.dependencies;switch(u.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext},u.sibling=r.sibling,u.index=r.index,u.ref=r.ref,u.selfBaseDuration=r.selfBaseDuration,u.treeBaseDuration=r.treeBaseDuration,u._debugNeedsRemount=r._debugNeedsRemount,u.tag){case g:case m:case Y:u.type=sv(r.type);break;case v:u.type=_6(r.type);break;case I:u.type=T6(r.type);break}return u}function bY(r,a){r.flags&=Ms|Qr;var u=r.alternate;if(u===null)r.childLanes=Be,r.lanes=a,r.child=null,r.subtreeFlags=Ut,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null,r.selfBaseDuration=0,r.treeBaseDuration=0;else{r.childLanes=u.childLanes,r.lanes=u.lanes,r.child=u.child,r.subtreeFlags=Ut,r.deletions=null,r.memoizedProps=u.memoizedProps,r.memoizedState=u.memoizedState,r.updateQueue=u.updateQueue,r.type=u.type;var f=u.dependencies;r.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext},r.selfBaseDuration=u.selfBaseDuration,r.treeBaseDuration=u.treeBaseDuration}return r}function yY(r,a,u){var f;return r===ax?(f=Nn,a===!0&&(f|=Yr,f|=_o)):f=Ft,Ii&&(f|=Gn),cs(b,null,null,f)}function O6(r,a,u,f,h,x){var _=g,A=r;if(typeof r=="function")L6(r)?(_=v,A=_6(A)):A=sv(A);else if(typeof r=="string")_=C;else{e:switch(r){case Ve:return nd(u.children,h,x,a);case Qe:_=L,h|=Yr,(h&Nn)!==Ft&&(h|=_o);break;case _t:return xY(u,h,x,a);case Kt:return SY(u,h,x,a);case Hn:return wY(u,h,x,a);case qo:return YA(u,h,x,a);case ki:case Kr:case wo:case Xu:case Aa:default:{if(typeof r=="object"&&r!==null)switch(r.$$typeof){case un:_=P;break e;case Cn:_=D;break e;case st:_=I,A=T6(A);break e;case Un:_=q;break e;case fn:_=Q,A=null;break e}var M="";{(r===void 0||typeof r=="object"&&r!==null&&Object.keys(r).length===0)&&(M+=" 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 U=f?Wt(f):null;U&&(M+=`
Check the render method of \``+U+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(r==null?r:typeof r)+"."+M))}}}var H=cs(_,u,a,h);return H.elementType=r,H.type=A,H.lanes=x,H._debugOwner=f,H}function M6(r,a,u){var f=null;f=r._owner;var h=r.type,x=r.key,_=r.props,A=O6(h,x,_,f,a,u);return A._debugSource=r._source,A._debugOwner=r._owner,A}function nd(r,a,u,f){var h=cs(R,r,f,a);return h.lanes=u,h}function xY(r,a,u,f){typeof r.id!="string"&&l('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof r.id);var h=cs(F,r,f,a|Gn);return h.elementType=_t,h.lanes=u,h.stateNode={effectDuration:0,passiveEffectDuration:0},h}function SY(r,a,u,f){var h=cs(z,r,f,a);return h.elementType=Kt,h.lanes=u,h}function wY(r,a,u,f){var h=cs(me,r,f,a);return h.elementType=Hn,h.lanes=u,h}function YA(r,a,u,f){var h=cs(te,r,f,a);h.elementType=qo,h.lanes=u;var x={isHidden:!1};return h.stateNode=x,h}function P6(r,a,u){var f=cs(T,r,null,a);return f.lanes=u,f}function CY(){var r=cs(C,null,null,Ft);return r.elementType="DELETED",r}function NY(r){var a=cs(ae,null,null,Ft);return a.stateNode=r,a}function I6(r,a,u){var f=r.children!==null?r.children:[],h=cs(w,f,r.key,a);return h.lanes=u,h.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},h}function qA(r,a){return r===null&&(r=cs(g,null,null,Ft)),r.tag=a.tag,r.key=a.key,r.elementType=a.elementType,r.type=a.type,r.stateNode=a.stateNode,r.return=a.return,r.child=a.child,r.sibling=a.sibling,r.index=a.index,r.ref=a.ref,r.pendingProps=a.pendingProps,r.memoizedProps=a.memoizedProps,r.updateQueue=a.updateQueue,r.memoizedState=a.memoizedState,r.dependencies=a.dependencies,r.mode=a.mode,r.flags=a.flags,r.subtreeFlags=a.subtreeFlags,r.deletions=a.deletions,r.lanes=a.lanes,r.childLanes=a.childLanes,r.alternate=a.alternate,r.actualDuration=a.actualDuration,r.actualStartTime=a.actualStartTime,r.selfBaseDuration=a.selfBaseDuration,r.treeBaseDuration=a.treeBaseDuration,r._debugSource=a._debugSource,r._debugOwner=a._debugOwner,r._debugNeedsRemount=a._debugNeedsRemount,r._debugHookTypes=a._debugHookTypes,r}function EY(r,a,u,f,h){this.tag=a,this.containerInfo=r,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=L1,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=oi,this.eventTimes=cp(Be),this.expirationTimes=cp(rr),this.pendingLanes=Be,this.suspendedLanes=Be,this.pingedLanes=Be,this.expiredLanes=Be,this.mutableReadLanes=Be,this.finishedLanes=Be,this.entangledLanes=Be,this.entanglements=cp(Be),this.identifierPrefix=f,this.onRecoverableError=h,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var x=this.pendingUpdatersLaneMap=[],_=0;_<j0;_++)x.push(new Set)}switch(a){case ax:this._debugRootType=u?"hydrateRoot()":"createRoot()";break;case Vf:this._debugRootType=u?"hydrate()":"render()";break}}function ZA(r,a,u,f,h,x,_,A,M,U){var H=new EY(r,a,u,A,M),oe=yY(a,x);H.current=oe,oe.stateNode=H;{var re={element:f,isDehydrated:u,cache:null,transitions:null,pendingSuspenseBoundaries:null};oe.memoizedState=re}return VN(oe),H}var D6="18.2.0";function _Y(r,a,u){var f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return On(f),{$$typeof:X,key:f==null?null:""+f,children:r,containerInfo:a,implementation:u}}var $6,F6;$6=!1,F6={};function KA(r){if(!r)return us;var a=xl(r),u=uH(a);if(a.tag===v){var f=a.type;if(mu(f))return wR(a,f,u)}return u}function TY(r,a){{var u=xl(r);if(u===void 0){if(typeof r.render=="function")throw new Error("Unable to find node on an unmounted component.");var f=Object.keys(r).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+f)}var h=Oy(u);if(h===null)return null;if(h.mode&Yr){var x=Wt(u)||"Component";if(!F6[x]){F6[x]=!0;var _=_r;try{lr(h),u.mode&Yr?l("%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,x):l("%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,x)}finally{_?lr(_):Pr()}}}return h.stateNode}}function XA(r,a,u,f,h,x,_,A){var M=!1,U=null;return ZA(r,a,M,U,u,f,h,x,_)}function QA(r,a,u,f,h,x,_,A,M,U){var H=!0,oe=ZA(u,f,H,r,h,x,_,A,M);oe.context=KA(null);var re=oe.current,xe=fo(),Se=ed(re),Re=Rc(xe,Se);return Re.callback=a??null,Gf(re,Re,Se),PG(oe,Se,xe),oe}function wg(r,a,u,f){ua(a,r);var h=a.current,x=fo(),_=ed(h);Vy(_);var A=KA(u);a.context===null?a.context=A:a.pendingContext=A,no&&_r!==null&&!$6&&($6=!0,l(`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.`,Wt(_r)||"Unknown"));var M=Rc(x,_);M.payload={element:r},f=f===void 0?null:f,f!==null&&(typeof f!="function"&&l("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",f),M.callback=f);var U=Gf(h,M,_);return U!==null&&(Hi(U,h,_,x),bx(U,h,_)),_}function u5(r){var a=r.current;if(!a.child)return null;switch(a.child.tag){case C:return a.child.stateNode;default:return a.child.stateNode}}function RY(r){switch(r.tag){case b:{var a=r.stateNode;if(gi(a)){var u=Z4(a);FG(a,u)}break}case z:{Oc(function(){var h=Ao(r,qt);if(h!==null){var x=fo();Hi(h,r,qt,x)}});var f=qt;z6(r,f);break}}}function JA(r,a){var u=r.memoizedState;u!==null&&u.dehydrated!==null&&(u.retryLane=Tl(u.retryLane,a))}function z6(r,a){JA(r,a);var u=r.alternate;u&&JA(u,a)}function kY(r){if(r.tag===z){var a=_f,u=Ao(r,a);if(u!==null){var f=fo();Hi(u,r,a,f)}z6(r,a)}}function AY(r){if(r.tag===z){var a=ed(r),u=Ao(r,a);if(u!==null){var f=fo();Hi(u,r,a,f)}z6(r,a)}}function eL(r){var a=A0(r);return a===null?null:a.stateNode}var tL=function(r){return null};function LY(r){return tL(r)}var nL=function(r){return!1};function OY(r){return nL(r)}var rL=null,iL=null,aL=null,oL=null,sL=null,lL=null,uL=null,cL=null,fL=null;{var dL=function(r,a,u){var f=a[u],h=jt(r)?r.slice():tn({},r);return u+1===a.length?(jt(h)?h.splice(f,1):delete h[f],h):(h[f]=dL(r[f],a,u+1),h)},pL=function(r,a){return dL(r,a,0)},mL=function(r,a,u,f){var h=a[f],x=jt(r)?r.slice():tn({},r);if(f+1===a.length){var _=u[f];x[_]=x[h],jt(x)?x.splice(h,1):delete x[h]}else x[h]=mL(r[h],a,u,f+1);return x},hL=function(r,a,u){if(a.length!==u.length){s("copyWithRename() expects paths of the same length");return}else for(var f=0;f<u.length-1;f++)if(a[f]!==u[f]){s("copyWithRename() expects paths to be the same except for the deepest key");return}return mL(r,a,u,0)},vL=function(r,a,u,f){if(u>=a.length)return f;var h=a[u],x=jt(r)?r.slice():tn({},r);return x[h]=vL(r[h],a,u+1,f),x},gL=function(r,a,u){return vL(r,a,0,u)},B6=function(r,a){for(var u=r.memoizedState;u!==null&&a>0;)u=u.next,a--;return u};rL=function(r,a,u,f){var h=B6(r,a);if(h!==null){var x=gL(h.memoizedState,u,f);h.memoizedState=x,h.baseState=x,r.memoizedProps=tn({},r.memoizedProps);var _=Ao(r,qt);_!==null&&Hi(_,r,qt,rr)}},iL=function(r,a,u){var f=B6(r,a);if(f!==null){var h=pL(f.memoizedState,u);f.memoizedState=h,f.baseState=h,r.memoizedProps=tn({},r.memoizedProps);var x=Ao(r,qt);x!==null&&Hi(x,r,qt,rr)}},aL=function(r,a,u,f){var h=B6(r,a);if(h!==null){var x=hL(h.memoizedState,u,f);h.memoizedState=x,h.baseState=x,r.memoizedProps=tn({},r.memoizedProps);var _=Ao(r,qt);_!==null&&Hi(_,r,qt,rr)}},oL=function(r,a,u){r.pendingProps=gL(r.memoizedProps,a,u),r.alternate&&(r.alternate.pendingProps=r.pendingProps);var f=Ao(r,qt);f!==null&&Hi(f,r,qt,rr)},sL=function(r,a){r.pendingProps=pL(r.memoizedProps,a),r.alternate&&(r.alternate.pendingProps=r.pendingProps);var u=Ao(r,qt);u!==null&&Hi(u,r,qt,rr)},lL=function(r,a,u){r.pendingProps=hL(r.memoizedProps,a,u),r.alternate&&(r.alternate.pendingProps=r.pendingProps);var f=Ao(r,qt);f!==null&&Hi(f,r,qt,rr)},uL=function(r){var a=Ao(r,qt);a!==null&&Hi(a,r,qt,rr)},cL=function(r){tL=r},fL=function(r){nL=r}}function MY(r){var a=Oy(r);return a===null?null:a.stateNode}function PY(r){return null}function IY(){return _r}function DY(r){var a=r.findFiberByHostInstance,u=n.ReactCurrentDispatcher;return Iy({bundleType:r.bundleType,version:r.version,rendererPackageName:r.rendererPackageName,rendererConfig:r.rendererConfig,overrideHookState:rL,overrideHookStateDeletePath:iL,overrideHookStateRenamePath:aL,overrideProps:oL,overridePropsDeletePath:sL,overridePropsRenamePath:lL,setErrorHandler:cL,setSuspenseHandler:fL,scheduleUpdate:uL,currentDispatcherRef:u,findHostInstanceByFiber:MY,findFiberByHostInstance:a||PY,findHostInstancesForRefresh:dY,scheduleRefresh:cY,scheduleRoot:fY,setRefreshHandler:uY,getCurrentFiber:IY,reconcilerVersion:D6})}var bL=typeof reportError=="function"?reportError:function(r){console.error(r)};function U6(r){this._internalRoot=r}c5.prototype.render=U6.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?l("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):f5(arguments[1])?l("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"&&l("You passed a second argument to root.render(...) but it only accepts one argument.");var u=a.containerInfo;if(u.nodeType!==Wn){var f=eL(a.current);f&&f.parentNode!==u&&l("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.")}}wg(r,a,null,null)},c5.prototype.unmount=U6.prototype.unmount=function(){typeof arguments[0]=="function"&&l("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var r=this._internalRoot;if(r!==null){this._internalRoot=null;var a=r.containerInfo;AA()&&l("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."),Oc(function(){wg(null,r,null,null)}),De(a)}};function $Y(r,a){if(!f5(r))throw new Error("createRoot(...): Target container is not a DOM element.");yL(r);var u=!1,f=!1,h="",x=bL;a!=null&&(a.hydrate?s("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof a=="object"&&a!==null&&a.$$typeof===qi&&l(`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&&(u=!0),a.identifierPrefix!==void 0&&(h=a.identifierPrefix),a.onRecoverableError!==void 0&&(x=a.onRecoverableError),a.transitionCallbacks!==void 0&&a.transitionCallbacks);var _=XA(r,ax,null,u,f,h,x);de(_.current,r);var A=r.nodeType===Wn?r.parentNode:r;return Rp(A),new U6(_)}function c5(r){this._internalRoot=r}function FY(r){r&&i2(r)}c5.prototype.unstable_scheduleHydration=FY;function zY(r,a,u){if(!f5(r))throw new Error("hydrateRoot(...): Target container is not a DOM element.");yL(r),a===void 0&&l("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var f=u??null,h=u!=null&&u.hydratedSources||null,x=!1,_=!1,A="",M=bL;u!=null&&(u.unstable_strictMode===!0&&(x=!0),u.identifierPrefix!==void 0&&(A=u.identifierPrefix),u.onRecoverableError!==void 0&&(M=u.onRecoverableError));var U=QA(a,null,r,ax,f,x,_,A,M);if(de(U.current,r),Rp(r),h)for(var H=0;H<h.length;H++){var oe=h[H];YH(U,oe)}return new c5(U)}function f5(r){return!!(r&&(r.nodeType===Fa||r.nodeType===is||r.nodeType===tc||!Oe))}function Cg(r){return!!(r&&(r.nodeType===Fa||r.nodeType===is||r.nodeType===tc||r.nodeType===Wn&&r.nodeValue===" react-mount-point-unstable "))}function yL(r){r.nodeType===Fa&&r.tagName&&r.tagName.toUpperCase()==="BODY"&&l("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."),Le(r)&&(r._reactRootContainer?l("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):l("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 BY=n.ReactCurrentOwner,xL;xL=function(r){if(r._reactRootContainer&&r.nodeType!==Wn){var a=eL(r._reactRootContainer.current);a&&a.parentNode!==r&&l("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 u=!!r._reactRootContainer,f=j6(r),h=!!(f&&Je(f));h&&!u&&l("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."),r.nodeType===Fa&&r.tagName&&r.tagName.toUpperCase()==="BODY"&&l("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 j6(r){return r?r.nodeType===is?r.documentElement:r.firstChild:null}function SL(){}function UY(r,a,u,f,h){if(h){if(typeof f=="function"){var x=f;f=function(){var re=u5(_);x.call(re)}}var _=QA(a,f,r,Vf,null,!1,!1,"",SL);r._reactRootContainer=_,de(_.current,r);var A=r.nodeType===Wn?r.parentNode:r;return Rp(A),Oc(),_}else{for(var M;M=r.lastChild;)r.removeChild(M);if(typeof f=="function"){var U=f;f=function(){var re=u5(H);U.call(re)}}var H=XA(r,Vf,null,!1,!1,"",SL);r._reactRootContainer=H,de(H.current,r);var oe=r.nodeType===Wn?r.parentNode:r;return Rp(oe),Oc(function(){wg(a,H,u,f)}),H}}function jY(r,a){r!==null&&typeof r!="function"&&l("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a,r)}function d5(r,a,u,f,h){xL(u),jY(h===void 0?null:h,"render");var x=u._reactRootContainer,_;if(!x)_=UY(u,a,r,h,f);else{if(_=x,typeof h=="function"){var A=h;h=function(){var M=u5(_);A.call(M)}}wg(a,_,r,h)}return u5(_)}function VY(r){{var a=BY.current;if(a!==null&&a.stateNode!==null){var u=a.stateNode._warnedAboutRefsInRender;u||l("%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.",dn(a.type)||"A component"),a.stateNode._warnedAboutRefsInRender=!0}}return r==null?null:r.nodeType===Fa?r:TY(r,"findDOMNode")}function HY(r,a,u){if(l("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"),!Cg(a))throw new Error("Target container is not a DOM element.");{var f=Le(a)&&a._reactRootContainer===void 0;f&&l("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 d5(null,r,a,!0,u)}function WY(r,a,u){if(l("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"),!Cg(a))throw new Error("Target container is not a DOM element.");{var f=Le(a)&&a._reactRootContainer===void 0;f&&l("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 d5(null,r,a,!1,u)}function GY(r,a,u,f){if(l("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"),!Cg(u))throw new Error("Target container is not a DOM element.");if(r==null||!Eo(r))throw new Error("parentComponent must be a valid React Component");return d5(r,a,u,!1,f)}function YY(r){if(!Cg(r))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var a=Le(r)&&r._reactRootContainer===void 0;a&&l("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(r._reactRootContainer){{var u=j6(r),f=u&&!Je(u);f&&l("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Oc(function(){d5(null,null,r,!1,function(){r._reactRootContainer=null,De(r)})}),!0}else{{var h=j6(r),x=!!(h&&Je(h)),_=r.nodeType===Fa&&Cg(r.parentNode)&&!!r.parentNode._reactRootContainer;x&&l("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",_?"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}}J4(RY),ew(kY),Jy(AY),tw(To),nw(Qy),(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")&&l("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"),S0(q2),_y(y6,zG,Oc);function qY(r,a){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!f5(a))throw new Error("Target container is not a DOM element.");return _Y(r,a,null,u)}function ZY(r,a,u,f){return GY(r,a,u,f)}var V6={usingClientEntryPoint:!1,Events:[Je,bt,Bt,Sy,Cy,y6]};function KY(r,a){return V6.usingClientEntryPoint||l('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),$Y(r,a)}function XY(r,a,u){return V6.usingClientEntryPoint||l('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),zY(r,a,u)}function QY(r){return AA()&&l("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."),Oc(r)}var JY=DY({findFiberByHostInstance:Fe,bundleType:1,version:D6,rendererPackageName:"react-dom"});if(!JY&&Vt&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var wL=window.location.protocol;/^(https?|file):$/.test(wL)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(wL==="file:"?`
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}ms.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=V6,ms.createPortal=qY,ms.createRoot=KY,ms.findDOMNode=VY,ms.flushSync=QY,ms.hydrate=HY,ms.hydrateRoot=XY,ms.render=WY,ms.unmountComponentAtNode=YY,ms.unstable_batchedUpdates=y6,ms.unstable_renderSubtreeIntoContainer=ZY,ms.version=D6,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})();(function(e){e.exports=ms})(ef);var H6=ef.exports;{var p5=H6.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;cE.createRoot=function(e,t){p5.usingClientEntryPoint=!0;try{return H6.createRoot(e,t)}finally{p5.usingClientEntryPoint=!1}},cE.hydrateRoot=function(e,t,n){p5.usingClientEntryPoint=!0;try{return H6.hydrateRoot(e,t,n)}finally{p5.usingClientEntryPoint=!1}}}var $u=Boolean(globalThis?.document)?E.exports.useLayoutEffect:E.exports.useEffect,o8={exports:{}},fE={};/**
* @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=E.exports,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),p=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),T=Symbol.iterator,R="@@iterator";function L(X){if(X===null||typeof X!="object")return null;var Ve=T&&X[T]||X[R];return typeof Ve=="function"?Ve:null}var D=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function P(X){{for(var Ve=arguments.length,Qe=new Array(Ve>1?Ve-1:0),_t=1;_t<Ve;_t++)Qe[_t-1]=arguments[_t];I("error",X,Qe)}}function I(X,Ve,Qe){{var _t=D.ReactDebugCurrentFrame,un=_t.getStackAddendum();un!==""&&(Ve+="%s",Qe=Qe.concat([un]));var Cn=Qe.map(function(st){return String(st)});Cn.unshift("Warning: "+Ve),Function.prototype.apply.call(console[X],console,Cn)}}var F=!1,z=!1,q=!1,Y=!1,Q=!1,ie;ie=Symbol.for("react.module.reference");function ae(X){return!!(typeof X=="string"||typeof X=="function"||X===i||X===s||Q||X===o||X===v||X===g||Y||X===C||F||z||q||typeof X=="object"&&X!==null&&(X.$$typeof===w||X.$$typeof===b||X.$$typeof===l||X.$$typeof===p||X.$$typeof===m||X.$$typeof===ie||X.getModuleId!==void 0))}function me(X,Ve,Qe){var _t=X.displayName;if(_t)return _t;var un=Ve.displayName||Ve.name||"";return un!==""?Qe+"("+un+")":Qe}function ze(X){return X.displayName||"Context"}function te(X){if(X==null)return null;if(typeof X.tag=="number"&&P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof X=="function")return X.displayName||X.name||null;if(typeof X=="string")return X;switch(X){case i:return"Fragment";case n:return"Portal";case s:return"Profiler";case o:return"StrictMode";case v:return"Suspense";case g:return"SuspenseList"}if(typeof X=="object")switch(X.$$typeof){case p:var Ve=X;return ze(Ve)+".Consumer";case l:var Qe=X;return ze(Qe._context)+".Provider";case m:return me(X,X.render,"ForwardRef");case b:var _t=X.displayName||null;return _t!==null?_t:te(X.type)||"Memo";case w:{var un=X,Cn=un._payload,st=un._init;try{return te(st(Cn))}catch{return null}}}return null}var ee=Object.assign,we=0,ye,K,le,ge,pe,Ee,Oe;function Pe(){}Pe.__reactDisabledLog=!0;function Xe(){{if(we===0){ye=console.log,K=console.info,le=console.warn,ge=console.error,pe=console.group,Ee=console.groupCollapsed,Oe=console.groupEnd;var X={configurable:!0,enumerable:!0,value:Pe,writable:!0};Object.defineProperties(console,{info:X,log:X,warn:X,error:X,group:X,groupCollapsed:X,groupEnd:X})}we++}}function et(){{if(we--,we===0){var X={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ee({},X,{value:ye}),info:ee({},X,{value:K}),warn:ee({},X,{value:le}),error:ee({},X,{value:ge}),group:ee({},X,{value:pe}),groupCollapsed:ee({},X,{value:Ee}),groupEnd:ee({},X,{value:Oe})})}we<0&&P("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var at=D.ReactCurrentDispatcher,kt;function He(X,Ve,Qe){{if(kt===void 0)try{throw Error()}catch(un){var _t=un.stack.trim().match(/\n( *(at )?)/);kt=_t&&_t[1]||""}return`
`+kt+X}}var ot=!1,wt;{var It=typeof WeakMap=="function"?WeakMap:Map;wt=new It}function We(X,Ve){if(!X||ot)return"";{var Qe=wt.get(X);if(Qe!==void 0)return Qe}var _t;ot=!0;var un=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Cn;Cn=at.current,at.current=null,Xe();try{if(Ve){var st=function(){throw Error()};if(Object.defineProperty(st.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(st,[])}catch(ki){_t=ki}Reflect.construct(X,[],st)}else{try{st.call()}catch(ki){_t=ki}X.call(st.prototype)}}else{try{throw Error()}catch(ki){_t=ki}X()}}catch(ki){if(ki&&_t&&typeof ki.stack=="string"){for(var Kt=ki.stack.split(`
`),Hn=_t.stack.split(`
`),Un=Kt.length-1,fn=Hn.length-1;Un>=1&&fn>=0&&Kt[Un]!==Hn[fn];)fn--;for(;Un>=1&&fn>=0;Un--,fn--)if(Kt[Un]!==Hn[fn]){if(Un!==1||fn!==1)do if(Un--,fn--,fn<0||Kt[Un]!==Hn[fn]){var Kr=`
`+Kt[Un].replace(" at new "," at ");return X.displayName&&Kr.includes("<anonymous>")&&(Kr=Kr.replace("<anonymous>",X.displayName)),typeof X=="function"&&wt.set(X,Kr),Kr}while(Un>=1&&fn>=0);break}}}finally{ot=!1,at.current=Cn,et(),Error.prepareStackTrace=un}var Aa=X?X.displayName||X.name:"",qo=Aa?He(Aa):"";return typeof X=="function"&&wt.set(X,qo),qo}function Vt(X,Ve,Qe){return We(X,!1)}function Ce(X){var Ve=X.prototype;return!!(Ve&&Ve.isReactComponent)}function nt(X,Ve,Qe){if(X==null)return"";if(typeof X=="function")return We(X,Ce(X));if(typeof X=="string")return He(X);switch(X){case v:return He("Suspense");case g:return He("SuspenseList")}if(typeof X=="object")switch(X.$$typeof){case m:return Vt(X.render);case b:return nt(X.type,Ve,Qe);case w:{var _t=X,un=_t._payload,Cn=_t._init;try{return nt(Cn(un),Ve,Qe)}catch{}}}return""}var Ct=Object.prototype.hasOwnProperty,rt={},sn=D.ReactDebugCurrentFrame;function On(X){if(X){var Ve=X._owner,Qe=nt(X.type,X._source,Ve?Ve.type:null);sn.setExtraStackFrame(Qe)}else sn.setExtraStackFrame(null)}function Tt(X,Ve,Qe,_t,un){{var Cn=Function.call.bind(Ct);for(var st in X)if(Cn(X,st)){var Kt=void 0;try{if(typeof X[st]!="function"){var Hn=Error((_t||"React class")+": "+Qe+" type `"+st+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof X[st]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Hn.name="Invariant Violation",Hn}Kt=X[st](Ve,st,_t,Qe,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Un){Kt=Un}Kt&&!(Kt instanceof Error)&&(On(un),P("%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).",_t||"React class",Qe,st,typeof Kt),On(null)),Kt instanceof Error&&!(Kt.message in rt)&&(rt[Kt.message]=!0,On(un),P("Failed %s type: %s",Qe,Kt.message),On(null))}}}var ln=Array.isArray;function Mn(X){return ln(X)}function yn(X){{var Ve=typeof Symbol=="function"&&Symbol.toStringTag,Qe=Ve&&X[Symbol.toStringTag]||X.constructor.name||"Object";return Qe}}function Ze(X){try{return tt(X),!1}catch{return!0}}function tt(X){return""+X}function rn(X){if(Ze(X))return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",yn(X)),tt(X)}var Dt=D.ReactCurrentOwner,Ie={key:!0,ref:!0,__self:!0,__source:!0},Zt,Tn,Ge;Ge={};function ut(X){if(Ct.call(X,"ref")){var Ve=Object.getOwnPropertyDescriptor(X,"ref").get;if(Ve&&Ve.isReactWarning)return!1}return X.ref!==void 0}function At(X){if(Ct.call(X,"key")){var Ve=Object.getOwnPropertyDescriptor(X,"key").get;if(Ve&&Ve.isReactWarning)return!1}return X.key!==void 0}function gn(X,Ve){if(typeof X.ref=="string"&&Dt.current&&Ve&&Dt.current.stateNode!==Ve){var Qe=te(Dt.current.type);Ge[Qe]||(P('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',te(Dt.current.type),X.ref),Ge[Qe]=!0)}}function en(X,Ve){{var Qe=function(){Zt||(Zt=!0,P("%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)",Ve))};Qe.isReactWarning=!0,Object.defineProperty(X,"key",{get:Qe,configurable:!0})}}function Rn(X,Ve){{var Qe=function(){Tn||(Tn=!0,P("%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)",Ve))};Qe.isReactWarning=!0,Object.defineProperty(X,"ref",{get:Qe,configurable:!0})}}var Fn=function(X,Ve,Qe,_t,un,Cn,st){var Kt={$$typeof:t,type:X,key:Ve,ref:Qe,props:st,_owner:Cn};return Kt._store={},Object.defineProperty(Kt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Kt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:_t}),Object.defineProperty(Kt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:un}),Object.freeze&&(Object.freeze(Kt.props),Object.freeze(Kt)),Kt};function zr(X,Ve,Qe,_t,un){{var Cn,st={},Kt=null,Hn=null;Qe!==void 0&&(rn(Qe),Kt=""+Qe),At(Ve)&&(rn(Ve.key),Kt=""+Ve.key),ut(Ve)&&(Hn=Ve.ref,gn(Ve,un));for(Cn in Ve)Ct.call(Ve,Cn)&&!Ie.hasOwnProperty(Cn)&&(st[Cn]=Ve[Cn]);if(X&&X.defaultProps){var Un=X.defaultProps;for(Cn in Un)st[Cn]===void 0&&(st[Cn]=Un[Cn])}if(Kt||Hn){var fn=typeof X=="function"?X.displayName||X.name||"Unknown":X;Kt&&en(st,fn),Hn&&Rn(st,fn)}return Fn(X,Kt,Hn,un,_t,Dt.current,st)}}var Pn=D.ReactCurrentOwner,Ti=D.ReactDebugCurrentFrame;function Vn(X){if(X){var Ve=X._owner,Qe=nt(X.type,X._source,Ve?Ve.type:null);Ti.setExtraStackFrame(Qe)}else Ti.setExtraStackFrame(null)}var kn;kn=!1;function Ri(X){return typeof X=="object"&&X!==null&&X.$$typeof===t}function Er(){{if(Pn.current){var X=te(Pn.current.type);if(X)return`
Check the render method of \``+X+"`."}return""}}function Wo(X){{if(X!==void 0){var Ve=X.fileName.replace(/^.*[\\\/]/,""),Qe=X.lineNumber;return`
Check your code at `+Ve+":"+Qe+"."}return""}}var Ss={};function ws(X){{var Ve=Er();if(!Ve){var Qe=typeof X=="string"?X:X.displayName||X.name;Qe&&(Ve=`
Check the top-level render call using <`+Qe+">.")}return Ve}}function Go(X,Ve){{if(!X._store||X._store.validated||X.key!=null)return;X._store.validated=!0;var Qe=ws(Ve);if(Ss[Qe])return;Ss[Qe]=!0;var _t="";X&&X._owner&&X._owner!==Pn.current&&(_t=" It was passed a child from "+te(X._owner.type)+"."),Vn(X),P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Qe,_t),Vn(null)}}function Yo(X,Ve){{if(typeof X!="object")return;if(Mn(X))for(var Qe=0;Qe<X.length;Qe++){var _t=X[Qe];Ri(_t)&&Go(_t,Ve)}else if(Ri(X))X._store&&(X._store.validated=!0);else if(X){var un=L(X);if(typeof un=="function"&&un!==X.entries)for(var Cn=un.call(X),st;!(st=Cn.next()).done;)Ri(st.value)&&Go(st.value,Ve)}}}function xr(X){{var Ve=X.type;if(Ve==null||typeof Ve=="string")return;var Qe;if(typeof Ve=="function")Qe=Ve.propTypes;else if(typeof Ve=="object"&&(Ve.$$typeof===m||Ve.$$typeof===b))Qe=Ve.propTypes;else return;if(Qe){var _t=te(Ve);Tt(Qe,X.props,"prop",_t,X)}else if(Ve.PropTypes!==void 0&&!kn){kn=!0;var un=te(Ve);P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",un||"Unknown")}typeof Ve.getDefaultProps=="function"&&!Ve.getDefaultProps.isReactClassApproved&&P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Yi(X){{for(var Ve=Object.keys(X.props),Qe=0;Qe<Ve.length;Qe++){var _t=Ve[Qe];if(_t!=="children"&&_t!=="key"){Vn(X),P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",_t),Vn(null);break}}X.ref!==null&&(Vn(X),P("Invalid attribute `ref` supplied to `React.Fragment`."),Vn(null))}}function Ja(X,Ve,Qe,_t,un,Cn){{var st=ae(X);if(!st){var Kt="";(X===void 0||typeof X=="object"&&X!==null&&Object.keys(X).length===0)&&(Kt+=" 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 Hn=Wo(un);Hn?Kt+=Hn:Kt+=Er();var Un;X===null?Un="null":Mn(X)?Un="array":X!==void 0&&X.$$typeof===t?(Un="<"+(te(X.type)||"Unknown")+" />",Kt=" Did you accidentally export a JSX literal instead of a component?"):Un=typeof X,P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Un,Kt)}var fn=zr(X,Ve,Qe,un,Cn);if(fn==null)return fn;if(st){var Kr=Ve.children;if(Kr!==void 0)if(_t)if(Mn(Kr)){for(var Aa=0;Aa<Kr.length;Aa++)Yo(Kr[Aa],X);Object.freeze&&Object.freeze(Kr)}else P("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 Yo(Kr,X)}return X===i?Yi(fn):xr(fn),fn}}var qi=Ja;fE.Fragment=i,fE.jsxDEV=qi})();(function(e){e.exports=fE})(o8);const Gi=o8.exports.Fragment,N=o8.exports.jsxDEV;var OD="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/color-mode/dist/index.esm.js",s8=E.exports.createContext({});s8.displayName="ColorModeContext";function l8(){const e=E.exports.useContext(s8);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var m5={light:"chakra-ui-light",dark:"chakra-ui-dark"};function iq(e={}){const{preventTransition:t=!0}=e,n={setDataset:i=>{const o=t?n.preventTransition():void 0;document.documentElement.dataset.theme=i,document.documentElement.style.colorScheme=i,o?.()},setClassName(i){document.body.classList.add(i?m5.dark:m5.light),document.body.classList.remove(i?m5.light:m5.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(i){return n.query().matches??i==="dark"?"dark":"light"},addListener(i){const o=n.query(),s=l=>{i(l.matches?"dark":"light")};return typeof o.addListener=="function"?o.addListener(s):o.addEventListener("change",s),()=>{typeof o.removeListener=="function"?o.removeListener(s):o.removeEventListener("change",s)}},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 n}var aq="chakra-ui-color-mode";function oq(e){return{ssr:!1,type:"localStorage",get(t){if(!globalThis?.document)return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var sq=oq(aq),CL=()=>{};function NL(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function MD(e){const{value:t,children:n,options:{useSystemColorMode:i,initialColorMode:o,disableTransitionOnChange:s}={},colorModeManager:l=sq}=e,p=o==="dark"?"dark":"light",[m,v]=E.exports.useState(()=>NL(l,p)),[g,b]=E.exports.useState(()=>NL(l)),{getSystemTheme:w,setClassName:C,setDataset:T,addListener:R}=E.exports.useMemo(()=>iq({preventTransition:s}),[s]),L=o==="system"&&!m?g:m,D=E.exports.useCallback(F=>{const z=F==="system"?w():F;v(z),C(z==="dark"),T(z),l.set(z)},[l,w,C,T]);$u(()=>{o==="system"&&b(w())},[]),E.exports.useEffect(()=>{const F=l.get();if(F){D(F);return}if(o==="system"){D("system");return}D(p)},[l,p,o,D]);const P=E.exports.useCallback(()=>{D(L==="dark"?"light":"dark")},[L,D]);E.exports.useEffect(()=>{if(!!i)return R(D)},[i,R,D]);const I=E.exports.useMemo(()=>({colorMode:t??L,toggleColorMode:t?CL:P,setColorMode:t?CL:D}),[L,P,D,t]);return N(s8.Provider,{value:I,children:n},void 0,!1,{fileName:OD,lineNumber:190,columnNumber:26},this)}MD.displayName="ColorModeProvider";var lq=new Set(["dark","light","system"]);function uq(e){let t=e;return lq.has(t)||(t="light"),t}function cq(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:i="chakra-ui-color-mode"}=e,o=uq(t),s=n==="cookie",l=`(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="${o}",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){}})();
`,p=`(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="${o}",e="${i}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})();
`;return`!${s?l:p}`.trim()}function fq(e={}){return N("script",{id:"chakra-script",dangerouslySetInnerHTML:{__html:cq(e)}},void 0,!1,{fileName:OD,lineNumber:244,columnNumber:26},this)}var dE={exports:{}};(function(e,t){var n=200,i="__lodash_hash_undefined__",o=800,s=16,l=9007199254740991,p="[object Arguments]",m="[object Array]",v="[object AsyncFunction]",g="[object Boolean]",b="[object Date]",w="[object Error]",C="[object Function]",T="[object GeneratorFunction]",R="[object Map]",L="[object Number]",D="[object Null]",P="[object Object]",I="[object Proxy]",F="[object RegExp]",z="[object Set]",q="[object String]",Y="[object Undefined]",Q="[object WeakMap]",ie="[object ArrayBuffer]",ae="[object DataView]",me="[object Float32Array]",ze="[object Float64Array]",te="[object Int8Array]",ee="[object Int16Array]",we="[object Int32Array]",ye="[object Uint8Array]",K="[object Uint8ClampedArray]",le="[object Uint16Array]",ge="[object Uint32Array]",pe=/[\\^$.*+?()[\]{}|]/g,Ee=/^\[object .+?Constructor\]$/,Oe=/^(?:0|[1-9]\d*)$/,Pe={};Pe[me]=Pe[ze]=Pe[te]=Pe[ee]=Pe[we]=Pe[ye]=Pe[K]=Pe[le]=Pe[ge]=!0,Pe[p]=Pe[m]=Pe[ie]=Pe[g]=Pe[ae]=Pe[b]=Pe[w]=Pe[C]=Pe[R]=Pe[L]=Pe[P]=Pe[F]=Pe[z]=Pe[q]=Pe[Q]=!1;var Xe=typeof jc=="object"&&jc&&jc.Object===Object&&jc,et=typeof self=="object"&&self&&self.Object===Object&&self,at=Xe||et||Function("return this")(),kt=t&&!t.nodeType&&t,He=kt&&!0&&e&&!e.nodeType&&e,ot=He&&He.exports===kt,wt=ot&&Xe.process,It=function(){try{var W=He&&He.require&&He.require("util").types;return W||wt&&wt.binding&&wt.binding("util")}catch{}}(),We=It&&It.isTypedArray;function Vt(W,ne,be){switch(be.length){case 0:return W.call(ne);case 1:return W.call(ne,be[0]);case 2:return W.call(ne,be[0],be[1]);case 3:return W.call(ne,be[0],be[1],be[2])}return W.apply(ne,be)}function Ce(W,ne){for(var be=-1,ct=Array(W);++be<W;)ct[be]=ne(be);return ct}function nt(W){return function(ne){return W(ne)}}function Ct(W,ne){return W?.[ne]}function rt(W,ne){return function(be){return W(ne(be))}}var sn=Array.prototype,On=Function.prototype,Tt=Object.prototype,ln=at["__core-js_shared__"],Mn=On.toString,yn=Tt.hasOwnProperty,Ze=function(){var W=/[^.]+$/.exec(ln&&ln.keys&&ln.keys.IE_PROTO||"");return W?"Symbol(src)_1."+W:""}(),tt=Tt.toString,rn=Mn.call(Object),Dt=RegExp("^"+Mn.call(yn).replace(pe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ie=ot?at.Buffer:void 0,Zt=at.Symbol,Tn=at.Uint8Array,Ge=Ie?Ie.allocUnsafe:void 0,ut=rt(Object.getPrototypeOf,Object),At=Object.create,gn=Tt.propertyIsEnumerable,en=sn.splice,Rn=Zt?Zt.toStringTag:void 0,Fn=function(){try{var W=Ki(Object,"defineProperty");return W({},"",{}),W}catch{}}(),zr=Ie?Ie.isBuffer:void 0,Pn=Math.max,Ti=Date.now,Vn=Ki(at,"Map"),kn=Ki(Object,"create"),Ri=function(){function W(){}return function(ne){if(!br(ne))return{};if(At)return At(ne);W.prototype=ne;var be=new W;return W.prototype=void 0,be}}();function Er(W){var ne=-1,be=W==null?0:W.length;for(this.clear();++ne<be;){var ct=W[ne];this.set(ct[0],ct[1])}}function Wo(){this.__data__=kn?kn(null):{},this.size=0}function Ss(W){var ne=this.has(W)&&delete this.__data__[W];return this.size-=ne?1:0,ne}function ws(W){var ne=this.__data__;if(kn){var be=ne[W];return be===i?void 0:be}return yn.call(ne,W)?ne[W]:void 0}function Go(W){var ne=this.__data__;return kn?ne[W]!==void 0:yn.call(ne,W)}function Yo(W,ne){var be=this.__data__;return this.size+=this.has(W)?0:1,be[W]=kn&&ne===void 0?i:ne,this}Er.prototype.clear=Wo,Er.prototype.delete=Ss,Er.prototype.get=ws,Er.prototype.has=Go,Er.prototype.set=Yo;function xr(W){var ne=-1,be=W==null?0:W.length;for(this.clear();++ne<be;){var ct=W[ne];this.set(ct[0],ct[1])}}function Yi(){this.__data__=[],this.size=0}function Ja(W){var ne=this.__data__,be=La(ne,W);if(be<0)return!1;var ct=ne.length-1;return be==ct?ne.pop():en.call(ne,be,1),--this.size,!0}function qi(W){var ne=this.__data__,be=La(ne,W);return be<0?void 0:ne[be][1]}function X(W){return La(this.__data__,W)>-1}function Ve(W,ne){var be=this.__data__,ct=La(be,W);return ct<0?(++this.size,be.push([W,ne])):be[ct][1]=ne,this}xr.prototype.clear=Yi,xr.prototype.delete=Ja,xr.prototype.get=qi,xr.prototype.has=X,xr.prototype.set=Ve;function Qe(W){var ne=-1,be=W==null?0:W.length;for(this.clear();++ne<be;){var ct=W[ne];this.set(ct[0],ct[1])}}function _t(){this.size=0,this.__data__={hash:new Er,map:new(Vn||xr),string:new Er}}function un(W){var ne=Li(this,W).delete(W);return this.size-=ne?1:0,ne}function Cn(W){return Li(this,W).get(W)}function st(W){return Li(this,W).has(W)}function Kt(W,ne){var be=Li(this,W),ct=be.size;return be.set(W,ne),this.size+=be.size==ct?0:1,this}Qe.prototype.clear=_t,Qe.prototype.delete=un,Qe.prototype.get=Cn,Qe.prototype.has=st,Qe.prototype.set=Kt;function Hn(W){var ne=this.__data__=new xr(W);this.size=ne.size}function Un(){this.__data__=new xr,this.size=0}function fn(W){var ne=this.__data__,be=ne.delete(W);return this.size=ne.size,be}function Kr(W){return this.__data__.get(W)}function Aa(W){return this.__data__.has(W)}function qo(W,ne){var be=this.__data__;if(be instanceof xr){var ct=be.__data__;if(!Vn||ct.length<n-1)return ct.push([W,ne]),this.size=++be.size,this;be=this.__data__=new Qe(ct)}return be.set(W,ne),this.size=be.size,this}Hn.prototype.clear=Un,Hn.prototype.delete=fn,Hn.prototype.get=Kr,Hn.prototype.has=Aa,Hn.prototype.set=qo;function ki(W,ne){var be=oa(W),ct=!be&&no(W),pn=!be&&!ct&&lr(W),Bn=!be&&!ct&&!pn&&No(W),Xt=be||ct||pn||Bn,S=Xt?Ce(W.length,String):[],O=S.length;for(var V in W)(ne||yn.call(W,V))&&!(Xt&&(V=="length"||pn&&(V=="offset"||V=="parent")||Bn&&(V=="buffer"||V=="byteLength"||V=="byteOffset")||Rs(V,O)))&&S.push(V);return S}function wo(W,ne,be){(be!==void 0&&!_r(W[ne],be)||be===void 0&&!(ne in W))&&cl(W,ne,be)}function Xu(W,ne,be){var ct=W[ne];(!(yn.call(W,ne)&&_r(ct,be))||be===void 0&&!(ne in W))&&cl(W,ne,be)}function La(W,ne){for(var be=W.length;be--;)if(_r(W[be][0],ne))return be;return-1}function cl(W,ne,be){ne=="__proto__"&&Fn?Fn(W,ne,{configurable:!0,enumerable:!0,value:be,writable:!0}):W[ne]=be}var eo=Zi();function tn(W){return W==null?W===void 0?Y:D:Rn&&Rn in Object(W)?Ts(W):pl(W)}function to(W){return di(W)&&tn(W)==p}function Ai(W){if(!br(W)||es(W))return!1;var ne=ns(W)?Dt:Ee;return ne.test(ml(W))}function Zo(W){return di(W)&&ri(W.length)&&!!Pe[tn(W)]}function Cs(W){if(!br(W))return Ma(W);var ne=Xi(W),be=[];for(var ct in W)ct=="constructor"&&(ne||!yn.call(W,ct))||be.push(ct);return be}function Ko(W,ne,be,ct,pn){W!==ne&&eo(ne,function(Bn,Xt){if(pn||(pn=new Hn),br(Bn))Ns(W,ne,Xt,be,Ko,ct,pn);else{var S=ct?ct(Pa(W,Xt),Bn,Xt+"",W,ne,pn):void 0;S===void 0&&(S=Bn),wo(W,Xt,S)}},hl)}function Ns(W,ne,be,ct,pn,Bn,Xt){var S=Pa(W,be),O=Pa(ne,be),V=Xt.get(O);if(V){wo(W,be,V);return}var G=Bn?Bn(S,O,be+"",W,ne,Xt):void 0,se=G===void 0;if(se){var Ue=oa(O),Te=!Ue&&lr(O),Ye=!Ue&&!Te&&No(O);G=O,Ue||Te||Ye?oa(S)?G=S:Pr(S)?G=dl(S):Te?(se=!1,G=Qo(O,!0)):Ye?(se=!1,G=fl(O,!0)):G=[]:Qu(O)||no(O)?(G=S,no(S)?G=Ia(S):(!br(S)||ns(S))&&(G=Jo(O))):se=!1}se&&(Xt.set(O,G),pn(G,O,ct,Bn,Xt),Xt.delete(O)),wo(W,be,G)}function Es(W,ne){return ts(dn(W,ne,eu),W+"")}var Xo=Fn?function(W,ne){return Fn(W,"toString",{configurable:!0,enumerable:!1,value:zn(ne),writable:!0})}:eu;function Qo(W,ne){if(ne)return W.slice();var be=W.length,ct=Ge?Ge(be):new W.constructor(be);return W.copy(ct),ct}function _s(W){var ne=new W.constructor(W.byteLength);return new Tn(ne).set(new Tn(W)),ne}function fl(W,ne){var be=ne?_s(W.buffer):W.buffer;return new W.constructor(be,W.byteOffset,W.length)}function dl(W,ne){var be=-1,ct=W.length;for(ne||(ne=Array(ct));++be<ct;)ne[be]=W[be];return ne}function Oa(W,ne,be,ct){var pn=!be;be||(be={});for(var Bn=-1,Xt=ne.length;++Bn<Xt;){var S=ne[Bn],O=ct?ct(be[S],W[S],S,be,W):void 0;O===void 0&&(O=W[S]),pn?cl(be,S,O):Xu(be,S,O)}return be}function Gr(W){return Es(function(ne,be){var ct=-1,pn=be.length,Bn=pn>1?be[pn-1]:void 0,Xt=pn>2?be[2]:void 0;for(Bn=W.length>3&&typeof Bn=="function"?(pn--,Bn):void 0,Xt&&Jl(be[0],be[1],Xt)&&(Bn=pn<3?void 0:Bn,pn=1),ne=Object(ne);++ct<pn;){var S=be[ct];S&&W(ne,S,ct,Bn)}return ne})}function Zi(W){return function(ne,be,ct){for(var pn=-1,Bn=Object(ne),Xt=ct(ne),S=Xt.length;S--;){var O=Xt[W?S:++pn];if(be(Bn[O],O,Bn)===!1)break}return ne}}function Li(W,ne){var be=W.__data__;return Oi(ne)?be[typeof ne=="string"?"string":"hash"]:be.map}function Ki(W,ne){var be=Ct(W,ne);return Ai(be)?be:void 0}function Ts(W){var ne=yn.call(W,Rn),be=W[Rn];try{W[Rn]=void 0;var ct=!0}catch{}var pn=tt.call(W);return ct&&(ne?W[Rn]=be:delete W[Rn]),pn}function Jo(W){return typeof W.constructor=="function"&&!Xi(W)?Ri(ut(W)):{}}function Rs(W,ne){var be=typeof W;return ne=ne??l,!!ne&&(be=="number"||be!="symbol"&&Oe.test(W))&&W>-1&&W%1==0&&W<ne}function Jl(W,ne,be){if(!br(be))return!1;var ct=typeof ne;return(ct=="number"?Co(be)&&Rs(ne,be.length):ct=="string"&&ne in be)?_r(be[ne],W):!1}function Oi(W){var ne=typeof W;return ne=="string"||ne=="number"||ne=="symbol"||ne=="boolean"?W!=="__proto__":W===null}function es(W){return!!Ze&&Ze in W}function Xi(W){var ne=W&&W.constructor,be=typeof ne=="function"&&ne.prototype||Tt;return W===be}function Ma(W){var ne=[];if(W!=null)for(var be in Object(W))ne.push(be);return ne}function pl(W){return tt.call(W)}function dn(W,ne,be){return ne=Pn(ne===void 0?W.length-1:ne,0),function(){for(var ct=arguments,pn=-1,Bn=Pn(ct.length-ne,0),Xt=Array(Bn);++pn<Bn;)Xt[pn]=ct[ne+pn];pn=-1;for(var S=Array(ne+1);++pn<ne;)S[pn]=ct[pn];return S[ne]=be(Xt),Vt(W,this,S)}}function Pa(W,ne){if(!(ne==="constructor"&&typeof W[ne]=="function")&&ne!="__proto__")return W[ne]}var ts=Wt(Xo);function Wt(W){var ne=0,be=0;return function(){var ct=Ti(),pn=s-(ct-be);if(be=ct,pn>0){if(++ne>=o)return arguments[0]}else ne=0;return W.apply(void 0,arguments)}}function ml(W){if(W!=null){try{return Mn.call(W)}catch{}try{return W+""}catch{}}return""}function _r(W,ne){return W===ne||W!==W&&ne!==ne}var no=to(function(){return arguments}())?to:function(W){return di(W)&&yn.call(W,"callee")&&!gn.call(W,"callee")},oa=Array.isArray;function Co(W){return W!=null&&ri(W.length)&&!ns(W)}function Pr(W){return di(W)&&Co(W)}var lr=zr||Qi;function ns(W){if(!br(W))return!1;var ne=tn(W);return ne==C||ne==T||ne==v||ne==I}function ri(W){return typeof W=="number"&&W>-1&&W%1==0&&W<=l}function br(W){var ne=typeof W;return W!=null&&(ne=="object"||ne=="function")}function di(W){return W!=null&&typeof W=="object"}function Qu(W){if(!di(W)||tn(W)!=P)return!1;var ne=ut(W);if(ne===null)return!0;var be=yn.call(ne,"constructor")&&ne.constructor;return typeof be=="function"&&be instanceof be&&Mn.call(be)==rn}var No=We?nt(We):Zo;function Ia(W){return Oa(W,hl(W))}function hl(W){return Co(W)?ki(W,!0):Cs(W)}var bn=Gr(function(W,ne,be,ct){Ko(W,ne,be,ct)});function zn(W){return function(){return W}}function eu(W){return W}function Qi(){return!1}e.exports=bn})(dE,dE.exports);const Gc=dE.exports;function Du(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function Ev(e,...t){return dq(e)?e(...t):e}var dq=e=>typeof e=="function",pq=e=>/!(important)?$/.test(e),EL=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,pE=(e,t)=>n=>{const i=String(t),o=pq(i),s=EL(i),l=e?`${e}.${s}`:s;let p=Du(n.__cssMap)&&l in n.__cssMap?n.__cssMap[l].varRef:t;return p=EL(p),o?`${p} !important`:p};function lb(e){const{scale:t,transform:n,compose:i}=e;return(s,l)=>{const p=pE(t,s)(l);let m=n?.(p,l)??p;return i&&(m=i(m,l)),m}}var h5=(...e)=>t=>e.reduce((n,i)=>i(n),t);function Ul(e,t){return n=>{const i={property:n,scale:e};return i.transform=lb({scale:e,transform:t}),i}}var mq=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function hq(e){const{property:t,scale:n,transform:i}=e;return{scale:n,property:mq(t),transform:n?lb({scale:n,compose:i}):i}}var PD=["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 vq(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...PD].join(" ")}function gq(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...PD].join(" ")}var bq={"--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(" ")},yq={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 xq(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 Sq={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},ID="& > :not(style) ~ :not(style)",wq={[ID]:{marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"}},Cq={[ID]:{marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"}},mE={"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"},Nq=new Set(Object.values(mE)),DD=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Eq=e=>e.trim();function _q(e,t){var n;if(e==null||DD.has(e))return e;const i=/(?<type>^[a-z-A-Z]+)\((?<values>(.*))\)/g,{type:o,values:s}=((n=i.exec(e))==null?void 0:n.groups)??{};if(!o||!s)return e;const l=o.includes("-gradient")?o:`${o}-gradient`,[p,...m]=s.split(",").map(Eq).filter(Boolean);if(m?.length===0)return e;const v=p in mE?mE[p]:p;m.unshift(v);const g=m.map(b=>{if(Nq.has(b))return b;const w=b.indexOf(" "),[C,T]=w!==-1?[b.substr(0,w),b.substr(w+1)]:[b],R=$D(T)?T:T&&T.split(" "),L=`colors.${C}`,D=L in t.__cssMap?t.__cssMap[L].varRef:C;return R?[D,...Array.isArray(R)?R:[R]].join(" "):D});return`${l}(${g.join(", ")})`}var $D=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),Tq=(e,t)=>_q(e,t??{});function Rq(e){return/^var\(--.+\)$/.test(e)}var kq=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},Cu=e=>t=>`${e}(${t})`,Xn={filter(e){return e!=="auto"?e:bq},backdropFilter(e){return e!=="auto"?e:yq},ring(e){return xq(Xn.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?vq():e==="auto-gpu"?gq():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=kq(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(Rq(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:Tq,blur:Cu("blur"),opacity:Cu("opacity"),brightness:Cu("brightness"),contrast:Cu("contrast"),dropShadow:Cu("drop-shadow"),grayscale:Cu("grayscale"),hueRotate:Cu("hue-rotate"),invert:Cu("invert"),saturate:Cu("saturate"),sepia:Cu("sepia"),bgImage(e){return e==null||$D(e)||DD.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:n}=Sq[e]??{},i={flexDirection:e};return t&&(i[t]=1),n&&(i[n]=1),i}},ue={borderWidths:Ul("borderWidths"),borderStyles:Ul("borderStyles"),colors:Ul("colors"),borders:Ul("borders"),radii:Ul("radii",Xn.px),space:Ul("space",h5(Xn.vh,Xn.px)),spaceT:Ul("space",h5(Xn.vh,Xn.px)),degreeT(e){return{property:e,transform:Xn.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:lb({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:Ul("sizes",h5(Xn.vh,Xn.px)),sizesT:Ul("sizes",h5(Xn.vh,Xn.fraction)),shadows:Ul("shadows"),logical:hq,blur:Ul("blur",Xn.blur)},aS={background:ue.colors("background"),backgroundColor:ue.colors("backgroundColor"),backgroundImage:ue.propT("backgroundImage",Xn.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Xn.bgClip},bgSize:ue.prop("backgroundSize"),bgPosition:ue.prop("backgroundPosition"),bg:ue.colors("background"),bgColor:ue.colors("backgroundColor"),bgPos:ue.prop("backgroundPosition"),bgRepeat:ue.prop("backgroundRepeat"),bgAttachment:ue.prop("backgroundAttachment"),bgGradient:ue.propT("backgroundImage",Xn.gradient),bgClip:{transform:Xn.bgClip}};Object.assign(aS,{bgImage:aS.backgroundImage,bgImg:aS.backgroundImage});var ir={border:ue.borders("border"),borderWidth:ue.borderWidths("borderWidth"),borderStyle:ue.borderStyles("borderStyle"),borderColor:ue.colors("borderColor"),borderRadius:ue.radii("borderRadius"),borderTop:ue.borders("borderTop"),borderBlockStart:ue.borders("borderBlockStart"),borderTopLeftRadius:ue.radii("borderTopLeftRadius"),borderStartStartRadius:ue.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:ue.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:ue.radii("borderTopRightRadius"),borderStartEndRadius:ue.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:ue.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:ue.borders("borderRight"),borderInlineEnd:ue.borders("borderInlineEnd"),borderBottom:ue.borders("borderBottom"),borderBlockEnd:ue.borders("borderBlockEnd"),borderBottomLeftRadius:ue.radii("borderBottomLeftRadius"),borderBottomRightRadius:ue.radii("borderBottomRightRadius"),borderLeft:ue.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:ue.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:ue.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:ue.borders(["borderLeft","borderRight"]),borderInline:ue.borders("borderInline"),borderY:ue.borders(["borderTop","borderBottom"]),borderBlock:ue.borders("borderBlock"),borderTopWidth:ue.borderWidths("borderTopWidth"),borderBlockStartWidth:ue.borderWidths("borderBlockStartWidth"),borderTopColor:ue.colors("borderTopColor"),borderBlockStartColor:ue.colors("borderBlockStartColor"),borderTopStyle:ue.borderStyles("borderTopStyle"),borderBlockStartStyle:ue.borderStyles("borderBlockStartStyle"),borderBottomWidth:ue.borderWidths("borderBottomWidth"),borderBlockEndWidth:ue.borderWidths("borderBlockEndWidth"),borderBottomColor:ue.colors("borderBottomColor"),borderBlockEndColor:ue.colors("borderBlockEndColor"),borderBottomStyle:ue.borderStyles("borderBottomStyle"),borderBlockEndStyle:ue.borderStyles("borderBlockEndStyle"),borderLeftWidth:ue.borderWidths("borderLeftWidth"),borderInlineStartWidth:ue.borderWidths("borderInlineStartWidth"),borderLeftColor:ue.colors("borderLeftColor"),borderInlineStartColor:ue.colors("borderInlineStartColor"),borderLeftStyle:ue.borderStyles("borderLeftStyle"),borderInlineStartStyle:ue.borderStyles("borderInlineStartStyle"),borderRightWidth:ue.borderWidths("borderRightWidth"),borderInlineEndWidth:ue.borderWidths("borderInlineEndWidth"),borderRightColor:ue.colors("borderRightColor"),borderInlineEndColor:ue.colors("borderInlineEndColor"),borderRightStyle:ue.borderStyles("borderRightStyle"),borderInlineEndStyle:ue.borderStyles("borderInlineEndStyle"),borderTopRadius:ue.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:ue.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:ue.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:ue.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(ir,{rounded:ir.borderRadius,roundedTop:ir.borderTopRadius,roundedTopLeft:ir.borderTopLeftRadius,roundedTopRight:ir.borderTopRightRadius,roundedTopStart:ir.borderStartStartRadius,roundedTopEnd:ir.borderStartEndRadius,roundedBottom:ir.borderBottomRadius,roundedBottomLeft:ir.borderBottomLeftRadius,roundedBottomRight:ir.borderBottomRightRadius,roundedBottomStart:ir.borderEndStartRadius,roundedBottomEnd:ir.borderEndEndRadius,roundedLeft:ir.borderLeftRadius,roundedRight:ir.borderRightRadius,roundedStart:ir.borderInlineStartRadius,roundedEnd:ir.borderInlineEndRadius,borderStart:ir.borderInlineStart,borderEnd:ir.borderInlineEnd,borderTopStartRadius:ir.borderStartStartRadius,borderTopEndRadius:ir.borderStartEndRadius,borderBottomStartRadius:ir.borderEndStartRadius,borderBottomEndRadius:ir.borderEndEndRadius,borderStartRadius:ir.borderInlineStartRadius,borderEndRadius:ir.borderInlineEndRadius,borderStartWidth:ir.borderInlineStartWidth,borderEndWidth:ir.borderInlineEndWidth,borderStartColor:ir.borderInlineStartColor,borderEndColor:ir.borderInlineEndColor,borderStartStyle:ir.borderInlineStartStyle,borderEndStyle:ir.borderInlineEndStyle});var Aq={color:ue.colors("color"),textColor:ue.colors("color"),fill:ue.colors("fill"),stroke:ue.colors("stroke")},hE={boxShadow:ue.shadows("boxShadow"),mixBlendMode:!0,blendMode:ue.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:ue.prop("backgroundBlendMode"),opacity:!0};Object.assign(hE,{shadow:hE.boxShadow});var Lq={filter:{transform:Xn.filter},blur:ue.blur("--chakra-blur"),brightness:ue.propT("--chakra-brightness",Xn.brightness),contrast:ue.propT("--chakra-contrast",Xn.contrast),hueRotate:ue.degreeT("--chakra-hue-rotate"),invert:ue.propT("--chakra-invert",Xn.invert),saturate:ue.propT("--chakra-saturate",Xn.saturate),dropShadow:ue.propT("--chakra-drop-shadow",Xn.dropShadow),backdropFilter:{transform:Xn.backdropFilter},backdropBlur:ue.blur("--chakra-backdrop-blur"),backdropBrightness:ue.propT("--chakra-backdrop-brightness",Xn.brightness),backdropContrast:ue.propT("--chakra-backdrop-contrast",Xn.contrast),backdropHueRotate:ue.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:ue.propT("--chakra-backdrop-invert",Xn.invert),backdropSaturate:ue.propT("--chakra-backdrop-saturate",Xn.saturate)},OS={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Xn.flexDirection},experimental_spaceX:{static:wq,transform:lb({scale:"space",transform:e=>e!==null?{"--chakra-space-x":e}:null})},experimental_spaceY:{static:Cq,transform:lb({scale:"space",transform:e=>e!=null?{"--chakra-space-y":e}:null})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:ue.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:ue.space("gap"),rowGap:ue.space("rowGap"),columnGap:ue.space("columnGap")};Object.assign(OS,{flexDir:OS.flexDirection});var FD={gridGap:ue.space("gridGap"),gridColumnGap:ue.space("gridColumnGap"),gridRowGap:ue.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},Oq={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Xn.outline},outlineOffset:!0,outlineColor:ue.colors("outlineColor")},el={width:ue.sizesT("width"),inlineSize:ue.sizesT("inlineSize"),height:ue.sizes("height"),blockSize:ue.sizes("blockSize"),boxSize:ue.sizes(["width","height"]),minWidth:ue.sizes("minWidth"),minInlineSize:ue.sizes("minInlineSize"),minHeight:ue.sizes("minHeight"),minBlockSize:ue.sizes("minBlockSize"),maxWidth:ue.sizes("maxWidth"),maxInlineSize:ue.sizes("maxInlineSize"),maxHeight:ue.sizes("maxHeight"),maxBlockSize:ue.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:ue.propT("float",Xn.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(el,{w:el.width,h:el.height,minW:el.minWidth,maxW:el.maxWidth,minH:el.minHeight,maxH:el.maxHeight,overscroll:el.overscrollBehavior,overscrollX:el.overscrollBehaviorX,overscrollY:el.overscrollBehaviorY});var Mq={listStyleType:!0,listStylePosition:!0,listStylePos:ue.prop("listStylePosition"),listStyleImage:!0,listStyleImg:ue.prop("listStyleImage")};function Pq(e,t,n,i){const o=typeof t=="string"?t.split("."):[t];for(i=0;i<o.length&&e;i+=1)e=e[o[i]];return e===void 0?n:e}var Iq=e=>{const t=new WeakMap;return(i,o,s,l)=>{if(typeof i>"u")return e(i,o,s);t.has(i)||t.set(i,new Map);const p=t.get(i);if(p.has(o))return p.get(o);const m=e(i,o,s,l);return p.set(o,m),m}},Dq=Iq(Pq),$q={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},Fq={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},W6=(e,t,n)=>{const i={},o=Dq(e,t,{});for(const s in o)s in n&&n[s]!=null||(i[s]=o[s]);return i},zq={srOnly:{transform(e){return e===!0?$q:e==="focusable"?Fq:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>W6(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>W6(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>W6(t,e,n)}},Wg={position:!0,pos:ue.prop("position"),zIndex:ue.prop("zIndex","zIndices"),inset:ue.spaceT("inset"),insetX:ue.spaceT(["left","right"]),insetInline:ue.spaceT("insetInline"),insetY:ue.spaceT(["top","bottom"]),insetBlock:ue.spaceT("insetBlock"),top:ue.spaceT("top"),insetBlockStart:ue.spaceT("insetBlockStart"),bottom:ue.spaceT("bottom"),insetBlockEnd:ue.spaceT("insetBlockEnd"),left:ue.spaceT("left"),insetInlineStart:ue.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:ue.spaceT("right"),insetInlineEnd:ue.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Wg,{insetStart:Wg.insetInlineStart,insetEnd:Wg.insetInlineEnd});var Bq={ring:{transform:Xn.ring},ringColor:ue.colors("--chakra-ring-color"),ringOffset:ue.prop("--chakra-ring-offset-width"),ringOffsetColor:ue.colors("--chakra-ring-offset-color"),ringInset:ue.prop("--chakra-ring-inset")},$r={margin:ue.spaceT("margin"),marginTop:ue.spaceT("marginTop"),marginBlockStart:ue.spaceT("marginBlockStart"),marginRight:ue.spaceT("marginRight"),marginInlineEnd:ue.spaceT("marginInlineEnd"),marginBottom:ue.spaceT("marginBottom"),marginBlockEnd:ue.spaceT("marginBlockEnd"),marginLeft:ue.spaceT("marginLeft"),marginInlineStart:ue.spaceT("marginInlineStart"),marginX:ue.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:ue.spaceT("marginInline"),marginY:ue.spaceT(["marginTop","marginBottom"]),marginBlock:ue.spaceT("marginBlock"),padding:ue.space("padding"),paddingTop:ue.space("paddingTop"),paddingBlockStart:ue.space("paddingBlockStart"),paddingRight:ue.space("paddingRight"),paddingBottom:ue.space("paddingBottom"),paddingBlockEnd:ue.space("paddingBlockEnd"),paddingLeft:ue.space("paddingLeft"),paddingInlineStart:ue.space("paddingInlineStart"),paddingInlineEnd:ue.space("paddingInlineEnd"),paddingX:ue.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:ue.space("paddingInline"),paddingY:ue.space(["paddingTop","paddingBottom"]),paddingBlock:ue.space("paddingBlock")};Object.assign($r,{m:$r.margin,mt:$r.marginTop,mr:$r.marginRight,me:$r.marginInlineEnd,marginEnd:$r.marginInlineEnd,mb:$r.marginBottom,ml:$r.marginLeft,ms:$r.marginInlineStart,marginStart:$r.marginInlineStart,mx:$r.marginX,my:$r.marginY,p:$r.padding,pt:$r.paddingTop,py:$r.paddingY,px:$r.paddingX,pb:$r.paddingBottom,pl:$r.paddingLeft,ps:$r.paddingInlineStart,paddingStart:$r.paddingInlineStart,pr:$r.paddingRight,pe:$r.paddingInlineEnd,paddingEnd:$r.paddingInlineEnd});var Uq={textDecorationColor:ue.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:ue.shadows("textShadow")},jq={clipPath:!0,transform:ue.propT("transform",Xn.transform),transformOrigin:!0,translateX:ue.spaceT("--chakra-translate-x"),translateY:ue.spaceT("--chakra-translate-y"),skewX:ue.degreeT("--chakra-skew-x"),skewY:ue.degreeT("--chakra-skew-y"),scaleX:ue.prop("--chakra-scale-x"),scaleY:ue.prop("--chakra-scale-y"),scale:ue.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:ue.degreeT("--chakra-rotate")},Vq={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:ue.prop("transitionDuration","transition.duration"),transitionProperty:ue.prop("transitionProperty","transition.property"),transitionTimingFunction:ue.prop("transitionTimingFunction","transition.easing")},Hq={fontFamily:ue.prop("fontFamily","fonts"),fontSize:ue.prop("fontSize","fontSizes",Xn.px),fontWeight:ue.prop("fontWeight","fontWeights"),lineHeight:ue.prop("lineHeight","lineHeights"),letterSpacing:ue.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"}},Wq={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:ue.spaceT("scrollMargin"),scrollMarginTop:ue.spaceT("scrollMarginTop"),scrollMarginBottom:ue.spaceT("scrollMarginBottom"),scrollMarginLeft:ue.spaceT("scrollMarginLeft"),scrollMarginRight:ue.spaceT("scrollMarginRight"),scrollMarginX:ue.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:ue.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:ue.spaceT("scrollPadding"),scrollPaddingTop:ue.spaceT("scrollPaddingTop"),scrollPaddingBottom:ue.spaceT("scrollPaddingBottom"),scrollPaddingLeft:ue.spaceT("scrollPaddingLeft"),scrollPaddingRight:ue.spaceT("scrollPaddingRight"),scrollPaddingX:ue.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:ue.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function zD(e){return Du(e)&&e.reference?e.reference:String(e)}var N3=(e,...t)=>t.map(zD).join(` ${e} `).replace(/calc/g,""),_L=(...e)=>`calc(${N3("+",...e)})`,TL=(...e)=>`calc(${N3("-",...e)})`,vE=(...e)=>`calc(${N3("*",...e)})`,RL=(...e)=>`calc(${N3("/",...e)})`,kL=e=>{const t=zD(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:vE(t,-1)},fm=Object.assign(e=>({add:(...t)=>fm(_L(e,...t)),subtract:(...t)=>fm(TL(e,...t)),multiply:(...t)=>fm(vE(e,...t)),divide:(...t)=>fm(RL(e,...t)),negate:()=>fm(kL(e)),toString:()=>e.toString()}),{add:_L,subtract:TL,multiply:vE,divide:RL,negate:kL});function Gq(e,t="-"){return e.replace(/\s+/g,t)}function Yq(e){const t=Gq(e.toString());return Zq(qq(t))}function qq(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function Zq(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function Kq(e,t=""){return[t,e].filter(Boolean).join("-")}function Xq(e,t){return`var(${e}${t?`, ${t}`:""})`}function Qq(e,t=""){return Yq(`--${Kq(e,t)}`)}function Jq(e,t,n){const i=Qq(e,n);return{variable:i,reference:Xq(i,t)}}function eZ(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}Object.freeze(["base","sm","md","lg","xl","2xl"]);function tZ(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function nZ(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function gE(e){if(e==null)return e;const{unitless:t}=nZ(e);return t||typeof e=="number"?`${e}px`:e}var BD=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,u8=e=>Object.fromEntries(Object.entries(e).sort(BD));function AL(e){const t=u8(e);return Object.assign(Object.values(t),t)}function rZ(e){const t=Object.keys(u8(e));return new Set(t)}function LL(e){if(!e)return e;e=gE(e)??e;const t=e.endsWith("px")?-1:-.0625;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+t}`)}function zg(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${gE(e)})`),t&&n.push("and",`(max-width: ${gE(t)})`),n.join(" ")}function iZ(e){if(!e)return null;e.base=e.base??"0px";const t=AL(e),n=Object.entries(e).sort(BD).map(([s,l],p,m)=>{let[,v]=m[p+1]??[];return v=parseFloat(v)>0?LL(v):void 0,{_minW:LL(l),breakpoint:s,minW:l,maxW:v,maxWQuery:zg(null,v),minWQuery:zg(l),minMaxQuery:zg(l,v)}}),i=rZ(e),o=Array.from(i.values());return{keys:i,normalized:t,isResponsive(s){const l=Object.keys(s);return l.length>0&&l.every(p=>i.has(p))},asObject:u8(e),asArray:AL(e),details:n,media:[null,...t.map(s=>zg(s)).slice(1)],toArrayValue(s){if(!eZ(s))throw new Error("toArrayValue: value must be an object");const l=o.map(p=>s[p]??null);for(;tZ(l)===null;)l.pop();return l},toObjectValue(s){if(!Array.isArray(s))throw new Error("toObjectValue: value must be an array");return s.reduce((l,p,m)=>{const v=o[m];return v!=null&&p!=null&&(l[v]=p),l},{})}}}var Ca={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}`},rd=e=>UD(t=>e(t,"&"),"[role=group]","[data-group]",".group"),Ic=e=>UD(t=>e(t,"~ &"),"[data-peer]",".peer"),UD=(e,...t)=>t.map(e).join(", "),E3={_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:rd(Ca.hover),_peerHover:Ic(Ca.hover),_groupFocus:rd(Ca.focus),_peerFocus:Ic(Ca.focus),_groupFocusVisible:rd(Ca.focusVisible),_peerFocusVisible:Ic(Ca.focusVisible),_groupActive:rd(Ca.active),_peerActive:Ic(Ca.active),_groupDisabled:rd(Ca.disabled),_peerDisabled:Ic(Ca.disabled),_groupInvalid:rd(Ca.invalid),_peerInvalid:Ic(Ca.invalid),_groupChecked:rd(Ca.checked),_peerChecked:Ic(Ca.checked),_groupFocusWithin:rd(Ca.focusWithin),_peerFocusWithin:Ic(Ca.focusWithin),_peerPlaceholderShown:Ic(Ca.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]"},aZ=Object.keys(E3);function OL(e,t){return Jq(String(e).replace(/\./g,"-"),void 0,t)}function oZ(e,t){let n={};const i={};for(const[o,s]of Object.entries(e)){const{isSemantic:l,value:p}=s,{variable:m,reference:v}=OL(o,t?.cssVarPrefix);if(!l){if(o.startsWith("space")){const w=o.split("."),[C,...T]=w,R=`${C}.-${T.join(".")}`,L=fm.negate(p),D=fm.negate(v);i[R]={value:L,var:m,varRef:D}}n[m]=p,i[o]={value:p,var:m,varRef:v};continue}const g=w=>{const T=[String(o).split(".")[0],w].join(".");if(!e[T])return w;const{reference:L}=OL(T,t?.cssVarPrefix);return L},b=Du(p)?p:{default:p};n=Gc(n,Object.entries(b).reduce((w,[C,T])=>{var R;const L=g(T);if(C==="default")return w[m]=L,w;const D=((R=E3)==null?void 0:R[C])??C;return w[D]={[m]:L},w},{})),i[o]={value:v,var:m,varRef:v}}return{cssVars:n,cssMap:i}}function sZ(e,t=[]){const n=Object.assign({},e);for(const i of t)i in n&&delete n[i];return n}function lZ(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}var uZ=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur"];function cZ(e){return lZ(e,uZ)}function fZ(e){return e.semanticTokens}function dZ(e){const{__cssMap:t,__cssVars:n,__breakpoints:i,...o}=e;return o}function pZ({tokens:e,semanticTokens:t}){const n=Object.entries(bE(e)??{}).map(([o,s])=>[o,{isSemantic:!1,value:s}]),i=Object.entries(bE(t,1)??{}).map(([o,s])=>[o,{isSemantic:!0,value:s}]);return Object.fromEntries([...n,...i])}function bE(e,t=1/0){return!Du(e)&&!Array.isArray(e)||!t?e:Object.entries(e).reduce((n,[i,o])=>(Du(o)||Array.isArray(o)?Object.entries(bE(o,t-1)).forEach(([s,l])=>{n[`${i}.${s}`]=l}):n[i]=o,n),{})}function mZ(e){var t;const n=dZ(e),i=cZ(n),o=fZ(n),s=pZ({tokens:i,semanticTokens:o}),l=(t=n.config)==null?void 0:t.cssVarPrefix,{cssMap:p,cssVars:m}=oZ(s,{cssVarPrefix:l});return Object.assign(n,{__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:p,__breakpoints:iZ(n.breakpoints)}),n}var c8=Gc({},aS,ir,Aq,OS,el,Lq,Bq,Oq,FD,zq,Wg,hE,$r,Wq,Hq,Uq,jq,Mq,Vq),hZ=Object.assign({},$r,el,OS,FD,Wg),vZ=Object.keys(hZ),gZ=[...Object.keys(c8),...aZ],bZ={...c8,...E3},yZ=e=>e in bZ;function xZ(e){return/^var\(--.+\)$/.test(e)}var SZ=(e,t)=>e.startsWith("--")&&typeof t=="string"&&!xZ(t),wZ=(e,t)=>{if(t==null)return t;const n=p=>{var m,v;return(v=(m=e.__cssMap)==null?void 0:m[p])==null?void 0:v.varRef},i=p=>n(p)??p,o=t.split(",").map(p=>p.trim()),[s,l]=o;return t=n(s)??i(l)??i(t),t};function CZ(e){const{configs:t={},pseudos:n={},theme:i}=e;if(!i.__breakpoints)return()=>({});const{isResponsive:o,toArrayValue:s,media:l}=i.__breakpoints,p=(m,v=!1)=>{var g;const b=Ev(m,i);let w={};for(let C in b){let T=Ev(b[C],i);if(T==null)continue;if(Array.isArray(T)||Du(T)&&o(T)){let P=Array.isArray(T)?T:s(T);P=P.slice(0,l.length);for(let I=0;I<P.length;I++){const F=l[I],z=P[I];F?z==null?w[F]??(w[F]={}):w[F]=Object.assign({},w[F],p({[C]:z},!0)):w=Object.assign({},w,p({...b,[C]:z},!1))}continue}if(C in n&&(C=n[C]),SZ(C,T)&&(T=wZ(i,T)),Du(T)){w[C]=Object.assign({},w[C],p(T,!0));continue}let R=t[C];if(R===!0&&(R={property:C}),!v&&R?.static){const P=Ev(R.static,i);w=Object.assign({},w,P)}let L=((g=R?.transform)==null?void 0:g.call(R,T,i,b))??T;if(L=R?.processResult?p(L,!0):L,Du(L)){w=Object.assign({},w,L);continue}const D=Ev(R?.property,i);if(D){if(Array.isArray(D)){for(const P of D)w[P]=L;continue}D==="&"&&Du(L)?w=Object.assign({},w,L):w[D]=L;continue}w[C]=L}return w};return p}var jD=e=>t=>CZ({theme:t,pseudos:E3,configs:c8})(e);function NZ(e,t){if(Array.isArray(e))return e;if(Du(e))return t(e);if(e!=null)return[e]}function EZ(e,t){for(let n=t+1;n<e.length;n++)if(e[n]!=null)return n;return-1}function _Z(e){const t=e.__breakpoints;return function(i,o,s,l){var p,m;if(!t)return;const v={},g=NZ(s,t.toArrayValue);if(!g)return v;const b=g.length,w=b===1,C=!!i.parts;for(let T=0;T<b;T++){const R=t.details[T],L=t.details[EZ(g,T)],D=zg(R.minW,L?._minW),P=Ev((p=i[o])==null?void 0:p[g[T]],l);if(!!P){if(C){(m=i.parts)==null||m.forEach(I=>{Gc(v,{[I]:w?P[I]:{[D]:P[I]}})});continue}if(!C){w?Gc(v,P):v[D]=P;continue}v[D]=P}}return v}}function TZ(e){return t=>{const{variant:n,size:i,theme:o}=t,s=_Z(o);return Gc({},Ev(e.baseStyle??{},t),s(e,"sizes",i,t),s(e,"variants",n,t))}}function RZ(e,t,n){var i,o;return((o=(i=e.__cssMap)==null?void 0:i[`${t}.${n}`])==null?void 0:o.varRef)??n}function gr(e){return sZ(e,["styleConfig","size","variant","colorScheme"])}function kZ(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 AZ(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 LZ=function(){function e(n){var i=this;this._insertTag=function(o){var s;i.tags.length===0?i.insertionPoint?s=i.insertionPoint.nextSibling:i.prepend?s=i.container.firstChild:s=i.before:s=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(o,s),i.tags.push(o)},this.isSpeedy=n.speedy===void 0?!1:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.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(AZ(this));var o=this.tags[this.tags.length-1];{var s=i.charCodeAt(0)===64&&i.charCodeAt(1)===105;s&&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||!s}if(this.isSpeedy){var l=kZ(o);try{l.insertRule(i,l.cssRules.length)}catch(p){/:(-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+'"',p)}}else o.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}(),Za="-ms-",MS="-moz-",or="-webkit-",f8="comm",d8="rule",p8="decl",OZ="@import",VD="@keyframes",MZ=Math.abs,_3=String.fromCharCode,PZ=Object.assign;function IZ(e,t){return(((t<<2^Fo(e,0))<<2^Fo(e,1))<<2^Fo(e,2))<<2^Fo(e,3)}function HD(e){return e.trim()}function DZ(e,t){return(e=t.exec(e))?e[0]:e}function fr(e,t,n){return e.replace(t,n)}function yE(e,t){return e.indexOf(t)}function Fo(e,t){return e.charCodeAt(t)|0}function ub(e,t,n){return e.slice(t,n)}function Ou(e){return e.length}function m8(e){return e.length}function v5(e,t){return t.push(e),e}function $Z(e,t){return e.map(t).join("")}var T3=1,jv=1,WD=0,Vo=0,Ni=0,e0="";function R3(e,t,n,i,o,s,l){return{value:e,root:t,parent:n,type:i,props:o,children:s,line:T3,column:jv,length:l,return:""}}function Eg(e,t){return PZ(R3("",null,null,"",null,null,0),e,{length:-e.length},t)}function FZ(){return Ni}function zZ(){return Ni=Vo>0?Fo(e0,--Vo):0,jv--,Ni===10&&(jv=1,T3--),Ni}function gs(){return Ni=Vo<WD?Fo(e0,Vo++):0,jv++,Ni===10&&(jv=1,T3++),Ni}function Fu(){return Fo(e0,Vo)}function oS(){return Vo}function Ib(e,t){return ub(e0,e,t)}function cb(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 GD(e){return T3=jv=1,WD=Ou(e0=e),Vo=0,[]}function YD(e){return e0="",e}function sS(e){return HD(Ib(Vo-1,xE(e===91?e+2:e===40?e+1:e)))}function BZ(e){for(;(Ni=Fu())&&Ni<33;)gs();return cb(e)>2||cb(Ni)>3?"":" "}function UZ(e,t){for(;--t&&gs()&&!(Ni<48||Ni>102||Ni>57&&Ni<65||Ni>70&&Ni<97););return Ib(e,oS()+(t<6&&Fu()==32&&gs()==32))}function xE(e){for(;gs();)switch(Ni){case e:return Vo;case 34:case 39:e!==34&&e!==39&&xE(Ni);break;case 40:e===41&&xE(e);break;case 92:gs();break}return Vo}function jZ(e,t){for(;gs()&&e+Ni!==47+10;)if(e+Ni===42+42&&Fu()===47)break;return"/*"+Ib(t,Vo-1)+"*"+_3(e===47?e:gs())}function VZ(e){for(;!cb(Fu());)gs();return Ib(e,Vo)}function HZ(e){return YD(lS("",null,null,null,[""],e=GD(e),0,[0],e))}function lS(e,t,n,i,o,s,l,p,m){for(var v=0,g=0,b=l,w=0,C=0,T=0,R=1,L=1,D=1,P=0,I="",F=o,z=s,q=i,Y=I;L;)switch(T=P,P=gs()){case 40:if(T!=108&&Y.charCodeAt(b-1)==58){yE(Y+=fr(sS(P),"&","&\f"),"&\f")!=-1&&(D=-1);break}case 34:case 39:case 91:Y+=sS(P);break;case 9:case 10:case 13:case 32:Y+=BZ(T);break;case 92:Y+=UZ(oS()-1,7);continue;case 47:switch(Fu()){case 42:case 47:v5(WZ(jZ(gs(),oS()),t,n),m);break;default:Y+="/"}break;case 123*R:p[v++]=Ou(Y)*D;case 125*R:case 59:case 0:switch(P){case 0:case 125:L=0;case 59+g:C>0&&Ou(Y)-b&&v5(C>32?PL(Y+";",i,n,b-1):PL(fr(Y," ","")+";",i,n,b-2),m);break;case 59:Y+=";";default:if(v5(q=ML(Y,t,n,v,g,o,p,I,F=[],z=[],b),s),P===123)if(g===0)lS(Y,t,q,q,F,s,b,p,z);else switch(w){case 100:case 109:case 115:lS(e,q,q,i&&v5(ML(e,q,q,0,0,o,p,I,o,F=[],b),z),o,z,b,p,i?F:z);break;default:lS(Y,q,q,q,[""],z,0,p,z)}}v=g=C=0,R=D=1,I=Y="",b=l;break;case 58:b=1+Ou(Y),C=T;default:if(R<1){if(P==123)--R;else if(P==125&&R++==0&&zZ()==125)continue}switch(Y+=_3(P),P*R){case 38:D=g>0?1:(Y+="\f",-1);break;case 44:p[v++]=(Ou(Y)-1)*D,D=1;break;case 64:Fu()===45&&(Y+=sS(gs())),w=Fu(),g=b=Ou(I=Y+=VZ(oS())),P++;break;case 45:T===45&&Ou(Y)==2&&(R=0)}}return s}function ML(e,t,n,i,o,s,l,p,m,v,g){for(var b=o-1,w=o===0?s:[""],C=m8(w),T=0,R=0,L=0;T<i;++T)for(var D=0,P=ub(e,b+1,b=MZ(R=l[T])),I=e;D<C;++D)(I=HD(R>0?w[D]+" "+P:fr(P,/&\f/g,w[D])))&&(m[L++]=I);return R3(e,t,n,o===0?d8:p,m,v,g)}function WZ(e,t,n){return R3(e,t,n,f8,_3(FZ()),ub(e,2,-2),0)}function PL(e,t,n,i){return R3(e,t,n,p8,ub(e,0,i),ub(e,i+1,-1),i)}function qD(e,t){switch(IZ(e,t)){case 5103:return or+"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 or+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return or+e+MS+e+Za+e+e;case 6828:case 4268:return or+e+Za+e+e;case 6165:return or+e+Za+"flex-"+e+e;case 5187:return or+e+fr(e,/(\w+).+(:[^]+)/,or+"box-$1$2"+Za+"flex-$1$2")+e;case 5443:return or+e+Za+"flex-item-"+fr(e,/flex-|-self/,"")+e;case 4675:return or+e+Za+"flex-line-pack"+fr(e,/align-content|flex-|-self/,"")+e;case 5548:return or+e+Za+fr(e,"shrink","negative")+e;case 5292:return or+e+Za+fr(e,"basis","preferred-size")+e;case 6060:return or+"box-"+fr(e,"-grow","")+or+e+Za+fr(e,"grow","positive")+e;case 4554:return or+fr(e,/([^-])(transform)/g,"$1"+or+"$2")+e;case 6187:return fr(fr(fr(e,/(zoom-|grab)/,or+"$1"),/(image-set)/,or+"$1"),e,"")+e;case 5495:case 3959:return fr(e,/(image-set\([^]*)/,or+"$1$`$1");case 4968:return fr(fr(e,/(.+:)(flex-)?(.*)/,or+"box-pack:$3"+Za+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+or+e+e;case 4095:case 3583:case 4068:case 2532:return fr(e,/(.+)-inline(.+)/,or+"$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(Ou(e)-1-t>6)switch(Fo(e,t+1)){case 109:if(Fo(e,t+4)!==45)break;case 102:return fr(e,/(.+:)(.+)-([^]+)/,"$1"+or+"$2-$3$1"+MS+(Fo(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~yE(e,"stretch")?qD(fr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Fo(e,t+1)!==115)break;case 6444:switch(Fo(e,Ou(e)-3-(~yE(e,"!important")&&10))){case 107:return fr(e,":",":"+or)+e;case 101:return fr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+or+(Fo(e,14)===45?"inline-":"")+"box$3$1"+or+"$2$3$1"+Za+"$2box$3")+e}break;case 5936:switch(Fo(e,t+11)){case 114:return or+e+Za+fr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return or+e+Za+fr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return or+e+Za+fr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return or+e+Za+e+e}return e}function Ov(e,t){for(var n="",i=m8(e),o=0;o<i;o++)n+=t(e[o],o,e,t)||"";return n}function GZ(e,t,n,i){switch(e.type){case OZ:case p8:return e.return=e.return||e.value;case f8:return"";case VD:return e.return=e.value+"{"+Ov(e.children,i)+"}";case d8:e.value=e.props.join(",")}return Ou(n=Ov(e.children,i))?e.return=e.value+"{"+n+"}":""}function YZ(e){var t=m8(e);return function(n,i,o,s){for(var l="",p=0;p<t;p++)l+=e[p](n,i,o,s)||"";return l}}function qZ(e,t,n,i){if(e.length>-1&&!e.return)switch(e.type){case p8:e.return=qD(e.value,e.length);break;case VD:return Ov([Eg(e,{value:fr(e.value,"@","@"+or)})],i);case d8:if(e.length)return $Z(e.props,function(o){switch(DZ(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ov([Eg(e,{props:[fr(o,/:(read-\w+)/,":"+MS+"$1")]})],i);case"::placeholder":return Ov([Eg(e,{props:[fr(o,/:(plac\w+)/,":"+or+"input-$1")]}),Eg(e,{props:[fr(o,/:(plac\w+)/,":"+MS+"$1")]}),Eg(e,{props:[fr(o,/:(plac\w+)/,Za+"input-$1")]})],i)}return""})}}var IL=function(t){var n=new WeakMap;return function(i){if(n.has(i))return n.get(i);var o=t(i);return n.set(i,o),o}};function ZD(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var ZZ=function(t,n,i){for(var o=0,s=0;o=s,s=Fu(),o===38&&s===12&&(n[i]=1),!cb(s);)gs();return Ib(t,Vo)},KZ=function(t,n){var i=-1,o=44;do switch(cb(o)){case 0:o===38&&Fu()===12&&(n[i]=1),t[i]+=ZZ(Vo-1,n,i);break;case 2:t[i]+=sS(o);break;case 4:if(o===44){t[++i]=Fu()===58?"&\f":"",n[i]=t[i].length;break}default:t[i]+=_3(o)}while(o=gs());return t},XZ=function(t,n){return YD(KZ(GD(t),n))},DL=new WeakMap,QZ=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,i=t.parent,o=t.column===i.column&&t.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!DL.get(i))&&!o){DL.set(t,!0);for(var s=[],l=XZ(n,s),p=i.props,m=0,v=0;m<l.length;m++)for(var g=0;g<p.length;g++,v++)t.props[v]=s[m]?l[m].replace(/&\f/g,p[g]):p[g]+" "+l[m]}}},JZ=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},eK="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",tK=function(t){return t.type==="comm"&&t.children.indexOf(eK)>-1},nK=function(t){return function(n,i,o){if(!(n.type!=="rule"||t.compat)){var s=n.value.match(/(:first|:nth|:nth-last)-child/g);if(s){for(var l=n.parent===o[0],p=l?o[0].children:o,m=p.length-1;m>=0;m--){var v=p[m];if(v.line<n.line)break;if(v.column<n.column){if(tK(v))return;break}}s.forEach(function(g){console.error('The pseudo class "'+g+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+g.split("-child")[0]+'-of-type".')})}}}},KD=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},rK=function(t,n){for(var i=t-1;i>=0;i--)if(!KD(n[i]))return!0;return!1},$L=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},iK=function(t,n,i){!KD(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."),$L(t)):rK(n,i)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),$L(t)))},aK=[qZ],oK=function(t){var n=t.key;if(!n)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(n==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(R){var L=R.getAttribute("data-emotion");L.indexOf(" ")!==-1&&(document.head.appendChild(R),R.setAttribute("data-s",""))})}var o=t.stylisPlugins||aK;if(/[^a-z-]/.test(n))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+n+'" was passed');var s={},l,p=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(R){for(var L=R.getAttribute("data-emotion").split(" "),D=1;D<L.length;D++)s[L[D]]=!0;p.push(R)});var m,v=[QZ,JZ];v.push(nK({get compat(){return T.compat}}),iK);{var g,b=[GZ,function(R){R.root||(R.return?g.insert(R.return):R.value&&R.type!==f8&&g.insert(R.value+"{}"))}],w=YZ(v.concat(o,b)),C=function(L){return Ov(HZ(L),w)};m=function(L,D,P,I){g=P,D.map!==void 0&&(g={insert:function(z){P.insert(z+D.map)}}),C(L?L+"{"+D.styles+"}":D.styles),I&&(T.inserted[D.name]=!0)}}var T={key:n,sheet:new LZ({key:n,container:l,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:m};return T.sheet.hydrate(p),T};function hr(){return hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},hr.apply(this,arguments)}var k3={exports:{}},pr={};/** @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,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,p=e?Symbol.for("react.context"):60110,m=e?Symbol.for("react.async_mode"):60111,v=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,w=e?Symbol.for("react.suspense_list"):60120,C=e?Symbol.for("react.memo"):60115,T=e?Symbol.for("react.lazy"):60116,R=e?Symbol.for("react.block"):60121,L=e?Symbol.for("react.fundamental"):60117,D=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function I(We){return typeof We=="string"||typeof We=="function"||We===i||We===v||We===s||We===o||We===b||We===w||typeof We=="object"&&We!==null&&(We.$$typeof===T||We.$$typeof===C||We.$$typeof===l||We.$$typeof===p||We.$$typeof===g||We.$$typeof===L||We.$$typeof===D||We.$$typeof===P||We.$$typeof===R)}function F(We){if(typeof We=="object"&&We!==null){var Vt=We.$$typeof;switch(Vt){case t:var Ce=We.type;switch(Ce){case m:case v:case i:case s:case o:case b:return Ce;default:var nt=Ce&&Ce.$$typeof;switch(nt){case p:case g:case T:case C:case l:return nt;default:return Vt}}case n:return Vt}}}var z=m,q=v,Y=p,Q=l,ie=t,ae=g,me=i,ze=T,te=C,ee=n,we=s,ye=o,K=b,le=!1;function ge(We){return le||(le=!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)||F(We)===m}function pe(We){return F(We)===v}function Ee(We){return F(We)===p}function Oe(We){return F(We)===l}function Pe(We){return typeof We=="object"&&We!==null&&We.$$typeof===t}function Xe(We){return F(We)===g}function et(We){return F(We)===i}function at(We){return F(We)===T}function kt(We){return F(We)===C}function He(We){return F(We)===n}function ot(We){return F(We)===s}function wt(We){return F(We)===o}function It(We){return F(We)===b}pr.AsyncMode=z,pr.ConcurrentMode=q,pr.ContextConsumer=Y,pr.ContextProvider=Q,pr.Element=ie,pr.ForwardRef=ae,pr.Fragment=me,pr.Lazy=ze,pr.Memo=te,pr.Portal=ee,pr.Profiler=we,pr.StrictMode=ye,pr.Suspense=K,pr.isAsyncMode=ge,pr.isConcurrentMode=pe,pr.isContextConsumer=Ee,pr.isContextProvider=Oe,pr.isElement=Pe,pr.isForwardRef=Xe,pr.isFragment=et,pr.isLazy=at,pr.isMemo=kt,pr.isPortal=He,pr.isProfiler=ot,pr.isStrictMode=wt,pr.isSuspense=It,pr.isValidElementType=I,pr.typeOf=F})();(function(e){e.exports=pr})(k3);var XD=k3.exports,sK={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},lK={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},QD={};QD[XD.ForwardRef]=sK;QD[XD.Memo]=lK;var uK=!0;function h8(e,t,n){var i="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):i+=o+" "}),i}var A3=function(t,n,i){var o=t.key+"-"+n.name;(i===!1||uK===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},L3=function(t,n,i){A3(t,n,i);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function cK(e){for(var t=0,n,i=0,o=e.length;o>=4;++i,o-=4)n=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){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 fK={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},FL=`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`,dK="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",pK=/[A-Z]|^ms/g,JD=/_EMO_([^_]+?)_([^]*?)_EMO_/g,v8=function(t){return t.charCodeAt(1)===45},zL=function(t){return t!=null&&typeof t!="boolean"},G6=ZD(function(e){return v8(e)?e:e.replace(pK,"-$&").toLowerCase()}),PS=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(JD,function(i,o,s){return Mu={name:o,styles:s,next:Mu},o})}return fK[t]!==1&&!v8(t)&&typeof n=="number"&&n!==0?n+"px":n};{var mK=/(var|attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,hK=["normal","none","initial","inherit","unset"],vK=PS,gK=/^-ms-/,bK=/-(.)/g,BL={};PS=function(t,n){if(t==="content"&&(typeof n!="string"||hK.indexOf(n)===-1&&!mK.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+n+"\"'`");var i=vK(t,n);return i!==""&&!v8(t)&&t.indexOf("-")!==-1&&BL[t]===void 0&&(BL[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(gK,"ms-").replace(bK,function(o,s){return s.toUpperCase()})+"?")),i}}var e$="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function fb(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0){if(n.toString()==="NO_COMPONENT_SELECTOR")throw new Error(e$);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Mu={name:n.name,styles:n.styles,next:Mu},n.name;if(n.styles!==void 0){var i=n.next;if(i!==void 0)for(;i!==void 0;)Mu={name:i.name,styles:i.styles,next:Mu},i=i.next;var o=n.styles+";";return n.map!==void 0&&(o+=n.map),o}return yK(e,t,n)}case"function":{if(e!==void 0){var s=Mu,l=n(e);return Mu=s,fb(e,t,l)}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 p=[],m=n.replace(JD,function(g,b,w){var C="animation"+p.length;return p.push("const "+C+" = keyframes`"+w.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+C+"}"});p.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(p,["`"+m+"`"]).join(`
`)+`
You should wrap it with \`css\` like this:
`+("css`"+m+"`"))}break}if(t==null)return n;var v=t[n];return v!==void 0?v:n}function yK(e,t,n){var i="";if(Array.isArray(n))for(var o=0;o<n.length;o++)i+=fb(e,t,n[o])+";";else for(var s in n){var l=n[s];if(typeof l!="object")t!=null&&t[l]!==void 0?i+=s+"{"+t[l]+"}":zL(l)&&(i+=G6(s)+":"+PS(s,l)+";");else{if(s==="NO_COMPONENT_SELECTOR")throw new Error(e$);if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var p=0;p<l.length;p++)zL(l[p])&&(i+=G6(s)+":"+PS(s,l[p])+";");else{var m=fb(e,t,l);switch(s){case"animation":case"animationName":{i+=G6(s)+":"+m+";";break}default:s==="undefined"&&console.error(dK),i+=s+"{"+m+"}"}}}}return i}var UL=/label:\s*([^\s;\n{]+)\s*(;|$)/g,t$;t$=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;var Mu,Vv=function(t,n,i){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,s="";Mu=void 0;var l=t[0];l==null||l.raw===void 0?(o=!1,s+=fb(i,n,l)):(l[0]===void 0&&console.error(FL),s+=l[0]);for(var p=1;p<t.length;p++)s+=fb(i,n,t[p]),o&&(l[p]===void 0&&console.error(FL),s+=l[p]);var m;s=s.replace(t$,function(w){return m=w,""}),UL.lastIndex=0;for(var v="",g;(g=UL.exec(s))!==null;)v+="-"+g[1];var b=cK(s)+v;return{name:b,styles:s,map:m,next:Mu,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)."}}},xK=function(t){return t()},n$=uE["useInsertionEffect"]?uE["useInsertionEffect"]:!1,g8=n$||xK,jL=n$||E.exports.useLayoutEffect,SK={}.hasOwnProperty,b8=E.exports.createContext(typeof HTMLElement<"u"?oK({key:"css"}):null);b8.displayName="EmotionCacheContext";b8.Provider;var O3=function(t){return E.exports.forwardRef(function(n,i){var o=E.exports.useContext(b8);return t(n,o,i)})},Nd=E.exports.createContext({});Nd.displayName="EmotionThemeContext";var wK=function(t,n){if(typeof n=="function"){var i=n(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(n==null||typeof n!="object"||Array.isArray(n))throw new Error("[ThemeProvider] Please make your theme prop a plain object");return hr({},t,n)},CK=IL(function(e){return IL(function(t){return wK(e,t)})}),NK=function(t){var n=E.exports.useContext(Nd);return t.theme!==n&&(n=CK(n)(t.theme)),E.exports.createElement(Nd.Provider,{value:n},t.children)},VL="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",HL="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",EK=function(t){var n=t.cache,i=t.serialized,o=t.isStringTag;return A3(n,i,o),g8(function(){return L3(n,i,o)}),null},_K=O3(function(e,t,n){var i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[VL],s=[i],l="";typeof e.className=="string"?l=h8(t.registered,s,e.className):e.className!=null&&(l=e.className+" ");var p=Vv(s,void 0,E.exports.useContext(Nd));if(p.name.indexOf("-")===-1){var m=e[HL];m&&(p=Vv([p,"label:"+m+";"]))}l+=t.key+"-"+p.name;var v={};for(var g in e)SK.call(e,g)&&g!=="css"&&g!==VL&&g!==HL&&(v[g]=e[g]);return v.ref=n,v.className=l,E.exports.createElement(E.exports.Fragment,null,E.exports.createElement(EK,{cache:t,serialized:p,isStringTag:typeof o=="string"}),E.exports.createElement(o,v))});_K.displayName="EmotionCssPropInternal";var TK={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"}}}},WL=!1,Db=O3(function(e,t){!WL&&(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?"),WL=!0);var n=e.styles,i=Vv([n],void 0,E.exports.useContext(Nd)),o=E.exports.useRef();return jL(function(){var s=t.key+"-global",l=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),p=!1,m=document.querySelector('style[data-emotion="'+s+" "+i.name+'"]');return t.sheet.tags.length&&(l.before=t.sheet.tags[0]),m!==null&&(p=!0,m.setAttribute("data-emotion",s),l.hydrate([m])),o.current=[l,p],function(){l.flush()}},[t]),jL(function(){var s=o.current,l=s[0],p=s[1];if(p){s[1]=!1;return}if(i.next!==void 0&&L3(t,i.next,!0),l.tags.length){var m=l.tags[l.tags.length-1].nextElementSibling;l.before=m,l.flush()}t.insert("",i,l,!1)},[t,i.name]),null});Db.displayName="EmotionGlobal";function RK(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Vv(t)}var $b=function(){var t=RK.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},kK=function e(t){for(var n=t.length,i=0,o="";i<n;i++){var s=t[i];if(s!=null){var l=void 0;switch(typeof s){case"boolean":break;case"object":{if(Array.isArray(s))l=e(s);else{s.styles!==void 0&&s.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."),l="";for(var p in s)s[p]&&p&&(l&&(l+=" "),l+=p)}break}default:l=s}l&&(o&&(o+=" "),o+=l)}}return o};function AK(e,t,n){var i=[],o=h8(e,i,n);return i.length<2?n:o+t(i)}var LK=function(t){var n=t.cache,i=t.serializedArr;return g8(function(){for(var o=0;o<i.length;o++)L3(n,i[o],!1)}),null},OK=O3(function(e,t){var n=!1,i=[],o=function(){if(n)throw new Error("css can only be used during render");for(var v=arguments.length,g=new Array(v),b=0;b<v;b++)g[b]=arguments[b];var w=Vv(g,t.registered);return i.push(w),A3(t,w,!1),t.key+"-"+w.name},s=function(){if(n)throw new Error("cx can only be used during render");for(var v=arguments.length,g=new Array(v),b=0;b<v;b++)g[b]=arguments[b];return AK(t.registered,o,kK(g))},l={css:o,cx:s,theme:E.exports.useContext(Nd)},p=e.children(l);return n=!0,E.exports.createElement(E.exports.Fragment,null,E.exports.createElement(LK,{cache:t,serializedArr:i}),p)});OK.displayName="EmotionClassNames";{var GL=!0,MK=typeof jest<"u";if(GL&&!MK){var YL=typeof globalThis<"u"?globalThis:GL?window:global,qL="__EMOTION_REACT_"+TK.version.split(".")[0]+"__";YL[qL]&&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."),YL[qL]=!0}}function _v(e){return typeof e=="function"}var PK=!0;function r$(e){return"current"in e}function IK(e,t){const n={};return Object.keys(e).forEach(i=>{t.includes(i)||(n[i]=e[i])}),n}function DK(e,t,n,i){const o=typeof t=="string"?t.split("."):[t];for(i=0;i<o.length&&e;i+=1)e=e[o[i]];return e===void 0?n:e}var $K=e=>{const t=new WeakMap;return(i,o,s,l)=>{if(typeof i>"u")return e(i,o,s);t.has(i)||t.set(i,new Map);const p=t.get(i);if(p.has(o))return p.get(o);const m=e(i,o,s,l);return p.set(o,m),m}},i$=$K(DK);function a$(e,t){const n={};return Object.keys(e).forEach(i=>{const o=e[i];t(o,i,e)&&(n[i]=o)}),n}var o$=e=>a$(e,t=>t!=null);function y8(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function M3(e){if(!y8(e))return!1;const t=e.ownerDocument.defaultView??window;return e instanceof t.HTMLElement}function FK(e){var t;return y8(e)?((t=Fb(e))==null?void 0:t.defaultView)??window:window}function Fb(e){return y8(e)?e.ownerDocument??document:document}function zK(e){return e.view??window}function BK(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var zb=BK();function UK(e){const t=Fb(e);return t?.activeElement}function x8(e,t){return e?e===t||e.contains(t):!1}var s$=e=>e.hasAttribute("tabindex"),jK=e=>s$(e)&&e.tabIndex===-1;function VK(e){return Boolean(e.getAttribute("disabled"))===!0||Boolean(e.getAttribute("aria-disabled"))===!0}function HK(e){return M3(e)&&e.localName==="input"&&"select"in e}function l$(e){return(M3(e)?Fb(e):document).activeElement===e}function u$(e){return e.parentElement&&u$(e.parentElement)?!0:e.hidden}function WK(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function c$(e){if(!M3(e)||u$(e)||VK(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]():WK(e)?!0:s$(e)}function GK(e){return e?M3(e)&&c$(e)&&!jK(e):!1}var YK=["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]"],qK=YK.join(),ZK=e=>e.offsetWidth>0&&e.offsetHeight>0;function KK(e){const t=Array.from(e.querySelectorAll(qK));return t.unshift(e),t.filter(n=>c$(n)&&ZK(n))}function IS(e,...t){return _v(e)?e(...t):e}function XK(...e){return function(n){e.some(i=>(i?.(n),n?.defaultPrevented))}}function QK(e){let t;return function(...i){return e&&(t=e.apply(this,i),e=null),t}}var JK=QK(e=>()=>{const{condition:t,message:n}=e;t&&PK&&console.warn(n)}),eX=(...e)=>t=>e.reduce((n,i)=>i(n),t);function DS(e,t={}){const{isActive:n=l$,nextTick:i,preventScroll:o=!0,selectTextIfInput:s=!0}=t;if(!e||n(e))return-1;function l(){if(!e){JK({condition:!0,message:"[chakra-ui]: can't call focus() on `null` or `undefined` element"});return}if(tX())e.focus({preventScroll:o});else if(e.focus(),o){const p=nX(e);rX(p)}if(s){if(HK(e))e.select();else if("setSelectionRange"in e){const p=e;p.setSelectionRange(p.value.length,p.value.length)}}}return i?requestAnimationFrame(l):(l(),-1)}var g5=null;function tX(){if(g5==null){g5=!1;try{document.createElement("div").focus({get preventScroll(){return g5=!0,!0}})}catch{}}return g5}function nX(e){const t=Fb(e),n=t.defaultView??window;let i=e.parentNode;const o=[],s=t.scrollingElement||t.documentElement;for(;i instanceof n.HTMLElement&&i!==s;)(i.offsetHeight<i.scrollHeight||i.offsetWidth<i.scrollWidth)&&o.push({element:i,scrollTop:i.scrollTop,scrollLeft:i.scrollLeft}),i=i.parentNode;return s instanceof n.HTMLElement&&o.push({element:s,scrollTop:s.scrollTop,scrollLeft:s.scrollLeft}),o}function rX(e){for(const{element:t,scrollTop:n,scrollLeft:i}of e)t.scrollTop=n,t.scrollLeft=i}function iX(e){return!!e.touches}function aX(e){return t=>{const n=zK(t),i=t instanceof n.MouseEvent;(!i||i&&t.button===0)&&e(t)}}var oX={pageX:0,pageY:0};function sX(e,t="page"){const i=e.touches[0]||e.changedTouches[0]||oX;return{x:i[`${t}X`],y:i[`${t}Y`]}}function lX(e,t="page"){return{x:e[`${t}X`],y:e[`${t}Y`]}}function uX(e,t="page"){return{point:iX(e)?sX(e,t):lX(e,t)}}var cX=(e,t=!1)=>{const n=i=>e(i,uX(i));return t?aX(n):n},fX=()=>zb&&window.onpointerdown===null,dX=()=>zb&&window.ontouchstart===null,pX=()=>zb&&window.onmousedown===null,mX={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},hX={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function vX(e){return fX()?e:dX()?hX[e]:pX()?mX[e]:e}Object.freeze(["base","sm","md","lg","xl","2xl"]);function gX(e){const{userAgent:t,vendor:n}=e,i=/(android)/i.test(t);switch(!0){case/CriOS/.test(t):return"Chrome for iOS";case/Edg\//.test(t):return"Edge";case(i&&/Silk\//.test(t)):return"Silk";case(/Chrome/.test(t)&&/Google Inc/.test(n)):return"Chrome";case/Firefox\/\d+\.\d+$/.test(t):return"Firefox";case i:return"AOSP";case/MSIE|Trident/.test(t):return"IE";case(/Safari/.test(e.userAgent)&&/Apple Computer/.test(t)):return"Safari";case/AppleWebKit/.test(t):return"WebKit";default:return null}}function bX(e){return zb?gX(window.navigator)===e:!1}function yX(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:i}=e,o=E.exports.createContext(void 0);o.displayName=i;function s(){var l;const p=E.exports.useContext(o);if(!p&&t){const m=new Error(n);throw m.name="ContextError",(l=Error.captureStackTrace)==null||l.call(Error,m,s),m}return p}return[o.Provider,s,o]}var xX=/^((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)-.*))$/,SX=ZD(function(e){return xX.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),wX=SX,CX=function(t){return t!=="theme"},ZL=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?wX:CX},KL=function(t,n,i){var o;if(n){var s=n.shouldForwardProp;o=t.__emotion_forwardProp&&s?function(l){return t.__emotion_forwardProp(l)&&s(l)}:s}return typeof o!="function"&&i&&(o=t.__emotion_forwardProp),o},XL=`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`,NX=function(t){var n=t.cache,i=t.serialized,o=t.isStringTag;return A3(n,i,o),g8(function(){return L3(n,i,o)}),null},EX=function e(t,n){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,o=i&&t.__emotion_base||t,s,l;n!==void 0&&(s=n.label,l=n.target);var p=KL(t,n,i),m=p||ZL(o),v=!m("as");return function(){var g=arguments,b=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&b.push("label:"+s+";"),g[0]==null||g[0].raw===void 0)b.push.apply(b,g);else{g[0][0]===void 0&&console.error(XL),b.push(g[0][0]);for(var w=g.length,C=1;C<w;C++)g[0][C]===void 0&&console.error(XL),b.push(g[C],g[0][C])}var T=O3(function(R,L,D){var P=v&&R.as||o,I="",F=[],z=R;if(R.theme==null){z={};for(var q in R)z[q]=R[q];z.theme=E.exports.useContext(Nd)}typeof R.className=="string"?I=h8(L.registered,F,R.className):R.className!=null&&(I=R.className+" ");var Y=Vv(b.concat(F),L.registered,z);I+=L.key+"-"+Y.name,l!==void 0&&(I+=" "+l);var Q=v&&p===void 0?ZL(P):m,ie={};for(var ae in R)v&&ae==="as"||Q(ae)&&(ie[ae]=R[ae]);return ie.className=I,ie.ref=D,E.exports.createElement(E.exports.Fragment,null,E.exports.createElement(NX,{cache:L,serialized:Y,isStringTag:typeof P=="string"}),E.exports.createElement(P,ie))});return T.displayName=s!==void 0?s:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",T.defaultProps=t.defaultProps,T.__emotion_real=T,T.__emotion_base=o,T.__emotion_styles=b,T.__emotion_forwardProp=p,Object.defineProperty(T,"toString",{value:function(){return l===void 0?"NO_COMPONENT_SELECTOR":"."+l}}),T.withComponent=function(R,L){return e(R,hr({},n,L,{shouldForwardProp:KL(T,L,!0)})).apply(void 0,b)},T}},_X=["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"],SE=EX.bind();_X.forEach(function(e){SE[e]=SE(e)});var TX=typeof Element<"u",RX=typeof Map=="function",kX=typeof Set=="function",AX=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function uS(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,i,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(i=n;i--!==0;)if(!uS(e[i],t[i]))return!1;return!0}var s;if(RX&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(i=s.next()).done;)if(!t.has(i.value[0]))return!1;for(s=e.entries();!(i=s.next()).done;)if(!uS(i.value[1],t.get(i.value[0])))return!1;return!0}if(kX&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(i=s.next()).done;)if(!t.has(i.value[0]))return!1;return!0}if(AX&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(i=n;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(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[i]))return!1;if(TX&&e instanceof Element)return!1;for(i=n;i--!==0;)if(!((o[i]==="_owner"||o[i]==="__v"||o[i]==="__o")&&e.$$typeof)&&!uS(e[o[i]],t[o[i]]))return!1;return!0}return e!==e&&t!==t}var LX=function(t,n){try{return uS(t,n)}catch(i){if((i.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw i}},$S="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/system/dist/index.esm.js";function P3(){const e=E.exports.useContext(Nd);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}function f$(){const e=l8(),t=P3();return{...e,theme:t}}function OX(e,t,n){if(t==null)return t;const i=o=>{var s,l;return(l=(s=e.__breakpoints)==null?void 0:s.asArray)==null?void 0:l[o]};return i(t)??i(n)??n}function MX(e,t,n){if(t==null)return t;const i=o=>{var s,l;return(l=(s=e.__cssMap)==null?void 0:s[o])==null?void 0:l.value};return i(t)??i(n)??n}function PX(e,t,n){const i=Array.isArray(t)?t:[t],o=Array.isArray(n)?n:[n];return s=>{const l=o.filter(Boolean),p=i.map((m,v)=>{if(e==="breakpoints")return OX(s,m,l[v]??m);const g=`${e}.${m}`;return MX(s,g,l[v]??m)});return Array.isArray(t)?p:p[0]}}function IX(e){const{cssVarsRoot:t,theme:n,children:i}=e,o=E.exports.useMemo(()=>mZ(n),[n]);return N(NK,{theme:o,children:[N(DX,{root:t},void 0,!1,{fileName:$S,lineNumber:82,columnNumber:22},this),i]},void 0,!0,{fileName:$S,lineNumber:80,columnNumber:26},this)}function DX({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return N(Db,{styles:n=>({[t]:n.__cssVars})},void 0,!1,{fileName:$S,lineNumber:88,columnNumber:26},this)}yX({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function $X(){const{colorMode:e}=l8();return N(Db,{styles:t=>{const n=i$(t,"styles.global"),i=IS(n,{theme:t,colorMode:e});return i?jD(i)(t):void 0}},void 0,!1,{fileName:$S,lineNumber:104,columnNumber:26},this)}var FX=new Set([...gZ,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),zX=new Set(["htmlWidth","htmlHeight","htmlSize"]);function BX(e){return zX.has(e)||!FX.has(e)}var UX=({baseStyle:e})=>t=>{const{theme:n,css:i,__css:o,sx:s,...l}=t,p=a$(l,(b,w)=>yZ(w)),m=IS(e,t),v=Object.assign({},o,m,o$(p),s),g=jD(v)(t.theme);return i?[g,i]:g};function Y6(e,t){const{baseStyle:n,...i}=t??{};i.shouldForwardProp||(i.shouldForwardProp=BX);const o=UX({baseStyle:n});return SE(e,i)(o)}function qe(e){return E.exports.forwardRef(e)}function d$(e,t={}){const{styleConfig:n,...i}=t,{theme:o,colorMode:s}=f$(),l=i$(o,`components.${e}`),p=n||l,m=Gc({theme:o,colorMode:s},p?.defaultProps??{},o$(IK(i,["children"]))),v=E.exports.useRef({});if(p){const b=TZ(p)(m);LX(v.current,b)||(v.current=b)}return v.current}function xo(e,t={}){return d$(e,t)}function So(e,t={}){return d$(e,t)}function jX(){const e=new Map;return new Proxy(Y6,{apply(t,n,i){return Y6(...i)},get(t,n){return e.has(n)||e.set(n,Y6(n)),e.get(n)}})}var $e=jX();function VX(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Or(e={}){const{name:t,strict:n=!0,hookName:i="useContext",providerName:o="Provider",errorMessage:s}=e,l=E.exports.createContext(void 0);l.displayName=t;function p(){var m;const v=E.exports.useContext(l);if(!v&&n){const g=new Error(s??VX(i,o));throw g.name="ContextError",(m=Error.captureStackTrace)==null||m.call(Error,g,p),g}return v}return[l.Provider,p,l]}function HX(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 ti(...e){return t=>{e.forEach(n=>{HX(n,t)})}}function WX(...e){return E.exports.useMemo(()=>ti(...e),e)}function QL(e){return e.sort((t,n)=>{const i=t.compareDocumentPosition(n);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 GX=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function JL(e,t,n){let i=e+1;return n&&i>=t&&(i=0),i}function eO(e,t,n){let i=e-1;return n&&i<0&&(i=t),i}var wE=typeof window<"u"?E.exports.useLayoutEffect:E.exports.useEffect,FS=e=>e,YX=class{descendants=new Map;register=e=>{if(e!=null)return GX(e)?this.registerNode(e):t=>{this.registerNode(t,e)}};unregister=e=>{this.descendants.delete(e);const t=QL(Array.from(this.descendants.keys()));this.assignIndex(t)};destroy=()=>{this.descendants.clear()};assignIndex=e=>{this.descendants.forEach(t=>{const n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})};count=()=>this.descendants.size;enabledCount=()=>this.enabledValues().length;values=()=>Array.from(this.descendants.values()).sort((t,n)=>t.index-n.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 n=JL(e,this.count(),t);return this.item(n)};nextEnabled=(e,t=!0)=>{const n=this.item(e);if(!n)return;const i=this.enabledIndexOf(n.node),o=JL(i,this.enabledCount(),t);return this.enabledItem(o)};prev=(e,t=!0)=>{const n=eO(e,this.count()-1,t);return this.item(n)};prevEnabled=(e,t=!0)=>{const n=this.item(e);if(!n)return;const i=this.enabledIndexOf(n.node),o=eO(i,this.enabledCount()-1,t);return this.enabledItem(o)};registerNode=(e,t)=>{if(!e||this.descendants.has(e))return;const n=Array.from(this.descendants.keys()).concat(e),i=QL(n);t?.disabled&&(t.disabled=!!t.disabled);const o={node:e,index:-1,...t};this.descendants.set(e,o),this.assignIndex(i)}};function qX(){const e=E.exports.useRef(new YX);return wE(()=>()=>e.current.destroy()),e.current}var[ZX,p$]=Or({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function KX(e){const t=p$(),[n,i]=E.exports.useState(-1),o=E.exports.useRef(null);wE(()=>()=>{!o.current||t.unregister(o.current)},[]),wE(()=>{if(!o.current)return;const l=Number(o.current.dataset.index);n!=l&&!Number.isNaN(l)&&i(l)});const s=FS(e?t.register(e):t.register);return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(o.current),register:ti(s,o)}}function m$(){return[FS(ZX),()=>FS(p$()),()=>qX(),o=>KX(o)]}var yr=(...e)=>e.filter(Boolean).join(" "),b5="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/accordion/node_modules/@chakra-ui/icon/dist/index.esm.js",tO={path:N("g",{stroke:"currentColor",strokeWidth:"1.5",children:[N("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:b5,lineNumber:14,columnNumber:22},globalThis),N("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:b5,lineNumber:18,columnNumber:23},globalThis),N("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"},void 0,!1,{fileName:b5,lineNumber:22,columnNumber:23},globalThis)]},void 0,!0,{fileName:b5,lineNumber:11,columnNumber:25},globalThis),viewBox:"0 0 24 24"},h$=qe((e,t)=>{const{as:n,viewBox:i,color:o="currentColor",focusable:s=!1,children:l,className:p,__css:m,...v}=e,g=yr("chakra-icon",p),b={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...m},w={ref:t,focusable:s,className:g,__css:b},C=i??tO.viewBox;if(n&&typeof n!="string")return Ne.createElement($e.svg,{as:n,...w,...v});const T=l??tO.path;return Ne.createElement($e.svg,{verticalAlign:"middle",viewBox:C,...w,...v},T)});h$.displayName="Icon";function Ka(e,t=[]){const n=E.exports.useRef(e);return E.exports.useEffect(()=>{n.current=e}),E.exports.useCallback((...i)=>{var o;return(o=n.current)==null?void 0:o.call(n,...i)},t)}function v$(e){const{value:t,defaultValue:n,onChange:i,shouldUpdate:o=(w,C)=>w!==C}=e,s=Ka(i),l=Ka(o),[p,m]=E.exports.useState(n),v=t!==void 0,g=v?t:p,b=E.exports.useCallback(w=>{const T=typeof w=="function"?w(g):w;!l(g,T)||(v||m(T),s(T))},[v,s,g,l]);return[g,b]}const S8=E.exports.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),I3=E.exports.createContext({});function XX(){return E.exports.useContext(I3).visualElement}const t0=E.exports.createContext(null),Rm=typeof document<"u",zS=Rm?E.exports.useLayoutEffect:E.exports.useEffect,g$=E.exports.createContext({strict:!1});function QX(e,t,n,i){const o=XX(),s=E.exports.useContext(g$),l=E.exports.useContext(t0),p=E.exports.useContext(S8).reducedMotion,m=E.exports.useRef(void 0);i=i||s.renderer,!m.current&&i&&(m.current=i(e,{visualState:t,parent:o,props:n,presenceId:l?l.id:void 0,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:p}));const v=m.current;return zS(()=>{v&&v.syncRender()}),E.exports.useEffect(()=>{v&&v.animationState&&v.animationState.animateChanges()}),zS(()=>()=>v&&v.notifyUnmount(),[]),v}function Tv(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function JX(e,t,n){return E.exports.useCallback(i=>{i&&e.mount&&e.mount(i),t&&(i?t.mount(i):t.unmount()),n&&(typeof n=="function"?n(i):Tv(n)&&(n.current=i))},[t])}function db(e){return typeof e=="string"||Array.isArray(e)}function D3(e){return typeof e=="object"&&typeof e.start=="function"}const eQ=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function $3(e){return D3(e.animate)||eQ.some(t=>db(e[t]))}function b$(e){return Boolean($3(e)||e.variants)}function tQ(e,t){if($3(e)){const{initial:n,animate:i}=e;return{initial:n===!1||db(n)?n:void 0,animate:db(i)?i:void 0}}return e.inherit!==!1?t:{}}function nQ(e){const{initial:t,animate:n}=tQ(e,E.exports.useContext(I3));return E.exports.useMemo(()=>({initial:t,animate:n}),[nO(t),nO(n)])}function nO(e){return Array.isArray(e)?e.join(" "):e}const Dc=e=>({isEnabled:t=>e.some(n=>!!t[n])}),pb={measureLayout:Dc(["layout","layoutId","drag"]),animation:Dc(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Dc(["exit"]),drag:Dc(["drag","dragControls"]),focus:Dc(["whileFocus"]),hover:Dc(["whileHover","onHoverStart","onHoverEnd"]),tap:Dc(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Dc(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Dc(["whileInView","onViewportEnter","onViewportLeave"])};function rQ(e){for(const t in e)t==="projectionNodeConstructor"?pb.projectionNodeConstructor=e[t]:pb[t].Component=e[t]}function F3(e){const t=E.exports.useRef(null);return t.current===null&&(t.current=e()),t.current}const Gg={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let iQ=1;function aQ(){return F3(()=>{if(Gg.hasEverUpdated)return iQ++})}const w8=E.exports.createContext({});class oQ extends Ne.Component{getSnapshotBeforeUpdate(){const{visualElement:t,props:n}=this.props;return t&&t.setProps(n),null}componentDidUpdate(){}render(){return this.props.children}}const y$=E.exports.createContext({}),sQ=Symbol.for("motionComponentSymbol");var rO="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/framer-motion/dist/es/motion/index.mjs";function lQ({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:n,useRender:i,useVisualState:o,Component:s}){e&&rQ(e);function l(m,v){const g={...E.exports.useContext(S8),...m,layoutId:uQ(m)},{isStatic:b}=g;let w=null;const C=nQ(m),T=b?void 0:aQ(),R=o(m,b);if(!b&&Rm){C.visualElement=QX(s,R,g,t);const L=E.exports.useContext(g$).strict,D=E.exports.useContext(y$);C.visualElement&&(w=C.visualElement.loadFeatures(g,L,e,T,n||pb.projectionNodeConstructor,D))}return N(oQ,{visualElement:C.visualElement,props:g,children:[w,N(I3.Provider,{value:C,children:i(s,m,T,JX(R,C.visualElement,v),R,b,C.visualElement)},void 0,!1,{fileName:rO,lineNumber:81,columnNumber:13},this)]},void 0,!0,{fileName:rO,lineNumber:79,columnNumber:17},this)}const p=E.exports.forwardRef(l);return p[sQ]=s,p}function uQ({layoutId:e}){const t=E.exports.useContext(w8).id;return t&&e!==void 0?t+"-"+e:e}function cQ(e){function t(i,o={}){return lQ(e(i,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(i,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const fQ=["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 C8(e){return typeof e!="string"||e.includes("-")?!1:!!(fQ.indexOf(e)>-1||/[A-Z]/.test(e))}const BS={};function dQ(e){Object.assign(BS,e)}const US=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Bb=new Set(US);function x$(e,{layout:t,layoutId:n}){return Bb.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!BS[e]||e==="opacity")}const Hu=e=>!!e?.getVelocity,pQ={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},mQ=(e,t)=>US.indexOf(e)-US.indexOf(t);function hQ({transform:e,transformKeys:t},{enableHardwareAcceleration:n=!0,allowTransformNone:i=!0},o,s){let l="";t.sort(mQ);for(const p of t)l+=`${pQ[p]||p}(${e[p]}) `;return n&&!e.z&&(l+="translateZ(0)"),l=l.trim(),s?l=s(e,o?"":l):i&&o&&(l="none"),l}function S$(e){return e.startsWith("--")}const vQ=(e,t)=>t&&typeof e=="number"?t.transform(e):e,w$=(e,t)=>n=>Math.max(Math.min(n,t),e),Yg=e=>e%1?Number(e.toFixed(5)):e,mb=/(-)?([\d]*\.?[\d])+/g,CE=/(#[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,gQ=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ub(e){return typeof e=="string"}const km={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},qg=Object.assign(Object.assign({},km),{transform:w$(0,1)}),y5=Object.assign(Object.assign({},km),{default:1}),jb=e=>({test:t=>Ub(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ud=jb("deg"),zu=jb("%"),Qt=jb("px"),bQ=jb("vh"),yQ=jb("vw"),iO=Object.assign(Object.assign({},zu),{parse:e=>zu.parse(e)/100,transform:e=>zu.transform(e*100)}),N8=(e,t)=>n=>Boolean(Ub(n)&&gQ.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),C$=(e,t,n)=>i=>{if(!Ub(i))return i;const[o,s,l,p]=i.match(mb);return{[e]:parseFloat(o),[t]:parseFloat(s),[n]:parseFloat(l),alpha:p!==void 0?parseFloat(p):1}},hm={test:N8("hsl","hue"),parse:C$("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+zu.transform(Yg(t))+", "+zu.transform(Yg(n))+", "+Yg(qg.transform(i))+")"},xQ=w$(0,255),q6=Object.assign(Object.assign({},km),{transform:e=>Math.round(xQ(e))}),vd={test:N8("rgb","red"),parse:C$("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+q6.transform(e)+", "+q6.transform(t)+", "+q6.transform(n)+", "+Yg(qg.transform(i))+")"};function SQ(e){let t="",n="",i="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),i=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),i=e.substr(3,1),o=e.substr(4,1),t+=t,n+=n,i+=i,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:o?parseInt(o,16)/255:1}}const NE={test:N8("#"),parse:SQ,transform:vd.transform},go={test:e=>vd.test(e)||NE.test(e)||hm.test(e),parse:e=>vd.test(e)?vd.parse(e):hm.test(e)?hm.parse(e):NE.parse(e),transform:e=>Ub(e)?e:e.hasOwnProperty("red")?vd.transform(e):hm.transform(e)},N$="${c}",E$="${n}";function wQ(e){var t,n,i,o;return isNaN(e)&&Ub(e)&&((n=(t=e.match(mb))===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+((o=(i=e.match(CE))===null||i===void 0?void 0:i.length)!==null&&o!==void 0?o:0)>0}function _$(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0;const i=e.match(CE);i&&(n=i.length,e=e.replace(CE,N$),t.push(...i.map(go.parse)));const o=e.match(mb);return o&&(e=e.replace(mb,E$),t.push(...o.map(km.parse))),{values:t,numColors:n,tokenised:e}}function T$(e){return _$(e).values}function R$(e){const{values:t,numColors:n,tokenised:i}=_$(e),o=t.length;return s=>{let l=i;for(let p=0;p<o;p++)l=l.replace(p<n?N$:E$,p<n?go.transform(s[p]):Yg(s[p]));return l}}const CQ=e=>typeof e=="number"?0:e;function NQ(e){const t=T$(e);return R$(e)(t.map(CQ))}const Yc={test:wQ,parse:T$,createTransformer:R$,getAnimatableNone:NQ},EQ=new Set(["brightness","contrast","saturate","opacity"]);function _Q(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=n.match(mb)||[];if(!i)return e;const o=n.replace(i,"");let s=EQ.has(t)?1:0;return i!==n&&(s*=100),t+"("+s+o+")"}const TQ=/([a-z-]*)\(.*?\)/g,EE=Object.assign(Object.assign({},Yc),{getAnimatableNone:e=>{const t=e.match(TQ);return t?t.map(_Q).join(" "):e}}),aO={...km,transform:Math.round},k$={borderWidth:Qt,borderTopWidth:Qt,borderRightWidth:Qt,borderBottomWidth:Qt,borderLeftWidth:Qt,borderRadius:Qt,radius:Qt,borderTopLeftRadius:Qt,borderTopRightRadius:Qt,borderBottomRightRadius:Qt,borderBottomLeftRadius:Qt,width:Qt,maxWidth:Qt,height:Qt,maxHeight:Qt,size:Qt,top:Qt,right:Qt,bottom:Qt,left:Qt,padding:Qt,paddingTop:Qt,paddingRight:Qt,paddingBottom:Qt,paddingLeft:Qt,margin:Qt,marginTop:Qt,marginRight:Qt,marginBottom:Qt,marginLeft:Qt,rotate:ud,rotateX:ud,rotateY:ud,rotateZ:ud,scale:y5,scaleX:y5,scaleY:y5,scaleZ:y5,skew:ud,skewX:ud,skewY:ud,distance:Qt,translateX:Qt,translateY:Qt,translateZ:Qt,x:Qt,y:Qt,z:Qt,perspective:Qt,transformPerspective:Qt,opacity:qg,originX:iO,originY:iO,originZ:Qt,zIndex:aO,fillOpacity:qg,strokeOpacity:qg,numOctaves:aO};function E8(e,t,n,i){const{style:o,vars:s,transform:l,transformKeys:p,transformOrigin:m}=e;p.length=0;let v=!1,g=!1,b=!0;for(const w in t){const C=t[w];if(S$(w)){s[w]=C;continue}const T=k$[w],R=vQ(C,T);if(Bb.has(w)){if(v=!0,l[w]=R,p.push(w),!b)continue;C!==(T.default||0)&&(b=!1)}else w.startsWith("origin")?(g=!0,m[w]=R):o[w]=R}if(v||i?o.transform=hQ(e,n,b,i):!t.transform&&o.transform&&(o.transform="none"),g){const{originX:w="50%",originY:C="50%",originZ:T=0}=m;o.transformOrigin=`${w} ${C} ${T}`}}const _8=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function A$(e,t,n){for(const i in t)!Hu(t[i])&&!x$(i,n)&&(e[i]=t[i])}function RQ({transformTemplate:e},t,n){return E.exports.useMemo(()=>{const i=_8();return E8(i,t,{enableHardwareAcceleration:!n},e),Object.assign({},i.vars,i.style)},[t])}function kQ(e,t,n){const i=e.style||{},o={};return A$(o,i,e),Object.assign(o,RQ(e,t,n)),e.transformValues?e.transformValues(o):o}function AQ(e,t,n){const i={},o=kQ(e,t,n);return e.drag&&e.dragListener!==!1&&(i.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),i.style=o,i}const LQ=["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],OQ=["whileTap","onTap","onTapStart","onTapCancel"],MQ=["onPan","onPanStart","onPanSessionStart","onPanEnd"],PQ=["whileInView","onViewportEnter","onViewportLeave","viewport"],IQ=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",...PQ,...OQ,...LQ,...MQ]);function jS(e){return IQ.has(e)}let L$=e=>!jS(e);function DQ(e){!e||(L$=t=>t.startsWith("on")?!jS(t):e(t))}try{DQ(require("@emotion/is-prop-valid").default)}catch{}function $Q(e,t,n){const i={};for(const o in e)(L$(o)||n===!0&&jS(o)||!t&&!jS(o)||e.draggable&&o.startsWith("onDrag"))&&(i[o]=e[o]);return i}function oO(e,t,n){return typeof e=="string"?e:Qt.transform(t+n*e)}function FQ(e,t,n){const i=oO(t,e.x,e.width),o=oO(n,e.y,e.height);return`${i} ${o}`}const zQ={offset:"stroke-dashoffset",array:"stroke-dasharray"},BQ={offset:"strokeDashoffset",array:"strokeDasharray"};function UQ(e,t,n=1,i=0,o=!0){e.pathLength=1;const s=o?zQ:BQ;e[s.offset]=Qt.transform(-i);const l=Qt.transform(t),p=Qt.transform(n);e[s.array]=`${l} ${p}`}function T8(e,{attrX:t,attrY:n,originX:i,originY:o,pathLength:s,pathSpacing:l=1,pathOffset:p=0,...m},v,g){E8(e,m,v,g),e.attrs=e.style,e.style={};const{attrs:b,style:w,dimensions:C}=e;b.transform&&(C&&(w.transform=b.transform),delete b.transform),C&&(i!==void 0||o!==void 0||w.transform)&&(w.transformOrigin=FQ(C,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(b.x=t),n!==void 0&&(b.y=n),s!==void 0&&UQ(b,s,l,p,!1)}const O$=()=>({..._8(),attrs:{}});function jQ(e,t){const n=E.exports.useMemo(()=>{const i=O$();return T8(i,t,{enableHardwareAcceleration:!1},e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};A$(i,e.style,e),n.style={...i,...n.style}}return n}function VQ(e=!1){return(n,i,o,s,{latestValues:l},p)=>{const v=(C8(n)?jQ:AQ)(i,l,p),b={...$Q(i,typeof n=="string",e),...v,ref:s};return o&&(b["data-projection-id"]=o),E.exports.createElement(n,b)}}const M$=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function P$(e,{style:t,vars:n},i,o){Object.assign(e.style,t,o&&o.getProjectionStyles(i));for(const s in n)e.style.setProperty(s,n[s])}const I$=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function D$(e,t,n,i){P$(e,t,void 0,i);for(const o in t.attrs)e.setAttribute(I$.has(o)?o:M$(o),t.attrs[o])}function R8(e){const{style:t}=e,n={};for(const i in t)(Hu(t[i])||x$(i,e))&&(n[i]=t[i]);return n}function $$(e){const t=R8(e);for(const n in e)if(Hu(e[n])){const i=n==="x"||n==="y"?"attr"+n.toUpperCase():n;t[i]=e[n]}return t}function F$(e,t,n,i={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,i,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,i,o)),t}const hb=e=>Array.isArray(e),HQ=e=>Boolean(e&&typeof e=="object"&&e.mix&&e.toValue),z$=e=>hb(e)?e[e.length-1]||0:e;function cS(e){const t=Hu(e)?e.get():e;return HQ(t)?t.toValue():t}function WQ({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},i,o,s){const l={latestValues:GQ(i,o,s,e),renderState:t()};return n&&(l.mount=p=>n(i,p,l)),l}const B$=e=>(t,n)=>{const i=E.exports.useContext(I3),o=E.exports.useContext(t0),s=()=>WQ(e,t,i,o);return n?s():F3(s)};function GQ(e,t,n,i){const o={},s=i(e);for(const w in s)o[w]=cS(s[w]);let{initial:l,animate:p}=e;const m=$3(e),v=b$(e);t&&v&&!m&&e.inherit!==!1&&(l===void 0&&(l=t.initial),p===void 0&&(p=t.animate));let g=n?n.initial===!1:!1;g=g||l===!1;const b=g?p:l;return b&&typeof b!="boolean"&&!D3(b)&&(Array.isArray(b)?b:[b]).forEach(C=>{const T=F$(e,C);if(!T)return;const{transitionEnd:R,transition:L,...D}=T;for(const P in D){let I=D[P];if(Array.isArray(I)){const F=g?I.length-1:0;I=I[F]}I!==null&&(o[P]=I)}for(const P in R)o[P]=R[P]}),o}const YQ={useVisualState:B$({scrapeMotionValuesFromProps:$$,createRenderState:O$,onMount:(e,t,{renderState:n,latestValues:i})=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}T8(n,i,{enableHardwareAcceleration:!1},e.transformTemplate),D$(t,n)}})},qQ={useVisualState:B$({scrapeMotionValuesFromProps:R8,createRenderState:_8})};function ZQ(e,{forwardMotionProps:t=!1},n,i,o){return{...C8(e)?YQ:qQ,preloadedFeatures:n,useRender:VQ(t),createVisualElement:i,projectionNodeConstructor:o,Component:e}}var Ar;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(Ar||(Ar={}));function z3(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}function _E(e,t,n,i){E.exports.useEffect(()=>{const o=e.current;if(n&&o)return z3(o,t,n,i)},[e,t,n,i])}function KQ({whileFocus:e,visualElement:t}){const{animationState:n}=t,i=()=>{n&&n.setActive(Ar.Focus,!0)},o=()=>{n&&n.setActive(Ar.Focus,!1)};_E(t,"focus",e?i:void 0),_E(t,"blur",e?o:void 0)}function U$(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function j$(e){return!!e.touches}function XQ(e){return t=>{const n=t instanceof MouseEvent;(!n||n&&t.button===0)&&e(t)}}const QQ={pageX:0,pageY:0};function JQ(e,t="page"){const i=e.touches[0]||e.changedTouches[0]||QQ;return{x:i[t+"X"],y:i[t+"Y"]}}function eJ(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}function k8(e,t="page"){return{point:j$(e)?JQ(e,t):eJ(e,t)}}const V$=(e,t=!1)=>{const n=i=>e(i,k8(i));return t?XQ(n):n},tJ=()=>Rm&&window.onpointerdown===null,nJ=()=>Rm&&window.ontouchstart===null,rJ=()=>Rm&&window.onmousedown===null,iJ={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},aJ={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function H$(e){return tJ()?e:nJ()?aJ[e]:rJ()?iJ[e]:e}function Mv(e,t,n,i){return z3(e,H$(t),V$(n,t==="pointerdown"),i)}function VS(e,t,n,i){return _E(e,H$(t),n&&V$(n,t==="pointerdown"),i)}function W$(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const sO=W$("dragHorizontal"),lO=W$("dragVertical");function G$(e){let t=!1;if(e==="y")t=lO();else if(e==="x")t=sO();else{const n=sO(),i=lO();n&&i?t=()=>{n(),i()}:(n&&n(),i&&i())}return t}function Y$(){const e=G$(!0);return e?(e(),!1):!0}function uO(e,t,n){return(i,o)=>{!U$(i)||Y$()||(e.animationState&&e.animationState.setActive(Ar.Hover,t),n&&n(i,o))}}function oJ({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:i}){VS(i,"pointerenter",e||n?uO(i,!0,e):void 0,{passive:!e}),VS(i,"pointerleave",t||n?uO(i,!1,t):void 0,{passive:!t})}const q$=(e,t)=>t?e===t?!0:q$(e,t.parentElement):!1;function A8(e){return E.exports.useEffect(()=>()=>e(),[])}var Pu=function(){return Pu=Object.assign||function(t){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Pu.apply(this,arguments)};function B3(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n}function n0(e,t,n,i){function o(s){return s instanceof n?s:new n(function(l){l(s)})}return new(n||(n=Promise))(function(s,l){function p(g){try{v(i.next(g))}catch(b){l(b)}}function m(g){try{v(i.throw(g))}catch(b){l(b)}}function v(g){g.done?s(g.value):o(g.value).then(p,m)}v((i=i.apply(e,t||[])).next())})}function r0(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,o,s,l;return l={next:p(0),throw:p(1),return:p(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function p(v){return function(g){return m([v,g])}}function m(v){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,o&&(s=v[0]&2?o.return:v[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,v[1])).done)return s;switch(o=0,s&&(v=[v[0]&2,s.value]),v[0]){case 0:case 1:s=v;break;case 4:return n.label++,{value:v[1],done:!1};case 5:n.label++,o=v[1],v=[0];continue;case 7:v=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(v[0]===6||v[0]===2)){n=0;continue}if(v[0]===3&&(!s||v[1]>s[0]&&v[1]<s[3])){n.label=v[1];break}if(v[0]===6&&n.label<s[1]){n.label=s[1],s=v;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(v);break}s[2]&&n.ops.pop(),n.trys.pop();continue}v=t.call(e,n)}catch(g){v=[6,g],o=0}finally{i=s=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}}function cO(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),o,s=[],l;try{for(;(t===void 0||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(p){l={error:p}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(l)throw l.error}}return s}function TE(e,t,n){if(n||arguments.length===2)for(var i=0,o=t.length,s;i<o;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))}var Vb=function(){},nl=function(){};Vb=function(e,t){!e&&typeof console<"u"&&console.warn(t)},nl=function(e,t){if(!e)throw new Error(t)};const HS=(e,t,n)=>Math.min(Math.max(n,e),t),Z6=.001,sJ=.01,fO=10,lJ=.05,uJ=1;function cJ({duration:e=800,bounce:t=.25,velocity:n=0,mass:i=1}){let o,s;Vb(e<=fO*1e3,"Spring duration must be 10 seconds or less");let l=1-t;l=HS(lJ,uJ,l),e=HS(sJ,fO,e/1e3),l<1?(o=v=>{const g=v*l,b=g*e,w=g-n,C=RE(v,l),T=Math.exp(-b);return Z6-w/C*T},s=v=>{const b=v*l*e,w=b*n+n,C=Math.pow(l,2)*Math.pow(v,2)*e,T=Math.exp(-b),R=RE(Math.pow(v,2),l);return(-o(v)+Z6>0?-1:1)*((w-C)*T)/R}):(o=v=>{const g=Math.exp(-v*e),b=(v-n)*e+1;return-Z6+g*b},s=v=>{const g=Math.exp(-v*e),b=(n-v)*(e*e);return g*b});const p=5/e,m=dJ(o,s,p);if(e=e*1e3,isNaN(m))return{stiffness:100,damping:10,duration:e};{const v=Math.pow(m,2)*i;return{stiffness:v,damping:l*2*Math.sqrt(i*v),duration:e}}}const fJ=12;function dJ(e,t,n){let i=n;for(let o=1;o<fJ;o++)i=i-e(i)/t(i);return i}function RE(e,t){return e*Math.sqrt(1-t*t)}const pJ=["duration","bounce"],mJ=["stiffness","damping","mass"];function dO(e,t){return t.some(n=>e[n]!==void 0)}function hJ(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!dO(e,mJ)&&dO(e,pJ)){const n=cJ(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function L8(e){var{from:t=0,to:n=1,restSpeed:i=2,restDelta:o}=e,s=B3(e,["from","to","restSpeed","restDelta"]);const l={done:!1,value:t};let{stiffness:p,damping:m,mass:v,velocity:g,duration:b,isResolvedFromDuration:w}=hJ(s),C=pO,T=pO;function R(){const L=g?-(g/1e3):0,D=n-t,P=m/(2*Math.sqrt(p*v)),I=Math.sqrt(p/v)/1e3;if(o===void 0&&(o=Math.min(Math.abs(n-t)/100,.4)),P<1){const F=RE(I,P);C=z=>{const q=Math.exp(-P*I*z);return n-q*((L+P*I*D)/F*Math.sin(F*z)+D*Math.cos(F*z))},T=z=>{const q=Math.exp(-P*I*z);return P*I*q*(Math.sin(F*z)*(L+P*I*D)/F+D*Math.cos(F*z))-q*(Math.cos(F*z)*(L+P*I*D)-F*D*Math.sin(F*z))}}else if(P===1)C=F=>n-Math.exp(-I*F)*(D+(L+I*D)*F);else{const F=I*Math.sqrt(P*P-1);C=z=>{const q=Math.exp(-P*I*z),Y=Math.min(F*z,300);return n-q*((L+P*I*D)*Math.sinh(Y)+F*D*Math.cosh(Y))/F}}}return R(),{next:L=>{const D=C(L);if(w)l.done=L>=b;else{const P=T(L)*1e3,I=Math.abs(P)<=i,F=Math.abs(n-D)<=o;l.done=I&&F}return l.value=l.done?n:D,l},flipTarget:()=>{g=-g,[t,n]=[n,t],R()}}}L8.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const pO=e=>0,vb=(e,t,n)=>{const i=t-e;return i===0?1:(n-e)/i},ni=(e,t,n)=>-n*e+n*t+e;function K6(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function mO({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,t/=100,n/=100;let o=0,s=0,l=0;if(!t)o=s=l=n;else{const p=n<.5?n*(1+t):n+t-n*t,m=2*n-p;o=K6(m,p,e+1/3),s=K6(m,p,e),l=K6(m,p,e-1/3)}return{red:Math.round(o*255),green:Math.round(s*255),blue:Math.round(l*255),alpha:i}}const vJ=(e,t,n)=>{const i=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-i)+i))},gJ=[NE,vd,hm],hO=e=>gJ.find(t=>t.test(e)),vO=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,Z$=(e,t)=>{let n=hO(e),i=hO(t);nl(!!n,vO(e)),nl(!!i,vO(t));let o=n.parse(e),s=i.parse(t);n===hm&&(o=mO(o),n=vd),i===hm&&(s=mO(s),i=vd);const l=Object.assign({},o);return p=>{for(const m in l)m!=="alpha"&&(l[m]=vJ(o[m],s[m],p));return l.alpha=ni(o.alpha,s.alpha,p),n.transform(l)}},kE=e=>typeof e=="number",bJ=(e,t)=>n=>t(e(n)),U3=(...e)=>e.reduce(bJ);function K$(e,t){return kE(e)?n=>ni(e,t,n):go.test(e)?Z$(e,t):Q$(e,t)}const X$=(e,t)=>{const n=[...e],i=n.length,o=e.map((s,l)=>K$(s,t[l]));return s=>{for(let l=0;l<i;l++)n[l]=o[l](s);return n}},yJ=(e,t)=>{const n=Object.assign(Object.assign({},e),t),i={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(i[o]=K$(e[o],t[o]));return o=>{for(const s in i)n[s]=i[s](o);return n}};function gO(e){const t=Yc.parse(e),n=t.length;let i=0,o=0,s=0;for(let l=0;l<n;l++)i||typeof t[l]=="number"?i++:t[l].hue!==void 0?s++:o++;return{parsed:t,numNumbers:i,numRGB:o,numHSL:s}}const Q$=(e,t)=>{const n=Yc.createTransformer(t),i=gO(e),o=gO(t);return i.numHSL===o.numHSL&&i.numRGB===o.numRGB&&i.numNumbers>=o.numNumbers?U3(X$(i.parsed,o.parsed),n):(Vb(!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.`),l=>`${l>0?t:e}`)},xJ=(e,t)=>n=>ni(e,t,n);function SJ(e){if(typeof e=="number")return xJ;if(typeof e=="string")return go.test(e)?Z$:Q$;if(Array.isArray(e))return X$;if(typeof e=="object")return yJ}function wJ(e,t,n){const i=[],o=n||SJ(e[0]),s=e.length-1;for(let l=0;l<s;l++){let p=o(e[l],e[l+1]);if(t){const m=Array.isArray(t)?t[l]:t;p=U3(m,p)}i.push(p)}return i}function CJ([e,t],[n]){return i=>n(vb(e,t,i))}function NJ(e,t){const n=e.length,i=n-1;return o=>{let s=0,l=!1;if(o<=e[0]?l=!0:o>=e[i]&&(s=i-1,l=!0),!l){let m=1;for(;m<n&&!(e[m]>o||m===i);m++);s=m-1}const p=vb(e[s],e[s+1],o);return t[s](p)}}function J$(e,t,{clamp:n=!0,ease:i,mixer:o}={}){const s=e.length;nl(s===t.length,"Both input and output ranges must be the same length"),nl(!i||!Array.isArray(i)||i.length===s-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[s-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const l=wJ(t,i,o),p=s===2?CJ(e,l):NJ(e,l);return n?m=>p(HS(e[0],e[s-1],m)):p}const j3=e=>t=>1-e(1-t),O8=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,EJ=e=>t=>Math.pow(t,e),eF=e=>t=>t*t*((e+1)*t-e),_J=e=>{const t=eF(e);return n=>(n*=2)<1?.5*t(n):.5*(2-Math.pow(2,-10*(n-1)))},tF=1.525,TJ=4/11,RJ=8/11,kJ=9/10,M8=e=>e,P8=EJ(2),AJ=j3(P8),nF=O8(P8),rF=e=>1-Math.sin(Math.acos(e)),I8=j3(rF),LJ=O8(I8),D8=eF(tF),OJ=j3(D8),MJ=O8(D8),PJ=_J(tF),IJ=4356/361,DJ=35442/1805,$J=16061/1805,WS=e=>{if(e===1||e===0)return e;const t=e*e;return e<TJ?7.5625*t:e<RJ?9.075*t-9.9*e+3.4:e<kJ?IJ*t-DJ*e+$J:10.8*e*e-20.52*e+10.72},FJ=j3(WS),zJ=e=>e<.5?.5*(1-WS(1-e*2)):.5*WS(e*2-1)+.5;function BJ(e,t){return e.map(()=>t||nF).splice(0,e.length-1)}function UJ(e){const t=e.length;return e.map((n,i)=>i!==0?i/(t-1):0)}function jJ(e,t){return e.map(n=>n*t)}function fS({from:e=0,to:t=1,ease:n,offset:i,duration:o=300}){const s={done:!1,value:e},l=Array.isArray(t)?t:[e,t],p=jJ(i&&i.length===l.length?i:UJ(l),o);function m(){return J$(p,l,{ease:Array.isArray(n)?n:BJ(l,n)})}let v=m();return{next:g=>(s.value=v(g),s.done=g>=o,s),flipTarget:()=>{l.reverse(),v=m()}}}function VJ({velocity:e=0,from:t=0,power:n=.8,timeConstant:i=350,restDelta:o=.5,modifyTarget:s}){const l={done:!1,value:t};let p=n*e;const m=t+p,v=s===void 0?m:s(m);return v!==m&&(p=v-t),{next:g=>{const b=-p*Math.exp(-g/i);return l.done=!(b>o||b<-o),l.value=l.done?v:v+b,l},flipTarget:()=>{}}}const bO={keyframes:fS,spring:L8,decay:VJ};function HJ(e){if(Array.isArray(e.to))return fS;if(bO[e.type])return bO[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?fS:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?L8:fS}const iF=1/60*1e3,WJ=typeof performance<"u"?()=>performance.now():()=>Date.now(),aF=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(WJ()),iF);function GJ(e){let t=[],n=[],i=0,o=!1,s=!1;const l=new WeakSet,p={schedule:(m,v=!1,g=!1)=>{const b=g&&o,w=b?t:n;return v&&l.add(m),w.indexOf(m)===-1&&(w.push(m),b&&o&&(i=t.length)),m},cancel:m=>{const v=n.indexOf(m);v!==-1&&n.splice(v,1),l.delete(m)},process:m=>{if(o){s=!0;return}if(o=!0,[t,n]=[n,t],n.length=0,i=t.length,i)for(let v=0;v<i;v++){const g=t[v];g(m),l.has(g)&&(p.schedule(g),e())}o=!1,s&&(s=!1,p.process(m))}};return p}const YJ=40;let AE=!0,gb=!1,LE=!1;const Pv={delta:0,timestamp:0},Hb=["read","update","preRender","render","postRender"],V3=Hb.reduce((e,t)=>(e[t]=GJ(()=>gb=!0),e),{}),qJ=Hb.reduce((e,t)=>{const n=V3[t];return e[t]=(i,o=!1,s=!1)=>(gb||XJ(),n.schedule(i,o,s)),e},{}),ZJ=Hb.reduce((e,t)=>(e[t]=V3[t].cancel,e),{});Hb.reduce((e,t)=>(e[t]=()=>V3[t].process(Pv),e),{});const KJ=e=>V3[e].process(Pv),oF=e=>{gb=!1,Pv.delta=AE?iF:Math.max(Math.min(e-Pv.timestamp,YJ),1),Pv.timestamp=e,LE=!0,Hb.forEach(KJ),LE=!1,gb&&(AE=!1,aF(oF))},XJ=()=>{gb=!0,AE=!0,LE||aF(oF)},QJ=()=>Pv;function sF(e,t,n=0){return e-t-n}function JJ(e,t,n=0,i=!0){return i?sF(t+-e,t,n):t-(e-t)+n}function eee(e,t,n,i){return i?e>=t+n:e<=-n}const tee=e=>{const t=({delta:n})=>e(n);return{start:()=>qJ.update(t,!0),stop:()=>ZJ.update(t)}};function lF(e){var t,n,{from:i,autoplay:o=!0,driver:s=tee,elapsed:l=0,repeat:p=0,repeatType:m="loop",repeatDelay:v=0,onPlay:g,onStop:b,onComplete:w,onRepeat:C,onUpdate:T}=e,R=B3(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:L}=R,D,P=0,I=R.duration,F,z=!1,q=!0,Y;const Q=HJ(R);!((n=(t=Q).needsInterpolation)===null||n===void 0)&&n.call(t,i,L)&&(Y=J$([0,100],[i,L],{clamp:!1}),i=0,L=100);const ie=Q(Object.assign(Object.assign({},R),{from:i,to:L}));function ae(){P++,m==="reverse"?(q=P%2===0,l=JJ(l,I,v,q)):(l=sF(l,I,v),m==="mirror"&&ie.flipTarget()),z=!1,C&&C()}function me(){D.stop(),w&&w()}function ze(ee){if(q||(ee=-ee),l+=ee,!z){const we=ie.next(Math.max(0,l));F=we.value,Y&&(F=Y(F)),z=q?we.done:l<=0}T?.(F),z&&(P===0&&(I??(I=l)),P<p?eee(l,I,v,q)&&ae():me())}function te(){g?.(),D=s(ze),D.start()}return o&&te(),{stop:()=>{b?.(),D.stop()}}}function uF(e,t){return t?e*(1e3/t):0}function nee({from:e=0,velocity:t=0,min:n,max:i,power:o=.8,timeConstant:s=750,bounceStiffness:l=500,bounceDamping:p=10,restDelta:m=1,modifyTarget:v,driver:g,onUpdate:b,onComplete:w,onStop:C}){let T;function R(I){return n!==void 0&&I<n||i!==void 0&&I>i}function L(I){return n===void 0?i:i===void 0||Math.abs(n-I)<Math.abs(i-I)?n:i}function D(I){T?.stop(),T=lF(Object.assign(Object.assign({},I),{driver:g,onUpdate:F=>{var z;b?.(F),(z=I.onUpdate)===null||z===void 0||z.call(I,F)},onComplete:w,onStop:C}))}function P(I){D(Object.assign({type:"spring",stiffness:l,damping:p,restDelta:m},I))}if(R(e))P({from:e,velocity:t,to:L(e)});else{let I=o*t+e;typeof v<"u"&&(I=v(I));const F=L(I),z=F===n?-1:1;let q,Y;const Q=ie=>{q=Y,Y=ie,t=uF(ie-q,QJ().delta),(z===1&&ie>F||z===-1&&ie<F)&&P({from:ie,to:F,velocity:t})};D({type:"decay",from:e,velocity:t,timeConstant:s,power:o,restDelta:m,modifyTarget:v,onUpdate:R(I)?Q:void 0})}return{stop:()=>T?.stop()}}const OE=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),yO=e=>OE(e)&&e.hasOwnProperty("z"),x5=(e,t)=>Math.abs(e-t);function $8(e,t){if(kE(e)&&kE(t))return x5(e,t);if(OE(e)&&OE(t)){const n=x5(e.x,t.x),i=x5(e.y,t.y),o=yO(e)&&yO(t)?x5(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(i,2)+Math.pow(o,2))}}const cF=(e,t)=>1-3*t+3*e,fF=(e,t)=>3*t-6*e,dF=e=>3*e,GS=(e,t,n)=>((cF(t,n)*e+fF(t,n))*e+dF(t))*e,pF=(e,t,n)=>3*cF(t,n)*e*e+2*fF(t,n)*e+dF(t),ree=1e-7,iee=10;function aee(e,t,n,i,o){let s,l,p=0;do l=t+(n-t)/2,s=GS(l,i,o)-e,s>0?n=l:t=l;while(Math.abs(s)>ree&&++p<iee);return l}const oee=8,see=.001;function lee(e,t,n,i){for(let o=0;o<oee;++o){const s=pF(t,n,i);if(s===0)return t;t-=(GS(t,n,i)-e)/s}return t}const dS=11,S5=1/(dS-1);function uee(e,t,n,i){if(e===t&&n===i)return M8;const o=new Float32Array(dS);for(let l=0;l<dS;++l)o[l]=GS(l*S5,e,n);function s(l){let p=0,m=1;const v=dS-1;for(;m!==v&&o[m]<=l;++m)p+=S5;--m;const g=(l-o[m])/(o[m+1]-o[m]),b=p+g*S5,w=pF(b,e,n);return w>=see?lee(l,b,e,n):w===0?b:aee(l,p,p+S5,e,n)}return l=>l===0||l===1?l:GS(s(l),t,i)}function cee({onTap:e,onTapStart:t,onTapCancel:n,whileTap:i,visualElement:o}){const s=e||t||n||i,l=E.exports.useRef(!1),p=E.exports.useRef(null),m={passive:!(t||e||n||C)};function v(){p.current&&p.current(),p.current=null}function g(){return v(),l.current=!1,o.animationState&&o.animationState.setActive(Ar.Tap,!1),!Y$()}function b(T,R){!g()||(q$(o.getInstance(),T.target)?e&&e(T,R):n&&n(T,R))}function w(T,R){!g()||n&&n(T,R)}function C(T,R){v(),!l.current&&(l.current=!0,p.current=U3(Mv(window,"pointerup",b,m),Mv(window,"pointercancel",w,m)),o.animationState&&o.animationState.setActive(Ar.Tap,!0),t&&t(T,R))}VS(o,"pointerdown",s?C:void 0,m),A8(v)}const fee="production",F8=typeof process>"u"||process.env===void 0?fee:"development",xO=new Set;function z8(e,t,n){e||xO.has(t)||(console.warn(t),n&&console.warn(n),xO.add(t))}const ME=new WeakMap,X6=new WeakMap,dee=e=>{const t=ME.get(e.target);t&&t(e)},pee=e=>{e.forEach(dee)};function mee({root:e,...t}){const n=e||document;X6.has(n)||X6.set(n,{});const i=X6.get(n),o=JSON.stringify(t);return i[o]||(i[o]=new IntersectionObserver(pee,{root:e,...t})),i[o]}function hee(e,t,n){const i=mee(t);return ME.set(e,n),i.observe(e),()=>{ME.delete(e),i.unobserve(e)}}function vee({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:i,viewport:o={}}){const s=E.exports.useRef({hasEnteredView:!1,isInView:!1});let l=Boolean(t||n||i);o.once&&s.current.hasEnteredView&&(l=!1),(typeof IntersectionObserver>"u"?yee:bee)(l,s.current,e,o)}const gee={some:0,all:1};function bee(e,t,n,{root:i,margin:o,amount:s="some",once:l}){E.exports.useEffect(()=>{if(!e)return;const p={root:i?.current,rootMargin:o,threshold:typeof s=="number"?s:gee[s]},m=v=>{const{isIntersecting:g}=v;if(t.isInView===g||(t.isInView=g,l&&!g&&t.hasEnteredView))return;g&&(t.hasEnteredView=!0),n.animationState&&n.animationState.setActive(Ar.InView,g);const b=n.getProps(),w=g?b.onViewportEnter:b.onViewportLeave;w&&w(v)};return hee(n.getInstance(),p,m)},[e,i,o,s])}function yee(e,t,n,{fallback:i=!0}){E.exports.useEffect(()=>{!e||!i||(F8!=="production"&&z8(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;const{onViewportEnter:o}=n.getProps();o&&o(null),n.animationState&&n.animationState.setActive(Ar.InView,!0)}))},[e])}const gd=e=>t=>(e(t),null),xee={inView:gd(vee),tap:gd(cee),focus:gd(KQ),hover:gd(oJ)};function B8(){const e=E.exports.useContext(t0);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:i}=e,o=E.exports.useId();return E.exports.useEffect(()=>i(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}function See(){return wee(E.exports.useContext(t0))}function wee(e){return e===null?!0:e.isPresent}function mF(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}const YS=e=>e*1e3,SO={linear:M8,easeIn:P8,easeInOut:nF,easeOut:AJ,circIn:rF,circInOut:LJ,circOut:I8,backIn:D8,backInOut:MJ,backOut:OJ,anticipate:PJ,bounceIn:FJ,bounceInOut:zJ,bounceOut:WS},wO=e=>{if(Array.isArray(e)){nl(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,i,o]=e;return uee(t,n,i,o)}else if(typeof e=="string")return nl(SO[e]!==void 0,`Invalid easing type '${e}'`),SO[e];return e},Cee=e=>Array.isArray(e)&&typeof e[0]!="number",CO=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&Yc.test(t)&&!t.startsWith("url(")),Jp=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),w5=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Q6=()=>({type:"keyframes",ease:"linear",duration:.3}),Nee=e=>({type:"keyframes",duration:.8,values:e}),NO={x:Jp,y:Jp,z:Jp,rotate:Jp,rotateX:Jp,rotateY:Jp,rotateZ:Jp,scaleX:w5,scaleY:w5,scale:w5,opacity:Q6,backgroundColor:Q6,color:Q6,default:w5},Eee=(e,t)=>{let n;return hb(t)?n=Nee:n=NO[e]||NO.default,{to:t,...n(t)}},_ee={...k$,color:go,backgroundColor:go,outlineColor:go,fill:go,stroke:go,borderColor:go,borderTopColor:go,borderRightColor:go,borderBottomColor:go,borderLeftColor:go,filter:EE,WebkitFilter:EE},U8=e=>_ee[e];function j8(e,t){var n;let i=U8(e);return i!==EE&&(i=Yc),(n=i.getAnimatableNone)===null||n===void 0?void 0:n.call(i,t)}const Tee={current:!1};function Ree({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:o,repeat:s,repeatType:l,repeatDelay:p,from:m,...v}){return!!Object.keys(v).length}let EO=!1;function kee({ease:e,times:t,yoyo:n,flip:i,loop:o,...s}){const l={...s};return t&&(l.offset=t),s.duration&&(l.duration=YS(s.duration)),s.repeatDelay&&(l.repeatDelay=YS(s.repeatDelay)),e&&(l.ease=Cee(e)?e.map(wO):wO(e)),s.type==="tween"&&(l.type="keyframes"),(n||o||i)&&(Vb(!EO,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),EO=!0,n?l.repeatType="reverse":o?l.repeatType="loop":i&&(l.repeatType="mirror"),l.repeat=o||n||i||s.repeat),s.type!=="spring"&&(l.type="keyframes"),l}function Aee(e,t){var n,i;return(i=(n=(V8(e,t)||{}).delay)!==null&&n!==void 0?n:e.delay)!==null&&i!==void 0?i:0}function Lee(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=[...e.to],e.to[0]=e.from),e}function Oee(e,t,n){return Array.isArray(t.to)&&e.duration===void 0&&(e.duration=.8),Lee(t),Ree(e)||(e={...e,...Eee(n,t.to)}),{...t,...kee(e)}}function Mee(e,t,n,i,o){const s=V8(i,e)||{};let l=s.from!==void 0?s.from:t.get();const p=CO(e,n);l==="none"&&p&&typeof n=="string"?l=j8(e,n):_O(l)&&typeof n=="string"?l=TO(n):!Array.isArray(n)&&_O(n)&&typeof l=="string"&&(n=TO(l));const m=CO(e,l);Vb(m===p,`You are trying to animate ${e} from "${l}" to "${n}". ${l} is not an animatable value - to enable this animation set ${l} to a value animatable to ${n} via the \`style\` property.`);function v(){const b={from:l,to:n,velocity:t.getVelocity(),onComplete:o,onUpdate:w=>t.set(w)};return s.type==="inertia"||s.type==="decay"?nee({...b,...s}):lF({...Oee(s,b,e),onUpdate:w=>{b.onUpdate(w),s.onUpdate&&s.onUpdate(w)},onComplete:()=>{b.onComplete(),s.onComplete&&s.onComplete()}})}function g(){const b=z$(n);return t.set(b),o(),s.onUpdate&&s.onUpdate(b),s.onComplete&&s.onComplete(),{stop:()=>{}}}return!m||!p||s.type===!1?g:v}function _O(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function TO(e){return typeof e=="number"?0:j8("",e)}function V8(e,t){return e[t]||e.default||e}function H8(e,t,n,i={}){return Tee.current&&(i={type:!1}),t.start(o=>{let s,l;const p=Mee(e,t,n,i,o),m=Aee(i,e),v=()=>l=p();return m?s=window.setTimeout(v,YS(m)):v(),()=>{clearTimeout(s),l&&l.stop()}})}const Pee=e=>/^\-?\d*\.?\d+$/.test(e),Iee=e=>/^0[^.\s]+$/.test(e),hF=1/60*1e3,Dee=typeof performance<"u"?()=>performance.now():()=>Date.now(),vF=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(Dee()),hF);function $ee(e){let t=[],n=[],i=0,o=!1,s=!1;const l=new WeakSet,p={schedule:(m,v=!1,g=!1)=>{const b=g&&o,w=b?t:n;return v&&l.add(m),w.indexOf(m)===-1&&(w.push(m),b&&o&&(i=t.length)),m},cancel:m=>{const v=n.indexOf(m);v!==-1&&n.splice(v,1),l.delete(m)},process:m=>{if(o){s=!0;return}if(o=!0,[t,n]=[n,t],n.length=0,i=t.length,i)for(let v=0;v<i;v++){const g=t[v];g(m),l.has(g)&&(p.schedule(g),e())}o=!1,s&&(s=!1,p.process(m))}};return p}const Fee=40;let PE=!0,bb=!1,IE=!1;const Iv={delta:0,timestamp:0},Wb=["read","update","preRender","render","postRender"],H3=Wb.reduce((e,t)=>(e[t]=$ee(()=>bb=!0),e),{}),Bu=Wb.reduce((e,t)=>{const n=H3[t];return e[t]=(i,o=!1,s=!1)=>(bb||Bee(),n.schedule(i,o,s)),e},{}),yb=Wb.reduce((e,t)=>(e[t]=H3[t].cancel,e),{}),J6=Wb.reduce((e,t)=>(e[t]=()=>H3[t].process(Iv),e),{}),zee=e=>H3[e].process(Iv),gF=e=>{bb=!1,Iv.delta=PE?hF:Math.max(Math.min(e-Iv.timestamp,Fee),1),Iv.timestamp=e,IE=!0,Wb.forEach(zee),IE=!1,bb&&(PE=!1,vF(gF))},Bee=()=>{bb=!0,PE=!0,IE||vF(gF)},DE=()=>Iv;function W8(e,t){e.indexOf(t)===-1&&e.push(t)}function G8(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Zg{constructor(){this.subscriptions=[]}add(t){return W8(this.subscriptions,t),()=>G8(this.subscriptions,t)}notify(t,n,i){const o=this.subscriptions.length;if(!!o)if(o===1)this.subscriptions[0](t,n,i);else for(let s=0;s<o;s++){const l=this.subscriptions[s];l&&l(t,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Uee=e=>!isNaN(parseFloat(e));class jee{constructor(t){this.version="7.3.5",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Zg,this.velocityUpdateSubscribers=new Zg,this.renderSubscribers=new Zg,this.canTrackVelocity=!1,this.updateAndNotify=(n,i=!0)=>{this.prev=this.current,this.current=n;const{delta:o,timestamp:s}=DE();this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,Bu.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=()=>Bu.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=Uee(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,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?uF(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.stopAnimation=t(n)}).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 Hv(e){return new jee(e)}const bF=e=>t=>t.test(e),Vee={test:e=>e==="auto",parse:e=>e},yF=[km,Qt,zu,ud,yQ,bQ,Vee],_g=e=>yF.find(bF(e)),Hee=[...yF,go,Yc],Wee=e=>Hee.find(bF(e));function Gee(e){const t={};return e.forEachValue((n,i)=>t[i]=n.get()),t}function Yee(e){const t={};return e.forEachValue((n,i)=>t[i]=n.getVelocity()),t}function W3(e,t,n){const i=e.getProps();return F$(i,t,n!==void 0?n:i.custom,Gee(e),Yee(e))}function qee(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Hv(n))}function Zee(e,t){const n=W3(e,t);let{transitionEnd:i={},transition:o={},...s}=n?e.makeTargetAnimatable(n,!1):{};s={...s,...i};for(const l in s){const p=z$(s[l]);qee(e,l,p)}}function Kee(e,t,n){var i,o;const s=Object.keys(t).filter(p=>!e.hasValue(p)),l=s.length;if(!!l)for(let p=0;p<l;p++){const m=s[p],v=t[m];let g=null;Array.isArray(v)&&(g=v[0]),g===null&&(g=(o=(i=n[m])!==null&&i!==void 0?i:e.readValue(m))!==null&&o!==void 0?o:t[m]),g!=null&&(typeof g=="string"&&(Pee(g)||Iee(g))?g=parseFloat(g):!Wee(g)&&Yc.test(v)&&(g=j8(m,v)),e.addValue(m,Hv(g)),n[m]===void 0&&(n[m]=g),e.setBaseTarget(m,g))}}function Xee(e,t){return t?(t[e]||t.default||t).from:void 0}function Qee(e,t,n){var i;const o={};for(const s in e){const l=Xee(s,t);o[s]=l!==void 0?l:(i=n.getValue(s))===null||i===void 0?void 0:i.get()}return o}function qS(e){return Boolean(Hu(e)&&e.add)}function Jee(e,t,n={}){e.notifyAnimationStart(t);let i;if(Array.isArray(t)){const o=t.map(s=>$E(e,s,n));i=Promise.all(o)}else if(typeof t=="string")i=$E(e,t,n);else{const o=typeof t=="function"?W3(e,t,n.custom):t;i=xF(e,o,n)}return i.then(()=>e.notifyAnimationComplete(t))}function $E(e,t,n={}){var i;const o=W3(e,t,n.custom);let{transition:s=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(s=n.transitionOverride);const l=o?()=>xF(e,o,n):()=>Promise.resolve(),p=!((i=e.variantChildren)===null||i===void 0)&&i.size?(v=0)=>{const{delayChildren:g=0,staggerChildren:b,staggerDirection:w}=s;return ete(e,t,g+v,b,w,n)}:()=>Promise.resolve(),{when:m}=s;if(m){const[v,g]=m==="beforeChildren"?[l,p]:[p,l];return v().then(g)}else return Promise.all([l(),p(n.delay)])}function xF(e,t,{delay:n=0,transitionOverride:i,type:o}={}){var s;let{transition:l=e.getDefaultTransition(),transitionEnd:p,...m}=e.makeTargetAnimatable(t);const v=e.getValue("willChange");i&&(l=i);const g=[],b=o&&((s=e.animationState)===null||s===void 0?void 0:s.getState()[o]);for(const w in m){const C=e.getValue(w),T=m[w];if(!C||T===void 0||b&&nte(b,w))continue;let R={delay:n,...l};e.shouldReduceMotion&&Bb.has(w)&&(R={...R,type:!1,delay:0});let L=H8(w,C,T,R);qS(v)&&(v.add(w),L=L.then(()=>v.remove(w))),g.push(L)}return Promise.all(g).then(()=>{p&&Zee(e,p)})}function ete(e,t,n=0,i=0,o=1,s){const l=[],p=(e.variantChildren.size-1)*i,m=o===1?(v=0)=>v*i:(v=0)=>p-v*i;return Array.from(e.variantChildren).sort(tte).forEach((v,g)=>{l.push($E(v,t,{...s,delay:n+m(g)}).then(()=>v.notifyAnimationComplete(t)))}),Promise.all(l)}function tte(e,t){return e.sortNodePosition(t)}function nte({protectedKeys:e,needsAnimating:t},n){const i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}const Y8=[Ar.Animate,Ar.InView,Ar.Focus,Ar.Hover,Ar.Tap,Ar.Drag,Ar.Exit],rte=[...Y8].reverse(),ite=Y8.length;function ate(e){return t=>Promise.all(t.map(({animation:n,options:i})=>Jee(e,n,i)))}function ote(e){let t=ate(e);const n=lte();let i=!0;const o=(m,v)=>{const g=W3(e,v);if(g){const{transition:b,transitionEnd:w,...C}=g;m={...m,...C,...w}}return m};function s(m){t=m(e)}function l(m,v){var g;const b=e.getProps(),w=e.getVariantContext(!0)||{},C=[],T=new Set;let R={},L=1/0;for(let P=0;P<ite;P++){const I=rte[P],F=n[I],z=(g=b[I])!==null&&g!==void 0?g:w[I],q=db(z),Y=I===v?F.isActive:null;Y===!1&&(L=P);let Q=z===w[I]&&z!==b[I]&&q;if(Q&&i&&e.manuallyAnimateOnMount&&(Q=!1),F.protectedKeys={...R},!F.isActive&&Y===null||!z&&!F.prevProp||D3(z)||typeof z=="boolean")continue;const ie=ste(F.prevProp,z);let ae=ie||I===v&&F.isActive&&!Q&&q||P>L&&q;const me=Array.isArray(z)?z:[z];let ze=me.reduce(o,{});Y===!1&&(ze={});const{prevResolvedValues:te={}}=F,ee={...te,...ze},we=ye=>{ae=!0,T.delete(ye),F.needsAnimating[ye]=!0};for(const ye in ee){const K=ze[ye],le=te[ye];R.hasOwnProperty(ye)||(K!==le?hb(K)&&hb(le)?!mF(K,le)||ie?we(ye):F.protectedKeys[ye]=!0:K!==void 0?we(ye):T.add(ye):K!==void 0&&T.has(ye)?we(ye):F.protectedKeys[ye]=!0)}F.prevProp=z,F.prevResolvedValues=ze,F.isActive&&(R={...R,...ze}),i&&e.blockInitialAnimation&&(ae=!1),ae&&!Q&&C.push(...me.map(ye=>({animation:ye,options:{type:I,...m}})))}if(T.size){const P={};T.forEach(I=>{const F=e.getBaseTarget(I);F!==void 0&&(P[I]=F)}),C.push({animation:P})}let D=Boolean(C.length);return i&&b.initial===!1&&!e.manuallyAnimateOnMount&&(D=!1),i=!1,D?t(C):Promise.resolve()}function p(m,v,g){var b;if(n[m].isActive===v)return Promise.resolve();(b=e.variantChildren)===null||b===void 0||b.forEach(C=>{var T;return(T=C.animationState)===null||T===void 0?void 0:T.setActive(m,v)}),n[m].isActive=v;const w=l(g,m);for(const C in n)n[C].protectedKeys={};return w}return{animateChanges:l,setActive:p,setAnimateFunction:s,getState:()=>n}}function ste(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!mF(t,e):!1}function em(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function lte(){return{[Ar.Animate]:em(!0),[Ar.InView]:em(),[Ar.Hover]:em(),[Ar.Tap]:em(),[Ar.Drag]:em(),[Ar.Focus]:em(),[Ar.Exit]:em()}}const ute={animation:gd(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=ote(e)),D3(t)&&E.exports.useEffect(()=>t.subscribe(e),[t])}),exit:gd(e=>{const{custom:t,visualElement:n}=e,[i,o]=B8(),s=E.exports.useContext(t0);E.exports.useEffect(()=>{n.isPresent=i;const l=n.animationState&&n.animationState.setActive(Ar.Exit,!i,{custom:s&&s.custom||t});l&&!i&&l.then(o)},[i])})};class SF{constructor(t,n,{transformPagePoint:i}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=t7(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,b=$8(v.offset,{x:0,y:0})>=3;if(!g&&!b)return;const{point:w}=v,{timestamp:C}=DE();this.history.push({...w,timestamp:C});const{onStart:T,onMove:R}=this.handlers;g||(T&&T(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),R&&R(this.lastMoveEvent,v)},this.handlePointerMove=(v,g)=>{if(this.lastMoveEvent=v,this.lastMoveEventInfo=e7(g,this.transformPagePoint),U$(v)&&v.buttons===0){this.handlePointerUp(v,g);return}Bu.update(this.updatePoint,!0)},this.handlePointerUp=(v,g)=>{this.end();const{onEnd:b,onSessionEnd:w}=this.handlers,C=t7(e7(g,this.transformPagePoint),this.history);this.startEvent&&b&&b(v,C),w&&w(v,C)},j$(t)&&t.touches.length>1)return;this.handlers=n,this.transformPagePoint=i;const o=k8(t),s=e7(o,this.transformPagePoint),{point:l}=s,{timestamp:p}=DE();this.history=[{...l,timestamp:p}];const{onSessionStart:m}=n;m&&m(t,t7(s,this.history)),this.removeListeners=U3(Mv(window,"pointermove",this.handlePointerMove),Mv(window,"pointerup",this.handlePointerUp),Mv(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),yb.update(this.updatePoint)}}function e7(e,t){return t?{point:t(e.point)}:e}function RO(e,t){return{x:e.x-t.x,y:e.y-t.y}}function t7({point:e},t){return{point:e,delta:RO(e,wF(t)),offset:RO(e,cte(t)),velocity:fte(t,.1)}}function cte(e){return e[0]}function wF(e){return e[e.length-1]}function fte(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null;const o=wF(e);for(;n>=0&&(i=e[n],!(o.timestamp-i.timestamp>YS(t)));)n--;if(!i)return{x:0,y:0};const s=(o.timestamp-i.timestamp)/1e3;if(s===0)return{x:0,y:0};const l={x:(o.x-i.x)/s,y:(o.y-i.y)/s};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function ys(e){return e.max-e.min}function kO(e,t=0,n=.01){return $8(e,t)<n}function AO(e,t,n,i=.5){e.origin=i,e.originPoint=ni(t.min,t.max,e.origin),e.scale=ys(n)/ys(t),(kO(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=ni(n.min,n.max,e.origin)-e.originPoint,(kO(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Kg(e,t,n,i){AO(e.x,t.x,n.x,i?.originX),AO(e.y,t.y,n.y,i?.originY)}function LO(e,t,n){e.min=n.min+t.min,e.max=e.min+ys(t)}function dte(e,t,n){LO(e.x,t.x,n.x),LO(e.y,t.y,n.y)}function OO(e,t,n){e.min=t.min-n.min,e.max=e.min+ys(t)}function Xg(e,t,n){OO(e.x,t.x,n.x),OO(e.y,t.y,n.y)}function pte(e,{min:t,max:n},i){return t!==void 0&&e<t?e=i?ni(t,e,i.min):Math.max(e,t):n!==void 0&&e>n&&(e=i?ni(n,e,i.max):Math.min(e,n)),e}function MO(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function mte(e,{top:t,left:n,bottom:i,right:o}){return{x:MO(e.x,n,o),y:MO(e.y,t,i)}}function PO(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,i]=[i,n]),{min:n,max:i}}function hte(e,t){return{x:PO(e.x,t.x),y:PO(e.y,t.y)}}function vte(e,t){let n=.5;const i=ys(e),o=ys(t);return o>i?n=vb(t.min,t.max-i,e.min):i>o&&(n=vb(e.min,e.max-o,t.min)),HS(0,1,n)}function gte(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const FE=.35;function bte(e=FE){return e===!1?e=0:e===!0&&(e=FE),{x:IO(e,"left","right"),y:IO(e,"top","bottom")}}function IO(e,t,n){return{min:DO(e,t),max:DO(e,n)}}function DO(e,t){var n;return typeof e=="number"?e:(n=e[t])!==null&&n!==void 0?n:0}const $O=()=>({translate:0,scale:1,origin:0,originPoint:0}),Qg=()=>({x:$O(),y:$O()}),FO=()=>({min:0,max:0}),_a=()=>({x:FO(),y:FO()});function ku(e){return[e("x"),e("y")]}function CF({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function yte({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function xte(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function n7(e){return e===void 0||e===1}function NF({scale:e,scaleX:t,scaleY:n}){return!n7(e)||!n7(t)||!n7(n)}function cd(e){return NF(e)||zO(e.x)||zO(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function zO(e){return e&&e!=="0%"}function ZS(e,t,n){const i=e-n,o=t*i;return n+o}function BO(e,t,n,i,o){return o!==void 0&&(e=ZS(e,o,i)),ZS(e,n,i)+t}function zE(e,t=0,n=1,i,o){e.min=BO(e.min,t,n,i,o),e.max=BO(e.max,t,n,i,o)}function EF(e,{x:t,y:n}){zE(e.x,t.translate,t.scale,t.originPoint),zE(e.y,n.translate,n.scale,n.originPoint)}function Ste(e,t,n,i=!1){var o,s;const l=n.length;if(!l)return;t.x=t.y=1;let p,m;for(let v=0;v<l;v++)p=n[v],m=p.projectionDelta,((s=(o=p.instance)===null||o===void 0?void 0:o.style)===null||s===void 0?void 0:s.display)!=="contents"&&(i&&p.options.layoutScroll&&p.scroll&&p!==p.root&&Rv(e,{x:-p.scroll.x,y:-p.scroll.y}),m&&(t.x*=m.x.scale,t.y*=m.y.scale,EF(e,m)),i&&cd(p.latestValues)&&Rv(e,p.latestValues))}function dd(e,t){e.min=e.min+t,e.max=e.max+t}function UO(e,t,[n,i,o]){const s=t[o]!==void 0?t[o]:.5,l=ni(e.min,e.max,s);zE(e,t[n],t[i],l,t.scale)}const wte=["x","scaleX","originX"],Cte=["y","scaleY","originY"];function Rv(e,t){UO(e.x,t,wte),UO(e.y,t,Cte)}function _F(e,t){return CF(xte(e.getBoundingClientRect(),t))}function Nte(e,t,n){const i=_F(e,n),{scroll:o}=t;return o&&(dd(i.x,o.x),dd(i.y,o.y)),i}const Ete=new WeakMap;class _te{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=_a(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){if(this.visualElement.isPresent===!1)return;const i=p=>{this.stopAnimation(),n&&this.snapToCursor(k8(p,"page").point)},o=(p,m)=>{var v;const{drag:g,dragPropagation:b,onDragStart:w}=this.getProps();g&&!b&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=G$(g),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ku(C=>{var T,R;let L=this.getAxisMotionValue(C).get()||0;if(zu.test(L)){const D=(R=(T=this.visualElement.projection)===null||T===void 0?void 0:T.layout)===null||R===void 0?void 0:R.actual[C];D&&(L=ys(D)*(parseFloat(L)/100))}this.originPoint[C]=L}),w?.(p,m),(v=this.visualElement.animationState)===null||v===void 0||v.setActive(Ar.Drag,!0))},s=(p,m)=>{const{dragPropagation:v,dragDirectionLock:g,onDirectionLock:b,onDrag:w}=this.getProps();if(!v&&!this.openGlobalLock)return;const{offset:C}=m;if(g&&this.currentDirection===null){this.currentDirection=Tte(C),this.currentDirection!==null&&b?.(this.currentDirection);return}this.updateAxis("x",m.point,C),this.updateAxis("y",m.point,C),this.visualElement.syncRender(),w?.(p,m)},l=(p,m)=>this.stop(p,m);this.panSession=new SF(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:l},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,n){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:s}=this.getProps();s?.(t,n)}cancel(){var t,n;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),(n=this.visualElement.animationState)===null||n===void 0||n.setActive(Ar.Drag,!1)}updateAxis(t,n,i){const{drag:o}=this.getProps();if(!i||!C5(t,o,this.currentDirection))return;const s=this.getAxisMotionValue(t);let l=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(l=pte(l,this.constraints[t],this.elastic[t])),s.set(l)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),{layout:i}=this.visualElement.projection||{},o=this.constraints;t&&Tv(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=mte(i.actual,t):this.constraints=!1,this.elastic=bte(n),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&ku(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=gte(i.actual[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Tv(t))return!1;const i=t.current;nl(i!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const s=Nte(i,o.root,this.visualElement.getTransformPagePoint());let l=hte(o.layout.actual,s);if(n){const p=n(yte(l));this.hasMutatedConstraints=!!p,p&&(l=CF(p))}return l}startAnimation(t){const{drag:n,dragMomentum:i,dragElastic:o,dragTransition:s,dragSnapToOrigin:l,onDragTransitionEnd:p}=this.getProps(),m=this.constraints||{},v=ku(g=>{var b;if(!C5(g,n,this.currentDirection))return;let w=(b=m?.[g])!==null&&b!==void 0?b:{};l&&(w={min:0,max:0});const C=o?200:1e6,T=o?40:1e7,R={type:"inertia",velocity:i?t[g]:0,bounceStiffness:C,bounceDamping:T,timeConstant:750,restDelta:1,restSpeed:10,...s,...w};return this.startAxisValueAnimation(g,R)});return Promise.all(v).then(p)}startAxisValueAnimation(t,n){const i=this.getAxisMotionValue(t);return H8(t,i,0,n)}stopAnimation(){ku(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var n,i;const o="_drag"+t.toUpperCase(),s=this.visualElement.getProps()[o];return s||this.visualElement.getValue(t,(i=(n=this.visualElement.getProps().initial)===null||n===void 0?void 0:n[t])!==null&&i!==void 0?i:0)}snapToCursor(t){ku(n=>{const{drag:i}=this.getProps();if(!C5(n,i,this.currentDirection))return;const{projection:o}=this.visualElement,s=this.getAxisMotionValue(n);if(o&&o.layout){const{min:l,max:p}=o.layout.actual[n];s.set(t[n]-ni(l,p,.5))}})}scalePositionWithinConstraints(){var t;const{drag:n,dragConstraints:i}=this.getProps(),{projection:o}=this.visualElement;if(!Tv(i)||!o||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};ku(p=>{const m=this.getAxisMotionValue(p);if(m){const v=m.get();s[p]=vte({min:v,max:v},this.constraints[p])}});const{transformTemplate:l}=this.visualElement.getProps();this.visualElement.getInstance().style.transform=l?l({},""):"none",(t=o.root)===null||t===void 0||t.updateScroll(),o.updateLayout(),this.resolveConstraints(),ku(p=>{if(!C5(p,n,null))return;const m=this.getAxisMotionValue(p),{min:v,max:g}=this.constraints[p];m.set(ni(v,g,s[p]))})}addListeners(){var t;Ete.set(this.visualElement,this);const n=this.visualElement.getInstance(),i=Mv(n,"pointerdown",v=>{const{drag:g,dragListener:b=!0}=this.getProps();g&&b&&this.start(v)}),o=()=>{const{dragConstraints:v}=this.getProps();Tv(v)&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,l=s.addEventListener("measure",o);s&&!s.layout&&((t=s.root)===null||t===void 0||t.updateScroll(),s.updateLayout()),o();const p=z3(window,"resize",()=>this.scalePositionWithinConstraints()),m=s.addEventListener("didUpdate",({delta:v,hasLayoutChanged:g})=>{this.isDragging&&g&&(ku(b=>{const w=this.getAxisMotionValue(b);!w||(this.originPoint[b]+=v[b].translate,w.set(w.get()+v[b].translate))}),this.visualElement.syncRender())});return()=>{p(),i(),l(),m?.()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:o=!1,dragConstraints:s=!1,dragElastic:l=FE,dragMomentum:p=!0}=t;return{...t,drag:n,dragDirectionLock:i,dragPropagation:o,dragConstraints:s,dragElastic:l,dragMomentum:p}}}function C5(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Tte(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}function Rte(e){const{dragControls:t,visualElement:n}=e,i=F3(()=>new _te(n));E.exports.useEffect(()=>t&&t.subscribe(i),[i,t]),E.exports.useEffect(()=>i.addListeners(),[i])}function kte({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:i,visualElement:o}){const s=e||t||n||i,l=E.exports.useRef(null),{transformPagePoint:p}=E.exports.useContext(S8),m={onSessionStart:i,onStart:t,onMove:e,onEnd:(g,b)=>{l.current=null,n&&n(g,b)}};E.exports.useEffect(()=>{l.current!==null&&l.current.updateHandlers(m)});function v(g){l.current=new SF(g,m,{transformPagePoint:p})}VS(o,"pointerdown",s&&v),A8(()=>l.current&&l.current.end())}const Ate={pan:gd(kte),drag:gd(Rte)},BE={current:null},TF={current:!1};function Lte(){if(TF.current=!0,!!Rm)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>BE.current=e.matches;e.addListener(t),t()}else BE.current=!1}const N5=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function Ote(){const e=N5.map(()=>new Zg),t={},n={clearAllListeners:()=>e.forEach(i=>i.clear()),updatePropListeners:i=>{N5.forEach(o=>{var s;const l="on"+o,p=i[l];(s=t[o])===null||s===void 0||s.call(t),p&&(t[o]=n[l](p))})}};return e.forEach((i,o)=>{n["on"+N5[o]]=s=>i.add(s),n["notify"+N5[o]]=(...s)=>i.notify(...s)}),n}function Mte(e,t,n){const{willChange:i}=t;for(const o in t){const s=t[o],l=n[o];if(Hu(s))e.addValue(o,s),qS(i)&&i.add(o),z8(s.version==="7.3.5",`Attempting to mix Framer Motion versions ${s.version} with 7.3.5 may not work as expected.`);else if(Hu(l))e.addValue(o,Hv(s)),qS(i)&&i.remove(o);else if(l!==s)if(e.hasValue(o)){const p=e.getValue(o);!p.hasAnimated&&p.set(s)}else{const p=e.getStaticValue(o);e.addValue(o,Hv(p!==void 0?p:s))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const RF=Object.keys(pb),Pte=RF.length,kF=({treeType:e="",build:t,getBaseTarget:n,makeTargetAnimatable:i,measureViewportBox:o,render:s,readValueFromInstance:l,removeValueFromRenderState:p,sortNodePosition:m,scrapeMotionValuesFromProps:v})=>({parent:g,props:b,presenceId:w,blockInitialAnimation:C,visualState:T,reducedMotionConfig:R},L={})=>{let D=!1;const{latestValues:P,renderState:I}=T;let F;const z=Ote(),q=new Map,Y=new Map;let Q={};const ie={...P};let ae;function me(){!F||!D||(ze(),s(F,I,b.style,ge.projection))}function ze(){t(ge,I,P,L,b)}function te(){z.notifyUpdate(P)}function ee(pe,Ee){const Oe=Ee.onChange(Xe=>{P[pe]=Xe,b.onUpdate&&Bu.update(te,!1,!0)}),Pe=Ee.onRenderRequest(ge.scheduleRender);Y.set(pe,()=>{Oe(),Pe()})}const{willChange:we,...ye}=v(b);for(const pe in ye){const Ee=ye[pe];P[pe]!==void 0&&Hu(Ee)&&(Ee.set(P[pe],!1),qS(we)&&we.add(pe))}const K=$3(b),le=b$(b),ge={treeType:e,current:null,depth:g?g.depth+1:0,parent:g,children:new Set,presenceId:w,shouldReduceMotion:null,variantChildren:le?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(g?.isMounted()),blockInitialAnimation:C,isMounted:()=>Boolean(F),mount(pe){D=!0,F=ge.current=pe,ge.projection&&ge.projection.mount(pe),le&&g&&!K&&(ae=g?.addVariantChild(ge)),q.forEach((Ee,Oe)=>ee(Oe,Ee)),TF.current||Lte(),ge.shouldReduceMotion=R==="never"?!1:R==="always"?!0:BE.current,g?.children.add(ge),ge.setProps(b)},unmount(){var pe;(pe=ge.projection)===null||pe===void 0||pe.unmount(),yb.update(te),yb.render(me),Y.forEach(Ee=>Ee()),ae?.(),g?.children.delete(ge),z.clearAllListeners(),F=void 0,D=!1},loadFeatures(pe,Ee,Oe,Pe,Xe,et){const at=[];F8!=="production"&&Oe&&Ee&&nl(!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 kt=0;kt<Pte;kt++){const He=RF[kt],{isEnabled:ot,Component:wt}=pb[He];ot(pe)&&wt&&at.push(E.exports.createElement(wt,{key:He,...pe,visualElement:ge}))}if(!ge.projection&&Xe){ge.projection=new Xe(Pe,ge.getLatestValues(),g&&g.projection);const{layoutId:kt,layout:He,drag:ot,dragConstraints:wt,layoutScroll:It}=pe;ge.projection.setOptions({layoutId:kt,layout:He,alwaysMeasureLayout:Boolean(ot)||wt&&Tv(wt),visualElement:ge,scheduleRender:()=>ge.scheduleRender(),animationType:typeof He=="string"?He:"both",initialPromotionConfig:et,layoutScroll:It})}return at},addVariantChild(pe){var Ee;const Oe=ge.getClosestVariantNode();if(Oe)return(Ee=Oe.variantChildren)===null||Ee===void 0||Ee.add(pe),()=>Oe.variantChildren.delete(pe)},sortNodePosition(pe){return!m||e!==pe.treeType?0:m(ge.getInstance(),pe.getInstance())},getClosestVariantNode:()=>le?ge:g?.getClosestVariantNode(),getLayoutId:()=>b.layoutId,getInstance:()=>F,getStaticValue:pe=>P[pe],setStaticValue:(pe,Ee)=>P[pe]=Ee,getLatestValues:()=>P,setVisibility(pe){ge.isVisible!==pe&&(ge.isVisible=pe,ge.scheduleRender())},makeTargetAnimatable(pe,Ee=!0){return i(ge,pe,b,Ee)},measureViewportBox(){return o(F,b)},addValue(pe,Ee){ge.hasValue(pe)&&ge.removeValue(pe),q.set(pe,Ee),P[pe]=Ee.get(),ee(pe,Ee)},removeValue(pe){var Ee;q.delete(pe),(Ee=Y.get(pe))===null||Ee===void 0||Ee(),Y.delete(pe),delete P[pe],p(pe,I)},hasValue:pe=>q.has(pe),getValue(pe,Ee){let Oe=q.get(pe);return Oe===void 0&&Ee!==void 0&&(Oe=Hv(Ee),ge.addValue(pe,Oe)),Oe},forEachValue:pe=>q.forEach(pe),readValue:pe=>P[pe]!==void 0?P[pe]:l(F,pe,L),setBaseTarget(pe,Ee){ie[pe]=Ee},getBaseTarget(pe){if(n){const Ee=n(b,pe);if(Ee!==void 0&&!Hu(Ee))return Ee}return ie[pe]},...z,build(){return ze(),I},scheduleRender(){Bu.render(me,!1,!0)},syncRender:me,setProps(pe){(pe.transformTemplate||b.transformTemplate)&&ge.scheduleRender(),b=pe,z.updatePropListeners(pe),Q=Mte(ge,v(b),Q)},getProps:()=>b,getVariant:pe=>{var Ee;return(Ee=b.variants)===null||Ee===void 0?void 0:Ee[pe]},getDefaultTransition:()=>b.transition,getTransformPagePoint:()=>b.transformPagePoint,getVariantContext(pe=!1){if(pe)return g?.getVariantContext();if(!K){const Oe=g?.getVariantContext()||{};return b.initial!==void 0&&(Oe.initial=b.initial),Oe}const Ee={};for(let Oe=0;Oe<Ite;Oe++){const Pe=AF[Oe],Xe=b[Pe];(db(Xe)||Xe===!1)&&(Ee[Pe]=Xe)}return Ee}};return ge},AF=["initial",...Y8],Ite=AF.length;function UE(e){return typeof e=="string"&&e.startsWith("var(--")}const LF=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Dte(e){const t=LF.exec(e);if(!t)return[,];const[,n,i]=t;return[n,i]}const $te=4;function jE(e,t,n=1){nl(n<=$te,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[i,o]=Dte(e);if(!i)return;const s=window.getComputedStyle(t).getPropertyValue(i);return s?s.trim():UE(o)?jE(o,t,n+1):o}function Fte(e,{...t},n){const i=e.getInstance();if(!(i instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.forEachValue(o=>{const s=o.get();if(!UE(s))return;const l=jE(s,i);l&&o.set(l)});for(const o in t){const s=t[o];if(!UE(s))continue;const l=jE(s,i);!l||(t[o]=l,n&&n[o]===void 0&&(n[o]=s))}return{target:t,transitionEnd:n}}const zte=new Set(["width","height","top","left","right","bottom","x","y"]),OF=e=>zte.has(e),Bte=e=>Object.keys(e).some(OF),MF=(e,t)=>{e.set(t,!1),e.set(t)},E5=e=>e===km||e===Qt;var jO;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(jO||(jO={}));const VO=(e,t)=>parseFloat(e.split(", ")[t]),HO=(e,t)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const o=i.match(/^matrix3d\((.+)\)$/);if(o)return VO(o[1],t);{const s=i.match(/^matrix\((.+)\)$/);return s?VO(s[1],e):0}},Ute=new Set(["x","y","z"]),jte=US.filter(e=>!Ute.has(e));function Vte(e){const t=[];return jte.forEach(n=>{const i=e.getValue(n);i!==void 0&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}const WO={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),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:HO(4,13),y:HO(5,14)},Hte=(e,t,n)=>{const i=t.measureViewportBox(),o=t.getInstance(),s=getComputedStyle(o),{display:l}=s,p={};l==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(v=>{p[v]=WO[v](i,s)}),t.syncRender();const m=t.measureViewportBox();return n.forEach(v=>{const g=t.getValue(v);MF(g,p[v]),e[v]=WO[v](m,s)}),e},Wte=(e,t,n={},i={})=>{t={...t},i={...i};const o=Object.keys(t).filter(OF);let s=[],l=!1;const p=[];if(o.forEach(m=>{const v=e.getValue(m);if(!e.hasValue(m))return;let g=n[m],b=_g(g);const w=t[m];let C;if(hb(w)){const T=w.length,R=w[0]===null?1:0;g=w[R],b=_g(g);for(let L=R;L<T;L++)C?nl(_g(w[L])===C,"All keyframes must be of the same type"):(C=_g(w[L]),nl(C===b||E5(b)&&E5(C),"Keyframes must be of the same dimension as the current value"))}else C=_g(w);if(b!==C)if(E5(b)&&E5(C)){const T=v.get();typeof T=="string"&&v.set(parseFloat(T)),typeof w=="string"?t[m]=parseFloat(w):Array.isArray(w)&&C===Qt&&(t[m]=w.map(parseFloat))}else b?.transform&&C?.transform&&(g===0||w===0)?g===0?v.set(C.transform(g)):t[m]=b.transform(w):(l||(s=Vte(e),l=!0),p.push(m),i[m]=i[m]!==void 0?i[m]:t[m],MF(v,w))}),p.length){const m=p.indexOf("height")>=0?window.pageYOffset:null,v=Hte(t,e,p);return s.length&&s.forEach(([g,b])=>{e.getValue(g).set(b)}),e.syncRender(),Rm&&m!==null&&window.scrollTo({top:m}),{target:v,transitionEnd:i}}else return{target:t,transitionEnd:i}};function Gte(e,t,n,i){return Bte(t)?Wte(e,t,n,i):{target:t,transitionEnd:i}}const Yte=(e,t,n,i)=>{const o=Fte(e,t,i);return t=o.target,i=o.transitionEnd,Gte(e,t,n,i)};function qte(e){return window.getComputedStyle(e)}const PF={treeType:"dom",readValueFromInstance(e,t){if(Bb.has(t)){const n=U8(t);return n&&n.default||0}else{const n=qte(e),i=(S$(t)?n.getPropertyValue(t):n[t])||0;return typeof i=="string"?i.trim():i}},sortNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1},getBaseTarget(e,t){var n;return(n=e.style)===null||n===void 0?void 0:n[t]},measureViewportBox(e,{transformPagePoint:t}){return _F(e,t)},resetTransform(e,t,n){const{transformTemplate:i}=n;t.style.transform=i?i({},""):"none",e.scheduleRender()},restoreTransform(e,t){e.style.transform=t.style.transform},removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]},makeTargetAnimatable(e,{transition:t,transitionEnd:n,...i},{transformValues:o},s=!0){let l=Qee(i,t||{},e);if(o&&(n&&(n=o(n)),i&&(i=o(i)),l&&(l=o(l))),s){Kee(e,i,l);const p=Yte(e,i,l,n);n=p.transitionEnd,i=p.target}return{transition:t,transitionEnd:n,...i}},scrapeMotionValuesFromProps:R8,build(e,t,n,i,o){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden"),E8(t,n,i,o.transformTemplate)},render:P$},Zte=kF(PF),Kte=kF({...PF,getBaseTarget(e,t){return e[t]},readValueFromInstance(e,t){var n;return Bb.has(t)?((n=U8(t))===null||n===void 0?void 0:n.default)||0:(t=I$.has(t)?t:M$(t),e.getAttribute(t))},scrapeMotionValuesFromProps:$$,build(e,t,n,i,o){T8(t,n,i,o.transformTemplate)},render:D$}),Xte=(e,t)=>C8(e)?Kte(t,{enableHardwareAcceleration:!1}):Zte(t,{enableHardwareAcceleration:!0});function GO(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Tg={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Qt.test(e))e=parseFloat(e);else return e;const n=GO(e,t.target.x),i=GO(e,t.target.y);return`${n}% ${i}%`}},YO="_$css",Qte={correct:(e,{treeScale:t,projectionDelta:n})=>{const i=e,o=e.includes("var("),s=[];o&&(e=e.replace(LF,C=>(s.push(C),YO)));const l=Yc.parse(e);if(l.length>5)return i;const p=Yc.createTransformer(e),m=typeof l[0]!="number"?1:0,v=n.x.scale*t.x,g=n.y.scale*t.y;l[0+m]/=v,l[1+m]/=g;const b=ni(v,g,.5);typeof l[2+m]=="number"&&(l[2+m]/=b),typeof l[3+m]=="number"&&(l[3+m]/=b);let w=p(l);if(o){let C=0;w=w.replace(YO,()=>{const T=s[C];return C++,T})}return w}};var Jte="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs";class ene extends Ne.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i,layoutId:o}=this.props,{projection:s}=t;dQ(nne),s&&(n.group&&n.group.add(s),i&&i.register&&o&&i.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Gg.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:i,drag:o,isPresent:s}=this.props,l=i.projection;return l&&(l.isPresent=s,o||t.layoutDependency!==n||n===void 0?l.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?l.promote():l.relegate()||Bu.postRender(()=>{var p;!((p=l.getStack())===null||p===void 0)&&p.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:n,switchLayoutGroup:i}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n?.group&&n.group.remove(o),i?.deregister&&i.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t?.()}render(){return null}}function tne(e){const[t,n]=B8(),i=E.exports.useContext(w8);return N(ene,{...e,layoutGroup:i,switchLayoutGroup:E.exports.useContext(y$),isPresent:t,safeToRemove:n},void 0,!1,{fileName:Jte,lineNumber:110,columnNumber:13},this)}const nne={borderRadius:{...Tg,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Tg,borderTopRightRadius:Tg,borderBottomLeftRadius:Tg,borderBottomRightRadius:Tg,boxShadow:Qte},rne={measureLayout:tne};function ine(e,t,n={}){const i=Hu(e)?e:Hv(e);return H8("",i,t,n),{stop:()=>i.stop(),isAnimating:()=>i.isAnimating()}}const IF=["TopLeft","TopRight","BottomLeft","BottomRight"],ane=IF.length,qO=e=>typeof e=="string"?parseFloat(e):e,ZO=e=>typeof e=="number"||Qt.test(e);function one(e,t,n,i,o,s){var l,p,m,v;o?(e.opacity=ni(0,(l=n.opacity)!==null&&l!==void 0?l:1,sne(i)),e.opacityExit=ni((p=t.opacity)!==null&&p!==void 0?p:1,0,lne(i))):s&&(e.opacity=ni((m=t.opacity)!==null&&m!==void 0?m:1,(v=n.opacity)!==null&&v!==void 0?v:1,i));for(let g=0;g<ane;g++){const b=`border${IF[g]}Radius`;let w=KO(t,b),C=KO(n,b);if(w===void 0&&C===void 0)continue;w||(w=0),C||(C=0),w===0||C===0||ZO(w)===ZO(C)?(e[b]=Math.max(ni(qO(w),qO(C),i),0),(zu.test(C)||zu.test(w))&&(e[b]+="%")):e[b]=C}(t.rotate||n.rotate)&&(e.rotate=ni(t.rotate||0,n.rotate||0,i))}function KO(e,t){var n;return(n=e[t])!==null&&n!==void 0?n:e.borderRadius}const sne=DF(0,.5,I8),lne=DF(.5,.95,M8);function DF(e,t,n){return i=>i<e?0:i>t?1:n(vb(e,t,i))}function XO(e,t){e.min=t.min,e.max=t.max}function jl(e,t){XO(e.x,t.x),XO(e.y,t.y)}function QO(e,t,n,i,o){return e-=t,e=ZS(e,1/n,i),o!==void 0&&(e=ZS(e,1/o,i)),e}function une(e,t=0,n=1,i=.5,o,s=e,l=e){if(zu.test(t)&&(t=parseFloat(t),t=ni(l.min,l.max,t/100)-l.min),typeof t!="number")return;let p=ni(s.min,s.max,i);e===s&&(p-=t),e.min=QO(e.min,t,n,p,o),e.max=QO(e.max,t,n,p,o)}function JO(e,t,[n,i,o],s,l){une(e,t[n],t[i],t[o],t.scale,s,l)}const cne=["x","scaleX","originX"],fne=["y","scaleY","originY"];function eM(e,t,n,i){JO(e.x,t,cne,n?.x,i?.x),JO(e.y,t,fne,n?.y,i?.y)}function tM(e){return e.translate===0&&e.scale===1}function $F(e){return tM(e.x)&&tM(e.y)}function FF(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 nM(e){return ys(e.x)/ys(e.y)}function dne(e,t,n=.01){return $8(e,t)<=n}class pne{constructor(){this.members=[]}add(t){W8(this.members,t),t.scheduleRender()}remove(t){if(G8(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let i;for(let o=n;o>=0;o--){const s=this.members[o];if(s.isPresent!==!1){i=s;break}}return i?(this.promote(i),!0):!1}promote(t,n){var i;const o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,n&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues,t.snapshot.isShared=!0),!((i=t.root)===null||i===void 0)&&i.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,i,o,s,l;(i=(n=t.options).onExitComplete)===null||i===void 0||i.call(n),(l=(o=t.resumingFrom)===null||o===void 0?void 0:(s=o.options).onExitComplete)===null||l===void 0||l.call(s)})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const mne="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function rM(e,t,n){const i=e.x.translate/t.x,o=e.y.translate/t.y;let s=`translate3d(${i}px, ${o}px, 0) `;if(s+=`scale(${1/t.x}, ${1/t.y}) `,n){const{rotate:m,rotateX:v,rotateY:g}=n;m&&(s+=`rotate(${m}deg) `),v&&(s+=`rotateX(${v}deg) `),g&&(s+=`rotateY(${g}deg) `)}const l=e.x.scale*t.x,p=e.y.scale*t.y;return s+=`scale(${l}, ${p})`,s===mne?"none":s}const hne=(e,t)=>e.depth-t.depth;class vne{constructor(){this.children=[],this.isDirty=!1}add(t){W8(this.children,t),this.isDirty=!0}remove(t){G8(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(hne),this.isDirty=!1,this.children.forEach(t)}}const iM=["","X","Y","Z"],aM=1e3;function zF({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(l,p={},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(wne),this.nodes.forEach(Cne)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=l,this.latestValues=p,this.root=m?m.root||m:this,this.path=m?[...m.path,m]:[],this.parent=m,this.depth=m?m.depth+1:0,l&&this.root.registerPotentialNode(l,this);for(let v=0;v<this.path.length;v++)this.path[v].shouldResetTransform=!0;this.root===this&&(this.nodes=new vne)}addEventListener(l,p){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new Zg),this.eventHandlers.get(l).add(p)}notifyListeners(l,...p){const m=this.eventHandlers.get(l);m?.notify(...p)}hasListeners(l){return this.eventHandlers.has(l)}registerPotentialNode(l,p){this.potentialNodes.set(l,p)}mount(l,p=!1){var m;if(this.instance)return;this.isSVG=l instanceof SVGElement&&l.tagName!=="svg",this.instance=l;const{layoutId:v,layout:g,visualElement:b}=this.options;if(b&&!b.getInstance()&&b.mount(l),this.root.nodes.add(this),(m=this.parent)===null||m===void 0||m.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),p&&(g||v)&&(this.isLayoutDirty=!0),e){let w;const C=()=>this.root.updateBlockedByResize=!1;e(l,()=>{this.root.updateBlockedByResize=!0,clearTimeout(w),w=window.setTimeout(C,250),Gg.hasAnimatedSinceResize&&(Gg.hasAnimatedSinceResize=!1,this.nodes.forEach(Sne))})}v&&this.root.registerSharedNode(v,this),this.options.animate!==!1&&b&&(v||g)&&this.addEventListener("didUpdate",({delta:w,hasLayoutChanged:C,hasRelativeTargetChanged:T,layout:R})=>{var L,D,P,I,F;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const z=(D=(L=this.options.transition)!==null&&L!==void 0?L:b.getDefaultTransition())!==null&&D!==void 0?D:Rne,{onLayoutAnimationStart:q,onLayoutAnimationComplete:Y}=b.getProps(),Q=!this.targetLayout||!FF(this.targetLayout,R)||T,ie=!C&&T;if(((P=this.resumeFrom)===null||P===void 0?void 0:P.instance)||ie||C&&(Q||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(w,ie);const ae={...V8(z,"layout"),onPlay:q,onComplete:Y};b.shouldReduceMotion&&(ae.delay=0,ae.type=!1),this.startAnimation(ae)}else!C&&this.animationProgress===0&&this.finishAnimation(),this.isLead()&&((F=(I=this.options).onExitComplete)===null||F===void 0||F.call(I));this.targetLayout=R})}unmount(){var l,p;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(l=this.getStack())===null||l===void 0||l.remove(this),(p=this.parent)===null||p===void 0||p.children.delete(this),this.instance=void 0,yb.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var l;return this.isAnimationBlocked||((l=this.parent)===null||l===void 0?void 0:l.isTreeAnimationBlocked())||!1}startUpdate(){var l;this.isUpdateBlocked()||(this.isUpdating=!0,(l=this.nodes)===null||l===void 0||l.forEach(Nne))}willUpdate(l=!0){var p,m,v;if(this.root.isUpdateBlocked()){(m=(p=this.options).onExitComplete)===null||m===void 0||m.call(p);return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let C=0;C<this.path.length;C++){const T=this.path[C];T.shouldResetTransform=!0,T.updateScroll()}const{layoutId:g,layout:b}=this.options;if(g===void 0&&!b)return;const w=(v=this.options.visualElement)===null||v===void 0?void 0:v.getProps().transformTemplate;this.prevTransformTemplateValue=w?.(this.latestValues,""),this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(oM);return}!this.isUpdating||(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(kne),this.potentialNodes.clear()),this.nodes.forEach(xne),this.nodes.forEach(gne),this.nodes.forEach(bne),this.clearAllSnapshots(),J6.update(),J6.preRender(),J6.render())}clearAllSnapshots(){this.nodes.forEach(yne),this.sharedNodes.forEach(Ene)}scheduleUpdateProjection(){Bu.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Bu.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){if(this.snapshot||!this.instance)return;const l=this.measure(),p=this.removeTransform(this.removeElementScroll(l));cM(p),this.snapshot={measured:l,layout:p,latestValues:{}}}updateLayout(){var l;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 p=this.measure();cM(p);const m=this.layout;this.layout={measured:p,actual:this.removeElementScroll(p)},this.layoutCorrected=_a(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),(l=this.options.visualElement)===null||l===void 0||l.notifyLayoutMeasure(this.layout.actual,m?.actual)}updateScroll(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=i(this.instance),this.scroll=n(this.instance))}resetTransform(){var l;if(!o)return;const p=this.isLayoutDirty||this.shouldResetTransform,m=this.projectionDelta&&!$F(this.projectionDelta),v=(l=this.options.visualElement)===null||l===void 0?void 0:l.getProps().transformTemplate,g=v?.(this.latestValues,""),b=g!==this.prevTransformTemplateValue;p&&(m||cd(this.latestValues)||b)&&(o(this.instance,g),this.shouldResetTransform=!1,this.scheduleRender())}measure(){const{visualElement:l}=this.options;if(!l)return _a();const p=l.measureViewportBox(),{scroll:m}=this.root;return m&&(dd(p.x,m.x),dd(p.y,m.y)),p}removeElementScroll(l){const p=_a();jl(p,l);for(let m=0;m<this.path.length;m++){const v=this.path[m],{scroll:g,options:b,isScrollRoot:w}=v;if(v!==this.root&&g&&b.layoutScroll){if(w){jl(p,l);const{scroll:C}=this.root;C&&(dd(p.x,-C.x),dd(p.y,-C.y))}dd(p.x,g.x),dd(p.y,g.y)}}return p}applyTransform(l,p=!1){const m=_a();jl(m,l);for(let v=0;v<this.path.length;v++){const g=this.path[v];!p&&g.options.layoutScroll&&g.scroll&&g!==g.root&&Rv(m,{x:-g.scroll.x,y:-g.scroll.y}),cd(g.latestValues)&&Rv(m,g.latestValues)}return cd(this.latestValues)&&Rv(m,this.latestValues),m}removeTransform(l){var p;const m=_a();jl(m,l);for(let v=0;v<this.path.length;v++){const g=this.path[v];if(!g.instance||!cd(g.latestValues))continue;NF(g.latestValues)&&g.updateSnapshot();const b=_a(),w=g.measure();jl(b,w),eM(m,g.latestValues,(p=g.snapshot)===null||p===void 0?void 0:p.layout,b)}return cd(this.latestValues)&&eM(m,this.latestValues),m}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection()}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.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 l;const{layout:p,layoutId:m}=this.options;!this.layout||!(p||m)||(!this.targetDelta&&!this.relativeTarget&&(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=_a(),this.relativeTargetOrigin=_a(),Xg(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),jl(this.relativeTarget,this.relativeTargetOrigin))),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=_a(),this.targetWithTransforms=_a()),this.relativeTarget&&this.relativeTargetOrigin&&((l=this.relativeParent)===null||l===void 0?void 0:l.target)?dte(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):jl(this.target,this.layout.actual),EF(this.target,this.targetDelta)):jl(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=_a(),this.relativeTargetOrigin=_a(),Xg(this.relativeTargetOrigin,this.target,this.relativeParent.target),jl(this.relativeTarget,this.relativeTargetOrigin)))))}getClosestProjectingParent(){if(!(!this.parent||cd(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var l;const{layout:p,layoutId:m}=this.options;if(this.isTreeAnimating=Boolean(((l=this.parent)===null||l===void 0?void 0:l.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||m))return;const v=this.getLead();jl(this.layoutCorrected,this.layout.actual),Ste(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==v);const{target:g}=v;if(!g)return;this.projectionDelta||(this.projectionDelta=Qg(),this.projectionDeltaWithTransform=Qg());const b=this.treeScale.x,w=this.treeScale.y,C=this.projectionTransform;Kg(this.projectionDelta,this.layoutCorrected,g,this.latestValues),this.projectionTransform=rM(this.projectionDelta,this.treeScale),(this.projectionTransform!==C||this.treeScale.x!==b||this.treeScale.y!==w)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){var p,m,v;(m=(p=this.options).scheduleRender)===null||m===void 0||m.call(p),l&&((v=this.getStack())===null||v===void 0||v.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(l,p=!1){var m;const v=this.snapshot,g=v?.latestValues||{},b={...this.latestValues},w=Qg();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!p;const C=_a(),T=v?.isShared,R=(((m=this.getStack())===null||m===void 0?void 0:m.members.length)||0)<=1,L=Boolean(T&&!R&&this.options.crossfade===!0&&!this.path.some(Tne));this.animationProgress=0,this.mixTargetDelta=D=>{var P;const I=D/1e3;sM(w.x,l.x,I),sM(w.y,l.y,I),this.setTargetDelta(w),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&((P=this.relativeParent)===null||P===void 0?void 0:P.layout)&&(Xg(C,this.layout.actual,this.relativeParent.layout.actual),_ne(this.relativeTarget,this.relativeTargetOrigin,C,I)),T&&(this.animationValues=b,one(b,g,this.latestValues,I,L,R)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=I},this.mixTargetDelta(0)}startAnimation(l){var p,m;this.notifyListeners("animationStart"),(p=this.currentAnimation)===null||p===void 0||p.stop(),this.resumingFrom&&((m=this.resumingFrom.currentAnimation)===null||m===void 0||m.stop()),this.pendingAnimation&&(yb.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Bu.update(()=>{Gg.hasAnimatedSinceResize=!0,this.currentAnimation=ine(0,aM,{...l,onUpdate:v=>{var g;this.mixTargetDelta(v),(g=l.onUpdate)===null||g===void 0||g.call(l,v)},onComplete:()=>{var v;(v=l.onComplete)===null||v===void 0||v.call(l),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var l;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(l=this.getStack())===null||l===void 0||l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var l;this.currentAnimation&&((l=this.mixTargetDelta)===null||l===void 0||l.call(this,aM),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:p,target:m,layout:v,latestValues:g}=l;if(!(!p||!m||!v)){if(this!==l&&this.layout&&v&&BF(this.options.animationType,this.layout.actual,v.actual)){m=this.target||_a();const b=ys(this.layout.actual.x);m.x.min=l.target.x.min,m.x.max=m.x.min+b;const w=ys(this.layout.actual.y);m.y.min=l.target.y.min,m.y.max=m.y.min+w}jl(p,m),Rv(p,g),Kg(this.projectionDeltaWithTransform,this.layoutCorrected,p,g)}}registerSharedNode(l,p){var m,v,g;this.sharedNodes.has(l)||this.sharedNodes.set(l,new pne),this.sharedNodes.get(l).add(p),p.promote({transition:(m=p.options.initialPromotionConfig)===null||m===void 0?void 0:m.transition,preserveFollowOpacity:(g=(v=p.options.initialPromotionConfig)===null||v===void 0?void 0:v.shouldPreserveFollowOpacity)===null||g===void 0?void 0:g.call(v,p)})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){var l;const{layoutId:p}=this.options;return p?((l=this.getStack())===null||l===void 0?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:p}=this.options;return p?(l=this.getStack())===null||l===void 0?void 0:l.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:p,preserveFollowOpacity:m}={}){const v=this.getStack();v&&v.promote(this,m),l&&(this.projectionDelta=void 0,this.needsReset=!0),p&&this.setOptions({transition:p})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetRotation(){const{visualElement:l}=this.options;if(!l)return;let p=!1;const m={};for(let v=0;v<iM.length;v++){const g=iM[v],b="rotate"+g;!l.getStaticValue(b)||(p=!0,m[b]=l.getStaticValue(b),l.setStaticValue(b,0))}if(!!p){l?.syncRender();for(const v in m)l.setStaticValue(v,m[v]);l.scheduleRender()}}getProjectionStyles(l={}){var p,m,v;const g={};if(!this.instance||this.isSVG)return g;if(this.isVisible)g.visibility="";else return{visibility:"hidden"};const b=(p=this.options.visualElement)===null||p===void 0?void 0:p.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,g.opacity="",g.pointerEvents=cS(l.pointerEvents)||"",g.transform=b?b(this.latestValues,""):"none",g;const w=this.getLead();if(!this.projectionDelta||!this.layout||!w.target){const L={};return this.options.layoutId&&(L.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,L.pointerEvents=cS(l.pointerEvents)||""),this.hasProjected&&!cd(this.latestValues)&&(L.transform=b?b({},""):"none",this.hasProjected=!1),L}const C=w.animationValues||w.latestValues;this.applyTransformsToTarget(),g.transform=rM(this.projectionDeltaWithTransform,this.treeScale,C),b&&(g.transform=b(C,g.transform));const{x:T,y:R}=this.projectionDelta;g.transformOrigin=`${T.origin*100}% ${R.origin*100}% 0`,w.animationValues?g.opacity=w===this?(v=(m=C.opacity)!==null&&m!==void 0?m:this.latestValues.opacity)!==null&&v!==void 0?v:1:this.preserveOpacity?this.latestValues.opacity:C.opacityExit:g.opacity=w===this?C.opacity!==void 0?C.opacity:"":C.opacityExit!==void 0?C.opacityExit:0;for(const L in BS){if(C[L]===void 0)continue;const{correct:D,applyTo:P}=BS[L],I=D(C[L],w);if(P){const F=P.length;for(let z=0;z<F;z++)g[P[z]]=I}else g[L]=I}return this.options.layoutId&&(g.pointerEvents=w===this?cS(l.pointerEvents)||"":"none"),g}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>{var p;return(p=l.currentAnimation)===null||p===void 0?void 0:p.stop()}),this.root.nodes.forEach(oM),this.root.sharedNodes.clear()}}}function gne(e){e.updateLayout()}function bne(e){var t,n,i;const o=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){const{actual:s,measured:l}=e.layout,{animationType:p}=e.options;p==="size"?ku(w=>{const C=o.isShared?o.measured[w]:o.layout[w],T=ys(C);C.min=s[w].min,C.max=C.min+T}):BF(p,o.layout,s)&&ku(w=>{const C=o.isShared?o.measured[w]:o.layout[w],T=ys(s[w]);C.max=C.min+T});const m=Qg();Kg(m,s,o.layout);const v=Qg();o.isShared?Kg(v,e.applyTransform(l,!0),o.measured):Kg(v,s,o.layout);const g=!$F(m);let b=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){const{snapshot:w,layout:C}=e.relativeParent;if(w&&C){const T=_a();Xg(T,o.layout,w.layout);const R=_a();Xg(R,s,C.actual),FF(T,R)||(b=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:o,delta:v,layoutDelta:m,hasLayoutChanged:g,hasRelativeTargetChanged:b})}else e.isLead()&&((i=(n=e.options).onExitComplete)===null||i===void 0||i.call(n));e.options.transition=void 0}function yne(e){e.clearSnapshot()}function oM(e){e.clearMeasurements()}function xne(e){const{visualElement:t}=e.options;t?.getProps().onBeforeLayoutMeasure&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function Sne(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function wne(e){e.resolveTargetDelta()}function Cne(e){e.calcProjection()}function Nne(e){e.resetRotation()}function Ene(e){e.removeLeadSnapshot()}function sM(e,t,n){e.translate=ni(t.translate,0,n),e.scale=ni(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function lM(e,t,n,i){e.min=ni(t.min,n.min,i),e.max=ni(t.max,n.max,i)}function _ne(e,t,n,i){lM(e.x,t.x,n.x,i),lM(e.y,t.y,n.y,i)}function Tne(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Rne={duration:.45,ease:[.4,0,.1,1]};function kne(e,t){let n=e.root;for(let s=e.path.length-1;s>=0;s--)if(Boolean(e.path[s].instance)){n=e.path[s];break}const o=(n&&n!==e.root?n.instance:document).querySelector(`[data-projection-id="${t}"]`);o&&e.mount(o,!0)}function uM(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function cM(e){uM(e.x),uM(e.y)}function BF(e,t,n){return e==="position"||e==="preserve-aspect"&&!dne(nM(t),nM(n))}const Ane=zF({attachResizeListener:(e,t)=>z3(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),r7={current:void 0},Lne=zF({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!r7.current){const e=new Ane(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),r7.current=e}return r7.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>Boolean(window.getComputedStyle(e).position==="fixed")}),One={...ute,...xee,...Ate,...rne},ll=cQ((e,t)=>ZQ(e,t,One,Xte,Lne));function UF(){const e=E.exports.useRef(!1);return zS(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Mne(){const e=UF(),[t,n]=E.exports.useState(0),i=E.exports.useCallback(()=>{e.current&&n(t+1)},[t]);return[E.exports.useCallback(()=>Bu.postRender(i),[i]),t]}var Pne="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs";class Ine extends E.exports.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Dne({children:e,isPresent:t}){const n=E.exports.useId(),i=E.exports.useRef(null),o=E.exports.useRef({width:0,height:0,top:0,left:0});return E.exports.useInsertionEffect(()=>{const{width:s,height:l,top:p,left:m}=o.current;if(t||!i.current||!s||!l)return;i.current.dataset.motionPopId=n;const v=document.createElement("style");return document.head.appendChild(v),v.sheet&&v.sheet.insertRule(`
[data-motion-pop-id="${n}"] {
position: absolute !important;
width: ${s}px !important;
height: ${l}px !important;
top: ${p}px !important;
left: ${m}px !important;
}
`),()=>{document.head.removeChild(v)}},[t]),N(Ine,{isPresent:t,childRef:i,sizeRef:o,children:E.exports.cloneElement(e,{ref:i})},void 0,!1,{fileName:Pne,lineNumber:68,columnNumber:13},this)}var fM="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs";const i7=({children:e,initial:t,isPresent:n,onExitComplete:i,custom:o,presenceAffectsLayout:s,mode:l})=>{const p=F3($ne),m=E.exports.useId(),v=E.exports.useMemo(()=>({id:m,initial:t,isPresent:n,custom:o,onExitComplete:g=>{p.set(g,!0);for(const b of p.values())if(!b)return;i&&i()},register:g=>(p.set(g,!1),()=>p.delete(g))}),s?void 0:[n]);return E.exports.useMemo(()=>{p.forEach((g,b)=>p.set(b,!1))},[n]),E.exports.useEffect(()=>{!n&&!p.size&&i&&i()},[n]),l==="popLayout"&&(e=N(Dne,{isPresent:n,children:e},void 0,!1,{fileName:fM,lineNumber:48,columnNumber:20},globalThis)),N(t0.Provider,{value:v,children:e},void 0,!1,{fileName:fM,lineNumber:50,columnNumber:13},globalThis)};function $ne(){return new Map}var a7="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs";const wv=e=>e.key||"";function Fne(e,t){e.forEach(n=>{const i=wv(n);t.set(i,n)})}function zne(e){const t=[];return E.exports.Children.forEach(e,n=>{E.exports.isValidElement(n)&&t.push(n)}),t}const tf=({children:e,custom:t,initial:n=!0,onExitComplete:i,exitBeforeEnter:o,presenceAffectsLayout:s=!0,mode:l="sync"})=>{o&&(l="wait",z8(!1,"Replace exitBeforeEnter with mode='wait'"));let[p]=Mne();const m=E.exports.useContext(w8).forceRender;m&&(p=m);const v=UF(),g=zne(e);let b=g;const w=new Set,C=E.exports.useRef(b),T=E.exports.useRef(new Map).current,R=E.exports.useRef(!0);if(zS(()=>{R.current=!1,Fne(g,T),C.current=b}),A8(()=>{R.current=!0,T.clear(),w.clear()}),R.current)return N(Gi,{children:b.map(I=>N(i7,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:s,mode:l,children:I},wv(I),!1,{fileName:a7,lineNumber:97,columnNumber:92},globalThis))},void 0,!1);b=[...b];const L=C.current.map(wv),D=g.map(wv),P=L.length;for(let I=0;I<P;I++){const F=L[I];D.indexOf(F)===-1&&w.add(F)}return l==="wait"&&w.size&&(b=[]),w.forEach(I=>{if(D.indexOf(I)!==-1)return;const F=T.get(I);if(!F)return;const z=L.indexOf(I),q=()=>{T.delete(I),w.delete(I);const Y=C.current.findIndex(Q=>Q.key===I);if(C.current.splice(Y,1),!w.size){if(C.current=g,v.current===!1)return;p(),i&&i()}};b.splice(z,0,N(i7,{isPresent:!1,onExitComplete:q,custom:t,presenceAffectsLayout:s,mode:l,children:F},wv(F),!1,{fileName:a7,lineNumber:143,columnNumber:52},globalThis))}),b=b.map(I=>{const F=I.key;return w.has(F)?I:N(i7,{isPresent:!0,presenceAffectsLayout:s,mode:l,children:I},wv(I),!1,{fileName:a7,lineNumber:149,columnNumber:46},globalThis)}),F8!=="production"&&l==="wait"&&b.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.`),N(Gi,{children:w.size?b:b.map(I=>E.exports.cloneElement(I))},void 0,!1)};var Gb="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/transition/dist/index.esm.js",Yb=(...e)=>e.filter(Boolean).join(" ");function Bne(){return!0}var Une=e=>{const{condition:t,message:n}=e;t&&Bne()&&console.warn(n)},vm={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Rg={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 VE(e){switch(e?.direction??"right"){case"right":return Rg.slideRight;case"left":return Rg.slideLeft;case"bottom":return Rg.slideDown;case"top":return Rg.slideUp;default:return Rg.slideRight}}var bm={enter:{duration:.2,ease:vm.easeOut},exit:{duration:.1,ease:vm.easeIn}},Zl={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t?.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t?.exit})},jne=e=>e!=null&&parseInt(e.toString(),10)>0,dM={exit:{height:{duration:.2,ease:vm.ease},opacity:{duration:.3,ease:vm.ease}},enter:{height:{duration:.3,ease:vm.ease},opacity:{duration:.4,ease:vm.ease}}},Vne={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:i,delay:o})=>({...e&&{opacity:jne(t)?1:0},height:t,transitionEnd:i?.exit,transition:n?.exit??Zl.exit(dM.exit,o)}),enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:i,delay:o})=>({...e&&{opacity:1},height:t,transitionEnd:i?.enter,transition:n?.enter??Zl.enter(dM.enter,o)})},jF=E.exports.forwardRef((e,t)=>{const{in:n,unmountOnExit:i,animateOpacity:o=!0,startingHeight:s=0,endingHeight:l="auto",style:p,className:m,transition:v,transitionEnd:g,...b}=e,[w,C]=E.exports.useState(!1);E.exports.useEffect(()=>{const P=setTimeout(()=>{C(!0)});return()=>clearTimeout(P)},[]),Une({condition:Boolean(s>0&&i),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const T=parseFloat(s.toString())>0,R={startingHeight:s,endingHeight:l,animateOpacity:o,transition:w?v:{enter:{duration:0}},transitionEnd:{enter:g?.enter,exit:i?g?.exit:{...g?.exit,display:T?"block":"none"}}},L=i?n:!0,D=n||i?"enter":"exit";return N(tf,{initial:!1,custom:R,children:L&&Ne.createElement(ll.div,{ref:t,...b,className:Yb("chakra-collapse",m),style:{overflow:"hidden",display:"block",...p},custom:R,variants:Vne,initial:i?"exit":!1,animate:D,exit:"exit"})},void 0,!1,{fileName:Gb,lineNumber:190,columnNumber:26},globalThis)});jF.displayName="Collapse";var Hne={enter:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:1,transition:e?.enter??Zl.enter(bm.enter,n),transitionEnd:t?.enter}),exit:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:0,transition:e?.exit??Zl.exit(bm.exit,n),transitionEnd:t?.exit})},VF={initial:"exit",animate:"enter",exit:"exit",variants:Hne},Wne=E.exports.forwardRef(function(t,n){const{unmountOnExit:i,in:o,className:s,transition:l,transitionEnd:p,delay:m,...v}=t,g=o||i?"enter":"exit",b=i?o&&i:!0,w={transition:l,transitionEnd:p,delay:m};return N(tf,{custom:w,children:b&&Ne.createElement(ll.div,{ref:n,className:Yb("chakra-fade",s),custom:w,...VF,animate:g,...v})},void 0,!1,{fileName:Gb,lineNumber:248,columnNumber:26},this)});Wne.displayName="Fade";var Gne={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:i,delay:o})=>({opacity:0,...e?{scale:t,transitionEnd:i?.exit}:{transitionEnd:{scale:t,...i?.exit}},transition:n?.exit??Zl.exit(bm.exit,o)}),enter:({transitionEnd:e,transition:t,delay:n})=>({opacity:1,scale:1,transition:t?.enter??Zl.enter(bm.enter,n),transitionEnd:e?.enter})},HF={initial:"exit",animate:"enter",exit:"exit",variants:Gne},Yne=E.exports.forwardRef(function(t,n){const{unmountOnExit:i,in:o,reverse:s=!0,initialScale:l=.95,className:p,transition:m,transitionEnd:v,delay:g,...b}=t,w=i?o&&i:!0,C=o||i?"enter":"exit",T={initialScale:l,reverse:s,transition:m,transitionEnd:v,delay:g};return N(tf,{custom:T,children:w&&Ne.createElement(ll.div,{ref:n,className:Yb("chakra-offset-slide",p),...HF,animate:C,custom:T,...b})},void 0,!1,{fileName:Gb,lineNumber:301,columnNumber:26},this)});Yne.displayName="ScaleFade";var pM={exit:{duration:.15,ease:vm.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},qne={exit:({direction:e,transition:t,transitionEnd:n,delay:i})=>{const{exit:o}=VE({direction:e});return{...o,transition:t?.exit??Zl.exit(pM.exit,i),transitionEnd:n?.exit}},enter:({direction:e,transitionEnd:t,transition:n,delay:i})=>{const{enter:o}=VE({direction:e});return{...o,transition:n?.enter??Zl.enter(pM.enter,i),transitionEnd:t?.enter}}},WF=E.exports.forwardRef(function(t,n){const{direction:i="right",style:o,unmountOnExit:s,in:l,className:p,transition:m,transitionEnd:v,delay:g,...b}=t,w=VE({direction:i}),C=Object.assign({position:"fixed"},w.position,o),T=s?l&&s:!0,R=l||s?"enter":"exit",L={transitionEnd:v,transition:m,direction:i,delay:g};return N(tf,{custom:L,children:T&&Ne.createElement(ll.div,{...b,ref:n,initial:"exit",className:Yb("chakra-slide",p),animate:R,exit:"exit",custom:L,variants:qne,style:C})},void 0,!1,{fileName:Gb,lineNumber:366,columnNumber:26},this)});WF.displayName="Slide";var Zne={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:i,delay:o})=>({opacity:0,x:e,y:t,transition:n?.exit??Zl.exit(bm.exit,o),transitionEnd:i?.exit}),enter:({transition:e,transitionEnd:t,delay:n})=>({opacity:1,x:0,y:0,transition:e?.enter??Zl.enter(bm.enter,n),transitionEnd:t?.enter}),exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:i,reverse:o,delay:s})=>{const l={x:t,y:e};return{opacity:0,transition:n?.exit??Zl.exit(bm.exit,s),...o?{...l,transitionEnd:i?.exit}:{transitionEnd:{...l,...i?.exit}}}}},HE={initial:"initial",animate:"enter",exit:"exit",variants:Zne},Kne=E.exports.forwardRef(function(t,n){const{unmountOnExit:i,in:o,reverse:s=!0,className:l,offsetX:p=0,offsetY:m=8,transition:v,transitionEnd:g,delay:b,...w}=t,C=i?o&&i:!0,T=o||i?"enter":"exit",R={offsetX:p,offsetY:m,reverse:s,transition:v,transitionEnd:g,delay:b};return N(tf,{custom:R,children:C&&Ne.createElement(ll.div,{ref:n,className:Yb("chakra-offset-slide",l),custom:R,...HE,animate:T,...w})},void 0,!1,{fileName:Gb,lineNumber:441,columnNumber:26},this)});Kne.displayName="SlideFade";var WE="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/accordion/dist/index.esm.js",qb=(...e)=>e.filter(Boolean).join(" ");function Xne(){return!0}var G3=e=>{const{condition:t,message:n}=e;t&&Xne()&&console.warn(n)};function o7(...e){return function(n){e.some(i=>(i?.(n),n?.defaultPrevented))}}var[Qne,Y3]=Or({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:"<Accordion />"}),[Jne,q8]=Or({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:"<AccordionItem />"}),[ere,x4e,tre,nre]=m$(),GF=qe(function(t,n){const{getButtonProps:i}=q8(),o=i(t,n),s=Y3(),l={display:"flex",alignItems:"center",width:"100%",outline:0,...s.button};return Ne.createElement($e.button,{...o,className:qb("chakra-accordion__button",t.className),__css:l})});GF.displayName="AccordionButton";function rre(e){const{onChange:t,defaultIndex:n,index:i,allowMultiple:o,allowToggle:s,...l}=e;ore(e),sre(e);const p=tre(),[m,v]=E.exports.useState(-1);E.exports.useEffect(()=>()=>{v(-1)},[]);const[g,b]=v$({value:i,defaultValue(){return o?n??[]:n??-1},onChange:t});return{index:g,setIndex:b,htmlProps:l,getAccordionItemProps:C=>{let T=!1;return C!==null&&(T=Array.isArray(g)?g.includes(C):g===C),{isOpen:T,onChange:L=>{if(C!==null)if(o&&Array.isArray(g)){const D=L?g.concat(C):g.filter(P=>P!==C);b(D)}else L?b(C):s&&b(-1)}}},focusedIndex:m,setFocusedIndex:v,descendants:p}}var[ire,Z8]=Or({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function are(e){const{isDisabled:t,isFocusable:n,id:i,...o}=e,{getAccordionItemProps:s,setFocusedIndex:l}=Z8(),p=E.exports.useRef(null),m=E.exports.useId(),v=i??m,g=`accordion-button-${v}`,b=`accordion-panel-${v}`;lre(e);const{register:w,index:C,descendants:T}=nre({disabled:t&&!n}),{isOpen:R,onChange:L}=s(C===-1?null:C);ure({isOpen:R,isDisabled:t});const D=()=>{L?.(!0)},P=()=>{L?.(!1)},I=E.exports.useCallback(()=>{L?.(!R),l(C)},[C,l,R,L]),F=E.exports.useCallback(Q=>{const ae={ArrowDown:()=>{const me=T.nextEnabled(C);me?.node.focus()},ArrowUp:()=>{const me=T.prevEnabled(C);me?.node.focus()},Home:()=>{const me=T.firstEnabled();me?.node.focus()},End:()=>{const me=T.lastEnabled();me?.node.focus()}}[Q.key];ae&&(Q.preventDefault(),ae(Q))},[T,C]),z=E.exports.useCallback(()=>{l(C)},[l,C]),q=E.exports.useCallback(function(ie={},ae=null){return{...ie,type:"button",ref:ti(w,p,ae),id:g,disabled:!!t,"aria-expanded":!!R,"aria-controls":b,onClick:o7(ie.onClick,I),onFocus:o7(ie.onFocus,z),onKeyDown:o7(ie.onKeyDown,F)}},[g,t,R,I,z,F,b,w]),Y=E.exports.useCallback(function(ie={},ae=null){return{...ie,ref:ae,role:"region",id:b,"aria-labelledby":g,hidden:!R}},[g,R,b]);return{isOpen:R,isDisabled:t,isFocusable:n,onOpen:D,onClose:P,getButtonProps:q,getPanelProps:Y,htmlProps:o}}function ore(e){const t=e.index||e.defaultIndex,n=t==null&&!Array.isArray(t)&&e.allowMultiple;G3({condition:!!n,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof t},`})}function sre(e){G3({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 lre(e){G3({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 ure(e){G3({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function YF(e){const{isOpen:t,isDisabled:n}=q8(),{reduceMotion:i}=Z8(),o=qb("chakra-accordion__icon",e.className),s=Y3(),l={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:i?void 0:"transform 0.2s",transformOrigin:"center",...s.icon};return N(h$,{viewBox:"0 0 24 24","aria-hidden":!0,className:o,__css:l,...e,children:N("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"},void 0,!1,{fileName:WE,lineNumber:282,columnNumber:22},this)},void 0,!1,{fileName:WE,lineNumber:276,columnNumber:26},this)}YF.displayName="AccordionIcon";var qF=qe(function(t,n){const{children:i,className:o}=t,{htmlProps:s,...l}=are(t),m={...Y3().container,overflowAnchor:"none"},v=E.exports.useMemo(()=>l,[l]);return Ne.createElement(Jne,{value:v},Ne.createElement($e.div,{ref:n,...s,className:qb("chakra-accordion__item",o),__css:m},typeof i=="function"?i({isExpanded:!!l.isOpen,isDisabled:!!l.isDisabled}):i))});qF.displayName="AccordionItem";var ZF=qe(function(t,n){const{reduceMotion:i}=Z8(),{getPanelProps:o,isOpen:s}=q8(),l=o(t,n),p=qb("chakra-accordion__panel",t.className),m=Y3();i||delete l.hidden;const v=Ne.createElement($e.div,{...l,__css:m.panel,className:p});return i?v:N(jF,{in:s,children:v},void 0,!1,{fileName:WE,lineNumber:336,columnNumber:28},this)});ZF.displayName="AccordionPanel";var KF=qe(function({children:t,reduceMotion:n,...i},o){const s=So("Accordion",i),l=gr(i),{htmlProps:p,descendants:m,...v}=rre(l),g=E.exports.useMemo(()=>({...v,reduceMotion:!!n}),[v,n]);return Ne.createElement(ere,{value:m},Ne.createElement(ire,{value:g},Ne.createElement(Qne,{value:s},Ne.createElement($e.div,{ref:o,...p,className:qb("chakra-accordion",i.className),__css:s.root},t))))});KF.displayName="Accordion";var _5="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/alert/node_modules/@chakra-ui/icon/dist/index.esm.js",mM={path:N("g",{stroke:"currentColor",strokeWidth:"1.5",children:[N("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:_5,lineNumber:14,columnNumber:22},globalThis),N("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:_5,lineNumber:18,columnNumber:23},globalThis),N("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"},void 0,!1,{fileName:_5,lineNumber:22,columnNumber:23},globalThis)]},void 0,!0,{fileName:_5,lineNumber:11,columnNumber:25},globalThis),viewBox:"0 0 24 24"},q3=qe((e,t)=>{const{as:n,viewBox:i,color:o="currentColor",focusable:s=!1,children:l,className:p,__css:m,...v}=e,g=yr("chakra-icon",p),b={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...m},w={ref:t,focusable:s,className:g,__css:b},C=i??mM.viewBox;if(n&&typeof n!="string")return Ne.createElement($e.svg,{as:n,...w,...v});const T=l??mM.path;return Ne.createElement($e.svg,{verticalAlign:"middle",viewBox:C,...w,...v},T)});q3.displayName="Icon";var cre=(...e)=>e.filter(Boolean).join(" "),fre=$b({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Z3=qe((e,t)=>{const n=xo("Spinner",e),{label:i="Loading...",thickness:o="2px",speed:s="0.45s",emptyColor:l="transparent",className:p,...m}=gr(e),v=cre("chakra-spinner",p),g={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:l,borderLeftColor:l,animation:`${fre} ${s} linear infinite`,...n};return Ne.createElement($e.div,{ref:t,__css:g,className:v,...m},i&&Ne.createElement($e.span,{srOnly:!0},i))});Z3.displayName="Spinner";var Cm="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/alert/dist/index.esm.js",K3=(...e)=>e.filter(Boolean).join(" ");function dre(e){return N(q3,{viewBox:"0 0 24 24",...e,children:N("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:Cm,lineNumber:24,columnNumber:22},this)},void 0,!1,{fileName:Cm,lineNumber:21,columnNumber:26},this)}function pre(e){return N(q3,{viewBox:"0 0 24 24",...e,children:N("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:Cm,lineNumber:33,columnNumber:22},this)},void 0,!1,{fileName:Cm,lineNumber:30,columnNumber:26},this)}function hM(e){return N(q3,{viewBox:"0 0 24 24",...e,children:N("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:Cm,lineNumber:42,columnNumber:22},this)},void 0,!1,{fileName:Cm,lineNumber:39,columnNumber:26},this)}var[mre,hre]=Or({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[vre,K8]=Or({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),XF={info:{icon:pre,colorScheme:"blue"},warning:{icon:hM,colorScheme:"orange"},success:{icon:dre,colorScheme:"green"},error:{icon:hM,colorScheme:"red"},loading:{icon:Z3,colorScheme:"blue"}};function gre(e){return XF[e].colorScheme}function bre(e){return XF[e].icon}var QF=qe(function(t,n){const{status:i="info",addRole:o=!0,...s}=gr(t),l=t.colorScheme??gre(i),p=So("Alert",{...t,colorScheme:l}),m={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...p.container};return Ne.createElement(mre,{value:{status:i}},Ne.createElement(vre,{value:p},Ne.createElement($e.div,{role:o?"alert":void 0,ref:n,...s,className:K3("chakra-alert",t.className),__css:m})))});QF.displayName="Alert";var JF=qe(function(t,n){const i=K8(),o={display:"inline",...i.description};return Ne.createElement($e.div,{ref:n,...t,className:K3("chakra-alert__desc",t.className),__css:o})});JF.displayName="AlertDescription";function ez(e){const{status:t}=hre(),n=bre(t),i=K8(),o=t==="loading"?i.spinner:i.icon;return Ne.createElement($e.span,{display:"inherit",...e,className:K3("chakra-alert__icon",e.className),__css:o},e.children||N(n,{h:"100%",w:"100%"},void 0,!1,{fileName:Cm,lineNumber:133,columnNumber:40},this))}ez.displayName="AlertIcon";var tz=qe(function(t,n){const i=K8();return Ne.createElement($e.div,{ref:n,...t,className:K3("chakra-alert__title",t.className),__css:i.title})});tz.displayName="AlertTitle";var yre="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/image/dist/index.esm.js";function xre(e,t=[]){const n=Object.assign({},e);for(const i of t)i in n&&delete n[i];return n}function Sre(e){const{loading:t,src:n,srcSet:i,onLoad:o,onError:s,crossOrigin:l,sizes:p,ignoreFallback:m}=e,[v,g]=E.exports.useState("pending");E.exports.useEffect(()=>{g(n?"loading":"pending")},[n]);const b=E.exports.useRef(),w=E.exports.useCallback(()=>{if(!n)return;C();const T=new Image;T.src=n,l&&(T.crossOrigin=l),i&&(T.srcset=i),p&&(T.sizes=p),t&&(T.loading=t),T.onload=R=>{C(),g("loaded"),o?.(R)},T.onerror=R=>{C(),g("failed"),s?.(R)},b.current=T},[n,l,i,p,o,s,t]),C=()=>{b.current&&(b.current.onload=null,b.current.onerror=null,b.current=null)};return $u(()=>{if(!m)return v==="loading"&&w(),()=>{C()}},[v,w,m]),m?"loaded":v}var wre=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError",KS=qe(function(t,n){const{htmlWidth:i,htmlHeight:o,alt:s,...l}=t;return N("img",{width:i,height:o,ref:n,alt:s,...l},void 0,!1,{fileName:yre,lineNumber:90,columnNumber:26},this)});KS.displayName="NativeImage";var X3=qe(function(t,n){const{fallbackSrc:i,fallback:o,src:s,srcSet:l,align:p,fit:m,loading:v,ignoreFallback:g,crossOrigin:b,fallbackStrategy:w="beforeLoadOrError",referrerPolicy:C,...T}=t,R=i!==void 0||o!==void 0,L=v!=null||g||!R,D=Sre({...t,ignoreFallback:L}),P=wre(D,w),I={ref:n,objectFit:m,objectPosition:p,...L?T:xre(T,["onError","onLoad"])};return P?o||Ne.createElement($e.img,{as:KS,className:"chakra-image__placeholder",src:i,...I}):Ne.createElement($e.img,{as:KS,src:s,srcSet:l,crossOrigin:b,loading:v,referrerPolicy:C,className:"chakra-image",...I})});X3.displayName="Image";qe((e,t)=>Ne.createElement($e.img,{ref:t,as:KS,className:"chakra-image",...e}));var Cre=Object.create,nz=Object.defineProperty,Nre=Object.getOwnPropertyDescriptor,rz=Object.getOwnPropertyNames,Ere=Object.getPrototypeOf,_re=Object.prototype.hasOwnProperty,iz=(e,t)=>function(){return t||(0,e[rz(e)[0]])((t={exports:{}}).exports,t),t.exports},Tre=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of rz(t))!_re.call(e,o)&&o!==n&&nz(e,o,{get:()=>t[o],enumerable:!(i=Nre(t,o))||i.enumerable});return e},Rre=(e,t,n)=>(n=e!=null?Cre(Ere(e)):{},Tre(t||!e||!e.__esModule?nz(n,"default",{value:e,enumerable:!0}):n,e)),kre=iz({"../../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 n="18.2.0",i=Symbol.for("react.element"),o=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),v=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),L=Symbol.iterator,D="@@iterator";function P(S){if(S===null||typeof S!="object")return null;var O=L&&S[L]||S[D];return typeof O=="function"?O:null}var I={current:null},F={transition:null},z={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},q={current:null},Y={},Q=null;function ie(S){Q=S}Y.setExtraStackFrame=function(S){Q=S},Y.getCurrentStack=null,Y.getStackAddendum=function(){var S="";Q&&(S+=Q);var O=Y.getCurrentStack;return O&&(S+=O()||""),S};var ae=!1,me=!1,ze=!1,te=!1,ee=!1,we={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:F,ReactCurrentOwner:q};we.ReactDebugCurrentFrame=Y,we.ReactCurrentActQueue=z;function ye(S){{for(var O=arguments.length,V=new Array(O>1?O-1:0),G=1;G<O;G++)V[G-1]=arguments[G];le("warn",S,V)}}function K(S){{for(var O=arguments.length,V=new Array(O>1?O-1:0),G=1;G<O;G++)V[G-1]=arguments[G];le("error",S,V)}}function le(S,O,V){{var G=we.ReactDebugCurrentFrame,se=G.getStackAddendum();se!==""&&(O+="%s",V=V.concat([se]));var Ue=V.map(function(Te){return String(Te)});Ue.unshift("Warning: "+O),Function.prototype.apply.call(console[S],console,Ue)}}var ge={};function pe(S,O){{var V=S.constructor,G=V&&(V.displayName||V.name)||"ReactClass",se=G+"."+O;if(ge[se])return;K("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.",O,G),ge[se]=!0}}var Ee={isMounted:function(S){return!1},enqueueForceUpdate:function(S,O,V){pe(S,"forceUpdate")},enqueueReplaceState:function(S,O,V,G){pe(S,"replaceState")},enqueueSetState:function(S,O,V,G){pe(S,"setState")}},Oe=Object.assign,Pe={};Object.freeze(Pe);function Xe(S,O,V){this.props=S,this.context=O,this.refs=Pe,this.updater=V||Ee}Xe.prototype.isReactComponent={},Xe.prototype.setState=function(S,O){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,O,"setState")},Xe.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};{var et={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)."]},at=function(S,O){Object.defineProperty(Xe.prototype,S,{get:function(){ye("%s(...) is deprecated in plain JavaScript React classes. %s",O[0],O[1])}})};for(var kt in et)et.hasOwnProperty(kt)&&at(kt,et[kt])}function He(){}He.prototype=Xe.prototype;function ot(S,O,V){this.props=S,this.context=O,this.refs=Pe,this.updater=V||Ee}var wt=ot.prototype=new He;wt.constructor=ot,Oe(wt,Xe.prototype),wt.isPureReactComponent=!0;function It(){var S={current:null};return Object.seal(S),S}var We=Array.isArray;function Vt(S){return We(S)}function Ce(S){{var O=typeof Symbol=="function"&&Symbol.toStringTag,V=O&&S[Symbol.toStringTag]||S.constructor.name||"Object";return V}}function nt(S){try{return Ct(S),!1}catch{return!0}}function Ct(S){return""+S}function rt(S){if(nt(S))return K("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ce(S)),Ct(S)}function sn(S,O,V){var G=S.displayName;if(G)return G;var se=O.displayName||O.name||"";return se!==""?V+"("+se+")":V}function On(S){return S.displayName||"Context"}function Tt(S){if(S==null)return null;if(typeof S.tag=="number"&&K("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 s:return"Fragment";case o:return"Portal";case p:return"Profiler";case l:return"StrictMode";case b:return"Suspense";case w:return"SuspenseList"}if(typeof S=="object")switch(S.$$typeof){case v:var O=S;return On(O)+".Consumer";case m:var V=S;return On(V._context)+".Provider";case g:return sn(S,S.render,"ForwardRef");case C:var G=S.displayName||null;return G!==null?G:Tt(S.type)||"Memo";case T:{var se=S,Ue=se._payload,Te=se._init;try{return Tt(Te(Ue))}catch{return null}}}return null}var ln=Object.prototype.hasOwnProperty,Mn={key:!0,ref:!0,__self:!0,__source:!0},yn,Ze,tt;tt={};function rn(S){if(ln.call(S,"ref")){var O=Object.getOwnPropertyDescriptor(S,"ref").get;if(O&&O.isReactWarning)return!1}return S.ref!==void 0}function Dt(S){if(ln.call(S,"key")){var O=Object.getOwnPropertyDescriptor(S,"key").get;if(O&&O.isReactWarning)return!1}return S.key!==void 0}function Ie(S,O){var V=function(){yn||(yn=!0,K("%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)",O))};V.isReactWarning=!0,Object.defineProperty(S,"key",{get:V,configurable:!0})}function Zt(S,O){var V=function(){Ze||(Ze=!0,K("%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)",O))};V.isReactWarning=!0,Object.defineProperty(S,"ref",{get:V,configurable:!0})}function Tn(S){if(typeof S.ref=="string"&&q.current&&S.__self&&q.current.stateNode!==S.__self){var O=Tt(q.current.type);tt[O]||(K('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',O,S.ref),tt[O]=!0)}}var Ge=function(S,O,V,G,se,Ue,Te){var Ye={$$typeof:i,type:S,key:O,ref:V,props:Te,_owner:Ue};return Ye._store={},Object.defineProperty(Ye._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ye,"_self",{configurable:!1,enumerable:!1,writable:!1,value:G}),Object.defineProperty(Ye,"_source",{configurable:!1,enumerable:!1,writable:!1,value:se}),Object.freeze&&(Object.freeze(Ye.props),Object.freeze(Ye)),Ye};function ut(S,O,V){var G,se={},Ue=null,Te=null,Ye=null,ft=null;if(O!=null){rn(O)&&(Te=O.ref,Tn(O)),Dt(O)&&(rt(O.key),Ue=""+O.key),Ye=O.__self===void 0?null:O.__self,ft=O.__source===void 0?null:O.__source;for(G in O)ln.call(O,G)&&!Mn.hasOwnProperty(G)&&(se[G]=O[G])}var Nt=arguments.length-2;if(Nt===1)se.children=V;else if(Nt>1){for(var $t=Array(Nt),xt=0;xt<Nt;xt++)$t[xt]=arguments[xt+2];Object.freeze&&Object.freeze($t),se.children=$t}if(S&&S.defaultProps){var Gt=S.defaultProps;for(G in Gt)se[G]===void 0&&(se[G]=Gt[G])}if(Ue||Te){var Lt=typeof S=="function"?S.displayName||S.name||"Unknown":S;Ue&&Ie(se,Lt),Te&&Zt(se,Lt)}return Ge(S,Ue,Te,Ye,ft,q.current,se)}function At(S,O){var V=Ge(S.type,O,S.ref,S._self,S._source,S._owner,S.props);return V}function gn(S,O,V){if(S==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+S+".");var G,se=Oe({},S.props),Ue=S.key,Te=S.ref,Ye=S._self,ft=S._source,Nt=S._owner;if(O!=null){rn(O)&&(Te=O.ref,Nt=q.current),Dt(O)&&(rt(O.key),Ue=""+O.key);var $t;S.type&&S.type.defaultProps&&($t=S.type.defaultProps);for(G in O)ln.call(O,G)&&!Mn.hasOwnProperty(G)&&(O[G]===void 0&&$t!==void 0?se[G]=$t[G]:se[G]=O[G])}var xt=arguments.length-2;if(xt===1)se.children=V;else if(xt>1){for(var Gt=Array(xt),Lt=0;Lt<xt;Lt++)Gt[Lt]=arguments[Lt+2];se.children=Gt}return Ge(S.type,Ue,Te,Ye,ft,Nt,se)}function en(S){return typeof S=="object"&&S!==null&&S.$$typeof===i}var Rn=".",Fn=":";function zr(S){var O=/[=:]/g,V={"=":"=0",":":"=2"},G=S.replace(O,function(se){return V[se]});return"$"+G}var Pn=!1,Ti=/\/+/g;function Vn(S){return S.replace(Ti,"$&/")}function kn(S,O){return typeof S=="object"&&S!==null&&S.key!=null?(rt(S.key),zr(""+S.key)):O.toString(36)}function Ri(S,O,V,G,se){var Ue=typeof S;(Ue==="undefined"||Ue==="boolean")&&(S=null);var Te=!1;if(S===null)Te=!0;else switch(Ue){case"string":case"number":Te=!0;break;case"object":switch(S.$$typeof){case i:case o:Te=!0}}if(Te){var Ye=S,ft=se(Ye),Nt=G===""?Rn+kn(Ye,0):G;if(Vt(ft)){var $t="";Nt!=null&&($t=Vn(Nt)+"/"),Ri(ft,O,$t,"",function(Pd){return Pd})}else ft!=null&&(en(ft)&&(ft.key&&(!Ye||Ye.key!==ft.key)&&rt(ft.key),ft=At(ft,V+(ft.key&&(!Ye||Ye.key!==ft.key)?Vn(""+ft.key)+"/":"")+Nt)),O.push(ft));return 1}var xt,Gt,Lt=0,jt=G===""?Rn:G+Fn;if(Vt(S))for(var Da=0;Da<S.length;Da++)xt=S[Da],Gt=jt+kn(xt,Da),Lt+=Ri(xt,O,V,Gt,se);else{var Mi=P(S);if(typeof Mi=="function"){var rs=S;Mi===rs.entries&&(Pn||ye("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Pn=!0);for(var Ju=Mi.call(rs),In,$a=0;!(In=Ju.next()).done;)xt=In.value,Gt=jt+kn(xt,$a++),Lt+=Ri(xt,O,V,Gt,se)}else if(Ue==="object"){var ks=String(S);throw new Error("Objects are not valid as a React child (found: "+(ks==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":ks)+"). If you meant to render a collection of children, use an array instead.")}}return Lt}function Er(S,O,V){if(S==null)return S;var G=[],se=0;return Ri(S,G,"","",function(Ue){return O.call(V,Ue,se++)}),G}function Wo(S){var O=0;return Er(S,function(){O++}),O}function Ss(S,O,V){Er(S,function(){O.apply(this,arguments)},V)}function ws(S){return Er(S,function(O){return O})||[]}function Go(S){if(!en(S))throw new Error("React.Children.only expected to receive a single React element child.");return S}function Yo(S){var O={$$typeof:v,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};O.Provider={$$typeof:m,_context:O};var V=!1,G=!1,se=!1;{var Ue={$$typeof:v,_context:O};Object.defineProperties(Ue,{Provider:{get:function(){return G||(G=!0,K("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),O.Provider},set:function(Te){O.Provider=Te}},_currentValue:{get:function(){return O._currentValue},set:function(Te){O._currentValue=Te}},_currentValue2:{get:function(){return O._currentValue2},set:function(Te){O._currentValue2=Te}},_threadCount:{get:function(){return O._threadCount},set:function(Te){O._threadCount=Te}},Consumer:{get:function(){return V||(V=!0,K("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),O.Consumer}},displayName:{get:function(){return O.displayName},set:function(Te){se||(ye("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",Te),se=!0)}}}),O.Consumer=Ue}return O._currentRenderer=null,O._currentRenderer2=null,O}var xr=-1,Yi=0,Ja=1,qi=2;function X(S){if(S._status===xr){var O=S._result,V=O();if(V.then(function(Ue){if(S._status===Yi||S._status===xr){var Te=S;Te._status=Ja,Te._result=Ue}},function(Ue){if(S._status===Yi||S._status===xr){var Te=S;Te._status=qi,Te._result=Ue}}),S._status===xr){var G=S;G._status=Yi,G._result=V}}if(S._status===Ja){var se=S._result;return se===void 0&&K(`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?`,se),"default"in se||K(`lazy: Expected the result of a dynamic import() call. Instead received: %s
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))`,se),se.default}else throw S._result}function Ve(S){var O={_status:xr,_result:S},V={$$typeof:T,_payload:O,_init:X};{var G,se;Object.defineProperties(V,{defaultProps:{configurable:!0,get:function(){return G},set:function(Ue){K("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=Ue,Object.defineProperty(V,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return se},set:function(Ue){K("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."),se=Ue,Object.defineProperty(V,"propTypes",{enumerable:!0})}}})}return V}function Qe(S){S!=null&&S.$$typeof===C?K("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof S!="function"?K("forwardRef requires a render function but was given %s.",S===null?"null":typeof S):S.length!==0&&S.length!==2&&K("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)&&K("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var O={$$typeof:g,render:S};{var V;Object.defineProperty(O,"displayName",{enumerable:!1,configurable:!0,get:function(){return V},set:function(G){V=G,!S.name&&!S.displayName&&(S.displayName=G)}})}return O}var _t;_t=Symbol.for("react.module.reference");function un(S){return!!(typeof S=="string"||typeof S=="function"||S===s||S===p||ee||S===l||S===b||S===w||te||S===R||ae||me||ze||typeof S=="object"&&S!==null&&(S.$$typeof===T||S.$$typeof===C||S.$$typeof===m||S.$$typeof===v||S.$$typeof===g||S.$$typeof===_t||S.getModuleId!==void 0))}function Cn(S,O){un(S)||K("memo: The first argument must be a component. Instead received: %s",S===null?"null":typeof S);var V={$$typeof:C,type:S,compare:O===void 0?null:O};{var G;Object.defineProperty(V,"displayName",{enumerable:!1,configurable:!0,get:function(){return G},set:function(se){G=se,!S.name&&!S.displayName&&(S.displayName=se)}})}return V}function st(){var S=I.current;return S===null&&K(`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 Kt(S){var O=st();if(S._context!==void 0){var V=S._context;V.Consumer===S?K("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&&K("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return O.useContext(S)}function Hn(S){var O=st();return O.useState(S)}function Un(S,O,V){var G=st();return G.useReducer(S,O,V)}function fn(S){var O=st();return O.useRef(S)}function Kr(S,O){var V=st();return V.useEffect(S,O)}function Aa(S,O){var V=st();return V.useInsertionEffect(S,O)}function qo(S,O){var V=st();return V.useLayoutEffect(S,O)}function ki(S,O){var V=st();return V.useCallback(S,O)}function wo(S,O){var V=st();return V.useMemo(S,O)}function Xu(S,O,V){var G=st();return G.useImperativeHandle(S,O,V)}function La(S,O){{var V=st();return V.useDebugValue(S,O)}}function cl(){var S=st();return S.useTransition()}function eo(S){var O=st();return O.useDeferredValue(S)}function tn(){var S=st();return S.useId()}function to(S,O,V){var G=st();return G.useSyncExternalStore(S,O,V)}var Ai=0,Zo,Cs,Ko,Ns,Es,Xo,Qo;function _s(){}_s.__reactDisabledLog=!0;function fl(){{if(Ai===0){Zo=console.log,Cs=console.info,Ko=console.warn,Ns=console.error,Es=console.group,Xo=console.groupCollapsed,Qo=console.groupEnd;var S={configurable:!0,enumerable:!0,value:_s,writable:!0};Object.defineProperties(console,{info:S,log:S,warn:S,error:S,group:S,groupCollapsed:S,groupEnd:S})}Ai++}}function dl(){{if(Ai--,Ai===0){var S={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Oe({},S,{value:Zo}),info:Oe({},S,{value:Cs}),warn:Oe({},S,{value:Ko}),error:Oe({},S,{value:Ns}),group:Oe({},S,{value:Es}),groupCollapsed:Oe({},S,{value:Xo}),groupEnd:Oe({},S,{value:Qo})})}Ai<0&&K("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Oa=we.ReactCurrentDispatcher,Gr;function Zi(S,O,V){{if(Gr===void 0)try{throw Error()}catch(se){var G=se.stack.trim().match(/\n( *(at )?)/);Gr=G&&G[1]||""}return`
`+Gr+S}}var Li=!1,Ki;{var Ts=typeof WeakMap=="function"?WeakMap:Map;Ki=new Ts}function Jo(S,O){if(!S||Li)return"";{var V=Ki.get(S);if(V!==void 0)return V}var G;Li=!0;var se=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ue;Ue=Oa.current,Oa.current=null,fl();try{if(O){var Te=function(){throw Error()};if(Object.defineProperty(Te.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Te,[])}catch(jt){G=jt}Reflect.construct(S,[],Te)}else{try{Te.call()}catch(jt){G=jt}S.call(Te.prototype)}}else{try{throw Error()}catch(jt){G=jt}S()}}catch(jt){if(jt&&G&&typeof jt.stack=="string"){for(var Ye=jt.stack.split(`
`),ft=G.stack.split(`
`),Nt=Ye.length-1,$t=ft.length-1;Nt>=1&&$t>=0&&Ye[Nt]!==ft[$t];)$t--;for(;Nt>=1&&$t>=0;Nt--,$t--)if(Ye[Nt]!==ft[$t]){if(Nt!==1||$t!==1)do if(Nt--,$t--,$t<0||Ye[Nt]!==ft[$t]){var xt=`
`+Ye[Nt].replace(" at new "," at ");return S.displayName&&xt.includes("<anonymous>")&&(xt=xt.replace("<anonymous>",S.displayName)),typeof S=="function"&&Ki.set(S,xt),xt}while(Nt>=1&&$t>=0);break}}}finally{Li=!1,Oa.current=Ue,dl(),Error.prepareStackTrace=se}var Gt=S?S.displayName||S.name:"",Lt=Gt?Zi(Gt):"";return typeof S=="function"&&Ki.set(S,Lt),Lt}function Rs(S,O,V){return Jo(S,!1)}function Jl(S){var O=S.prototype;return!!(O&&O.isReactComponent)}function Oi(S,O,V){if(S==null)return"";if(typeof S=="function")return Jo(S,Jl(S));if(typeof S=="string")return Zi(S);switch(S){case b:return Zi("Suspense");case w:return Zi("SuspenseList")}if(typeof S=="object")switch(S.$$typeof){case g:return Rs(S.render);case C:return Oi(S.type,O,V);case T:{var G=S,se=G._payload,Ue=G._init;try{return Oi(Ue(se),O,V)}catch{}}}return""}var es={},Xi=we.ReactDebugCurrentFrame;function Ma(S){if(S){var O=S._owner,V=Oi(S.type,S._source,O?O.type:null);Xi.setExtraStackFrame(V)}else Xi.setExtraStackFrame(null)}function pl(S,O,V,G,se){{var Ue=Function.call.bind(ln);for(var Te in S)if(Ue(S,Te)){var Ye=void 0;try{if(typeof S[Te]!="function"){var ft=Error((G||"React class")+": "+V+" type `"+Te+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof S[Te]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ft.name="Invariant Violation",ft}Ye=S[Te](O,Te,G,V,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Nt){Ye=Nt}Ye&&!(Ye instanceof Error)&&(Ma(se),K("%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,Te,typeof Ye),Ma(null)),Ye instanceof Error&&!(Ye.message in es)&&(es[Ye.message]=!0,Ma(se),K("Failed %s type: %s",V,Ye.message),Ma(null))}}}function dn(S){if(S){var O=S._owner,V=Oi(S.type,S._source,O?O.type:null);ie(V)}else ie(null)}var Pa;Pa=!1;function ts(){if(q.current){var S=Tt(q.current.type);if(S)return`
Check the render method of \``+S+"`."}return""}function Wt(S){if(S!==void 0){var O=S.fileName.replace(/^.*[\\\/]/,""),V=S.lineNumber;return`
Check your code at `+O+":"+V+"."}return""}function ml(S){return S!=null?Wt(S.__source):""}var _r={};function no(S){var O=ts();if(!O){var V=typeof S=="string"?S:S.displayName||S.name;V&&(O=`
Check the top-level render call using <`+V+">.")}return O}function oa(S,O){if(!(!S._store||S._store.validated||S.key!=null)){S._store.validated=!0;var V=no(O);if(!_r[V]){_r[V]=!0;var G="";S&&S._owner&&S._owner!==q.current&&(G=" It was passed a child from "+Tt(S._owner.type)+"."),dn(S),K('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),dn(null)}}}function Co(S,O){if(typeof S=="object"){if(Vt(S))for(var V=0;V<S.length;V++){var G=S[V];en(G)&&oa(G,O)}else if(en(S))S._store&&(S._store.validated=!0);else if(S){var se=P(S);if(typeof se=="function"&&se!==S.entries)for(var Ue=se.call(S),Te;!(Te=Ue.next()).done;)en(Te.value)&&oa(Te.value,O)}}}function Pr(S){{var O=S.type;if(O==null||typeof O=="string")return;var V;if(typeof O=="function")V=O.propTypes;else if(typeof O=="object"&&(O.$$typeof===g||O.$$typeof===C))V=O.propTypes;else return;if(V){var G=Tt(O);pl(V,S.props,"prop",G,S)}else if(O.PropTypes!==void 0&&!Pa){Pa=!0;var se=Tt(O);K("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",se||"Unknown")}typeof O.getDefaultProps=="function"&&!O.getDefaultProps.isReactClassApproved&&K("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function lr(S){{for(var O=Object.keys(S.props),V=0;V<O.length;V++){var G=O[V];if(G!=="children"&&G!=="key"){dn(S),K("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",G),dn(null);break}}S.ref!==null&&(dn(S),K("Invalid attribute `ref` supplied to `React.Fragment`."),dn(null))}}function ns(S,O,V){var G=un(S);if(!G){var se="";(S===void 0||typeof S=="object"&&S!==null&&Object.keys(S).length===0)&&(se+=" 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 Ue=ml(O);Ue?se+=Ue:se+=ts();var Te;S===null?Te="null":Vt(S)?Te="array":S!==void 0&&S.$$typeof===i?(Te="<"+(Tt(S.type)||"Unknown")+" />",se=" Did you accidentally export a JSX literal instead of a component?"):Te=typeof S,K("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Te,se)}var Ye=ut.apply(this,arguments);if(Ye==null)return Ye;if(G)for(var ft=2;ft<arguments.length;ft++)Co(arguments[ft],S);return S===s?lr(Ye):Pr(Ye),Ye}var ri=!1;function br(S){var O=ns.bind(null,S);return O.type=S,ri||(ri=!0,ye("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(O,"type",{enumerable:!1,get:function(){return ye("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:S}),S}}),O}function di(S,O,V){for(var G=gn.apply(this,arguments),se=2;se<arguments.length;se++)Co(arguments[se],G.type);return Pr(G),G}function Qu(S,O){var V=F.transition;F.transition={};var G=F.transition;F.transition._updatedFibers=new Set;try{S()}finally{if(F.transition=V,V===null&&G._updatedFibers){var se=G._updatedFibers.size;se>10&&ye("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 No=!1,Ia=null;function hl(S){if(Ia===null)try{var O=("require"+Math.random()).slice(0,7),V=t&&t[O];Ia=V.call(t,"timers").setImmediate}catch{Ia=function(se){No===!1&&(No=!0,typeof MessageChannel>"u"&&K("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 Ue=new MessageChannel;Ue.port1.onmessage=se,Ue.port2.postMessage(void 0)}}return Ia(S)}var bn=0,zn=!1;function eu(S){{var O=bn;bn++,z.current===null&&(z.current=[]);var V=z.isBatchingLegacy,G;try{if(z.isBatchingLegacy=!0,G=S(),!V&&z.didScheduleLegacyUpdate){var se=z.current;se!==null&&(z.didScheduleLegacyUpdate=!1,be(se))}}catch(Gt){throw Qi(O),Gt}finally{z.isBatchingLegacy=V}if(G!==null&&typeof G=="object"&&typeof G.then=="function"){var Ue=G,Te=!1,Ye={then:function(Gt,Lt){Te=!0,Ue.then(function(jt){Qi(O),bn===0?W(jt,Gt,Lt):Gt(jt)},function(jt){Qi(O),Lt(jt)})}};return!zn&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){Te||(zn=!0,K("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 () => ...);"))}),Ye}else{var ft=G;if(Qi(O),bn===0){var Nt=z.current;Nt!==null&&(be(Nt),z.current=null);var $t={then:function(Gt,Lt){z.current===null?(z.current=[],W(ft,Gt,Lt)):Gt(ft)}};return $t}else{var xt={then:function(Gt,Lt){Gt(ft)}};return xt}}}}function Qi(S){S!==bn-1&&K("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),bn=S}function W(S,O,V){{var G=z.current;if(G!==null)try{be(G),hl(function(){G.length===0?(z.current=null,O(S)):W(S,O,V)})}catch(se){V(se)}else O(S)}}var ne=!1;function be(S){if(!ne){ne=!0;var O=0;try{for(;O<S.length;O++){var V=S[O];do V=V(!0);while(V!==null)}S.length=0}catch(G){throw S=S.slice(O+1),G}finally{ne=!1}}}var ct=ns,pn=di,Bn=br,Xt={map:Er,forEach:Ss,count:Wo,toArray:ws,only:Go};e.Children=Xt,e.Component=Xe,e.Fragment=s,e.Profiler=p,e.PureComponent=ot,e.StrictMode=l,e.Suspense=b,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=we,e.cloneElement=pn,e.createContext=Yo,e.createElement=ct,e.createFactory=Bn,e.createRef=It,e.forwardRef=Qe,e.isValidElement=en,e.lazy=Ve,e.memo=Cn,e.startTransition=Qu,e.unstable_act=eu,e.useCallback=ki,e.useContext=Kt,e.useDebugValue=La,e.useDeferredValue=eo,e.useEffect=Kr,e.useId=tn,e.useImperativeHandle=Xu,e.useInsertionEffect=Aa,e.useLayoutEffect=qo,e.useMemo=wo,e.useReducer=Un,e.useRef=fn,e.useState=Hn,e.useSyncExternalStore=to,e.useTransition=cl,e.version=n,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()}}),Are=iz({"../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"(e,t){t.exports=kre()}}),vM=Rre(Are());function Q3(e){return vM.Children.toArray(e).filter(t=>(0,vM.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 bd="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/button/dist/index.esm.js",J3=(...e)=>e.filter(Boolean).join(" "),gM=e=>e?"":void 0,[Lre,Ore]=Or({strict:!1,name:"ButtonGroupContext"});function GE(e){const{children:t,className:n,...i}=e,o=E.exports.isValidElement(t)?E.exports.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,s=J3("chakra-button__icon",n);return Ne.createElement($e.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...i,className:s},o)}GE.displayName="ButtonIcon";function YE(e){const{label:t,placement:n,spacing:i="0.5rem",children:o=N(Z3,{color:"currentColor",width:"1em",height:"1em"},void 0,!1,{fileName:bd,lineNumber:56,columnNumber:32},this),className:s,__css:l,...p}=e,m=J3("chakra-button__spinner",s),v=n==="start"?"marginEnd":"marginStart",g=E.exports.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[v]:t?i:0,fontSize:"1em",lineHeight:"normal",...l}),[l,t,v,i]);return Ne.createElement($e.div,{className:m,...p,__css:g},o)}YE.displayName="ButtonSpinner";function Mre(e){const[t,n]=E.exports.useState(!e);return{ref:E.exports.useCallback(s=>{!s||n(s.tagName==="BUTTON")},[]),type:t?"button":void 0}}var Wu=qe((e,t)=>{const n=Ore(),i=xo("Button",{...n,...e}),{isDisabled:o=n?.isDisabled,isLoading:s,isActive:l,children:p,leftIcon:m,rightIcon:v,loadingText:g,iconSpacing:b="0.5rem",type:w,spinner:C,spinnerPlacement:T="start",className:R,as:L,...D}=gr(e),P=E.exports.useMemo(()=>{const q={...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,...!!n&&{_focus:q}}},[i,n]),{ref:I,type:F}=Mre(L),z={rightIcon:v,leftIcon:m,iconSpacing:b,children:p};return Ne.createElement($e.button,{disabled:o||s,ref:WX(t,I),as:L,type:w??F,"data-active":gM(l),"data-loading":gM(s),__css:P,className:J3("chakra-button",R),...D},s&&T==="start"&&N(YE,{className:"chakra-button__spinner--start",label:g,placement:"start",spacing:b,children:C},void 0,!1,{fileName:bd,lineNumber:145,columnNumber:67},globalThis),s?g||Ne.createElement($e.span,{opacity:0},N(bM,{...z},void 0,!1,{fileName:bd,lineNumber:152,columnNumber:22},globalThis)):N(bM,{...z},void 0,!1,{fileName:bd,lineNumber:154,columnNumber:25},globalThis),s&&T==="end"&&N(YE,{className:"chakra-button__spinner--end",label:g,placement:"end",spacing:b,children:C},void 0,!1,{fileName:bd,lineNumber:156,columnNumber:66},globalThis))});Wu.displayName="Button";function bM(e){const{leftIcon:t,rightIcon:n,children:i,iconSpacing:o}=e;return N(Gi,{children:[t&&N(GE,{marginEnd:o,children:t},void 0,!1,{fileName:bd,lineNumber:166,columnNumber:96},this),i,n&&N(GE,{marginStart:o,children:n},void 0,!1,{fileName:bd,lineNumber:168,columnNumber:56},this)]},void 0,!0)}var Pre=qe(function(t,n){const{size:i,colorScheme:o,variant:s,className:l,spacing:p="0.5rem",isAttached:m,isDisabled:v,...g}=t,b=J3("chakra-button__group",l),w=E.exports.useMemo(()=>({size:i,colorScheme:o,variant:s,isDisabled:v}),[i,o,s,v]);let C={display:"inline-flex"};return m?C={...C,"> *: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}}:C={...C,"& > *:not(style) ~ *:not(style)":{marginStart:p}},Ne.createElement(Lre,{value:w},Ne.createElement($e.div,{ref:n,role:"group",__css:C,className:b,"data-attached":m?"":void 0,...g}))});Pre.displayName="ButtonGroup";var Ra=qe((e,t)=>{const{icon:n,children:i,isRound:o,"aria-label":s,...l}=e,p=n||i,m=E.exports.isValidElement(p)?E.exports.cloneElement(p,{"aria-hidden":!0,focusable:!1}):null;return N(Wu,{padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":s,...l,children:m},void 0,!1,{fileName:bd,lineNumber:231,columnNumber:26},globalThis)});Ra.displayName="IconButton";var T5="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/form-control/node_modules/@chakra-ui/icon/dist/index.esm.js",yM={path:N("g",{stroke:"currentColor",strokeWidth:"1.5",children:[N("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:T5,lineNumber:14,columnNumber:22},globalThis),N("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:T5,lineNumber:18,columnNumber:23},globalThis),N("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"},void 0,!1,{fileName:T5,lineNumber:22,columnNumber:23},globalThis)]},void 0,!0,{fileName:T5,lineNumber:11,columnNumber:25},globalThis),viewBox:"0 0 24 24"},az=qe((e,t)=>{const{as:n,viewBox:i,color:o="currentColor",focusable:s=!1,children:l,className:p,__css:m,...v}=e,g=yr("chakra-icon",p),b={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...m},w={ref:t,focusable:s,className:g,__css:b},C=i??yM.viewBox;if(n&&typeof n!="string")return Ne.createElement($e.svg,{as:n,...w,...v});const T=l??yM.path;return Ne.createElement($e.svg,{verticalAlign:"middle",viewBox:C,...w,...v},T)});az.displayName="Icon";var qE="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/form-control/dist/index.esm.js",i0=(...e)=>e.filter(Boolean).join(" "),R5=e=>e?"":void 0,s7=e=>e?!0:void 0;function xM(...e){return function(n){e.some(i=>(i?.(n),n?.defaultPrevented))}}var[Ire,oz]=Or({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormControl />" `}),[Dre,a0]=Or({strict:!1,name:"FormControlContext"});function $re(e){const{id:t,isRequired:n,isInvalid:i,isDisabled:o,isReadOnly:s,...l}=e,p=E.exports.useId(),m=t||`field-${p}`,v=`${m}-label`,g=`${m}-feedback`,b=`${m}-helptext`,[w,C]=E.exports.useState(!1),[T,R]=E.exports.useState(!1),[L,D]=E.exports.useState(!1),P=E.exports.useCallback((Y={},Q=null)=>({id:b,...Y,ref:ti(Q,ie=>{!ie||R(!0)})}),[b]),I=E.exports.useCallback((Y={},Q=null)=>({...Y,ref:Q,"data-focus":R5(L),"data-disabled":R5(o),"data-invalid":R5(i),"data-readonly":R5(s),id:Y.id??v,htmlFor:Y.htmlFor??m}),[m,o,L,i,s,v]),F=E.exports.useCallback((Y={},Q=null)=>({id:g,...Y,ref:ti(Q,ie=>{!ie||C(!0)}),"aria-live":"polite"}),[g]),z=E.exports.useCallback((Y={},Q=null)=>({...Y,...l,ref:Q,role:"group"}),[l]),q=E.exports.useCallback((Y={},Q=null)=>({...Y,ref:Q,role:"presentation","aria-hidden":!0,children:Y.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!i,isReadOnly:!!s,isDisabled:!!o,isFocused:!!L,onFocus:()=>D(!0),onBlur:()=>D(!1),hasFeedbackText:w,setHasFeedbackText:C,hasHelpText:T,setHasHelpText:R,id:m,labelId:v,feedbackId:g,helpTextId:b,htmlProps:l,getHelpTextProps:P,getErrorMessageProps:F,getRootProps:z,getLabelProps:I,getRequiredIndicatorProps:q}}var Ld=qe(function(t,n){const i=So("Form",t),o=gr(t),{getRootProps:s,htmlProps:l,...p}=$re(o),m=i0("chakra-form-control",t.className);return Ne.createElement(Dre,{value:p},Ne.createElement(Ire,{value:i},Ne.createElement($e.div,{...s({},n),className:m,__css:i.container})))});Ld.displayName="FormControl";var Fre=qe(function(t,n){const i=a0(),o=oz(),s=i0("chakra-form__helper-text",t.className);return Ne.createElement($e.div,{...i?.getHelpTextProps(t,n),__css:o.helperText,className:s})});Fre.displayName="FormHelperText";function X8(e){const{isDisabled:t,isInvalid:n,isReadOnly:i,isRequired:o,...s}=Q8(e);return{...s,disabled:t,readOnly:i,required:o,"aria-invalid":s7(n),"aria-required":s7(o),"aria-readonly":s7(i)}}function Q8(e){const t=a0(),{id:n,disabled:i,readOnly:o,required:s,isRequired:l,isInvalid:p,isReadOnly:m,isDisabled:v,onFocus:g,onBlur:b,...w}=e,C=e["aria-describedby"]?[e["aria-describedby"]]:[];return t?.hasFeedbackText&&t?.isInvalid&&C.push(t.feedbackId),t?.hasHelpText&&C.push(t.helpTextId),{...w,"aria-describedby":C.join(" ")||void 0,id:n??t?.id,isDisabled:i??v??t?.isDisabled,isReadOnly:o??m??t?.isReadOnly,isRequired:s??l??t?.isRequired,isInvalid:p??t?.isInvalid,onFocus:xM(t?.onFocus,g),onBlur:xM(t?.onBlur,b)}}var[zre,Bre]=Or({name:"FormErrorStylesContext",errorMessage:`useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormError />" `}),Ure=qe((e,t)=>{const n=So("FormError",e),i=gr(e),o=a0();return o?.isInvalid?Ne.createElement(zre,{value:n},Ne.createElement($e.div,{...o?.getErrorMessageProps(i,t),className:i0("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...n.text}})):null});Ure.displayName="FormErrorMessage";var jre=qe((e,t)=>{const n=Bre(),i=a0();if(!i?.isInvalid)return null;const o=i0("chakra-form__error-icon",e.className);return N(az,{ref:t,"aria-hidden":!0,...e,__css:n.icon,className:o,children:N("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:qE,lineNumber:244,columnNumber:22},globalThis)},void 0,!1,{fileName:qE,lineNumber:238,columnNumber:26},globalThis)});jre.displayName="FormErrorIcon";var Am=qe(function(t,n){const i=xo("FormLabel",t),o=gr(t),{className:s,children:l,requiredIndicator:p=N(sz,{},void 0,!1,{fileName:qE,lineNumber:264,columnNumber:41},this),optionalIndicator:m=null,...v}=o,g=a0(),b=g?.getLabelProps(v,n)??{ref:n,...v};return Ne.createElement($e.label,{...b,className:i0("chakra-form__label",o.className),__css:{display:"block",textAlign:"start",...i}},l,g?.isRequired?p:m)});Am.displayName="FormLabel";var sz=qe(function(t,n){const i=a0(),o=oz();if(!i?.isRequired)return null;const s=i0("chakra-form__required-indicator",t.className);return Ne.createElement($e.span,{...i?.getRequiredIndicatorProps(t,n),__css:o.requiredIndicator,className:s})});sz.displayName="RequiredIndicator";function XS(e,t){const n=E.exports.useRef(!1),i=E.exports.useRef(!1);E.exports.useEffect(()=>{if(n.current&&i.current)return e();i.current=!0},t),E.exports.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])}var J8={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},Vre=$e("span",{baseStyle:J8});Vre.displayName="VisuallyHidden";var Hre=$e("input",{baseStyle:J8});Hre.displayName="VisuallyHiddenInput";var SM=!1,e4=null,Wv=!1,ZE=new Set,Wre=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function Gre(e){return!(e.metaKey||!Wre&&e.altKey||e.ctrlKey)}function eT(e,t){ZE.forEach(n=>n(e,t))}function wM(e){Wv=!0,Gre(e)&&(e4="keyboard",eT("keyboard",e))}function uv(e){e4="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Wv=!0,eT("pointer",e))}function Yre(e){e.target===window||e.target===document||(Wv||(e4="keyboard",eT("keyboard",e)),Wv=!1)}function qre(){Wv=!1}function CM(){return e4!=="pointer"}function Zre(){if(typeof window>"u"||SM)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){Wv=!0,e.apply(this,n)},document.addEventListener("keydown",wM,!0),document.addEventListener("keyup",wM,!0),window.addEventListener("focus",Yre,!0),window.addEventListener("blur",qre,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",uv,!0),document.addEventListener("pointermove",uv,!0),document.addEventListener("pointerup",uv,!0)):(document.addEventListener("mousedown",uv,!0),document.addEventListener("mousemove",uv,!0),document.addEventListener("mouseup",uv,!0)),SM=!0}function Kre(e){Zre(),e(CM());const t=()=>e(CM());return ZE.add(t),()=>{ZE.delete(t)}}var ql="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/checkbox/dist/index.esm.js",[S4e,Xre]=Or({name:"CheckboxGroupContext",strict:!1}),Qre=(...e)=>e.filter(Boolean).join(" "),ho=e=>e?"":void 0;function Qs(...e){return function(n){e.some(i=>(i?.(n),n?.defaultPrevented))}}function Jre(...e){return function(n){e.forEach(i=>{i?.(n)})}}function eie(e){const t=ll;return"custom"in t&&typeof t.custom=="function"?t.custom(e):t(e)}var lz=eie($e.svg);function tie(e){return N(lz,{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:N("polyline",{points:"1.5 6 4.5 9 10.5 1"},void 0,!1,{fileName:ql,lineNumber:137,columnNumber:22},this)},void 0,!1,{fileName:ql,lineNumber:116,columnNumber:26},this)}function nie(e){return N(lz,{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:N("line",{x1:"21",x2:"3",y1:"12",y2:"12"},void 0,!1,{fileName:ql,lineNumber:161,columnNumber:22},this)},void 0,!1,{fileName:ql,lineNumber:142,columnNumber:26},this)}function rie({open:e,children:t}){return N(tf,{initial:!1,children:e&&Ne.createElement(ll.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:ql,lineNumber:169,columnNumber:26},this)}function iie(e){const{isIndeterminate:t,isChecked:n,...i}=e;return N(rie,{open:n||t,children:N(t?nie:tie,{...i},void 0,!1,{fileName:ql,lineNumber:192,columnNumber:22},this)},void 0,!1,{fileName:ql,lineNumber:190,columnNumber:26},this)}function aie(e,t=[]){const n=Object.assign({},e);for(const i of t)i in n&&delete n[i];return n}function uz(e={}){const t=Q8(e),{isDisabled:n,isReadOnly:i,isRequired:o,isInvalid:s,id:l,onBlur:p,onFocus:m,"aria-describedby":v}=t,{defaultChecked:g,isChecked:b,isFocusable:w,onChange:C,isIndeterminate:T,name:R,value:L,tabIndex:D=void 0,"aria-label":P,"aria-labelledby":I,"aria-invalid":F,...z}=e,q=aie(z,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),Y=Ka(C),Q=Ka(p),ie=Ka(m),[ae,me]=E.exports.useState(!1),[ze,te]=E.exports.useState(!1),[ee,we]=E.exports.useState(!1),[ye,K]=E.exports.useState(!1);E.exports.useEffect(()=>Kre(me),[]);const le=E.exports.useRef(null),[ge,pe]=E.exports.useState(!0),[Ee,Oe]=E.exports.useState(!!g),Pe=b!==void 0,Xe=Pe?b:Ee,et=E.exports.useCallback(Ce=>{if(i||n){Ce.preventDefault();return}Pe||Oe(Xe?Ce.target.checked:T?!0:Ce.target.checked),Y?.(Ce)},[i,n,Xe,Pe,T,Y]);$u(()=>{le.current&&(le.current.indeterminate=Boolean(T))},[T]),XS(()=>{n&&te(!1)},[n,te]),$u(()=>{const Ce=le.current;!Ce?.form||(Ce.form.onreset=()=>{Oe(!!g)})},[]);const at=n&&!w,kt=E.exports.useCallback(Ce=>{Ce.key===" "&&K(!0)},[K]),He=E.exports.useCallback(Ce=>{Ce.key===" "&&K(!1)},[K]);$u(()=>{if(!le.current)return;le.current.checked!==Xe&&Oe(le.current.checked)},[le.current]);const ot=E.exports.useCallback((Ce={},nt=null)=>{const Ct=rt=>{ze&&rt.preventDefault(),K(!0)};return{...Ce,ref:nt,"data-active":ho(ye),"data-hover":ho(ee),"data-checked":ho(Xe),"data-focus":ho(ze),"data-focus-visible":ho(ze&&ae),"data-indeterminate":ho(T),"data-disabled":ho(n),"data-invalid":ho(s),"data-readonly":ho(i),"aria-hidden":!0,onMouseDown:Qs(Ce.onMouseDown,Ct),onMouseUp:Qs(Ce.onMouseUp,()=>K(!1)),onMouseEnter:Qs(Ce.onMouseEnter,()=>we(!0)),onMouseLeave:Qs(Ce.onMouseLeave,()=>we(!1))}},[ye,Xe,n,ze,ae,ee,T,s,i]),wt=E.exports.useCallback((Ce={},nt=null)=>({...q,...Ce,ref:ti(nt,Ct=>{!Ct||pe(Ct.tagName==="LABEL")}),onClick:Qs(Ce.onClick,()=>{var Ct;ge||((Ct=le.current)==null||Ct.click(),requestAnimationFrame(()=>{var rt;(rt=le.current)==null||rt.focus()}))}),"data-disabled":ho(n),"data-checked":ho(Xe),"data-invalid":ho(s)}),[q,n,Xe,s,ge]),It=E.exports.useCallback((Ce={},nt=null)=>({...Ce,ref:ti(le,nt),type:"checkbox",name:R,value:L,id:l,tabIndex:D,onChange:Qs(Ce.onChange,et),onBlur:Qs(Ce.onBlur,Q,()=>te(!1)),onFocus:Qs(Ce.onFocus,ie,()=>te(!0)),onKeyDown:Qs(Ce.onKeyDown,kt),onKeyUp:Qs(Ce.onKeyUp,He),required:o,checked:Xe,disabled:at,readOnly:i,"aria-label":P,"aria-labelledby":I,"aria-invalid":F?Boolean(F):s,"aria-describedby":v,"aria-disabled":n,style:J8}),[R,L,l,et,Q,ie,kt,He,o,Xe,at,i,P,I,F,s,v,n,D]),We=E.exports.useCallback((Ce={},nt=null)=>({...Ce,ref:nt,onMouseDown:Qs(Ce.onMouseDown,NM),onTouchStart:Qs(Ce.onTouchStart,NM),"data-disabled":ho(n),"data-checked":ho(Xe),"data-invalid":ho(s)}),[Xe,n,s]);return{state:{isInvalid:s,isFocused:ze,isChecked:Xe,isActive:ye,isHovered:ee,isIndeterminate:T,isDisabled:n,isReadOnly:i,isRequired:o},getRootProps:wt,getCheckboxProps:ot,getInputProps:It,getLabelProps:We,htmlProps:q}}function NM(e){e.preventDefault(),e.stopPropagation()}var oie=$e("span",{baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0}}),sie=$e("label",{baseStyle:{cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"}}),lie=qe(function(t,n){const i=Xre(),o={...i,...t},s=So("Checkbox",o),l=gr(t),{spacing:p="0.5rem",className:m,children:v,iconColor:g,iconSize:b,icon:w=N(iie,{},void 0,!1,{fileName:ql,lineNumber:505,columnNumber:28},this),isChecked:C,isDisabled:T=i?.isDisabled,onChange:R,inputProps:L,...D}=l;let P=C;i?.value&&l.value&&(P=i.value.includes(l.value));let I=R;i?.onChange&&l.value&&(I=Jre(i.onChange,R));const{state:F,getInputProps:z,getCheckboxProps:q,getLabelProps:Y,getRootProps:Q}=uz({...D,isDisabled:T,isChecked:P,onChange:I}),ie=E.exports.useMemo(()=>({opacity:F.isChecked||F.isIndeterminate?1:0,transform:F.isChecked||F.isIndeterminate?"scale(1)":"scale(0.95)",fontSize:b,color:g,...s.icon}),[g,b,F.isChecked,F.isIndeterminate,s.icon]),ae=E.exports.cloneElement(w,{__css:ie,isIndeterminate:F.isIndeterminate,isChecked:F.isChecked});return N(sie,{__css:s.container,className:Qre("chakra-checkbox",m),...Q(),children:[N("input",{className:"chakra-checkbox__input",...z(L,n)},void 0,!1,{fileName:ql,lineNumber:548,columnNumber:22},this),N(oie,{__css:s.control,className:"chakra-checkbox__control",...q(),children:ae},void 0,!1,{fileName:ql,lineNumber:551,columnNumber:23},this),v&&Ne.createElement($e.span,{className:"chakra-checkbox__label",...Y(),__css:{marginStart:p,...s.label}},v)]},void 0,!0,{fileName:ql,lineNumber:544,columnNumber:26},this)});lie.displayName="Checkbox";var k5="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/close-button/node_modules/@chakra-ui/icon/dist/index.esm.js",EM={path:N("g",{stroke:"currentColor",strokeWidth:"1.5",children:[N("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:k5,lineNumber:14,columnNumber:22},globalThis),N("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:k5,lineNumber:18,columnNumber:23},globalThis),N("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"},void 0,!1,{fileName:k5,lineNumber:22,columnNumber:23},globalThis)]},void 0,!0,{fileName:k5,lineNumber:11,columnNumber:25},globalThis),viewBox:"0 0 24 24"},cz=qe((e,t)=>{const{as:n,viewBox:i,color:o="currentColor",focusable:s=!1,children:l,className:p,__css:m,...v}=e,g=yr("chakra-icon",p),b={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...m},w={ref:t,focusable:s,className:g,__css:b},C=i??EM.viewBox;if(n&&typeof n!="string")return Ne.createElement($e.svg,{as:n,...w,...v});const T=l??EM.path;return Ne.createElement($e.svg,{verticalAlign:"middle",viewBox:C,...w,...v},T)});cz.displayName="Icon";var KE="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/close-button/dist/index.esm.js";function uie(e){return N(cz,{focusable:"false","aria-hidden":!0,...e,children:N("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:KE,lineNumber:17,columnNumber:22},this)},void 0,!1,{fileName:KE,lineNumber:13,columnNumber:26},this)}var t4=qe(function(t,n){const i=xo("CloseButton",t),{children:o,isDisabled:s,__css:l,...p}=gr(t),m={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return Ne.createElement($e.button,{type:"button","aria-label":"Close",ref:n,disabled:s,__css:{...m,...i,...l},...p},o||N(uie,{width:"1em",height:"1em"},void 0,!1,{fileName:KE,lineNumber:43,columnNumber:34},this))});t4.displayName="CloseButton";function cie(e){const t=parseFloat(e);return typeof t!="number"||Number.isNaN(t)?0:t}function fz(e,t){let n=cie(e);const i=10**(t??10);return n=Math.round(n*i)/i,t?n.toFixed(t):n.toString()}function _M(e){if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}function fie(e,t,n){return e==null?e:(n<t&&console.warn("clamp: max cannot be less than min"),Math.min(Math.max(e,t),n))}function die(e={}){const{onChange:t,precision:n,defaultValue:i,value:o,step:s=1,min:l=Number.MIN_SAFE_INTEGER,max:p=Number.MAX_SAFE_INTEGER,keepWithinRange:m=!0}=e,v=Ka(t),[g,b]=E.exports.useState(()=>i==null?"":l7(i,s,n)??""),w=typeof o<"u",C=w?o:g,T=dz(fd(C),s),R=n??T,L=E.exports.useCallback(ae=>{ae!==C&&(w||b(ae.toString()),v?.(ae.toString(),fd(ae)))},[v,w,C]),D=E.exports.useCallback(ae=>{let me=ae;return m&&(me=fie(me,l,p)),fz(me,R)},[R,m,p,l]),P=E.exports.useCallback((ae=s)=>{let me;C===""?me=fd(ae):me=fd(C)+ae,me=D(me),L(me)},[D,s,L,C]),I=E.exports.useCallback((ae=s)=>{let me;C===""?me=fd(-ae):me=fd(C)-ae,me=D(me),L(me)},[D,s,L,C]),F=E.exports.useCallback(()=>{let ae;i==null?ae="":ae=l7(i,s,n)??l,L(ae)},[i,n,s,L,l]),z=E.exports.useCallback(ae=>{const me=l7(ae,s,R)??l;L(me)},[R,s,L,l]),q=fd(C);return{isOutOfRange:q>p||q<l,isAtMax:q===p,isAtMin:q===l,precision:R,value:C,valueAsNumber:q,update:L,reset:F,increment:P,decrement:I,clamp:D,cast:z,setValue:b}}function fd(e){return parseFloat(e.toString().replace(/[^\w.-]+/g,""))}function dz(e,t){return Math.max(_M(t),_M(e))}function l7(e,t,n){const i=fd(e);if(Number.isNaN(i))return;const o=dz(i,t);return fz(i,n??o)}var pz="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/css-reset/dist/index.esm.js",mz=`
: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;
}
}
`,pie=()=>N(Db,{styles:mz},void 0,!1,{fileName:pz,lineNumber:29,columnNumber:41},globalThis),mie=()=>N(Db,{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;
}
${mz}
`},void 0,!1,{fileName:pz,lineNumber:32,columnNumber:38},globalThis);function XE(e,t,n,i){const o=Ka(n);return E.exports.useEffect(()=>{const s=typeof e=="function"?e():e??document;if(!(!n||!s))return s.addEventListener(t,o,i),()=>{s.removeEventListener(t,o,i)}},[t,e,i,o,n]),()=>{const s=typeof e=="function"?e():e??document;s?.removeEventListener(t,o,i)}}var hie=zb?E.exports.useLayoutEffect:E.exports.useEffect;function QE(e,t=[]){const n=E.exports.useRef(e);return hie(()=>{n.current=e}),E.exports.useCallback((...i)=>{var o;return(o=n.current)==null?void 0:o.call(n,...i)},t)}function tT(e,t,n,i){const o=QE(t);return E.exports.useEffect(()=>{const s=IS(n)??document;if(!!t)return s.addEventListener(e,o,i),()=>{s.removeEventListener(e,o,i)}},[e,n,i,o,t]),()=>{(IS(n)??document).removeEventListener(e,o,i)}}function vie(e){const{isOpen:t,ref:n}=e,[i,o]=E.exports.useState(t),[s,l]=E.exports.useState(!1);return E.exports.useEffect(()=>{s||(o(t),l(!0))},[t,s,i]),tT("animationend",()=>{o(t)},()=>n.current),{present:!(t?!1:!i),onComplete(){var m;const v=FK(n.current),g=new v.CustomEvent("animationend",{bubbles:!0});(m=n.current)==null||m.dispatchEvent(g)}}}function gie(e,t){const n=e!==void 0;return[n,n&&typeof e<"u"?e:t]}function bie(e,t){const n=E.exports.useId();return E.exports.useMemo(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}function QS(e={}){const{onClose:t,onOpen:n,isOpen:i,id:o}=e,s=QE(n),l=QE(t),[p,m]=E.exports.useState(e.defaultIsOpen||!1),[v,g]=gie(i,p),b=bie(o,"disclosure"),w=E.exports.useCallback(()=>{v||m(!1),l?.()},[v,l]),C=E.exports.useCallback(()=>{v||m(!0),s?.()},[v,s]),T=E.exports.useCallback(()=>{(g?w:C)()},[g,C,w]);return{isOpen:!!g,onOpen:C,onClose:w,onToggle:T,isControlled:v,getButtonProps:(R={})=>({...R,"aria-expanded":g,"aria-controls":b,onClick:XK(R.onClick,T)}),getDisclosureProps:(R={})=>({...R,hidden:!g,id:b})}}var hz=(e,t)=>{const n=E.exports.useRef(!1),i=E.exports.useRef(!1);E.exports.useEffect(()=>{if(n.current&&i.current)return e();i.current=!0},t),E.exports.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function yie(e){const t=e.current;if(!t)return!1;const n=UK(t);return!n||x8(t,n)?!1:!!GK(n)}function xie(e,t){const{shouldFocus:n,visible:i,focusRef:o}=t,s=n&&!i;hz(()=>{if(!s||yie(e))return;const l=o?.current||e.current;l&&DS(l,{nextTick:!0})},[s,e,o])}function Sie(e,t,n,i){return tT(vX(t),cX(n,t==="pointerdown"),e,i)}function wie(e){const{ref:t,elements:n,enabled:i}=e,o=bX("Safari");Sie(()=>Fb(t.current),"pointerdown",l=>{if(!o||!i)return;const p=l.target,v=(n??[t]).some(g=>{const b=r$(g)?g.current:g;return x8(b,p)});!l$(p)&&v&&(l.preventDefault(),DS(p))})}var Cie={preventScroll:!0,shouldFocus:!1};function Nie(e,t=Cie){const{focusRef:n,preventScroll:i,shouldFocus:o,visible:s}=t,l=r$(e)?e.current:e,p=o&&s,m=E.exports.useCallback(()=>{if(!(!l||!p)&&!x8(l,document.activeElement))if(n?.current)DS(n.current,{preventScroll:i,nextTick:!0});else{const v=KK(l);v.length>0&&DS(v[0],{preventScroll:i,nextTick:!0})}},[p,i,l,n]);hz(()=>{m()},[m]),tT("transitionend",m,l)}var kv="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/react/node_modules/@chakra-ui/icon/dist/index.esm.js",TM={path:N("g",{stroke:"currentColor",strokeWidth:"1.5",children:[N("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:kv,lineNumber:14,columnNumber:22},globalThis),N("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:kv,lineNumber:18,columnNumber:23},globalThis),N("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"},void 0,!1,{fileName:kv,lineNumber:22,columnNumber:23},globalThis)]},void 0,!0,{fileName:kv,lineNumber:11,columnNumber:25},globalThis),viewBox:"0 0 24 24"},n4=qe((e,t)=>{const{as:n,viewBox:i,color:o="currentColor",focusable:s=!1,children:l,className:p,__css:m,...v}=e,g=yr("chakra-icon",p),b={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...m},w={ref:t,focusable:s,className:g,__css:b},C=i??TM.viewBox;if(n&&typeof n!="string")return Ne.createElement($e.svg,{as:n,...w,...v});const T=l??TM.path;return Ne.createElement($e.svg,{verticalAlign:"middle",viewBox:C,...w,...v},T)});n4.displayName="Icon";function o0(e){const{viewBox:t="0 0 24 24",d:n,displayName:i,defaultProps:o={}}=e,s=E.exports.Children.toArray(e.path),l=qe((p,m)=>N(n4,{ref:m,viewBox:t,...o,...p,children:s.length?s:N("path",{fill:"currentColor",d:n},void 0,!1,{fileName:kv,lineNumber:93,columnNumber:43},this)},void 0,!1,{fileName:kv,lineNumber:88,columnNumber:60},this));return l.displayName=i,l}function nT(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var Lm="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/input/dist/index.esm.js",rT=qe(function(t,n){const{htmlSize:i,...o}=t,s=So("Input",o),l=gr(o),p=X8(l),m=yr("chakra-input",t.className);return Ne.createElement($e.input,{size:i,...p,__css:s.field,ref:n,className:m})});rT.displayName="Input";rT.id="Input";var[Eie,vz]=Or({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "<InputGroup />" `}),_ie=qe(function(t,n){const i=So("Input",t),{children:o,className:s,...l}=gr(t),p=yr("chakra-input__group",s),m={},v=Q3(o),g=i.field;v.forEach(w=>{!i||(g&&w.type.id==="InputLeftElement"&&(m.paddingStart=g.height??g.h),g&&w.type.id==="InputRightElement"&&(m.paddingEnd=g.height??g.h),w.type.id==="InputRightAddon"&&(m.borderEndRadius=0),w.type.id==="InputLeftAddon"&&(m.borderStartRadius=0))});const b=v.map(w=>{var C,T;const R=nT({size:((C=w.props)==null?void 0:C.size)||t.size,variant:((T=w.props)==null?void 0:T.variant)||t.variant});return w.type.id!=="Input"?E.exports.cloneElement(w,R):E.exports.cloneElement(w,Object.assign(R,m,w.props))});return Ne.createElement($e.div,{className:p,ref:n,__css:{width:"100%",display:"flex",position:"relative"},...l},N(Eie,{value:i,children:b},void 0,!1,{fileName:Lm,lineNumber:90,columnNumber:22},this))});_ie.displayName="InputGroup";var Tie={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},Rie=$e("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),iT=qe(function(t,n){const{placement:i="left",...o}=t,s=Tie[i]??{},l=vz();return N(Rie,{ref:n,...o,__css:{...l.addon,...s}},void 0,!1,{fileName:Lm,lineNumber:122,columnNumber:26},this)});iT.displayName="InputAddon";var gz=qe(function(t,n){return N(iT,{ref:n,placement:"left",...t,className:yr("chakra-input__left-addon",t.className)},void 0,!1,{fileName:Lm,lineNumber:133,columnNumber:26},this)});gz.displayName="InputLeftAddon";gz.id="InputLeftAddon";var bz=qe(function(t,n){return N(iT,{ref:n,placement:"right",...t,className:yr("chakra-input__right-addon",t.className)},void 0,!1,{fileName:Lm,lineNumber:143,columnNumber:26},this)});bz.displayName="InputRightAddon";bz.id="InputRightAddon";var kie=$e("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),r4=qe(function(t,n){const{placement:i="left",...o}=t,s=vz(),l=s.field,m={[i==="left"?"insetStart":"insetEnd"]:"0",width:l?.height??l?.h,height:l?.height??l?.h,fontSize:l?.fontSize,...s.element};return N(kie,{ref:n,__css:m,...o},void 0,!1,{fileName:Lm,lineNumber:181,columnNumber:26},this)});r4.id="InputElement";r4.displayName="InputElement";var yz=qe(function(t,n){const{className:i,...o}=t,s=yr("chakra-input__left-element",i);return N(r4,{ref:n,placement:"left",className:s,...o},void 0,!1,{fileName:Lm,lineNumber:192,columnNumber:26},this)});yz.id="InputLeftElement";yz.displayName="InputLeftElement";var xz=qe(function(t,n){const{className:i,...o}=t,s=yr("chakra-input__right-element",i);return N(r4,{ref:n,placement:"right",className:s,...o},void 0,!1,{fileName:Lm,lineNumber:204,columnNumber:26},this)});xz.id="InputRightElement";xz.displayName="InputRightElement";function Aie(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}Object.freeze(["base","sm","md","lg","xl","2xl"]);function Ed(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):Aie(e)?Object.keys(e).reduce((n,i)=>(n[i]=t(e[i]),n),{}):e!=null?t(e):null}var A5="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/layout/node_modules/@chakra-ui/icon/dist/index.esm.js",RM={path:N("g",{stroke:"currentColor",strokeWidth:"1.5",children:[N("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:A5,lineNumber:14,columnNumber:22},globalThis),N("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:A5,lineNumber:18,columnNumber:23},globalThis),N("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"},void 0,!1,{fileName:A5,lineNumber:22,columnNumber:23},globalThis)]},void 0,!0,{fileName:A5,lineNumber:11,columnNumber:25},globalThis),viewBox:"0 0 24 24"},Sz=qe((e,t)=>{const{as:n,viewBox:i,color:o="currentColor",focusable:s=!1,children:l,className:p,__css:m,...v}=e,g=yr("chakra-icon",p),b={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...m},w={ref:t,focusable:s,className:g,__css:b},C=i??RM.viewBox;if(n&&typeof n!="string")return Ne.createElement($e.svg,{as:n,...w,...v});const T=l??RM.path;return Ne.createElement($e.svg,{verticalAlign:"middle",viewBox:C,...w,...v},T)});Sz.displayName="Icon";var rl="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/layout/dist/index.esm.js",Lie=qe(function(e,t){const{ratio:n=4/3,children:i,className:o,...s}=e,l=E.exports.Children.only(i),p=yr("chakra-aspect-ratio",o);return Ne.createElement($e.div,{ref:t,position:"relative",className:p,_before:{height:0,content:'""',display:"block",paddingBottom:Ed(n,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"}},...s},l)});Lie.displayName="AspectRatio";var Oie=qe(function(t,n){const i=xo("Badge",t),{className:o,...s}=gr(t);return Ne.createElement($e.span,{ref:n,className:yr("chakra-badge",t.className),...s,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...i}})});Oie.displayName="Badge";var il=$e("div");il.displayName="Box";var wz=qe(function(t,n){const{size:i,centerContent:o=!0,...s}=t;return N(il,{ref:n,boxSize:i,__css:{...o?{display:"flex",alignItems:"center",justifyContent:"center"}:{},flexShrink:0,flexGrow:0},...s},void 0,!1,{fileName:rl,lineNumber:84,columnNumber:26},this)});wz.displayName="Square";var Mie=qe(function(t,n){const{size:i,...o}=t;return N(wz,{size:i,ref:n,borderRadius:"9999px",...o},void 0,!1,{fileName:rl,lineNumber:98,columnNumber:26},this)});Mie.displayName="Circle";var Cz=$e("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});Cz.displayName="Center";var Pie={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};qe(function(t,n){const{axis:i="both",...o}=t;return Ne.createElement($e.div,{ref:n,__css:Pie[i],...o,position:"absolute"})});var Iie=qe(function(t,n){const i=xo("Code",t),{className:o,...s}=gr(t);return Ne.createElement($e.code,{ref:n,className:yr("chakra-code",t.className),...s,__css:{display:"inline-block",...i}})});Iie.displayName="Code";var Die=qe(function(t,n){const{className:i,centerContent:o,...s}=gr(t),l=xo("Container",t);return Ne.createElement($e.div,{ref:n,className:yr("chakra-container",i),...s,__css:{...l,...o&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});Die.displayName="Container";var $ie=qe(function(t,n){const{borderLeftWidth:i,borderBottomWidth:o,borderTopWidth:s,borderRightWidth:l,borderWidth:p,borderStyle:m,borderColor:v,...g}=xo("Divider",t),{className:b,orientation:w="horizontal",__css:C,...T}=gr(t),R={vertical:{borderLeftWidth:i||l||p||"1px",height:"100%"},horizontal:{borderBottomWidth:o||s||p||"1px",width:"100%"}};return Ne.createElement($e.hr,{ref:n,"aria-orientation":w,...T,__css:{...g,border:"0",borderColor:v,borderStyle:m,...R[w],...C},className:yr("chakra-divider",b)})});$ie.displayName="Divider";var Nr=qe(function(t,n){const{direction:i,align:o,justify:s,wrap:l,basis:p,grow:m,shrink:v,...g}=t,b={display:"flex",flexDirection:i,alignItems:o,justifyContent:s,flexWrap:l,flexBasis:p,flexGrow:m,flexShrink:v};return Ne.createElement($e.div,{ref:n,__css:b,...g})});Nr.displayName="Flex";var Nz=qe(function(t,n){const{templateAreas:i,gap:o,rowGap:s,columnGap:l,column:p,row:m,autoFlow:v,autoRows:g,templateRows:b,autoColumns:w,templateColumns:C,...T}=t,R={display:"grid",gridTemplateAreas:i,gridGap:o,gridRowGap:s,gridColumnGap:l,gridAutoColumns:w,gridColumn:p,gridRow:m,gridAutoFlow:v,gridAutoRows:g,gridTemplateRows:b,gridTemplateColumns:C};return Ne.createElement($e.div,{ref:n,__css:R,...T})});Nz.displayName="Grid";function kM(e){return Ed(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}var Fie=qe(function(t,n){const{area:i,colSpan:o,colStart:s,colEnd:l,rowEnd:p,rowSpan:m,rowStart:v,...g}=t,b=nT({gridArea:i,gridColumn:kM(o),gridRow:kM(m),gridColumnStart:s,gridColumnEnd:l,gridRowStart:v,gridRowEnd:p});return Ne.createElement($e.div,{ref:n,__css:b,...g})});Fie.displayName="GridItem";var aT=qe(function(t,n){const i=xo("Heading",t),{className:o,...s}=gr(t);return Ne.createElement($e.h2,{ref:n,className:yr("chakra-heading",t.className),...s,__css:i})});aT.displayName="Heading";qe(function(t,n){const i=xo("Mark",t),o=gr(t);return N(il,{ref:n,...o,as:"mark",__css:{bg:"transparent",whiteSpace:"nowrap",...i}},void 0,!1,{fileName:rl,lineNumber:399,columnNumber:26},this)});var zie=qe(function(t,n){const i=xo("Kbd",t),{className:o,...s}=gr(t);return Ne.createElement($e.kbd,{ref:n,className:yr("chakra-kbd",o),...s,__css:{fontFamily:"mono",...i}})});zie.displayName="Kbd";var Dv=qe(function(t,n){const i=xo("Link",t),{className:o,isExternal:s,...l}=gr(t);return Ne.createElement($e.a,{target:s?"_blank":void 0,rel:s?"noopener":void 0,ref:n,className:yr("chakra-link",o),...l,__css:i})});Dv.displayName="Link";qe(function(t,n){const{isExternal:i,target:o,rel:s,className:l,...p}=t;return Ne.createElement($e.a,{...p,ref:n,className:yr("chakra-linkbox__overlay",l),rel:i?"noopener noreferrer":s,target:i?"_blank":o,__css:{position:"static","&::before":{content:"''",cursor:"inherit",display:"block",position:"absolute",top:0,left:0,zIndex:0,width:"100%",height:"100%"}}})});qe(function(t,n){const{className:i,...o}=t;return Ne.createElement($e.div,{ref:n,position:"relative",...o,className:yr("chakra-linkbox",i),__css:{"a[href]:not(.chakra-linkbox__overlay), abbr[title]":{position:"relative",zIndex:1}}})});var[Bie,Ez]=Or({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "<List />" `}),oT=qe(function(t,n){const i=So("List",t),{children:o,styleType:s="none",stylePosition:l,spacing:p,...m}=gr(t),v=Q3(o),b=p?{["& > *:not(style) ~ *:not(style)"]:{mt:p}}:{};return Ne.createElement(Bie,{value:i},Ne.createElement($e.ul,{ref:n,listStyleType:s,listStylePosition:l,role:"list",__css:{...i.container,...b},...m},v))});oT.displayName="List";var Uie=qe((e,t)=>{const{as:n,...i}=e;return N(oT,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...i},void 0,!1,{fileName:rl,lineNumber:550,columnNumber:26},globalThis)});Uie.displayName="OrderedList";var jie=qe(function(t,n){const{as:i,...o}=t;return N(oT,{ref:n,as:"ul",styleType:"initial",marginStart:"1em",...o},void 0,!1,{fileName:rl,lineNumber:561,columnNumber:26},this)});jie.displayName="UnorderedList";var Vie=qe(function(t,n){const i=Ez();return Ne.createElement($e.li,{ref:n,...t,__css:i.item})});Vie.displayName="ListItem";var Hie=qe(function(t,n){const i=Ez();return N(Sz,{ref:n,role:"presentation",...t,__css:i.icon},void 0,!1,{fileName:rl,lineNumber:581,columnNumber:26},this)});Hie.displayName="ListIcon";var Wie=qe(function(t,n){const{columns:i,spacingX:o,spacingY:s,spacing:l,minChildWidth:p,...m}=t,v=P3(),g=p?Yie(p,v):qie(i);return N(Nz,{ref:n,gap:l,columnGap:o,rowGap:s,templateColumns:g,...m},void 0,!1,{fileName:rl,lineNumber:601,columnNumber:26},this)});Wie.displayName="SimpleGrid";function Gie(e){return typeof e=="number"?`${e}px`:e}function Yie(e,t){return Ed(e,n=>{const i=PX("sizes",n,Gie(n))(t);return n===null?null:`repeat(auto-fit, minmax(${i}, 1fr))`})}function qie(e){return Ed(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}var Zie=$e("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});Zie.displayName="Spacer";var JE="& > *:not(style) ~ *:not(style)";function Kie(e){const{spacing:t,direction:n}=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:n,[JE]:Ed(n,o=>i[o])}}function Xie(e){const{spacing:t,direction:n}=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{"&":Ed(n,o=>i[o])}}var _z=e=>Ne.createElement($e.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});_z.displayName="StackItem";var sT=qe((e,t)=>{const{isInline:n,direction:i,align:o,justify:s,spacing:l="0.5rem",wrap:p,children:m,divider:v,className:g,shouldWrapChildren:b,...w}=e,C=n?"row":i??"column",T=E.exports.useMemo(()=>Kie({direction:C,spacing:l}),[C,l]),R=E.exports.useMemo(()=>Xie({spacing:l,direction:C}),[l,C]),L=!!v,D=!b&&!L,P=Q3(m),I=D?P:P.map((z,q)=>{const Y=typeof z.key<"u"?z.key:q,Q=q+1===P.length,ae=b?N(_z,{children:z},Y,!1,{fileName:rl,lineNumber:749,columnNumber:42},globalThis):z;if(!L)return ae;const me=E.exports.cloneElement(v,{__css:R}),ze=Q?null:me;return N(E.exports.Fragment,{children:[ae,ze]},Y,!0,{fileName:rl,lineNumber:759,columnNumber:28},globalThis)}),F=yr("chakra-stack",g);return Ne.createElement($e.div,{ref:t,display:"flex",alignItems:o,justifyContent:s,flexDirection:T.flexDirection,flexWrap:p,className:F,__css:L?{}:{[JE]:T[JE]},...w},I)});sT.displayName="Stack";var Qie=qe((e,t)=>N(sT,{align:"center",...e,direction:"row",ref:t},void 0,!1,{fileName:rl,lineNumber:779,columnNumber:59},globalThis));Qie.displayName="HStack";var Jie=qe((e,t)=>N(sT,{align:"center",...e,direction:"column",ref:t},void 0,!1,{fileName:rl,lineNumber:805,columnNumber:59},globalThis));Jie.displayName="VStack";var zo=qe(function(t,n){const i=xo("Text",t),{className:o,align:s,decoration:l,casing:p,...m}=gr(t),v=nT({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return Ne.createElement($e.p,{ref:n,className:yr("chakra-text",t.className),...v,...m,__css:i})});zo.displayName="Text";function AM(e){return typeof e=="number"?`${e}px`:e}var eae=qe(function(t,n){const{spacing:i="0.5rem",spacingX:o,spacingY:s,children:l,justify:p,direction:m,align:v,className:g,shouldWrapChildren:b,...w}=t,C=E.exports.useMemo(()=>{const{spacingX:R=i,spacingY:L=i}={spacingX:o,spacingY:s};return{"--chakra-wrap-x-spacing":D=>Ed(R,P=>AM(pE("space",P)(D))),"--chakra-wrap-y-spacing":D=>Ed(L,P=>AM(pE("space",P)(D))),"--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:p,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,o,s,p,v,m]),T=b?E.exports.Children.map(l,(R,L)=>N(Tz,{children:R},L,!1,{fileName:rl,lineNumber:888,columnNumber:107},this)):l;return Ne.createElement($e.div,{ref:n,className:yr("chakra-wrap",g),overflow:"hidden",...w},Ne.createElement($e.ul,{className:"chakra-wrap__list",__css:C},T))});eae.displayName="Wrap";var Tz=qe(function(t,n){const{className:i,...o}=t;return Ne.createElement($e.li,{ref:n,__css:{display:"flex",alignItems:"flex-start"},className:yr("chakra-wrap__listitem",i),...o})});Tz.displayName="WrapItem";var LM="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/react-env/dist/index.esm.js",tae={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[]}}}},Rz=tae,cv=()=>{},nae={document:Rz,navigator:{userAgent:""},CustomEvent:function(){return this},addEventListener:cv,removeEventListener:cv,getComputedStyle(){return{getPropertyValue(){return""}}},matchMedia(){return{matches:!1,addListener:cv,removeListener:cv}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)},setTimeout:()=>0,clearTimeout:cv,setInterval:()=>0,clearInterval:cv},rae=nae,iae={window:rae,document:Rz},kz=typeof window<"u"?{window,document}:iae,Az=E.exports.createContext(kz);Az.displayName="EnvironmentContext";function Lz(e){const{children:t,environment:n}=e,[i,o]=E.exports.useState(null),[s,l]=E.exports.useState(!1);E.exports.useEffect(()=>l(!0),[]);const p=E.exports.useMemo(()=>{if(n)return n;const m=i?.ownerDocument,v=i?.ownerDocument.defaultView;return m?{document:m,window:v}:kz},[i,n]);return N(Az.Provider,{value:p,children:[t,!n&&s&&N("span",{id:"__chakra_env",hidden:!0,ref:m=>{E.exports.startTransition(()=>{m&&o(m)})}},void 0,!1,{fileName:LM,lineNumber:136,columnNumber:63},this)]},void 0,!0,{fileName:LM,lineNumber:134,columnNumber:26},this)}Lz.displayName="EnvironmentProvider";var aae=e=>e?"":void 0;function oae(){const e=E.exports.useRef(new Map),t=e.current,n=E.exports.useCallback((o,s,l,p)=>{e.current.set(l,{type:s,el:o,options:p}),o.addEventListener(s,l,p)},[]),i=E.exports.useCallback((o,s,l,p)=>{o.removeEventListener(s,l,p),e.current.delete(l)},[]);return E.exports.useEffect(()=>()=>{t.forEach((o,s)=>{i(o.el,o.type,s,o.options)})},[i,t]),{add:n,remove:i}}function u7(e){const t=e.target,{tagName:n,isContentEditable:i}=t;return n!=="INPUT"&&n!=="TEXTAREA"&&i!==!0}function sae(e={}){const{ref:t,isDisabled:n,isFocusable:i,clickOnEnter:o=!0,clickOnSpace:s=!0,onMouseDown:l,onMouseUp:p,onClick:m,onKeyDown:v,onKeyUp:g,tabIndex:b,onMouseOver:w,onMouseLeave:C,...T}=e,[R,L]=E.exports.useState(!0),[D,P]=E.exports.useState(!1),I=oae(),F=K=>{!K||K.tagName!=="BUTTON"&&L(!1)},z=R?b:b||0,q=n&&!i,Y=E.exports.useCallback(K=>{if(n){K.stopPropagation(),K.preventDefault();return}K.currentTarget.focus(),m?.(K)},[n,m]),Q=E.exports.useCallback(K=>{D&&u7(K)&&(K.preventDefault(),K.stopPropagation(),P(!1),I.remove(document,"keyup",Q,!1))},[D,I]),ie=E.exports.useCallback(K=>{if(v?.(K),n||K.defaultPrevented||K.metaKey||!u7(K.nativeEvent)||R)return;const le=o&&K.key==="Enter";s&&K.key===" "&&(K.preventDefault(),P(!0)),le&&(K.preventDefault(),K.currentTarget.click()),I.add(document,"keyup",Q,!1)},[n,R,v,o,s,I,Q]),ae=E.exports.useCallback(K=>{if(g?.(K),n||K.defaultPrevented||K.metaKey||!u7(K.nativeEvent)||R)return;s&&K.key===" "&&(K.preventDefault(),P(!1),K.currentTarget.click())},[s,R,n,g]),me=E.exports.useCallback(K=>{K.button===0&&(P(!1),I.remove(document,"mouseup",me,!1))},[I]),ze=E.exports.useCallback(K=>{if(K.button!==0)return;if(n){K.stopPropagation(),K.preventDefault();return}R||P(!0),K.currentTarget.focus({preventScroll:!0}),I.add(document,"mouseup",me,!1),l?.(K)},[n,R,l,I,me]),te=E.exports.useCallback(K=>{K.button===0&&(R||P(!1),p?.(K))},[p,R]),ee=E.exports.useCallback(K=>{if(n){K.preventDefault();return}w?.(K)},[n,w]),we=E.exports.useCallback(K=>{D&&(K.preventDefault(),P(!1)),C?.(K)},[D,C]),ye=ti(t,F);return R?{...T,ref:ye,type:"button","aria-disabled":q?void 0:n,disabled:q,onClick:Y,onMouseDown:l,onMouseUp:p,onKeyUp:g,onKeyDown:v,onMouseOver:w,onMouseLeave:C}:{...T,ref:ye,role:"button","data-active":aae(D),"aria-disabled":n?"true":void 0,tabIndex:q?void 0:z,onClick:Y,onMouseDown:ze,onMouseUp:te,onKeyUp:ae,onKeyDown:ie,onMouseOver:ee,onMouseLeave:we}}function lae(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function uae(e){if(!lae(e))return!1;const t=e.ownerDocument.defaultView??window;return e instanceof t.HTMLElement}var cae=e=>e.hasAttribute("tabindex");function fae(e){return Boolean(e.getAttribute("disabled"))===!0||Boolean(e.getAttribute("aria-disabled"))===!0}function Oz(e){return e.parentElement&&Oz(e.parentElement)?!0:e.hidden}function dae(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function pae(e){if(!uae(e)||Oz(e)||fae(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]():dae(e)?!0:cae(e)}var mae=["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]"],hae=mae.join(),vae=e=>e.offsetWidth>0&&e.offsetHeight>0;function gae(e){const t=Array.from(e.querySelectorAll(hae));return t.unshift(e),t.filter(n=>pae(n)&&vae(n))}var Uo="top",al="bottom",ol="right",jo="left",i4="auto",Zb=[Uo,al,ol,jo],Gv="start",xb="end",bae="clippingParents",Mz="viewport",kg="popper",yae="reference",OM=Zb.reduce(function(e,t){return e.concat([t+"-"+Gv,t+"-"+xb])},[]),Pz=[].concat(Zb,[i4]).reduce(function(e,t){return e.concat([t,t+"-"+Gv,t+"-"+xb])},[]),xae="beforeRead",Sae="read",wae="afterRead",Cae="beforeMain",Nae="main",Eae="afterMain",_ae="beforeWrite",Tae="write",Rae="afterWrite",e_=[xae,Sae,wae,Cae,Nae,Eae,_ae,Tae,Rae];function Gu(e){return e?(e.nodeName||"").toLowerCase():null}function ul(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Nm(e){var t=ul(e).Element;return e instanceof t||e instanceof Element}function bs(e){var t=ul(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function lT(e){if(typeof ShadowRoot>"u")return!1;var t=ul(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function kae(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var i=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!bs(s)||!Gu(s)||(Object.assign(s.style,i),Object.keys(o).forEach(function(l){var p=o[l];p===!1?s.removeAttribute(l):s.setAttribute(l,p===!0?"":p)}))})}function Aae(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(i){var o=t.elements[i],s=t.attributes[i]||{},l=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:n[i]),p=l.reduce(function(m,v){return m[v]="",m},{});!bs(o)||!Gu(o)||(Object.assign(o.style,p),Object.keys(s).forEach(function(m){o.removeAttribute(m)}))})}}const Lae={name:"applyStyles",enabled:!0,phase:"write",fn:kae,effect:Aae,requires:["computeStyles"]};function Kl(e){return e.split("-")[0]}var ym=Math.max,JS=Math.min,Yv=Math.round;function t_(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Iz(){return!/^((?!chrome|android).)*safari/i.test(t_())}function qv(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var i=e.getBoundingClientRect(),o=1,s=1;t&&bs(e)&&(o=e.offsetWidth>0&&Yv(i.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Yv(i.height)/e.offsetHeight||1);var l=Nm(e)?ul(e):window,p=l.visualViewport,m=!Iz()&&n,v=(i.left+(m&&p?p.offsetLeft:0))/o,g=(i.top+(m&&p?p.offsetTop:0))/s,b=i.width/o,w=i.height/s;return{width:b,height:w,top:g,right:v+b,bottom:g+w,left:v,x:v,y:g}}function uT(e){var t=qv(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function Dz(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&lT(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Xl(e){return ul(e).getComputedStyle(e)}function Oae(e){return["table","td","th"].indexOf(Gu(e))>=0}function Od(e){return((Nm(e)?e.ownerDocument:e.document)||window.document).documentElement}function a4(e){return Gu(e)==="html"?e:e.assignedSlot||e.parentNode||(lT(e)?e.host:null)||Od(e)}function MM(e){return!bs(e)||Xl(e).position==="fixed"?null:e.offsetParent}function Mae(e){var t=/firefox/i.test(t_()),n=/Trident/i.test(t_());if(n&&bs(e)){var i=Xl(e);if(i.position==="fixed")return null}var o=a4(e);for(lT(o)&&(o=o.host);bs(o)&&["html","body"].indexOf(Gu(o))<0;){var s=Xl(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function Kb(e){for(var t=ul(e),n=MM(e);n&&Oae(n)&&Xl(n).position==="static";)n=MM(n);return n&&(Gu(n)==="html"||Gu(n)==="body"&&Xl(n).position==="static")?t:n||Mae(e)||t}function cT(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Jg(e,t,n){return ym(e,JS(t,n))}function Pae(e,t,n){var i=Jg(e,t,n);return i>n?n:i}function $z(){return{top:0,right:0,bottom:0,left:0}}function Fz(e){return Object.assign({},$z(),e)}function zz(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}var Iae=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Fz(typeof t!="number"?t:zz(t,Zb))};function Dae(e){var t,n=e.state,i=e.name,o=e.options,s=n.elements.arrow,l=n.modifiersData.popperOffsets,p=Kl(n.placement),m=cT(p),v=[jo,ol].indexOf(p)>=0,g=v?"height":"width";if(!(!s||!l)){var b=Iae(o.padding,n),w=uT(s),C=m==="y"?Uo:jo,T=m==="y"?al:ol,R=n.rects.reference[g]+n.rects.reference[m]-l[m]-n.rects.popper[g],L=l[m]-n.rects.reference[m],D=Kb(s),P=D?m==="y"?D.clientHeight||0:D.clientWidth||0:0,I=R/2-L/2,F=b[C],z=P-w[g]-b[T],q=P/2-w[g]/2+I,Y=Jg(F,q,z),Q=m;n.modifiersData[i]=(t={},t[Q]=Y,t.centerOffset=Y-q,t)}}function $ae(e){var t=e.state,n=e.options,i=n.element,o=i===void 0?"[data-popper-arrow]":i;if(o!=null&&!(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o))){if(bs(o)||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(" ")),!Dz(t.elements.popper,o)){console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}t.elements.arrow=o}}const Fae={name:"arrow",enabled:!0,phase:"main",fn:Dae,effect:$ae,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Zv(e){return e.split("-")[1]}var zae={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Bae(e){var t=e.x,n=e.y,i=window,o=i.devicePixelRatio||1;return{x:Yv(t*o)/o||0,y:Yv(n*o)/o||0}}function PM(e){var t,n=e.popper,i=e.popperRect,o=e.placement,s=e.variation,l=e.offsets,p=e.position,m=e.gpuAcceleration,v=e.adaptive,g=e.roundOffsets,b=e.isFixed,w=l.x,C=w===void 0?0:w,T=l.y,R=T===void 0?0:T,L=typeof g=="function"?g({x:C,y:R}):{x:C,y:R};C=L.x,R=L.y;var D=l.hasOwnProperty("x"),P=l.hasOwnProperty("y"),I=jo,F=Uo,z=window;if(v){var q=Kb(n),Y="clientHeight",Q="clientWidth";if(q===ul(n)&&(q=Od(n),Xl(q).position!=="static"&&p==="absolute"&&(Y="scrollHeight",Q="scrollWidth")),q=q,o===Uo||(o===jo||o===ol)&&s===xb){F=al;var ie=b&&q===z&&z.visualViewport?z.visualViewport.height:q[Y];R-=ie-i.height,R*=m?1:-1}if(o===jo||(o===Uo||o===al)&&s===xb){I=ol;var ae=b&&q===z&&z.visualViewport?z.visualViewport.width:q[Q];C-=ae-i.width,C*=m?1:-1}}var me=Object.assign({position:p},v&&zae),ze=g===!0?Bae({x:C,y:R}):{x:C,y:R};if(C=ze.x,R=ze.y,m){var te;return Object.assign({},me,(te={},te[F]=P?"0":"",te[I]=D?"0":"",te.transform=(z.devicePixelRatio||1)<=1?"translate("+C+"px, "+R+"px)":"translate3d("+C+"px, "+R+"px, 0)",te))}return Object.assign({},me,(t={},t[F]=P?R+"px":"",t[I]=D?C+"px":"",t.transform="",t))}function Uae(e){var t=e.state,n=e.options,i=n.gpuAcceleration,o=i===void 0?!0:i,s=n.adaptive,l=s===void 0?!0:s,p=n.roundOffsets,m=p===void 0?!0:p;{var v=Xl(t.elements.popper).transitionProperty||"";l&&["transform","top","right","bottom","left"].some(function(b){return v.indexOf(b)>=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 g={placement:Kl(t.placement),variation:Zv(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,PM(Object.assign({},g,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:m})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,PM(Object.assign({},g,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:m})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const jae={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Uae,data:{}};var L5={passive:!0};function Vae(e){var t=e.state,n=e.instance,i=e.options,o=i.scroll,s=o===void 0?!0:o,l=i.resize,p=l===void 0?!0:l,m=ul(t.elements.popper),v=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&v.forEach(function(g){g.addEventListener("scroll",n.update,L5)}),p&&m.addEventListener("resize",n.update,L5),function(){s&&v.forEach(function(g){g.removeEventListener("scroll",n.update,L5)}),p&&m.removeEventListener("resize",n.update,L5)}}const Hae={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Vae,data:{}};var Wae={left:"right",right:"left",bottom:"top",top:"bottom"};function pS(e){return e.replace(/left|right|bottom|top/g,function(t){return Wae[t]})}var Gae={start:"end",end:"start"};function IM(e){return e.replace(/start|end/g,function(t){return Gae[t]})}function fT(e){var t=ul(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function dT(e){return qv(Od(e)).left+fT(e).scrollLeft}function Yae(e,t){var n=ul(e),i=Od(e),o=n.visualViewport,s=i.clientWidth,l=i.clientHeight,p=0,m=0;if(o){s=o.width,l=o.height;var v=Iz();(v||!v&&t==="fixed")&&(p=o.offsetLeft,m=o.offsetTop)}return{width:s,height:l,x:p+dT(e),y:m}}function qae(e){var t,n=Od(e),i=fT(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=ym(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=ym(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),p=-i.scrollLeft+dT(e),m=-i.scrollTop;return Xl(o||n).direction==="rtl"&&(p+=ym(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:l,x:p,y:m}}function pT(e){var t=Xl(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function Bz(e){return["html","body","#document"].indexOf(Gu(e))>=0?e.ownerDocument.body:bs(e)&&pT(e)?e:Bz(a4(e))}function eb(e,t){var n;t===void 0&&(t=[]);var i=Bz(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),s=ul(i),l=o?[s].concat(s.visualViewport||[],pT(i)?i:[]):i,p=t.concat(l);return o?p:p.concat(eb(a4(l)))}function n_(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Zae(e,t){var n=qv(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function DM(e,t,n){return t===Mz?n_(Yae(e,n)):Nm(t)?Zae(t,n):n_(qae(Od(e)))}function Kae(e){var t=eb(a4(e)),n=["absolute","fixed"].indexOf(Xl(e).position)>=0,i=n&&bs(e)?Kb(e):e;return Nm(i)?t.filter(function(o){return Nm(o)&&Dz(o,i)&&Gu(o)!=="body"}):[]}function Xae(e,t,n,i){var o=t==="clippingParents"?Kae(e):[].concat(t),s=[].concat(o,[n]),l=s[0],p=s.reduce(function(m,v){var g=DM(e,v,i);return m.top=ym(g.top,m.top),m.right=JS(g.right,m.right),m.bottom=JS(g.bottom,m.bottom),m.left=ym(g.left,m.left),m},DM(e,l,i));return p.width=p.right-p.left,p.height=p.bottom-p.top,p.x=p.left,p.y=p.top,p}function Uz(e){var t=e.reference,n=e.element,i=e.placement,o=i?Kl(i):null,s=i?Zv(i):null,l=t.x+t.width/2-n.width/2,p=t.y+t.height/2-n.height/2,m;switch(o){case Uo:m={x:l,y:t.y-n.height};break;case al:m={x:l,y:t.y+t.height};break;case ol:m={x:t.x+t.width,y:p};break;case jo:m={x:t.x-n.width,y:p};break;default:m={x:t.x,y:t.y}}var v=o?cT(o):null;if(v!=null){var g=v==="y"?"height":"width";switch(s){case Gv:m[v]=m[v]-(t[g]/2-n[g]/2);break;case xb:m[v]=m[v]+(t[g]/2-n[g]/2);break}}return m}function Sb(e,t){t===void 0&&(t={});var n=t,i=n.placement,o=i===void 0?e.placement:i,s=n.strategy,l=s===void 0?e.strategy:s,p=n.boundary,m=p===void 0?bae:p,v=n.rootBoundary,g=v===void 0?Mz:v,b=n.elementContext,w=b===void 0?kg:b,C=n.altBoundary,T=C===void 0?!1:C,R=n.padding,L=R===void 0?0:R,D=Fz(typeof L!="number"?L:zz(L,Zb)),P=w===kg?yae:kg,I=e.rects.popper,F=e.elements[T?P:w],z=Xae(Nm(F)?F:F.contextElement||Od(e.elements.popper),m,g,l),q=qv(e.elements.reference),Y=Uz({reference:q,element:I,strategy:"absolute",placement:o}),Q=n_(Object.assign({},I,Y)),ie=w===kg?Q:q,ae={top:z.top-ie.top+D.top,bottom:ie.bottom-z.bottom+D.bottom,left:z.left-ie.left+D.left,right:ie.right-z.right+D.right},me=e.modifiersData.offset;if(w===kg&&me){var ze=me[o];Object.keys(ae).forEach(function(te){var ee=[ol,al].indexOf(te)>=0?1:-1,we=[Uo,al].indexOf(te)>=0?"y":"x";ae[te]+=ze[we]*ee})}return ae}function Qae(e,t){t===void 0&&(t={});var n=t,i=n.placement,o=n.boundary,s=n.rootBoundary,l=n.padding,p=n.flipVariations,m=n.allowedAutoPlacements,v=m===void 0?Pz:m,g=Zv(i),b=g?p?OM:OM.filter(function(T){return Zv(T)===g}):Zb,w=b.filter(function(T){return v.indexOf(T)>=0});w.length===0&&(w=b,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=w.reduce(function(T,R){return T[R]=Sb(e,{placement:R,boundary:o,rootBoundary:s,padding:l})[Kl(R)],T},{});return Object.keys(C).sort(function(T,R){return C[T]-C[R]})}function Jae(e){if(Kl(e)===i4)return[];var t=pS(e);return[IM(e),t,IM(t)]}function eoe(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,l=n.altAxis,p=l===void 0?!0:l,m=n.fallbackPlacements,v=n.padding,g=n.boundary,b=n.rootBoundary,w=n.altBoundary,C=n.flipVariations,T=C===void 0?!0:C,R=n.allowedAutoPlacements,L=t.options.placement,D=Kl(L),P=D===L,I=m||(P||!T?[pS(L)]:Jae(L)),F=[L].concat(I).reduce(function(Xe,et){return Xe.concat(Kl(et)===i4?Qae(t,{placement:et,boundary:g,rootBoundary:b,padding:v,flipVariations:T,allowedAutoPlacements:R}):et)},[]),z=t.rects.reference,q=t.rects.popper,Y=new Map,Q=!0,ie=F[0],ae=0;ae<F.length;ae++){var me=F[ae],ze=Kl(me),te=Zv(me)===Gv,ee=[Uo,al].indexOf(ze)>=0,we=ee?"width":"height",ye=Sb(t,{placement:me,boundary:g,rootBoundary:b,altBoundary:w,padding:v}),K=ee?te?ol:jo:te?al:Uo;z[we]>q[we]&&(K=pS(K));var le=pS(K),ge=[];if(s&&ge.push(ye[ze]<=0),p&&ge.push(ye[K]<=0,ye[le]<=0),ge.every(function(Xe){return Xe})){ie=me,Q=!1;break}Y.set(me,ge)}if(Q)for(var pe=T?3:1,Ee=function(et){var at=F.find(function(kt){var He=Y.get(kt);if(He)return He.slice(0,et).every(function(ot){return ot})});if(at)return ie=at,"break"},Oe=pe;Oe>0;Oe--){var Pe=Ee(Oe);if(Pe==="break")break}t.placement!==ie&&(t.modifiersData[i]._skip=!0,t.placement=ie,t.reset=!0)}}const toe={name:"flip",enabled:!0,phase:"main",fn:eoe,requiresIfExists:["offset"],data:{_skip:!1}};function $M(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function FM(e){return[Uo,ol,al,jo].some(function(t){return e[t]>=0})}function noe(e){var t=e.state,n=e.name,i=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,l=Sb(t,{elementContext:"reference"}),p=Sb(t,{altBoundary:!0}),m=$M(l,i),v=$M(p,o,s),g=FM(m),b=FM(v);t.modifiersData[n]={referenceClippingOffsets:m,popperEscapeOffsets:v,isReferenceHidden:g,hasPopperEscaped:b},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":b})}const roe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:noe};function ioe(e,t,n){var i=Kl(e),o=[jo,Uo].indexOf(i)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=s[0],p=s[1];return l=l||0,p=(p||0)*o,[jo,ol].indexOf(i)>=0?{x:p,y:l}:{x:l,y:p}}function aoe(e){var t=e.state,n=e.options,i=e.name,o=n.offset,s=o===void 0?[0,0]:o,l=Pz.reduce(function(g,b){return g[b]=ioe(b,t.rects,s),g},{}),p=l[t.placement],m=p.x,v=p.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=m,t.modifiersData.popperOffsets.y+=v),t.modifiersData[i]=l}const ooe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:aoe};function soe(e){var t=e.state,n=e.name;t.modifiersData[n]=Uz({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const loe={name:"popperOffsets",enabled:!0,phase:"read",fn:soe,data:{}};function uoe(e){return e==="x"?"y":"x"}function coe(e){var t=e.state,n=e.options,i=e.name,o=n.mainAxis,s=o===void 0?!0:o,l=n.altAxis,p=l===void 0?!1:l,m=n.boundary,v=n.rootBoundary,g=n.altBoundary,b=n.padding,w=n.tether,C=w===void 0?!0:w,T=n.tetherOffset,R=T===void 0?0:T,L=Sb(t,{boundary:m,rootBoundary:v,padding:b,altBoundary:g}),D=Kl(t.placement),P=Zv(t.placement),I=!P,F=cT(D),z=uoe(F),q=t.modifiersData.popperOffsets,Y=t.rects.reference,Q=t.rects.popper,ie=typeof R=="function"?R(Object.assign({},t.rects,{placement:t.placement})):R,ae=typeof ie=="number"?{mainAxis:ie,altAxis:ie}:Object.assign({mainAxis:0,altAxis:0},ie),me=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,ze={x:0,y:0};if(!!q){if(s){var te,ee=F==="y"?Uo:jo,we=F==="y"?al:ol,ye=F==="y"?"height":"width",K=q[F],le=K+L[ee],ge=K-L[we],pe=C?-Q[ye]/2:0,Ee=P===Gv?Y[ye]:Q[ye],Oe=P===Gv?-Q[ye]:-Y[ye],Pe=t.elements.arrow,Xe=C&&Pe?uT(Pe):{width:0,height:0},et=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:$z(),at=et[ee],kt=et[we],He=Jg(0,Y[ye],Xe[ye]),ot=I?Y[ye]/2-pe-He-at-ae.mainAxis:Ee-He-at-ae.mainAxis,wt=I?-Y[ye]/2+pe+He+kt+ae.mainAxis:Oe+He+kt+ae.mainAxis,It=t.elements.arrow&&Kb(t.elements.arrow),We=It?F==="y"?It.clientTop||0:It.clientLeft||0:0,Vt=(te=me?.[F])!=null?te:0,Ce=K+ot-Vt-We,nt=K+wt-Vt,Ct=Jg(C?JS(le,Ce):le,K,C?ym(ge,nt):ge);q[F]=Ct,ze[F]=Ct-K}if(p){var rt,sn=F==="x"?Uo:jo,On=F==="x"?al:ol,Tt=q[z],ln=z==="y"?"height":"width",Mn=Tt+L[sn],yn=Tt-L[On],Ze=[Uo,jo].indexOf(D)!==-1,tt=(rt=me?.[z])!=null?rt:0,rn=Ze?Mn:Tt-Y[ln]-Q[ln]-tt+ae.altAxis,Dt=Ze?Tt+Y[ln]+Q[ln]-tt-ae.altAxis:yn,Ie=C&&Ze?Pae(rn,Tt,Dt):Jg(C?rn:Mn,Tt,C?Dt:yn);q[z]=Ie,ze[z]=Ie-Tt}t.modifiersData[i]=ze}}const foe={name:"preventOverflow",enabled:!0,phase:"main",fn:coe,requiresIfExists:["offset"]};function doe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function poe(e){return e===ul(e)||!bs(e)?fT(e):doe(e)}function moe(e){var t=e.getBoundingClientRect(),n=Yv(t.width)/e.offsetWidth||1,i=Yv(t.height)/e.offsetHeight||1;return n!==1||i!==1}function hoe(e,t,n){n===void 0&&(n=!1);var i=bs(t),o=bs(t)&&moe(t),s=Od(t),l=qv(e,o,n),p={scrollLeft:0,scrollTop:0},m={x:0,y:0};return(i||!i&&!n)&&((Gu(t)!=="body"||pT(s))&&(p=poe(t)),bs(t)?(m=qv(t,!0),m.x+=t.clientLeft,m.y+=t.clientTop):s&&(m.x=dT(s))),{x:l.left+p.scrollLeft-m.x,y:l.top+p.scrollTop-m.y,width:l.width,height:l.height}}function voe(e){var t=new Map,n=new Set,i=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(p){if(!n.has(p)){var m=t.get(p);m&&o(m)}}),i.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),i}function goe(e){var t=voe(e);return e_.reduce(function(n,i){return n.concat(t.filter(function(o){return o.phase===i}))},[])}function boe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function id(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return[].concat(n).reduce(function(o,s){return o.replace(/%s/,s)},e)}var tm='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',yoe='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',zM=["name","enabled","phase","fn","effect","requires","options"];function xoe(e){e.forEach(function(t){[].concat(Object.keys(t),zM).filter(function(n,i,o){return o.indexOf(n)===i}).forEach(function(n){switch(n){case"name":typeof t.name!="string"&&console.error(id(tm,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(id(tm,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":e_.indexOf(t.phase)<0&&console.error(id(tm,t.name,'"phase"',"either "+e_.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(id(tm,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(id(tm,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(id(tm,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(id(tm,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 '+zM.map(function(i){return'"'+i+'"'}).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach(function(i){e.find(function(o){return o.name===i})==null&&console.error(id(yoe,String(t.name),i,i))})})})}function Soe(e,t){var n=new Set;return e.filter(function(i){var o=t(i);if(!n.has(o))return n.add(o),!0})}function woe(e){var t=e.reduce(function(n,i){var o=n[i.name];return n[i.name]=o?Object.assign({},o,i,{options:Object.assign({},o.options,i.options),data:Object.assign({},o.data,i.data)}):i,n},{});return Object.keys(t).map(function(n){return t[n]})}var BM="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Coe="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",UM={placement:"bottom",modifiers:[],strategy:"absolute"};function jM(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function Noe(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,i=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?UM:o;return function(p,m,v){v===void 0&&(v=s);var g={placement:"bottom",orderedModifiers:[],options:Object.assign({},UM,s),modifiersData:{},elements:{reference:p,popper:m},attributes:{},styles:{}},b=[],w=!1,C={state:g,setOptions:function(D){var P=typeof D=="function"?D(g.options):D;R(),g.options=Object.assign({},s,g.options,P),g.scrollParents={reference:Nm(p)?eb(p):p.contextElement?eb(p.contextElement):[],popper:eb(m)};var I=goe(woe([].concat(i,g.options.modifiers)));g.orderedModifiers=I.filter(function(me){return me.enabled});{var F=Soe([].concat(I,g.options.modifiers),function(me){var ze=me.name;return ze});if(xoe(F),Kl(g.options.placement)===i4){var z=g.orderedModifiers.find(function(me){var ze=me.name;return ze==="flip"});z||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var q=Xl(m),Y=q.marginTop,Q=q.marginRight,ie=q.marginBottom,ae=q.marginLeft;[Y,Q,ie,ae].some(function(me){return parseFloat(me)})&&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 T(),C.update()},forceUpdate:function(){if(!w){var D=g.elements,P=D.reference,I=D.popper;if(!jM(P,I)){console.error(BM);return}g.rects={reference:hoe(P,Kb(I),g.options.strategy==="fixed"),popper:uT(I)},g.reset=!1,g.placement=g.options.placement,g.orderedModifiers.forEach(function(me){return g.modifiersData[me.name]=Object.assign({},me.data)});for(var F=0,z=0;z<g.orderedModifiers.length;z++){if(F+=1,F>100){console.error(Coe);break}if(g.reset===!0){g.reset=!1,z=-1;continue}var q=g.orderedModifiers[z],Y=q.fn,Q=q.options,ie=Q===void 0?{}:Q,ae=q.name;typeof Y=="function"&&(g=Y({state:g,options:ie,name:ae,instance:C})||g)}}},update:boe(function(){return new Promise(function(L){C.forceUpdate(),L(g)})}),destroy:function(){R(),w=!0}};if(!jM(p,m))return console.error(BM),C;C.setOptions(v).then(function(L){!w&&v.onFirstUpdate&&v.onFirstUpdate(L)});function T(){g.orderedModifiers.forEach(function(L){var D=L.name,P=L.options,I=P===void 0?{}:P,F=L.effect;if(typeof F=="function"){var z=F({state:g,name:D,instance:C,options:I}),q=function(){};b.push(z||q)}})}function R(){b.forEach(function(L){return L()}),b=[]}return C}}var Eoe=[Hae,loe,jae,Lae,ooe,toe,foe,Fae,roe],_oe=Noe({defaultModifiers:Eoe}),fv=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),Ei={arrowShadowColor:fv("--popper-arrow-shadow-color"),arrowSize:fv("--popper-arrow-size","8px"),arrowSizeHalf:fv("--popper-arrow-size-half"),arrowBg:fv("--popper-arrow-bg"),transformOrigin:fv("--popper-transform-origin"),arrowOffset:fv("--popper-arrow-offset")};function Toe(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 Roe={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"},koe=e=>Roe[e],VM={scroll:!0,resize:!0};function Aoe(e){let t;return typeof e=="object"?t={enabled:!0,options:{...VM,...e}}:t={enabled:e,options:VM},t}var Loe={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`}},Ooe={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{HM(e)},effect:({state:e})=>()=>{HM(e)}},HM=e=>{e.elements.popper.style.setProperty(Ei.transformOrigin.var,koe(e.placement))},Moe={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{Poe(e)}},Poe=e=>{var t;if(!e.placement)return;const n=Ioe(e.placement);if(((t=e.elements)==null?void 0:t.arrow)&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:Ei.arrowSize.varRef,height:Ei.arrowSize.varRef,zIndex:-1});const i={[Ei.arrowSizeHalf.var]:`calc(${Ei.arrowSize.varRef} / 2)`,[Ei.arrowOffset.var]:`calc(${Ei.arrowSizeHalf.varRef} * -1)`};for(const o in i)e.elements.arrow.style.setProperty(o,i[o])}},Ioe=e=>{if(e.startsWith("top"))return{property:"bottom",value:Ei.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:Ei.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:Ei.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:Ei.arrowOffset.varRef}},Doe={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{WM(e)},effect:({state:e})=>()=>{WM(e)}},WM=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:Ei.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:Toe(e.placement)})},$oe={"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"}},Foe={"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 zoe(e,t="ltr"){var n;const i=((n=$oe[e])==null?void 0:n[t])||e;return t==="ltr"?i:Foe[e]??i}function jz(e={}){const{enabled:t=!0,modifiers:n,placement:i="bottom",strategy:o="absolute",arrowPadding:s=8,eventListeners:l=!0,offset:p,gutter:m=8,flip:v=!0,boundary:g="clippingParents",preventOverflow:b=!0,matchWidth:w,direction:C="ltr"}=e,T=E.exports.useRef(null),R=E.exports.useRef(null),L=E.exports.useRef(null),D=zoe(i,C),P=E.exports.useRef(()=>{}),I=E.exports.useCallback(()=>{var ae;!t||!T.current||!R.current||((ae=P.current)==null||ae.call(P),L.current=_oe(T.current,R.current,{placement:D,modifiers:[Doe,Moe,Ooe,{...Loe,enabled:!!w},{name:"eventListeners",...Aoe(l)},{name:"arrow",options:{padding:s}},{name:"offset",options:{offset:p??[0,m]}},{name:"flip",enabled:!!v,options:{padding:8}},{name:"preventOverflow",enabled:!!b,options:{boundary:g}},...n??[]],strategy:o}),L.current.forceUpdate(),P.current=L.current.destroy)},[D,t,n,w,l,s,p,m,v,b,g,o]);E.exports.useEffect(()=>()=>{var ae;!T.current&&!R.current&&((ae=L.current)==null||ae.destroy(),L.current=null)},[]);const F=E.exports.useCallback(ae=>{T.current=ae,I()},[I]),z=E.exports.useCallback((ae={},me=null)=>({...ae,ref:ti(F,me)}),[F]),q=E.exports.useCallback(ae=>{R.current=ae,I()},[I]),Y=E.exports.useCallback((ae={},me=null)=>({...ae,ref:ti(q,me),style:{...ae.style,position:o,minWidth:w?void 0:"max-content",inset:"0 auto auto 0"}}),[o,q,w]),Q=E.exports.useCallback((ae={},me=null)=>{const{size:ze,shadowColor:te,bg:ee,style:we,...ye}=ae;return{...ye,ref:me,"data-popper-arrow":"",style:Boe(ae)}},[]),ie=E.exports.useCallback((ae={},me=null)=>({...ae,ref:me,"data-popper-arrow-inner":""}),[]);return{update(){var ae;(ae=L.current)==null||ae.update()},forceUpdate(){var ae;(ae=L.current)==null||ae.forceUpdate()},transformOrigin:Ei.transformOrigin.varRef,referenceRef:F,popperRef:q,getPopperProps:Y,getArrowProps:Q,getArrowInnerProps:ie,getReferenceProps:z}}function Boe(e){const{size:t,shadowColor:n,bg:i,style:o}=e,s={...o,position:"absolute"};return t&&(s["--popper-arrow-size"]=t),n&&(s["--popper-arrow-shadow-color"]=n),i&&(s["--popper-arrow-bg"]=i),s}function Vz(e={}){const{onClose:t,onOpen:n,isOpen:i,id:o}=e,s=Ka(n),l=Ka(t),[p,m]=E.exports.useState(e.defaultIsOpen||!1),v=i!==void 0?i:p,g=i!==void 0,b=o??`disclosure-${E.exports.useId()}`,w=E.exports.useCallback(()=>{g||m(!1),l?.()},[g,l]),C=E.exports.useCallback(()=>{g||m(!0),s?.()},[g,s]),T=E.exports.useCallback(()=>{v?w():C()},[v,C,w]);function R(D={}){return{...D,"aria-expanded":v,"aria-controls":b,onClick(P){var I;(I=D.onClick)==null||I.call(D,P),T()}}}function L(D={}){return{...D,hidden:!v,id:b}}return{isOpen:v,onOpen:C,onClose:w,onToggle:T,isControlled:g,getButtonProps:R,getDisclosureProps:L}}function Hz(e){const{wasSelected:t,enabled:n,isSelected:i,mode:o="unmount"}=e;return!!(!n||i||o==="keepMounted"&&t)}var Sd="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/portal/dist/index.esm.js",[Uoe,joe]=Or({strict:!1,name:"PortalManagerContext"});function Wz(e){const{children:t,zIndex:n}=e;return N(Uoe,{value:{zIndex:n},children:t},void 0,!1,{fileName:Sd,lineNumber:12,columnNumber:26},this)}Wz.displayName="PortalManager";var[Gz,Voe]=Or({strict:!1,name:"PortalContext"}),mT="chakra-portal",Hoe=".chakra-portal",Woe=e=>N("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children},void 0,!1,{fileName:Sd,lineNumber:29,columnNumber:44},globalThis),Goe=e=>{const{appendToParentPortal:t,children:n}=e,[i,o]=E.exports.useState(null),s=E.exports.useRef(null),[,l]=E.exports.useState({});E.exports.useEffect(()=>l({}),[]);const p=Voe(),m=joe();$u(()=>{if(!i)return;const g=i.ownerDocument,b=t?p??g.body:g.body;if(!b)return;s.current=g.createElement("div"),s.current.className=mT,b.appendChild(s.current),l({});const w=s.current;return()=>{b.contains(w)&&b.removeChild(w)}},[i]);const v=m?.zIndex?N(Woe,{zIndex:m?.zIndex,children:n},void 0,!1,{fileName:Sd,lineNumber:65,columnNumber:83},globalThis):n;return s.current?ef.exports.createPortal(N(Gz,{value:s.current,children:v},void 0,!1,{fileName:Sd,lineNumber:68,columnNumber:56},globalThis),s.current):N("span",{ref:g=>{g&&o(g)}},void 0,!1,{fileName:Sd,lineNumber:70,columnNumber:52},globalThis)},Yoe=e=>{const{children:t,containerRef:n,appendToParentPortal:i}=e,o=n.current,s=o??(typeof window<"u"?document.body:void 0),l=E.exports.useMemo(()=>{const m=o?.ownerDocument.createElement("div");return m&&(m.className=mT),m},[o]),[,p]=E.exports.useState({});return $u(()=>p({}),[]),$u(()=>{if(!(!l||!s))return s.appendChild(l),()=>{s.removeChild(l)}},[l,s]),s&&l?ef.exports.createPortal(N(Gz,{value:i?l:null,children:t},void 0,!1,{fileName:Sd,lineNumber:98,columnNumber:41},globalThis),l):null};function Om(e){const{containerRef:t,...n}=e;return t?N(Yoe,{containerRef:t,...n},void 0,!1,{fileName:Sd,lineNumber:106,columnNumber:41},this):N(Goe,{...n},void 0,!1,{fileName:Sd,lineNumber:109,columnNumber:24},this)}Om.defaultProps={appendToParentPortal:!0};Om.className=mT;Om.selector=Hoe;Om.displayName="Portal";var qoe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},dv=new WeakMap,O5=new WeakMap,M5={},c7=0,Zoe=function(e,t,n,i){var o=Array.isArray(e)?e:[e];M5[n]||(M5[n]=new WeakMap);var s=M5[n],l=[],p=new Set,m=new Set(o),v=function(b){!b||p.has(b)||(p.add(b),v(b.parentNode))};o.forEach(v);var g=function(b){!b||m.has(b)||Array.prototype.forEach.call(b.children,function(w){if(p.has(w))g(w);else{var C=w.getAttribute(i),T=C!==null&&C!=="false",R=(dv.get(w)||0)+1,L=(s.get(w)||0)+1;dv.set(w,R),s.set(w,L),l.push(w),R===1&&T&&O5.set(w,!0),L===1&&w.setAttribute(n,"true"),T||w.setAttribute(i,"true")}})};return g(t),p.clear(),c7++,function(){l.forEach(function(b){var w=dv.get(b)-1,C=s.get(b)-1;dv.set(b,w),s.set(b,C),w||(O5.has(b)||b.removeAttribute(i),O5.delete(b)),C||b.removeAttribute(n)}),c7--,c7||(dv=new WeakMap,dv=new WeakMap,O5=new WeakMap,M5={})}},Yz=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),o=t||qoe(e);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live]"))),Zoe(i,o,n,"aria-hidden")):function(){return null}};function Koe(e,t){if(e==null)return{};var n={},i=Object.keys(e),o,s;for(s=0;s<i.length;s++)o=i[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Pt={exports:{}};/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var GM=Object.getOwnPropertySymbols,Xoe=Object.prototype.hasOwnProperty,Qoe=Object.prototype.propertyIsEnumerable;function Joe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function ese(){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={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var i=Object.getOwnPropertyNames(t).map(function(s){return t[s]});if(i.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(s){o[s]=s}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var tse=ese()?Object.assign:function(e,t){for(var n,i=Joe(e),o,s=1;s<arguments.length;s++){n=Object(arguments[s]);for(var l in n)Xoe.call(n,l)&&(i[l]=n[l]);if(GM){o=GM(n);for(var p=0;p<o.length;p++)Qoe.call(n,o[p])&&(i[o[p]]=n[o[p]])}}return i},nse="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",qz=nse,Zz=Function.call.bind(Object.prototype.hasOwnProperty),r_=function(){};{var rse=qz,i_={},ise=Zz;r_=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}}}function Kz(e,t,n,i,o){for(var s in e)if(ise(e,s)){var l;try{if(typeof e[s]!="function"){var p=Error((i||"React class")+": "+n+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}l=e[s](t,s,i,n,null,rse)}catch(v){l=v}if(l&&!(l instanceof Error)&&r_((i||"React class")+": type specification of "+n+" `"+s+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof l+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),l instanceof Error&&!(l.message in i_)){i_[l.message]=!0;var m=o?o():"";r_("Failed "+n+" type: "+l.message+(m??""))}}}Kz.resetWarningCache=function(){i_={}};var ase=Kz,ose=k3.exports,sse=tse,pv=qz,f7=Zz,YM=ase,Cv=function(){};Cv=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}};function P5(){return null}var lse=function(e,t){var n=typeof Symbol=="function"&&Symbol.iterator,i="@@iterator";function o(te){var ee=te&&(n&&te[n]||te[i]);if(typeof ee=="function")return ee}var s="<<anonymous>>",l={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:b(),arrayOf:w,element:C(),elementType:T(),instanceOf:R,node:I(),objectOf:D,oneOf:L,oneOfType:P,shape:z,exact:q};function p(te,ee){return te===ee?te!==0||1/te===1/ee:te!==te&&ee!==ee}function m(te,ee){this.message=te,this.data=ee&&typeof ee=="object"?ee:{},this.stack=""}m.prototype=Error.prototype;function v(te){var ee={},we=0;function ye(le,ge,pe,Ee,Oe,Pe,Xe){if(Ee=Ee||s,Pe=Pe||pe,Xe!==pv){if(t){var et=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 et.name="Invariant Violation",et}else if(typeof console<"u"){var at=Ee+":"+pe;!ee[at]&&we<3&&(Cv("You are manually calling a React.PropTypes validation function for the `"+Pe+"` prop on `"+Ee+"`. 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."),ee[at]=!0,we++)}}return ge[pe]==null?le?ge[pe]===null?new m("The "+Oe+" `"+Pe+"` is marked as required "+("in `"+Ee+"`, but its value is `null`.")):new m("The "+Oe+" `"+Pe+"` is marked as required in "+("`"+Ee+"`, but its value is `undefined`.")):null:te(ge,pe,Ee,Oe,Pe)}var K=ye.bind(null,!1);return K.isRequired=ye.bind(null,!0),K}function g(te){function ee(we,ye,K,le,ge,pe){var Ee=we[ye],Oe=ie(Ee);if(Oe!==te){var Pe=ae(Ee);return new m("Invalid "+le+" `"+ge+"` of type "+("`"+Pe+"` supplied to `"+K+"`, expected ")+("`"+te+"`."),{expectedType:te})}return null}return v(ee)}function b(){return v(P5)}function w(te){function ee(we,ye,K,le,ge){if(typeof te!="function")return new m("Property `"+ge+"` of component `"+K+"` has invalid PropType notation inside arrayOf.");var pe=we[ye];if(!Array.isArray(pe)){var Ee=ie(pe);return new m("Invalid "+le+" `"+ge+"` of type "+("`"+Ee+"` supplied to `"+K+"`, expected an array."))}for(var Oe=0;Oe<pe.length;Oe++){var Pe=te(pe,Oe,K,le,ge+"["+Oe+"]",pv);if(Pe instanceof Error)return Pe}return null}return v(ee)}function C(){function te(ee,we,ye,K,le){var ge=ee[we];if(!e(ge)){var pe=ie(ge);return new m("Invalid "+K+" `"+le+"` of type "+("`"+pe+"` supplied to `"+ye+"`, expected a single ReactElement."))}return null}return v(te)}function T(){function te(ee,we,ye,K,le){var ge=ee[we];if(!ose.isValidElementType(ge)){var pe=ie(ge);return new m("Invalid "+K+" `"+le+"` of type "+("`"+pe+"` supplied to `"+ye+"`, expected a single ReactElement type."))}return null}return v(te)}function R(te){function ee(we,ye,K,le,ge){if(!(we[ye]instanceof te)){var pe=te.name||s,Ee=ze(we[ye]);return new m("Invalid "+le+" `"+ge+"` of type "+("`"+Ee+"` supplied to `"+K+"`, expected ")+("instance of `"+pe+"`."))}return null}return v(ee)}function L(te){if(!Array.isArray(te))return arguments.length>1?Cv("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])."):Cv("Invalid argument supplied to oneOf, expected an array."),P5;function ee(we,ye,K,le,ge){for(var pe=we[ye],Ee=0;Ee<te.length;Ee++)if(p(pe,te[Ee]))return null;var Oe=JSON.stringify(te,function(Xe,et){var at=ae(et);return at==="symbol"?String(et):et});return new m("Invalid "+le+" `"+ge+"` of value `"+String(pe)+"` "+("supplied to `"+K+"`, expected one of "+Oe+"."))}return v(ee)}function D(te){function ee(we,ye,K,le,ge){if(typeof te!="function")return new m("Property `"+ge+"` of component `"+K+"` has invalid PropType notation inside objectOf.");var pe=we[ye],Ee=ie(pe);if(Ee!=="object")return new m("Invalid "+le+" `"+ge+"` of type "+("`"+Ee+"` supplied to `"+K+"`, expected an object."));for(var Oe in pe)if(f7(pe,Oe)){var Pe=te(pe,Oe,K,le,ge+"."+Oe,pv);if(Pe instanceof Error)return Pe}return null}return v(ee)}function P(te){if(!Array.isArray(te))return Cv("Invalid argument supplied to oneOfType, expected an instance of array."),P5;for(var ee=0;ee<te.length;ee++){var we=te[ee];if(typeof we!="function")return Cv("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+me(we)+" at index "+ee+"."),P5}function ye(K,le,ge,pe,Ee){for(var Oe=[],Pe=0;Pe<te.length;Pe++){var Xe=te[Pe],et=Xe(K,le,ge,pe,Ee,pv);if(et==null)return null;et.data&&f7(et.data,"expectedType")&&Oe.push(et.data.expectedType)}var at=Oe.length>0?", expected one of type ["+Oe.join(", ")+"]":"";return new m("Invalid "+pe+" `"+Ee+"` supplied to "+("`"+ge+"`"+at+"."))}return v(ye)}function I(){function te(ee,we,ye,K,le){return Y(ee[we])?null:new m("Invalid "+K+" `"+le+"` supplied to "+("`"+ye+"`, expected a ReactNode."))}return v(te)}function F(te,ee,we,ye,K){return new m((te||"React class")+": "+ee+" type `"+we+"."+ye+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+K+"`.")}function z(te){function ee(we,ye,K,le,ge){var pe=we[ye],Ee=ie(pe);if(Ee!=="object")return new m("Invalid "+le+" `"+ge+"` of type `"+Ee+"` "+("supplied to `"+K+"`, expected `object`."));for(var Oe in te){var Pe=te[Oe];if(typeof Pe!="function")return F(K,le,ge,Oe,ae(Pe));var Xe=Pe(pe,Oe,K,le,ge+"."+Oe,pv);if(Xe)return Xe}return null}return v(ee)}function q(te){function ee(we,ye,K,le,ge){var pe=we[ye],Ee=ie(pe);if(Ee!=="object")return new m("Invalid "+le+" `"+ge+"` of type `"+Ee+"` "+("supplied to `"+K+"`, expected `object`."));var Oe=sse({},we[ye],te);for(var Pe in Oe){var Xe=te[Pe];if(f7(te,Pe)&&typeof Xe!="function")return F(K,le,ge,Pe,ae(Xe));if(!Xe)return new m("Invalid "+le+" `"+ge+"` key `"+Pe+"` supplied to `"+K+"`.\nBad object: "+JSON.stringify(we[ye],null," ")+`
Valid keys: `+JSON.stringify(Object.keys(te),null," "));var et=Xe(pe,Pe,K,le,ge+"."+Pe,pv);if(et)return et}return null}return v(ee)}function Y(te){switch(typeof te){case"number":case"string":case"undefined":return!0;case"boolean":return!te;case"object":if(Array.isArray(te))return te.every(Y);if(te===null||e(te))return!0;var ee=o(te);if(ee){var we=ee.call(te),ye;if(ee!==te.entries){for(;!(ye=we.next()).done;)if(!Y(ye.value))return!1}else for(;!(ye=we.next()).done;){var K=ye.value;if(K&&!Y(K[1]))return!1}}else return!1;return!0;default:return!1}}function Q(te,ee){return te==="symbol"?!0:ee?ee["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ee instanceof Symbol:!1}function ie(te){var ee=typeof te;return Array.isArray(te)?"array":te instanceof RegExp?"object":Q(ee,te)?"symbol":ee}function ae(te){if(typeof te>"u"||te===null)return""+te;var ee=ie(te);if(ee==="object"){if(te instanceof Date)return"date";if(te instanceof RegExp)return"regexp"}return ee}function me(te){var ee=ae(te);switch(ee){case"array":case"object":return"an "+ee;case"boolean":case"date":case"regexp":return"a "+ee;default:return ee}}function ze(te){return!te.constructor||!te.constructor.name?s:te.constructor.name}return l.checkPropTypes=YM,l.resetWarningCache=YM.resetWarningCache,l.PropTypes=l,l};{var use=k3.exports,cse=!0;Pt.exports=lse(use.isElement,cse)}var a_="data-focus-lock",Xz="data-focus-lock-disabled",fse="data-no-focus-lock",dse="data-autofocus-inside",pse="data-no-autofocus";function mse(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function hse(e,t){var n=E.exports.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(i){var o=n.value;o!==i&&(n.value=i,n.callback(i,o))}}}})[0];return n.callback=t,n.facade}function Qz(e,t){return hse(t||null,function(n){return e.forEach(function(i){return mse(i,n)})})}var d7={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};Pt.exports.node;function Jz(e){return e}function eB(e,t){t===void 0&&(t=Jz);var n=[],i=!1,o={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var l=t(s,i);return n.push(l),function(){n=n.filter(function(p){return p!==l})}},assignSyncMedium:function(s){for(i=!0;n.length;){var l=n;n=[],l.forEach(s)}n={push:function(p){return s(p)},filter:function(){return n}}},assignMedium:function(s){i=!0;var l=[];if(n.length){var p=n;n=[],p.forEach(s),l=n}var m=function(){var g=l;l=[],g.forEach(s)},v=function(){return Promise.resolve().then(m)};v(),n={push:function(g){l.push(g),v()},filter:function(g){return l=l.filter(g),n}}}};return o}function hT(e,t){return t===void 0&&(t=Jz),eB(e,t)}function tB(e){e===void 0&&(e={});var t=eB(null);return t.options=Pu({async:!0,ssr:!1},e),t}var vse="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/use-sidecar/dist/es2015/exports.js",nB=function(e){var t=e.sideCar,n=B3(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 N(i,{...Pu({},n)},void 0,!1,{fileName:vse,lineNumber:12,columnNumber:12},this)};nB.isSideCarExport=!0;function gse(e,t){return e.useMedium(t),nB}var rB=hT({},function(e){var t=e.target,n=e.currentTarget;return{target:t,currentTarget:n}}),iB=hT(),bse=hT(),yse=tB({async:!0}),Ag="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/react-focus-lock/dist/es2015/Lock.js",xse=[],vT=E.exports.forwardRef(function(t,n){var i,o=E.exports.useState(),s=o[0],l=o[1],p=E.exports.useRef(),m=E.exports.useRef(!1),v=E.exports.useRef(null),g=t.children,b=t.disabled,w=t.noFocusGuards,C=t.persistentFocus,T=t.crossFrame,R=t.autoFocus,L=t.allowTextSelection,D=t.group,P=t.className,I=t.whiteList,F=t.hasPositiveIndices,z=t.shards,q=z===void 0?xse:z,Y=t.as,Q=Y===void 0?"div":Y,ie=t.lockProps,ae=ie===void 0?{}:ie,me=t.sideCar,ze=t.returnFocus,te=t.focusOptions,ee=t.onActivation,we=t.onDeactivation,ye=E.exports.useState({}),K=ye[0],le=E.exports.useCallback(function(){v.current=v.current||document&&document.activeElement,p.current&&ee&&ee(p.current),m.current=!0},[ee]),ge=E.exports.useCallback(function(){m.current=!1,we&&we(p.current)},[we]);E.exports.useEffect(function(){b||(v.current=null)},[]);var pe=E.exports.useCallback(function(He){var ot=v.current;if(ot&&ot.focus){var wt=typeof ze=="function"?ze(ot):ze;if(wt){var It=typeof wt=="object"?wt:void 0;v.current=null,He?Promise.resolve().then(function(){return ot.focus(It)}):ot.focus(It)}}},[ze]),Ee=E.exports.useCallback(function(He){m.current&&rB.useMedium(He)},[]),Oe=iB.useMedium,Pe=E.exports.useCallback(function(He){p.current!==He&&(p.current=He,l(He))},[]);typeof L<"u"&&console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"),E.exports.useEffect(function(){p.current||console.error("FocusLock: could not obtain ref to internal node")},[]);var Xe=hr((i={},i[Xz]=b&&"disabled",i[a_]=D,i),ae),et=w!==!0,at=et&&w!=="tail",kt=Qz([n,Pe]);return N(Gi,{children:[et&&[N("div",{"data-focus-guard":!0,tabIndex:b?-1:0,style:d7},"guard-first",!1,{fileName:Ag,lineNumber:130,columnNumber:3},this),F?N("div",{"data-focus-guard":!0,tabIndex:b?-1:1,style:d7},"guard-nearest",!1,{fileName:Ag,lineNumber:136,columnNumber:37},this):null],!b&&N(me,{id:K,sideCar:yse,observed:s,disabled:b,persistentFocus:C,crossFrame:T,autoFocus:R,whiteList:I,shards:q,onActivation:le,onDeactivation:ge,returnFocus:pe,focusOptions:te},void 0,!1,{fileName:Ag,lineNumber:141,columnNumber:41},this),N(Q,{ref:kt,...Xe,className:P,onBlur:Oe,onFocus:Ee,children:g},void 0,!1,{fileName:Ag,lineNumber:155,columnNumber:20},this),at&&N("div",{"data-focus-guard":!0,tabIndex:b?-1:0,style:d7},void 0,!1,{fileName:Ag,lineNumber:161,columnNumber:51},this)]},void 0,!0)});vT.propTypes={children:Pt.exports.node,disabled:Pt.exports.bool,returnFocus:Pt.exports.oneOfType([Pt.exports.bool,Pt.exports.object,Pt.exports.func]),focusOptions:Pt.exports.object,noFocusGuards:Pt.exports.bool,hasPositiveIndices:Pt.exports.bool,allowTextSelection:Pt.exports.bool,autoFocus:Pt.exports.bool,persistentFocus:Pt.exports.bool,crossFrame:Pt.exports.bool,group:Pt.exports.string,className:Pt.exports.string,whiteList:Pt.exports.func,shards:Pt.exports.arrayOf(Pt.exports.any),as:Pt.exports.oneOfType([Pt.exports.string,Pt.exports.func,Pt.exports.object]),lockProps:Pt.exports.object,onActivation:Pt.exports.func,onDeactivation:Pt.exports.func,sideCar:Pt.exports.any.isRequired};vT.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 aB=vT;function o_(e,t){return o_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},o_(e,t)}function Sse(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o_(e,t)}function oB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wse="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/react-clientside-effect/lib/index.es.js";function Cse(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 n(i){return i.displayName||i.name||"Component"}return function(o){if(typeof o!="function")throw new Error("Expected WrappedComponent to be a React component.");var s=[],l;function p(){l=e(s.map(function(v){return v.props})),t(l)}var m=function(v){Sse(g,v);function g(){return v.apply(this,arguments)||this}g.peek=function(){return l};var b=g.prototype;return b.componentDidMount=function(){s.push(this),p()},b.componentDidUpdate=function(){p()},b.componentWillUnmount=function(){var C=s.indexOf(this);s.splice(C,1),p()},b.render=function(){return N(o,{...this.props},void 0,!1,{fileName:wse,lineNumber:67,columnNumber:29},this)},g}(E.exports.PureComponent);return oB(m,"displayName","SideEffect("+n(o)+")"),m}}var Ku=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},s_=function(e){return Array.isArray(e)?e:[e]},Nse=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"},sB=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},lB=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},Ese=function(e,t){return!e||lB(e)||!Nse(e)&&t(sB(e))},uB=function(e,t){var n=e.get(t);if(n!==void 0)return n;var i=Ese(t,uB.bind(void 0,e));return e.set(t,i),i},_se=function(e,t){return e&&!lB(e)?kse(e)?t(sB(e)):!1:!0},cB=function(e,t){var n=e.get(t);if(n!==void 0)return n;var i=_se(t,cB.bind(void 0,e));return e.set(t,i),i},fB=function(e){return e.dataset},Tse=function(e){return e.tagName==="BUTTON"},dB=function(e){return e.tagName==="INPUT"},pB=function(e){return dB(e)&&e.type==="radio"},Rse=function(e){return!((dB(e)||Tse(e))&&(e.type==="hidden"||e.disabled))},kse=function(e){var t=e.getAttribute(pse);return![!0,"true",""].includes(t)},gT=function(e){var t;return Boolean(e&&((t=fB(e))===null||t===void 0?void 0:t.focusGuard))},e3=function(e){return!gT(e)},Ase=function(e){return Boolean(e)},Lse=function(e,t){var n=e.tabIndex-t.tabIndex,i=e.index-t.index;if(n){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return n||i},mB=function(e,t,n){return Ku(e).map(function(i,o){return{node:i,index:o,tabIndex:n&&i.tabIndex===-1?(i.dataset||{}).focusGuard?0:-1:i.tabIndex}}).filter(function(i){return!t||i.tabIndex>=0}).sort(Lse)},Ose=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],bT=Ose.join(","),Mse="".concat(bT,", [data-focus-guard]"),hB=function(e,t){var n;return Ku(((n=e.shadowRoot)===null||n===void 0?void 0:n.children)||e.children).reduce(function(i,o){return i.concat(o.matches(t?Mse:bT)?[o]:[],hB(o))},[])},yT=function(e,t){return e.reduce(function(n,i){return n.concat(hB(i,t),i.parentNode?Ku(i.parentNode.querySelectorAll(bT)).filter(function(o){return o===i}):[])},[])},Pse=function(e){var t=e.querySelectorAll("[".concat(dse,"]"));return Ku(t).map(function(n){return yT([n])}).reduce(function(n,i){return n.concat(i)},[])},xT=function(e,t){return Ku(e).filter(function(n){return uB(t,n)}).filter(function(n){return Rse(n)})},qM=function(e,t){return t===void 0&&(t=new Map),Ku(e).filter(function(n){return cB(t,n)})},l_=function(e,t,n){return mB(xT(yT(e,n),t),!0,n)},ZM=function(e,t){return mB(xT(yT(e),t),!1)},Ise=function(e,t){return xT(Pse(e),t)},wb=function(e,t){return(e.shadowRoot?wb(e.shadowRoot,t):Object.getPrototypeOf(e).contains.call(e,t))||Ku(e.children).some(function(n){return wb(n,t)})},Dse=function(e){for(var t=new Set,n=e.length,i=0;i<n;i+=1)for(var o=i+1;o<n;o+=1){var s=e[i].compareDocumentPosition(e[o]);(s&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(o),(s&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(i)}return e.filter(function(l,p){return!t.has(p)})},vB=function(e){return e.parentNode?vB(e.parentNode):e},ST=function(e){var t=s_(e);return t.filter(Boolean).reduce(function(n,i){var o=i.getAttribute(a_);return n.push.apply(n,o?Dse(Ku(vB(i).querySelectorAll("[".concat(a_,'="').concat(o,'"]:not([').concat(Xz,'="disabled"])')))):[i]),n},[])},gB=function(e){return e.activeElement?e.activeElement.shadowRoot?gB(e.activeElement.shadowRoot):e.activeElement:void 0},wT=function(){return document.activeElement?document.activeElement.shadowRoot?gB(document.activeElement.shadowRoot):document.activeElement:void 0},$se=function(e){return e===document.activeElement},Fse=function(e){return Boolean(Ku(e.querySelectorAll("iframe")).some(function(t){return $se(t)}))},bB=function(e){var t=document&&wT();return!t||t.dataset&&t.dataset.focusGuard?!1:ST(e).some(function(n){return wb(n,t)||Fse(n)})},zse=function(){var e=document&&wT();return e?Ku(document.querySelectorAll("[".concat(fse,"]"))).some(function(t){return wb(t,e)}):!1},Bse=function(e,t){return t.filter(pB).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},CT=function(e,t){return pB(e)&&e.name?Bse(e,t):e},Use=function(e){var t=new Set;return e.forEach(function(n){return t.add(CT(n,e))}),e.filter(function(n){return t.has(n)})},KM=function(e){return e[0]&&e.length>1?CT(e[0],e):e[0]},XM=function(e,t){return e.length>1?e.indexOf(CT(e[t],e)):t},yB="NEW_FOCUS",jse=function(e,t,n,i){var o=e.length,s=e[0],l=e[o-1],p=gT(n);if(!(n&&e.indexOf(n)>=0)){var m=n!==void 0?t.indexOf(n):-1,v=i?t.indexOf(i):m,g=i?e.indexOf(i):-1,b=m-v,w=t.indexOf(s),C=t.indexOf(l),T=Use(t),R=n!==void 0?T.indexOf(n):-1,L=R-(i?T.indexOf(i):m),D=XM(e,0),P=XM(e,o-1);if(m===-1||g===-1)return yB;if(!b&&g>=0)return g;if(m<=w&&p&&Math.abs(b)>1)return P;if(m>=C&&p&&Math.abs(b)>1)return D;if(b&&Math.abs(L)>1)return g;if(m<=w)return P;if(m>C)return D;if(b)return Math.abs(b)>1?g:(o+g+b)%o}},u_=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&u_(e.parentNode.host||e.parentNode,t),t},p7=function(e,t){for(var n=u_(e),i=u_(t),o=0;o<n.length;o+=1){var s=n[o];if(i.indexOf(s)>=0)return s}return!1},xB=function(e,t,n){var i=s_(e),o=s_(t),s=i[0],l=!1;return o.filter(Boolean).forEach(function(p){l=p7(l||p,p)||l,n.filter(Boolean).forEach(function(m){var v=p7(s,m);v&&(!l||wb(v,l)?l=v:l=p7(v,l))})}),l},Vse=function(e,t){return e.reduce(function(n,i){return n.concat(Ise(i,t))},[])},Hse=function(e){return function(t){var n;return t.autofocus||!!(!((n=fB(t))===null||n===void 0)&&n.autofocus)||e.indexOf(t)>=0}},Wse=function(e,t){var n=new Map;return t.forEach(function(i){return n.set(i.node,i)}),e.map(function(i){return n.get(i)}).filter(Ase)},Gse=function(e,t){var n=document&&wT(),i=ST(e).filter(e3),o=xB(n||e,e,i),s=new Map,l=ZM(i,s),p=l_(i,s).filter(function(C){var T=C.node;return e3(T)});if(!(!p[0]&&(p=l,!p[0]))){var m=ZM([o],s).map(function(C){var T=C.node;return T}),v=Wse(m,p),g=v.map(function(C){var T=C.node;return T}),b=jse(g,m,n,t);if(b===yB){var w=qM(l.map(function(C){var T=C.node;return T})).filter(Hse(Vse(i,s)));return{node:w&&w.length?KM(w):KM(qM(g))}}return b===void 0?b:v[b]}},Yse=function(e){var t=ST(e).filter(e3),n=xB(e,e,t),i=new Map,o=l_([n],i,!0),s=l_(t,i).filter(function(l){var p=l.node;return e3(p)}).map(function(l){var p=l.node;return p});return o.map(function(l){var p=l.node,m=l.index;return{node:p,index:m,lockItem:s.indexOf(p)>=0,guard:gT(p)}})},qse=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},m7=0,h7=!1,Zse=function(e,t,n){n===void 0&&(n={});var i=Gse(e,t);if(!h7&&i){if(m7>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),h7=!0,setTimeout(function(){h7=!1},1);return}m7++,qse(i.node,n.focusOptions),m7--}};const SB=Zse;function wB(e){var t=window,n=t.setImmediate;typeof n<"u"?n(e):setTimeout(e,1)}var Kse=function(){return document&&document.activeElement===document.body},Xse=function(){return Kse()||zse()},$v=null,Av=null,Fv=null,Cb=!1,Qse=function(){return!0},Jse=function(t){return($v.whiteList||Qse)(t)},ele=function(t,n){Fv={observerNode:t,portaledElement:n}},tle=function(t){return Fv&&Fv.portaledElement===t};function QM(e,t,n,i){var o=null,s=e;do{var l=i[s];if(l.guard)l.node.dataset.focusAutoGuard&&(o=l);else if(l.lockItem){if(s!==e)return;o=null}else break}while((s+=n)!==t);o&&(o.node.tabIndex=0)}var nle=function(t){return t&&"current"in t?t.current:t},rle=function(t){return t?Boolean(Cb):Cb==="meanwhile"},ile=function e(t,n,i){return n&&(n.host===t&&(!n.activeElement||i.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,i))},ale=function(t,n){return n.some(function(i){return ile(t,i,i)})},t3=function(){var t=!1;if($v){var n=$v,i=n.observed,o=n.persistentFocus,s=n.autoFocus,l=n.shards,p=n.crossFrame,m=n.focusOptions,v=i||Fv&&Fv.portaledElement,g=document&&document.activeElement;if(v){var b=[v].concat(l.map(nle).filter(Boolean));if((!g||Jse(g))&&(o||rle(p)||!Xse()||!Av&&s)&&(v&&!(bB(b)||g&&ale(g,b)||tle(g))&&(document&&!Av&&g&&!s?(g.blur&&g.blur(),document.body.focus()):(t=SB(b,Av,{focusOptions:m}),Fv={})),Cb=!1,Av=document&&document.activeElement),document){var w=document&&document.activeElement,C=Yse(b),T=C.map(function(R){var L=R.node;return L}).indexOf(w);T>-1&&(C.filter(function(R){var L=R.guard,D=R.node;return L&&D.dataset.focusAutoGuard}).forEach(function(R){var L=R.node;return L.removeAttribute("tabIndex")}),QM(T,C.length,1,C),QM(T,-1,-1,C))}}}return t},CB=function(t){t3()&&t&&(t.stopPropagation(),t.preventDefault())},NT=function(){return wB(t3)},ole=function(t){var n=t.target,i=t.currentTarget;i.contains(n)||ele(i,n)},sle=function(){return null};Pt.exports.node.isRequired;var NB=function(){Cb="just",setTimeout(function(){Cb="meanwhile"},0)},lle=function(){document.addEventListener("focusin",CB),document.addEventListener("focusout",NT),window.addEventListener("blur",NB)},ule=function(){document.removeEventListener("focusin",CB),document.removeEventListener("focusout",NT),window.removeEventListener("blur",NB)};function cle(e){return e.filter(function(t){var n=t.disabled;return!n})}function fle(e){var t=e.slice(-1)[0];t&&!$v&&lle();var n=$v,i=n&&t&&t.id===n.id;$v=t,n&&!i&&(n.onDeactivation(),e.filter(function(o){var s=o.id;return s===n.id}).length||n.returnFocus(!t)),t?(Av=null,(!i||n.observed!==t.observed)&&t.onActivation(),t3(),wB(t3)):(ule(),Av=null)}rB.assignSyncMedium(ole);iB.assignMedium(NT);bse.assignMedium(function(e){return e({moveFocusInside:SB,focusInside:bB})});const dle=Cse(cle,fle)(sle);var ple="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/react-focus-lock/dist/es2015/Combination.js",EB=E.exports.forwardRef(function(t,n){return N(aB,{sideCar:dle,ref:n,...t},void 0,!1,{fileName:ple,lineNumber:16,columnNumber:23},this)}),_B=aB.propTypes||{};_B.sideCar;var mle=Koe(_B,["sideCar"]);EB.propTypes=mle;const hle=EB;var vle="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/focus-lock/dist/index.esm.js",TB=e=>{const{initialFocusRef:t,finalFocusRef:n,contentRef:i,restoreFocus:o,children:s,isDisabled:l,autoFocus:p,persistentFocus:m,lockFocusAcrossFrames:v}=e,g=E.exports.useCallback(()=>{t?.current?t.current.focus():i?.current&&gae(i.current).length===0&&requestAnimationFrame(()=>{var T;(T=i.current)==null||T.focus()})},[t,i]),b=E.exports.useCallback(()=>{var C;(C=n?.current)==null||C.focus()},[n]);return N(hle,{crossFrame:v,persistentFocus:m,autoFocus:p,disabled:l,onActivation:g,onDeactivation:b,returnFocus:o&&!n,children:s},void 0,!1,{fileName:vle,lineNumber:38,columnNumber:26},globalThis)};TB.displayName="FocusLock";var mS="right-scroll-bar-position",hS="width-before-scroll-bar",gle="with-scroll-bars-hidden",ble="--removed-body-scroll-bar-size",RB=tB(),JM="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/react-remove-scroll/dist/es2015/UI.js",v7=function(){},o4=E.exports.forwardRef(function(e,t){var n=E.exports.useRef(null),i=E.exports.useState({onScrollCapture:v7,onWheelCapture:v7,onTouchMoveCapture:v7}),o=i[0],s=i[1],l=e.forwardProps,p=e.children,m=e.className,v=e.removeScrollBar,g=e.enabled,b=e.shards,w=e.sideCar,C=e.noIsolation,T=e.inert,R=e.allowPinchZoom,L=e.as,D=L===void 0?"div":L,P=B3(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),I=w,F=Qz([n,t]),z=Pu(Pu({},P),o);return N(Gi,{children:[g&&N(I,{sideCar:RB,removeScrollBar:v,shards:b,noIsolation:C,inert:T,setCallbacks:s,allowPinchZoom:!!R,lockRef:n},void 0,!1,{fileName:JM,lineNumber:24,columnNumber:21},this),l?E.exports.cloneElement(E.exports.Children.only(p),Pu(Pu({},z),{ref:F})):N(D,{...Pu({},z,{className:m,ref:F}),children:p},void 0,!1,{fileName:JM,lineNumber:25,columnNumber:142},this)]},void 0,!0)});o4.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};o4.classNames={fullWidth:hS,zeroRight:mS};var yle=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function xle(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=yle();return t&&e.setAttribute("nonce",t),e}function Sle(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function wle(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Cle=function(){var e=0,t=null;return{add:function(n){e==0&&(t=xle())&&(Sle(t,n),wle(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Nle=function(){var e=Cle();return function(t,n){E.exports.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},kB=function(){var e=Nle(),t=function(n){var i=n.styles,o=n.dynamic;return e(i,o),null};return t},Ele={left:0,top:0,right:0,gap:0},g7=function(e){return parseInt(e||"",10)||0},_le=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 n=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[g7(n),g7(i),g7(o)]},Tle=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ele;var t=_le(e),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-n+t[2]-t[0])}},Rle="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/react-remove-scroll-bar/dist/es2015/component.js",kle=kB(),Ale=function(e,t,n,i){var o=e.left,s=e.top,l=e.right,p=e.gap;return n===void 0&&(n="margin"),`
.`.concat(gle,` {
overflow: hidden `).concat(i,`;
padding-right: `).concat(p,"px ").concat(i,`;
}
body {
overflow: hidden `).concat(i,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(i,";"),n==="margin"&&`
padding-left: `.concat(o,`px;
padding-top: `).concat(s,`px;
padding-right: `).concat(l,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(p,"px ").concat(i,`;
`),n==="padding"&&"padding-right: ".concat(p,"px ").concat(i,";")].filter(Boolean).join(""),`
}
.`).concat(mS,` {
right: `).concat(p,"px ").concat(i,`;
}
.`).concat(hS,` {
margin-right: `).concat(p,"px ").concat(i,`;
}
.`).concat(mS," .").concat(mS,` {
right: 0 `).concat(i,`;
}
.`).concat(hS," .").concat(hS,` {
margin-right: 0 `).concat(i,`;
}
body {
`).concat(ble,": ").concat(p,`px;
}
`)},Lle=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,o=i===void 0?"margin":i,s=E.exports.useMemo(function(){return Tle(o)},[o]);return N(kle,{styles:Ale(s,!t,o,n?"":"!important")},void 0,!1,{fileName:Rle,lineNumber:27,columnNumber:12},this)},c_=!1;if(typeof window<"u")try{var I5=Object.defineProperty({},"passive",{get:function(){return c_=!0,!0}});window.addEventListener("test",I5,I5),window.removeEventListener("test",I5,I5)}catch{c_=!1}var mv=c_?{passive:!1}:!1,Ole=function(e){return e.tagName==="TEXTAREA"},AB=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Ole(e)&&n[t]==="visible")},Mle=function(e){return AB(e,"overflowY")},Ple=function(e){return AB(e,"overflowX")},eP=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var i=LB(e,n);if(i){var o=OB(e,n),s=o[1],l=o[2];if(s>l)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Ile=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},Dle=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},LB=function(e,t){return e==="v"?Mle(t):Ple(t)},OB=function(e,t){return e==="v"?Ile(t):Dle(t)},$le=function(e,t){return e==="h"&&t==="rtl"?-1:1},Fle=function(e,t,n,i,o){var s=$le(e,window.getComputedStyle(t).direction),l=s*i,p=n.target,m=t.contains(p),v=!1,g=l>0,b=0,w=0;do{var C=OB(e,p),T=C[0],R=C[1],L=C[2],D=R-L-s*T;(T||D)&&LB(e,p)&&(b+=D,w+=T),p=p.parentNode}while(!m&&p!==document.body||m&&(t.contains(p)||t===p));return(g&&(o&&b===0||!o&&l>b)||!g&&(o&&w===0||!o&&-l>w))&&(v=!0),v},tP="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/react-remove-scroll/dist/es2015/SideEffect.js",D5=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},nP=function(e){return[e.deltaX,e.deltaY]},rP=function(e){return e&&"current"in e?e.current:e},zle=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ble=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},Ule=0,hv=[];function jle(e){var t=E.exports.useRef([]),n=E.exports.useRef([0,0]),i=E.exports.useRef(),o=E.exports.useState(Ule++)[0],s=E.exports.useState(function(){return kB()})[0],l=E.exports.useRef(e);E.exports.useEffect(function(){l.current=e},[e]),E.exports.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var R=TE([e.lockRef.current],(e.shards||[]).map(rP),!0).filter(Boolean);return R.forEach(function(L){return L.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),R.forEach(function(L){return L.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var p=E.exports.useCallback(function(R,L){if("touches"in R&&R.touches.length===2)return!l.current.allowPinchZoom;var D=D5(R),P=n.current,I="deltaX"in R?R.deltaX:P[0]-D[0],F="deltaY"in R?R.deltaY:P[1]-D[1],z,q=R.target,Y=Math.abs(I)>Math.abs(F)?"h":"v";if("touches"in R&&Y==="h"&&q.type==="range")return!1;var Q=eP(Y,q);if(!Q)return!0;if(Q?z=Y:(z=Y==="v"?"h":"v",Q=eP(Y,q)),!Q)return!1;if(!i.current&&"changedTouches"in R&&(I||F)&&(i.current=z),!z)return!0;var ie=i.current||z;return Fle(ie,L,R,ie==="h"?I:F,!0)},[]),m=E.exports.useCallback(function(R){var L=R;if(!(!hv.length||hv[hv.length-1]!==s)){var D="deltaY"in L?nP(L):D5(L),P=t.current.filter(function(z){return z.name===L.type&&z.target===L.target&&zle(z.delta,D)})[0];if(P&&P.should){L.cancelable&&L.preventDefault();return}if(!P){var I=(l.current.shards||[]).map(rP).filter(Boolean).filter(function(z){return z.contains(L.target)}),F=I.length>0?p(L,I[0]):!l.current.noIsolation;F&&L.cancelable&&L.preventDefault()}}},[]),v=E.exports.useCallback(function(R,L,D,P){var I={name:R,delta:L,target:D,should:P};t.current.push(I),setTimeout(function(){t.current=t.current.filter(function(F){return F!==I})},1)},[]),g=E.exports.useCallback(function(R){n.current=D5(R),i.current=void 0},[]),b=E.exports.useCallback(function(R){v(R.type,nP(R),R.target,p(R,e.lockRef.current))},[]),w=E.exports.useCallback(function(R){v(R.type,D5(R),R.target,p(R,e.lockRef.current))},[]);E.exports.useEffect(function(){return hv.push(s),e.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:w}),document.addEventListener("wheel",m,mv),document.addEventListener("touchmove",m,mv),document.addEventListener("touchstart",g,mv),function(){hv=hv.filter(function(R){return R!==s}),document.removeEventListener("wheel",m,mv),document.removeEventListener("touchmove",m,mv),document.removeEventListener("touchstart",g,mv)}},[]);var C=e.removeScrollBar,T=e.inert;return N(Gi,{children:[T?N(s,{styles:Ble(o)},void 0,!1,{fileName:tP,lineNumber:144,columnNumber:17},this):null,C?N(Lle,{gapMode:"margin"},void 0,!1,{fileName:tP,lineNumber:145,columnNumber:27},this):null]},void 0,!0)}const Vle=gse(RB,jle);var Hle="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/react-remove-scroll/dist/es2015/Combination.js",MB=E.exports.forwardRef(function(e,t){return N(o4,{...Pu({},e,{ref:t,sideCar:Vle})},void 0,!1,{fileName:Hle,lineNumber:5,columnNumber:74},this)});MB.classNames=o4.classNames;const PB=MB;var Bo="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/modal/dist/index.esm.js",Mm=(...e)=>e.filter(Boolean).join(" ");function Bg(...e){return function(n){e.some(i=>(i?.(n),n?.defaultPrevented))}}var Wle=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}},f_=new Wle;function Gle(e,t){E.exports.useEffect(()=>(t&&f_.add(e),()=>{f_.remove(e)}),[t,e])}function Yle(e){const{isOpen:t,onClose:n,id:i,closeOnOverlayClick:o=!0,closeOnEsc:s=!0,useInert:l=!0,onOverlayClick:p,onEsc:m}=e,v=E.exports.useRef(null),g=E.exports.useRef(null),[b,w,C]=Zle(i,"chakra-modal","chakra-modal--header","chakra-modal--body");qle(v,t&&l),Gle(v,t);const T=E.exports.useRef(null),R=E.exports.useCallback(Q=>{T.current=Q.target},[]),L=E.exports.useCallback(Q=>{Q.key==="Escape"&&(Q.stopPropagation(),s&&n?.(),m?.())},[s,n,m]),[D,P]=E.exports.useState(!1),[I,F]=E.exports.useState(!1),z=E.exports.useCallback((Q={},ie=null)=>({role:"dialog",...Q,ref:ti(ie,v),id:b,tabIndex:-1,"aria-modal":!0,"aria-labelledby":D?w:void 0,"aria-describedby":I?C:void 0,onClick:Bg(Q.onClick,ae=>ae.stopPropagation())}),[C,I,b,w,D]),q=E.exports.useCallback(Q=>{Q.stopPropagation(),T.current===Q.target&&(!f_.isTopModal(v)||(o&&n?.(),p?.()))},[n,o,p]),Y=E.exports.useCallback((Q={},ie=null)=>({...Q,ref:ti(ie,g),onClick:Bg(Q.onClick,q),onKeyDown:Bg(Q.onKeyDown,L),onMouseDown:Bg(Q.onMouseDown,R)}),[L,R,q]);return{isOpen:t,onClose:n,headerId:w,bodyId:C,setBodyMounted:F,setHeaderMounted:P,dialogRef:v,overlayRef:g,getDialogProps:z,getDialogContainerProps:Y}}function qle(e,t){const n=e.current;E.exports.useEffect(()=>{if(!(!e.current||!t))return Yz(e.current)},[t,e,n])}function Zle(e,...t){const n=E.exports.useId(),i=e||n;return E.exports.useMemo(()=>t.map(o=>`${o}-${i}`),[i,t])}var[Kle,Pm]=Or({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Modal />" `}),[Xle,_d]=Or({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),Kv=e=>{const{portalProps:t,children:n,autoFocus:i,trapFocus:o,initialFocusRef:s,finalFocusRef:l,returnFocusOnClose:p,blockScrollOnMount:m,allowPinchZoom:v,preserveScrollBarGap:g,motionPreset:b,lockFocusAcrossFrames:w,onCloseComplete:C}=e,T=So("Modal",e),L={...Yle(e),autoFocus:i,trapFocus:o,initialFocusRef:s,finalFocusRef:l,returnFocusOnClose:p,blockScrollOnMount:m,allowPinchZoom:v,preserveScrollBarGap:g,motionPreset:b,lockFocusAcrossFrames:w};return N(Xle,{value:L,children:N(Kle,{value:T,children:N(tf,{onExitComplete:C,children:L.isOpen&&N(Om,{...t,children:n},void 0,!1,{fileName:Bo,lineNumber:195,columnNumber:40},globalThis)},void 0,!1,{fileName:Bo,lineNumber:193,columnNumber:22},globalThis)},void 0,!1,{fileName:Bo,lineNumber:191,columnNumber:22},globalThis)},void 0,!1,{fileName:Bo,lineNumber:189,columnNumber:26},globalThis)};Kv.defaultProps={lockFocusAcrossFrames:!0,returnFocusOnClose:!0,scrollBehavior:"outside",trapFocus:!0,autoFocus:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale"};Kv.displayName="Modal";var n3=qe((e,t)=>{const{className:n,...i}=e,{bodyId:o,setBodyMounted:s}=_d();E.exports.useEffect(()=>(s(!0),()=>s(!1)),[s]);const l=Mm("chakra-modal__body",n),p=Pm();return Ne.createElement($e.div,{ref:t,className:l,id:o,...i,__css:p.body})});n3.displayName="ModalBody";var ET=qe((e,t)=>{const{onClick:n,className:i,...o}=e,{onClose:s}=_d(),l=Mm("chakra-modal__close-btn",i),p=Pm();return N(t4,{ref:t,__css:p.closeButton,className:l,onClick:Bg(n,m=>{m.stopPropagation(),s()}),...o},void 0,!1,{fileName:Bo,lineNumber:241,columnNumber:26},globalThis)});ET.displayName="ModalCloseButton";function IB(e){const{autoFocus:t,trapFocus:n,dialogRef:i,initialFocusRef:o,blockScrollOnMount:s,allowPinchZoom:l,finalFocusRef:p,returnFocusOnClose:m,preserveScrollBarGap:v,lockFocusAcrossFrames:g}=_d(),[b,w]=B8();return E.exports.useEffect(()=>{!b&&w&&setTimeout(w)},[b,w]),N(TB,{autoFocus:t,isDisabled:!n,initialFocusRef:o,finalFocusRef:p,restoreFocus:m,contentRef:i,lockFocusAcrossFrames:g,children:N(PB,{removeScrollBar:!v,allowPinchZoom:l,enabled:s,forwardProps:!0,children:e.children},void 0,!1,{fileName:Bo,lineNumber:292,columnNumber:22},this)},void 0,!1,{fileName:Bo,lineNumber:284,columnNumber:26},this)}var Qle={slideInBottom:{...HE,custom:{offsetY:16,reverse:!0}},slideInRight:{...HE,custom:{offsetX:16,reverse:!0}},scale:{...HF,custom:{initialScale:.95,reverse:!0}},none:{}},Jle=$e(ll.section),DB=E.exports.forwardRef((e,t)=>{const{preset:n,...i}=e,o=Qle[n];return N(Jle,{ref:t,...o,...i},void 0,!1,{fileName:Bo,lineNumber:324,columnNumber:26},globalThis)});DB.displayName="ModalTransition";var Nb=qe((e,t)=>{const{className:n,children:i,containerProps:o,...s}=e,{getDialogProps:l,getDialogContainerProps:p}=_d(),m=l(s,t),v=p(o),g=Mm("chakra-modal__content",n),b=Pm(),w={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...b.dialog},C={display:"flex",width:"100vw",height:"100vh","@supports(height: -webkit-fill-available)":{height:"-webkit-fill-available"},position:"fixed",left:0,top:0,...b.dialogContainer},{motionPreset:T}=_d();return Ne.createElement(IB,null,Ne.createElement($e.div,{...v,className:"chakra-modal__content-container",tabIndex:-1,__css:C},N(DB,{preset:T,className:g,...m,__css:w,children:i},void 0,!1,{fileName:Bo,lineNumber:366,columnNumber:22},globalThis)))});Nb.displayName="ModalContent";var _T=qe((e,t)=>{const{className:n,...i}=e,o=Mm("chakra-modal__footer",n),s=Pm(),l={display:"flex",alignItems:"center",justifyContent:"flex-end",...s.footer};return Ne.createElement($e.footer,{ref:t,...i,__css:l,className:o})});_T.displayName="ModalFooter";var TT=qe((e,t)=>{const{className:n,...i}=e,{headerId:o,setHeaderMounted:s}=_d();E.exports.useEffect(()=>(s(!0),()=>s(!1)),[s]);const l=Mm("chakra-modal__header",n),p=Pm(),m={flex:0,...p.header};return Ne.createElement($e.header,{ref:t,className:l,id:o,...i,__css:m})});TT.displayName="ModalHeader";var eue=$e(ll.div),Eb=qe((e,t)=>{const{className:n,transition:i,...o}=e,s=Mm("chakra-modal__overlay",n),l=Pm(),p={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...l.overlay},{motionPreset:m}=_d();return N(eue,{...m==="none"?{}:VF,__css:p,ref:t,className:s,...o},void 0,!1,{fileName:Bo,lineNumber:450,columnNumber:26},globalThis)});Eb.displayName="ModalOverlay";function tue(e){const{leastDestructiveRef:t,...n}=e;return N(Kv,{...n,initialFocusRef:t},void 0,!1,{fileName:Bo,lineNumber:464,columnNumber:26},this)}var nue=qe((e,t)=>N(Nb,{ref:t,role:"alertdialog",...e},void 0,!1,{fileName:Bo,lineNumber:469,columnNumber:70},globalThis)),[w4e,rue]=Or(),iue=$e(WF),aue=qe((e,t)=>{const{className:n,children:i,...o}=e,{getDialogProps:s,getDialogContainerProps:l,isOpen:p}=_d(),m=s(o,t),v=l(),g=Mm("chakra-modal__content",n),b=Pm(),w={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...b.dialog},C={display:"flex",width:"100vw",height:"100vh",position:"fixed",left:0,top:0,...b.dialogContainer},{placement:T}=rue();return Ne.createElement($e.div,{...v,className:"chakra-modal__content-container",__css:C},N(IB,{children:N(iue,{direction:T,in:p,className:g,...m,__css:w,children:i},void 0,!1,{fileName:Bo,lineNumber:547,columnNumber:81},globalThis)},void 0,!1,{fileName:Bo,lineNumber:547,columnNumber:22},globalThis))});aue.displayName="DrawerContent";var $5="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/number-input/node_modules/@chakra-ui/icon/dist/index.esm.js",iP={path:N("g",{stroke:"currentColor",strokeWidth:"1.5",children:[N("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:$5,lineNumber:14,columnNumber:22},globalThis),N("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:$5,lineNumber:18,columnNumber:23},globalThis),N("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"},void 0,!1,{fileName:$5,lineNumber:22,columnNumber:23},globalThis)]},void 0,!0,{fileName:$5,lineNumber:11,columnNumber:25},globalThis),viewBox:"0 0 24 24"},RT=qe((e,t)=>{const{as:n,viewBox:i,color:o="currentColor",focusable:s=!1,children:l,className:p,__css:m,...v}=e,g=yr("chakra-icon",p),b={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...m},w={ref:t,focusable:s,className:g,__css:b},C=i??iP.viewBox;if(n&&typeof n!="string")return Ne.createElement($e.svg,{as:n,...w,...v});const T=l??iP.path;return Ne.createElement($e.svg,{verticalAlign:"middle",viewBox:C,...w,...v},T)});RT.displayName="Icon";function oue(e,t){const n=Ka(e);E.exports.useEffect(()=>{let i=null;const o=()=>n();return t!==null&&(i=window.setInterval(o,t)),()=>{i&&window.clearInterval(i)}},[t,n])}var Td="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/number-input/dist/index.esm.js",$B=(...e)=>e.filter(Boolean).join(" "),b7=e=>e?!0:void 0;function Nu(...e){return function(n){e.some(i=>(i?.(n),n?.defaultPrevented))}}var sue=e=>N(RT,{viewBox:"0 0 24 24",...e,children:N("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:Td,lineNumber:34,columnNumber:20},globalThis)},void 0,!1,{fileName:Td,lineNumber:31,columnNumber:51},globalThis),lue=e=>N(RT,{viewBox:"0 0 24 24",...e,children:N("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:Td,lineNumber:41,columnNumber:20},globalThis)},void 0,!1,{fileName:Td,lineNumber:38,columnNumber:49},globalThis);function aP(e,t,n,i){E.exports.useEffect(()=>{if(!e.current||!i)return;const o=e.current.ownerDocument.defaultView??window,s=Array.isArray(t)?t:[t],l=new o.MutationObserver(p=>{for(const m of p)m.type==="attributes"&&m.attributeName&&s.includes(m.attributeName)&&n(m)});return l.observe(e.current,{attributes:!0,attributeFilter:s}),()=>l.disconnect()})}var uue=50,oP=300;function cue(e,t){const[n,i]=E.exports.useState(!1),[o,s]=E.exports.useState(null),[l,p]=E.exports.useState(!0),m=E.exports.useRef(null),v=()=>clearTimeout(m.current);oue(()=>{o==="increment"&&e(),o==="decrement"&&t()},n?uue:null);const g=E.exports.useCallback(()=>{l&&e(),m.current=setTimeout(()=>{p(!1),i(!0),s("increment")},oP)},[e,l]),b=E.exports.useCallback(()=>{l&&t(),m.current=setTimeout(()=>{p(!1),i(!0),s("decrement")},oP)},[t,l]),w=E.exports.useCallback(()=>{p(!0),i(!1),v()},[]);return E.exports.useEffect(()=>()=>v(),[]),{up:g,down:b,stop:w,isSpinning:n}}var fue=/^[Ee0-9+\-.]$/;function due(e){return fue.test(e)}function pue(e,t){if(e.key==null)return!0;const n=e.ctrlKey||e.altKey||e.metaKey;return!(e.key.length===1)||n?!0:t(e.key)}function mue(e={}){const{focusInputOnChange:t=!0,clampValueOnBlur:n=!0,keepWithinRange:i=!0,min:o=Number.MIN_SAFE_INTEGER,max:s=Number.MAX_SAFE_INTEGER,step:l=1,isReadOnly:p,isDisabled:m,isRequired:v,isInvalid:g,pattern:b="[0-9]*(.[0-9]+)?",inputMode:w="decimal",allowMouseWheel:C,id:T,onChange:R,precision:L,name:D,"aria-describedby":P,"aria-label":I,"aria-labelledby":F,onFocus:z,onBlur:q,onInvalid:Y,getAriaValueText:Q,isValidCharacter:ie,format:ae,parse:me,...ze}=e,te=Ka(z),ee=Ka(q),we=Ka(Y),ye=Ka(ie??due),K=Ka(Q),le=die(e),{update:ge,increment:pe,decrement:Ee}=le,[Oe,Pe]=E.exports.useState(!1),Xe=!(p||m),et=E.exports.useRef(null),at=E.exports.useRef(null),kt=E.exports.useRef(null),He=E.exports.useRef(null),ot=E.exports.useCallback(Ie=>Ie.split("").filter(ye).join(""),[ye]),wt=E.exports.useCallback(Ie=>me?.(Ie)??Ie,[me]),It=E.exports.useCallback(Ie=>(ae?.(Ie)??Ie).toString(),[ae]);XS(()=>{(le.valueAsNumber>s||le.valueAsNumber<o)&&we?.("rangeOverflow",It(le.value),le.valueAsNumber)},[le.valueAsNumber,le.value,It,we]),$u(()=>{if(!et.current)return;if(et.current.value!=le.value){const Zt=wt(et.current.value);le.setValue(ot(Zt))}},[wt,ot]);const We=E.exports.useCallback((Ie=l)=>{Xe&&pe(Ie)},[pe,Xe,l]),Vt=E.exports.useCallback((Ie=l)=>{Xe&&Ee(Ie)},[Ee,Xe,l]),Ce=cue(We,Vt);aP(kt,"disabled",Ce.stop,Ce.isSpinning),aP(He,"disabled",Ce.stop,Ce.isSpinning);const nt=E.exports.useCallback(Ie=>{if(Ie.nativeEvent.isComposing)return;const Tn=wt(Ie.currentTarget.value);ge(ot(Tn)),at.current={start:Ie.currentTarget.selectionStart,end:Ie.currentTarget.selectionEnd}},[ge,ot,wt]),Ct=E.exports.useCallback(Ie=>{var Zt;te?.(Ie),at.current&&(Ie.target.selectionStart=at.current.start??((Zt=Ie.currentTarget.value)==null?void 0:Zt.length),Ie.currentTarget.selectionEnd=at.current.end??Ie.currentTarget.selectionStart)},[te]),rt=E.exports.useCallback(Ie=>{if(Ie.nativeEvent.isComposing)return;pue(Ie,ye)||Ie.preventDefault();const Zt=sn(Ie)*l,Tn=Ie.key,ut={ArrowUp:()=>We(Zt),ArrowDown:()=>Vt(Zt),Home:()=>ge(o),End:()=>ge(s)}[Tn];ut&&(Ie.preventDefault(),ut(Ie))},[ye,l,We,Vt,ge,o,s]),sn=Ie=>{let Zt=1;return(Ie.metaKey||Ie.ctrlKey)&&(Zt=.1),Ie.shiftKey&&(Zt=10),Zt},On=E.exports.useMemo(()=>{const Ie=K?.(le.value);if(Ie!=null)return Ie;const Zt=le.value.toString();return Zt||void 0},[le.value,K]),Tt=E.exports.useCallback(()=>{let Ie=le.value;Ie!==""&&(le.valueAsNumber<o&&(Ie=o),le.valueAsNumber>s&&(Ie=s),le.cast(Ie))},[le,s,o]),ln=E.exports.useCallback(()=>{Pe(!1),n&&Tt()},[n,Pe,Tt]),Mn=E.exports.useCallback(()=>{t&&requestAnimationFrame(()=>{var Ie;(Ie=et.current)==null||Ie.focus()})},[t]),yn=E.exports.useCallback(Ie=>{Ie.preventDefault(),Ce.up(),Mn()},[Mn,Ce]),Ze=E.exports.useCallback(Ie=>{Ie.preventDefault(),Ce.down(),Mn()},[Mn,Ce]);XE(()=>et.current,"wheel",Ie=>{var Zt;const Ge=(((Zt=et.current)==null?void 0:Zt.ownerDocument)??document).activeElement===et.current;if(!C||!Ge)return;Ie.preventDefault();const ut=sn(Ie)*l,At=Math.sign(Ie.deltaY);At===-1?We(ut):At===1&&Vt(ut)},{passive:!1});const tt=E.exports.useCallback((Ie={},Zt=null)=>{const Tn=m||i&&le.isAtMax;return{...Ie,ref:ti(Zt,kt),role:"button",tabIndex:-1,onPointerDown:Nu(Ie.onPointerDown,Ge=>{Tn||yn(Ge)}),onPointerLeave:Nu(Ie.onPointerLeave,Ce.stop),onPointerUp:Nu(Ie.onPointerUp,Ce.stop),disabled:Tn,"aria-disabled":b7(Tn)}},[le.isAtMax,i,yn,Ce.stop,m]),rn=E.exports.useCallback((Ie={},Zt=null)=>{const Tn=m||i&&le.isAtMin;return{...Ie,ref:ti(Zt,He),role:"button",tabIndex:-1,onPointerDown:Nu(Ie.onPointerDown,Ge=>{Tn||Ze(Ge)}),onPointerLeave:Nu(Ie.onPointerLeave,Ce.stop),onPointerUp:Nu(Ie.onPointerUp,Ce.stop),disabled:Tn,"aria-disabled":b7(Tn)}},[le.isAtMin,i,Ze,Ce.stop,m]),Dt=E.exports.useCallback((Ie={},Zt=null)=>({name:D,inputMode:w,type:"text",pattern:b,"aria-labelledby":F,"aria-label":I,"aria-describedby":P,id:T,disabled:m,...Ie,readOnly:Ie.readOnly??p,"aria-readonly":Ie.readOnly??p,"aria-required":Ie.required??v,required:Ie.required??v,ref:ti(et,Zt),value:It(le.value),role:"spinbutton","aria-valuemin":o,"aria-valuemax":s,"aria-valuenow":Number.isNaN(le.valueAsNumber)?void 0:le.valueAsNumber,"aria-invalid":b7(g??le.isOutOfRange),"aria-valuetext":On,autoComplete:"off",autoCorrect:"off",onChange:Nu(Ie.onChange,nt),onKeyDown:Nu(Ie.onKeyDown,rt),onFocus:Nu(Ie.onFocus,Ct,()=>Pe(!0)),onBlur:Nu(Ie.onBlur,ee,ln)}),[D,w,b,F,I,It,P,T,m,v,p,g,le.value,le.valueAsNumber,le.isOutOfRange,o,s,On,nt,rt,Ct,ee,ln]);return{value:It(le.value),valueAsNumber:le.valueAsNumber,isFocused:Oe,isDisabled:m,isReadOnly:p,getIncrementButtonProps:tt,getDecrementButtonProps:rn,getInputProps:Dt,htmlProps:ze}}var[hue,s4]=Or({name:"NumberInputStylesContext",errorMessage:`useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "<NumberInput />" `}),[vue,kT]=Or({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within <NumberInput />"}),FB=qe(function(t,n){const i=So("NumberInput",t),o=gr(t),s=Q8(o),{htmlProps:l,...p}=mue(s),m=E.exports.useMemo(()=>p,[p]);return Ne.createElement(vue,{value:m},Ne.createElement(hue,{value:i},Ne.createElement($e.div,{...l,ref:n,className:$B("chakra-numberinput",t.className),__css:{position:"relative",zIndex:0,...i.root}})))});FB.displayName="NumberInput";var gue=qe(function(t,n){const i=s4();return Ne.createElement($e.div,{"aria-hidden":!0,ref:n,...t,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...i.stepperGroup}})});gue.displayName="NumberInputStepper";var zB=qe(function(t,n){const{getInputProps:i}=kT(),o=i(t,n),s=s4();return Ne.createElement($e.input,{...o,className:$B("chakra-numberinput__field",t.className),__css:{width:"100%",...s.field}})});zB.displayName="NumberInputField";var BB=$e("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),UB=qe(function(t,n){const i=s4(),{getDecrementButtonProps:o}=kT(),s=o(t,n);return N(BB,{...s,__css:i.stepper,children:t.children??N(sue,{},void 0,!1,{fileName:Td,lineNumber:512,columnNumber:40},this)},void 0,!1,{fileName:Td,lineNumber:509,columnNumber:26},this)});UB.displayName="NumberDecrementStepper";var jB=qe(function(t,n){const{getIncrementButtonProps:i}=kT(),o=i(t,n),s=s4();return N(BB,{...o,__css:s.stepper,children:t.children??N(lue,{},void 0,!1,{fileName:Td,lineNumber:522,columnNumber:40},this)},void 0,!1,{fileName:Td,lineNumber:519,columnNumber:26},this)});jB.displayName="NumberIncrementStepper";var r3="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/popover/dist/index.esm.js",Xb=(...e)=>e.filter(Boolean).join(" ");function bue(e,...t){return yue(e)?e(...t):e}var yue=e=>typeof e=="function";function Eu(...e){return function(n){e.some(i=>(i?.(n),n?.defaultPrevented))}}function xue(...e){return function(n){e.forEach(i=>{i?.(n)})}}var[Sue,Im]=Or({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Popover />`"}),[wue,Qb]=Or({name:"PopoverStylesContext",errorMessage:`usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Popover />" `}),vv={click:"click",hover:"hover"};function Cue(e={}){const{closeOnBlur:t=!0,closeOnEsc:n=!0,initialFocusRef:i,id:o,returnFocusOnClose:s=!0,autoFocus:l=!0,arrowSize:p,arrowShadowColor:m,trigger:v=vv.click,openDelay:g=200,closeDelay:b=200,isLazy:w,lazyBehavior:C="unmount",computePositionOnMount:T,...R}=e,{isOpen:L,onClose:D,onOpen:P,onToggle:I}=Vz(e),F=E.exports.useRef(null),z=E.exports.useRef(null),q=E.exports.useRef(null),Y=E.exports.useRef(!1),Q=E.exports.useRef(!1);L&&(Q.current=!0);const[ie,ae]=E.exports.useState(!1),[me,ze]=E.exports.useState(!1),te=E.exports.useId(),ee=o??te,[we,ye,K,le]=["popover-trigger","popover-content","popover-header","popover-body"].map(nt=>`${nt}-${ee}`),{referenceRef:ge,getArrowProps:pe,getPopperProps:Ee,getArrowInnerProps:Oe,forceUpdate:Pe}=jz({...R,enabled:L||!!T}),Xe=vie({isOpen:L,ref:q});wie({enabled:L,ref:z}),xie(q,{focusRef:z,visible:L,shouldFocus:s&&v===vv.click}),Nie(q,{focusRef:i,visible:L,shouldFocus:l&&v===vv.click});const et=Hz({wasSelected:Q.current,enabled:w,mode:C,isSelected:Xe.present}),at=E.exports.useCallback((nt={},Ct=null)=>{const rt={...nt,style:{...nt.style,transformOrigin:Ei.transformOrigin.varRef,[Ei.arrowSize.var]:p?`${p}px`:void 0,[Ei.arrowShadowColor.var]:m},ref:ti(q,Ct),children:et?nt.children:null,id:ye,tabIndex:-1,role:"dialog",onKeyDown:Eu(nt.onKeyDown,sn=>{n&&sn.key==="Escape"&&D()}),onBlur:Eu(nt.onBlur,sn=>{const On=sP(sn),Tt=y7(q.current,On),ln=y7(z.current,On);L&&t&&(!Tt&&!ln)&&D()}),"aria-labelledby":ie?K:void 0,"aria-describedby":me?le:void 0};return v===vv.hover&&(rt.role="tooltip",rt.onMouseEnter=Eu(nt.onMouseEnter,()=>{Y.current=!0}),rt.onMouseLeave=Eu(nt.onMouseLeave,sn=>{sn.nativeEvent.relatedTarget!==null&&(Y.current=!1,setTimeout(D,b))})),rt},[et,ye,ie,K,me,le,v,n,D,L,t,b,m,p]),kt=E.exports.useCallback((nt={},Ct=null)=>Ee({...nt,style:{visibility:L?"visible":"hidden",...nt.style}},Ct),[L,Ee]),He=E.exports.useCallback((nt,Ct=null)=>({...nt,ref:ti(Ct,F,ge)}),[F,ge]),ot=E.exports.useRef(),wt=E.exports.useRef(),It=E.exports.useCallback(nt=>{F.current==null&&ge(nt)},[ge]),We=E.exports.useCallback((nt={},Ct=null)=>{const rt={...nt,ref:ti(z,Ct,It),id:we,"aria-haspopup":"dialog","aria-expanded":L,"aria-controls":ye};return v===vv.click&&(rt.onClick=Eu(nt.onClick,I)),v===vv.hover&&(rt.onFocus=Eu(nt.onFocus,()=>{ot.current===void 0&&P()}),rt.onBlur=Eu(nt.onBlur,sn=>{const On=sP(sn),Tt=!y7(q.current,On);L&&t&&Tt&&D()}),rt.onKeyDown=Eu(nt.onKeyDown,sn=>{sn.key==="Escape"&&D()}),rt.onMouseEnter=Eu(nt.onMouseEnter,()=>{Y.current=!0,ot.current=window.setTimeout(P,g)}),rt.onMouseLeave=Eu(nt.onMouseLeave,()=>{Y.current=!1,ot.current&&(clearTimeout(ot.current),ot.current=void 0),wt.current=window.setTimeout(()=>{Y.current===!1&&D()},b)})),rt},[we,L,ye,v,It,I,P,t,D,g,b]);E.exports.useEffect(()=>()=>{ot.current&&clearTimeout(ot.current),wt.current&&clearTimeout(wt.current)},[]);const Vt=E.exports.useCallback((nt={},Ct=null)=>({...nt,id:K,ref:ti(Ct,rt=>{ae(!!rt)})}),[K]),Ce=E.exports.useCallback((nt={},Ct=null)=>({...nt,id:le,ref:ti(Ct,rt=>{ze(!!rt)})}),[le]);return{forceUpdate:Pe,isOpen:L,onAnimationComplete:Xe.onComplete,onClose:D,getAnchorProps:He,getArrowProps:pe,getArrowInnerProps:Oe,getPopoverPositionerProps:kt,getPopoverProps:at,getTriggerProps:We,getHeaderProps:Vt,getBodyProps:Ce}}function y7(e,t){return e===t||e?.contains(t)}function sP(e){const t=e.currentTarget.ownerDocument.activeElement;return e.relatedTarget??t}function AT(e){const t=So("Popover",e),{children:n,...i}=gr(e),o=P3(),s=Cue({...i,direction:o.direction});return N(Sue,{value:s,children:N(wue,{value:t,children:bue(n,{isOpen:s.isOpen,onClose:s.onClose,forceUpdate:s.forceUpdate})},void 0,!1,{fileName:r3,lineNumber:325,columnNumber:22},this)},void 0,!1,{fileName:r3,lineNumber:323,columnNumber:26},this)}AT.displayName="Popover";function LT(e){const{bg:t,bgColor:n,backgroundColor:i}=e,{getArrowProps:o,getArrowInnerProps:s}=Im(),l=Qb(),p=t??n??i;return Ne.createElement($e.div,{...o(),className:"chakra-popover__arrow-positioner"},Ne.createElement($e.div,{className:Xb("chakra-popover__arrow",e.className),...s(e),__css:{...l.arrow,"--popper-arrow-bg":p?`colors.${p}, ${p}`:void 0}}))}LT.displayName="PopoverArrow";var Nue=qe(function(t,n){const{getBodyProps:i}=Im(),o=Qb();return Ne.createElement($e.div,{...i(t,n),className:Xb("chakra-popover__body",t.className),__css:o.body})});Nue.displayName="PopoverBody";var Eue=qe(function(t,n){const{onClose:i}=Im(),o=Qb();return N(t4,{size:"sm",onClick:i,className:Xb("chakra-popover__close-btn",t.className),__css:o.closeButton,ref:n,...t},void 0,!1,{fileName:r3,lineNumber:384,columnNumber:26},this)});Eue.displayName="PopoverCloseButton";function _ue(e){if(!!e)return{enter:{...e.enter,visibility:"visible"},exit:{...e.exit,transitionEnd:{visibility:"hidden"}}}}var Tue={exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}},Rue=ll($e.section),OT=qe(function(t,n){const{isOpen:i}=Im();return Ne.createElement(Rue,{ref:n,variants:_ue(t.variants),...t,initial:!1,animate:i?"enter":"exit"})});OT.defaultProps={variants:Tue};OT.displayName="PopoverTransition";var MT=qe(function(t,n){const{rootProps:i,...o}=t,{getPopoverProps:s,getPopoverPositionerProps:l,onAnimationComplete:p}=Im(),m=Qb(),v={position:"relative",display:"flex",flexDirection:"column",...m.content};return Ne.createElement($e.div,{...l(i),__css:m.popper,className:"chakra-popover__popper"},N(OT,{...s(o,n),onAnimationComplete:xue(p,o.onAnimationComplete),className:Xb("chakra-popover__content",t.className),__css:v},void 0,!1,{fileName:r3,lineNumber:470,columnNumber:22},this))});MT.displayName="PopoverContent";var VB=qe(function(t,n){const{getHeaderProps:i}=Im(),o=Qb();return Ne.createElement($e.header,{...i(t,n),className:Xb("chakra-popover__header",t.className),__css:o.header})});VB.displayName="PopoverHeader";function PT(e){const t=E.exports.Children.only(e.children),{getTriggerProps:n}=Im();return E.exports.cloneElement(t,n(t.props,t.ref))}PT.displayName="PopoverTrigger";var lP="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/progress/dist/index.esm.js";function kue(e,t,n){return(e-t)*100/(n-t)}$b({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}});$b({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});var Aue=$b({"0%":{left:"-40%"},"100%":{left:"100%"}}),Lue=$b({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function Oue(e){const{value:t=0,min:n,max:i,valueText:o,getValueText:s,isIndeterminate:l}=e,p=kue(t,n,i);return{bind:{"data-indeterminate":l?"":void 0,"aria-valuemax":i,"aria-valuemin":n,"aria-valuenow":l?void 0:t,"aria-valuetext":(()=>{if(t!=null)return typeof s=="function"?s(t,p):o})(),role:"progressbar"},percent:p,value:t}}var[Mue,Pue]=Or({name:"ProgressStylesContext",errorMessage:`useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Progress />" `}),Iue=e=>{const{min:t,max:n,value:i,isIndeterminate:o,...s}=e,l=Oue({value:i,min:t,max:n,isIndeterminate:o}),p=Pue(),m={height:"100%",...p.filledTrack};return Ne.createElement($e.div,{style:{width:`${l.percent}%`,...s.style},...l.bind,...s,__css:m})},HB=e=>{var t;const{value:n,min:i=0,max:o=100,hasStripe:s,isAnimated:l,children:p,borderRadius:m,isIndeterminate:v,"aria-label":g,"aria-labelledby":b,...w}=gr(e),C=So("Progress",e),T=m??((t=C.track)==null?void 0:t.borderRadius),R={animation:`${Lue} 1s linear infinite`},P={...!v&&s&&l&&R,...v&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${Aue} 1s ease infinite normal none running`}},I={overflow:"hidden",position:"relative",...C.track};return Ne.createElement($e.div,{borderRadius:T,__css:I,...w},N(Mue,{value:C,children:[N(Iue,{"aria-label":g,"aria-labelledby":b,min:i,max:o,value:n,isIndeterminate:v,css:P,borderRadius:T},void 0,!1,{fileName:lP,lineNumber:232,columnNumber:22},globalThis),p]},void 0,!0,{fileName:lP,lineNumber:230,columnNumber:22},globalThis))};HB.displayName="Progress";var Due=$e("div",{baseStyle:{fontSize:"0.24em",top:"50%",left:"50%",width:"100%",textAlign:"center",position:"absolute",transform:"translate(-50%, -50%)"}});Due.displayName="CircularProgressLabel";var Em="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/select/dist/index.esm.js",$ue=(...e)=>e.filter(Boolean).join(" "),Fue=e=>e?"":void 0;function zue(e,t){const n={},i={};for(const[o,s]of Object.entries(e))t.includes(o)?n[o]=s:i[o]=s;return[n,i]}var WB=qe(function(t,n){const{children:i,placeholder:o,className:s,...l}=t;return Ne.createElement($e.select,{...l,ref:n,className:$ue("chakra-select",s)},o&&N("option",{value:"",children:o},void 0,!1,{fileName:Em,lineNumber:42,columnNumber:37},this),i)});WB.displayName="SelectField";var GB=qe((e,t)=>{var n;const i=So("Select",e),{rootProps:o,placeholder:s,icon:l,color:p,height:m,h:v,minH:g,minHeight:b,iconColor:w,iconSize:C,...T}=gr(e),[R,L]=zue(T,vZ),D=X8(L),P={width:"100%",height:"fit-content",position:"relative",color:p},I={paddingEnd:"2rem",...i.field,_focus:{zIndex:"unset",...(n=i.field)==null?void 0:n._focus}};return Ne.createElement($e.div,{className:"chakra-select__wrapper",__css:P,...R,...o},N(WB,{ref:t,height:v??m,minH:g??b,placeholder:s,...D,__css:I,children:e.children},void 0,!1,{fileName:Em,lineNumber:86,columnNumber:22},globalThis),N(YB,{"data-disabled":Fue(D.disabled),...(w||p)&&{color:w||p},__css:i.icon,...C&&{fontSize:C},children:l},void 0,!1,{fileName:Em,lineNumber:93,columnNumber:39},globalThis))});GB.displayName="Select";var Bue=e=>N("svg",{viewBox:"0 0 24 24",...e,children:N("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"},void 0,!1,{fileName:Em,lineNumber:104,columnNumber:20},globalThis)},void 0,!1,{fileName:Em,lineNumber:101,columnNumber:46},globalThis),Uue=$e("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),YB=e=>{const{children:t=N(Bue,{},void 0,!1,{fileName:Em,lineNumber:120,columnNumber:38},globalThis),...n}=e,i=E.exports.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return N(Uue,{...n,className:"chakra-select__icon-wrapper",children:E.exports.isValidElement(t)?i:null},void 0,!1,{fileName:Em,lineNumber:132,columnNumber:26},globalThis)};YB.displayName="SelectIcon";var jue="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/switch/dist/index.esm.js",Vue=(...e)=>e.filter(Boolean).join(" "),uP=e=>e?"":void 0,l4=qe(function(t,n){const i=So("Switch",t),{spacing:o="0.5rem",children:s,...l}=gr(t),{state:p,getInputProps:m,getCheckboxProps:v,getRootProps:g,getLabelProps:b}=uz(l),w=E.exports.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...i.container}),[i.container]),C=E.exports.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...i.track}),[i.track]),T=E.exports.useMemo(()=>({userSelect:"none",marginStart:o,...i.label}),[o,i.label]);return Ne.createElement($e.label,{...g(),className:Vue("chakra-switch",t.className),__css:w},N("input",{className:"chakra-switch__input",...m({},n)},void 0,!1,{fileName:jue,lineNumber:53,columnNumber:22},this),Ne.createElement($e.span,{...v(),className:"chakra-switch__track",__css:C},Ne.createElement($e.span,{__css:i.thumb,className:"chakra-switch__thumb","data-checked":uP(p.isChecked),"data-hover":uP(p.isHovered)})),s&&Ne.createElement($e.span,{className:"chakra-switch__label",...b(),__css:T},s))});l4.displayName="Switch";var s0=(...e)=>e.filter(Boolean).join(" ");function d_(...e){return function(n){e.some(i=>(i?.(n),n?.defaultPrevented))}}var[Hue,qB,Wue,Gue]=m$();function Yue(e){const{defaultIndex:t,onChange:n,index:i,isManual:o,isLazy:s,lazyBehavior:l="unmount",orientation:p="horizontal",direction:m="ltr",...v}=e,[g,b]=E.exports.useState(t??0),[w,C]=v$({defaultValue:t??0,value:i,onChange:n});E.exports.useEffect(()=>{i!=null&&b(i)},[i]);const T=Wue(),R=E.exports.useId();return{id:`tabs-${e.id??R}`,selectedIndex:w,focusedIndex:g,setSelectedIndex:C,setFocusedIndex:b,isManual:o,isLazy:s,lazyBehavior:l,orientation:p,descendants:T,direction:m,htmlProps:v}}var[que,Jb]=Or({name:"TabsContext",errorMessage:"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within <Tabs />"});function Zue(e){const{focusedIndex:t,orientation:n,direction:i}=Jb(),o=qB(),s=E.exports.useCallback(l=>{const p=()=>{var P;const I=o.nextEnabled(t);I&&((P=I.node)==null||P.focus())},m=()=>{var P;const I=o.prevEnabled(t);I&&((P=I.node)==null||P.focus())},v=()=>{var P;const I=o.firstEnabled();I&&((P=I.node)==null||P.focus())},g=()=>{var P;const I=o.lastEnabled();I&&((P=I.node)==null||P.focus())},b=n==="horizontal",w=n==="vertical",C=l.key,T=i==="ltr"?"ArrowLeft":"ArrowRight",R=i==="ltr"?"ArrowRight":"ArrowLeft",D={[T]:()=>b&&m(),[R]:()=>b&&p(),ArrowDown:()=>w&&p(),ArrowUp:()=>w&&m(),Home:v,End:g}[C];D&&(l.preventDefault(),D(l))},[o,t,n,i]);return{...e,role:"tablist","aria-orientation":n,onKeyDown:d_(e.onKeyDown,s)}}function Kue(e){const{isDisabled:t,isFocusable:n,...i}=e,{setSelectedIndex:o,isManual:s,id:l,setFocusedIndex:p,selectedIndex:m}=Jb(),{index:v,register:g}=Gue({disabled:t&&!n}),b=v===m,w=()=>{o(v)},C=()=>{p(v),!s&&!(t&&n)&&o(v)},T=sae({...i,ref:ti(g,e.ref),isDisabled:t,isFocusable:n,onClick:d_(e.onClick,w)}),R="button";return{...T,id:ZB(l,v),role:"tab",tabIndex:b?0:-1,type:R,"aria-selected":b,"aria-controls":KB(l,v),onFocus:t?void 0:d_(e.onFocus,C)}}var[Xue,Que]=Or({});function Jue(e){const t=Jb(),{id:n,selectedIndex:i}=t,s=Q3(e.children).map((l,p)=>E.exports.createElement(Xue,{key:p,value:{isSelected:p===i,id:KB(n,p),tabId:ZB(n,p),selectedIndex:i}},l));return{...e,children:s}}function ece(e){const{children:t,...n}=e,{isLazy:i,lazyBehavior:o}=Jb(),{isSelected:s,id:l,tabId:p}=Que(),m=E.exports.useRef(!1);s&&(m.current=!0);const v=Hz({wasSelected:m.current,isSelected:s,enabled:i,mode:o});return{tabIndex:0,...n,children:v?t:null,role:"tabpanel","aria-labelledby":p,hidden:!s,id:l}}function tce(){const e=Jb(),t=qB(),{selectedIndex:n,orientation:i}=e,o=i==="horizontal",s=i==="vertical",[l,p]=E.exports.useState(()=>{if(o)return{left:0,width:0};if(s)return{top:0,height:0}}),[m,v]=E.exports.useState(!1);return $u(()=>{if(n==null)return;const g=t.item(n);if(g==null)return;o&&p({left:g.node.offsetLeft,width:g.node.offsetWidth}),s&&p({top:g.node.offsetTop,height:g.node.offsetHeight});const b=requestAnimationFrame(()=>{v(!0)});return()=>{b&&cancelAnimationFrame(b)}},[n,o,s,t]),{position:"absolute",transitionProperty:"left, right, top, bottom, height, width",transitionDuration:m?"200ms":"0ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)",...l}}function ZB(e,t){return`${e}--tab-${t}`}function KB(e,t){return`${e}--tabpanel-${t}`}var[nce,ey]=Or({name:"TabsStylesContext",errorMessage:`useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Tabs />" `}),XB=qe(function(t,n){const i=So("Tabs",t),{children:o,className:s,...l}=gr(t),{htmlProps:p,descendants:m,...v}=Yue(l),g=E.exports.useMemo(()=>v,[v]),{isFitted:b,...w}=p;return Ne.createElement(Hue,{value:m},Ne.createElement(que,{value:g},Ne.createElement(nce,{value:i},Ne.createElement($e.div,{className:s0("chakra-tabs",s),ref:n,...w,__css:i.root},o))))});XB.displayName="Tabs";var rce=qe(function(t,n){const i=tce(),o={...t.style,...i},s=ey();return Ne.createElement($e.div,{ref:n,...t,className:s0("chakra-tabs__tab-indicator",t.className),style:o,__css:s.indicator})});rce.displayName="TabIndicator";var ice=qe(function(t,n){const i=Zue({...t,ref:n}),o=ey(),s={display:"flex",...o.tablist};return Ne.createElement($e.div,{...i,className:s0("chakra-tabs__tablist",t.className),__css:s})});ice.displayName="TabList";var QB=qe(function(t,n){const i=ece({...t,ref:n}),o=ey();return Ne.createElement($e.div,{outline:"0",...i,className:s0("chakra-tabs__tab-panel",t.className),__css:o.tabpanel})});QB.displayName="TabPanel";var JB=qe(function(t,n){const i=Jue(t),o=ey();return Ne.createElement($e.div,{...i,width:"100%",ref:n,className:s0("chakra-tabs__tab-panels",t.className),__css:o.tabpanels})});JB.displayName="TabPanels";var eU=qe(function(t,n){const i=ey(),o=Kue({...t,ref:n}),s={outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...i.tab};return Ne.createElement($e.button,{...o,className:s0("chakra-tabs__tab",t.className),__css:s})});eU.displayName="Tab";var ace=(...e)=>e.filter(Boolean).join(" ");function oce(e,t=[]){const n=Object.assign({},e);for(const i of t)i in n&&delete n[i];return n}var sce=["h","minH","height","minHeight"],tU=qe((e,t)=>{const n=xo("Textarea",e),{className:i,rows:o,...s}=gr(e),l=X8(s),p=o?oce(n,sce):n;return Ne.createElement($e.textarea,{ref:t,rows:o,...l,className:ace("chakra-textarea",i),__css:p})});tU.displayName="Textarea";function vr(e,t={}){let n=!1;function i(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...g){i();for(const b of g)t[b]=m(b);return vr(e,t)}function s(...g){for(const b of g)b in t||(t[b]=m(b));return vr(e,t)}function l(){return Object.fromEntries(Object.entries(t).map(([b,w])=>[b,w.selector]))}function p(){return Object.fromEntries(Object.entries(t).map(([b,w])=>[b,w.className]))}function m(g){const C=`chakra-${(["container","root"].includes(g??"")?[e]:[e,g]).filter(Boolean).join("__")}`;return{className:C,selector:`.${C}`,toString:()=>g}}return{parts:o,toPart:m,extend:s,selectors:l,classnames:p,get keys(){return Object.keys(t)},__type:{}}}var lce=vr("accordion").parts("root","container","button","panel").extend("icon"),uce=vr("alert").parts("title","description","container").extend("icon","spinner"),cce=vr("avatar").parts("label","badge","container").extend("excessLabel","group"),fce=vr("breadcrumb").parts("link","item","container").extend("separator");vr("button").parts();var dce=vr("checkbox").parts("control","icon","container").extend("label");vr("progress").parts("track","filledTrack").extend("label");var pce=vr("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),mce=vr("editable").parts("preview","input","textarea"),hce=vr("form").parts("container","requiredIndicator","helperText"),vce=vr("formError").parts("text","icon"),gce=vr("input").parts("addon","field","element"),bce=vr("list").parts("container","item","icon"),yce=vr("menu").parts("button","list","item").extend("groupTitle","command","divider"),xce=vr("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),Sce=vr("numberinput").parts("root","field","stepperGroup","stepper");vr("pininput").parts("field");var wce=vr("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),Cce=vr("progress").parts("label","filledTrack","track"),Nce=vr("radio").parts("container","control","label"),Ece=vr("select").parts("field","icon"),_ce=vr("slider").parts("container","track","thumb","filledTrack","mark"),Tce=vr("stat").parts("container","label","helpText","number","icon"),Rce=vr("switch").parts("container","track","thumb"),kce=vr("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),Ace=vr("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),Lce=vr("tag").parts("container","label","closeButton");function nU(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}var Oce=e=>/!(important)?$/.test(e),cP=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,Mce=(e,t)=>n=>{const i=String(t),o=Oce(i),s=cP(i),l=e?`${e}.${s}`:s;let p=nU(n.__cssMap)&&l in n.__cssMap?n.__cssMap[l].varRef:t;return p=cP(p),o?`${p} !important`:p};function _b(e){const{scale:t,transform:n,compose:i}=e;return(s,l)=>{const p=Mce(t,s)(l);let m=n?.(p,l)??p;return i&&(m=i(m,l)),m}}var F5=(...e)=>t=>e.reduce((n,i)=>i(n),t);function Vl(e,t){return n=>{const i={property:n,scale:e};return i.transform=_b({scale:e,transform:t}),i}}var Pce=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function Ice(e){const{property:t,scale:n,transform:i}=e;return{scale:n,property:Pce(t),transform:n?_b({scale:n,compose:i}):i}}var rU=["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 Dce(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...rU].join(" ")}function $ce(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...rU].join(" ")}var Fce={"--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(" ")},zce={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 Bce(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 Uce={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},iU="& > :not(style) ~ :not(style)",jce={[iU]:{marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"}},Vce={[iU]:{marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"}},p_={"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"},Hce=new Set(Object.values(p_)),aU=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Wce=e=>e.trim();function Gce(e,t){var n;if(e==null||aU.has(e))return e;const i=/(?<type>^[a-z-A-Z]+)\((?<values>(.*))\)/g,{type:o,values:s}=((n=i.exec(e))==null?void 0:n.groups)??{};if(!o||!s)return e;const l=o.includes("-gradient")?o:`${o}-gradient`,[p,...m]=s.split(",").map(Wce).filter(Boolean);if(m?.length===0)return e;const v=p in p_?p_[p]:p;m.unshift(v);const g=m.map(b=>{if(Hce.has(b))return b;const w=b.indexOf(" "),[C,T]=w!==-1?[b.substr(0,w),b.substr(w+1)]:[b],R=oU(T)?T:T&&T.split(" "),L=`colors.${C}`,D=L in t.__cssMap?t.__cssMap[L].varRef:C;return R?[D,...Array.isArray(R)?R:[R]].join(" "):D});return`${l}(${g.join(", ")})`}var oU=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),Yce=(e,t)=>Gce(e,t??{});function qce(e){return/^var\(--.+\)$/.test(e)}var Zce=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},_u=e=>t=>`${e}(${t})`,Qn={filter(e){return e!=="auto"?e:Fce},backdropFilter(e){return e!=="auto"?e:zce},ring(e){return Bce(Qn.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?Dce():e==="auto-gpu"?$ce():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=Zce(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(qce(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:Yce,blur:_u("blur"),opacity:_u("opacity"),brightness:_u("brightness"),contrast:_u("contrast"),dropShadow:_u("drop-shadow"),grayscale:_u("grayscale"),hueRotate:_u("hue-rotate"),invert:_u("invert"),saturate:_u("saturate"),sepia:_u("sepia"),bgImage(e){return e==null||oU(e)||aU.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:n}=Uce[e]??{},i={flexDirection:e};return t&&(i[t]=1),n&&(i[n]=1),i}},ce={borderWidths:Vl("borderWidths"),borderStyles:Vl("borderStyles"),colors:Vl("colors"),borders:Vl("borders"),radii:Vl("radii",Qn.px),space:Vl("space",F5(Qn.vh,Qn.px)),spaceT:Vl("space",F5(Qn.vh,Qn.px)),degreeT(e){return{property:e,transform:Qn.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:_b({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:Vl("sizes",F5(Qn.vh,Qn.px)),sizesT:Vl("sizes",F5(Qn.vh,Qn.fraction)),shadows:Vl("shadows"),logical:Ice,blur:Vl("blur",Qn.blur)},vS={background:ce.colors("background"),backgroundColor:ce.colors("backgroundColor"),backgroundImage:ce.propT("backgroundImage",Qn.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Qn.bgClip},bgSize:ce.prop("backgroundSize"),bgPosition:ce.prop("backgroundPosition"),bg:ce.colors("background"),bgColor:ce.colors("backgroundColor"),bgPos:ce.prop("backgroundPosition"),bgRepeat:ce.prop("backgroundRepeat"),bgAttachment:ce.prop("backgroundAttachment"),bgGradient:ce.propT("backgroundImage",Qn.gradient),bgClip:{transform:Qn.bgClip}};Object.assign(vS,{bgImage:vS.backgroundImage,bgImg:vS.backgroundImage});var ar={border:ce.borders("border"),borderWidth:ce.borderWidths("borderWidth"),borderStyle:ce.borderStyles("borderStyle"),borderColor:ce.colors("borderColor"),borderRadius:ce.radii("borderRadius"),borderTop:ce.borders("borderTop"),borderBlockStart:ce.borders("borderBlockStart"),borderTopLeftRadius:ce.radii("borderTopLeftRadius"),borderStartStartRadius:ce.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:ce.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:ce.radii("borderTopRightRadius"),borderStartEndRadius:ce.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:ce.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:ce.borders("borderRight"),borderInlineEnd:ce.borders("borderInlineEnd"),borderBottom:ce.borders("borderBottom"),borderBlockEnd:ce.borders("borderBlockEnd"),borderBottomLeftRadius:ce.radii("borderBottomLeftRadius"),borderBottomRightRadius:ce.radii("borderBottomRightRadius"),borderLeft:ce.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:ce.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:ce.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:ce.borders(["borderLeft","borderRight"]),borderInline:ce.borders("borderInline"),borderY:ce.borders(["borderTop","borderBottom"]),borderBlock:ce.borders("borderBlock"),borderTopWidth:ce.borderWidths("borderTopWidth"),borderBlockStartWidth:ce.borderWidths("borderBlockStartWidth"),borderTopColor:ce.colors("borderTopColor"),borderBlockStartColor:ce.colors("borderBlockStartColor"),borderTopStyle:ce.borderStyles("borderTopStyle"),borderBlockStartStyle:ce.borderStyles("borderBlockStartStyle"),borderBottomWidth:ce.borderWidths("borderBottomWidth"),borderBlockEndWidth:ce.borderWidths("borderBlockEndWidth"),borderBottomColor:ce.colors("borderBottomColor"),borderBlockEndColor:ce.colors("borderBlockEndColor"),borderBottomStyle:ce.borderStyles("borderBottomStyle"),borderBlockEndStyle:ce.borderStyles("borderBlockEndStyle"),borderLeftWidth:ce.borderWidths("borderLeftWidth"),borderInlineStartWidth:ce.borderWidths("borderInlineStartWidth"),borderLeftColor:ce.colors("borderLeftColor"),borderInlineStartColor:ce.colors("borderInlineStartColor"),borderLeftStyle:ce.borderStyles("borderLeftStyle"),borderInlineStartStyle:ce.borderStyles("borderInlineStartStyle"),borderRightWidth:ce.borderWidths("borderRightWidth"),borderInlineEndWidth:ce.borderWidths("borderInlineEndWidth"),borderRightColor:ce.colors("borderRightColor"),borderInlineEndColor:ce.colors("borderInlineEndColor"),borderRightStyle:ce.borderStyles("borderRightStyle"),borderInlineEndStyle:ce.borderStyles("borderInlineEndStyle"),borderTopRadius:ce.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:ce.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:ce.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:ce.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(ar,{rounded:ar.borderRadius,roundedTop:ar.borderTopRadius,roundedTopLeft:ar.borderTopLeftRadius,roundedTopRight:ar.borderTopRightRadius,roundedTopStart:ar.borderStartStartRadius,roundedTopEnd:ar.borderStartEndRadius,roundedBottom:ar.borderBottomRadius,roundedBottomLeft:ar.borderBottomLeftRadius,roundedBottomRight:ar.borderBottomRightRadius,roundedBottomStart:ar.borderEndStartRadius,roundedBottomEnd:ar.borderEndEndRadius,roundedLeft:ar.borderLeftRadius,roundedRight:ar.borderRightRadius,roundedStart:ar.borderInlineStartRadius,roundedEnd:ar.borderInlineEndRadius,borderStart:ar.borderInlineStart,borderEnd:ar.borderInlineEnd,borderTopStartRadius:ar.borderStartStartRadius,borderTopEndRadius:ar.borderStartEndRadius,borderBottomStartRadius:ar.borderEndStartRadius,borderBottomEndRadius:ar.borderEndEndRadius,borderStartRadius:ar.borderInlineStartRadius,borderEndRadius:ar.borderInlineEndRadius,borderStartWidth:ar.borderInlineStartWidth,borderEndWidth:ar.borderInlineEndWidth,borderStartColor:ar.borderInlineStartColor,borderEndColor:ar.borderInlineEndColor,borderStartStyle:ar.borderInlineStartStyle,borderEndStyle:ar.borderInlineEndStyle});var Kce={color:ce.colors("color"),textColor:ce.colors("color"),fill:ce.colors("fill"),stroke:ce.colors("stroke")},m_={boxShadow:ce.shadows("boxShadow"),mixBlendMode:!0,blendMode:ce.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:ce.prop("backgroundBlendMode"),opacity:!0};Object.assign(m_,{shadow:m_.boxShadow});var Xce={filter:{transform:Qn.filter},blur:ce.blur("--chakra-blur"),brightness:ce.propT("--chakra-brightness",Qn.brightness),contrast:ce.propT("--chakra-contrast",Qn.contrast),hueRotate:ce.degreeT("--chakra-hue-rotate"),invert:ce.propT("--chakra-invert",Qn.invert),saturate:ce.propT("--chakra-saturate",Qn.saturate),dropShadow:ce.propT("--chakra-drop-shadow",Qn.dropShadow),backdropFilter:{transform:Qn.backdropFilter},backdropBlur:ce.blur("--chakra-backdrop-blur"),backdropBrightness:ce.propT("--chakra-backdrop-brightness",Qn.brightness),backdropContrast:ce.propT("--chakra-backdrop-contrast",Qn.contrast),backdropHueRotate:ce.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:ce.propT("--chakra-backdrop-invert",Qn.invert),backdropSaturate:ce.propT("--chakra-backdrop-saturate",Qn.saturate)},i3={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Qn.flexDirection},experimental_spaceX:{static:jce,transform:_b({scale:"space",transform:e=>e!==null?{"--chakra-space-x":e}:null})},experimental_spaceY:{static:Vce,transform:_b({scale:"space",transform:e=>e!=null?{"--chakra-space-y":e}:null})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:ce.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:ce.space("gap"),rowGap:ce.space("rowGap"),columnGap:ce.space("columnGap")};Object.assign(i3,{flexDir:i3.flexDirection});var sU={gridGap:ce.space("gridGap"),gridColumnGap:ce.space("gridColumnGap"),gridRowGap:ce.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},Qce={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Qn.outline},outlineOffset:!0,outlineColor:ce.colors("outlineColor")},tl={width:ce.sizesT("width"),inlineSize:ce.sizesT("inlineSize"),height:ce.sizes("height"),blockSize:ce.sizes("blockSize"),boxSize:ce.sizes(["width","height"]),minWidth:ce.sizes("minWidth"),minInlineSize:ce.sizes("minInlineSize"),minHeight:ce.sizes("minHeight"),minBlockSize:ce.sizes("minBlockSize"),maxWidth:ce.sizes("maxWidth"),maxInlineSize:ce.sizes("maxInlineSize"),maxHeight:ce.sizes("maxHeight"),maxBlockSize:ce.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:ce.propT("float",Qn.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(tl,{w:tl.width,h:tl.height,minW:tl.minWidth,maxW:tl.maxWidth,minH:tl.minHeight,maxH:tl.maxHeight,overscroll:tl.overscrollBehavior,overscrollX:tl.overscrollBehaviorX,overscrollY:tl.overscrollBehaviorY});var Jce={listStyleType:!0,listStylePosition:!0,listStylePos:ce.prop("listStylePosition"),listStyleImage:!0,listStyleImg:ce.prop("listStyleImage")};function efe(e,t,n,i){const o=typeof t=="string"?t.split("."):[t];for(i=0;i<o.length&&e;i+=1)e=e[o[i]];return e===void 0?n:e}var tfe=e=>{const t=new WeakMap;return(i,o,s,l)=>{if(typeof i>"u")return e(i,o,s);t.has(i)||t.set(i,new Map);const p=t.get(i);if(p.has(o))return p.get(o);const m=e(i,o,s,l);return p.set(o,m),m}},nfe=tfe(efe),rfe={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},ife={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},x7=(e,t,n)=>{const i={},o=nfe(e,t,{});for(const s in o)s in n&&n[s]!=null||(i[s]=o[s]);return i},afe={srOnly:{transform(e){return e===!0?rfe:e==="focusable"?ife:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>x7(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>x7(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>x7(t,e,n)}},tb={position:!0,pos:ce.prop("position"),zIndex:ce.prop("zIndex","zIndices"),inset:ce.spaceT("inset"),insetX:ce.spaceT(["left","right"]),insetInline:ce.spaceT("insetInline"),insetY:ce.spaceT(["top","bottom"]),insetBlock:ce.spaceT("insetBlock"),top:ce.spaceT("top"),insetBlockStart:ce.spaceT("insetBlockStart"),bottom:ce.spaceT("bottom"),insetBlockEnd:ce.spaceT("insetBlockEnd"),left:ce.spaceT("left"),insetInlineStart:ce.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:ce.spaceT("right"),insetInlineEnd:ce.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(tb,{insetStart:tb.insetInlineStart,insetEnd:tb.insetInlineEnd});var ofe={ring:{transform:Qn.ring},ringColor:ce.colors("--chakra-ring-color"),ringOffset:ce.prop("--chakra-ring-offset-width"),ringOffsetColor:ce.colors("--chakra-ring-offset-color"),ringInset:ce.prop("--chakra-ring-inset")},Fr={margin:ce.spaceT("margin"),marginTop:ce.spaceT("marginTop"),marginBlockStart:ce.spaceT("marginBlockStart"),marginRight:ce.spaceT("marginRight"),marginInlineEnd:ce.spaceT("marginInlineEnd"),marginBottom:ce.spaceT("marginBottom"),marginBlockEnd:ce.spaceT("marginBlockEnd"),marginLeft:ce.spaceT("marginLeft"),marginInlineStart:ce.spaceT("marginInlineStart"),marginX:ce.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:ce.spaceT("marginInline"),marginY:ce.spaceT(["marginTop","marginBottom"]),marginBlock:ce.spaceT("marginBlock"),padding:ce.space("padding"),paddingTop:ce.space("paddingTop"),paddingBlockStart:ce.space("paddingBlockStart"),paddingRight:ce.space("paddingRight"),paddingBottom:ce.space("paddingBottom"),paddingBlockEnd:ce.space("paddingBlockEnd"),paddingLeft:ce.space("paddingLeft"),paddingInlineStart:ce.space("paddingInlineStart"),paddingInlineEnd:ce.space("paddingInlineEnd"),paddingX:ce.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:ce.space("paddingInline"),paddingY:ce.space(["paddingTop","paddingBottom"]),paddingBlock:ce.space("paddingBlock")};Object.assign(Fr,{m:Fr.margin,mt:Fr.marginTop,mr:Fr.marginRight,me:Fr.marginInlineEnd,marginEnd:Fr.marginInlineEnd,mb:Fr.marginBottom,ml:Fr.marginLeft,ms:Fr.marginInlineStart,marginStart:Fr.marginInlineStart,mx:Fr.marginX,my:Fr.marginY,p:Fr.padding,pt:Fr.paddingTop,py:Fr.paddingY,px:Fr.paddingX,pb:Fr.paddingBottom,pl:Fr.paddingLeft,ps:Fr.paddingInlineStart,paddingStart:Fr.paddingInlineStart,pr:Fr.paddingRight,pe:Fr.paddingInlineEnd,paddingEnd:Fr.paddingInlineEnd});var sfe={textDecorationColor:ce.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:ce.shadows("textShadow")},lfe={clipPath:!0,transform:ce.propT("transform",Qn.transform),transformOrigin:!0,translateX:ce.spaceT("--chakra-translate-x"),translateY:ce.spaceT("--chakra-translate-y"),skewX:ce.degreeT("--chakra-skew-x"),skewY:ce.degreeT("--chakra-skew-y"),scaleX:ce.prop("--chakra-scale-x"),scaleY:ce.prop("--chakra-scale-y"),scale:ce.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:ce.degreeT("--chakra-rotate")},ufe={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:ce.prop("transitionDuration","transition.duration"),transitionProperty:ce.prop("transitionProperty","transition.property"),transitionTimingFunction:ce.prop("transitionTimingFunction","transition.easing")},cfe={fontFamily:ce.prop("fontFamily","fonts"),fontSize:ce.prop("fontSize","fontSizes",Qn.px),fontWeight:ce.prop("fontWeight","fontWeights"),lineHeight:ce.prop("lineHeight","lineHeights"),letterSpacing:ce.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"}},ffe={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:ce.spaceT("scrollMargin"),scrollMarginTop:ce.spaceT("scrollMarginTop"),scrollMarginBottom:ce.spaceT("scrollMarginBottom"),scrollMarginLeft:ce.spaceT("scrollMarginLeft"),scrollMarginRight:ce.spaceT("scrollMarginRight"),scrollMarginX:ce.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:ce.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:ce.spaceT("scrollPadding"),scrollPaddingTop:ce.spaceT("scrollPaddingTop"),scrollPaddingBottom:ce.spaceT("scrollPaddingBottom"),scrollPaddingLeft:ce.spaceT("scrollPaddingLeft"),scrollPaddingRight:ce.spaceT("scrollPaddingRight"),scrollPaddingX:ce.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:ce.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function lU(e){return nU(e)&&e.reference?e.reference:String(e)}var u4=(e,...t)=>t.map(lU).join(` ${e} `).replace(/calc/g,""),fP=(...e)=>`calc(${u4("+",...e)})`,dP=(...e)=>`calc(${u4("-",...e)})`,h_=(...e)=>`calc(${u4("*",...e)})`,pP=(...e)=>`calc(${u4("/",...e)})`,mP=e=>{const t=lU(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:h_(t,-1)},Lg=Object.assign(e=>({add:(...t)=>Lg(fP(e,...t)),subtract:(...t)=>Lg(dP(e,...t)),multiply:(...t)=>Lg(h_(e,...t)),divide:(...t)=>Lg(pP(e,...t)),negate:()=>Lg(mP(e)),toString:()=>e.toString()}),{add:fP,subtract:dP,multiply:h_,divide:pP,negate:mP});function dfe(e,t="-"){return e.replace(/\s+/g,t)}function pfe(e){const t=dfe(e.toString());return hfe(mfe(t))}function mfe(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function hfe(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function vfe(e,t=""){return[t,e].filter(Boolean).join("-")}function gfe(e,t){return`var(${e}${t?`, ${t}`:""})`}function bfe(e,t=""){return pfe(`--${vfe(e,t)}`)}function Dm(e,t,n){const i=bfe(e,n);return{variable:i,reference:gfe(i,t)}}var Na={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}`},ad=e=>uU(t=>e(t,"&"),"[role=group]","[data-group]",".group"),$c=e=>uU(t=>e(t,"~ &"),"[data-peer]",".peer"),uU=(e,...t)=>t.map(e).join(", "),cU={_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, &[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:ad(Na.hover),_peerHover:$c(Na.hover),_groupFocus:ad(Na.focus),_peerFocus:$c(Na.focus),_groupFocusVisible:ad(Na.focusVisible),_peerFocusVisible:$c(Na.focusVisible),_groupActive:ad(Na.active),_peerActive:$c(Na.active),_groupDisabled:ad(Na.disabled),_peerDisabled:$c(Na.disabled),_groupInvalid:ad(Na.invalid),_peerInvalid:$c(Na.invalid),_groupChecked:ad(Na.checked),_peerChecked:$c(Na.checked),_groupFocusWithin:ad(Na.focusWithin),_peerFocusWithin:$c(Na.focusWithin),_peerPlaceholderShown:$c(Na.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]"},yfe=Object.keys(cU),fU=Gc({},vS,ar,Kce,i3,tl,Xce,ofe,Qce,sU,afe,tb,m_,Fr,ffe,cfe,sfe,lfe,Jce,ufe);Object.assign({},Fr,tl,i3,sU,tb);[...Object.keys(fU),...yfe];({...fU,...cU});function Wr(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function ka(e,t){xfe(e)&&(e="100%");var n=Sfe(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(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 z5(e){return Math.min(1,Math.max(0,e))}function xfe(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Sfe(e){return typeof e=="string"&&e.indexOf("%")!==-1}function dU(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function B5(e){return e<=1?"".concat(Number(e)*100,"%"):e}function gm(e){return e.length===1?"0"+e:String(e)}function wfe(e,t,n){return{r:ka(e,255)*255,g:ka(t,255)*255,b:ka(n,255)*255}}function hP(e,t,n){e=ka(e,255),t=ka(t,255),n=ka(n,255);var i=Math.max(e,t,n),o=Math.min(e,t,n),s=0,l=0,p=(i+o)/2;if(i===o)l=0,s=0;else{var m=i-o;switch(l=p>.5?m/(2-i-o):m/(i+o),i){case e:s=(t-n)/m+(t<n?6:0);break;case t:s=(n-e)/m+2;break;case n:s=(e-t)/m+4;break}s/=6}return{h:s,s:l,l:p}}function S7(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Cfe(e,t,n){var i,o,s;if(e=ka(e,360),t=ka(t,100),n=ka(n,100),t===0)o=n,s=n,i=n;else{var l=n<.5?n*(1+t):n+t-n*t,p=2*n-l;i=S7(p,l,e+1/3),o=S7(p,l,e),s=S7(p,l,e-1/3)}return{r:i*255,g:o*255,b:s*255}}function vP(e,t,n){e=ka(e,255),t=ka(t,255),n=ka(n,255);var i=Math.max(e,t,n),o=Math.min(e,t,n),s=0,l=i,p=i-o,m=i===0?0:p/i;if(i===o)s=0;else{switch(i){case e:s=(t-n)/p+(t<n?6:0);break;case t:s=(n-e)/p+2;break;case n:s=(e-t)/p+4;break}s/=6}return{h:s,s:m,v:l}}function Nfe(e,t,n){e=ka(e,360)*6,t=ka(t,100),n=ka(n,100);var i=Math.floor(e),o=e-i,s=n*(1-t),l=n*(1-o*t),p=n*(1-(1-o)*t),m=i%6,v=[n,l,s,s,p,n][m],g=[p,n,n,l,s,s][m],b=[s,s,p,n,n,l][m];return{r:v*255,g:g*255,b:b*255}}function gP(e,t,n,i){var o=[gm(Math.round(e).toString(16)),gm(Math.round(t).toString(16)),gm(Math.round(n).toString(16))];return i&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Efe(e,t,n,i,o){var s=[gm(Math.round(e).toString(16)),gm(Math.round(t).toString(16)),gm(Math.round(n).toString(16)),gm(_fe(i))];return o&&s[0].startsWith(s[0].charAt(1))&&s[1].startsWith(s[1].charAt(1))&&s[2].startsWith(s[2].charAt(1))&&s[3].startsWith(s[3].charAt(1))?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0)+s[3].charAt(0):s.join("")}function _fe(e){return Math.round(parseFloat(e)*255).toString(16)}function bP(e){return hs(e)/255}function hs(e){return parseInt(e,16)}function Tfe(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var v_={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 Rfe(e){var t={r:0,g:0,b:0},n=1,i=null,o=null,s=null,l=!1,p=!1;return typeof e=="string"&&(e=Lfe(e)),typeof e=="object"&&(Fc(e.r)&&Fc(e.g)&&Fc(e.b)?(t=wfe(e.r,e.g,e.b),l=!0,p=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Fc(e.h)&&Fc(e.s)&&Fc(e.v)?(i=B5(e.s),o=B5(e.v),t=Nfe(e.h,i,o),l=!0,p="hsv"):Fc(e.h)&&Fc(e.s)&&Fc(e.l)&&(i=B5(e.s),s=B5(e.l),t=Cfe(e.h,i,s),l=!0,p="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=dU(n),{ok:l,format:e.format||p,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:n}}var kfe="[-\\+]?\\d+%?",Afe="[-\\+]?\\d*\\.\\d+%?",yd="(?:".concat(Afe,")|(?:").concat(kfe,")"),w7="[\\s|\\(]+(".concat(yd,")[,|\\s]+(").concat(yd,")[,|\\s]+(").concat(yd,")\\s*\\)?"),C7="[\\s|\\(]+(".concat(yd,")[,|\\s]+(").concat(yd,")[,|\\s]+(").concat(yd,")[,|\\s]+(").concat(yd,")\\s*\\)?"),Wl={CSS_UNIT:new RegExp(yd),rgb:new RegExp("rgb"+w7),rgba:new RegExp("rgba"+C7),hsl:new RegExp("hsl"+w7),hsla:new RegExp("hsla"+C7),hsv:new RegExp("hsv"+w7),hsva:new RegExp("hsva"+C7),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 Lfe(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(v_[e])e=v_[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Wl.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Wl.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Wl.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Wl.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Wl.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Wl.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Wl.hex8.exec(e),n?{r:hs(n[1]),g:hs(n[2]),b:hs(n[3]),a:bP(n[4]),format:t?"name":"hex8"}:(n=Wl.hex6.exec(e),n?{r:hs(n[1]),g:hs(n[2]),b:hs(n[3]),format:t?"name":"hex"}:(n=Wl.hex4.exec(e),n?{r:hs(n[1]+n[1]),g:hs(n[2]+n[2]),b:hs(n[3]+n[3]),a:bP(n[4]+n[4]),format:t?"name":"hex8"}:(n=Wl.hex3.exec(e),n?{r:hs(n[1]+n[1]),g:hs(n[2]+n[2]),b:hs(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Fc(e){return Boolean(Wl.CSS_UNIT.exec(String(e)))}var ty=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var i;if(t instanceof e)return t;typeof t=="number"&&(t=Tfe(t)),this.originalInput=t;var o=Rfe(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(i=n.format)!==null&&i!==void 0?i:o.format,this.gradientType=n.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=o.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(),n,i,o,s=t.r/255,l=t.g/255,p=t.b/255;return s<=.03928?n=s/12.92:n=Math.pow((s+.055)/1.055,2.4),l<=.03928?i=l/12.92:i=Math.pow((l+.055)/1.055,2.4),p<=.03928?o=p/12.92:o=Math.pow((p+.055)/1.055,2.4),.2126*n+.7152*i+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=dU(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var t=vP(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=vP(this.r,this.g,this.b),n=Math.round(t.h*360),i=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(i,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(i,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=hP(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=hP(this.r,this.g,this.b),n=Math.round(t.h*360),i=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(i,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(i,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),gP(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),Efe(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),n=Math.round(this.g),i=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(i,")"):"rgba(".concat(t,", ").concat(n,", ").concat(i,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(ka(n,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(n){return Math.round(ka(n,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="#"+gP(this.r,this.g,this.b,!1),n=0,i=Object.entries(v_);n<i.length;n++){var o=i[n],s=o[0],l=o[1];if(t===l)return s}return!1},e.prototype.toString=function(t){var n=Boolean(t);t=t??this.format;var i=!1,o=this.a<1&&this.a>=0,s=!n&&o&&(t.startsWith("hex")||t==="name");return s?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 n=this.toHsl();return n.l+=t/100,n.l=z5(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=z5(n.l),new e(n)},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 n=this.toHsl();return n.s-=t/100,n.s=z5(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=z5(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),i=(n.h+t)%360;return n.h=i<0?360+i:i,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var i=this.toRgb(),o=new e(t).toRgb(),s=n/100,l={r:(o.r-i.r)*s+i.r,g:(o.g-i.g)*s+i.g,b:(o.b-i.b)*s+i.b,a:(o.a-i.a)*s+i.a};return new e(l)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var i=this.toHsl(),o=360/n,s=[this];for(i.h=(i.h-(o*t>>1)+720)%360;--t;)i.h=(i.h+o)%360,s.push(new e(i));return s},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 n=this.toHsv(),i=n.h,o=n.s,s=n.v,l=[],p=1/t;t--;)l.push(new e({h:i,s:o,v:s})),s=(s+p)%1;return l},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),i=new e(t).toRgb();return new e({r:i.r+(n.r-i.r)*n.a,g:i.g+(n.g-i.g)*n.a,b:i.b+(n.b-i.b)*n.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),i=n.h,o=[this],s=360/t,l=1;l<t;l++)o.push(new e({h:(i+l*s)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function pU(e){if(e===void 0&&(e={}),e.count!==void 0&&e.count!==null){var t=e.count,n=[];for(e.count=void 0;t>n.length;)e.count=null,e.seed&&(e.seed+=1),n.push(pU(e));return e.count=t,n}var i=Ofe(e.hue,e.seed),o=Mfe(i,e),s=Pfe(i,o,e),l={h:i,s:o,v:s};return e.alpha!==void 0&&(l.a=e.alpha),new ty(l)}function Ofe(e,t){var n=Dfe(e),i=a3(n,t);return i<0&&(i=360+i),i}function Mfe(e,t){if(t.hue==="monochrome")return 0;if(t.luminosity==="random")return a3([0,100],t.seed);var n=mU(e).saturationRange,i=n[0],o=n[1];switch(t.luminosity){case"bright":i=55;break;case"dark":i=o-10;break;case"light":o=55;break}return a3([i,o],t.seed)}function Pfe(e,t,n){var i=Ife(e,t),o=100;switch(n.luminosity){case"dark":o=i+20;break;case"light":i=(o+i)/2;break;case"random":i=0,o=100;break}return a3([i,o],n.seed)}function Ife(e,t){for(var n=mU(e).lowerBounds,i=0;i<n.length-1;i++){var o=n[i][0],s=n[i][1],l=n[i+1][0],p=n[i+1][1];if(t>=o&&t<=l){var m=(p-s)/(l-o),v=s-m*o;return m*t+v}}return 0}function Dfe(e){var t=parseInt(e,10);if(!Number.isNaN(t)&&t<360&&t>0)return[t,t];if(typeof e=="string"){var n=vU.find(function(l){return l.name===e});if(n){var i=hU(n);if(i.hueRange)return i.hueRange}var o=new ty(e);if(o.isValid){var s=o.toHsv().h;return[s,s]}}return[0,360]}function mU(e){e>=334&&e<=360&&(e-=360);for(var t=0,n=vU;t<n.length;t++){var i=n[t],o=hU(i);if(o.hueRange&&e>=o.hueRange[0]&&e<=o.hueRange[1])return o}throw Error("Color not found")}function a3(e,t){if(t===void 0)return Math.floor(e[0]+Math.random()*(e[1]+1-e[0]));var n=e[1]||1,i=e[0]||0;t=(t*9301+49297)%233280;var o=t/233280;return Math.floor(i+o*(n-i))}function hU(e){var t=e.lowerBounds[0][0],n=e.lowerBounds[e.lowerBounds.length-1][0],i=e.lowerBounds[e.lowerBounds.length-1][1],o=e.lowerBounds[0][1];return{name:e.name,hueRange:e.hueRange,lowerBounds:e.lowerBounds,saturationRange:[t,n],brightnessRange:[i,o]}}var vU=[{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 $fe(e,t,n,i,o){for(t=t.split?t.split("."):t,i=0;i<t.length;i++)e=e?e[t[i]]:o;return e===o?n:e}var Ffe=e=>Object.keys(e).length===0,Wi=(e,t,n)=>{const i=$fe(e,`colors.${t}`,t),{isValid:o}=new ty(i);return o?i:n},zfe=e=>t=>{const n=Wi(t,e);return new ty(n).isDark()?"dark":"light"},Bfe=e=>t=>zfe(e)(t)==="dark",Xv=(e,t)=>n=>{const i=Wi(n,e);return new ty(i).setAlpha(t).toRgbString()};function yP(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 Ufe(e){const t=pU().toHexString();return!e||Ffe(e)?t:e.string&&e.colors?Vfe(e.string,e.colors):e.string&&!e.colors?jfe(e.string):e.colors&&!e.string?Hfe(e.colors):t}function jfe(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 n="#";for(let i=0;i<3;i+=1)n+=`00${(t>>i*8&255).toString(16)}`.substr(-2);return n}function Vfe(e,t){let n=0;if(e.length===0)return t[0];for(let i=0;i<e.length;i+=1)n=e.charCodeAt(i)+((n<<5)-n),n=n&n;return n=(n%t.length+t.length)%t.length,t[n]}function Hfe(e){return e[Math.floor(Math.random()*e.length)]}function je(e,t){return n=>n.colorMode==="dark"?t:e}function IT(e){const{orientation:t,vertical:n,horizontal:i}=e;return t?t==="vertical"?n:i:{}}function Wfe(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function gU(e){return Wfe(e)&&e.reference?e.reference:String(e)}var c4=(e,...t)=>t.map(gU).join(` ${e} `).replace(/calc/g,""),xP=(...e)=>`calc(${c4("+",...e)})`,SP=(...e)=>`calc(${c4("-",...e)})`,g_=(...e)=>`calc(${c4("*",...e)})`,wP=(...e)=>`calc(${c4("/",...e)})`,CP=e=>{const t=gU(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:g_(t,-1)},Vc=Object.assign(e=>({add:(...t)=>Vc(xP(e,...t)),subtract:(...t)=>Vc(SP(e,...t)),multiply:(...t)=>Vc(g_(e,...t)),divide:(...t)=>Vc(wP(e,...t)),negate:()=>Vc(CP(e)),toString:()=>e.toString()}),{add:xP,subtract:SP,multiply:g_,divide:wP,negate:CP});function Gfe(e){return!Number.isInteger(parseFloat(e.toString()))}function Yfe(e,t="-"){return e.replace(/\s+/g,t)}function bU(e){const t=Yfe(e.toString());return t.includes("\\.")?e:Gfe(e)?t.replace(".","\\."):e}function qfe(e,t=""){return[t,bU(e)].filter(Boolean).join("-")}function Zfe(e,t){return`var(${bU(e)}${t?`, ${t}`:""})`}function Kfe(e,t=""){return`--${qfe(e,t)}`}function Ho(e,t){const n=Kfe(e,t?.prefix);return{variable:n,reference:Zfe(n,Xfe(t?.fallback))}}function Xfe(e){return typeof e=="string"?e:e?.reference}var{definePartsStyle:Qfe,defineMultiStyleConfig:Jfe}=Wr(lce.keys),ede={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},tde={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},nde={pt:"2",px:"4",pb:"5"},rde={fontSize:"1.25em"},ide=Qfe({container:ede,button:tde,panel:nde,icon:rde}),ade=Jfe({baseStyle:ide}),{definePartsStyle:ny,defineMultiStyleConfig:ode}=Wr(uce.keys),qc=Dm("alert-fg"),ry=Dm("alert-bg"),sde=ny({container:{bg:ry.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:qc.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:qc.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function DT(e){const{theme:t,colorScheme:n}=e,i=Wi(t,`${n}.100`,n),o=Xv(`${n}.200`,.16)(t);return je(i,o)(e)}var lde=ny(e=>{const{colorScheme:t}=e,n=je(`${t}.500`,`${t}.200`)(e);return{container:{[ry.variable]:DT(e),[qc.variable]:`colors.${n}`}}}),ude=ny(e=>{const{colorScheme:t}=e,n=je(`${t}.500`,`${t}.200`)(e);return{container:{[ry.variable]:DT(e),[qc.variable]:`colors.${n}`,paddingStart:"3",borderStartWidth:"4px",borderStartColor:qc.reference}}}),cde=ny(e=>{const{colorScheme:t}=e,n=je(`${t}.500`,`${t}.200`)(e);return{container:{[ry.variable]:DT(e),[qc.variable]:`colors.${n}`,pt:"2",borderTopWidth:"4px",borderTopColor:qc.reference}}}),fde=ny(e=>{const{colorScheme:t}=e,n=je(`${t}.500`,`${t}.200`)(e),i=je("white","gray.900")(e);return{container:{[ry.variable]:`colors.${n}`,[qc.variable]:`colors.${i}`,color:qc.reference}}}),dde={subtle:lde,"left-accent":ude,"top-accent":cde,solid:fde},pde=ode({baseStyle:sde,variants:dde,defaultProps:{variant:"subtle",colorScheme:"blue"}}),yU={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"},mde={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"},hde={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},vde={...yU,...mde,container:hde},xU=vde,gde=e=>typeof e=="function";function fi(e,...t){return gde(e)?e(...t):e}var{definePartsStyle:SU,defineMultiStyleConfig:bde}=Wr(cce.keys),yde=e=>({borderRadius:"full",border:"0.2em solid",borderColor:je("white","gray.800")(e)}),xde=e=>({bg:je("gray.200","whiteAlpha.400")(e)}),Sde=e=>{const{name:t,theme:n}=e,i=t?Ufe({string:t}):"gray.400",o=Bfe(i)(n);let s="white";o||(s="gray.800");const l=je("white","gray.800")(e);return{bg:i,color:s,borderColor:l,verticalAlign:"top"}},wde=SU(e=>({badge:fi(yde,e),excessLabel:fi(xde,e),container:fi(Sde,e)}));function od(e){const t=e!=="100%"?xU[e]:void 0;return SU({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 Cde={"2xs":od(4),xs:od(6),sm:od(8),md:od(12),lg:od(16),xl:od(24),"2xl":od(32),full:od("100%")},Nde=bde({baseStyle:wde,sizes:Cde,defaultProps:{size:"md"}}),Ede={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold"},_de=e=>{const{colorScheme:t,theme:n}=e,i=Xv(`${t}.500`,.6)(n);return{bg:je(`${t}.500`,i)(e),color:je("white","whiteAlpha.800")(e)}},Tde=e=>{const{colorScheme:t,theme:n}=e,i=Xv(`${t}.200`,.16)(n);return{bg:je(`${t}.100`,i)(e),color:je(`${t}.800`,`${t}.200`)(e)}},Rde=e=>{const{colorScheme:t,theme:n}=e,i=Xv(`${t}.200`,.8)(n),o=Wi(n,`${t}.500`),s=je(o,i)(e);return{color:s,boxShadow:`inset 0 0 0px 1px ${s}`}},kde={solid:_de,subtle:Tde,outline:Rde},nb={baseStyle:Ede,variants:kde,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:Ade,definePartsStyle:Lde}=Wr(fce.keys),Ode={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},Mde=Lde({link:Ode}),Pde=Ade({baseStyle:Mde}),Ide={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"}}},wU=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:je("inherit","whiteAlpha.900")(e),_hover:{bg:je("gray.100","whiteAlpha.200")(e)},_active:{bg:je("gray.200","whiteAlpha.300")(e)}};const i=Xv(`${t}.200`,.12)(n),o=Xv(`${t}.200`,.24)(n);return{color:je(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:je(`${t}.50`,i)(e)},_active:{bg:je(`${t}.100`,o)(e)}}},Dde=e=>{const{colorScheme:t}=e,n=je("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?n:"currentColor",".chakra-button__group[data-attached] > &:not(:last-of-type)":{marginEnd:"-1px"},...fi(wU,e)}},$de={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},Fde=e=>{const{colorScheme:t}=e;if(t==="gray"){const p=je("gray.100","whiteAlpha.200")(e);return{bg:p,_hover:{bg:je("gray.200","whiteAlpha.300")(e),_disabled:{bg:p}},_active:{bg:je("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${t}.500`,color:i="white",hoverBg:o=`${t}.600`,activeBg:s=`${t}.700`}=$de[t]??{},l=je(n,`${t}.200`)(e);return{bg:l,color:je(i,"gray.800")(e),_hover:{bg:je(o,`${t}.300`)(e),_disabled:{bg:l}},_active:{bg:je(s,`${t}.400`)(e)}}},zde=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:je(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:je(`${t}.700`,`${t}.500`)(e)}}},Bde={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},Ude={ghost:wU,outline:Dde,solid:Fde,link:zde,unstyled:Bde},jde={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"}},Vde={baseStyle:Ide,variants:Ude,sizes:jde,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:gS,defineMultiStyleConfig:Hde}=Wr(dce.keys),rb=Dm("checkbox-size"),Wde=e=>{const{colorScheme:t}=e;return{w:rb.reference,h:rb.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:je(`${t}.500`,`${t}.200`)(e),borderColor:je(`${t}.500`,`${t}.200`)(e),color:je("white","gray.900")(e),_hover:{bg:je(`${t}.600`,`${t}.300`)(e),borderColor:je(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:je("gray.200","transparent")(e),bg:je("gray.200","whiteAlpha.300")(e),color:je("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:je(`${t}.500`,`${t}.200`)(e),borderColor:je(`${t}.500`,`${t}.200`)(e),color:je("white","gray.900")(e)},_disabled:{bg:je("gray.100","whiteAlpha.100")(e),borderColor:je("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:je("red.500","red.300")(e)}}},Gde={_disabled:{cursor:"not-allowed"}},Yde={userSelect:"none",_disabled:{opacity:.4}},qde={transitionProperty:"transform",transitionDuration:"normal"},Zde=gS(e=>({icon:qde,container:Gde,control:fi(Wde,e),label:Yde})),Kde={sm:gS({control:{[rb.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:gS({control:{[rb.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:gS({control:{[rb.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},o3=Hde({baseStyle:Zde,sizes:Kde,defaultProps:{size:"md",colorScheme:"blue"}}),ib=Ho("close-button-size"),Xde=e=>{const t=je("blackAlpha.100","whiteAlpha.100")(e),n=je("blackAlpha.200","whiteAlpha.200")(e);return{w:[ib.reference],h:[ib.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{bg:t},_active:{bg:n},_focusVisible:{boxShadow:"outline"}}},Qde={lg:{[ib.variable]:"sizes.10",fontSize:"md"},md:{[ib.variable]:"sizes.8",fontSize:"xs"},sm:{[ib.variable]:"sizes.6",fontSize:"2xs"}},Jde={baseStyle:Xde,sizes:Qde,defaultProps:{size:"md"}},{variants:epe,defaultProps:tpe}=nb,npe={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm"},rpe={baseStyle:npe,variants:epe,defaultProps:tpe},ipe={w:"100%",mx:"auto",maxW:"prose",px:"4"},ape={baseStyle:ipe},ope={opacity:.6,borderColor:"inherit"},spe={borderStyle:"solid"},lpe={borderStyle:"dashed"},upe={solid:spe,dashed:lpe},cpe={baseStyle:ope,variants:upe,defaultProps:{variant:"solid"}},{definePartsStyle:b_,defineMultiStyleConfig:fpe}=Wr(pce.keys);function gv(e){return b_(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var dpe={bg:"blackAlpha.600",zIndex:"overlay"},ppe={display:"flex",zIndex:"modal",justifyContent:"center"},mpe=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",bg:je("white","gray.700")(e),color:"inherit",boxShadow:je("lg","dark-lg")(e)}},hpe={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},vpe={position:"absolute",top:"2",insetEnd:"3"},gpe={px:"6",py:"2",flex:"1",overflow:"auto"},bpe={px:"6",py:"4"},ype=b_(e=>({overlay:dpe,dialogContainer:ppe,dialog:fi(mpe,e),header:hpe,closeButton:vpe,body:gpe,footer:bpe})),xpe={xs:gv("xs"),sm:gv("md"),md:gv("lg"),lg:gv("2xl"),xl:gv("4xl"),full:gv("full")},Spe=fpe({baseStyle:ype,sizes:xpe,defaultProps:{size:"xs"}}),{definePartsStyle:wpe,defineMultiStyleConfig:Cpe}=Wr(mce.keys),Npe={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},Epe={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},_pe={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},Tpe=wpe({preview:Npe,input:Epe,textarea:_pe}),Rpe=Cpe({baseStyle:Tpe}),{definePartsStyle:kpe,defineMultiStyleConfig:Ape}=Wr(hce.keys),Lpe=e=>({marginStart:"1",color:je("red.500","red.300")(e)}),Ope=e=>({mt:"2",color:je("gray.600","whiteAlpha.600")(e),lineHeight:"normal",fontSize:"sm"}),Mpe=kpe(e=>({container:{width:"100%",position:"relative"},requiredIndicator:fi(Lpe,e),helperText:fi(Ope,e)})),Ppe=Ape({baseStyle:Mpe}),{definePartsStyle:Ipe,defineMultiStyleConfig:Dpe}=Wr(vce.keys),$pe=e=>({color:je("red.500","red.300")(e),mt:"2",fontSize:"sm",lineHeight:"normal"}),Fpe=e=>({marginEnd:"0.5em",color:je("red.500","red.300")(e)}),zpe=Ipe(e=>({text:fi($pe,e),icon:fi(Fpe,e)})),Bpe=Dpe({baseStyle:zpe}),Upe={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},jpe={baseStyle:Upe},Vpe={fontFamily:"heading",fontWeight:"bold"},Hpe={"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}},Wpe={baseStyle:Vpe,sizes:Hpe,defaultProps:{size:"xl"}},{definePartsStyle:Hc,defineMultiStyleConfig:Gpe}=Wr(gce.keys),Ype=Hc({field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),sd={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"}},qpe={lg:Hc({field:sd.lg,addon:sd.lg}),md:Hc({field:sd.md,addon:sd.md}),sm:Hc({field:sd.sm,addon:sd.sm}),xs:Hc({field:sd.xs,addon:sd.xs})};function $T(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||je("blue.500","blue.300")(e),errorBorderColor:n||je("red.500","red.300")(e)}}var Zpe=Hc(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:i}=$T(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:je("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Wi(t,i),boxShadow:`0 0 0 1px ${Wi(t,i)}`},_focusVisible:{zIndex:1,borderColor:Wi(t,n),boxShadow:`0 0 0 1px ${Wi(t,n)}`}},addon:{border:"1px solid",borderColor:je("inherit","whiteAlpha.50")(e),bg:je("gray.100","whiteAlpha.300")(e)}}}),Kpe=Hc(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:i}=$T(e);return{field:{border:"2px solid",borderColor:"transparent",bg:je("gray.100","whiteAlpha.50")(e),_hover:{bg:je("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Wi(t,i)},_focusVisible:{bg:"transparent",borderColor:Wi(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:je("gray.100","whiteAlpha.50")(e)}}}),Xpe=Hc(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:i}=$T(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Wi(t,i),boxShadow:`0px 1px 0px 0px ${Wi(t,i)}`},_focusVisible:{borderColor:Wi(t,n),boxShadow:`0px 1px 0px 0px ${Wi(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),Qpe=Hc({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),Jpe={outline:Zpe,filled:Kpe,flushed:Xpe,unstyled:Qpe},sr=Gpe({baseStyle:Ype,sizes:qpe,variants:Jpe,defaultProps:{size:"md",variant:"outline"}}),eme=e=>({bg:je("gray.100","whiteAlpha")(e),borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}),tme={baseStyle:eme},nme={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},rme={baseStyle:nme},{defineMultiStyleConfig:ime,definePartsStyle:ame}=Wr(bce.keys),ome={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},sme=ame({icon:ome}),lme=ime({baseStyle:sme}),{defineMultiStyleConfig:ume,definePartsStyle:cme}=Wr(yce.keys),fme=e=>({bg:je("#fff","gray.700")(e),boxShadow:je("sm","dark-lg")(e),color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px"}),dme=e=>({py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{bg:je("gray.100","whiteAlpha.100")(e)},_active:{bg:je("gray.200","whiteAlpha.200")(e)},_expanded:{bg:je("gray.100","whiteAlpha.100")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}),pme={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},mme={opacity:.6},hme={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},vme={transitionProperty:"common",transitionDuration:"normal"},gme=cme(e=>({button:vme,list:fi(fme,e),item:fi(dme,e),groupTitle:pme,command:mme,divider:hme})),bme=ume({baseStyle:gme}),{defineMultiStyleConfig:yme,definePartsStyle:y_}=Wr(xce.keys),xme={bg:"blackAlpha.600",zIndex:"modal"},Sme=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto"}},wme=e=>{const{scrollBehavior:t}=e;return{borderRadius:"md",bg:je("white","gray.700")(e),color:"inherit",my:"16",zIndex:"modal",maxH:t==="inside"?"calc(100% - 7.5rem)":void 0,boxShadow:je("lg","dark-lg")(e)}},Cme={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},Nme={position:"absolute",top:"2",insetEnd:"3"},Eme=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},_me={px:"6",py:"4"},Tme=y_(e=>({overlay:xme,dialogContainer:fi(Sme,e),dialog:fi(wme,e),header:Cme,closeButton:Nme,body:fi(Eme,e),footer:_me}));function Hl(e){return y_(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var Rme={xs:Hl("xs"),sm:Hl("sm"),md:Hl("md"),lg:Hl("lg"),xl:Hl("xl"),"2xl":Hl("2xl"),"3xl":Hl("3xl"),"4xl":Hl("4xl"),"5xl":Hl("5xl"),"6xl":Hl("6xl"),full:Hl("full")},kme=yme({baseStyle:Tme,sizes:Rme,defaultProps:{size:"md"}}),Ame={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"}},CU=Ame,{defineMultiStyleConfig:Lme,definePartsStyle:NU}=Wr(Sce.keys),FT=Ho("number-input-stepper-width"),EU=Ho("number-input-input-padding"),Ome=Vc(FT).add("0.5rem").toString(),Mme={[FT.variable]:"sizes.6",[EU.variable]:Ome},Pme=e=>{var t;return((t=fi(sr.baseStyle,e))==null?void 0:t.field)??{}},Ime={width:[FT.reference]},Dme=e=>({borderStart:"1px solid",borderStartColor:je("inherit","whiteAlpha.300")(e),color:je("inherit","whiteAlpha.800")(e),_active:{bg:je("gray.200","whiteAlpha.300")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}),$me=NU(e=>({root:Mme,field:Pme,stepperGroup:Ime,stepper:fi(Dme,e)??{}}));function U5(e){var t,n;const i=(t=sr.sizes)==null?void 0:t[e],o={lg:"md",md:"md",sm:"sm",xs:"sm"},s=((n=i.field)==null?void 0:n.fontSize)??"md",l=CU.fontSizes[s];return NU({field:{...i.field,paddingInlineEnd:EU.reference,verticalAlign:"top"},stepper:{fontSize:Vc(l).multiply(.75).toString(),_first:{borderTopEndRadius:o[e]},_last:{borderBottomEndRadius:o[e],mt:"-1px",borderTopWidth:1}}})}var Fme={xs:U5("xs"),sm:U5("sm"),md:U5("md"),lg:U5("lg")},zme=Lme({baseStyle:$me,sizes:Fme,variants:sr.variants,defaultProps:sr.defaultProps}),NP,Bme={...(NP=sr.baseStyle)==null?void 0:NP.field,textAlign:"center"},Ume={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"}},EP,jme={outline:e=>{var t,n;return((n=fi((t=sr.variants)==null?void 0:t.outline,e))==null?void 0:n.field)??{}},flushed:e=>{var t,n;return((n=fi((t=sr.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)??{}},filled:e=>{var t,n;return((n=fi((t=sr.variants)==null?void 0:t.filled,e))==null?void 0:n.field)??{}},unstyled:((EP=sr.variants)==null?void 0:EP.unstyled.field)??{}},Vme={baseStyle:Bme,sizes:Ume,variants:jme,defaultProps:sr.defaultProps},{defineMultiStyleConfig:Hme,definePartsStyle:Wme}=Wr(wce.keys),N7=Ho("popper-bg"),Gme=Ho("popper-arrow-bg"),Yme=Ho("popper-arrow-shadow-color"),qme={zIndex:10},Zme=e=>{const t=je("white","gray.700")(e),n=je("gray.200","whiteAlpha.300")(e);return{[N7.variable]:`colors.${t}`,bg:N7.reference,[Gme.variable]:N7.reference,[Yme.variable]:`colors.${n}`,width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}}},Kme={px:3,py:2,borderBottomWidth:"1px"},Xme={px:3,py:2},Qme={px:3,py:2,borderTopWidth:"1px"},Jme={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},ehe=Wme(e=>({popper:qme,content:Zme(e),header:Kme,body:Xme,footer:Qme,closeButton:Jme})),the=Hme({baseStyle:ehe}),{defineMultiStyleConfig:nhe,definePartsStyle:Ug}=Wr(Cce.keys),rhe=e=>{const{colorScheme:t,theme:n,isIndeterminate:i,hasStripe:o}=e,s=je(yP(),yP("1rem","rgba(0,0,0,0.1)"))(e),l=je(`${t}.500`,`${t}.200`)(e),p=`linear-gradient(
to right,
transparent 0%,
${Wi(n,l)} 50%,
transparent 100%
)`;return{...!i&&o&&s,...i?{bgImage:p}:{bgColor:l}}},ihe={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},ahe=e=>({bg:je("gray.100","whiteAlpha.300")(e)}),ohe=e=>({transitionProperty:"common",transitionDuration:"slow",...rhe(e)}),she=Ug(e=>({label:ihe,filledTrack:ohe(e),track:ahe(e)})),lhe={xs:Ug({track:{h:"1"}}),sm:Ug({track:{h:"2"}}),md:Ug({track:{h:"3"}}),lg:Ug({track:{h:"4"}})},uhe=nhe({sizes:lhe,baseStyle:she,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:che,definePartsStyle:bS}=Wr(Nce.keys),fhe=e=>{var t;const n=(t=fi(o3.baseStyle,e))==null?void 0:t.control;return{...n,borderRadius:"full",_checked:{...n?._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},dhe=bS(e=>{var t,n,i,o;return{label:(n=(t=o3).baseStyle)==null?void 0:n.call(t,e).label,container:(o=(i=o3).baseStyle)==null?void 0:o.call(i,e).container,control:fhe(e)}}),phe={md:bS({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:bS({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:bS({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},mhe=che({baseStyle:dhe,sizes:phe,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:hhe,definePartsStyle:vhe}=Wr(Ece.keys),ghe=e=>{var t;return{...(t=sr.baseStyle)==null?void 0:t.field,bg:je("white","gray.700")(e),appearance:"none",paddingBottom:"1px",lineHeight:"normal","> option, > optgroup":{bg:je("white","gray.700")(e)}}},bhe={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},yhe=vhe(e=>({field:ghe(e),icon:bhe})),j5={paddingInlineEnd:"8"},_P,TP,RP,kP,AP,LP,OP,MP,xhe={lg:{...(_P=sr.sizes)==null?void 0:_P.lg,field:{...(TP=sr.sizes)==null?void 0:TP.lg.field,...j5}},md:{...(RP=sr.sizes)==null?void 0:RP.md,field:{...(kP=sr.sizes)==null?void 0:kP.md.field,...j5}},sm:{...(AP=sr.sizes)==null?void 0:AP.sm,field:{...(LP=sr.sizes)==null?void 0:LP.sm.field,...j5}},xs:{...(OP=sr.sizes)==null?void 0:OP.xs,field:{...(MP=sr.sizes)==null?void 0:MP.sm.field,...j5},icon:{insetEnd:"1"}}},She=hhe({baseStyle:yhe,sizes:xhe,variants:sr.variants,defaultProps:sr.defaultProps}),whe=Dm("skeleton-start-color"),Che=Dm("skeleton-end-color"),Nhe=e=>{const t=je("gray.100","gray.800")(e),n=je("gray.400","gray.600")(e),{startColor:i=t,endColor:o=n,theme:s}=e,l=Wi(s,i),p=Wi(s,o);return{[whe.variable]:l,[Che.variable]:p,opacity:.7,borderRadius:"2px",borderColor:l,background:p}},Ehe={baseStyle:Nhe},_he=e=>({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",bg:je("white","gray.700")(e)}}),The={baseStyle:_he},{defineMultiStyleConfig:Rhe,definePartsStyle:f4}=Wr(_ce.keys),Tb=Dm("slider-thumb-size"),Rb=Dm("slider-track-size"),khe=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...IT({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},Ahe=e=>({...IT({orientation:e.orientation,horizontal:{h:Rb.reference},vertical:{w:Rb.reference}}),overflow:"hidden",borderRadius:"sm",bg:je("gray.200","whiteAlpha.200")(e),_disabled:{bg:je("gray.300","whiteAlpha.300")(e)}}),Lhe=e=>{const{orientation:t}=e;return{...IT({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:Tb.reference,h:Tb.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"}}},Ohe=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",bg:je(`${t}.500`,`${t}.200`)(e)}},Mhe=f4(e=>({container:khe(e),track:Ahe(e),thumb:Lhe(e),filledTrack:Ohe(e)})),Phe=f4({container:{[Tb.variable]:"sizes.4",[Rb.variable]:"sizes.1"}}),Ihe=f4({container:{[Tb.variable]:"sizes.3.5",[Rb.variable]:"sizes.1"}}),Dhe=f4({container:{[Tb.variable]:"sizes.2.5",[Rb.variable]:"sizes.0.5"}}),$he={lg:Phe,md:Ihe,sm:Dhe},Fhe=Rhe({baseStyle:Mhe,sizes:$he,defaultProps:{size:"md",colorScheme:"blue"}}),dm=Ho("spinner-size"),zhe={width:[dm.reference],height:[dm.reference]},Bhe={xs:{[dm.variable]:"sizes.3"},sm:{[dm.variable]:"sizes.4"},md:{[dm.variable]:"sizes.6"},lg:{[dm.variable]:"sizes.8"},xl:{[dm.variable]:"sizes.12"}},Uhe={baseStyle:zhe,sizes:Bhe,defaultProps:{size:"md"}},{defineMultiStyleConfig:jhe,definePartsStyle:_U}=Wr(Tce.keys),Vhe={fontWeight:"medium"},Hhe={opacity:.8,marginBottom:"2"},Whe={verticalAlign:"baseline",fontWeight:"semibold"},Ghe={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},Yhe=_U({container:{},label:Vhe,helpText:Hhe,number:Whe,icon:Ghe}),qhe={md:_U({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},Zhe=jhe({baseStyle:Yhe,sizes:qhe,defaultProps:{size:"md"}}),{defineMultiStyleConfig:Khe,definePartsStyle:yS}=Wr(Rce.keys),ab=Ho("switch-track-width"),xm=Ho("switch-track-height"),E7=Ho("switch-track-diff"),Xhe=Vc.subtract(ab,xm),x_=Ho("switch-thumb-x"),Qhe=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[ab.reference],height:[xm.reference],transitionProperty:"common",transitionDuration:"fast",bg:je("gray.300","whiteAlpha.400")(e),_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{bg:je(`${t}.500`,`${t}.200`)(e)}}},Jhe={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[xm.reference],height:[xm.reference],_checked:{transform:`translateX(${x_.reference})`}},eve=yS(e=>({container:{[E7.variable]:Xhe,[x_.variable]:E7.reference,_rtl:{[x_.variable]:Vc(E7).negate().toString()}},track:Qhe(e),thumb:Jhe})),tve={sm:yS({container:{[ab.variable]:"1.375rem",[xm.variable]:"sizes.3"}}),md:yS({container:{[ab.variable]:"1.875rem",[xm.variable]:"sizes.4"}}),lg:yS({container:{[ab.variable]:"2.875rem",[xm.variable]:"sizes.6"}})},nve=Khe({baseStyle:eve,sizes:tve,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:rve,definePartsStyle:zv}=Wr(kce.keys),ive=zv({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"}}),s3={"&[data-is-numeric=true]":{textAlign:"end"}},ave=zv(e=>{const{colorScheme:t}=e;return{th:{color:je("gray.600","gray.400")(e),borderBottom:"1px",borderColor:je(`${t}.100`,`${t}.700`)(e),...s3},td:{borderBottom:"1px",borderColor:je(`${t}.100`,`${t}.700`)(e),...s3},caption:{color:je("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),ove=zv(e=>{const{colorScheme:t}=e;return{th:{color:je("gray.600","gray.400")(e),borderBottom:"1px",borderColor:je(`${t}.100`,`${t}.700`)(e),...s3},td:{borderBottom:"1px",borderColor:je(`${t}.100`,`${t}.700`)(e),...s3},caption:{color:je("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:je(`${t}.100`,`${t}.700`)(e)},td:{background:je(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),sve={simple:ave,striped:ove,unstyled:{}},lve={sm:zv({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:zv({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:zv({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},uve=rve({baseStyle:ive,variants:sve,sizes:lve,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),{defineMultiStyleConfig:cve,definePartsStyle:Uu}=Wr(Ace.keys),fve=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},dve=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}}},pve=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},mve={p:4},hve=Uu(e=>({root:fve(e),tab:dve(e),tablist:pve(e),tabpanel:mve})),vve={sm:Uu({tab:{py:1,px:4,fontSize:"sm"}}),md:Uu({tab:{fontSize:"md",py:2,px:4}}),lg:Uu({tab:{fontSize:"lg",py:3,px:4}})},gve=Uu(e=>{const{colorScheme:t,orientation:n}=e,i=n==="vertical",o=n==="vertical"?"borderStart":"borderBottom",s=i?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[s]:"-2px",_selected:{color:je(`${t}.600`,`${t}.300`)(e),borderColor:"currentColor"},_active:{bg:je("gray.200","whiteAlpha.300")(e)},_disabled:{_active:{bg:"none"}}}}}),bve=Uu(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",_selected:{color:je(`${t}.600`,`${t}.300`)(e),borderColor:"inherit",borderBottomColor:je("white","gray.800")(e)}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),yve=Uu(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",bg:je("gray.50","whiteAlpha.50")(e),mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{bg:je("#fff","gray.800")(e),color:je(`${t}.600`,`${t}.300`)(e),borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),xve=Uu(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Wi(n,`${t}.700`),bg:Wi(n,`${t}.100`)}}}}),Sve=Uu(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:je("gray.600","inherit")(e),_selected:{color:je("#fff","gray.800")(e),bg:je(`${t}.600`,`${t}.300`)(e)}}}}),wve=Uu({}),Cve={line:gve,enclosed:bve,"enclosed-colored":yve,"soft-rounded":xve,"solid-rounded":Sve,unstyled:wve},Nve=cve({baseStyle:hve,sizes:vve,variants:Cve,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:Eve,definePartsStyle:Sm}=Wr(Lce.keys),_ve={fontWeight:"medium",lineHeight:1.2,outline:0,borderRadius:"md",_focusVisible:{boxShadow:"outline"}},Tve={lineHeight:1.2,overflow:"visible"},Rve={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}},kve=Sm({container:_ve,label:Tve,closeButton:Rve}),Ave={sm:Sm({container:{minH:"5",minW:"5",fontSize:"xs",px:"2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Sm({container:{minH:"6",minW:"6",fontSize:"sm",px:"2"}}),lg:Sm({container:{minH:"8",minW:"8",fontSize:"md",px:"3"}})},Lve={subtle:Sm(e=>{var t;return{container:(t=nb.variants)==null?void 0:t.subtle(e)}}),solid:Sm(e=>{var t;return{container:(t=nb.variants)==null?void 0:t.solid(e)}}),outline:Sm(e=>{var t;return{container:(t=nb.variants)==null?void 0:t.outline(e)}})},Ove=Eve({variants:Lve,baseStyle:kve,sizes:Ave,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),PP,Mve={...(PP=sr.baseStyle)==null?void 0:PP.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},IP,Pve={outline:e=>{var t;return((t=sr.variants)==null?void 0:t.outline(e).field)??{}},flushed:e=>{var t;return((t=sr.variants)==null?void 0:t.flushed(e).field)??{}},filled:e=>{var t;return((t=sr.variants)==null?void 0:t.filled(e).field)??{}},unstyled:((IP=sr.variants)==null?void 0:IP.unstyled.field)??{}},DP,$P,FP,zP,Ive={xs:((DP=sr.sizes)==null?void 0:DP.xs.field)??{},sm:(($P=sr.sizes)==null?void 0:$P.sm.field)??{},md:((FP=sr.sizes)==null?void 0:FP.md.field)??{},lg:((zP=sr.sizes)==null?void 0:zP.lg.field)??{}},Dve={baseStyle:Mve,sizes:Ive,variants:Pve,defaultProps:{size:"md",variant:"outline"}},_7=Ho("tooltip-bg"),BP=Ho("tooltip-fg"),$ve=Ho("popper-arrow-bg"),Fve=e=>{const t=je("gray.700","gray.300")(e),n=je("whiteAlpha.900","gray.900")(e);return{bg:_7.reference,color:BP.reference,[_7.variable]:`colors.${t}`,[BP.variable]:`colors.${n}`,[$ve.variable]:_7.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}},zve={baseStyle:Fve},Bve={Accordion:ade,Alert:pde,Avatar:Nde,Badge:nb,Breadcrumb:Pde,Button:Vde,Checkbox:o3,CloseButton:Jde,Code:rpe,Container:ape,Divider:cpe,Drawer:Spe,Editable:Rpe,Form:Ppe,FormError:Bpe,FormLabel:jpe,Heading:Wpe,Input:sr,Kbd:tme,Link:rme,List:lme,Menu:bme,Modal:kme,NumberInput:zme,PinInput:Vme,Popover:the,Progress:uhe,Radio:mhe,Select:She,Skeleton:Ehe,SkipLink:The,Slider:Fhe,Spinner:Uhe,Stat:Zhe,Switch:nve,Table:uve,Tabs:Nve,Tag:Ove,Textarea:Dve,Tooltip:zve},Uve={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},jve=Uve,Vve={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},Hve=Vve,Wve={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"}},Gve=Wve,Yve={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},qve=Yve,Zve={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"},Kve=Zve,Xve={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"},Qve={"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)"},Jve={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},e0e={property:Xve,easing:Qve,duration:Jve},t0e=e0e,n0e={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},r0e=n0e,i0e={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},a0e=i0e,o0e={breakpoints:Hve,zIndices:r0e,radii:qve,blur:a0e,colors:Gve,...CU,sizes:xU,shadows:Kve,space:yU,borders:jve,transition:t0e},s0e={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"}}},l0e={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 u0e(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}var c0e=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function f0e(e){return u0e(e)?c0e.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var d0e="ltr",p0e={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},TU={semanticTokens:s0e,direction:d0e,...o0e,components:Bve,styles:l0e,config:p0e};function m0e(e,t){const n=Ka(e);E.exports.useEffect(()=>{if(t==null)return;let i=null;return i=window.setTimeout(()=>{n()},t),()=>{i&&window.clearTimeout(i)}},[t,n])}var Wc="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/toast/dist/index.esm.js";function S_(e,...t){return h0e(e)?e(...t):e}var h0e=e=>typeof e=="function";function v0e(e,t){const n=e??"bottom",o={"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"}}[n];return o?.[t]??n}var g0e=(e,t)=>e.find(n=>n.id===t);function UP(e,t){const n=RU(e,t),i=n?e[n].findIndex(o=>o.id===t):-1;return{position:n,index:i}}function RU(e,t){for(const[n,i]of Object.entries(e))if(g0e(i,t))return n}function b0e(e){const t=e.includes("right"),n=e.includes("left");let i="center";return t&&(i="flex-end"),n&&(i="flex-start"),{display:"flex",flexDirection:"column",alignItems:i}}function y0e(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,i=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,o=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,s=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",l=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:5500,pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:i,bottom:o,right:s,left:l}}var x0e={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Iu=S0e(x0e);function S0e(e){let t=e;const n=new Set,i=o=>{t=o(t),n.forEach(s=>s())};return{getState:()=>t,subscribe:o=>(n.add(o),()=>{i(()=>e),n.delete(o)}),removeToast:(o,s)=>{i(l=>({...l,[s]:l[s].filter(p=>p.id!=o)}))},notify:(o,s)=>{const l=w0e(o,s),{position:p,id:m}=l;return i(v=>{const b=p.includes("top")?[l,...v[p]??[]]:[...v[p]??[],l];return{...v,[p]:b}}),m},update:(o,s)=>{!o||i(l=>{const p={...l},{position:m,index:v}=UP(p,o);return m&&v!==-1&&(p[m][v]={...p[m][v],...s,message:kU(s)}),p})},closeAll:({positions:o}={})=>{i(s=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((m,v)=>(m[v]=s[v].map(g=>({...g,requestClose:!0})),m),{...s}))},close:o=>{i(s=>{const l=RU(s,o);return l?{...s,[l]:s[l].map(p=>p.id==o?{...p,requestClose:!0}:p)}:s})},isActive:o=>Boolean(UP(Iu.getState(),o).position)}}var jP=0;function w0e(e,t={}){jP+=1;const n=t.id??jP,i=t.position??"bottom";return{id:n,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Iu.removeToast(String(n),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var C0e=e=>{const{status:t,variant:n="solid",id:i,title:o,isClosable:s,onClose:l,description:p,icon:m}=e,v=i?{root:`toast-${i}`,title:`toast-${i}-title`,description:`toast-${i}-description`}:void 0;return Ne.createElement(QF,{addRole:!1,status:t,variant:n,id:v?.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto"},N(ez,{children:m},void 0,!1,{fileName:Wc,lineNumber:237,columnNumber:22},globalThis),Ne.createElement($e.div,{flex:"1",maxWidth:"100%"},o&&N(tz,{id:v?.title,children:o},void 0,!1,{fileName:Wc,lineNumber:240,columnNumber:31},globalThis),p&&N(JF,{id:v?.description,display:"block",children:p},void 0,!1,{fileName:Wc,lineNumber:242,columnNumber:45},globalThis)),s&&N(t4,{size:"sm",onClick:l,position:"absolute",insetEnd:1,top:1},void 0,!1,{fileName:Wc,lineNumber:245,columnNumber:51},globalThis))};function kU(e={}){const{render:t,toastComponent:n=C0e}=e;return o=>typeof t=="function"?t(o):N(n,{...o,...e},void 0,!1,{fileName:Wc,lineNumber:259,columnNumber:28},this)}function N0e(e,t){const n=o=>({...t,...o,position:v0e(o?.position??t?.position,e)}),i=o=>{const s=n(o),l=kU(s);return Iu.notify(l,s)};return i.update=(o,s)=>{Iu.update(o,n(s))},i.promise=(o,s)=>{const l=i({...s.loading,status:"loading",duration:null});o.then(p=>i.update(l,{status:"success",duration:5e3,...S_(s.success,p)})).catch(p=>i.update(l,{status:"error",duration:5e3,...S_(s.error,p)}))},i.closeAll=Iu.closeAll,i.close=Iu.close,i.isActive=Iu.isActive,i}function iy(e){const{theme:t}=f$();return E.exports.useMemo(()=>N0e(t.direction,e),[e,t.direction])}var E0e={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let i=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(i=1),{opacity:0,[n]: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]}}},AU=E.exports.memo(e=>{const{id:t,message:n,onCloseComplete:i,onRequestRemove:o,requestClose:s=!1,position:l="bottom",duration:p=5e3,containerStyle:m,motionVariants:v=E0e,toastSpacing:g="0.5rem"}=e,[b,w]=E.exports.useState(p),C=See();XS(()=>{C||i?.()},[C]),XS(()=>{w(p)},[p]);const T=()=>w(null),R=()=>w(p),L=()=>{C&&o()};E.exports.useEffect(()=>{C&&s&&o()},[C,s,o]),m0e(L,b);const D=E.exports.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:g,...m}),[m,g]),P=E.exports.useMemo(()=>b0e(l),[l]);return Ne.createElement(ll.li,{layout:!0,className:"chakra-toast",variants:v,initial:"initial",animate:"animate",exit:"exit",onHoverStart:T,onHoverEnd:R,custom:{position:l},style:P},Ne.createElement($e.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:D},S_(n,{id:t,onClose:L})))});AU.displayName="ToastComponent";var _0e=e=>{const t=E.exports.useSyncExternalStore(Iu.subscribe,Iu.getState,Iu.getState),{children:n,motionVariants:i,component:o=AU,portalProps:s}=e,p=Object.keys(t).map(m=>{const v=t[m];return N("ul",{role:"region","aria-live":"polite",id:`chakra-toast-manager-${m}`,style:y0e(m),children:N(tf,{initial:!1,children:v.map(g=>N(o,{motionVariants:i,...g},g.id,!1,{fileName:Wc,lineNumber:434,columnNumber:46},globalThis))},void 0,!1,{fileName:Wc,lineNumber:432,columnNumber:24},globalThis)},m,!1,{fileName:Wc,lineNumber:426,columnNumber:28},globalThis)});return N(Gi,{children:[n,N(Om,{...s,children:p},void 0,!1,{fileName:Wc,lineNumber:440,columnNumber:94},globalThis)]},void 0,!0)},VP="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/tooltip/dist/index.esm.js";function T0e(e,t=[]){const n=Object.assign({},e);for(const i of t)i in n&&delete n[i];return n}function R0e(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}var k0e={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 Og(...e){return function(n){e.some(i=>(i?.(n),n?.defaultPrevented))}}var w_=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},C_=e=>{var t,n;return((n=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:n.defaultView)||window};function A0e(e={}){const{openDelay:t=0,closeDelay:n=0,closeOnClick:i=!0,closeOnMouseDown:o,closeOnEsc:s=!0,onOpen:l,onClose:p,placement:m,id:v,isOpen:g,defaultIsOpen:b,arrowSize:w=10,arrowShadowColor:C,arrowPadding:T,modifiers:R,isDisabled:L,gutter:D,offset:P,direction:I,...F}=e,{isOpen:z,onOpen:q,onClose:Y}=Vz({isOpen:g,defaultIsOpen:b,onOpen:l,onClose:p}),{referenceRef:Q,getPopperProps:ie,getArrowInnerProps:ae,getArrowProps:me}=jz({enabled:z,placement:m,arrowPadding:T,modifiers:R,gutter:D,offset:P,direction:I}),ze=E.exports.useId(),ee=`tooltip-${v??ze}`,we=E.exports.useRef(null),ye=E.exports.useRef(),K=E.exports.useRef(),le=E.exports.useCallback(()=>{K.current&&(clearTimeout(K.current),K.current=void 0),Y()},[Y]),ge=L0e(we,le),pe=E.exports.useCallback(()=>{if(!L&&!ye.current){ge();const He=C_(we);ye.current=He.setTimeout(q,t)}},[ge,L,q,t]),Ee=E.exports.useCallback(()=>{ye.current&&(clearTimeout(ye.current),ye.current=void 0);const He=C_(we);K.current=He.setTimeout(le,n)},[n,le]),Oe=E.exports.useCallback(()=>{z&&i&&Ee()},[i,Ee,z]),Pe=E.exports.useCallback(()=>{z&&o&&Ee()},[o,Ee,z]),Xe=E.exports.useCallback(He=>{z&&He.key==="Escape"&&Ee()},[z,Ee]);XE(()=>w_(we),"keydown",s?Xe:void 0),E.exports.useEffect(()=>()=>{clearTimeout(ye.current),clearTimeout(K.current)},[]),XE(()=>we.current,"mouseleave",Ee);const et=E.exports.useCallback((He={},ot=null)=>({...He,ref:ti(we,ot,Q),onMouseEnter:Og(He.onMouseEnter,pe),onClick:Og(He.onClick,Oe),onMouseDown:Og(He.onMouseDown,Pe),onFocus:Og(He.onFocus,pe),onBlur:Og(He.onBlur,Ee),"aria-describedby":z?ee:void 0}),[pe,Ee,Pe,z,ee,Oe,Q]),at=E.exports.useCallback((He={},ot=null)=>ie({...He,style:{...He.style,[Ei.arrowSize.var]:w?`${w}px`:void 0,[Ei.arrowShadowColor.var]:C}},ot),[ie,w,C]),kt=E.exports.useCallback((He={},ot=null)=>{const wt={...He.style,position:"relative",transformOrigin:Ei.transformOrigin.varRef};return{ref:ot,...F,...He,id:ee,role:"tooltip",style:wt}},[F,ee]);return{isOpen:z,show:pe,hide:Ee,getTriggerProps:et,getTooltipProps:kt,getTooltipPositionerProps:at,getArrowProps:me,getArrowInnerProps:ae}}var T7="chakra-ui:close-tooltip";function L0e(e,t){return E.exports.useEffect(()=>{const n=w_(e);return n.addEventListener(T7,t),()=>n.removeEventListener(T7,t)},[t,e]),()=>{const n=w_(e),i=C_(e);n.dispatchEvent(new i.CustomEvent(T7))}}var O0e=$e(ll.div),bo=qe((e,t)=>{const n=xo("Tooltip",e),i=gr(e),o=P3(),{children:s,label:l,shouldWrapChildren:p,"aria-label":m,hasArrow:v,bg:g,portalProps:b,background:w,backgroundColor:C,bgColor:T,...R}=i,L=w??C??g??T;if(L){n.bg=L;const Q=RZ(o,"colors",L);n[Ei.arrowBg.var]=Q}const D=A0e({...R,direction:o.direction}),P=typeof s=="string"||p;let I;if(P)I=Ne.createElement($e.span,{tabIndex:0,...D.getTriggerProps()},s);else{const Q=E.exports.Children.only(s);I=E.exports.cloneElement(Q,D.getTriggerProps(Q.props,Q.ref))}const F=!!m,z=D.getTooltipProps({},t),q=F?T0e(z,["role","id"]):z,Y=R0e(z,["role","id"]);return l?N(Gi,{children:[I,N(tf,{children:D.isOpen&&Ne.createElement(Om,{...b},Ne.createElement($e.div,{...D.getTooltipPositionerProps(),__css:{zIndex:n.zIndex,pointerEvents:"none"}},N(O0e,{variants:k0e,...q,initial:"exit",animate:"enter",exit:"exit",__css:n,children:[l,F&&Ne.createElement($e.span,{srOnly:!0,...Y},m),v&&Ne.createElement($e.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper"},Ne.createElement($e.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:n.bg}}))]},void 0,!0,{fileName:VP,lineNumber:299,columnNumber:22},globalThis)))},void 0,!1,{fileName:VP,lineNumber:291,columnNumber:93},globalThis)]},void 0,!0):N(Gi,{children:s},void 0,!1)});bo.displayName="Tooltip";var nm="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/provider/dist/index.esm.js",M0e=e=>{const{children:t,colorModeManager:n,portalZIndex:i,resetCSS:o=!0,theme:s={},environment:l,cssVarsRoot:p}=e,m=N(Lz,{environment:l,children:t},void 0,!1,{fileName:nm,lineNumber:25,columnNumber:37},globalThis);return N(IX,{theme:s,cssVarsRoot:p,children:N(MD,{colorModeManager:n,options:s.config,children:[o?N(mie,{},void 0,!1,{fileName:nm,lineNumber:34,columnNumber:33},globalThis):N(pie,{},void 0,!1,{fileName:nm,lineNumber:34,columnNumber:87},globalThis),N($X,{},void 0,!1,{fileName:nm,lineNumber:34,columnNumber:143},globalThis),i?N(Wz,{zIndex:i,children:m},void 0,!1,{fileName:nm,lineNumber:34,columnNumber:214},globalThis):m]},void 0,!0,{fileName:nm,lineNumber:31,columnNumber:22},globalThis)},void 0,!1,{fileName:nm,lineNumber:28,columnNumber:26},globalThis)},HP="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/react/dist/index.esm.js";function P0e({children:e,theme:t=TU,toastOptions:n,...i}){return N(M0e,{theme:t,...i,children:[e,N(_0e,{...n},void 0,!1,{fileName:HP,lineNumber:65,columnNumber:32},this)]},void 0,!0,{fileName:HP,lineNumber:62,columnNumber:26},this)}function I0e(...e){let t=[...e],n=e[e.length-1];return f0e(n)&&t.length>1?t=t.slice(0,t.length-1):n=TU,eX(...t.map(i=>o=>_v(i)?i(o):D0e(o,i)))(n)}function D0e(...e){return Gc({},...e,LU)}function LU(e,t,n,i){if((_v(e)||_v(t))&&Object.prototype.hasOwnProperty.call(i,n))return(...o)=>{const s=_v(e)?e(...o):e,l=_v(t)?t(...o):t;return Gc({},s,l,LU)}}function aa(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];{var o=W0e[e],s=o?typeof o=="function"?o.apply(null,n):o:"unknown error nr: "+e;throw Error("[Immer] "+s)}}function Rd(e){return!!e&&!!e[Hr]}function Zc(e){return!!e&&(function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===G0e}(e)||Array.isArray(e)||!!e[XP]||!!e.constructor[XP]||zT(e)||BT(e))}function _m(e,t,n){n===void 0&&(n=!1),l0(e)===0?(n?Object.keys:Uv)(e).forEach(function(i){n&&typeof i=="symbol"||t(i,e[i],e)}):e.forEach(function(i,o){return t(o,i,e)})}function l0(e){var t=e[Hr];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:zT(e)?2:BT(e)?3:0}function Bv(e,t){return l0(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function $0e(e,t){return l0(e)===2?e.get(t):e[t]}function OU(e,t,n){var i=l0(e);i===2?e.set(t,n):i===3?(e.delete(t),e.add(n)):e[t]=n}function MU(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function zT(e){return V0e&&e instanceof Map}function BT(e){return H0e&&e instanceof Set}function pd(e){return e.o||e.t}function UT(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=IU(e);delete t[Hr];for(var n=Uv(t),i=0;i<n.length;i++){var o=n[i],s=t[o];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(t[o]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function jT(e,t){return t===void 0&&(t=!1),VT(e)||Rd(e)||!Zc(e)||(l0(e)>1&&(e.set=e.add=e.clear=e.delete=F0e),Object.freeze(e),t&&_m(e,function(n,i){return jT(i,!0)},!0)),e}function F0e(){aa(2)}function VT(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ju(e){var t=T_[e];return t||aa(18,e),t}function z0e(e,t){T_[e]||(T_[e]=t)}function N_(){return Qv||aa(0),Qv}function R7(e,t){t&&(ju("Patches"),e.u=[],e.s=[],e.v=t)}function l3(e){E_(e),e.p.forEach(B0e),e.p=null}function E_(e){e===Qv&&(Qv=e.l)}function WP(e){return Qv={p:[],l:Qv,h:e,m:!0,_:0}}function B0e(e){var t=e[Hr];t.i===0||t.i===1?t.j():t.O=!0}function k7(e,t){t._=t.p.length;var n=t.p[0],i=e!==void 0&&e!==n;return t.h.g||ju("ES5").S(t,e,i),i?(n[Hr].P&&(l3(t),aa(4)),Zc(e)&&(e=u3(t,e),t.l||c3(t,e)),t.u&&ju("Patches").M(n[Hr].t,e,t.u,t.s)):e=u3(t,n,[]),l3(t),t.u&&t.v(t.u,t.s),e!==PU?e:void 0}function u3(e,t,n){if(VT(t))return t;var i=t[Hr];if(!i)return _m(t,function(s,l){return GP(e,i,t,s,l,n)},!0),t;if(i.A!==e)return t;if(!i.P)return c3(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var o=i.i===4||i.i===5?i.o=UT(i.k):i.o;_m(i.i===3?new Set(o):o,function(s,l){return GP(e,i,o,s,l,n)}),c3(e,o,!1),n&&e.u&&ju("Patches").R(i,n,e.u,e.s)}return i.o}function GP(e,t,n,i,o,s){if(o===n&&aa(5),Rd(o)){var l=u3(e,o,s&&t&&t.i!==3&&!Bv(t.D,i)?s.concat(i):void 0);if(OU(n,i,l),!Rd(l))return;e.m=!1}if(Zc(o)&&!VT(o)){if(!e.h.F&&e._<1)return;u3(e,o),t&&t.A.l||c3(e,o)}}function c3(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&jT(t,n)}function A7(e,t){var n=e[Hr];return(n?pd(n):e)[t]}function YP(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var i=Object.getOwnPropertyDescriptor(n,t);if(i)return i;n=Object.getPrototypeOf(n)}}function md(e){e.P||(e.P=!0,e.l&&md(e.l))}function L7(e){e.o||(e.o=UT(e.t))}function __(e,t,n){var i=zT(t)?ju("MapSet").N(t,n):BT(t)?ju("MapSet").T(t,n):e.g?function(o,s){var l=Array.isArray(o),p={i:l?1:0,A:s?s.A:N_(),P:!1,I:!1,D:{},l:s,t:o,k:null,o:null,j:null,C:!1},m=p,v=kb;l&&(m=[p],v=jg);var g=Proxy.revocable(m,v),b=g.revoke,w=g.proxy;return p.k=w,p.j=b,w}(t,n):ju("ES5").J(t,n);return(n?n.A:N_()).p.push(i),i}function U0e(e){return Rd(e)||aa(22,e),function t(n){if(!Zc(n))return n;var i,o=n[Hr],s=l0(n);if(o){if(!o.P&&(o.i<4||!ju("ES5").K(o)))return o.t;o.I=!0,i=qP(n,s),o.I=!1}else i=qP(n,s);return _m(i,function(l,p){o&&$0e(o.t,l)===p||OU(i,l,t(p))}),s===3?new Set(i):i}(e)}function qP(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return UT(e)}function j0e(){function e(l,p){var m=s[l];return m?m.enumerable=p:s[l]=m={configurable:!0,enumerable:p,get:function(){var v=this[Hr];return o(v),kb.get(v,l)},set:function(v){var g=this[Hr];o(g),kb.set(g,l,v)}},m}function t(l){for(var p=l.length-1;p>=0;p--){var m=l[p][Hr];if(!m.P)switch(m.i){case 5:i(m)&&md(m);break;case 4:n(m)&&md(m)}}}function n(l){for(var p=l.t,m=l.k,v=Uv(m),g=v.length-1;g>=0;g--){var b=v[g];if(b!==Hr){var w=p[b];if(w===void 0&&!Bv(p,b))return!0;var C=m[b],T=C&&C[Hr];if(T?T.t!==w:!MU(C,w))return!0}}var R=!!p[Hr];return v.length!==Uv(p).length+(R?0:1)}function i(l){var p=l.k;if(p.length!==l.t.length)return!0;var m=Object.getOwnPropertyDescriptor(p,p.length-1);if(m&&!m.get)return!0;for(var v=0;v<p.length;v++)if(!p.hasOwnProperty(v))return!0;return!1}function o(l){l.O&&aa(3,JSON.stringify(pd(l)))}var s={};z0e("ES5",{J:function(l,p){var m=Array.isArray(l),v=function(b,w){if(b){for(var C=Array(w.length),T=0;T<w.length;T++)Object.defineProperty(C,""+T,e(T,!0));return C}var R=IU(w);delete R[Hr];for(var L=Uv(R),D=0;D<L.length;D++){var P=L[D];R[P]=e(P,b||!!R[P].enumerable)}return Object.create(Object.getPrototypeOf(w),R)}(m,l),g={i:m?5:4,A:p?p.A:N_(),P:!1,I:!1,D:{},l:p,t:l,k:v,o:null,O:!1,C:!1};return Object.defineProperty(v,Hr,{value:g,writable:!0}),v},S:function(l,p,m){m?Rd(p)&&p[Hr].A===l&&t(l.p):(l.u&&function v(g){if(g&&typeof g=="object"){var b=g[Hr];if(b){var w=b.t,C=b.k,T=b.D,R=b.i;if(R===4)_m(C,function(F){F!==Hr&&(w[F]!==void 0||Bv(w,F)?T[F]||v(C[F]):(T[F]=!0,md(b)))}),_m(w,function(F){C[F]!==void 0||Bv(C,F)||(T[F]=!1,md(b))});else if(R===5){if(i(b)&&(md(b),T.length=!0),C.length<w.length)for(var L=C.length;L<w.length;L++)T[L]=!1;else for(var D=w.length;D<C.length;D++)T[D]=!0;for(var P=Math.min(C.length,w.length),I=0;I<P;I++)C.hasOwnProperty(I)||(T[I]=!0),T[I]===void 0&&v(C[I])}}}}(l.p[0]),t(l.p))},K:function(l){return l.i===4?n(l):i(l)}})}var ZP,Qv,HT=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",V0e=typeof Map<"u",H0e=typeof Set<"u",KP=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",PU=HT?Symbol.for("immer-nothing"):((ZP={})["immer-nothing"]=!0,ZP),XP=HT?Symbol.for("immer-draftable"):"__$immer_draftable",Hr=HT?Symbol.for("immer-state"):"__$immer_state",W0e={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"},G0e=""+Object.prototype.constructor,Uv=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,IU=Object.getOwnPropertyDescriptors||function(e){var t={};return Uv(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},T_={},kb={get:function(e,t){if(t===Hr)return e;var n=pd(e);if(!Bv(n,t))return function(o,s,l){var p,m=YP(s,l);return m?"value"in m?m.value:(p=m.get)===null||p===void 0?void 0:p.call(o.k):void 0}(e,n,t);var i=n[t];return e.I||!Zc(i)?i:i===A7(e.t,t)?(L7(e),e.o[t]=__(e.A.h,i,e)):i},has:function(e,t){return t in pd(e)},ownKeys:function(e){return Reflect.ownKeys(pd(e))},set:function(e,t,n){var i=YP(pd(e),t);if(i?.set)return i.set.call(e.k,n),!0;if(!e.P){var o=A7(pd(e),t),s=o?.[Hr];if(s&&s.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(MU(n,o)&&(n!==void 0||Bv(e.t,t)))return!0;L7(e),md(e)}return e.o[t]===n&&typeof n!="number"&&(n!==void 0||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return A7(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,L7(e),md(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=pd(e),i=Reflect.getOwnPropertyDescriptor(n,t);return i&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:i.enumerable,value:n[t]}},defineProperty:function(){aa(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){aa(12)}},jg={};_m(kb,function(e,t){jg[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),jg.deleteProperty=function(e,t){return isNaN(parseInt(t))&&aa(13),jg.set.call(this,e,t,void 0)},jg.set=function(e,t,n){return t!=="length"&&isNaN(parseInt(t))&&aa(14),kb.set.call(this,e[0],t,n,e[0])};var Y0e=function(){function e(n){var i=this;this.g=KP,this.F=!0,this.produce=function(o,s,l){if(typeof o=="function"&&typeof s!="function"){var p=s;s=o;var m=i;return function(R){var L=this;R===void 0&&(R=p);for(var D=arguments.length,P=Array(D>1?D-1:0),I=1;I<D;I++)P[I-1]=arguments[I];return m.produce(R,function(F){var z;return(z=s).call.apply(z,[L,F].concat(P))})}}var v;if(typeof s!="function"&&aa(6),l!==void 0&&typeof l!="function"&&aa(7),Zc(o)){var g=WP(i),b=__(i,o,void 0),w=!0;try{v=s(b),w=!1}finally{w?l3(g):E_(g)}return typeof Promise<"u"&&v instanceof Promise?v.then(function(R){return R7(g,l),k7(R,g)},function(R){throw l3(g),R}):(R7(g,l),k7(v,g))}if(!o||typeof o!="object"){if((v=s(o))===void 0&&(v=o),v===PU&&(v=void 0),i.F&&jT(v,!0),l){var C=[],T=[];ju("Patches").M(o,v,C,T),l(C,T)}return v}aa(21,o)},this.produceWithPatches=function(o,s){if(typeof o=="function")return function(v){for(var g=arguments.length,b=Array(g>1?g-1:0),w=1;w<g;w++)b[w-1]=arguments[w];return i.produceWithPatches(v,function(C){return o.apply(void 0,[C].concat(b))})};var l,p,m=i.produce(o,s,function(v,g){l=v,p=g});return typeof Promise<"u"&&m instanceof Promise?m.then(function(v){return[v,l,p]}):[m,l,p]},typeof n?.useProxies=="boolean"&&this.setUseProxies(n.useProxies),typeof n?.autoFreeze=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){Zc(n)||aa(8),Rd(n)&&(n=U0e(n));var i=WP(this),o=__(this,n,void 0);return o[Hr].C=!0,E_(i),o},t.finishDraft=function(n,i){var o=n&&n[Hr];o&&o.C||aa(9),o.I&&aa(10);var s=o.A;return R7(s,i),k7(void 0,s)},t.setAutoFreeze=function(n){this.F=n},t.setUseProxies=function(n){n&&!KP&&aa(20),this.g=n},t.applyPatches=function(n,i){var o;for(o=i.length-1;o>=0;o--){var s=i[o];if(s.path.length===0&&s.op==="replace"){n=s.value;break}}o>-1&&(i=i.slice(o+1));var l=ju("Patches").$;return Rd(n)?l(n,i):this.produce(n,function(p){return l(p,i)})},e}(),xs=new Y0e,DU=xs.produce;xs.produceWithPatches.bind(xs);xs.setAutoFreeze.bind(xs);xs.setUseProxies.bind(xs);xs.applyPatches.bind(xs);xs.createDraft.bind(xs);xs.finishDraft.bind(xs);function QP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function JP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QP(Object(n),!0).forEach(function(i){oB(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QP(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}var eI=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),O7=function(){return Math.random().toString(36).substring(7).split("").join(".")},wm={INIT:"@@redux/INIT"+O7(),REPLACE:"@@redux/REPLACE"+O7(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+O7()}};function $U(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 q0e(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(X0e(e))return"date";if(K0e(e))return"error";var n=Z0e(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function Z0e(e){return typeof e.constructor=="function"?e.constructor.name:null}function K0e(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function X0e(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function um(e){var t=typeof e;return t=q0e(e),t}function WT(e,t,n){var i;if(typeof t=="function"&&typeof n=="function"||typeof n=="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 n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error("Expected the enhancer to be a function. Instead, received: '"+um(n)+"'");return n(WT)(e,t)}if(typeof e!="function")throw new Error("Expected the root reducer to be a function. Instead, received: '"+um(e)+"'");var o=e,s=t,l=[],p=l,m=!1;function v(){p===l&&(p=l.slice())}function g(){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 s}function b(R){if(typeof R!="function")throw new Error("Expected the listener to be a function. Instead, received: '"+um(R)+"'");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 L=!0;return v(),p.push(R),function(){if(!!L){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.");L=!1,v();var P=p.indexOf(R);p.splice(P,1),l=null}}}function w(R){if(!$U(R))throw new Error("Actions must be plain objects. Instead, the actual type was: '"+um(R)+"'. 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 R.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,s=o(s,R)}finally{m=!1}for(var L=l=p,D=0;D<L.length;D++){var P=L[D];P()}return R}function C(R){if(typeof R!="function")throw new Error("Expected the nextReducer to be a function. Instead, received: '"+um(R));o=R,w({type:wm.REPLACE})}function T(){var R,L=b;return R={subscribe:function(P){if(typeof P!="object"||P===null)throw new Error("Expected the observer to be an object. Instead, received: '"+um(P)+"'");function I(){P.next&&P.next(g())}I();var F=L(I);return{unsubscribe:F}}},R[eI]=function(){return this},R}return w({type:wm.INIT}),i={dispatch:w,subscribe:b,getState:g,replaceReducer:C},i[eI]=T,i}function R_(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function Q0e(e,t,n,i){var o=Object.keys(t),s=n&&n.type===wm.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(o.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(!$U(e))return"The "+s+' has unexpected type of "'+um(e)+'". Expected argument to be an object with the following '+('keys: "'+o.join('", "')+'"');var l=Object.keys(e).filter(function(p){return!t.hasOwnProperty(p)&&!i[p]});if(l.forEach(function(p){i[p]=!0}),!(n&&n.type===wm.REPLACE)&&l.length>0)return"Unexpected "+(l.length>1?"keys":"key")+" "+('"'+l.join('", "')+'" found in '+s+". ")+"Expected to find one of the known reducer keys instead: "+('"'+o.join('", "')+'". Unexpected keys will be ignored.')}function J0e(e){Object.keys(e).forEach(function(t){var n=e[t],i=n(void 0,{type:wm.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 n(void 0,{type:wm.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 '"+wm.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 FU(e){for(var t=Object.keys(e),n={},i=0;i<t.length;i++){var o=t[i];typeof e[o]>"u"&&R_('No reducer provided for key "'+o+'"'),typeof e[o]=="function"&&(n[o]=e[o])}var s=Object.keys(n),l;l={};var p;try{J0e(n)}catch(m){p=m}return function(v,g){if(v===void 0&&(v={}),p)throw p;{var b=Q0e(v,n,g,l);b&&R_(b)}for(var w=!1,C={},T=0;T<s.length;T++){var R=s[T],L=n[R],D=v[R],P=L(D,g);if(typeof P>"u"){var I=g&&g.type;throw new Error("When called with an action of type "+(I?'"'+String(I)+'"':"(unknown type)")+', the slice reducer for key "'+R+'" 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.')}C[R]=P,w=w||P!==D}return w=w||s.length!==Object.keys(v).length,w?C:v}}function f3(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===0?function(i){return i}:t.length===1?t[0]:t.reduce(function(i,o){return function(){return i(o.apply(void 0,arguments))}})}function e1e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(i){return function(){var o=i.apply(void 0,arguments),s=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},l={getState:o.getState,dispatch:function(){return s.apply(void 0,arguments)}},p=t.map(function(m){return m(l)});return s=f3.apply(void 0,p)(o.dispatch),JP(JP({},o),{},{dispatch:s})}}}function tI(){}typeof tI.name=="string"&&tI.name!=="isCrushed"&&R_('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 d3="NOT_FOUND";function t1e(e){var t;return{get:function(i){return t&&e(t.key,i)?t.value:d3},put:function(i,o){t={key:i,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function n1e(e,t){var n=[];function i(p){var m=n.findIndex(function(g){return t(p,g.key)});if(m>-1){var v=n[m];return m>0&&(n.splice(m,1),n.unshift(v)),v.value}return d3}function o(p,m){i(p)===d3&&(n.unshift({key:p,value:m}),n.length>e&&n.pop())}function s(){return n}function l(){n=[]}return{get:i,put:o,getEntries:s,clear:l}}var r1e=function(t,n){return t===n};function i1e(e){return function(n,i){if(n===null||i===null||n.length!==i.length)return!1;for(var o=n.length,s=0;s<o;s++)if(!e(n[s],i[s]))return!1;return!0}}function a1e(e,t){var n=typeof t=="object"?t:{equalityCheck:t},i=n.equalityCheck,o=i===void 0?r1e:i,s=n.maxSize,l=s===void 0?1:s,p=n.resultEqualityCheck,m=i1e(o),v=l===1?t1e(m):n1e(l,m);function g(){var b=v.get(arguments);if(b===d3){if(b=e.apply(null,arguments),p){var w=v.getEntries(),C=w.find(function(T){return p(T.value,b)});C&&(b=C.value)}v.put(arguments,b)}return b}return g.clearCache=function(){return v.clear()},g}function o1e(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(i){return typeof i=="function"})){var n=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: ["+n+"]")}return t}function s1e(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var o=function(){for(var l=arguments.length,p=new Array(l),m=0;m<l;m++)p[m]=arguments[m];var v=0,g,b={memoizeOptions:void 0},w=p.pop();if(typeof w=="object"&&(b=w,w=p.pop()),typeof w!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof w+"]");var C=b,T=C.memoizeOptions,R=T===void 0?n:T,L=Array.isArray(R)?R:[R],D=o1e(p),P=e.apply(void 0,[function(){return v++,w.apply(null,arguments)}].concat(L)),I=e(function(){for(var z=[],q=D.length,Y=0;Y<q;Y++)z.push(D[Y].apply(null,arguments));return g=P.apply(null,z),g});return Object.assign(I,{resultFunc:w,memoizedResultFunc:P,dependencies:D,lastResult:function(){return g},recomputations:function(){return v},resetRecomputations:function(){return v=0}}),I};return o}var Qa=s1e(a1e);function zU(e){var t=function(i){var o=i.dispatch,s=i.getState;return function(l){return function(p){return typeof p=="function"?p(o,s,e):l(p)}}};return t}var BU=zU();BU.withExtraArgument=zU;const nI=BU;var l1e=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(i[s]=o[s])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function i(){this.constructor=t}t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();globalThis&&globalThis.__generator;var p3=globalThis&&globalThis.__spreadArray||function(e,t){for(var n=0,i=t.length,o=e.length;n<i;n++,o++)e[o]=t[n];return e},u1e=Object.defineProperty,rI=Object.getOwnPropertySymbols,c1e=Object.prototype.hasOwnProperty,f1e=Object.prototype.propertyIsEnumerable,iI=function(e,t,n){return t in e?u1e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Ab=function(e,t){for(var n in t||(t={}))c1e.call(t,n)&&iI(e,n,t[n]);if(rI)for(var i=0,o=rI(t);i<o.length;i++){var n=o[i];f1e.call(t,n)&&iI(e,n,t[n])}return e},d1e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?f3:f3.apply(null,arguments)};function UU(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var n=t;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return t===n}function jU(e,t){var n=0;return{measureTime:function(i){var o=Date.now();try{return i()}finally{var s=Date.now();n+=s-o}},warnIfExceeded:function(){n>e&&console.warn(t+" took "+n+"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 p1e=function(e){l1e(t,e);function t(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=e.apply(this,n)||this;return Object.setPrototypeOf(o,t.prototype),o}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return e.prototype.concat.apply(this,n)},t.prototype.prepend=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return n.length===1&&Array.isArray(n[0])?new(t.bind.apply(t,p3([void 0],n[0].concat(this)))):new(t.bind.apply(t,p3([void 0],n.concat(this))))},t}(Array);function k_(e){return Zc(e)?DU(e,function(){}):e}var m1e="Invariant failed";function aI(e,t){if(!e)throw new Error(m1e+": "+(t||""))}function h1e(e,t,n,i){return JSON.stringify(e,v1e(t,i),n)}function v1e(e,t){var n=[],i=[];return t||(t=function(o,s){return n[0]===s?"[Circular ~]":"[Circular ~."+i.slice(0,n.indexOf(s)).join(".")+"]"}),function(o,s){if(n.length>0){var l=n.indexOf(this);~l?n.splice(l+1):n.push(this),~l?i.splice(l,1/0,o):i.push(o),~n.indexOf(s)&&(s=t.call(this,o,s))}else n.push(s);return e==null?s:e.call(this,o,s)}}function g1e(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function b1e(e,t,n){var i=VU(e,t,n);return{detectMutations:function(){return HU(e,t,i,n)}}}function VU(e,t,n,i){t===void 0&&(t=[]),i===void 0&&(i="");var o={value:n};if(!e(n)){o.children={};for(var s in n){var l=i?i+"."+s:s;t.length&&t.indexOf(l)!==-1||(o.children[s]=VU(e,t,n[s],l))}}return o}function HU(e,t,n,i,o,s){t===void 0&&(t=[]),o===void 0&&(o=!1),s===void 0&&(s="");var l=n?n.value:void 0,p=l===i;if(o&&!p&&!Number.isNaN(i))return{wasMutated:!0,path:s};if(e(l)||e(i))return{wasMutated:!1};var m={};for(var v in n.children)m[v]=!0;for(var v in i)m[v]=!0;for(var v in m){var g=s?s+"."+v:v;if(!(t.length&&t.indexOf(g)!==-1)){var b=HU(e,t,n.children[v],i[v],p,g);if(b.wasMutated)return b}}return{wasMutated:!1}}function y1e(e){e===void 0&&(e={});var t=e.isImmutable,n=t===void 0?g1e:t,i=e.ignoredPaths,o=e.warnAfter,s=o===void 0?32:o,l=e.ignore;i=i||l;var p=b1e.bind(null,n,i);return function(m){var v=m.getState,g=v(),b=p(g),w;return function(C){return function(T){var R=jU(s,"ImmutableStateInvariantMiddleware");R.measureTime(function(){g=v(),w=b.detectMutations(),b=p(g),aI(!w.wasMutated,"A state mutation was detected between dispatches, in the path '"+(w.path||"")+"'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")});var L=C(T);return R.measureTime(function(){g=v(),w=b.detectMutations(),b=p(g),w.wasMutated&&aI(!w.wasMutated,"A state mutation was detected inside a dispatch, in the path: "+(w.path||"")+". Take a look at the reducer(s) handling the action "+h1e(T)+". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")}),R.warnIfExceeded(),L}}}}function WU(e){var t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||UU(e)}function A_(e,t,n,i,o){t===void 0&&(t=""),n===void 0&&(n=WU),o===void 0&&(o=[]);var s;if(!n(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null)return!1;for(var l=i!=null?i(e):Object.entries(e),p=o.length>0,m=0,v=l;m<v.length;m++){var g=v[m],b=g[0],w=g[1],C=t?t+"."+b:b;if(!(p&&o.indexOf(C)>=0)){if(!n(w))return{keyPath:C,value:w};if(typeof w=="object"&&(s=A_(w,C,n,i,o),s))return s}}return!1}function x1e(e){e===void 0&&(e={});var t=e.isSerializable,n=t===void 0?WU:t,i=e.getEntries,o=e.ignoredActions,s=o===void 0?[]:o,l=e.ignoredActionPaths,p=l===void 0?["meta.arg","meta.baseQueryMeta"]:l,m=e.ignoredPaths,v=m===void 0?[]:m,g=e.warnAfter,b=g===void 0?32:g,w=e.ignoreState,C=w===void 0?!1:w,T=e.ignoreActions,R=T===void 0?!1:T;return function(L){return function(D){return function(P){var I=D(P),F=jU(b,"SerializableStateInvariantMiddleware");return!R&&!(s.length&&s.indexOf(P.type)!==-1)&&F.measureTime(function(){var z=A_(P,"",n,i,p);if(z){var q=z.keyPath,Y=z.value;console.error("A non-serializable value was detected in an action, in the path: `"+q+"`. Value:",Y,`
Take a look at the logic that dispatched this action: `,P,`
(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)`)}}),C||(F.measureTime(function(){var z=L.getState(),q=A_(z,"",n,i,v);if(q){var Y=q.keyPath,Q=q.value;console.error("A non-serializable value was detected in the state, in the path: `"+Y+"`. Value:",Q,`
Take a look at the reducer(s) handling this action type: `+P.type+`.
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),F.warnIfExceeded()),I}}}}function M7(e){return typeof e=="boolean"}function S1e(){return function(t){return w1e(t)}}function w1e(e){e===void 0&&(e={});var t=e.thunk,n=t===void 0?!0:t,i=e.immutableCheck,o=i===void 0?!0:i,s=e.serializableCheck,l=s===void 0?!0:s,p=new p1e;n&&(M7(n)?p.push(nI):p.push(nI.withExtraArgument(n.extraArgument)));{if(o){var m={};M7(o)||(m=o),p.unshift(y1e(m))}if(l){var v={};M7(l)||(v=l),p.push(x1e(v))}}return p}var C1e=!1;function N1e(e){var t=S1e(),n=e||{},i=n.reducer,o=i===void 0?void 0:i,s=n.middleware,l=s===void 0?t():s,p=n.devTools,m=p===void 0?!0:p,v=n.preloadedState,g=v===void 0?void 0:v,b=n.enhancers,w=b===void 0?void 0:b,C;if(typeof o=="function")C=o;else if(UU(o))C=FU(o);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 T=l;if(typeof T=="function"&&(T=T(t),!Array.isArray(T)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(T.some(function(I){return typeof I!="function"}))throw new Error("each middleware provided to configureStore must be a function");var R=e1e.apply(void 0,T),L=f3;m&&(L=d1e(Ab({trace:!C1e},typeof m=="object"&&m)));var D=[R];Array.isArray(w)?D=p3([R],w):typeof w=="function"&&(D=w(D));var P=L.apply(void 0,D);return WT(C,g,P)}function yo(e,t){function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(t){var s=t.apply(void 0,i);if(!s)throw new Error("prepareAction did not return an object");return Ab(Ab({type:e,payload:s.payload},"meta"in s&&{meta:s.meta}),"error"in s&&{error:s.error})}return{type:e,payload:i[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(i){return i.type===e},n}function GU(e){var t={},n=[],i,o={addCase:function(s,l){{if(n.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 p=typeof s=="string"?s:s.type;if(p in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[p]=l,o},addMatcher:function(s,l){if(i)throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return n.push({matcher:s,reducer:l}),o},addDefaultCase:function(s){if(i)throw new Error("`builder.addDefaultCase` can only be called once");return i=s,o}};return e(o),[t,n,i]}function E1e(e){return typeof e=="function"}function _1e(e,t,n,i){n===void 0&&(n=[]);var o=typeof t=="function"?GU(t):[t,n,i],s=o[0],l=o[1],p=o[2],m;if(E1e(e))m=function(){return k_(e())};else{var v=k_(e);m=function(){return v}}function g(b,w){b===void 0&&(b=m());var C=p3([s[w.type]],l.filter(function(T){var R=T.matcher;return R(w)}).map(function(T){var R=T.reducer;return R}));return C.filter(function(T){return!!T}).length===0&&(C=[p]),C.reduce(function(T,R){if(R)if(Rd(T)){var L=T,D=R(L,w);return D===void 0?T:D}else{if(Zc(T))return DU(T,function(P){return R(P,w)});var D=R(T,w);if(D===void 0){if(T===null)return T;throw Error("A case reducer on a non-draftable value must not return undefined")}return D}return T},b)}return g.getInitialState=m,g}function T1e(e,t){return e+"/"+t}function GT(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 n=typeof e.initialState=="function"?e.initialState:k_(e.initialState),i=e.reducers||{},o=Object.keys(i),s={},l={},p={};o.forEach(function(g){var b=i[g],w=T1e(t,g),C,T;"reducer"in b?(C=b.reducer,T=b.prepare):C=b,s[g]=C,l[w]=C,p[g]=T?yo(w,T):yo(w)});function m(){var g=typeof e.extraReducers=="function"?GU(e.extraReducers):[e.extraReducers],b=g[0],w=b===void 0?{}:b,C=g[1],T=C===void 0?[]:C,R=g[2],L=R===void 0?void 0:R,D=Ab(Ab({},w),l);return _1e(n,D,T,L)}var v;return{name:t,reducer:function(g,b){return v||(v=m()),v(g,b)},actions:p,caseReducers:s,getInitialState:function(){return v||(v=m()),v.getInitialState()}}}var YT="listenerMiddleware";yo(YT+"/add");yo(YT+"/removeAll");yo(YT+"/remove");j0e();var YU={exports:{}},qU={};/**
* @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=E.exports,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(I){{for(var F=arguments.length,z=new Array(F>1?F-1:0),q=1;q<F;q++)z[q-1]=arguments[q];i("error",I,z)}}function i(I,F,z){{var q=t.ReactDebugCurrentFrame,Y=q.getStackAddendum();Y!==""&&(F+="%s",z=z.concat([Y]));var Q=z.map(function(ie){return String(ie)});Q.unshift("Warning: "+F),Function.prototype.apply.call(console[I],console,Q)}}function o(I,F){return I===F&&(I!==0||1/I===1/F)||I!==I&&F!==F}var s=typeof Object.is=="function"?Object.is:o,l=e.useState,p=e.useEffect,m=e.useLayoutEffect,v=e.useDebugValue,g=!1,b=!1;function w(I,F,z){g||e.startTransition!==void 0&&(g=!0,n("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 q=F();if(!b){var Y=F();s(q,Y)||(n("The result of getSnapshot should be cached to avoid an infinite loop"),b=!0)}var Q=l({inst:{value:q,getSnapshot:F}}),ie=Q[0].inst,ae=Q[1];return m(function(){ie.value=q,ie.getSnapshot=F,C(ie)&&ae({inst:ie})},[I,q,F]),p(function(){C(ie)&&ae({inst:ie});var me=function(){C(ie)&&ae({inst:ie})};return I(me)},[I]),v(q),q}function C(I){var F=I.getSnapshot,z=I.value;try{var q=F();return!s(z,q)}catch{return!0}}function T(I,F,z){return F()}var R=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",L=!R,D=L?T:w,P=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:D;qU.useSyncExternalStore=P,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})();(function(e){e.exports=qU})(YU);var ZU={exports:{}},KU={};/**
* @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=E.exports,t=YU.exports;function n(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}var i=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,s=e.useRef,l=e.useEffect,p=e.useMemo,m=e.useDebugValue;function v(g,b,w,C,T){var R=s(null),L;R.current===null?(L={hasValue:!1,value:null},R.current=L):L=R.current;var D=p(function(){var z=!1,q,Y,Q=function(ze){if(!z){z=!0,q=ze;var te=C(ze);if(T!==void 0&&L.hasValue){var ee=L.value;if(T(ee,te))return Y=ee,ee}return Y=te,te}var we=q,ye=Y;if(i(we,ze))return ye;var K=C(ze);return T!==void 0&&T(ye,K)?ye:(q=ze,Y=K,K)},ie=w===void 0?null:w,ae=function(){return Q(b())},me=ie===null?void 0:function(){return Q(ie())};return[ae,me]},[b,w,C,T]),P=D[0],I=D[1],F=o(g,P,I);return l(function(){L.hasValue=!0,L.value=F},[F]),m(F),F}KU.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=KU})(ZU);function R1e(e){e()}let XU=R1e;const k1e=e=>XU=e,A1e=()=>XU,Kc=Ne.createContext(null);Kc.displayName="ReactRedux";function QU(){const e=E.exports.useContext(Kc);if(!e)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return e}const L1e=()=>{throw new Error("uSES not initialized!")};let JU=L1e;const O1e=e=>{JU=e},M1e=(e,t)=>e===t;function P1e(e=Kc){const t=e===Kc?QU:()=>E.exports.useContext(e);return function(i,o=M1e){{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 o!="function")throw new Error("You must pass a function as an equality function to useSelector")}const{store:s,subscription:l,getServerState:p}=t(),m=JU(l.addNestedSub,s.getState,p||s.getState,i,o);return E.exports.useDebugValue(m),m}}const I1e=P1e();var D1e={exports:{}},mr={};/**
* @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"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),p=Symbol.for("react.server_context"),m=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),T=!1,R=!1,L=!1,D=!1,P=!1,I;I=Symbol.for("react.module.reference");function F(Ce){return!!(typeof Ce=="string"||typeof Ce=="function"||Ce===n||Ce===o||P||Ce===i||Ce===v||Ce===g||D||Ce===C||T||R||L||typeof Ce=="object"&&Ce!==null&&(Ce.$$typeof===w||Ce.$$typeof===b||Ce.$$typeof===s||Ce.$$typeof===l||Ce.$$typeof===m||Ce.$$typeof===I||Ce.getModuleId!==void 0))}function z(Ce){if(typeof Ce=="object"&&Ce!==null){var nt=Ce.$$typeof;switch(nt){case e:var Ct=Ce.type;switch(Ct){case n:case o:case i:case v:case g:return Ct;default:var rt=Ct&&Ct.$$typeof;switch(rt){case p:case l:case m:case w:case b:case s:return rt;default:return nt}}case t:return nt}}}var q=l,Y=s,Q=e,ie=m,ae=n,me=w,ze=b,te=t,ee=o,we=i,ye=v,K=g,le=!1,ge=!1;function pe(Ce){return le||(le=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Ee(Ce){return ge||(ge=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Oe(Ce){return z(Ce)===l}function Pe(Ce){return z(Ce)===s}function Xe(Ce){return typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===e}function et(Ce){return z(Ce)===m}function at(Ce){return z(Ce)===n}function kt(Ce){return z(Ce)===w}function He(Ce){return z(Ce)===b}function ot(Ce){return z(Ce)===t}function wt(Ce){return z(Ce)===o}function It(Ce){return z(Ce)===i}function We(Ce){return z(Ce)===v}function Vt(Ce){return z(Ce)===g}mr.ContextConsumer=q,mr.ContextProvider=Y,mr.Element=Q,mr.ForwardRef=ie,mr.Fragment=ae,mr.Lazy=me,mr.Memo=ze,mr.Portal=te,mr.Profiler=ee,mr.StrictMode=we,mr.Suspense=ye,mr.SuspenseList=K,mr.isAsyncMode=pe,mr.isConcurrentMode=Ee,mr.isContextConsumer=Oe,mr.isContextProvider=Pe,mr.isElement=Xe,mr.isForwardRef=et,mr.isFragment=at,mr.isLazy=kt,mr.isMemo=He,mr.isPortal=ot,mr.isProfiler=wt,mr.isStrictMode=It,mr.isSuspense=We,mr.isSuspenseList=Vt,mr.isValidElementType=F,mr.typeOf=z})();(function(e){e.exports=mr})(D1e);function $1e(){const e=A1e();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let i=t;for(;i;)i.callback(),i=i.next})},get(){let i=[],o=t;for(;o;)i.push(o),o=o.next;return i},subscribe(i){let o=!0,s=n={callback:i,next:null,prev:n};return s.prev?s.prev.next=s:t=s,function(){!o||t===null||(o=!1,s.next?s.next.prev=s.prev:n=s.prev,s.prev?s.prev.next=s.next:t=s.next)}}}}const oI={notify(){},get:()=>[]};function F1e(e,t){let n,i=oI;function o(b){return m(),i.subscribe(b)}function s(){i.notify()}function l(){g.onStateChange&&g.onStateChange()}function p(){return Boolean(n)}function m(){n||(n=t?t.addNestedSub(l):e.subscribe(l),i=$1e())}function v(){n&&(n(),n=void 0,i.clear(),i=oI)}const g={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:p,trySubscribe:m,tryUnsubscribe:v,getListeners:()=>i};return g}const z1e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",B1e=z1e?E.exports.useLayoutEffect:E.exports.useEffect;var U1e="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/react-redux/es/components/Provider.js";function j1e({store:e,context:t,children:n,serverState:i}){const o=E.exports.useMemo(()=>{const p=F1e(e);return{store:e,subscription:p,getServerState:i?()=>i:void 0}},[e,i]),s=E.exports.useMemo(()=>e.getState(),[e]);return B1e(()=>{const{subscription:p}=o;return p.onStateChange=p.notifyNestedSubs,p.trySubscribe(),s!==e.getState()&&p.notifyNestedSubs(),()=>{p.tryUnsubscribe(),p.onStateChange=void 0}},[o,s]),N((t||Kc).Provider,{value:o,children:n},void 0,!1,{fileName:U1e,lineNumber:39,columnNumber:23},this)}function ej(e=Kc){const t=e===Kc?QU:()=>E.exports.useContext(e);return function(){const{store:i}=t();return i}}const V1e=ej();function H1e(e=Kc){const t=e===Kc?V1e:ej(e);return function(){return t().dispatch}}const W1e=H1e();O1e(ZU.exports.useSyncExternalStoreWithSelector);k1e(ef.exports.unstable_batchedUpdates);var qT="persist:",tj="persist/FLUSH",ZT="persist/REHYDRATE",nj="persist/PAUSE",rj="persist/PERSIST",ij="persist/PURGE",aj="persist/REGISTER",G1e=-1;function ob(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ob=function(n){return typeof n}:ob=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ob(e)}function sI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function Y1e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sI(n,!0).forEach(function(i){q1e(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sI(n).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function q1e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z1e(e,t,n,i){var o=i.debug,s=Y1e({},n);return e&&ob(e)==="object"&&Object.keys(e).forEach(function(l){if(l!=="_persist"){if(t[l]!==n[l]){o&&console.log("redux-persist/stateReconciler: sub state for key `%s` modified, skipping.",l);return}s[l]=e[l]}}),o&&e&&ob(e)==="object"&&console.log("redux-persist/stateReconciler: rehydrated keys '".concat(Object.keys(e).join(", "),"'")),s}function K1e(e){var t=e.blacklist||null,n=e.whitelist||null,i=e.transforms||[],o=e.throttle||0,s="".concat(e.keyPrefix!==void 0?e.keyPrefix:qT).concat(e.key),l=e.storage,p;e.serialize===!1?p=function(z){return z}:typeof e.serialize=="function"?p=e.serialize:p=X1e;var m=e.writeFailHandler||null,v={},g={},b=[],w=null,C=null,T=function(z){Object.keys(z).forEach(function(q){!D(q)||v[q]!==z[q]&&b.indexOf(q)===-1&&b.push(q)}),Object.keys(v).forEach(function(q){z[q]===void 0&&D(q)&&b.indexOf(q)===-1&&v[q]!==void 0&&b.push(q)}),w===null&&(w=setInterval(R,o)),v=z};function R(){if(b.length===0){w&&clearInterval(w),w=null;return}var F=b.shift(),z=i.reduce(function(q,Y){return Y.in(q,F,v)},v[F]);if(z!==void 0)try{g[F]=p(z)}catch(q){console.error("redux-persist/createPersistoid: error serializing state",q)}else delete g[F];b.length===0&&L()}function L(){Object.keys(g).forEach(function(F){v[F]===void 0&&delete g[F]}),C=l.setItem(s,p(g)).catch(P)}function D(F){return!(n&&n.indexOf(F)===-1&&F!=="_persist"||t&&t.indexOf(F)!==-1)}function P(F){m&&m(F),F&&console.error("Error storing data",F)}var I=function(){for(;b.length!==0;)R();return C||Promise.resolve()};return{update:T,flush:I}}function X1e(e){return JSON.stringify(e)}function Q1e(e){var t=e.transforms||[],n="".concat(e.keyPrefix!==void 0?e.keyPrefix:qT).concat(e.key),i=e.storage,o=e.debug,s;return e.deserialize===!1?s=function(p){return p}:typeof e.deserialize=="function"?s=e.deserialize:s=J1e,i.getItem(n).then(function(l){if(l)try{var p={},m=s(l);return Object.keys(m).forEach(function(v){p[v]=t.reduceRight(function(g,b){return b.out(g,v,m)},s(m[v]))}),p}catch(v){throw o&&console.log("redux-persist/getStoredState: Error restoring data ".concat(l),v),v}else return})}function J1e(e){return JSON.parse(e)}function ege(e){var t=e.storage,n="".concat(e.keyPrefix!==void 0?e.keyPrefix:qT).concat(e.key);return t.removeItem(n,tge)}function tge(e){e&&console.error("redux-persist/purgeStoredState: Error purging data stored state",e)}function lI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function zc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lI(n,!0).forEach(function(i){nge(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lI(n).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function nge(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rge(e,t){if(e==null)return{};var n=ige(e,t),i,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)i=s[o],!(t.indexOf(i)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,i)||(n[i]=e[i]))}return n}function ige(e,t){if(e==null)return{};var n={},i=Object.keys(e),o,s;for(s=0;s<i.length;s++)o=i[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var age=5e3;function oj(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 n=e.version!==void 0?e.version:G1e;e.debug;var i=e.stateReconciler===void 0?Z1e:e.stateReconciler,o=e.getStoredState||Q1e,s=e.timeout!==void 0?e.timeout:age,l=null,p=!1,m=!0,v=function(b){return b._persist.rehydrated&&l&&!m&&l.update(b),b};return function(g,b){var w=g||{},C=w._persist,T=rge(w,["_persist"]),R=T;if(b.type===rj){var L=!1,D=function(Q,ie){L&&console.error('redux-persist: rehydrate for "'.concat(e.key,'" called after timeout.'),Q,ie),L||(b.rehydrate(e.key,Q,ie),L=!0)};if(s&&setTimeout(function(){!L&&D(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},s),m=!1,l||(l=K1e(e)),C)return zc({},t(R,b),{_persist:C});if(typeof b.rehydrate!="function"||typeof b.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 b.register(e.key),o(e).then(function(Y){var Q=e.migrate||function(ie,ae){return Promise.resolve(ie)};Q(Y,n).then(function(ie){D(ie)},function(ie){ie&&console.error("redux-persist: migration error",ie),D(void 0,ie)})},function(Y){D(void 0,Y)}),zc({},t(R,b),{_persist:{version:n,rehydrated:!1}})}else{if(b.type===ij)return p=!0,b.result(ege(e)),zc({},t(R,b),{_persist:C});if(b.type===tj)return b.result(l&&l.flush()),zc({},t(R,b),{_persist:C});if(b.type===nj)m=!0;else if(b.type===ZT){if(p)return zc({},R,{_persist:zc({},C,{rehydrated:!0})});if(b.key===e.key){var P=t(R,b),I=b.payload,F=i!==!1&&I!==void 0?i(I,g,P,e):P,z=zc({},F,{_persist:zc({},C,{rehydrated:!0})});return v(z)}}}if(!C)return t(g,b);var q=t(R,b);return q===R?g:v(zc({},q,{_persist:C}))}}function uI(e){return lge(e)||sge(e)||oge()}function oge(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function sge(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function lge(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function cI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function L_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cI(n,!0).forEach(function(i){uge(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cI(n).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function uge(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sj={registry:[],bootstrapped:!1},cge=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:sj,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case aj:return L_({},t,{registry:[].concat(uI(t.registry),[n.key])});case ZT:var i=t.registry.indexOf(n.key),o=uI(t.registry);return o.splice(i,1),L_({},t,{registry:o,bootstrapped:o.length===0});default:return t}};function fge(e,t,n){{var i=t||{},o=["blacklist","whitelist","transforms","storage","keyPrefix","migrate"];o.forEach(function(g){i[g]&&console.error('redux-persist: invalid option passed to persistStore: "'.concat(g,'". You may be incorrectly passing persistConfig into persistStore, whereas it should be passed into persistReducer.'))})}var s=n||!1,l=WT(cge,sj,t&&t.enhancer?t.enhancer:void 0),p=function(b){l.dispatch({type:aj,key:b})},m=function(b,w,C){var T={type:ZT,payload:w,err:C,key:b};e.dispatch(T),l.dispatch(T),s&&v.getState().bootstrapped&&(s(),s=!1)},v=L_({},l,{purge:function(){var b=[];return e.dispatch({type:ij,result:function(C){b.push(C)}}),Promise.all(b)},flush:function(){var b=[];return e.dispatch({type:tj,result:function(C){b.push(C)}}),Promise.all(b)},pause:function(){e.dispatch({type:nj})},persist:function(){e.dispatch({type:rj,register:p,rehydrate:m})}});return t&&t.manualPersist||v.persist(),v}var KT={},XT={};XT.__esModule=!0;XT.default=mge;function xS(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xS=function(n){return typeof n}:xS=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},xS(e)}function P7(){}var dge={getItem:P7,setItem:P7,removeItem:P7};function pge(e){if((typeof self>"u"?"undefined":xS(self))!=="object"||!(e in self))return!1;try{var t=self[e],n="redux-persist ".concat(e," test");t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch{return console.warn("redux-persist ".concat(e," test failed, persistence will be disabled.")),!1}return!0}function mge(e){var t="".concat(e,"Storage");return pge(t)?self[t]:(console.error("redux-persist failed to create sync storage. falling back to noop storage."),dge)}KT.__esModule=!0;KT.default=gge;var hge=vge(XT);function vge(e){return e&&e.__esModule?e:{default:e}}function gge(e){var t=(0,hge.default)(e);return{getItem:function(i){return new Promise(function(o,s){o(t.getItem(i))})},setItem:function(i,o){return new Promise(function(s,l){s(t.setItem(i,o))})},removeItem:function(i){return new Promise(function(o,s){o(t.removeItem(i))})}}}var QT=void 0,bge=yge(KT);function yge(e){return e&&e.__esModule?e:{default:e}}var xge=(0,bge.default)("local");QT=xge;const SS=e=>e.length===1?e[0].prompt:e.map(t=>`${t.prompt}:${t.weight}`).join(" "),Sge=e=>{const i=e.split(",").map(o=>o.split(":")).map(o=>({seed:Number(o[0]),weight:Number(o[1])}));return JT(i)?i:!1},JT=e=>Boolean(typeof e=="string"?Sge(e):e.length&&!e.some(t=>{const{seed:n,weight:i}=t,o=!isNaN(parseInt(n.toString(),10)),s=!isNaN(parseInt(i.toString(),10))&&i>=0&&i<=1;return!(o&&s)})),m3=e=>e.reduce((t,n,i,o)=>{const{seed:s,weight:l}=n;return t+=`${s}:${l}`,i!==o.length-1&&(t+=","),t},""),wge=e=>e.split(",").map(i=>i.split(":")).map(i=>[parseInt(i[0]),parseFloat(i[1])]),lj={prompt:"",iterations:1,steps:50,cfgScale:7.5,height:512,width:512,sampler:"k_lms",threshold:0,perlin:0,seed:0,seamless:!1,hiresFix:!1,shouldUseInitImage:!1,img2imgStrength:.75,initialImagePath:null,maskPath:"",shouldFitToWidthHeight:!0,shouldGenerateVariations:!1,variationAmount:.1,seedWeights:"",shouldRunESRGAN:!1,upscalingLevel:4,upscalingStrength:.75,shouldRunFacetool:!1,facetoolStrength:.8,facetoolType:"gfpgan",codeformerFidelity:.75,shouldRandomizeSeed:!0,showAdvancedOptions:!0,activeTab:0,shouldShowImageDetails:!1,shouldShowGallery:!1},Cge=lj,uj=GT({name:"options",initialState:Cge,reducers:{setPrompt:(e,t)=>{const n=t.payload;typeof n=="string"?e.prompt=n:e.prompt=SS(n)},setIterations:(e,t)=>{e.iterations=t.payload},setSteps:(e,t)=>{e.steps=t.payload},setCfgScale:(e,t)=>{e.cfgScale=t.payload},setThreshold:(e,t)=>{e.threshold=t.payload},setPerlin:(e,t)=>{e.perlin=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)=>{e.img2imgStrength=t.payload},setFacetoolStrength:(e,t)=>{e.facetoolStrength=t.payload},setCodeformerFidelity:(e,t)=>{e.codeformerFidelity=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 n=t.payload;e.shouldUseInitImage=!!n,e.initialImagePath=n},setMaskPath:(e,t)=>{e.maskPath=t.payload},setSeamless:(e,t)=>{e.seamless=t.payload},setHiresFix:(e,t)=>{e.hiresFix=t.payload},setShouldFitToWidthHeight:(e,t)=>{e.shouldFitToWidthHeight=t.payload},resetSeed:e=>{e.seed=-1},setParameter:(e,t)=>{const{key:n,value:i}=t.payload,o={...e,[n]:i};return n==="seed"&&(o.shouldRandomizeSeed=!1),n==="initialImagePath"&&i===""&&(o.shouldUseInitImage=!1),o},setShouldGenerateVariations:(e,t)=>{e.shouldGenerateVariations=t.payload},setVariationAmount:(e,t)=>{e.variationAmount=t.payload},setSeedWeights:(e,t)=>{e.seedWeights=t.payload},setAllTextToImageParameters:(e,t)=>{const{sampler:n,prompt:i,seed:o,variations:s,steps:l,cfg_scale:p,threshold:m,perlin:v,seamless:g,hires_fix:b,width:w,height:C}=t.payload.image;s&&s.length>0?(e.seedWeights=m3(s),e.shouldGenerateVariations=!0):e.shouldGenerateVariations=!1,o&&(e.seed=o,e.shouldRandomizeSeed=!1),i&&(e.prompt=SS(i)),n&&(e.sampler=n),l&&(e.steps=l),p&&(e.cfgScale=p),m&&(e.threshold=m),typeof m>"u"&&(e.threshold=0),v&&(e.perlin=v),typeof v>"u"&&(e.perlin=0),typeof g=="boolean"&&(e.seamless=g),typeof b=="boolean"&&(e.hiresFix=b),w&&(e.width=w),C&&(e.height=C)},setAllImageToImageParameters:(e,t)=>{const{type:n,strength:i,fit:o,init_image_path:s,mask_image_path:l}=t.payload.image;n==="img2img"?(s&&(e.initialImagePath=s),l&&(e.maskPath=l),i&&(e.img2imgStrength=i),typeof o=="boolean"&&(e.shouldFitToWidthHeight=o),e.shouldUseInitImage=!0):e.shouldUseInitImage=!1},setAllParameters:(e,t)=>{const{type:n,sampler:i,prompt:o,seed:s,variations:l,steps:p,cfg_scale:m,threshold:v,perlin:g,seamless:b,hires_fix:w,width:C,height:T,strength:R,fit:L,init_image_path:D,mask_image_path:P}=t.payload.image;n==="img2img"?(D&&(e.initialImagePath=D),P&&(e.maskPath=P),R&&(e.img2imgStrength=R),typeof L=="boolean"&&(e.shouldFitToWidthHeight=L),e.shouldUseInitImage=!0):e.shouldUseInitImage=!1,l&&l.length>0?(e.seedWeights=m3(l),e.shouldGenerateVariations=!0):e.shouldGenerateVariations=!1,s&&(e.seed=s,e.shouldRandomizeSeed=!1),o&&(e.prompt=SS(o)),i&&(e.sampler=i),p&&(e.steps=p),m&&(e.cfgScale=m),v&&(e.threshold=v),typeof v>"u"&&(e.threshold=0),g&&(e.perlin=g),typeof g>"u"&&(e.perlin=0),typeof b=="boolean"&&(e.seamless=b),typeof w=="boolean"&&(e.hiresFix=w),C&&(e.width=C),T&&(e.height=T)},resetOptionsState:e=>({...e,...lj}),setShouldRunFacetool:(e,t)=>{e.shouldRunFacetool=t.payload},setFacetoolType:(e,t)=>{e.facetoolType=t.payload},setShouldRunESRGAN:(e,t)=>{e.shouldRunESRGAN=t.payload},setShouldRandomizeSeed:(e,t)=>{e.shouldRandomizeSeed=t.payload},setShowAdvancedOptions:(e,t)=>{e.showAdvancedOptions=t.payload},setActiveTab:(e,t)=>{e.activeTab=t.payload},setShouldShowImageDetails:(e,t)=>{e.shouldShowImageDetails=t.payload},setShouldShowGallery:(e,t)=>{e.shouldShowGallery=t.payload}}}),{setPrompt:eR,setIterations:Nge,setSteps:cj,setCfgScale:fj,setThreshold:Ege,setPerlin:_ge,setHeight:dj,setWidth:pj,setSampler:mj,setSeed:ay,setSeamless:hj,setHiresFix:vj,setImg2imgStrength:gj,setFacetoolStrength:wS,setFacetoolType:CS,setCodeformerFidelity:bj,setUpscalingLevel:O_,setUpscalingStrength:M_,setShouldUseInitImage:C4e,setInitialImagePath:Tm,setMaskPath:P_,resetSeed:N4e,resetOptionsState:E4e,setShouldFitToWidthHeight:yj,setParameter:_4e,setShouldGenerateVariations:Tge,setSeedWeights:xj,setVariationAmount:Rge,setAllParameters:kge,setShouldRunFacetool:Age,setShouldRunESRGAN:Lge,setShouldRandomizeSeed:Oge,setShowAdvancedOptions:Mge,setActiveTab:Lu,setShouldShowImageDetails:Pge,setShouldShowGallery:fI,setAllTextToImageParameters:Ige,setAllImageToImageParameters:Dge}=uj.actions,$ge=uj.reducer;var Xa={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 n,i="4.17.21",o=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",p="Invalid `variable` option passed into `_.template`",m="__lodash_hash_undefined__",v=500,g="__lodash_placeholder__",b=1,w=2,C=4,T=1,R=2,L=1,D=2,P=4,I=8,F=16,z=32,q=64,Y=128,Q=256,ie=512,ae=30,me="...",ze=800,te=16,ee=1,we=2,ye=3,K=1/0,le=9007199254740991,ge=17976931348623157e292,pe=0/0,Ee=4294967295,Oe=Ee-1,Pe=Ee>>>1,Xe=[["ary",Y],["bind",L],["bindKey",D],["curry",I],["curryRight",F],["flip",ie],["partial",z],["partialRight",q],["rearg",Q]],et="[object Arguments]",at="[object Array]",kt="[object AsyncFunction]",He="[object Boolean]",ot="[object Date]",wt="[object DOMException]",It="[object Error]",We="[object Function]",Vt="[object GeneratorFunction]",Ce="[object Map]",nt="[object Number]",Ct="[object Null]",rt="[object Object]",sn="[object Promise]",On="[object Proxy]",Tt="[object RegExp]",ln="[object Set]",Mn="[object String]",yn="[object Symbol]",Ze="[object Undefined]",tt="[object WeakMap]",rn="[object WeakSet]",Dt="[object ArrayBuffer]",Ie="[object DataView]",Zt="[object Float32Array]",Tn="[object Float64Array]",Ge="[object Int8Array]",ut="[object Int16Array]",At="[object Int32Array]",gn="[object Uint8Array]",en="[object Uint8ClampedArray]",Rn="[object Uint16Array]",Fn="[object Uint32Array]",zr=/\b__p \+= '';/g,Pn=/\b(__p \+=) '' \+/g,Ti=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Vn=/&(?:amp|lt|gt|quot|#39);/g,kn=/[&<>"']/g,Ri=RegExp(Vn.source),Er=RegExp(kn.source),Wo=/<%-([\s\S]+?)%>/g,Ss=/<%([\s\S]+?)%>/g,ws=/<%=([\s\S]+?)%>/g,Go=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Yo=/^\w*$/,xr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Yi=/[\\^$.*+?()[\]{}|]/g,Ja=RegExp(Yi.source),qi=/^\s+/,X=/\s/,Ve=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Qe=/\{\n\/\* \[wrapped with (.+)\] \*/,_t=/,? & /,un=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Cn=/[()=,{}\[\]\/\s]/,st=/\\(\\)?/g,Kt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Hn=/\w*$/,Un=/^[-+]0x[0-9a-f]+$/i,fn=/^0b[01]+$/i,Kr=/^\[object .+?Constructor\]$/,Aa=/^0o[0-7]+$/i,qo=/^(?:0|[1-9]\d*)$/,ki=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wo=/($^)/,Xu=/['\n\r\u2028\u2029\\]/g,La="\\ud800-\\udfff",cl="\\u0300-\\u036f",eo="\\ufe20-\\ufe2f",tn="\\u20d0-\\u20ff",to=cl+eo+tn,Ai="\\u2700-\\u27bf",Zo="a-z\\xdf-\\xf6\\xf8-\\xff",Cs="\\xac\\xb1\\xd7\\xf7",Ko="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ns="\\u2000-\\u206f",Es=" \\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",Xo="A-Z\\xc0-\\xd6\\xd8-\\xde",Qo="\\ufe0e\\ufe0f",_s=Cs+Ko+Ns+Es,fl="['\u2019]",dl="["+La+"]",Oa="["+_s+"]",Gr="["+to+"]",Zi="\\d+",Li="["+Ai+"]",Ki="["+Zo+"]",Ts="[^"+La+_s+Zi+Ai+Zo+Xo+"]",Jo="\\ud83c[\\udffb-\\udfff]",Rs="(?:"+Gr+"|"+Jo+")",Jl="[^"+La+"]",Oi="(?:\\ud83c[\\udde6-\\uddff]){2}",es="[\\ud800-\\udbff][\\udc00-\\udfff]",Xi="["+Xo+"]",Ma="\\u200d",pl="(?:"+Ki+"|"+Ts+")",dn="(?:"+Xi+"|"+Ts+")",Pa="(?:"+fl+"(?:d|ll|m|re|s|t|ve))?",ts="(?:"+fl+"(?:D|LL|M|RE|S|T|VE))?",Wt=Rs+"?",ml="["+Qo+"]?",_r="(?:"+Ma+"(?:"+[Jl,Oi,es].join("|")+")"+ml+Wt+")*",no="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",oa="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Co=ml+Wt+_r,Pr="(?:"+[Li,Oi,es].join("|")+")"+Co,lr="(?:"+[Jl+Gr+"?",Gr,Oi,es,dl].join("|")+")",ns=RegExp(fl,"g"),ri=RegExp(Gr,"g"),br=RegExp(Jo+"(?="+Jo+")|"+lr+Co,"g"),di=RegExp([Xi+"?"+Ki+"+"+Pa+"(?="+[Oa,Xi,"$"].join("|")+")",dn+"+"+ts+"(?="+[Oa,Xi+pl,"$"].join("|")+")",Xi+"?"+pl+"+"+Pa,Xi+"+"+ts,oa,no,Zi,Pr].join("|"),"g"),Qu=RegExp("["+Ma+La+to+Qo+"]"),No=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ia=["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"],hl=-1,bn={};bn[Zt]=bn[Tn]=bn[Ge]=bn[ut]=bn[At]=bn[gn]=bn[en]=bn[Rn]=bn[Fn]=!0,bn[et]=bn[at]=bn[Dt]=bn[He]=bn[Ie]=bn[ot]=bn[It]=bn[We]=bn[Ce]=bn[nt]=bn[rt]=bn[Tt]=bn[ln]=bn[Mn]=bn[tt]=!1;var zn={};zn[et]=zn[at]=zn[Dt]=zn[Ie]=zn[He]=zn[ot]=zn[Zt]=zn[Tn]=zn[Ge]=zn[ut]=zn[At]=zn[Ce]=zn[nt]=zn[rt]=zn[Tt]=zn[ln]=zn[Mn]=zn[yn]=zn[gn]=zn[en]=zn[Rn]=zn[Fn]=!0,zn[It]=zn[We]=zn[tt]=!1;var eu={\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"},Qi={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},W={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},ne={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},be=parseFloat,ct=parseInt,pn=typeof jc=="object"&&jc&&jc.Object===Object&&jc,Bn=typeof self=="object"&&self&&self.Object===Object&&self,Xt=pn||Bn||Function("return this")(),S=t&&!t.nodeType&&t,O=S&&!0&&e&&!e.nodeType&&e,V=O&&O.exports===S,G=V&&pn.process,se=function(){try{var fe=O&&O.require&&O.require("util").types;return fe||G&&G.binding&&G.binding("util")}catch{}}(),Ue=se&&se.isArrayBuffer,Te=se&&se.isDate,Ye=se&&se.isMap,ft=se&&se.isRegExp,Nt=se&&se.isSet,$t=se&&se.isTypedArray;function xt(fe,Ae,_e){switch(_e.length){case 0:return fe.call(Ae);case 1:return fe.call(Ae,_e[0]);case 2:return fe.call(Ae,_e[0],_e[1]);case 3:return fe.call(Ae,_e[0],_e[1],_e[2])}return fe.apply(Ae,_e)}function Gt(fe,Ae,_e,gt){for(var an=-1,Kn=fe==null?0:fe.length;++an<Kn;){var ii=fe[an];Ae(gt,ii,_e(ii),fe)}return gt}function Lt(fe,Ae){for(var _e=-1,gt=fe==null?0:fe.length;++_e<gt&&Ae(fe[_e],_e,fe)!==!1;);return fe}function jt(fe,Ae){for(var _e=fe==null?0:fe.length;_e--&&Ae(fe[_e],_e,fe)!==!1;);return fe}function Da(fe,Ae){for(var _e=-1,gt=fe==null?0:fe.length;++_e<gt;)if(!Ae(fe[_e],_e,fe))return!1;return!0}function Mi(fe,Ae){for(var _e=-1,gt=fe==null?0:fe.length,an=0,Kn=[];++_e<gt;){var ii=fe[_e];Ae(ii,_e,fe)&&(Kn[an++]=ii)}return Kn}function rs(fe,Ae){var _e=fe==null?0:fe.length;return!!_e&&ec(fe,Ae,0)>-1}function Ju(fe,Ae,_e){for(var gt=-1,an=fe==null?0:fe.length;++gt<an;)if(_e(Ae,fe[gt]))return!0;return!1}function In(fe,Ae){for(var _e=-1,gt=fe==null?0:fe.length,an=Array(gt);++_e<gt;)an[_e]=Ae(fe[_e],_e,fe);return an}function $a(fe,Ae){for(var _e=-1,gt=Ae.length,an=fe.length;++_e<gt;)fe[an+_e]=Ae[_e];return fe}function ks(fe,Ae,_e,gt){var an=-1,Kn=fe==null?0:fe.length;for(gt&&Kn&&(_e=fe[++an]);++an<Kn;)_e=Ae(_e,fe[an],an,fe);return _e}function Pd(fe,Ae,_e,gt){var an=fe==null?0:fe.length;for(gt&&an&&(_e=fe[--an]);an--;)_e=Ae(_e,fe[an],an,fe);return _e}function p0(fe,Ae){for(var _e=-1,gt=fe==null?0:fe.length;++_e<gt;)if(Ae(fe[_e],_e,fe))return!0;return!1}var x4=Dd("length");function cy(fe){return fe.split("")}function m0(fe){return fe.match(un)||[]}function h0(fe,Ae,_e){var gt;return _e(fe,function(an,Kn,ii){if(Ae(an,Kn,ii))return gt=Kn,!1}),gt}function Id(fe,Ae,_e,gt){for(var an=fe.length,Kn=_e+(gt?1:-1);gt?Kn--:++Kn<an;)if(Ae(fe[Kn],Kn,fe))return Kn;return-1}function ec(fe,Ae,_e){return Ae===Ae?b0(fe,Ae,_e):Id(fe,As,_e)}function S4(fe,Ae,_e,gt){for(var an=_e-1,Kn=fe.length;++an<Kn;)if(gt(fe[an],Ae))return an;return-1}function As(fe){return fe!==fe}function fy(fe,Ae){var _e=fe==null?0:fe.length;return _e?rf(fe,Ae)/_e:pe}function Dd(fe){return function(Ae){return Ae==null?n:Ae[fe]}}function $d(fe){return function(Ae){return fe==null?n:fe[Ae]}}function zm(fe,Ae,_e,gt,an){return an(fe,function(Kn,ii,tr){_e=gt?(gt=!1,Kn):Ae(_e,Kn,ii,tr)}),_e}function w4(fe,Ae){var _e=fe.length;for(fe.sort(Ae);_e--;)fe[_e]=fe[_e].value;return fe}function rf(fe,Ae){for(var _e,gt=-1,an=fe.length;++gt<an;){var Kn=Ae(fe[gt]);Kn!==n&&(_e=_e===n?Kn:_e+Kn)}return _e}function Bm(fe,Ae){for(var _e=-1,gt=Array(fe);++_e<fe;)gt[_e]=Ae(_e);return gt}function Fa(fe,Ae){return In(Ae,function(_e){return[_e,fe[_e]]})}function Ls(fe){return fe&&fe.slice(0,vy(fe)+1).replace(qi,"")}function Wn(fe){return function(Ae){return fe(Ae)}}function is(fe,Ae){return In(Ae,function(_e){return fe[_e]})}function tc(fe,Ae){return fe.has(Ae)}function Fd(fe,Ae){for(var _e=-1,gt=fe.length;++_e<gt&&ec(Ae,fe[_e],0)>-1;);return _e}function dy(fe,Ae){for(var _e=fe.length;_e--&&ec(Ae,fe[_e],0)>-1;);return _e}function zd(fe,Ae){for(var _e=fe.length,gt=0;_e--;)fe[_e]===Ae&&++gt;return gt}var C4=$d(eu),N4=$d(Qi);function v0(fe){return"\\"+ne[fe]}function E4(fe,Ae){return fe==null?n:fe[Ae]}function af(fe){return Qu.test(fe)}function _4(fe){return No.test(fe)}function py(fe){for(var Ae,_e=[];!(Ae=fe.next()).done;)_e.push(Ae.value);return _e}function g0(fe){var Ae=-1,_e=Array(fe.size);return fe.forEach(function(gt,an){_e[++Ae]=[an,gt]}),_e}function my(fe,Ae){return function(_e){return fe(Ae(_e))}}function tu(fe,Ae){for(var _e=-1,gt=fe.length,an=0,Kn=[];++_e<gt;){var ii=fe[_e];(ii===Ae||ii===g)&&(fe[_e]=g,Kn[an++]=_e)}return Kn}function Bd(fe){var Ae=-1,_e=Array(fe.size);return fe.forEach(function(gt){_e[++Ae]=gt}),_e}function of(fe){var Ae=-1,_e=Array(fe.size);return fe.forEach(function(gt){_e[++Ae]=[gt,gt]}),_e}function b0(fe,Ae,_e){for(var gt=_e-1,an=fe.length;++gt<an;)if(fe[gt]===Ae)return gt;return-1}function hy(fe,Ae,_e){for(var gt=_e+1;gt--;)if(fe[gt]===Ae)return gt;return gt}function nc(fe){return af(fe)?R4(fe):x4(fe)}function as(fe){return af(fe)?k4(fe):cy(fe)}function vy(fe){for(var Ae=fe.length;Ae--&&X.test(fe.charAt(Ae)););return Ae}var T4=$d(W);function R4(fe){for(var Ae=br.lastIndex=0;br.test(fe);)++Ae;return Ae}function k4(fe){return fe.match(br)||[]}function A4(fe){return fe.match(di)||[]}var L4=function fe(Ae){Ae=Ae==null?Xt:sf.defaults(Xt.Object(),Ae,sf.pick(Xt,Ia));var _e=Ae.Array,gt=Ae.Date,an=Ae.Error,Kn=Ae.Function,ii=Ae.Math,tr=Ae.Object,vl=Ae.RegExp,Um=Ae.String,ro=Ae.TypeError,gl=_e.prototype,O4=Kn.prototype,lf=tr.prototype,jm=Ae["__core-js_shared__"],Vm=O4.toString,nr=lf.hasOwnProperty,gy=0,by=function(){var c=/[^.]+$/.exec(jm&&jm.keys&&jm.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),Ud=lf.toString,sa=Vm.call(tr),yy=Xt._,M4=vl("^"+Vm.call(nr).replace(Yi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Hm=V?Ae.Buffer:n,nu=Ae.Symbol,Wm=Ae.Uint8Array,xy=Hm?Hm.allocUnsafe:n,jd=my(tr.getPrototypeOf,tr),Gm=tr.create,uf=lf.propertyIsEnumerable,Ym=gl.splice,cf=nu?nu.isConcatSpreadable:n,Vd=nu?nu.iterator:n,rc=nu?nu.toStringTag:n,qm=function(){try{var c=su(tr,"defineProperty");return c({},"",{}),c}catch{}}(),y0=Ae.clearTimeout!==Xt.clearTimeout&&Ae.clearTimeout,x0=gt&&gt.now!==Xt.Date.now&&gt.now,ff=Ae.setTimeout!==Xt.setTimeout&&Ae.setTimeout,bl=ii.ceil,Hd=ii.floor,S0=tr.getOwnPropertySymbols,Sy=Hm?Hm.isBuffer:n,wy=Ae.isFinite,Cy=gl.join,Ny=my(tr.keys,tr),Xr=ii.max,pi=ii.min,P4=gt.now,Ey=Ae.parseInt,_y=ii.random,I4=gl.reverse,w0=su(Ae,"DataView"),yl=su(Ae,"Map"),Wd=su(Ae,"Promise"),Os=su(Ae,"Set"),df=su(Ae,"WeakMap"),pf=su(tr,"create"),mf=df&&new df,hf={},vf=vc(w0),Zm=vc(yl),Km=vc(Wd),C0=vc(Os),D4=vc(df),gf=nu?nu.prototype:n,Gd=gf?gf.valueOf:n,Ty=gf?gf.toString:n;function B(c){if(Dr(c)&&!cn(c)&&!(c instanceof An)){if(c instanceof Eo)return c;if(nr.call(c,"__wrapped__"))return i2(c)}return new Eo(c)}var ru=function(){function c(){}return function(d){if(!Rr(d))return{};if(Gm)return Gm(d);c.prototype=d;var y=new c;return c.prototype=n,y}}();function xl(){}function Eo(c,d){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=n}B.templateSettings={escape:Wo,evaluate:Ss,interpolate:ws,variable:"",imports:{_:B}},B.prototype=xl.prototype,B.prototype.constructor=B,Eo.prototype=ru(xl.prototype),Eo.prototype.constructor=Eo;function An(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ee,this.__views__=[]}function Ut(){var c=new An(this.__wrapped__);return c.__actions__=hi(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=hi(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=hi(this.__views__),c}function bf(){if(this.__filtered__){var c=new An(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}function Qr(){var c=this.__wrapped__.value(),d=this.__dir__,y=cn(c),k=d<0,$=y?c.length:0,j=hh(0,$,this.__views__),Z=j.start,J=j.end,de=J-Z,De=k?J:Z-1,Le=this.__iteratees__,Fe=Le.length,Je=0,bt=pi(de,this.__takeCount__);if(!y||!k&&$==de&&bt==de)return ih(c,this.__actions__);var Bt=[];e:for(;de--&&Je<bt;){De+=d;for(var vn=-1,Ht=c[De];++vn<Fe;){var Sn=Le[vn],Ln=Sn.iteratee,ta=Sn.type,wr=Ln(Ht);if(ta==we)Ht=wr;else if(!wr){if(ta==ee)continue e;break e}}Bt[Je++]=Ht}return Bt}An.prototype=ru(xl.prototype),An.prototype.constructor=An;function mn(c){var d=-1,y=c==null?0:c.length;for(this.clear();++d<y;){var k=c[d];this.set(k[0],k[1])}}function ic(){this.__data__=pf?pf(null):{},this.size=0}function Yd(c){var d=this.has(c)&&delete this.__data__[c];return this.size-=d?1:0,d}function N0(c){var d=this.__data__;if(pf){var y=d[c];return y===m?n:y}return nr.call(d,c)?d[c]:n}function jn(c){var d=this.__data__;return pf?d[c]!==n:nr.call(d,c)}function Sl(c,d){var y=this.__data__;return this.size+=this.has(c)?0:1,y[c]=pf&&d===n?m:d,this}mn.prototype.clear=ic,mn.prototype.delete=Yd,mn.prototype.get=N0,mn.prototype.has=jn,mn.prototype.set=Sl;function Ji(c){var d=-1,y=c==null?0:c.length;for(this.clear();++d<y;){var k=c[d];this.set(k[0],k[1])}}function ac(){this.__data__=[],this.size=0}function os(c){var d=this.__data__,y=eh(d,c);if(y<0)return!1;var k=d.length-1;return y==k?d.pop():Ym.call(d,y,1),--this.size,!0}function wl(c){var d=this.__data__,y=eh(d,c);return y<0?n:d[y][1]}function oc(c){return eh(this.__data__,c)>-1}function Xm(c,d){var y=this.__data__,k=eh(y,c);return k<0?(++this.size,y.push([c,d])):y[k][1]=d,this}Ji.prototype.clear=ac,Ji.prototype.delete=os,Ji.prototype.get=wl,Ji.prototype.has=oc,Ji.prototype.set=Xm;function Cl(c){var d=-1,y=c==null?0:c.length;for(this.clear();++d<y;){var k=c[d];this.set(k[0],k[1])}}function $4(){this.size=0,this.__data__={hash:new mn,map:new(yl||Ji),string:new mn}}function qd(c){var d=ph(this,c).delete(c);return this.size-=d?1:0,d}function la(c){return ph(this,c).get(c)}function E0(c){return ph(this,c).has(c)}function Ry(c,d){var y=ph(this,c),k=y.size;return y.set(c,d),this.size+=y.size==k?0:1,this}Cl.prototype.clear=$4,Cl.prototype.delete=qd,Cl.prototype.get=la,Cl.prototype.has=E0,Cl.prototype.set=Ry;function Nl(c){var d=-1,y=c==null?0:c.length;for(this.__data__=new Cl;++d<y;)this.add(c[d])}function sc(c){return this.__data__.set(c,m),this}function _0(c){return this.__data__.has(c)}Nl.prototype.add=Nl.prototype.push=sc,Nl.prototype.has=_0;function ai(c){var d=this.__data__=new Ji(c);this.size=d.size}function Qm(){this.__data__=new Ji,this.size=0}function T0(c){var d=this.__data__,y=d.delete(c);return this.size=d.size,y}function R0(c){return this.__data__.get(c)}function Zd(c){return this.__data__.has(c)}function yf(c,d){var y=this.__data__;if(y instanceof Ji){var k=y.__data__;if(!yl||k.length<o-1)return k.push([c,d]),this.size=++y.size,this;y=this.__data__=new Cl(k)}return y.set(c,d),this.size=y.size,this}ai.prototype.clear=Qm,ai.prototype.delete=T0,ai.prototype.get=R0,ai.prototype.has=Zd,ai.prototype.set=yf;function Ms(c,d){var y=cn(c),k=!y&&bc(c),$=!y&&!k&&Vs(c),j=!y&&!k&&!$&&fu(c),Z=y||k||$||j,J=Z?Bm(c.length,Um):[],de=J.length;for(var De in c)(d||nr.call(c,De))&&!(Z&&(De=="length"||$&&(De=="offset"||De=="parent")||j&&(De=="buffer"||De=="byteLength"||De=="byteOffset")||Bs(De,de)))&&J.push(De);return J}function ky(c){var d=c.length;return d?c[_o(0,d-1)]:n}function lc(c,d){return gh(hi(c),iu(d,0,c.length))}function Ay(c){return gh(hi(c))}function Jm(c,d,y){(y!==n&&!ls(c[d],y)||y===n&&!(d in c))&&Ps(c,d,y)}function Kd(c,d,y){var k=c[d];(!(nr.call(c,d)&&ls(k,y))||y===n&&!(d in c))&&Ps(c,d,y)}function eh(c,d){for(var y=c.length;y--;)if(ls(c[y][0],d))return y;return-1}function Ly(c,d,y,k){return au(c,function($,j,Z){d(k,$,y($),Z)}),k}function k0(c,d){return c&&ea(d,bi(d),c)}function Oy(c,d){return c&&ea(d,ja(d),c)}function Ps(c,d,y){d=="__proto__"&&qm?qm(c,d,{configurable:!0,enumerable:!0,value:y,writable:!0}):c[d]=y}function A0(c,d){for(var y=-1,k=d.length,$=_e(k),j=c==null;++y<k;)$[y]=j?n:C1(c,d[y]);return $}function iu(c,d,y){return c===c&&(y!==n&&(c=c<=y?c:y),d!==n&&(c=c>=d?c:d)),c}function io(c,d,y,k,$,j){var Z,J=d&b,de=d&w,De=d&C;if(y&&(Z=$?y(c,k,$,j):y(c)),Z!==n)return Z;if(!Rr(c))return c;var Le=cn(c);if(Le){if(Z=vi(c),!J)return hi(c,Z)}else{var Fe=Tr(c),Je=Fe==We||Fe==Vt;if(Vs(c))return sh(c,J);if(Fe==rt||Fe==et||Je&&!$){if(Z=de||Je?{}:Qy(c),!J)return de?q4(c,Oy(Z,c)):so(c,k0(Z,c))}else{if(!zn[Fe])return $?c:{};Z=X4(c,Fe,J)}}j||(j=new ai);var bt=j.get(c);if(bt)return bt;j.set(c,Z),y1(c)?c.forEach(function(Ht){Z.add(io(Ht,d,y,Ht,c,j))}):b1(c)&&c.forEach(function(Ht,Sn){Z.set(Sn,io(Ht,d,y,Sn,c,j))});var Bt=De?de?hc:cp:de?ja:bi,vn=Le?n:Bt(c);return Lt(vn||c,function(Ht,Sn){vn&&(Sn=Ht,Ht=c[Sn]),Kd(Z,Sn,io(Ht,d,y,Sn,c,j))}),Z}function F4(c){var d=bi(c);return function(y){return My(y,c,d)}}function My(c,d,y){var k=y.length;if(c==null)return!k;for(c=tr(c);k--;){var $=y[k],j=d[$],Z=c[$];if(Z===n&&!($ in c)||!j(Z))return!1}return!0}function Py(c,d,y){if(typeof c!="function")throw new ro(l);return kl(function(){c.apply(n,y)},d)}function Br(c,d,y,k){var $=-1,j=rs,Z=!0,J=c.length,de=[],De=d.length;if(!J)return de;y&&(d=In(d,Wn(y))),k?(j=Ju,Z=!1):d.length>=o&&(j=tc,Z=!1,d=new Nl(d));e:for(;++$<J;){var Le=c[$],Fe=y==null?Le:y(Le);if(Le=k||Le!==0?Le:0,Z&&Fe===Fe){for(var Je=De;Je--;)if(d[Je]===Fe)continue e;de.push(Le)}else j(d,Fe,k)||de.push(Le)}return de}var au=ap(Sr),Xd=ap(lt,!0);function L0(c,d){var y=!0;return au(c,function(k,$,j){return y=!!d(k,$,j),y}),y}function Is(c,d,y){for(var k=-1,$=c.length;++k<$;){var j=c[k],Z=d(j);if(Z!=null&&(J===n?Z===Z&&!En(Z):y(Z,J)))var J=Z,de=j}return de}function z4(c,d,y,k){var $=c.length;for(y=on(y),y<0&&(y=-y>$?0:$+y),k=k===n||k>$?$:on(k),k<0&&(k+=$),k=y>k?0:xc(k);y<k;)c[y++]=d;return c}function th(c,d){var y=[];return au(c,function(k,$,j){d(k,$,j)&&y.push(k)}),y}function Pi(c,d,y,k,$){var j=-1,Z=c.length;for(y||(y=X0),$||($=[]);++j<Z;){var J=c[j];d>0&&y(J)?d>1?Pi(J,d-1,y,k,$):$a($,J):k||($[$.length]=J)}return $}var O0=Tf(),uc=Tf(!0);function Sr(c,d){return c&&O0(c,d,bi)}function lt(c,d){return c&&uc(c,d,bi)}function ao(c,d){return Mi(d,function(y){return Hs(c[y])})}function Ii(c,d){d=$s(d,c);for(var y=0,k=d.length;c!=null&&y<k;)c=c[Ba(d[y++])];return y&&y==k?c:n}function Iy(c,d,y){var k=d(c);return cn(c)?k:$a(k,y(c))}function ua(c){return c==null?c===n?Ze:Ct:rc&&rc in tr(c)?Xy(c):t1(c)}function M0(c,d){return c>d}function B4(c,d){return c!=null&&nr.call(c,d)}function U4(c,d){return c!=null&&d in tr(c)}function mi(c,d,y){return c>=pi(d,y)&&c<Xr(d,y)}function P0(c,d,y){for(var k=y?Ju:rs,$=c[0].length,j=c.length,Z=j,J=_e(j),de=1/0,De=[];Z--;){var Le=c[Z];Z&&d&&(Le=In(Le,Wn(d))),de=pi(Le.length,de),J[Z]=!y&&(d||$>=120&&Le.length>=120)?new Nl(Z&&Le):n}Le=c[0];var Fe=-1,Je=J[0];e:for(;++Fe<$&&De.length<de;){var bt=Le[Fe],Bt=d?d(bt):bt;if(bt=y||bt!==0?bt:0,!(Je?tc(Je,Bt):k(De,Bt,y))){for(Z=j;--Z;){var vn=J[Z];if(!(vn?tc(vn,Bt):k(c[Z],Bt,y)))continue e}Je&&Je.push(Bt),De.push(bt)}}return De}function j4(c,d,y,k){return Sr(c,function($,j,Z){d(k,y($),j,Z)}),k}function Qd(c,d,y){d=$s(d,c),c=Rl(c,d);var k=c==null?c:c[Ba(Ro(d))];return k==null?n:xt(k,c,y)}function I0(c){return Dr(c)&&ua(c)==et}function Jd(c){return Dr(c)&&ua(c)==Dt}function xf(c){return Dr(c)&&ua(c)==ot}function ep(c,d,y,k,$){return c===d?!0:c==null||d==null||!Dr(c)&&!Dr(d)?c!==c&&d!==d:V4(c,d,y,k,ep,$)}function V4(c,d,y,k,$,j){var Z=cn(c),J=cn(d),de=Z?at:Tr(c),De=J?at:Tr(d);de=de==et?rt:de,De=De==et?rt:De;var Le=de==rt,Fe=De==rt,Je=de==De;if(Je&&Vs(c)){if(!Vs(d))return!1;Z=!0,Le=!1}if(Je&&!Le)return j||(j=new ai),Z||fu(c)?up(c,d,y,k,$,j):Ky(c,d,de,y,k,$,j);if(!(y&T)){var bt=Le&&nr.call(c,"__wrapped__"),Bt=Fe&&nr.call(d,"__wrapped__");if(bt||Bt){var vn=bt?c.value():c,Ht=Bt?d.value():d;return j||(j=new ai),$(vn,Ht,y,k,j)}}return Je?(j||(j=new ai),bR(c,d,y,k,$,j)):!1}function H4(c){return Dr(c)&&Tr(c)==Ce}function D0(c,d,y,k){var $=y.length,j=$,Z=!k;if(c==null)return!j;for(c=tr(c);$--;){var J=y[$];if(Z&&J[2]?J[1]!==c[J[0]]:!(J[0]in c))return!1}for(;++$<j;){J=y[$];var de=J[0],De=c[de],Le=J[1];if(Z&&J[2]){if(De===n&&!(de in c))return!1}else{var Fe=new ai;if(k)var Je=k(De,Le,de,c,d,Fe);if(!(Je===n?ep(Le,De,T|R,k,Fe):Je))return!1}}return!0}function Dy(c){if(!Rr(c)||J0(c))return!1;var d=Hs(c)?M4:Kr;return d.test(vc(c))}function W4(c){return Dr(c)&&ua(c)==Tt}function $y(c){return Dr(c)&&Tr(c)==ln}function Fy(c){return Dr(c)&&Tp(c.length)&&!!bn[ua(c)]}function zy(c){return typeof c=="function"?c:c==null?Va:typeof c=="object"?cn(c)?z0(c[0],c[1]):Uy(c):Dp(c)}function $0(c){if(!Lf(c))return Ny(c);var d=[];for(var y in tr(c))nr.call(c,y)&&y!="constructor"&&d.push(y);return d}function G4(c){if(!Rr(c))return nw(c);var d=Lf(c),y=[];for(var k in c)k=="constructor"&&(d||!nr.call(c,k))||y.push(k);return y}function F0(c,d){return c<d}function By(c,d){var y=-1,k=si(c)?_e(c.length):[];return au(c,function($,j,Z){k[++y]=d($,j,Z)}),k}function Uy(c){var d=mh(c);return d.length==1&&d[0][2]?e1(d[0][0],d[0][1]):function(y){return y===c||D0(y,c,d)}}function z0(c,d){return vh(c)&&Jy(d)?e1(Ba(c),d):function(y){var k=C1(y,c);return k===n&&k===d?Bf(y,c):ep(d,k,T|R)}}function nh(c,d,y,k,$){c!==d&&O0(d,function(j,Z){if($||($=new ai),Rr(j))jy(c,d,Z,y,nh,k,$);else{var J=k?k(Us(c,Z),j,Z+"",c,d,$):n;J===n&&(J=j),Jm(c,Z,J)}},ja)}function jy(c,d,y,k,$,j,Z){var J=Us(c,y),de=Us(d,y),De=Z.get(de);if(De){Jm(c,y,De);return}var Le=j?j(J,de,y+"",c,d,Z):n,Fe=Le===n;if(Fe){var Je=cn(de),bt=!Je&&Vs(de),Bt=!Je&&!bt&&fu(de);Le=de,Je||bt||Bt?cn(J)?Le=J:Ir(J)?Le=hi(J):bt?(Fe=!1,Le=sh(de,!0)):Bt?(Fe=!1,Le=lh(de,!0)):Le=[]:yc(de)||bc(de)?(Le=J,bc(J)?Le=S1(J):(!Rr(J)||Hs(J))&&(Le=Qy(de))):Fe=!1}Fe&&(Z.set(de,Le),$(Le,de,k,j,Z),Z.delete(de)),Jm(c,y,Le)}function Vy(c,d){var y=c.length;if(!!y)return d+=d<0?y:0,Bs(d,y)?c[d]:n}function Hy(c,d,y){d.length?d=In(d,function(j){return cn(j)?function(Z){return Ii(Z,j.length===1?j[0]:j)}:j}):d=[Va];var k=-1;d=In(d,Wn(zt()));var $=By(c,function(j,Z,J){var de=In(d,function(De){return De(j)});return{criteria:de,index:++k,value:j}});return w4($,function(j,Z){return Gy(j,Z,y)})}function B0(c,d){return Ft(c,d,function(y,k){return Bf(c,k)})}function Ft(c,d,y){for(var k=-1,$=d.length,j={};++k<$;){var Z=d[k],J=Ii(c,Z);y(J,Z)&&Be(j,$s(Z,c),J)}return j}function Nn(c){return function(d){return Ii(d,c)}}function Gn(c,d,y,k){var $=k?S4:ec,j=-1,Z=d.length,J=c;for(c===d&&(d=hi(d)),y&&(J=In(c,Wn(y)));++j<Z;)for(var de=0,De=d[j],Le=y?y(De):De;(de=$(J,Le,de,k))>-1;)J!==c&&Ym.call(J,de,1),Ym.call(c,de,1);return c}function Yr(c,d){for(var y=c?d.length:0,k=y-1;y--;){var $=d[y];if(y==k||$!==j){var j=$;Bs($)?Ym.call(c,$,1):tp(c,$)}}return c}function _o(c,d){return c+Hd(_y()*(d-c+1))}function Wy(c,d,y,k){for(var $=-1,j=Xr(bl((d-c)/(y||1)),0),Z=_e(j);j--;)Z[k?j:++$]=c,c+=y;return Z}function U0(c,d){var y="";if(!c||d<1||d>le)return y;do d%2&&(y+=c),d=Hd(d/2),d&&(c+=c);while(d);return y}function xn(c,d){return js(pp(c,d,Va),c+"")}function Y4(c){return ky(Uf(c))}function j0(c,d){var y=Uf(c);return gh(y,iu(d,0,y.length))}function Be(c,d,y,k){if(!Rr(c))return c;d=$s(d,c);for(var $=-1,j=d.length,Z=j-1,J=c;J!=null&&++$<j;){var de=Ba(d[$]),De=y;if(de==="__proto__"||de==="constructor"||de==="prototype")return c;if($!=Z){var Le=J[de];De=k?k(Le,de,J):n,De===n&&(De=Rr(Le)?Le:Bs(d[$+1])?[]:{})}Kd(J,de,De),J=J[de]}return c}var oi=mf?function(c,d){return mf.set(c,d),c}:Va,qt=qm?function(c,d){return qm(c,"toString",{configurable:!0,enumerable:!1,value:P1(d),writable:!0})}:Va;function Sf(c){return gh(Uf(c))}function Jr(c,d,y){var k=-1,$=c.length;d<0&&(d=-d>$?0:$+d),y=y>$?$:y,y<0&&(y+=$),$=d>y?0:y-d>>>0,d>>>=0;for(var j=_e($);++k<$;)j[k]=c[k+d];return j}function cc(c,d){var y;return au(c,function(k,$,j){return y=d(k,$,j),!y}),!!y}function oo(c,d,y){var k=0,$=c==null?k:c.length;if(typeof d=="number"&&d===d&&$<=Pe){for(;k<$;){var j=k+$>>>1,Z=c[j];Z!==null&&!En(Z)&&(y?Z<=d:Z<d)?k=j+1:$=j}return $}return fc(c,d,Va,y)}function fc(c,d,y,k){var $=0,j=c==null?0:c.length;if(j===0)return 0;d=y(d);for(var Z=d!==d,J=d===null,de=En(d),De=d===n;$<j;){var Le=Hd(($+j)/2),Fe=y(c[Le]),Je=Fe!==n,bt=Fe===null,Bt=Fe===Fe,vn=En(Fe);if(Z)var Ht=k||Bt;else De?Ht=Bt&&(k||Je):J?Ht=Bt&&Je&&(k||!bt):de?Ht=Bt&&Je&&!bt&&(k||!vn):bt||vn?Ht=!1:Ht=k?Fe<=d:Fe<d;Ht?$=Le+1:j=Le}return pi(j,Oe)}function dc(c,d){for(var y=-1,k=c.length,$=0,j=[];++y<k;){var Z=c[y],J=d?d(Z):Z;if(!y||!ls(J,de)){var de=J;j[$++]=Z===0?0:Z}}return j}function wf(c){return typeof c=="number"?c:En(c)?pe:+c}function ca(c){if(typeof c=="string")return c;if(cn(c))return In(c,ca)+"";if(En(c))return Ty?Ty.call(c):"";var d=c+"";return d=="0"&&1/c==-K?"-0":d}function Ds(c,d,y){var k=-1,$=rs,j=c.length,Z=!0,J=[],de=J;if(y)Z=!1,$=Ju;else if(j>=o){var De=d?null:lp(c);if(De)return Bd(De);Z=!1,$=tc,de=new Nl}else de=d?[]:J;e:for(;++k<j;){var Le=c[k],Fe=d?d(Le):Le;if(Le=y||Le!==0?Le:0,Z&&Fe===Fe){for(var Je=de.length;Je--;)if(de[Je]===Fe)continue e;d&&de.push(Fe),J.push(Le)}else $(de,Fe,y)||(de!==J&&de.push(Fe),J.push(Le))}return J}function tp(c,d){return d=$s(d,c),c=Rl(c,d),c==null||delete c[Ba(Ro(d))]}function rh(c,d,y,k){return Be(c,d,y(Ii(c,d)),k)}function Cf(c,d,y,k){for(var $=c.length,j=k?$:-1;(k?j--:++j<$)&&d(c[j],j,c););return y?Jr(c,k?0:j,k?j+1:$):Jr(c,k?j+1:0,k?$:j)}function ih(c,d){var y=c;return y instanceof An&&(y=y.value()),ks(d,function(k,$){return $.func.apply($.thisArg,$a([k],$.args))},y)}function np(c,d,y){var k=c.length;if(k<2)return k?Ds(c[0]):[];for(var $=-1,j=_e(k);++$<k;)for(var Z=c[$],J=-1;++J<k;)J!=$&&(j[$]=Br(j[$]||Z,c[J],d,y));return Ds(Pi(j,1),d,y)}function ah(c,d,y){for(var k=-1,$=c.length,j=d.length,Z={};++k<$;){var J=k<j?d[k]:n;y(Z,c[k],J)}return Z}function rp(c){return Ir(c)?c:[]}function ip(c){return typeof c=="function"?c:Va}function $s(c,d){return cn(c)?c:vh(c,d)?[c]:n1(Jn(c))}var V0=xn;function Fs(c,d,y){var k=c.length;return y=y===n?k:y,!d&&y>=k?c:Jr(c,d,y)}var oh=y0||function(c){return Xt.clearTimeout(c)};function sh(c,d){if(d)return c.slice();var y=c.length,k=xy?xy(y):new c.constructor(y);return c.copy(k),k}function Nf(c){var d=new c.constructor(c.byteLength);return new Wm(d).set(new Wm(c)),d}function Ef(c,d){var y=d?Nf(c.buffer):c.buffer;return new c.constructor(y,c.byteOffset,c.byteLength)}function H0(c){var d=new c.constructor(c.source,Hn.exec(c));return d.lastIndex=c.lastIndex,d}function W0(c){return Gd?tr(Gd.call(c)):{}}function lh(c,d){var y=d?Nf(c.buffer):c.buffer;return new c.constructor(y,c.byteOffset,c.length)}function uh(c,d){if(c!==d){var y=c!==n,k=c===null,$=c===c,j=En(c),Z=d!==n,J=d===null,de=d===d,De=En(d);if(!J&&!De&&!j&&c>d||j&&Z&&de&&!J&&!De||k&&Z&&de||!y&&de||!$)return 1;if(!k&&!j&&!De&&c<d||De&&y&&$&&!k&&!j||J&&y&&$||!Z&&$||!de)return-1}return 0}function Gy(c,d,y){for(var k=-1,$=c.criteria,j=d.criteria,Z=$.length,J=y.length;++k<Z;){var de=uh($[k],j[k]);if(de){if(k>=J)return de;var De=y[k];return de*(De=="desc"?-1:1)}}return c.index-d.index}function _f(c,d,y,k){for(var $=-1,j=c.length,Z=y.length,J=-1,de=d.length,De=Xr(j-Z,0),Le=_e(de+De),Fe=!k;++J<de;)Le[J]=d[J];for(;++$<Z;)(Fe||$<j)&&(Le[y[$]]=c[$]);for(;De--;)Le[J++]=c[$++];return Le}function G0(c,d,y,k){for(var $=-1,j=c.length,Z=-1,J=y.length,de=-1,De=d.length,Le=Xr(j-J,0),Fe=_e(Le+De),Je=!k;++$<Le;)Fe[$]=c[$];for(var bt=$;++de<De;)Fe[bt+de]=d[de];for(;++Z<J;)(Je||$<j)&&(Fe[bt+y[Z]]=c[$++]);return Fe}function hi(c,d){var y=-1,k=c.length;for(d||(d=_e(k));++y<k;)d[y]=c[y];return d}function ea(c,d,y,k){var $=!y;y||(y={});for(var j=-1,Z=d.length;++j<Z;){var J=d[j],de=k?k(y[J],c[J],J,y,c):n;de===n&&(de=c[J]),$?Ps(y,J,de):Kd(y,J,de)}return y}function so(c,d){return ea(c,fa(c),d)}function q4(c,d){return ea(c,zs(c),d)}function rr(c,d){return function(y,k){var $=cn(y)?Gt:Ly,j=d?d():{};return $(y,c,zt(k,2),j)}}function El(c){return xn(function(d,y){var k=-1,$=y.length,j=$>1?y[$-1]:n,Z=$>2?y[2]:n;for(j=c.length>3&&typeof j=="function"?($--,j):n,Z&&gi(y[0],y[1],Z)&&(j=$<3?n:j,$=1),d=tr(d);++k<$;){var J=y[k];J&&c(d,J,k,j)}return d})}function ap(c,d){return function(y,k){if(y==null)return y;if(!si(y))return c(y,k);for(var $=y.length,j=d?$:-1,Z=tr(y);(d?j--:++j<$)&&k(Z[j],j,Z)!==!1;);return y}}function Tf(c){return function(d,y,k){for(var $=-1,j=tr(d),Z=k(d),J=Z.length;J--;){var de=Z[c?J:++$];if(y(j[de],de,j)===!1)break}return d}}function ch(c,d,y){var k=d&L,$=op(c);function j(){var Z=this&&this!==Xt&&this instanceof j?$:c;return Z.apply(k?y:this,arguments)}return j}function Yy(c){return function(d){d=Jn(d);var y=af(d)?as(d):n,k=y?y[0]:d.charAt(0),$=y?Fs(y,1).join(""):d.slice(1);return k[c]()+$}}function Rf(c){return function(d){return ks(M1(Mp(d).replace(ns,"")),c,"")}}function op(c){return function(){var d=arguments;switch(d.length){case 0:return new c;case 1:return new c(d[0]);case 2:return new c(d[0],d[1]);case 3:return new c(d[0],d[1],d[2]);case 4:return new c(d[0],d[1],d[2],d[3]);case 5:return new c(d[0],d[1],d[2],d[3],d[4]);case 6:return new c(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new c(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var y=ru(c.prototype),k=c.apply(y,d);return Rr(k)?k:y}}function Z4(c,d,y){var k=op(c);function $(){for(var j=arguments.length,Z=_e(j),J=j,de=Af($);J--;)Z[J]=arguments[J];var De=j<3&&Z[0]!==de&&Z[j-1]!==de?[]:tu(Z,de);if(j-=De.length,j<y)return Zy(c,d,kf,$.placeholder,n,Z,De,n,n,y-j);var Le=this&&this!==Xt&&this instanceof $?k:c;return xt(Le,this,Z)}return $}function fh(c){return function(d,y,k){var $=tr(d);if(!si(d)){var j=zt(y,3);d=bi(d),y=function(J){return j($[J],J,$)}}var Z=c(d,y,k);return Z>-1?$[j?d[Z]:Z]:n}}function qy(c){return Tl(function(d){var y=d.length,k=y,$=Eo.prototype.thru;for(c&&d.reverse();k--;){var j=d[k];if(typeof j!="function")throw new ro(l);if($&&!Z&&fp(j)=="wrapper")var Z=new Eo([],!0)}for(k=Z?k:y;++k<y;){j=d[k];var J=fp(j),de=J=="wrapper"?K0(j):n;de&&Q0(de[0])&&de[1]==(Y|I|z|Q)&&!de[4].length&&de[9]==1?Z=Z[fp(de[0])].apply(Z,de[3]):Z=j.length==1&&Q0(j)?Z[J]():Z.thru(j)}return function(){var De=arguments,Le=De[0];if(Z&&De.length==1&&cn(Le))return Z.plant(Le).value();for(var Fe=0,Je=y?d[Fe].apply(this,De):Le;++Fe<y;)Je=d[Fe].call(this,Je);return Je}})}function kf(c,d,y,k,$,j,Z,J,de,De){var Le=d&Y,Fe=d&L,Je=d&D,bt=d&(I|F),Bt=d&ie,vn=Je?n:op(c);function Ht(){for(var Sn=arguments.length,Ln=_e(Sn),ta=Sn;ta--;)Ln[ta]=arguments[ta];if(bt)var wr=Af(Ht),pa=zd(Ln,wr);if(k&&(Ln=_f(Ln,k,$,bt)),j&&(Ln=G0(Ln,j,Z,bt)),Sn-=pa,bt&&Sn<De){var kr=tu(Ln,wr);return Zy(c,d,kf,Ht.placeholder,y,Ln,kr,J,de,De-Sn)}var li=Fe?y:this,na=Je?li[c]:c;return Sn=Ln.length,J?Ln=lu(Ln,J):Bt&&Sn>1&&Ln.reverse(),Le&&de<Sn&&(Ln.length=de),this&&this!==Xt&&this instanceof Ht&&(na=vn||op(na)),na.apply(li,Ln)}return Ht}function Y0(c,d){return function(y,k){return j4(y,c,d(k),{})}}function dh(c,d){return function(y,k){var $;if(y===n&&k===n)return d;if(y!==n&&($=y),k!==n){if($===n)return k;typeof y=="string"||typeof k=="string"?(y=ca(y),k=ca(k)):(y=wf(y),k=wf(k)),$=c(y,k)}return $}}function q0(c){return Tl(function(d){return d=In(d,Wn(zt())),xn(function(y){var k=this;return c(d,function($){return xt($,k,y)})})})}function pc(c,d){d=d===n?" ":ca(d);var y=d.length;if(y<2)return y?U0(d,c):d;var k=U0(d,bl(c/nc(d)));return af(d)?Fs(as(k),0,c).join(""):k.slice(0,c)}function K4(c,d,y,k){var $=d&L,j=op(c);function Z(){for(var J=-1,de=arguments.length,De=-1,Le=k.length,Fe=_e(Le+de),Je=this&&this!==Xt&&this instanceof Z?j:c;++De<Le;)Fe[De]=k[De];for(;de--;)Fe[De++]=arguments[++J];return xt(Je,$?y:this,Fe)}return Z}function Z0(c){return function(d,y,k){return k&&typeof k!="number"&&gi(d,y,k)&&(y=k=n),d=Al(d),y===n?(y=d,d=0):y=Al(y),k=k===n?d<y?1:-1:Al(k),Wy(d,y,k,c)}}function sp(c){return function(d,y){return typeof d=="string"&&typeof y=="string"||(d=ko(d),y=ko(y)),c(d,y)}}function Zy(c,d,y,k,$,j,Z,J,de,De){var Le=d&I,Fe=Le?Z:n,Je=Le?n:Z,bt=Le?j:n,Bt=Le?n:j;d|=Le?z:q,d&=~(Le?q:z),d&P||(d&=~(L|D));var vn=[c,d,$,bt,Fe,Bt,Je,J,de,De],Ht=y.apply(n,vn);return Q0(c)&&Of(Ht,vn),Ht.placeholder=k,t2(Ht,c,d)}function _l(c){var d=ii[c];return function(y,k){if(y=ko(y),k=k==null?0:pi(on(k),292),k&&wy(y)){var $=(Jn(y)+"e").split("e"),j=d($[0]+"e"+(+$[1]+k));return $=(Jn(j)+"e").split("e"),+($[0]+"e"+(+$[1]-k))}return d(y)}}var lp=Os&&1/Bd(new Os([,-0]))[1]==K?function(c){return new Os(c)}:F1;function ou(c){return function(d){var y=Tr(d);return y==Ce?g0(d):y==ln?of(d):Fa(d,c(d))}}function ss(c,d,y,k,$,j,Z,J){var de=d&D;if(!de&&typeof c!="function")throw new ro(l);var De=k?k.length:0;if(De||(d&=~(z|q),k=$=n),Z=Z===n?Z:Xr(on(Z),0),J=J===n?J:on(J),De-=$?$.length:0,d&q){var Le=k,Fe=$;k=$=n}var Je=de?n:K0(c),bt=[c,d,y,k,$,Le,Fe,j,Z,J];if(Je&&e2(bt,Je),c=bt[0],d=bt[1],y=bt[2],k=bt[3],$=bt[4],J=bt[9]=bt[9]===n?de?0:c.length:Xr(bt[9]-De,0),!J&&d&(I|F)&&(d&=~(I|F)),!d||d==L)var Bt=ch(c,d,y);else d==I||d==F?Bt=Z4(c,d,J):(d==z||d==(L|z))&&!$.length?Bt=K4(c,d,y,k):Bt=kf.apply(n,bt);var vn=Je?oi:Of;return t2(vn(Bt,bt),c,d)}function za(c,d,y,k){return c===n||ls(c,lf[y])&&!nr.call(k,y)?d:c}function mc(c,d,y,k,$,j){return Rr(c)&&Rr(d)&&(j.set(d,c),nh(c,d,n,mc,j),j.delete(d)),c}function hn(c){return yc(c)?n:c}function up(c,d,y,k,$,j){var Z=y&T,J=c.length,de=d.length;if(J!=de&&!(Z&&de>J))return!1;var De=j.get(c),Le=j.get(d);if(De&&Le)return De==d&&Le==c;var Fe=-1,Je=!0,bt=y&R?new Nl:n;for(j.set(c,d),j.set(d,c);++Fe<J;){var Bt=c[Fe],vn=d[Fe];if(k)var Ht=Z?k(vn,Bt,Fe,d,c,j):k(Bt,vn,Fe,c,d,j);if(Ht!==n){if(Ht)continue;Je=!1;break}if(bt){if(!p0(d,function(Sn,Ln){if(!tc(bt,Ln)&&(Bt===Sn||$(Bt,Sn,y,k,j)))return bt.push(Ln)})){Je=!1;break}}else if(!(Bt===vn||$(Bt,vn,y,k,j))){Je=!1;break}}return j.delete(c),j.delete(d),Je}function Ky(c,d,y,k,$,j,Z){switch(y){case Ie:if(c.byteLength!=d.byteLength||c.byteOffset!=d.byteOffset)return!1;c=c.buffer,d=d.buffer;case Dt:return!(c.byteLength!=d.byteLength||!j(new Wm(c),new Wm(d)));case He:case ot:case nt:return ls(+c,+d);case It:return c.name==d.name&&c.message==d.message;case Tt:case Mn:return c==d+"";case Ce:var J=g0;case ln:var de=k&T;if(J||(J=Bd),c.size!=d.size&&!de)return!1;var De=Z.get(c);if(De)return De==d;k|=R,Z.set(c,d);var Le=up(J(c),J(d),k,$,j,Z);return Z.delete(c),Le;case yn:if(Gd)return Gd.call(c)==Gd.call(d)}return!1}function bR(c,d,y,k,$,j){var Z=y&T,J=cp(c),de=J.length,De=cp(d),Le=De.length;if(de!=Le&&!Z)return!1;for(var Fe=de;Fe--;){var Je=J[Fe];if(!(Z?Je in d:nr.call(d,Je)))return!1}var bt=j.get(c),Bt=j.get(d);if(bt&&Bt)return bt==d&&Bt==c;var vn=!0;j.set(c,d),j.set(d,c);for(var Ht=Z;++Fe<de;){Je=J[Fe];var Sn=c[Je],Ln=d[Je];if(k)var ta=Z?k(Ln,Sn,Je,d,c,j):k(Sn,Ln,Je,c,d,j);if(!(ta===n?Sn===Ln||$(Sn,Ln,y,k,j):ta)){vn=!1;break}Ht||(Ht=Je=="constructor")}if(vn&&!Ht){var wr=c.constructor,pa=d.constructor;wr!=pa&&"constructor"in c&&"constructor"in d&&!(typeof wr=="function"&&wr instanceof wr&&typeof pa=="function"&&pa instanceof pa)&&(vn=!1)}return j.delete(c),j.delete(d),vn}function Tl(c){return js(pp(c,n,l2),c+"")}function cp(c){return Iy(c,bi,fa)}function hc(c){return Iy(c,ja,zs)}var K0=mf?function(c){return mf.get(c)}:F1;function fp(c){for(var d=c.name+"",y=hf[d],k=nr.call(hf,d)?y.length:0;k--;){var $=y[k],j=$.func;if(j==null||j==c)return $.name}return d}function Af(c){var d=nr.call(B,"placeholder")?B:c;return d.placeholder}function zt(){var c=B.iteratee||D1;return c=c===D1?zy:c,arguments.length?c(arguments[0],arguments[1]):c}function ph(c,d){var y=c.__data__;return J4(d)?y[typeof d=="string"?"string":"hash"]:y.map}function mh(c){for(var d=bi(c),y=d.length;y--;){var k=d[y],$=c[k];d[y]=[k,$,Jy($)]}return d}function su(c,d){var y=E4(c,d);return Dy(y)?y:n}function Xy(c){var d=nr.call(c,rc),y=c[rc];try{c[rc]=n;var k=!0}catch{}var $=Ud.call(c);return k&&(d?c[rc]=y:delete c[rc]),$}var fa=S0?function(c){return c==null?[]:(c=tr(c),Mi(S0(c),function(d){return uf.call(c,d)}))}:B1,zs=S0?function(c){for(var d=[];c;)$a(d,fa(c)),c=jd(c);return d}:B1,Tr=ua;(w0&&Tr(new w0(new ArrayBuffer(1)))!=Ie||yl&&Tr(new yl)!=Ce||Wd&&Tr(Wd.resolve())!=sn||Os&&Tr(new Os)!=ln||df&&Tr(new df)!=tt)&&(Tr=function(c){var d=ua(c),y=d==rt?c.constructor:n,k=y?vc(y):"";if(k)switch(k){case vf:return Ie;case Zm:return Ce;case Km:return sn;case C0:return ln;case D4:return tt}return d});function hh(c,d,y){for(var k=-1,$=y.length;++k<$;){var j=y[k],Z=j.size;switch(j.type){case"drop":c+=Z;break;case"dropRight":d-=Z;break;case"take":d=pi(d,c+Z);break;case"takeRight":c=Xr(c,d-Z);break}}return{start:c,end:d}}function dp(c){var d=c.match(Qe);return d?d[1].split(_t):[]}function To(c,d,y){d=$s(d,c);for(var k=-1,$=d.length,j=!1;++k<$;){var Z=Ba(d[k]);if(!(j=c!=null&&y(c,Z)))break;c=c[Z]}return j||++k!=$?j:($=c==null?0:c.length,!!$&&Tp($)&&Bs(Z,$)&&(cn(c)||bc(c)))}function vi(c){var d=c.length,y=new c.constructor(d);return d&&typeof c[0]=="string"&&nr.call(c,"index")&&(y.index=c.index,y.input=c.input),y}function Qy(c){return typeof c.constructor=="function"&&!Lf(c)?ru(jd(c)):{}}function X4(c,d,y){var k=c.constructor;switch(d){case Dt:return Nf(c);case He:case ot:return new k(+c);case Ie:return Ef(c,y);case Zt:case Tn:case Ge:case ut:case At:case gn:case en:case Rn:case Fn:return lh(c,y);case Ce:return new k;case nt:case Mn:return new k(c);case Tt:return H0(c);case ln:return new k;case yn:return W0(c)}}function Q4(c,d){var y=d.length;if(!y)return c;var k=y-1;return d[k]=(y>1?"& ":"")+d[k],d=d.join(y>2?", ":" "),c.replace(Ve,`{
/* [wrapped with `+d+`] */
`)}function X0(c){return cn(c)||bc(c)||!!(cf&&c&&c[cf])}function Bs(c,d){var y=typeof c;return d=d??le,!!d&&(y=="number"||y!="symbol"&&qo.test(c))&&c>-1&&c%1==0&&c<d}function gi(c,d,y){if(!Rr(y))return!1;var k=typeof d;return(k=="number"?si(y)&&Bs(d,y.length):k=="string"&&d in y)?ls(y[d],c):!1}function vh(c,d){if(cn(c))return!1;var y=typeof c;return y=="number"||y=="symbol"||y=="boolean"||c==null||En(c)?!0:Yo.test(c)||!Go.test(c)||d!=null&&c in tr(d)}function J4(c){var d=typeof c;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?c!=="__proto__":c===null}function Q0(c){var d=fp(c),y=B[d];if(typeof y!="function"||!(d in An.prototype))return!1;if(c===y)return!0;var k=K0(y);return!!k&&c===k[0]}function J0(c){return!!by&&by in c}var ew=jm?Hs:U1;function Lf(c){var d=c&&c.constructor,y=typeof d=="function"&&d.prototype||lf;return c===y}function Jy(c){return c===c&&!Rr(c)}function e1(c,d){return function(y){return y==null?!1:y[c]===d&&(d!==n||c in tr(y))}}function tw(c){var d=_h(c,function(k){return y.size===v&&y.clear(),k}),y=d.cache;return d}function e2(c,d){var y=c[1],k=d[1],$=y|k,j=$<(L|D|Y),Z=k==Y&&y==I||k==Y&&y==Q&&c[7].length<=d[8]||k==(Y|Q)&&d[7].length<=d[8]&&y==I;if(!(j||Z))return c;k&L&&(c[2]=d[2],$|=y&L?0:P);var J=d[3];if(J){var de=c[3];c[3]=de?_f(de,J,d[4]):J,c[4]=de?tu(c[3],g):d[4]}return J=d[5],J&&(de=c[5],c[5]=de?G0(de,J,d[6]):J,c[6]=de?tu(c[5],g):d[6]),J=d[7],J&&(c[7]=J),k&Y&&(c[8]=c[8]==null?d[8]:pi(c[8],d[8])),c[9]==null&&(c[9]=d[9]),c[0]=d[0],c[1]=$,c}function nw(c){var d=[];if(c!=null)for(var y in tr(c))d.push(y);return d}function t1(c){return Ud.call(c)}function pp(c,d,y){return d=Xr(d===n?c.length-1:d,0),function(){for(var k=arguments,$=-1,j=Xr(k.length-d,0),Z=_e(j);++$<j;)Z[$]=k[d+$];$=-1;for(var J=_e(d+1);++$<d;)J[$]=k[$];return J[d]=y(Z),xt(c,this,J)}}function Rl(c,d){return d.length<2?c:Ii(c,Jr(d,0,-1))}function lu(c,d){for(var y=c.length,k=pi(d.length,y),$=hi(c);k--;){var j=d[k];c[k]=Bs(j,y)?$[j]:n}return c}function Us(c,d){if(!(d==="constructor"&&typeof c[d]=="function")&&d!="__proto__")return c[d]}var Of=n2(oi),kl=ff||function(c,d){return Xt.setTimeout(c,d)},js=n2(qt);function t2(c,d,y){var k=d+"";return js(c,Q4(k,r2(dp(k),y)))}function n2(c){var d=0,y=0;return function(){var k=P4(),$=te-(k-y);if(y=k,$>0){if(++d>=ze)return arguments[0]}else d=0;return c.apply(n,arguments)}}function gh(c,d){var y=-1,k=c.length,$=k-1;for(d=d===n?k:d;++y<d;){var j=_o(y,$),Z=c[j];c[j]=c[y],c[y]=Z}return c.length=d,c}var n1=tw(function(c){var d=[];return c.charCodeAt(0)===46&&d.push(""),c.replace(xr,function(y,k,$,j){d.push($?j.replace(st,"$1"):k||y)}),d});function Ba(c){if(typeof c=="string"||En(c))return c;var d=c+"";return d=="0"&&1/c==-K?"-0":d}function vc(c){if(c!=null){try{return Vm.call(c)}catch{}try{return c+""}catch{}}return""}function r2(c,d){return Lt(Xe,function(y){var k="_."+y[0];d&y[1]&&!rs(c,k)&&c.push(k)}),c.sort()}function i2(c){if(c instanceof An)return c.clone();var d=new Eo(c.__wrapped__,c.__chain__);return d.__actions__=hi(c.__actions__),d.__index__=c.__index__,d.__values__=c.__values__,d}function bh(c,d,y){(y?gi(c,d,y):d===n)?d=1:d=Xr(on(d),0);var k=c==null?0:c.length;if(!k||d<1)return[];for(var $=0,j=0,Z=_e(bl(k/d));$<k;)Z[j++]=Jr(c,$,$+=d);return Z}function a2(c){for(var d=-1,y=c==null?0:c.length,k=0,$=[];++d<y;){var j=c[d];j&&($[k++]=j)}return $}function rw(){var c=arguments.length;if(!c)return[];for(var d=_e(c-1),y=arguments[0],k=c;k--;)d[k-1]=arguments[k];return $a(cn(y)?hi(y):[y],Pi(d,1))}var mp=xn(function(c,d){return Ir(c)?Br(c,Pi(d,1,Ir,!0)):[]}),hp=xn(function(c,d){var y=Ro(d);return Ir(y)&&(y=n),Ir(c)?Br(c,Pi(d,1,Ir,!0),zt(y,2)):[]}),Mf=xn(function(c,d){var y=Ro(d);return Ir(y)&&(y=n),Ir(c)?Br(c,Pi(d,1,Ir,!0),n,y):[]});function r1(c,d,y){var k=c==null?0:c.length;return k?(d=y||d===n?1:on(d),Jr(c,d<0?0:d,k)):[]}function o2(c,d,y){var k=c==null?0:c.length;return k?(d=y||d===n?1:on(d),d=k-d,Jr(c,0,d<0?0:d)):[]}function iw(c,d){return c&&c.length?Cf(c,zt(d,3),!0,!0):[]}function aw(c,d){return c&&c.length?Cf(c,zt(d,3),!0):[]}function ow(c,d,y,k){var $=c==null?0:c.length;return $?(y&&typeof y!="number"&&gi(c,d,y)&&(y=0,k=$),z4(c,d,y,k)):[]}function s2(c,d,y){var k=c==null?0:c.length;if(!k)return-1;var $=y==null?0:on(y);return $<0&&($=Xr(k+$,0)),Id(c,zt(d,3),$)}function yh(c,d,y){var k=c==null?0:c.length;if(!k)return-1;var $=k-1;return y!==n&&($=on(y),$=y<0?Xr(k+$,0):pi($,k-1)),Id(c,zt(d,3),$,!0)}function l2(c){var d=c==null?0:c.length;return d?Pi(c,1):[]}function xh(c){var d=c==null?0:c.length;return d?Pi(c,K):[]}function i1(c,d){var y=c==null?0:c.length;return y?(d=d===n?1:on(d),Pi(c,d)):[]}function u2(c){for(var d=-1,y=c==null?0:c.length,k={};++d<y;){var $=c[d];k[$[0]]=$[1]}return k}function c2(c){return c&&c.length?c[0]:n}function sw(c,d,y){var k=c==null?0:c.length;if(!k)return-1;var $=y==null?0:on(y);return $<0&&($=Xr(k+$,0)),ec(c,d,$)}function lw(c){var d=c==null?0:c.length;return d?Jr(c,0,-1):[]}var uw=xn(function(c){var d=In(c,rp);return d.length&&d[0]===c[0]?P0(d):[]}),vp=xn(function(c){var d=Ro(c),y=In(c,rp);return d===Ro(y)?d=n:y.pop(),y.length&&y[0]===c[0]?P0(y,zt(d,2)):[]}),a1=xn(function(c){var d=Ro(c),y=In(c,rp);return d=typeof d=="function"?d:n,d&&y.pop(),y.length&&y[0]===c[0]?P0(y,n,d):[]});function gp(c,d){return c==null?"":Cy.call(c,d)}function Ro(c){var d=c==null?0:c.length;return d?c[d-1]:n}function cw(c,d,y){var k=c==null?0:c.length;if(!k)return-1;var $=k;return y!==n&&($=on(y),$=$<0?Xr(k+$,0):pi($,k-1)),d===d?hy(c,d,$):Id(c,As,$,!0)}function f2(c,d){return c&&c.length?Vy(c,on(d)):n}var d2=xn(bp);function bp(c,d){return c&&c.length&&d&&d.length?Gn(c,d):c}function Sh(c,d,y){return c&&c.length&&d&&d.length?Gn(c,d,zt(y,2)):c}function p2(c,d,y){return c&&c.length&&d&&d.length?Gn(c,d,n,y):c}var lo=Tl(function(c,d){var y=c==null?0:c.length,k=A0(c,d);return Yr(c,In(d,function($){return Bs($,y)?+$:$}).sort(uh)),k});function Pf(c,d){var y=[];if(!(c&&c.length))return y;var k=-1,$=[],j=c.length;for(d=zt(d,3);++k<j;){var Z=c[k];d(Z,k,c)&&(y.push(Z),$.push(k))}return Yr(c,$),y}function yp(c){return c==null?c:I4.call(c)}function xp(c,d,y){var k=c==null?0:c.length;return k?(y&&typeof y!="number"&&gi(c,d,y)?(d=0,y=k):(d=d==null?0:on(d),y=y===n?k:on(y)),Jr(c,d,y)):[]}function fw(c,d){return oo(c,d)}function o1(c,d,y){return fc(c,d,zt(y,2))}function s1(c,d){var y=c==null?0:c.length;if(y){var k=oo(c,d);if(k<y&&ls(c[k],d))return k}return-1}function Sp(c,d){return oo(c,d,!0)}function dw(c,d,y){return fc(c,d,zt(y,2),!0)}function wh(c,d){var y=c==null?0:c.length;if(y){var k=oo(c,d,!0)-1;if(ls(c[k],d))return k}return-1}function m2(c){return c&&c.length?dc(c):[]}function pw(c,d){return c&&c.length?dc(c,zt(d,2)):[]}function mw(c){var d=c==null?0:c.length;return d?Jr(c,1,d):[]}function hw(c,d,y){return c&&c.length?(d=y||d===n?1:on(d),Jr(c,0,d<0?0:d)):[]}function l1(c,d,y){var k=c==null?0:c.length;return k?(d=y||d===n?1:on(d),d=k-d,Jr(c,d<0?0:d,k)):[]}function vw(c,d){return c&&c.length?Cf(c,zt(d,3),!1,!0):[]}function gw(c,d){return c&&c.length?Cf(c,zt(d,3)):[]}var bw=xn(function(c){return Ds(Pi(c,1,Ir,!0))}),yw=xn(function(c){var d=Ro(c);return Ir(d)&&(d=n),Ds(Pi(c,1,Ir,!0),zt(d,2))}),xw=xn(function(c){var d=Ro(c);return d=typeof d=="function"?d:n,Ds(Pi(c,1,Ir,!0),n,d)});function h2(c){return c&&c.length?Ds(c):[]}function Sw(c,d){return c&&c.length?Ds(c,zt(d,2)):[]}function ww(c,d){return d=typeof d=="function"?d:n,c&&c.length?Ds(c,n,d):[]}function u1(c){if(!(c&&c.length))return[];var d=0;return c=Mi(c,function(y){if(Ir(y))return d=Xr(y.length,d),!0}),Bm(d,function(y){return In(c,Dd(y))})}function v2(c,d){if(!(c&&c.length))return[];var y=u1(c);return d==null?y:In(y,function(k){return xt(d,n,k)})}var Cw=xn(function(c,d){return Ir(c)?Br(c,d):[]}),Nw=xn(function(c){return np(Mi(c,Ir))}),c1=xn(function(c){var d=Ro(c);return Ir(d)&&(d=n),np(Mi(c,Ir),zt(d,2))}),Ew=xn(function(c){var d=Ro(c);return d=typeof d=="function"?d:n,np(Mi(c,Ir),n,d)}),_w=xn(u1);function Tw(c,d){return ah(c||[],d||[],Kd)}function g2(c,d){return ah(c||[],d||[],Be)}var Rw=xn(function(c){var d=c.length,y=d>1?c[d-1]:n;return y=typeof y=="function"?(c.pop(),y):n,v2(c,y)});function b2(c){var d=B(c);return d.__chain__=!0,d}function kw(c,d){return d(c),c}function Ch(c,d){return d(c)}var Aw=Tl(function(c){var d=c.length,y=d?c[0]:0,k=this.__wrapped__,$=function(j){return A0(j,c)};return d>1||this.__actions__.length||!(k instanceof An)||!Bs(y)?this.thru($):(k=k.slice(y,+y+(d?1:0)),k.__actions__.push({func:Ch,args:[$],thisArg:n}),new Eo(k,this.__chain__).thru(function(j){return d&&!j.length&&j.push(n),j}))});function Lw(){return b2(this)}function Ow(){return new Eo(this.value(),this.__chain__)}function y2(){this.__values__===n&&(this.__values__=Ff(this.value()));var c=this.__index__>=this.__values__.length,d=c?n:this.__values__[this.__index__++];return{done:c,value:d}}function f1(){return this}function wp(c){for(var d,y=this;y instanceof xl;){var k=i2(y);k.__index__=0,k.__values__=n,d?$.__wrapped__=k:d=k;var $=k;y=y.__wrapped__}return $.__wrapped__=c,d}function Mw(){var c=this.__wrapped__;if(c instanceof An){var d=c;return this.__actions__.length&&(d=new An(this)),d=d.reverse(),d.__actions__.push({func:Ch,args:[yp],thisArg:n}),new Eo(d,this.__chain__)}return this.thru(yp)}function x2(){return ih(this.__wrapped__,this.__actions__)}var S2=rr(function(c,d,y){nr.call(c,y)?++c[y]:Ps(c,y,1)});function w2(c,d,y){var k=cn(c)?Da:L0;return y&&gi(c,d,y)&&(d=n),k(c,zt(d,3))}function Pw(c,d){var y=cn(c)?Mi:th;return y(c,zt(d,3))}var C2=fh(s2),Iw=fh(yh);function Dw(c,d){return Pi(Nh(c,d),1)}function $w(c,d){return Pi(Nh(c,d),K)}function N2(c,d,y){return y=y===n?1:on(y),Pi(Nh(c,d),y)}function d1(c,d){var y=cn(c)?Lt:au;return y(c,zt(d,3))}function p1(c,d){var y=cn(c)?jt:Xd;return y(c,zt(d,3))}var If=rr(function(c,d,y){nr.call(c,y)?c[y].push(d):Ps(c,y,[d])});function Fw(c,d,y,k){c=si(c)?c:Uf(c),y=y&&!k?on(y):0;var $=c.length;return y<0&&(y=Xr($+y,0)),Ah(c)?y<=$&&c.indexOf(d,y)>-1:!!$&&ec(c,d,y)>-1}var zw=xn(function(c,d,y){var k=-1,$=typeof d=="function",j=si(c)?_e(c.length):[];return au(c,function(Z){j[++k]=$?xt(d,Z,y):Qd(Z,d,y)}),j}),Bw=rr(function(c,d,y){Ps(c,y,d)});function Nh(c,d){var y=cn(c)?In:By;return y(c,zt(d,3))}function Uw(c,d,y,k){return c==null?[]:(cn(d)||(d=d==null?[]:[d]),y=k?n:y,cn(y)||(y=y==null?[]:[y]),Hy(c,d,y))}var jw=rr(function(c,d,y){c[y?0:1].push(d)},function(){return[[],[]]});function E2(c,d,y){var k=cn(c)?ks:zm,$=arguments.length<3;return k(c,zt(d,4),y,$,au)}function Vw(c,d,y){var k=cn(c)?Pd:zm,$=arguments.length<3;return k(c,zt(d,4),y,$,Xd)}function Hw(c,d){var y=cn(c)?Mi:th;return y(c,Th(zt(d,3)))}function _2(c){var d=cn(c)?ky:Y4;return d(c)}function Cp(c,d,y){(y?gi(c,d,y):d===n)?d=1:d=on(d);var k=cn(c)?lc:j0;return k(c,d)}function Np(c){var d=cn(c)?Ay:Sf;return d(c)}function Ww(c){if(c==null)return 0;if(si(c))return Ah(c)?nc(c):c.length;var d=Tr(c);return d==Ce||d==ln?c.size:$0(c).length}function Gw(c,d,y){var k=cn(c)?p0:cc;return y&&gi(c,d,y)&&(d=n),k(c,zt(d,3))}var Yw=xn(function(c,d){if(c==null)return[];var y=d.length;return y>1&&gi(c,d[0],d[1])?d=[]:y>2&&gi(d[0],d[1],d[2])&&(d=[d[0]]),Hy(c,Pi(d,1),[])}),gc=x0||function(){return Xt.Date.now()};function qw(c,d){if(typeof d!="function")throw new ro(l);return c=on(c),function(){if(--c<1)return d.apply(this,arguments)}}function m1(c,d,y){return d=y?n:d,d=c&&d==null?c.length:d,ss(c,Y,n,n,n,n,d)}function T2(c,d){var y;if(typeof d!="function")throw new ro(l);return c=on(c),function(){return--c>0&&(y=d.apply(this,arguments)),c<=1&&(d=n),y}}var Eh=xn(function(c,d,y){var k=L;if(y.length){var $=tu(y,Af(Eh));k|=z}return ss(c,k,d,y,$)}),h1=xn(function(c,d,y){var k=L|D;if(y.length){var $=tu(y,Af(h1));k|=z}return ss(d,k,c,y,$)});function R2(c,d,y){d=y?n:d;var k=ss(c,I,n,n,n,n,n,d);return k.placeholder=R2.placeholder,k}function k2(c,d,y){d=y?n:d;var k=ss(c,F,n,n,n,n,n,d);return k.placeholder=k2.placeholder,k}function A2(c,d,y){var k,$,j,Z,J,de,De=0,Le=!1,Fe=!1,Je=!0;if(typeof c!="function")throw new ro(l);d=ko(d)||0,Rr(y)&&(Le=!!y.leading,Fe="maxWait"in y,j=Fe?Xr(ko(y.maxWait)||0,d):j,Je="trailing"in y?!!y.trailing:Je);function bt(kr){var li=k,na=$;return k=$=n,De=kr,Z=c.apply(na,li),Z}function Bt(kr){return De=kr,J=kl(Sn,d),Le?bt(kr):Z}function vn(kr){var li=kr-de,na=kr-De,Di=d-li;return Fe?pi(Di,j-na):Di}function Ht(kr){var li=kr-de,na=kr-De;return de===n||li>=d||li<0||Fe&&na>=j}function Sn(){var kr=gc();if(Ht(kr))return Ln(kr);J=kl(Sn,vn(kr))}function Ln(kr){return J=n,Je&&k?bt(kr):(k=$=n,Z)}function ta(){J!==n&&oh(J),De=0,k=de=$=J=n}function wr(){return J===n?Z:Ln(gc())}function pa(){var kr=gc(),li=Ht(kr);if(k=arguments,$=this,de=kr,li){if(J===n)return Bt(de);if(Fe)return oh(J),J=kl(Sn,d),bt(de)}return J===n&&(J=kl(Sn,d)),Z}return pa.cancel=ta,pa.flush=wr,pa}var Zw=xn(function(c,d){return Py(c,1,d)}),Kw=xn(function(c,d,y){return Py(c,ko(d)||0,y)});function Xw(c){return ss(c,ie)}function _h(c,d){if(typeof c!="function"||d!=null&&typeof d!="function")throw new ro(l);var y=function(){var k=arguments,$=d?d.apply(this,k):k[0],j=y.cache;if(j.has($))return j.get($);var Z=c.apply(this,k);return y.cache=j.set($,Z)||j,Z};return y.cache=new(_h.Cache||Cl),y}_h.Cache=Cl;function Th(c){if(typeof c!="function")throw new ro(l);return function(){var d=arguments;switch(d.length){case 0:return!c.call(this);case 1:return!c.call(this,d[0]);case 2:return!c.call(this,d[0],d[1]);case 3:return!c.call(this,d[0],d[1],d[2])}return!c.apply(this,d)}}function Qw(c){return T2(2,c)}var Jw=V0(function(c,d){d=d.length==1&&cn(d[0])?In(d[0],Wn(zt())):In(Pi(d,1),Wn(zt()));var y=d.length;return xn(function(k){for(var $=-1,j=pi(k.length,y);++$<j;)k[$]=d[$].call(this,k[$]);return xt(c,this,k)})}),da=xn(function(c,d){var y=tu(d,Af(da));return ss(c,z,n,d,y)}),Df=xn(function(c,d){var y=tu(d,Af(Df));return ss(c,q,n,d,y)}),L2=Tl(function(c,d){return ss(c,Q,n,n,n,d)});function eC(c,d){if(typeof c!="function")throw new ro(l);return d=d===n?d:on(d),xn(c,d)}function O2(c,d){if(typeof c!="function")throw new ro(l);return d=d==null?0:Xr(on(d),0),xn(function(y){var k=y[d],$=Fs(y,0,d);return k&&$a($,k),xt(c,this,$)})}function tC(c,d,y){var k=!0,$=!0;if(typeof c!="function")throw new ro(l);return Rr(y)&&(k="leading"in y?!!y.leading:k,$="trailing"in y?!!y.trailing:$),A2(c,d,{leading:k,maxWait:d,trailing:$})}function nC(c){return m1(c,1)}function rC(c,d){return da(ip(d),c)}function M2(){if(!arguments.length)return[];var c=arguments[0];return cn(c)?c:[c]}function P2(c){return io(c,C)}function iC(c,d){return d=typeof d=="function"?d:n,io(c,C,d)}function aC(c){return io(c,b|C)}function I2(c,d){return d=typeof d=="function"?d:n,io(c,b|C,d)}function v1(c,d){return d==null||My(c,d,bi(d))}function ls(c,d){return c===d||c!==c&&d!==d}var oC=sp(M0),sC=sp(function(c,d){return c>=d}),bc=I0(function(){return arguments}())?I0:function(c){return Dr(c)&&nr.call(c,"callee")&&!uf.call(c,"callee")},cn=_e.isArray,lC=Ue?Wn(Ue):Jd;function si(c){return c!=null&&Tp(c.length)&&!Hs(c)}function Ir(c){return Dr(c)&&si(c)}function Ep(c){return c===!0||c===!1||Dr(c)&&ua(c)==He}var Vs=Sy||U1,uC=Te?Wn(Te):xf;function cC(c){return Dr(c)&&c.nodeType===1&&!yc(c)}function D2(c){if(c==null)return!0;if(si(c)&&(cn(c)||typeof c=="string"||typeof c.splice=="function"||Vs(c)||fu(c)||bc(c)))return!c.length;var d=Tr(c);if(d==Ce||d==ln)return!c.size;if(Lf(c))return!$0(c).length;for(var y in c)if(nr.call(c,y))return!1;return!0}function fC(c,d){return ep(c,d)}function Rh(c,d,y){y=typeof y=="function"?y:n;var k=y?y(c,d):n;return k===n?ep(c,d,n,y):!!k}function uu(c){if(!Dr(c))return!1;var d=ua(c);return d==It||d==wt||typeof c.message=="string"&&typeof c.name=="string"&&!yc(c)}function g1(c){return typeof c=="number"&&wy(c)}function Hs(c){if(!Rr(c))return!1;var d=ua(c);return d==We||d==Vt||d==kt||d==On}function _p(c){return typeof c=="number"&&c==on(c)}function Tp(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=le}function Rr(c){var d=typeof c;return c!=null&&(d=="object"||d=="function")}function Dr(c){return c!=null&&typeof c=="object"}var b1=Ye?Wn(Ye):H4;function $2(c,d){return c===d||D0(c,d,mh(d))}function F2(c,d,y){return y=typeof y=="function"?y:n,D0(c,d,mh(d),y)}function cu(c){return $f(c)&&c!=+c}function dC(c){if(ew(c))throw new an(s);return Dy(c)}function pC(c){return c===null}function mC(c){return c==null}function $f(c){return typeof c=="number"||Dr(c)&&ua(c)==nt}function yc(c){if(!Dr(c)||ua(c)!=rt)return!1;var d=jd(c);if(d===null)return!0;var y=nr.call(d,"constructor")&&d.constructor;return typeof y=="function"&&y instanceof y&&Vm.call(y)==sa}var kh=ft?Wn(ft):W4;function hC(c){return _p(c)&&c>=-le&&c<=le}var y1=Nt?Wn(Nt):$y;function Ah(c){return typeof c=="string"||!cn(c)&&Dr(c)&&ua(c)==Mn}function En(c){return typeof c=="symbol"||Dr(c)&&ua(c)==yn}var fu=$t?Wn($t):Fy;function Lh(c){return c===n}function Rp(c){return Dr(c)&&Tr(c)==tt}function z2(c){return Dr(c)&&ua(c)==rn}var B2=sp(F0),x1=sp(function(c,d){return c<=d});function Ff(c){if(!c)return[];if(si(c))return Ah(c)?as(c):hi(c);if(Vd&&c[Vd])return py(c[Vd]());var d=Tr(c),y=d==Ce?g0:d==ln?Bd:Uf;return y(c)}function Al(c){if(!c)return c===0?c:0;if(c=ko(c),c===K||c===-K){var d=c<0?-1:1;return d*ge}return c===c?c:0}function on(c){var d=Al(c),y=d%1;return d===d?y?d-y:d:0}function xc(c){return c?iu(on(c),0,Ee):0}function ko(c){if(typeof c=="number")return c;if(En(c))return pe;if(Rr(c)){var d=typeof c.valueOf=="function"?c.valueOf():c;c=Rr(d)?d+"":d}if(typeof c!="string")return c===0?c:+c;c=Ls(c);var y=fn.test(c);return y||Aa.test(c)?ct(c.slice(2),y?2:8):Un.test(c)?pe:+c}function S1(c){return ea(c,ja(c))}function vC(c){return c?iu(on(c),-le,le):c===0?c:0}function Jn(c){return c==null?"":ca(c)}var Ua=El(function(c,d){if(Lf(d)||si(d)){ea(d,bi(d),c);return}for(var y in d)nr.call(d,y)&&Kd(c,y,d[y])}),zf=El(function(c,d){ea(d,ja(d),c)}),Sc=El(function(c,d,y,k){ea(d,ja(d),c,k)}),du=El(function(c,d,y,k){ea(d,bi(d),c,k)}),U2=Tl(A0);function wc(c,d){var y=ru(c);return d==null?y:k0(y,d)}var Cc=xn(function(c,d){c=tr(c);var y=-1,k=d.length,$=k>2?d[2]:n;for($&&gi(d[0],d[1],$)&&(k=1);++y<k;)for(var j=d[y],Z=ja(j),J=-1,de=Z.length;++J<de;){var De=Z[J],Le=c[De];(Le===n||ls(Le,lf[De])&&!nr.call(c,De))&&(c[De]=j[De])}return c}),Oh=xn(function(c){return c.push(n,mc),xt(G2,n,c)});function w1(c,d){return h0(c,zt(d,3),Sr)}function Mh(c,d){return h0(c,zt(d,3),lt)}function kp(c,d){return c==null?c:O0(c,zt(d,3),ja)}function j2(c,d){return c==null?c:uc(c,zt(d,3),ja)}function Ph(c,d){return c&&Sr(c,zt(d,3))}function V2(c,d){return c&&lt(c,zt(d,3))}function H2(c){return c==null?[]:ao(c,bi(c))}function gC(c){return c==null?[]:ao(c,ja(c))}function C1(c,d,y){var k=c==null?n:Ii(c,d);return k===n?y:k}function Ih(c,d){return c!=null&&To(c,d,B4)}function Bf(c,d){return c!=null&&To(c,d,U4)}var W2=Y0(function(c,d,y){d!=null&&typeof d.toString!="function"&&(d=Ud.call(d)),c[d]=y},P1(Va)),bC=Y0(function(c,d,y){d!=null&&typeof d.toString!="function"&&(d=Ud.call(d)),nr.call(c,d)?c[d].push(y):c[d]=[y]},zt),Dh=xn(Qd);function bi(c){return si(c)?Ms(c):$0(c)}function ja(c){return si(c)?Ms(c,!0):G4(c)}function yC(c,d){var y={};return d=zt(d,3),Sr(c,function(k,$,j){Ps(y,d(k,$,j),k)}),y}function xC(c,d){var y={};return d=zt(d,3),Sr(c,function(k,$,j){Ps(y,$,d(k,$,j))}),y}var SC=El(function(c,d,y){nh(c,d,y)}),G2=El(function(c,d,y,k){nh(c,d,y,k)}),wC=Tl(function(c,d){var y={};if(c==null)return y;var k=!1;d=In(d,function(j){return j=$s(j,c),k||(k=j.length>1),j}),ea(c,hc(c),y),k&&(y=io(y,b|w|C,hn));for(var $=d.length;$--;)tp(y,d[$]);return y});function CC(c,d){return Y2(c,Th(zt(d)))}var NC=Tl(function(c,d){return c==null?{}:B0(c,d)});function Y2(c,d){if(c==null)return{};var y=In(hc(c),function(k){return[k]});return d=zt(d),Ft(c,y,function(k,$){return d(k,$[0])})}function N1(c,d,y){d=$s(d,c);var k=-1,$=d.length;for($||($=1,c=n);++k<$;){var j=c==null?n:c[Ba(d[k])];j===n&&(k=$,j=y),c=Hs(j)?j.call(c):j}return c}function E1(c,d,y){return c==null?c:Be(c,d,y)}function _1(c,d,y,k){return k=typeof k=="function"?k:n,c==null?c:Be(c,d,y,k)}var $h=ou(bi),q2=ou(ja);function Ap(c,d,y){var k=cn(c),$=k||Vs(c)||fu(c);if(d=zt(d,4),y==null){var j=c&&c.constructor;$?y=k?new j:[]:Rr(c)?y=Hs(j)?ru(jd(c)):{}:y={}}return($?Lt:Sr)(c,function(Z,J,de){return d(y,Z,J,de)}),y}function Lp(c,d){return c==null?!0:tp(c,d)}function EC(c,d,y){return c==null?c:rh(c,d,ip(y))}function Z2(c,d,y,k){return k=typeof k=="function"?k:n,c==null?c:rh(c,d,ip(y),k)}function Uf(c){return c==null?[]:is(c,bi(c))}function _C(c){return c==null?[]:is(c,ja(c))}function K2(c,d,y){return y===n&&(y=d,d=n),y!==n&&(y=ko(y),y=y===y?y:0),d!==n&&(d=ko(d),d=d===d?d:0),iu(ko(c),d,y)}function TC(c,d,y){return d=Al(d),y===n?(y=d,d=0):y=Al(y),c=ko(c),mi(c,d,y)}function RC(c,d,y){if(y&&typeof y!="boolean"&&gi(c,d,y)&&(d=y=n),y===n&&(typeof d=="boolean"?(y=d,d=n):typeof c=="boolean"&&(y=c,c=n)),c===n&&d===n?(c=0,d=1):(c=Al(c),d===n?(d=c,c=0):d=Al(d)),c>d){var k=c;c=d,d=k}if(y||c%1||d%1){var $=_y();return pi(c+$*(d-c+be("1e-"+(($+"").length-1))),d)}return _o(c,d)}var X2=Rf(function(c,d,y){return d=d.toLowerCase(),c+(y?Op(d):d)});function Op(c){return O1(Jn(c).toLowerCase())}function Mp(c){return c=Jn(c),c&&c.replace(ki,C4).replace(ri,"")}function Fh(c,d,y){c=Jn(c),d=ca(d);var k=c.length;y=y===n?k:iu(on(y),0,k);var $=y;return y-=d.length,y>=0&&c.slice(y,$)==d}function Pp(c){return c=Jn(c),c&&Er.test(c)?c.replace(kn,N4):c}function Ip(c){return c=Jn(c),c&&Ja.test(c)?c.replace(Yi,"\\$&"):c}var kC=Rf(function(c,d,y){return c+(y?"-":"")+d.toLowerCase()}),T1=Rf(function(c,d,y){return c+(y?" ":"")+d.toLowerCase()}),R1=Yy("toLowerCase");function AC(c,d,y){c=Jn(c),d=on(d);var k=d?nc(c):0;if(!d||k>=d)return c;var $=(d-k)/2;return pc(Hd($),y)+c+pc(bl($),y)}function LC(c,d,y){c=Jn(c),d=on(d);var k=d?nc(c):0;return d&&k<d?c+pc(d-k,y):c}function yR(c,d,y){c=Jn(c),d=on(d);var k=d?nc(c):0;return d&&k<d?pc(d-k,y)+c:c}function OC(c,d,y){return y||d==null?d=0:d&&(d=+d),Ey(Jn(c).replace(qi,""),d||0)}function MC(c,d,y){return(y?gi(c,d,y):d===n)?d=1:d=on(d),U0(Jn(c),d)}function PC(){var c=arguments,d=Jn(c[0]);return c.length<3?d:d.replace(c[1],c[2])}var IC=Rf(function(c,d,y){return c+(y?"_":"")+d.toLowerCase()});function DC(c,d,y){return y&&typeof y!="number"&&gi(c,d,y)&&(d=y=n),y=y===n?Ee:y>>>0,y?(c=Jn(c),c&&(typeof d=="string"||d!=null&&!kh(d))&&(d=ca(d),!d&&af(c))?Fs(as(c),0,y):c.split(d,y)):[]}var $C=Rf(function(c,d,y){return c+(y?" ":"")+O1(d)});function k1(c,d,y){return c=Jn(c),y=y==null?0:iu(on(y),0,c.length),d=ca(d),c.slice(y,y+d.length)==d}function FC(c,d,y){var k=B.templateSettings;y&&gi(c,d,y)&&(d=n),c=Jn(c),d=Sc({},d,k,za);var $=Sc({},d.imports,k.imports,za),j=bi($),Z=is($,j),J,de,De=0,Le=d.interpolate||wo,Fe="__p += '",Je=vl((d.escape||wo).source+"|"+Le.source+"|"+(Le===ws?Kt:wo).source+"|"+(d.evaluate||wo).source+"|$","g"),bt="//# sourceURL="+(nr.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++hl+"]")+`
`;c.replace(Je,function(Ht,Sn,Ln,ta,wr,pa){return Ln||(Ln=ta),Fe+=c.slice(De,pa).replace(Xu,v0),Sn&&(J=!0,Fe+=`' +
__e(`+Sn+`) +
'`),wr&&(de=!0,Fe+=`';
`+wr+`;
__p += '`),Ln&&(Fe+=`' +
((__t = (`+Ln+`)) == null ? '' : __t) +
'`),De=pa+Ht.length,Ht}),Fe+=`';
`;var Bt=nr.call(d,"variable")&&d.variable;if(!Bt)Fe=`with (obj) {
`+Fe+`
}
`;else if(Cn.test(Bt))throw new an(p);Fe=(de?Fe.replace(zr,""):Fe).replace(Pn,"$1").replace(Ti,"$1;"),Fe="function("+(Bt||"obj")+`) {
`+(Bt?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(J?", __e = _.escape":"")+(de?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+Fe+`return __p
}`;var vn=J2(function(){return Kn(j,bt+"return "+Fe).apply(n,Z)});if(vn.source=Fe,uu(vn))throw vn;return vn}function zC(c){return Jn(c).toLowerCase()}function A1(c){return Jn(c).toUpperCase()}function BC(c,d,y){if(c=Jn(c),c&&(y||d===n))return Ls(c);if(!c||!(d=ca(d)))return c;var k=as(c),$=as(d),j=Fd(k,$),Z=dy(k,$)+1;return Fs(k,j,Z).join("")}function L1(c,d,y){if(c=Jn(c),c&&(y||d===n))return c.slice(0,vy(c)+1);if(!c||!(d=ca(d)))return c;var k=as(c),$=dy(k,as(d))+1;return Fs(k,0,$).join("")}function Q2(c,d,y){if(c=Jn(c),c&&(y||d===n))return c.replace(qi,"");if(!c||!(d=ca(d)))return c;var k=as(c),$=Fd(k,as(d));return Fs(k,$).join("")}function UC(c,d){var y=ae,k=me;if(Rr(d)){var $="separator"in d?d.separator:$;y="length"in d?on(d.length):y,k="omission"in d?ca(d.omission):k}c=Jn(c);var j=c.length;if(af(c)){var Z=as(c);j=Z.length}if(y>=j)return c;var J=y-nc(k);if(J<1)return k;var de=Z?Fs(Z,0,J).join(""):c.slice(0,J);if($===n)return de+k;if(Z&&(J+=de.length-J),kh($)){if(c.slice(J).search($)){var De,Le=de;for($.global||($=vl($.source,Jn(Hn.exec($))+"g")),$.lastIndex=0;De=$.exec(Le);)var Fe=De.index;de=de.slice(0,Fe===n?J:Fe)}}else if(c.indexOf(ca($),J)!=J){var Je=de.lastIndexOf($);Je>-1&&(de=de.slice(0,Je))}return de+k}function jC(c){return c=Jn(c),c&&Ri.test(c)?c.replace(Vn,T4):c}var VC=Rf(function(c,d,y){return c+(y?" ":"")+d.toUpperCase()}),O1=Yy("toUpperCase");function M1(c,d,y){return c=Jn(c),d=y?n:d,d===n?_4(c)?A4(c):m0(c):c.match(d)||[]}var J2=xn(function(c,d){try{return xt(c,n,d)}catch(y){return uu(y)?y:new an(y)}}),HC=Tl(function(c,d){return Lt(d,function(y){y=Ba(y),Ps(c,y,Eh(c[y],c))}),c});function WC(c){var d=c==null?0:c.length,y=zt();return c=d?In(c,function(k){if(typeof k[1]!="function")throw new ro(l);return[y(k[0]),k[1]]}):[],xn(function(k){for(var $=-1;++$<d;){var j=c[$];if(xt(j[0],this,k))return xt(j[1],this,k)}})}function GC(c){return F4(io(c,b))}function P1(c){return function(){return c}}function YC(c,d){return c==null||c!==c?d:c}var qC=qy(),I1=qy(!0);function Va(c){return c}function D1(c){return zy(typeof c=="function"?c:io(c,b))}function ZC(c){return Uy(io(c,b))}function KC(c,d){return z0(c,io(d,b))}var XC=xn(function(c,d){return function(y){return Qd(y,c,d)}}),QC=xn(function(c,d){return function(y){return Qd(c,y,d)}});function $1(c,d,y){var k=bi(d),$=ao(d,k);y==null&&!(Rr(d)&&($.length||!k.length))&&(y=d,d=c,c=this,$=ao(d,bi(d)));var j=!(Rr(y)&&"chain"in y)||!!y.chain,Z=Hs(c);return Lt($,function(J){var de=d[J];c[J]=de,Z&&(c.prototype[J]=function(){var De=this.__chain__;if(j||De){var Le=c(this.__wrapped__),Fe=Le.__actions__=hi(this.__actions__);return Fe.push({func:de,args:arguments,thisArg:c}),Le.__chain__=De,Le}return de.apply(c,$a([this.value()],arguments))})}),c}function JC(){return Xt._===this&&(Xt._=yy),this}function F1(){}function ex(c){return c=on(c),xn(function(d){return Vy(d,c)})}var z1=q0(In),eN=q0(Da),tN=q0(p0);function Dp(c){return vh(c)?Dd(Ba(c)):Nn(c)}function $p(c){return function(d){return c==null?n:Ii(c,d)}}var nN=Z0(),rN=Z0(!0);function B1(){return[]}function U1(){return!1}function iN(){return{}}function aN(){return""}function oN(){return!0}function tx(c,d){if(c=on(c),c<1||c>le)return[];var y=Ee,k=pi(c,Ee);d=zt(d),c-=Ee;for(var $=Bm(k,d);++y<c;)d(y);return $}function sN(c){return cn(c)?In(c,Ba):En(c)?[c]:hi(n1(Jn(c)))}function lN(c){var d=++gy;return Jn(c)+d}var uN=dh(function(c,d){return c+d},0),cN=_l("ceil"),fN=dh(function(c,d){return c/d},1),dN=_l("floor");function pN(c){return c&&c.length?Is(c,Va,M0):n}function mN(c,d){return c&&c.length?Is(c,zt(d,2),M0):n}function hN(c){return fy(c,Va)}function vN(c,d){return fy(c,zt(d,2))}function gN(c){return c&&c.length?Is(c,Va,F0):n}function bN(c,d){return c&&c.length?Is(c,zt(d,2),F0):n}var yN=dh(function(c,d){return c*d},1),xN=_l("round"),SN=dh(function(c,d){return c-d},0);function wN(c){return c&&c.length?rf(c,Va):0}function jf(c,d){return c&&c.length?rf(c,zt(d,2)):0}return B.after=qw,B.ary=m1,B.assign=Ua,B.assignIn=zf,B.assignInWith=Sc,B.assignWith=du,B.at=U2,B.before=T2,B.bind=Eh,B.bindAll=HC,B.bindKey=h1,B.castArray=M2,B.chain=b2,B.chunk=bh,B.compact=a2,B.concat=rw,B.cond=WC,B.conforms=GC,B.constant=P1,B.countBy=S2,B.create=wc,B.curry=R2,B.curryRight=k2,B.debounce=A2,B.defaults=Cc,B.defaultsDeep=Oh,B.defer=Zw,B.delay=Kw,B.difference=mp,B.differenceBy=hp,B.differenceWith=Mf,B.drop=r1,B.dropRight=o2,B.dropRightWhile=iw,B.dropWhile=aw,B.fill=ow,B.filter=Pw,B.flatMap=Dw,B.flatMapDeep=$w,B.flatMapDepth=N2,B.flatten=l2,B.flattenDeep=xh,B.flattenDepth=i1,B.flip=Xw,B.flow=qC,B.flowRight=I1,B.fromPairs=u2,B.functions=H2,B.functionsIn=gC,B.groupBy=If,B.initial=lw,B.intersection=uw,B.intersectionBy=vp,B.intersectionWith=a1,B.invert=W2,B.invertBy=bC,B.invokeMap=zw,B.iteratee=D1,B.keyBy=Bw,B.keys=bi,B.keysIn=ja,B.map=Nh,B.mapKeys=yC,B.mapValues=xC,B.matches=ZC,B.matchesProperty=KC,B.memoize=_h,B.merge=SC,B.mergeWith=G2,B.method=XC,B.methodOf=QC,B.mixin=$1,B.negate=Th,B.nthArg=ex,B.omit=wC,B.omitBy=CC,B.once=Qw,B.orderBy=Uw,B.over=z1,B.overArgs=Jw,B.overEvery=eN,B.overSome=tN,B.partial=da,B.partialRight=Df,B.partition=jw,B.pick=NC,B.pickBy=Y2,B.property=Dp,B.propertyOf=$p,B.pull=d2,B.pullAll=bp,B.pullAllBy=Sh,B.pullAllWith=p2,B.pullAt=lo,B.range=nN,B.rangeRight=rN,B.rearg=L2,B.reject=Hw,B.remove=Pf,B.rest=eC,B.reverse=yp,B.sampleSize=Cp,B.set=E1,B.setWith=_1,B.shuffle=Np,B.slice=xp,B.sortBy=Yw,B.sortedUniq=m2,B.sortedUniqBy=pw,B.split=DC,B.spread=O2,B.tail=mw,B.take=hw,B.takeRight=l1,B.takeRightWhile=vw,B.takeWhile=gw,B.tap=kw,B.throttle=tC,B.thru=Ch,B.toArray=Ff,B.toPairs=$h,B.toPairsIn=q2,B.toPath=sN,B.toPlainObject=S1,B.transform=Ap,B.unary=nC,B.union=bw,B.unionBy=yw,B.unionWith=xw,B.uniq=h2,B.uniqBy=Sw,B.uniqWith=ww,B.unset=Lp,B.unzip=u1,B.unzipWith=v2,B.update=EC,B.updateWith=Z2,B.values=Uf,B.valuesIn=_C,B.without=Cw,B.words=M1,B.wrap=rC,B.xor=Nw,B.xorBy=c1,B.xorWith=Ew,B.zip=_w,B.zipObject=Tw,B.zipObjectDeep=g2,B.zipWith=Rw,B.entries=$h,B.entriesIn=q2,B.extend=zf,B.extendWith=Sc,$1(B,B),B.add=uN,B.attempt=J2,B.camelCase=X2,B.capitalize=Op,B.ceil=cN,B.clamp=K2,B.clone=P2,B.cloneDeep=aC,B.cloneDeepWith=I2,B.cloneWith=iC,B.conformsTo=v1,B.deburr=Mp,B.defaultTo=YC,B.divide=fN,B.endsWith=Fh,B.eq=ls,B.escape=Pp,B.escapeRegExp=Ip,B.every=w2,B.find=C2,B.findIndex=s2,B.findKey=w1,B.findLast=Iw,B.findLastIndex=yh,B.findLastKey=Mh,B.floor=dN,B.forEach=d1,B.forEachRight=p1,B.forIn=kp,B.forInRight=j2,B.forOwn=Ph,B.forOwnRight=V2,B.get=C1,B.gt=oC,B.gte=sC,B.has=Ih,B.hasIn=Bf,B.head=c2,B.identity=Va,B.includes=Fw,B.indexOf=sw,B.inRange=TC,B.invoke=Dh,B.isArguments=bc,B.isArray=cn,B.isArrayBuffer=lC,B.isArrayLike=si,B.isArrayLikeObject=Ir,B.isBoolean=Ep,B.isBuffer=Vs,B.isDate=uC,B.isElement=cC,B.isEmpty=D2,B.isEqual=fC,B.isEqualWith=Rh,B.isError=uu,B.isFinite=g1,B.isFunction=Hs,B.isInteger=_p,B.isLength=Tp,B.isMap=b1,B.isMatch=$2,B.isMatchWith=F2,B.isNaN=cu,B.isNative=dC,B.isNil=mC,B.isNull=pC,B.isNumber=$f,B.isObject=Rr,B.isObjectLike=Dr,B.isPlainObject=yc,B.isRegExp=kh,B.isSafeInteger=hC,B.isSet=y1,B.isString=Ah,B.isSymbol=En,B.isTypedArray=fu,B.isUndefined=Lh,B.isWeakMap=Rp,B.isWeakSet=z2,B.join=gp,B.kebabCase=kC,B.last=Ro,B.lastIndexOf=cw,B.lowerCase=T1,B.lowerFirst=R1,B.lt=B2,B.lte=x1,B.max=pN,B.maxBy=mN,B.mean=hN,B.meanBy=vN,B.min=gN,B.minBy=bN,B.stubArray=B1,B.stubFalse=U1,B.stubObject=iN,B.stubString=aN,B.stubTrue=oN,B.multiply=yN,B.nth=f2,B.noConflict=JC,B.noop=F1,B.now=gc,B.pad=AC,B.padEnd=LC,B.padStart=yR,B.parseInt=OC,B.random=RC,B.reduce=E2,B.reduceRight=Vw,B.repeat=MC,B.replace=PC,B.result=N1,B.round=xN,B.runInContext=fe,B.sample=_2,B.size=Ww,B.snakeCase=IC,B.some=Gw,B.sortedIndex=fw,B.sortedIndexBy=o1,B.sortedIndexOf=s1,B.sortedLastIndex=Sp,B.sortedLastIndexBy=dw,B.sortedLastIndexOf=wh,B.startCase=$C,B.startsWith=k1,B.subtract=SN,B.sum=wN,B.sumBy=jf,B.template=FC,B.times=tx,B.toFinite=Al,B.toInteger=on,B.toLength=xc,B.toLower=zC,B.toNumber=ko,B.toSafeInteger=vC,B.toString=Jn,B.toUpper=A1,B.trim=BC,B.trimEnd=L1,B.trimStart=Q2,B.truncate=UC,B.unescape=jC,B.uniqueId=lN,B.upperCase=VC,B.upperFirst=O1,B.each=d1,B.eachRight=p1,B.first=c2,$1(B,function(){var c={};return Sr(B,function(d,y){nr.call(B.prototype,y)||(c[y]=d)}),c}(),{chain:!1}),B.VERSION=i,Lt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){B[c].placeholder=B}),Lt(["drop","take"],function(c,d){An.prototype[c]=function(y){y=y===n?1:Xr(on(y),0);var k=this.__filtered__&&!d?new An(this):this.clone();return k.__filtered__?k.__takeCount__=pi(y,k.__takeCount__):k.__views__.push({size:pi(y,Ee),type:c+(k.__dir__<0?"Right":"")}),k},An.prototype[c+"Right"]=function(y){return this.reverse()[c](y).reverse()}}),Lt(["filter","map","takeWhile"],function(c,d){var y=d+1,k=y==ee||y==ye;An.prototype[c]=function($){var j=this.clone();return j.__iteratees__.push({iteratee:zt($,3),type:y}),j.__filtered__=j.__filtered__||k,j}}),Lt(["head","last"],function(c,d){var y="take"+(d?"Right":"");An.prototype[c]=function(){return this[y](1).value()[0]}}),Lt(["initial","tail"],function(c,d){var y="drop"+(d?"":"Right");An.prototype[c]=function(){return this.__filtered__?new An(this):this[y](1)}}),An.prototype.compact=function(){return this.filter(Va)},An.prototype.find=function(c){return this.filter(c).head()},An.prototype.findLast=function(c){return this.reverse().find(c)},An.prototype.invokeMap=xn(function(c,d){return typeof c=="function"?new An(this):this.map(function(y){return Qd(y,c,d)})}),An.prototype.reject=function(c){return this.filter(Th(zt(c)))},An.prototype.slice=function(c,d){c=on(c);var y=this;return y.__filtered__&&(c>0||d<0)?new An(y):(c<0?y=y.takeRight(-c):c&&(y=y.drop(c)),d!==n&&(d=on(d),y=d<0?y.dropRight(-d):y.take(d-c)),y)},An.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},An.prototype.toArray=function(){return this.take(Ee)},Sr(An.prototype,function(c,d){var y=/^(?:filter|find|map|reject)|While$/.test(d),k=/^(?:head|last)$/.test(d),$=B[k?"take"+(d=="last"?"Right":""):d],j=k||/^find/.test(d);!$||(B.prototype[d]=function(){var Z=this.__wrapped__,J=k?[1]:arguments,de=Z instanceof An,De=J[0],Le=de||cn(Z),Fe=function(Sn){var Ln=$.apply(B,$a([Sn],J));return k&&Je?Ln[0]:Ln};Le&&y&&typeof De=="function"&&De.length!=1&&(de=Le=!1);var Je=this.__chain__,bt=!!this.__actions__.length,Bt=j&&!Je,vn=de&&!bt;if(!j&&Le){Z=vn?Z:new An(this);var Ht=c.apply(Z,J);return Ht.__actions__.push({func:Ch,args:[Fe],thisArg:n}),new Eo(Ht,Je)}return Bt&&vn?c.apply(this,J):(Ht=this.thru(Fe),Bt?k?Ht.value()[0]:Ht.value():Ht)})}),Lt(["pop","push","shift","sort","splice","unshift"],function(c){var d=gl[c],y=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",k=/^(?:pop|shift)$/.test(c);B.prototype[c]=function(){var $=arguments;if(k&&!this.__chain__){var j=this.value();return d.apply(cn(j)?j:[],$)}return this[y](function(Z){return d.apply(cn(Z)?Z:[],$)})}}),Sr(An.prototype,function(c,d){var y=B[d];if(y){var k=y.name+"";nr.call(hf,k)||(hf[k]=[]),hf[k].push({name:d,func:y})}}),hf[kf(n,D).name]=[{name:"wrapper",func:n}],An.prototype.clone=Ut,An.prototype.reverse=bf,An.prototype.value=Qr,B.prototype.at=Aw,B.prototype.chain=Lw,B.prototype.commit=Ow,B.prototype.next=y2,B.prototype.plant=wp,B.prototype.reverse=Mw,B.prototype.toJSON=B.prototype.valueOf=B.prototype.value=x2,B.prototype.first=B.prototype.head,Vd&&(B.prototype[Vd]=f1),B},sf=L4();O?((O.exports=sf)._=sf,S._=sf):Xt._=sf}).call(jc)})(Xa,Xa.exports);const Lb=Xa.exports,Fge={currentImageUuid:"",images:[],areMoreImagesAvailable:!0},Sj=GT({name:"gallery",initialState:Fge,reducers:{setCurrentImage:(e,t)=>{e.currentImage=t.payload,e.currentImageUuid=t.payload.uuid},removeImage:(e,t)=>{const n=t.payload,i=e.images.filter(o=>o.uuid!==n);if(n===e.currentImageUuid){const o=e.images.findIndex(l=>l.uuid===n),s=Xa.exports.clamp(o,0,i.length-1);e.currentImage=i.length?i[s]:void 0,e.currentImageUuid=i.length?i[s].uuid:""}e.images=i},addImage:(e,t)=>{const n=t.payload,{uuid:i,url:o,mtime:s}=n;e.images.find(l=>l.url===o&&l.mtime===s)||(e.images.unshift(n),e.currentImageUuid=i,e.intermediateImage=void 0,e.currentImage=n,e.latest_mtime=s)},setIntermediateImage:(e,t)=>{e.intermediateImage=t.payload},clearIntermediateImage:e=>{e.intermediateImage=void 0},selectNextImage:e=>{const{images:t,currentImage:n}=e;if(n){const i=t.findIndex(o=>o.uuid===n.uuid);if(Lb.inRange(i,0,t.length)){const o=t[i+1];e.currentImage=o,e.currentImageUuid=o.uuid}}},selectPrevImage:e=>{const{images:t,currentImage:n}=e;if(n){const i=t.findIndex(o=>o.uuid===n.uuid);if(Lb.inRange(i,1,t.length+1)){const o=t[i-1];e.currentImage=o,e.currentImageUuid=o.uuid}}},addGalleryImages:(e,t)=>{const{images:n,areMoreImagesAvailable:i}=t.payload;if(n.length>0){const o=n.filter(s=>!e.images.find(l=>l.url===s.url&&l.mtime===s.mtime));if(e.images=e.images.concat(o).sort((s,l)=>l.mtime-s.mtime),!e.currentImage){const s=n[0];e.currentImage=s,e.currentImageUuid=s.uuid}e.latest_mtime=n[0].mtime,e.earliest_mtime=n[n.length-1].mtime}i!==void 0&&(e.areMoreImagesAvailable=i)}}}),{addImage:I7,clearIntermediateImage:dI,removeImage:zge,setCurrentImage:Bge,addGalleryImages:Uge,setIntermediateImage:jge,selectNextImage:wj,selectPrevImage:Cj}=Sj.actions,Vge=Sj.reducer,Hge={isConnected:!1,isProcessing:!1,log:[],shouldShowLogViewer:!1,shouldDisplayInProgress:!1,shouldDisplayInProgressLatents:!1,shouldDisplayGuides:!0,isGFPGANAvailable:!0,isESRGANAvailable:!0,socketId:"",shouldConfirmOnDelete:!0,openAccordions:[0],currentStep:0,totalSteps:0,currentIteration:0,totalIterations:0,currentStatus:"Disconnected",currentStatusHasSteps:!1,model:"",model_id:"",model_hash:"",app_id:"",app_version:"",hasError:!1,wasErrorSeen:!0},Wge=Hge,Nj=GT({name:"system",initialState:Wge,reducers:{setShouldDisplayInProgress:(e,t)=>{e.shouldDisplayInProgress=t.payload},setShouldDisplayInProgressLatents:(e,t)=>{e.shouldDisplayInProgressLatents=t.payload},setIsProcessing:(e,t)=>{e.isProcessing=t.payload},setCurrentStatus:(e,t)=>{e.currentStatus=t.payload},setSystemStatus:(e,t)=>({...e,...t.payload}),errorOccurred:e=>{e.hasError=!0,e.isProcessing=!1,e.currentStep=0,e.totalSteps=0,e.currentIteration=0,e.totalIterations=0,e.currentStatusHasSteps=!1,e.currentStatus="Server error",e.wasErrorSeen=!1},errorSeen:e=>{e.hasError=!1,e.wasErrorSeen=!0,e.currentStatus=e.isConnected?"Connected":"Disconnected"},addLogEntry:(e,t)=>{const{timestamp:n,message:i,level:o}=t.payload,l={timestamp:n,message:i,level:o||"info"};e.log.push(l)},setShouldShowLogViewer:(e,t)=>{e.shouldShowLogViewer=t.payload},setIsConnected:(e,t)=>{e.isConnected=t.payload,e.isProcessing=!1,e.currentStep=0,e.totalSteps=0,e.currentIteration=0,e.totalIterations=0,e.currentStatusHasSteps=!1,e.hasError=!1},setSocketId:(e,t)=>{e.socketId=t.payload},setShouldConfirmOnDelete:(e,t)=>{e.shouldConfirmOnDelete=t.payload},setOpenAccordions:(e,t)=>{e.openAccordions=t.payload},setSystemConfig:(e,t)=>({...e,...t.payload}),setShouldDisplayGuides:(e,t)=>{e.shouldDisplayGuides=t.payload},processingCanceled:e=>{e.isProcessing=!1,e.currentStep=0,e.totalSteps=0,e.currentIteration=0,e.totalIterations=0,e.currentStatusHasSteps=!1,e.currentStatus="Processing canceled"}}}),{setShouldDisplayInProgress:Gge,setShouldDisplayInProgressLatents:Yge,setIsProcessing:NS,addLogEntry:Do,setShouldShowLogViewer:pI,setIsConnected:mI,setSocketId:T4e,setShouldConfirmOnDelete:Ej,setOpenAccordions:qge,setSystemStatus:Zge,setCurrentStatus:hI,setSystemConfig:Kge,setShouldDisplayGuides:Xge,processingCanceled:Qge,errorOccurred:Jge,errorSeen:_j}=Nj.actions,ebe=Nj.reducer,Yu=Object.create(null);Yu.open="0";Yu.close="1";Yu.ping="2";Yu.pong="3";Yu.message="4";Yu.upgrade="5";Yu.noop="6";const ES=Object.create(null);Object.keys(Yu).forEach(e=>{ES[Yu[e]]=e});const tbe={type:"error",data:"parser error"},nbe=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",rbe=typeof ArrayBuffer=="function",ibe=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Tj=({type:e,data:t},n,i)=>nbe&&t instanceof Blob?n?i(t):vI(t,i):rbe&&(t instanceof ArrayBuffer||ibe(t))?n?i(t):vI(new Blob([t]),i):i(Yu[e]+(t||"")),vI=(e,t)=>{const n=new FileReader;return n.onload=function(){const i=n.result.split(",")[1];t("b"+i)},n.readAsDataURL(e)},gI="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Vg=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<gI.length;e++)Vg[gI.charCodeAt(e)]=e;const abe=e=>{let t=e.length*.75,n=e.length,i,o=0,s,l,p,m;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const v=new ArrayBuffer(t),g=new Uint8Array(v);for(i=0;i<n;i+=4)s=Vg[e.charCodeAt(i)],l=Vg[e.charCodeAt(i+1)],p=Vg[e.charCodeAt(i+2)],m=Vg[e.charCodeAt(i+3)],g[o++]=s<<2|l>>4,g[o++]=(l&15)<<4|p>>2,g[o++]=(p&3)<<6|m&63;return v},obe=typeof ArrayBuffer=="function",Rj=(e,t)=>{if(typeof e!="string")return{type:"message",data:kj(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:sbe(e.substring(1),t)}:ES[n]?e.length>1?{type:ES[n],data:e.substring(1)}:{type:ES[n]}:tbe},sbe=(e,t)=>{if(obe){const n=abe(e);return kj(n,t)}else return{base64:!0,data:e}},kj=(e,t)=>{switch(t){case"blob":return e instanceof ArrayBuffer?new Blob([e]):e;case"arraybuffer":default:return e}},Aj=String.fromCharCode(30),lbe=(e,t)=>{const n=e.length,i=new Array(n);let o=0;e.forEach((s,l)=>{Tj(s,!1,p=>{i[l]=p,++o===n&&t(i.join(Aj))})})},ube=(e,t)=>{const n=e.split(Aj),i=[];for(let o=0;o<n.length;o++){const s=Rj(n[o],t);if(i.push(s),s.type==="error")break}return i},Lj=4;function _i(e){if(e)return cbe(e)}function cbe(e){for(var t in _i.prototype)e[t]=_i.prototype[t];return e}_i.prototype.on=_i.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};_i.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};_i.prototype.off=_i.prototype.removeListener=_i.prototype.removeAllListeners=_i.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var i,o=0;o<n.length;o++)if(i=n[o],i===t||i.fn===t){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+e],this};_i.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(n){n=n.slice(0);for(var i=0,o=n.length;i<o;++i)n[i].apply(this,t)}return this};_i.prototype.emitReserved=_i.prototype.emit;_i.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};_i.prototype.hasListeners=function(e){return!!this.listeners(e).length};const xd=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function Oj(e,...t){return t.reduce((n,i)=>(e.hasOwnProperty(i)&&(n[i]=e[i]),n),{})}const fbe=setTimeout,dbe=clearTimeout;function d4(e,t){t.useNativeTimers?(e.setTimeoutFn=fbe.bind(xd),e.clearTimeoutFn=dbe.bind(xd)):(e.setTimeoutFn=setTimeout.bind(xd),e.clearTimeoutFn=clearTimeout.bind(xd))}const pbe=1.33;function mbe(e){return typeof e=="string"?hbe(e):Math.ceil((e.byteLength||e.size)*pbe)}function hbe(e){let t=0,n=0;for(let i=0,o=e.length;i<o;i++)t=e.charCodeAt(i),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(i++,n+=4);return n}class vbe extends Error{constructor(t,n,i){super(t),this.description=n,this.context=i,this.type="TransportError"}}class Mj extends _i{constructor(t){super(),this.writable=!1,d4(this,t),this.opts=t,this.query=t.query,this.readyState="",this.socket=t.socket}onError(t,n,i){return super.emitReserved("error",new vbe(t,n,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 n=Rj(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}}const Pj="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),I_=64,gbe={};let bI=0,V5=0,yI;function xI(e){let t="";do t=Pj[e%I_]+t,e=Math.floor(e/I_);while(e>0);return t}function Ij(){const e=xI(+new Date);return e!==yI?(bI=0,yI=e):e+"."+xI(bI++)}for(;V5<I_;V5++)gbe[Pj[V5]]=V5;function Dj(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function bbe(e){let t={},n=e.split("&");for(let i=0,o=n.length;i<o;i++){let s=n[i].split("=");t[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return t}let $j=!1;try{$j=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const ybe=$j;function Fj(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||ybe))return new XMLHttpRequest}catch{}if(!t)try{return new xd[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function xbe(){}const Sbe=function(){return new Fj({xdomain:!1}).responseType!=null}();class wbe extends Mj{constructor(t){if(super(t),this.polling=!1,typeof location<"u"){const i=location.protocol==="https:";let o=location.port;o||(o=i?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||o!==t.port,this.xs=t.secure!==i}const n=t&&t.forceBase64;this.supportsBinary=Sbe&&!n}get name(){return"polling"}doOpen(){this.poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this.polling||!this.writable){let i=0;this.polling&&(i++,this.once("pollComplete",function(){--i||n()})),this.writable||(i++,this.once("drain",function(){--i||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=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)};ube(t,this.socket.binaryType).forEach(n),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,lbe(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.query||{};const n=this.opts.secure?"https":"http";let i="";this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=Ij()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.opts.port&&(n==="https"&&Number(this.opts.port)!==443||n==="http"&&Number(this.opts.port)!==80)&&(i=":"+this.opts.port);const o=Dj(t),s=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(s?"["+this.opts.hostname+"]":this.opts.hostname)+i+this.opts.path+(o.length?"?"+o:"")}request(t={}){return Object.assign(t,{xd:this.xd,xs:this.xs},this.opts),new Vu(this.uri(),t)}doWrite(t,n){const i=this.request({method:"POST",data:t});i.on("success",n),i.on("error",(o,s)=>{this.onError("xhr post error",o,s)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,i)=>{this.onError("xhr poll error",n,i)}),this.pollXhr=t}}class Vu extends _i{constructor(t,n){super(),d4(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.async=n.async!==!1,this.data=n.data!==void 0?n.data:null,this.create()}create(){const t=Oj(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;const n=this.xhr=new Fj(t);try{n.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&n.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if(this.method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{n.readyState===4&&(n.status===200||n.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof n.status=="number"?n.status:0)},0))},n.send(this.data)}catch(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document<"u"&&(this.index=Vu.requestsCount++,Vu.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=xbe,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Vu.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()}}Vu.requestsCount=0;Vu.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",SI);else if(typeof addEventListener=="function"){const e="onpagehide"in xd?"pagehide":"unload";addEventListener(e,SI,!1)}}function SI(){for(let e in Vu.requests)Vu.requests.hasOwnProperty(e)&&Vu.requests[e].abort()}const Cbe=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),H5=xd.WebSocket||xd.MozWebSocket,wI=!0,Nbe="arraybuffer",CI=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Ebe extends Mj{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,i=CI?{}:Oj(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=wI&&!CI?n?new H5(t,n):new H5(t):new H5(t,n,i)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType||Nbe,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 n=0;n<t.length;n++){const i=t[n],o=n===t.length-1;Tj(i,this.supportsBinary,s=>{const l={};try{wI&&this.ws.send(s)}catch{}o&&Cbe(()=>{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 n=this.opts.secure?"wss":"ws";let i="";this.opts.port&&(n==="wss"&&Number(this.opts.port)!==443||n==="ws"&&Number(this.opts.port)!==80)&&(i=":"+this.opts.port),this.opts.timestampRequests&&(t[this.opts.timestampParam]=Ij()),this.supportsBinary||(t.b64=1);const o=Dj(t),s=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(s?"["+this.opts.hostname+"]":this.opts.hostname)+i+this.opts.path+(o.length?"?"+o:"")}check(){return!!H5}}const _be={websocket:Ebe,polling:wbe},Tbe=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Rbe=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function D_(e){const t=e,n=e.indexOf("["),i=e.indexOf("]");n!=-1&&i!=-1&&(e=e.substring(0,n)+e.substring(n,i).replace(/:/g,";")+e.substring(i,e.length));let o=Tbe.exec(e||""),s={},l=14;for(;l--;)s[Rbe[l]]=o[l]||"";return n!=-1&&i!=-1&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=kbe(s,s.path),s.queryKey=Abe(s,s.query),s}function kbe(e,t){const n=/\/{2,9}/g,i=t.replace(n,"/").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 Abe(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,o,s){o&&(n[o]=s)}),n}class hd extends _i{constructor(t,n={}){super(),t&&typeof t=="object"&&(n=t,t=null),t?(t=D_(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=D_(n.host).host),d4(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.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},n),this.opts.path=this.opts.path.replace(/\/$/,"")+"/",typeof this.opts.query=="string"&&(this.opts.query=bbe(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 n=Object.assign({},this.opts.query);n.EIO=Lj,n.transport=t,this.id&&(n.sid=this.id);const i=Object.assign({},this.opts.transportOptions[t],this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new _be[t](i)}open(){let t;if(this.opts.rememberUpgrade&&hd.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",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),i=!1;hd.priorWebsocketSuccess=!1;const o=()=>{i||(n.send([{type:"ping",data:"probe"}]),n.once("packet",b=>{if(!i)if(b.type==="pong"&&b.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;hd.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(g(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const w=new Error("probe error");w.transport=n.name,this.emitReserved("upgradeError",w)}}))};function s(){i||(i=!0,g(),n.close(),n=null)}const l=b=>{const w=new Error("probe error: "+b);w.transport=n.name,s(),this.emitReserved("upgradeError",w)};function p(){l("transport closed")}function m(){l("socket closed")}function v(b){n&&b.name!==n.name&&s()}const g=()=>{n.removeListener("open",o),n.removeListener("error",l),n.removeListener("close",p),this.off("close",m),this.off("upgrading",v)};n.once("open",o),n.once("error",l),n.once("close",p),this.once("close",m),this.once("upgrading",v),n.open()}onOpen(){if(this.readyState="open",hd.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade&&this.transport.pause){let t=0;const n=this.upgrades.length;for(;t<n;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 n=new Error("server error");n.code=t.data,this.onError(n);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 n=1;for(let i=0;i<this.writeBuffer.length;i++){const o=this.writeBuffer[i].data;if(o&&(n+=mbe(o)),i>0&&n>this.maxPayload)return this.writeBuffer.slice(0,i);n+=2}return this.writeBuffer}write(t,n,i){return this.sendPacket("message",t,n,i),this}send(t,n,i){return this.sendPacket("message",t,n,i),this}sendPacket(t,n,i,o){if(typeof n=="function"&&(o=n,n=void 0),typeof i=="function"&&(o=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;const s={type:t,data:n,options:i};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},i=()=>{this.once("upgrade",n),this.once("upgradeError",n)};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){hd.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(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,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let i=0;const o=t.length;for(;i<o;i++)~this.transports.indexOf(t[i])&&n.push(t[i]);return n}}hd.protocol=Lj;function Lbe(e,t="",n){let i=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),i=D_(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 s=i.host.indexOf(":")!==-1?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+s+":"+i.port+t,i.href=i.protocol+"://"+s+(n&&n.port===i.port?"":":"+i.port),i}const Obe=typeof ArrayBuffer=="function",Mbe=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,zj=Object.prototype.toString,Pbe=typeof Blob=="function"||typeof Blob<"u"&&zj.call(Blob)==="[object BlobConstructor]",Ibe=typeof File=="function"||typeof File<"u"&&zj.call(File)==="[object FileConstructor]";function tR(e){return Obe&&(e instanceof ArrayBuffer||Mbe(e))||Pbe&&e instanceof Blob||Ibe&&e instanceof File}function _S(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,i=e.length;n<i;n++)if(_S(e[n]))return!0;return!1}if(tR(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return _S(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&_S(e[n]))return!0;return!1}function Dbe(e){const t=[],n=e.data,i=e;return i.data=$_(n,t),i.attachments=t.length,{packet:i,buffers:t}}function $_(e,t){if(!e)return e;if(tR(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let i=0;i<e.length;i++)n[i]=$_(e[i],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=$_(e[i],t));return n}return e}function $be(e,t){return e.data=F_(e.data,t),e.attachments=void 0,e}function F_(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 n=0;n<e.length;n++)e[n]=F_(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=F_(e[n],t));return e}const Fbe=5;var Zn;(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"})(Zn||(Zn={}));class zbe{constructor(t){this.replacer=t}encode(t){return(t.type===Zn.EVENT||t.type===Zn.ACK)&&_S(t)?(t.type=t.type===Zn.EVENT?Zn.BINARY_EVENT:Zn.BINARY_ACK,this.encodeAsBinary(t)):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===Zn.BINARY_EVENT||t.type===Zn.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=Dbe(t),i=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(i),o}}class nR extends _i{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t),n.type===Zn.BINARY_EVENT||n.type===Zn.BINARY_ACK?(this.reconstructor=new Bbe(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(tR(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const i={type:Number(t.charAt(0))};if(Zn[i.type]===void 0)throw new Error("unknown packet type "+i.type);if(i.type===Zn.BINARY_EVENT||i.type===Zn.BINARY_ACK){const s=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const l=t.substring(s,n);if(l!=Number(l)||t.charAt(n)!=="-")throw new Error("Illegal attachments");i.attachments=Number(l)}if(t.charAt(n+1)==="/"){const s=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););i.nsp=t.substring(s,n)}else i.nsp="/";const o=t.charAt(n+1);if(o!==""&&Number(o)==o){const s=n+1;for(;++n;){const l=t.charAt(n);if(l==null||Number(l)!=l){--n;break}if(n===t.length)break}i.id=Number(t.substring(s,n+1))}if(t.charAt(++n)){const s=this.tryParse(t.substr(n));if(nR.isPayloadValid(i.type,s))i.data=s;else throw new Error("invalid payload")}return i}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case Zn.CONNECT:return typeof n=="object";case Zn.DISCONNECT:return n===void 0;case Zn.CONNECT_ERROR:return typeof n=="string"||typeof n=="object";case Zn.EVENT:case Zn.BINARY_EVENT:return Array.isArray(n)&&n.length>0;case Zn.ACK:case Zn.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}class Bbe{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=$be(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const Ube=Object.freeze(Object.defineProperty({__proto__:null,protocol:Fbe,get PacketType(){return Zn},Encoder:zbe,Decoder:nR},Symbol.toStringTag,{value:"Module"}));function Gl(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const jbe=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Bj extends _i{constructor(t,n,i){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,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=[Gl(t,"open",this.onopen.bind(this)),Gl(t,"packet",this.onpacket.bind(this)),Gl(t,"error",this.onerror.bind(this)),Gl(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,...n){if(jbe.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');n.unshift(t);const i={type:Zn.EVENT,data:n};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const l=this.ids++,p=n.pop();this._registerAckCallback(l,p),i.id=l}const o=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!o||!this.connected)||(this.connected?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(t,n){const i=this.flags.timeout;if(i===void 0){this.acks[t]=n;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let s=0;s<this.sendBuffer.length;s++)this.sendBuffer[s].id===t&&this.sendBuffer.splice(s,1);n.call(this,new Error("operation has timed out"))},i);this.acks[t]=(...s)=>{this.io.clearTimeoutFn(o),n.apply(this,[null,...s])}}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this.packet({type:Zn.CONNECT,data:t})}):this.packet({type:Zn.CONNECT,data:this.auth})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Zn.CONNECT:if(t.data&&t.data.sid){const o=t.data.sid;this.onconnect(o)}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 Zn.EVENT:case Zn.BINARY_EVENT:this.onevent(t);break;case Zn.ACK:case Zn.BINARY_ACK:this.onack(t);break;case Zn.DISCONNECT:this.ondisconnect();break;case Zn.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 n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const i of n)i.apply(this,t)}super.emit.apply(this,t)}ack(t){const n=this;let i=!1;return function(...o){i||(i=!0,n.packet({type:Zn.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(n.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:Zn.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 n=this._anyListeners;for(let i=0;i<n.length;i++)if(t===n[i])return n.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 n=this._anyOutgoingListeners;for(let i=0;i<n.length;i++)if(t===n[i])return n.splice(i,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const i of n)i.apply(this,t.data)}}}function u0(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}u0.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};u0.prototype.reset=function(){this.attempts=0};u0.prototype.setMin=function(e){this.ms=e};u0.prototype.setMax=function(e){this.max=e};u0.prototype.setJitter=function(e){this.jitter=e};class z_ extends _i{constructor(t,n){var i;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,d4(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((i=n.randomizationFactor)!==null&&i!==void 0?i:.5),this.backoff=new u0({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||Ube;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.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 n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.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 hd(this.uri,this.opts);const n=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;const o=Gl(n,"open",function(){i.onopen(),t&&t()}),s=Gl(n,"error",l=>{i.cleanup(),i._readyState="closed",this.emitReserved("error",l),t?t(l):i.maybeReconnectOnOpen()});if(this._timeout!==!1){const l=this._timeout;l===0&&o();const p=this.setTimeoutFn(()=>{o(),n.close(),n.emit("error",new Error("timeout"))},l);this.opts.autoUnref&&p.unref(),this.subs.push(function(){clearTimeout(p)})}return this.subs.push(o),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Gl(t,"ping",this.onping.bind(this)),Gl(t,"data",this.ondata.bind(this)),Gl(t,"error",this.onerror.bind(this)),Gl(t,"close",this.onclose.bind(this)),Gl(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,n){let i=this.nsps[t];return i||(i=new Bj(this,t,n),this.nsps[t]=i),i}_destroy(t){const n=Object.keys(this.nsps);for(const i of n)if(this.nsps[i].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let i=0;i<n.length;i++)this.engine.write(n[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,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),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 n=this.backoff.duration();this._reconnecting=!0;const i=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);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 Mg={};function TS(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=Lbe(e,t.path||"/socket.io"),i=n.source,o=n.id,s=n.path,l=Mg[o]&&s in Mg[o].nsps,p=t.forceNew||t["force new connection"]||t.multiplex===!1||l;let m;return p?m=new z_(i,t):(Mg[o]||(Mg[o]=new z_(i,t)),m=Mg[o]),n.query&&!t.query&&(t.query=n.queryKey),m.socket(n.path,t)}Object.assign(TS,{Manager:z_,Socket:Bj,io:TS,connect:TS});let W5;const Vbe=new Uint8Array(16);function Hbe(){if(!W5&&(W5=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!W5))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return W5(Vbe)}const Ea=[];for(let e=0;e<256;++e)Ea.push((e+256).toString(16).slice(1));function Wbe(e,t=0){return(Ea[e[t+0]]+Ea[e[t+1]]+Ea[e[t+2]]+Ea[e[t+3]]+"-"+Ea[e[t+4]]+Ea[e[t+5]]+"-"+Ea[e[t+6]]+Ea[e[t+7]]+"-"+Ea[e[t+8]]+Ea[e[t+9]]+"-"+Ea[e[t+10]]+Ea[e[t+11]]+Ea[e[t+12]]+Ea[e[t+13]]+Ea[e[t+14]]+Ea[e[t+15]]).toLowerCase()}const Gbe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),NI={randomUUID:Gbe};function G5(e,t,n){if(NI.randomUUID&&!t&&!e)return NI.randomUUID();e=e||{};const i=e.random||(e.rng||Hbe)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){n=n||0;for(let o=0;o<16;++o)t[n+o]=i[o];return t}return Wbe(i)}var Ybe=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,qbe=/\b(?:[A-Z]{1,3}[A-Z][TC])(?:[-+]\d{4})?|((?:Australian )?(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time)\b/g,Zbe=/[^-+\dA-Z]/g;function $o(e,t,n,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(EI[t]||t||EI.default);var o=t.slice(0,4);(o==="UTC:"||o==="GMT:")&&(t=t.slice(4),n=!0,o==="GMT:"&&(i=!0));var s=function(){return n?"getUTC":"get"},l=function(){return e[s()+"Date"]()},p=function(){return e[s()+"Day"]()},m=function(){return e[s()+"Month"]()},v=function(){return e[s()+"FullYear"]()},g=function(){return e[s()+"Hours"]()},b=function(){return e[s()+"Minutes"]()},w=function(){return e[s()+"Seconds"]()},C=function(){return e[s()+"Milliseconds"]()},T=function(){return n?0:e.getTimezoneOffset()},R=function(){return Kbe(e)},L=function(){return Xbe(e)},D={d:function(){return l()},dd:function(){return ds(l())},ddd:function(){return Po.dayNames[p()]},DDD:function(){return _I({y:v(),m:m(),d:l(),_:s(),dayName:Po.dayNames[p()],short:!0})},dddd:function(){return Po.dayNames[p()+7]},DDDD:function(){return _I({y:v(),m:m(),d:l(),_:s(),dayName:Po.dayNames[p()+7]})},m:function(){return m()+1},mm:function(){return ds(m()+1)},mmm:function(){return Po.monthNames[m()]},mmmm:function(){return Po.monthNames[m()+12]},yy:function(){return String(v()).slice(2)},yyyy:function(){return ds(v(),4)},h:function(){return g()%12||12},hh:function(){return ds(g()%12||12)},H:function(){return g()},HH:function(){return ds(g())},M:function(){return b()},MM:function(){return ds(b())},s:function(){return w()},ss:function(){return ds(w())},l:function(){return ds(C(),3)},L:function(){return ds(Math.floor(C()/10))},t:function(){return g()<12?Po.timeNames[0]:Po.timeNames[1]},tt:function(){return g()<12?Po.timeNames[2]:Po.timeNames[3]},T:function(){return g()<12?Po.timeNames[4]:Po.timeNames[5]},TT:function(){return g()<12?Po.timeNames[6]:Po.timeNames[7]},Z:function(){return i?"GMT":n?"UTC":Qbe(e)},o:function(){return(T()>0?"-":"+")+ds(Math.floor(Math.abs(T())/60)*100+Math.abs(T())%60,4)},p:function(){return(T()>0?"-":"+")+ds(Math.floor(Math.abs(T())/60),2)+":"+ds(Math.floor(Math.abs(T())%60),2)},S:function(){return["th","st","nd","rd"][l()%10>3?0:(l()%100-l()%10!=10)*l()%10]},W:function(){return R()},WW:function(){return ds(R())},N:function(){return L()}};return t.replace(Ybe,function(P){return P in D?D[P]():P.slice(1,P.length-1)})}var EI={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"},Po={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"]},ds=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return String(t).padStart(n,"0")},_I=function(t){var n=t.y,i=t.m,o=t.d,s=t._,l=t.dayName,p=t.short,m=p===void 0?!1:p,v=new Date,g=new Date;g.setDate(g[s+"Date"]()-1);var b=new Date;b.setDate(b[s+"Date"]()+1);var w=function(){return v[s+"Date"]()},C=function(){return v[s+"Month"]()},T=function(){return v[s+"FullYear"]()},R=function(){return g[s+"Date"]()},L=function(){return g[s+"Month"]()},D=function(){return g[s+"FullYear"]()},P=function(){return b[s+"Date"]()},I=function(){return b[s+"Month"]()},F=function(){return b[s+"FullYear"]()};return T()===n&&C()===i&&w()===o?m?"Tdy":"Today":D()===n&&L()===i&&R()===o?m?"Ysd":"Yesterday":F()===n&&I()===i&&P()===o?m?"Tmw":"Tomorrow":l},Kbe=function(t){var n=new Date(t.getFullYear(),t.getMonth(),t.getDate());n.setDate(n.getDate()-(n.getDay()+6)%7+3);var i=new Date(n.getFullYear(),0,4);i.setDate(i.getDate()-(i.getDay()+6)%7+3);var o=n.getTimezoneOffset()-i.getTimezoneOffset();n.setHours(n.getHours()-o);var s=(n-i)/(864e5*7);return 1+Math.floor(s)},Xbe=function(t){var n=t.getDay();return n===0&&(n=7),n},Qbe=function(t){return(String(t).match(qbe)||[""]).pop().replace(Zbe,"").replace(/GMT\+0000/g,"UTC")};const B_=yo("socketio/generateImage"),Jbe=yo("socketio/runESRGAN"),eye=yo("socketio/runFacetool"),tye=yo("socketio/deleteImage"),Uj=yo("socketio/requestImages"),nye=yo("socketio/requestNewImages"),rye=yo("socketio/cancelProcessing"),iye=yo("socketio/uploadInitialImage");yo("socketio/uploadMaskImage");const aye=yo("socketio/requestSystemConfig"),oye=e=>{const{dispatch:t,getState:n}=e;return{onConnect:()=>{try{t(mI(!0)),t(hI("Connected")),n().gallery.latest_mtime?t(nye()):t(Uj())}catch(i){console.error(i)}},onDisconnect:()=>{try{t(mI(!1)),t(hI("Disconnected")),t(Do({timestamp:$o(new Date,"isoDateTime"),message:"Disconnected from server",level:"warning"}))}catch(i){console.error(i)}},onGenerationResult:i=>{try{const{url:o,mtime:s,metadata:l}=i,p=G5();t(I7({uuid:p,url:o,mtime:s,metadata:l})),t(Do({timestamp:$o(new Date,"isoDateTime"),message:`Image generated: ${o}`}))}catch(o){console.error(o)}},onIntermediateResult:i=>{try{const o=G5(),{url:s,metadata:l,mtime:p}=i;t(jge({uuid:o,url:s,mtime:p,metadata:l})),t(Do({timestamp:$o(new Date,"isoDateTime"),message:`Intermediate image generated: ${s}`}))}catch(o){console.error(o)}},onPostprocessingResult:i=>{try{const{url:o,metadata:s,mtime:l}=i;t(I7({uuid:G5(),url:o,mtime:l,metadata:s})),t(Do({timestamp:$o(new Date,"isoDateTime"),message:`Postprocessed: ${o}`}))}catch(o){console.error(o)}},onProgressUpdate:i=>{try{t(NS(!0)),t(Zge(i))}catch(o){console.error(o)}},onError:i=>{const{message:o,additionalData:s}=i;try{t(Do({timestamp:$o(new Date,"isoDateTime"),message:`Server error: ${o}`,level:"error"})),t(Jge()),t(dI())}catch(l){console.error(l)}},onGalleryImages:i=>{const{images:o,areMoreImagesAvailable:s}=i,l=o.map(p=>{const{url:m,metadata:v,mtime:g}=p;return{uuid:G5(),url:m,mtime:g,metadata:v}});t(Uge({images:l,areMoreImagesAvailable:s})),t(Do({timestamp:$o(new Date,"isoDateTime"),message:`Loaded ${o.length} images`}))},onProcessingCanceled:()=>{t(Qge());const{intermediateImage:i}=n().gallery;i&&(t(I7(i)),t(Do({timestamp:$o(new Date,"isoDateTime"),message:`Intermediate image saved: ${i.url}`})),t(dI())),t(Do({timestamp:$o(new Date,"isoDateTime"),message:"Processing canceled",level:"warning"}))},onImageDeleted:i=>{const{url:o,uuid:s}=i;t(zge(s));const{initialImagePath:l,maskPath:p}=n().options;l===o&&t(Tm("")),p===o&&t(P_("")),t(Do({timestamp:$o(new Date,"isoDateTime"),message:`Image deleted: ${o}`}))},onInitialImageUploaded:i=>{const{url:o}=i;t(Tm(o)),t(Do({timestamp:$o(new Date,"isoDateTime"),message:`Initial image uploaded: ${o}`}))},onMaskImageUploaded:i=>{const{url:o}=i;t(P_(o)),t(Do({timestamp:$o(new Date,"isoDateTime"),message:`Mask image uploaded: ${o}`}))},onSystemConfig:i=>{t(Kge(i))}}},sye=["ddim","plms","k_lms","k_dpm_2","k_dpm_2_a","k_euler","k_euler_a","k_heun"],lye=[64,128,192,256,320,384,448,512,576,640,704,768,832,896,960,1024,1088,1152,1216,1280,1344,1408,1472,1536,1600,1664,1728,1792,1856,1920,1984,2048],uye=[64,128,192,256,320,384,448,512,576,640,704,768,832,896,960,1024,1088,1152,1216,1280,1344,1408,1472,1536,1600,1664,1728,1792,1856,1920,1984,2048],cye=[{key:"2x",value:2},{key:"4x",value:4}],rR=0,iR=4294967295,fye=["gfpgan","codeformer"],jj=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),dye=(e,t)=>{const{prompt:n,iterations:i,steps:o,cfgScale:s,threshold:l,perlin:p,height:m,width:v,sampler:g,seed:b,seamless:w,hiresFix:C,shouldUseInitImage:T,img2imgStrength:R,initialImagePath:L,maskPath:D,shouldFitToWidthHeight:P,shouldGenerateVariations:I,variationAmount:F,seedWeights:z,shouldRunESRGAN:q,upscalingLevel:Y,upscalingStrength:Q,shouldRunFacetool:ie,facetoolStrength:ae,codeformerFidelity:me,facetoolType:ze,shouldRandomizeSeed:te}=e,{shouldDisplayInProgress:ee,shouldDisplayInProgressLatents:we}=t,ye={prompt:n,iterations:i,steps:o,cfg_scale:s,threshold:l,perlin:p,height:m,width:v,sampler_name:g,seed:b,seamless:w,hires_fix:C,progress_images:ee,progress_latents:we};ye.seed=te?jj(rR,iR):b,T&&(ye.init_img=L,ye.strength=R,ye.fit=P,D&&(ye.init_mask=D)),I?(ye.variation_amount=F,z&&(ye.with_variations=wge(z))):ye.variation_amount=0;let K=!1,le=!1;return q&&(K={level:Y,strength:Q}),ie&&(le={type:ze,strength:ae},ze==="codeformer"&&(le.codeformer_fidelity=me)),{generationParameters:ye,esrganParameters:K,facetoolParameters:le}};var D7=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function $7(e,t,n,i){e.addEventListener?e.addEventListener(t,n,i):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function Vj(e,t){for(var n=t.slice(0,t.length-1),i=0;i<n.length;i++)n[i]=e[n[i].toLowerCase()];return n}function Hj(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");for(var t=e.split(","),n=t.lastIndexOf("");n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function pye(e,t){for(var n=e.length>=t.length?e:t,i=e.length>=t.length?t:e,o=!0,s=0;s<n.length;s++)i.indexOf(n[s])===-1&&(o=!1);return o}var aR={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"\u21EA":20,",":188,".":190,"/":191,"`":192,"-":D7?173:189,"=":D7?61:187,";":D7?59:186,"'":222,"[":219,"]":221,"\\":220},kd={"\u21E7":16,shift:16,"\u2325":18,alt:18,option:18,"\u2303":17,ctrl:17,control:17,"\u2318":91,cmd:91,command:91},U_={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},Ta={16:!1,18:!1,17:!1,91:!1},Ci={};for(var Y5=1;Y5<20;Y5++)aR["f".concat(Y5)]=111+Y5;var Vr=[],TI=!1,Wj="all",Gj=[],p4=function(t){return aR[t.toLowerCase()]||kd[t.toLowerCase()]||t.toUpperCase().charCodeAt(0)};function Yj(e){Wj=e||"all"}function Ob(){return Wj||"all"}function mye(){return Vr.slice(0)}function hye(e){var t=e.target||e.srcElement,n=t.tagName,i=!0;return(t.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(i=!1),i}function vye(e){return typeof e=="string"&&(e=p4(e)),Vr.indexOf(e)!==-1}function gye(e,t){var n,i;e||(e=Ob());for(var o in Ci)if(Object.prototype.hasOwnProperty.call(Ci,o))for(n=Ci[o],i=0;i<n.length;)n[i].scope===e?n.splice(i,1):i++;Ob()===e&&Yj(t||"all")}function bye(e){var t=e.keyCode||e.which||e.charCode,n=Vr.indexOf(t);if(n>=0&&Vr.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&Vr.splice(0,Vr.length),(t===93||t===224)&&(t=91),t in Ta){Ta[t]=!1;for(var i in kd)kd[i]===t&&(vs[i]=!1)}}function yye(e){if(typeof e>"u")Object.keys(Ci).forEach(function(l){return delete Ci[l]});else if(Array.isArray(e))e.forEach(function(l){l.key&&F7(l)});else if(typeof e=="object")e.key&&F7(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var o=n[0],s=n[1];typeof o=="function"&&(s=o,o=""),F7({key:e,scope:o,method:s,splitKey:"+"})}}var F7=function(t){var n=t.key,i=t.scope,o=t.method,s=t.splitKey,l=s===void 0?"+":s,p=Hj(n);p.forEach(function(m){var v=m.split(l),g=v.length,b=v[g-1],w=b==="*"?"*":p4(b);if(!!Ci[w]){i||(i=Ob());var C=g>1?Vj(kd,v):[];Ci[w]=Ci[w].filter(function(T){var R=o?T.method===o:!0;return!(R&&T.scope===i&&pye(T.mods,C))})}})};function RI(e,t,n,i){if(t.element===i){var o;if(t.scope===n||t.scope==="all"){o=t.mods.length>0;for(var s in Ta)Object.prototype.hasOwnProperty.call(Ta,s)&&(!Ta[s]&&t.mods.indexOf(+s)>-1||Ta[s]&&t.mods.indexOf(+s)===-1)&&(o=!1);(t.mods.length===0&&!Ta[16]&&!Ta[18]&&!Ta[17]&&!Ta[91]||o||t.shortcut==="*")&&t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function kI(e,t){var n=Ci["*"],i=e.keyCode||e.which||e.charCode;if(!!vs.filter.call(this,e)){if((i===93||i===224)&&(i=91),Vr.indexOf(i)===-1&&i!==229&&Vr.push(i),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(T){var R=U_[T];e[T]&&Vr.indexOf(R)===-1?Vr.push(R):!e[T]&&Vr.indexOf(R)>-1?Vr.splice(Vr.indexOf(R),1):T==="metaKey"&&e[T]&&Vr.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(Vr=Vr.slice(Vr.indexOf(R))))}),i in Ta){Ta[i]=!0;for(var o in kd)kd[o]===i&&(vs[o]=!0);if(!n)return}for(var s in Ta)Object.prototype.hasOwnProperty.call(Ta,s)&&(Ta[s]=e[U_[s]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Vr.indexOf(17)===-1&&Vr.push(17),Vr.indexOf(18)===-1&&Vr.push(18),Ta[17]=!0,Ta[18]=!0);var l=Ob();if(n)for(var p=0;p<n.length;p++)n[p].scope===l&&(e.type==="keydown"&&n[p].keydown||e.type==="keyup"&&n[p].keyup)&&RI(e,n[p],l,t);if(i in Ci){for(var m=0;m<Ci[i].length;m++)if((e.type==="keydown"&&Ci[i][m].keydown||e.type==="keyup"&&Ci[i][m].keyup)&&Ci[i][m].key){for(var v=Ci[i][m],g=v.splitKey,b=v.key.split(g),w=[],C=0;C<b.length;C++)w.push(p4(b[C]));w.sort().join("")===Vr.sort().join("")&&RI(e,v,l,t)}}}}function xye(e){return Gj.indexOf(e)>-1}function vs(e,t,n){Vr=[];var i=Hj(e),o=[],s="all",l=document,p=0,m=!1,v=!0,g="+",b=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(s=t.scope),t.element&&(l=t.element),t.keyup&&(m=t.keyup),t.keydown!==void 0&&(v=t.keydown),t.capture!==void 0&&(b=t.capture),typeof t.splitKey=="string"&&(g=t.splitKey)),typeof t=="string"&&(s=t);p<i.length;p++)e=i[p].split(g),o=[],e.length>1&&(o=Vj(kd,e)),e=e[e.length-1],e=e==="*"?"*":p4(e),e in Ci||(Ci[e]=[]),Ci[e].push({keyup:m,keydown:v,scope:s,mods:o,shortcut:i[p],method:n,key:i[p],splitKey:g,element:l});typeof l<"u"&&!xye(l)&&window&&(Gj.push(l),$7(l,"keydown",function(w){kI(w,l)},b),TI||(TI=!0,$7(window,"focus",function(){Vr=[]},b)),$7(l,"keyup",function(w){kI(w,l),bye(w)},b))}function Sye(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(Ci).forEach(function(n){var i=Ci[n].find(function(o){return o.scope===t&&o.shortcut===e});i&&i.method&&i.method()})}var z7={setScope:Yj,getScope:Ob,deleteScope:gye,getPressedKeyCodes:mye,isPressed:vye,filter:hye,trigger:Sye,unbind:yye,keyMap:aR,modifier:kd,modifierMap:U_};for(var B7 in z7)Object.prototype.hasOwnProperty.call(z7,B7)&&(vs[B7]=z7[B7]);if(typeof window<"u"){var wye=window.hotkeys;vs.noConflict=function(e){return e&&window.hotkeys===vs&&(window.hotkeys=wye),vs},window.hotkeys=vs}vs.filter=function(){return!0};var qj=function(t,n){var i=t.target,o=i&&i.tagName;return Boolean(o&&n&&n.includes(o))},Cye=function(t){return qj(t,["INPUT","TEXTAREA","SELECT"])};function ci(e,t,n,i){n instanceof Array&&(i=n,n=void 0);var o=n||{},s=o.enableOnTags,l=o.filter,p=o.keyup,m=o.keydown,v=o.filterPreventDefault,g=v===void 0?!0:v,b=o.enabled,w=b===void 0?!0:b,C=o.enableOnContentEditable,T=C===void 0?!1:C,R=E.exports.useRef(null),L=E.exports.useCallback(function(D,P){var I,F;return l&&!l(D)?!g:Cye(D)&&!qj(D,s)||(I=D.target)!=null&&I.isContentEditable&&!T?!0:R.current===null||document.activeElement===R.current||(F=R.current)!=null&&F.contains(document.activeElement)?(t(D,P),!0):!1},i?[R,s,l].concat(i):[R,s,l]);return E.exports.useEffect(function(){if(!w){vs.unbind(e,L);return}return p&&m!==!0&&(n.keydown=!1),vs(e,n||{},L),function(){return vs.unbind(e,L)}},[L,e,w]),R}vs.isPressed;var U7="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/components/WorkInProgress/InpaintingWIP.tsx";function Nye(){return N("div",{className:"work-in-progress inpainting-work-in-progress",children:[N("h1",{children:"Inpainting"},void 0,!1,{fileName:U7,lineNumber:6,columnNumber:7},this),N("p",{children:"Inpainting is available as a part of the Invoke AI Command Line Interface. A dedicated WebUI interface will be released in the near future."},void 0,!1,{fileName:U7,lineNumber:7,columnNumber:7},this)]},void 0,!0,{fileName:U7,lineNumber:5,columnNumber:5},this)}var j7="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/components/WorkInProgress/NodesWIP.tsx";function Eye(){return N("div",{className:"work-in-progress nodes-work-in-progress",children:[N("h1",{children:"Nodes"},void 0,!1,{fileName:j7,lineNumber:6,columnNumber:7},this),N("p",{children:"A node based system for the generation of images is under development currently. Stay tuned for updates about this amazing feature."},void 0,!1,{fileName:j7,lineNumber:7,columnNumber:7},this)]},void 0,!0,{fileName:j7,lineNumber:5,columnNumber:5},this)}var V7="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/components/WorkInProgress/OutpaintingWIP.tsx";function _ye(){return N("div",{className:"work-in-progress outpainting-work-in-progress",children:[N("h1",{children:"Outpainting"},void 0,!1,{fileName:V7,lineNumber:6,columnNumber:7},this),N("p",{children:"Outpainting is available as a part of the Invoke AI Command Line Interface. A dedicated WebUI interface will be released in the near future."},void 0,!1,{fileName:V7,lineNumber:7,columnNumber:7},this)]},void 0,!0,{fileName:V7,lineNumber:5,columnNumber:5},this)}var Pg="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/components/WorkInProgress/PostProcessingWIP.tsx";const Tye=()=>N("div",{className:"work-in-progress post-processing-work-in-progress",children:[N("h1",{children:"Post Processing"},void 0,!1,{fileName:Pg,lineNumber:6,columnNumber:7},void 0),N("p",{children:"Invoke AI offers a wide variety of post processing features. Image Upscaling and Face Restoration are already available in the WebUI. You can access them from the Advanced Options menu of the Text To Image and Image To Image tabs. You can also process images directly, using the image action buttons above the main image display."},void 0,!1,{fileName:Pg,lineNumber:7,columnNumber:7},void 0),N("p",{children:"A dedicated UI will be released soon to facilitate more advanced post processing workflows."},void 0,!1,{fileName:Pg,lineNumber:14,columnNumber:7},void 0),N("p",{children:"The Invoke AI Command Line Interface offers various other features including Embiggen."},void 0,!1,{fileName:Pg,lineNumber:18,columnNumber:7},void 0)]},void 0,!0,{fileName:Pg,lineNumber:5,columnNumber:5},void 0);var AI="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/icons/ImageToImageIcon.tsx";const Rye=o0({displayName:"ImageToImageIcon",viewBox:"0 0 3543 3543",path:N("g",{transform:"matrix(1.10943,0,0,1.10943,-206.981,-213.533)",children:N("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M688.533,2405.95L542.987,2405.95C349.532,2405.95 192.47,2248.89 192.47,2055.44L192.47,542.987C192.47,349.532 349.532,192.47 542.987,192.47L2527.88,192.47C2721.33,192.47 2878.4,349.532 2878.4,542.987L2878.4,1172.79L3023.94,1172.79C3217.4,1172.79 3374.46,1329.85 3374.46,1523.3C3374.46,1523.3 3374.46,3035.75 3374.46,3035.75C3374.46,3229.21 3217.4,3386.27 3023.94,3386.27L1039.05,3386.27C845.595,3386.27 688.533,3229.21 688.533,3035.75L688.533,2405.95ZM3286.96,2634.37L3286.96,1523.3C3286.96,1378.14 3169.11,1260.29 3023.94,1260.29C3023.94,1260.29 1039.05,1260.29 1039.05,1260.29C893.887,1260.29 776.033,1378.14 776.033,1523.3L776.033,2489.79L1440.94,1736.22L2385.83,2775.59L2880.71,2200.41L3286.96,2634.37ZM2622.05,1405.51C2778.5,1405.51 2905.51,1532.53 2905.51,1688.98C2905.51,1845.42 2778.5,1972.44 2622.05,1972.44C2465.6,1972.44 2338.58,1845.42 2338.58,1688.98C2338.58,1532.53 2465.6,1405.51 2622.05,1405.51ZM2790.9,1172.79L1323.86,1172.79L944.882,755.906L279.97,1509.47L279.97,542.987C279.97,397.824 397.824,279.97 542.987,279.97C542.987,279.97 2527.88,279.97 2527.88,279.97C2673.04,279.97 2790.9,397.824 2790.9,542.987L2790.9,1172.79ZM2125.98,425.197C2282.43,425.197 2409.45,552.213 2409.45,708.661C2409.45,865.11 2282.43,992.126 2125.98,992.126C1969.54,992.126 1842.52,865.11 1842.52,708.661C1842.52,552.213 1969.54,425.197 2125.98,425.197Z"},void 0,!1,{fileName:AI,lineNumber:8,columnNumber:7},void 0)},void 0,!1,{fileName:AI,lineNumber:7,columnNumber:5},void 0)});var kye="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/icons/InpaintIcon.tsx";const Aye=o0({displayName:"InpaintIcon",viewBox:"0 0 3543 3543",path:N("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M3543.31,768.593C3543.31,517.323 3339.31,313.324 3088.04,313.324L455.269,313.324C203.999,313.324 0,517.323 0,768.593C0,768.593 0,2774.71 0,2774.71C0,3025.98 203.999,3229.98 455.269,3229.98L3088.04,3229.98C3339.31,3229.98 3543.31,3025.98 3543.31,2774.71C3543.31,2774.71 3543.31,768.593 3543.31,768.593ZM3446.56,2252.63L3446.56,768.593C3446.56,570.718 3285.91,410.068 3088.04,410.068C3088.04,410.068 455.269,410.068 455.269,410.068C257.394,410.068 96.745,570.718 96.745,768.593L96.745,2061.49L988.344,1051.01L1326.63,1423.12C1281.74,1438.3 1227.39,1454.93 1158.26,1480.89C995.738,1541.9 944.356,1613.28 911.834,1718.7C884.979,1805.76 875.814,1922.93 811.322,2093.5C763.918,2218.87 765.18,2304.83 790.606,2364.87C817.014,2427.22 869.858,2467.73 941.71,2493.83C1023.86,2523.67 1134.43,2534.25 1242.45,2557.97C1365.72,2585.04 1455.23,2643.2 1532.76,2665.96C1587.03,2681.89 1637.04,2683.6 1686.56,2663.56C1731.54,2645.36 1777.95,2607.64 1825.43,2535.92C1874.9,2461.2 1979.98,2369.94 2102.8,2276.91L2241.64,2429.63L2739.91,1850.53C2754.47,1841.35 2767.47,1833.12 2778.66,1825.94C2832.6,1791.35 2866.82,1742.41 2884.38,1682.61L2898.06,1666.72L3446.56,2252.63ZM1680.71,2559.9C1666.7,2570.37 1652.86,2577.22 1638.81,2580.95L1610.62,2588.45L1625.61,2644.82L1653.8,2637.33C1674.48,2631.83 1695.02,2622.04 1715.64,2606.61L1739,2589.14L1704.06,2542.43L1680.71,2559.9ZM1541.62,2570.42C1524.94,2564.58 1507.63,2557.37 1489.49,2549.48L1462.75,2537.84L1439.48,2591.33L1466.22,2602.97C1485.74,2611.46 1504.38,2619.18 1522.33,2625.47L1549.86,2635.12L1569.15,2580.07L1541.62,2570.42ZM1381.21,2503.1C1363.08,2496.04 1344.17,2489.24 1324.38,2483.03L1296.55,2474.29L1279.07,2529.94L1306.9,2538.68C1325.41,2544.49 1343.09,2550.86 1360.05,2557.46L1387.23,2568.04L1408.39,2513.68L1381.21,2503.1ZM1788.46,2430.83C1773.91,2447.61 1761.19,2463.86 1750.55,2479.44L1734.09,2503.52L1782.25,2536.43L1798.71,2512.35C1808.2,2498.46 1819.56,2484 1832.53,2469.04L1851.64,2447.01L1807.57,2408.79L1788.46,2430.83ZM1262.54,2466.49C1243.17,2462.24 1223.71,2458.43 1204.35,2454.87L1175.67,2449.6L1165.12,2506.97L1193.81,2512.24C1212.52,2515.68 1231.32,2519.35 1250.03,2523.46L1278.52,2529.72L1291.03,2472.74L1262.54,2466.49ZM1089.5,2434.66C1070.28,2431.1 1051.6,2427.35 1033.72,2423.15L1005.32,2416.49L992.002,2473.28L1020.4,2479.94C1039.14,2484.34 1058.71,2488.28 1078.86,2492.02L1107.54,2497.34L1118.18,2439.99L1089.5,2434.66ZM932.182,2386.94C917.545,2378.53 904.788,2368.71 894.532,2356.8L875.504,2334.69L831.294,2372.75L850.322,2394.85C864.755,2411.62 882.513,2425.67 903.11,2437.51L928.396,2452.05L957.469,2401.48L932.182,2386.94ZM1917.04,2306.1C1901.59,2319.37 1886.77,2332.5 1872.67,2345.44L1851.18,2365.17L1890.64,2408.14L1912.12,2388.41C1925.76,2375.89 1940.1,2363.19 1955.04,2350.36L1977.17,2331.36L1939.17,2287.1L1917.04,2306.1ZM866.485,2267.79C866.715,2251.85 868.706,2234.39 872.54,2215.21L878.257,2186.61L821.055,2175.17L815.338,2203.77C810.733,2226.81 808.434,2247.8 808.158,2266.94L807.737,2296.11L866.064,2296.95L866.485,2267.79ZM2055.08,2195.63C2039.24,2207.6 2023.66,2219.55 2008.43,2231.46L1985.45,2249.43L2021.38,2295.38L2044.36,2277.42C2059.34,2265.7 2074.66,2253.95 2090.23,2242.18L2113.51,2224.61L2078.35,2178.06L2055.08,2195.63ZM2197.62,2092.3C2181.57,2103.52 2165.6,2114.82 2149.74,2126.16L2126.02,2143.12L2159.95,2190.57L2183.67,2173.61C2199.36,2162.38 2215.18,2151.21 2231.05,2140.1L2254.95,2123.38L2221.52,2075.58L2197.62,2092.3ZM905.788,2108.14C912.858,2088.7 919.236,2069.96 925.03,2051.88L933.93,2024.1L878.378,2006.3L869.478,2034.08C863.905,2051.47 857.769,2069.5 850.968,2088.2L840.998,2115.61L895.817,2135.55L905.788,2108.14ZM2342.87,1993.45C2326.76,2004.15 2310.52,2015.01 2294.22,2026L2270.04,2042.31L2302.65,2090.67L2326.83,2074.37C2343.01,2063.45 2359.14,2052.67 2375.14,2042.04L2399.44,2025.91L2367.17,1977.31L2342.87,1993.45ZM2489.92,1897.67C2473.88,1907.94 2457.46,1918.5 2440.74,1929.32L2416.26,1945.16L2447.95,1994.14L2472.44,1978.29C2489.07,1967.53 2505.41,1957.02 2521.37,1946.8L2545.93,1931.07L2514.48,1881.94L2489.92,1897.67ZM956.972,1937.49C961.849,1917.31 966.133,1898.15 970.079,1879.93L976.253,1851.43L919.241,1839.08L913.067,1867.59C909.215,1885.38 905.033,1904.08 900.271,1923.79L893.42,1952.13L950.121,1965.84L956.972,1937.49ZM2638.01,1803.95C2622.5,1813.69 2605.98,1824.08 2588.59,1835.04L2563.91,1850.59L2595.02,1899.94L2619.69,1884.38C2637.05,1873.44 2653.55,1863.08 2669.03,1853.35L2693.73,1837.84L2662.71,1788.44L2638.01,1803.95ZM2769.59,1708.14C2760.26,1721.07 2748.81,1732.54 2735.03,1742.4L2711.31,1759.37L2745.25,1806.81L2768.97,1789.84C2788.08,1776.17 2803.93,1760.22 2816.88,1742.3L2833.95,1718.65L2786.67,1684.5L2769.59,1708.14ZM995.304,1767.43C1000.24,1748.86 1005.64,1731.66 1012.23,1715.62L1023.31,1688.64L969.359,1666.47L958.273,1693.45C950.767,1711.72 944.551,1731.29 938.928,1752.44L931.436,1780.63L987.812,1795.62L995.304,1767.43ZM1071.42,1633.09C1083.85,1622.63 1098.26,1612.75 1115.07,1603.23L1140.45,1588.86L1111.71,1538.1L1086.33,1552.47C1066.11,1563.92 1048.82,1575.88 1033.86,1588.46L1011.55,1607.24L1049.11,1651.87L1071.42,1633.09ZM2804.87,1559.28C2805.5,1578.06 2804.95,1596.1 2803,1613.27L2799.72,1642.25L2857.68,1648.81L2860.97,1619.83C2863.22,1599.96 2863.9,1579.07 2863.17,1557.33L2862.2,1528.18L2803.9,1530.12L2804.87,1559.28ZM1217.5,1558.88C1236.87,1551.88 1254.98,1545.61 1271.98,1539.88L1299.62,1530.55L1280.97,1475.28L1253.33,1484.6C1235.96,1490.46 1217.45,1496.87 1197.66,1504.02L1170.23,1513.94L1190.07,1568.8L1217.5,1558.88ZM1383.15,1502.63C1403.9,1495.17 1422.61,1487.67 1439.93,1479.27L1466.18,1466.54L1440.73,1414.06L1414.48,1426.78C1398.91,1434.33 1382.06,1441.03 1363.41,1447.74L1335.96,1457.62L1355.71,1512.51L1383.15,1502.63ZM2777.41,1393.4C2782.33,1412.11 2786.73,1430.56 2790.49,1448.67L2796.42,1477.23L2853.54,1465.37L2847.6,1436.81C2843.64,1417.72 2839.01,1398.28 2833.83,1378.57L2826.41,1350.36L2770,1365.19L2777.41,1393.4ZM1541.19,1401.64C1553.52,1387.35 1565.77,1370.94 1578.31,1351.79L1594.28,1327.39L1545.48,1295.44L1529.5,1319.84C1518.52,1336.62 1507.83,1351.02 1497.03,1363.53L1477.97,1385.61L1522.14,1423.72L1541.19,1401.64ZM2725.02,1229.27C2731.61,1247.45 2738.01,1265.61 2744.12,1283.7L2753.45,1311.33L2808.72,1292.66L2799.38,1265.03C2793.13,1246.53 2786.6,1227.96 2779.85,1209.37L2769.9,1181.95L2715.07,1201.86L2725.02,1229.27ZM1636.99,1247.12C1644.26,1232.56 1651.77,1217.04 1659.58,1200.45C1660.59,1198.3 1661.61,1196.15 1662.61,1194.02L1675.08,1167.65L1622.34,1142.72L1609.88,1169.09C1608.86,1171.25 1607.83,1173.42 1606.81,1175.59C1599.2,1191.75 1591.88,1206.88 1584.8,1221.06L1571.77,1247.16L1623.96,1273.21L1636.99,1247.12ZM2251.58,766.326C2320.04,672.986 2430.48,612.355 2554.96,612.355C2762.48,612.355 2930.95,780.83 2930.95,988.344C2930.95,1087.56 2892.44,1177.85 2829.58,1245.06C2804.67,1171.95 2775.67,1097.93 2747.18,1026.98C2699.54,908.311 2654.38,849.115 2602.9,816.501C2565.59,792.868 2523.88,781.903 2471.8,777.274C2416.47,772.355 2346.53,774.829 2251.58,766.326ZM2662.3,1066.95C2669.46,1084.79 2676.66,1102.83 2683.81,1120.98L2694.51,1148.12L2748.78,1126.72L2738.08,1099.59C2730.88,1081.32 2723.64,1063.18 2716.44,1045.23L2705.58,1018.16L2651.44,1039.88L2662.3,1066.95ZM1713.81,1090.65C1723.08,1073.13 1732.27,1056.54 1741.52,1040.87L1756.33,1015.74L1706.08,986.113L1691.27,1011.24C1681.59,1027.65 1671.95,1045.03 1662.25,1063.39L1648.61,1089.17L1700.18,1116.44L1713.81,1090.65ZM2584.06,922.671C2594.47,934.345 2604.5,948.467 2614.55,965.492L2629.38,990.608L2679.62,960.949L2664.79,935.834C2652.56,915.134 2640.26,898.042 2627.6,883.849L2608.19,862.079L2564.65,900.901L2584.06,922.671ZM1805.33,949.853C1817.51,935.859 1830.16,923.259 1843.5,912.06L1865.85,893.314L1828.36,848.625L1806.01,867.372C1790.4,880.469 1775.59,895.178 1761.34,911.545L1742.18,933.541L1786.17,971.849L1805.33,949.853ZM2446.47,869.303C2466.17,870.516 2483.98,872.335 2500.35,875.649L2528.94,881.438L2540.51,824.265L2511.93,818.476C2493.13,814.67 2472.68,812.474 2450.05,811.08L2420.94,809.287L2417.35,867.51L2446.47,869.303ZM1935.15,861.305C1951.44,856.036 1968.78,851.999 1987.35,849.144L2016.18,844.713L2007.32,787.057L1978.49,791.488C1956.68,794.84 1936.32,799.616 1917.19,805.802L1889.44,814.778L1907.39,870.28L1935.15,861.305ZM2271.35,861.832C2292.28,863.33 2311.95,864.351 2330.47,865.114L2359.61,866.316L2362.01,808.032L2332.87,806.83C2314.9,806.09 2295.82,805.1 2275.51,803.648L2246.42,801.567L2242.26,859.751L2271.35,861.832ZM2097.81,844.858C2115.7,845.771 2134.46,847.337 2154.17,849.543L2183.16,852.787L2189.65,794.816L2160.66,791.572C2139.72,789.228 2119.79,787.57 2100.78,786.6L2071.65,785.114L2068.68,843.372L2097.81,844.858Z"},void 0,!1,{fileName:kye,lineNumber:7,columnNumber:5},void 0)});var Lye="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/icons/NodesIcon.tsx";const Oye=o0({displayName:"NodesIcon",viewBox:"0 0 3543 3543",path:N("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M3543.31,770.787C3543.31,515.578 3336.11,308.38 3080.9,308.38L462.407,308.38C207.197,308.38 0,515.578 0,770.787L0,2766.03C0,3021.24 207.197,3228.44 462.407,3228.44L3080.9,3228.44C3336.11,3228.44 3543.31,3021.24 3543.31,2766.03C3543.31,2766.03 3543.31,770.787 3543.31,770.787ZM3427.88,770.787L3427.88,2766.03C3427.88,2957.53 3272.4,3113.01 3080.9,3113.01C3080.9,3113.01 462.407,3113.01 462.407,3113.01C270.906,3113.01 115.431,2957.53 115.431,2766.03L115.431,770.787C115.431,579.286 270.906,423.812 462.407,423.812L3080.9,423.812C3272.4,423.812 3427.88,579.286 3427.88,770.787ZM1214.23,1130.69L1321.47,1130.69C1324.01,1130.69 1326.54,1130.53 1329.05,1130.2C1329.05,1130.2 1367.3,1125.33 1397.94,1149.8C1421.63,1168.72 1437.33,1204.3 1437.33,1265.48L1437.33,2078.74L1220.99,2078.74C1146.83,2078.74 1086.61,2138.95 1086.61,2213.12L1086.61,2762.46C1086.61,2836.63 1146.83,2896.84 1220.99,2896.84L1770.34,2896.84C1844.5,2896.84 1904.71,2836.63 1904.71,2762.46L1904.71,2213.12C1904.71,2138.95 1844.5,2078.74 1770.34,2078.74L1554,2078.74L1554,1604.84C1625.84,1658.19 1703.39,1658.1 1703.39,1658.1C1703.54,1658.1 1703.69,1658.11 1703.84,1658.11L2362.2,1658.11L2362.2,1874.44C2362.2,1948.61 2422.42,2008.82 2496.58,2008.82L3045.93,2008.82C3120.09,2008.82 3180.3,1948.61 3180.3,1874.44L3180.3,1325.1C3180.3,1250.93 3120.09,1190.72 3045.93,1190.72L2496.58,1190.72C2422.42,1190.72 2362.2,1250.93 2362.2,1325.1L2362.2,1558.97L2362.2,1541.44L1704.23,1541.44C1702.2,1541.37 1650.96,1539.37 1609.51,1499.26C1577.72,1468.49 1554,1416.47 1554,1331.69L1554,1265.48C1554,1153.86 1513.98,1093.17 1470.76,1058.64C1411.24,1011.1 1338.98,1012.58 1319.15,1014.03L1214.23,1014.03L1214.23,796.992C1214.23,722.828 1154.02,662.617 1079.85,662.617L530.507,662.617C456.343,662.617 396.131,722.828 396.131,796.992L396.131,1346.34C396.131,1420.5 456.343,1480.71 530.507,1480.71L1079.85,1480.71C1154.02,1480.71 1214.23,1420.5 1214.23,1346.34L1214.23,1130.69Z"},void 0,!1,{fileName:Lye,lineNumber:7,columnNumber:5},void 0)});var Mye="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/icons/OutpaintIcon.tsx";const Pye=o0({displayName:"OutpaintIcon",viewBox:"0 0 3543 3543",path:N("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M3543.31,766.352C3543.31,516.705 3340.63,314.024 3090.98,314.024L452.328,314.024C202.681,314.024 0,516.705 0,766.352L0,2776.95C0,3026.6 202.681,3229.28 452.328,3229.28C452.328,3229.28 3090.98,3229.28 3090.98,3229.28C3340.63,3229.28 3543.31,3026.6 3543.31,2776.95C3543.31,2776.95 3543.31,766.352 3543.31,766.352ZM3454.26,766.352L3454.26,2776.95C3454.26,2977.46 3291.48,3140.24 3090.98,3140.24L452.328,3140.24C251.825,3140.24 89.043,2977.46 89.043,2776.95C89.043,2776.95 89.043,766.352 89.043,766.352C89.043,565.849 251.825,403.067 452.328,403.067C452.328,403.067 3090.98,403.067 3090.98,403.067C3291.48,403.067 3454.26,565.849 3454.26,766.352ZM1294.01,2603.04L1394.01,2603.04L1394.01,2553.04L1294.01,2553.04L1294.01,2603.04ZM2494.01,2603.04L2524.53,2603.04C2541.26,2603.04 2557.62,2601.44 2573.47,2598.39L2598.02,2593.66L2588.56,2544.56L2564.01,2549.29C2551.23,2551.75 2538.03,2553.04 2524.53,2553.04L2494.01,2553.04L2494.01,2603.04ZM2344.01,2603.04L2444.01,2603.04L2444.01,2553.04L2344.01,2553.04L2344.01,2603.04ZM994.01,2603.04L1094.01,2603.04L1094.01,2553.04L994.01,2553.04L994.01,2603.04ZM1144.01,2603.04L1244.01,2603.04L1244.01,2553.04L1144.01,2553.04L1144.01,2603.04ZM2194.01,2603.04L2294.01,2603.04L2294.01,2553.04L2194.01,2553.04L2194.01,2603.04ZM2044.01,2603.04L2144.01,2603.04L2144.01,2553.04L2044.01,2553.04L2044.01,2603.04ZM1894.01,2603.04L1994.01,2603.04L1994.01,2553.04L1894.01,2553.04L1894.01,2603.04ZM1744.01,2603.04L1844.01,2603.04L1844.01,2553.04L1744.01,2553.04L1744.01,2603.04ZM1444.01,2603.04L1544.01,2603.04L1544.01,2553.04L1444.01,2553.04L1444.01,2603.04ZM1594.01,2603.04L1694.01,2603.04L1694.01,2553.04L1594.01,2553.04L1594.01,2603.04ZM864.145,2551.46C878.835,2562.5 894.741,2572 911.624,2579.74L934.352,2590.15L955.18,2544.7L932.452,2534.28C918.844,2528.05 906.024,2520.39 894.185,2511.49L874.199,2496.47L844.16,2536.44L864.145,2551.46ZM2674.44,2554.92C2689.46,2544.16 2703.28,2531.82 2715.65,2518.14L2732.42,2499.61L2695.35,2466.06L2678.58,2484.6C2668.59,2495.63 2657.44,2505.59 2645.32,2514.28L2625,2528.84L2654.12,2569.48L2674.44,2554.92ZM865.632,1911.31L1339.59,1374.15L2030.89,2134.59L2392.97,1713.77L2677.68,2017.9L2677.68,2324.93C2677.68,2424.23 2597.06,2504.85 2497.76,2504.85C2497.76,2504.85 1045.55,2504.85 1045.55,2504.85C946.251,2504.85 865.632,2424.23 865.632,2324.93L865.632,1911.31ZM771.251,2417.22C776.455,2435.14 783.552,2452.26 792.313,2468.35L804.27,2490.3L848.18,2466.39L836.223,2444.43C829.171,2431.49 823.457,2417.7 819.268,2403.28L812.297,2379.27L764.28,2393.21L771.251,2417.22ZM2770.36,2422.83C2775.83,2405.47 2779.52,2387.33 2781.2,2368.61L2783.43,2343.71L2733.64,2339.24L2731.4,2364.14C2730.05,2379.21 2727.08,2393.82 2722.67,2407.79L2715.15,2431.63L2762.84,2446.67L2770.36,2422.83ZM761.068,2236.12L761.068,2336.12L811.068,2336.12L811.068,2236.12L761.068,2236.12ZM2782.24,2291.41L2782.24,2191.41L2732.24,2191.41L2732.24,2291.41L2782.24,2291.41ZM761.068,2086.12L761.068,2186.12L811.068,2186.12L811.068,2086.12L761.068,2086.12ZM2782.24,2141.41L2782.24,2041.4L2732.24,2041.4L2732.24,2141.41L2782.24,2141.41ZM761.068,1936.12L761.068,2036.12L811.068,2036.12L811.068,1936.12L761.068,1936.12ZM2782.24,1991.4L2782.24,1891.4L2732.24,1891.4L2732.24,1991.4L2782.24,1991.4ZM761.068,1786.12L761.068,1886.12L811.068,1886.12L811.068,1786.12L761.068,1786.12ZM2782.24,1841.4L2782.24,1741.41L2732.24,1741.41L2732.24,1841.4L2782.24,1841.4ZM761.068,1636.12L761.068,1736.12L811.068,1736.12L811.068,1636.12L761.068,1636.12ZM2782.24,1691.41L2782.24,1591.41L2732.24,1591.41L2732.24,1691.41L2782.24,1691.41ZM761.068,1486.12L761.068,1586.12L811.068,1586.12L811.068,1486.12L761.068,1486.12ZM2203.72,1132.2C2318.18,1132.2 2411.11,1225.13 2411.11,1339.59C2411.11,1454.05 2318.18,1546.98 2203.72,1546.98C2089.26,1546.98 1996.33,1454.05 1996.33,1339.59C1996.33,1225.13 2089.26,1132.2 2203.72,1132.2ZM2782.24,1541.41L2782.24,1441.41L2732.24,1441.41L2732.24,1541.41L2782.24,1541.41ZM761.068,1336.12L761.068,1436.12L811.068,1436.12L811.068,1336.12L761.068,1336.12ZM2782.24,1391.41L2782.24,1291.41L2732.24,1291.41L2732.24,1391.41L2782.24,1391.41ZM761.068,1186.12L761.068,1286.12L811.068,1286.12L811.068,1186.12L761.068,1186.12ZM2732.24,1197.98L2732.24,1241.41L2782.24,1241.41L2782.24,1172.98L2781.03,1172.98C2780.06,1162.82 2778.49,1152.83 2776.36,1143.04L2771.04,1118.62L2722.18,1129.24L2727.5,1153.67C2730.61,1167.95 2732.24,1182.78 2732.24,1197.98ZM804.386,1055C794.186,1070.26 785.572,1086.67 778.777,1103.99L769.647,1127.26L816.194,1145.52L825.324,1122.25C830.797,1108.3 837.738,1095.08 845.955,1082.79L859.848,1062L818.279,1034.21L804.386,1055ZM2730.5,1043.14C2719.39,1028.39 2706.73,1014.86 2692.77,1002.81L2673.84,986.48L2641.17,1024.34L2660.1,1040.67C2671.37,1050.39 2681.59,1061.31 2690.56,1073.22L2705.6,1093.19L2745.54,1063.11L2730.5,1043.14ZM933.266,954.821C915.698,961.006 898.998,969.041 883.402,978.694L862.144,991.851L888.457,1034.37L909.715,1021.21C922.275,1013.44 935.723,1006.96 949.871,1001.98L973.452,993.681L956.848,946.518L933.266,954.821ZM2596.18,950.378C2578.71,945.327 2560.49,942.072 2541.72,940.832L2516.78,939.183L2513.48,989.074L2538.43,990.723C2553.54,991.722 2568.22,994.341 2582.28,998.409L2606.3,1005.36L2620.19,957.325L2596.18,950.378ZM2165.09,940.265L2065.09,940.265L2065.09,990.265L2165.09,990.265L2165.09,940.265ZM2015.09,940.265L1915.09,940.265L1915.09,990.265L2015.09,990.265L2015.09,940.265ZM1115.08,940.265L1015.08,940.265L1015.08,990.265L1115.08,990.265L1115.08,940.265ZM1865.08,940.265L1765.08,940.265L1765.08,990.265L1865.08,990.265L1865.08,940.265ZM1265.08,940.265L1165.08,940.265L1165.08,990.265L1265.08,990.265L1265.08,940.265ZM1415.08,940.265L1315.08,940.265L1315.08,990.265L1415.08,990.265L1415.08,940.265ZM1565.08,940.265L1465.08,940.265L1465.08,990.265L1565.08,990.265L1565.08,940.265ZM1715.08,940.265L1615.08,940.265L1615.08,990.265L1715.08,990.265L1715.08,940.265ZM2465.09,940.265L2365.09,940.265L2365.09,990.265L2465.09,990.265L2465.09,940.265ZM2315.09,940.265L2215.09,940.265L2215.09,990.265L2315.09,990.265L2315.09,940.265Z"},void 0,!1,{fileName:Mye,lineNumber:7,columnNumber:5},void 0)});var Iye="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/icons/PostprocessingIcon.tsx";const Dye=o0({displayName:"PostprocessingIcon",viewBox:"0 0 3543 3543",path:N("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M709.477,1596.53L992.591,1275.66L2239.09,2646.81L2891.95,1888.03L3427.88,2460.51L3427.88,994.78C3427.88,954.66 3421.05,916.122 3408.5,880.254L3521.9,855.419C3535.8,899.386 3543.31,946.214 3543.31,994.78L3543.31,2990.02C3543.31,3245.23 3336.11,3452.43 3080.9,3452.43C3080.9,3452.43 462.407,3452.43 462.407,3452.43C207.197,3452.43 -0,3245.23 -0,2990.02L-0,994.78C-0,739.571 207.197,532.373 462.407,532.373L505.419,532.373L504.644,532.546L807.104,600.085C820.223,601.729 832.422,607.722 841.77,617.116C850.131,625.517 855.784,636.21 858.055,647.804L462.407,647.804C270.906,647.804 115.431,803.279 115.431,994.78L115.431,2075.73L-0,2101.5L115.431,2127.28L115.431,2269.78L220.47,2150.73L482.345,2209.21C503.267,2211.83 522.722,2221.39 537.63,2236.37C552.538,2251.35 562.049,2270.9 564.657,2291.93L671.84,2776.17L779.022,2291.93C781.631,2270.9 791.141,2251.35 806.05,2236.37C820.958,2221.39 840.413,2211.83 861.334,2209.21L1353.15,2101.5L861.334,1993.8C840.413,1991.18 820.958,1981.62 806.05,1966.64C791.141,1951.66 781.631,1932.11 779.022,1911.08L709.477,1596.53ZM671.84,1573.09L725.556,2006.07C726.863,2016.61 731.63,2026.4 739.101,2033.91C746.573,2041.42 756.323,2046.21 766.808,2047.53L1197.68,2101.5L766.808,2155.48C756.323,2156.8 746.573,2161.59 739.101,2169.09C731.63,2176.6 726.863,2186.4 725.556,2196.94L671.84,2629.92L618.124,2196.94C616.817,2186.4 612.05,2176.6 604.579,2169.09C597.107,2161.59 587.357,2156.8 576.872,2155.48L146.001,2101.5L576.872,2047.53C587.357,2046.21 597.107,2041.42 604.579,2033.91C612.05,2026.4 616.817,2016.61 618.124,2006.07L671.84,1573.09ZM609.035,1710.36L564.657,1911.08C562.049,1932.11 552.538,1951.66 537.63,1966.64C522.722,1981.62 503.267,1991.18 482.345,1993.8L328.665,2028.11L609.035,1710.36ZM2297.12,938.615L2451.12,973.003C2480.59,976.695 2507.99,990.158 2528.99,1011.26C2549.99,1032.37 2563.39,1059.9 2567.07,1089.52L2672.73,1566.9C2634.5,1580.11 2593.44,1587.29 2550.72,1587.29C2344.33,1587.29 2176.77,1419.73 2176.77,1213.34C2176.77,1104.78 2223.13,1006.96 2297.12,938.615ZM2718.05,76.925L2793.72,686.847C2795.56,701.69 2802.27,715.491 2812.8,726.068C2823.32,736.644 2837.06,743.391 2851.83,745.242L3458.78,821.28L2851.83,897.318C2837.06,899.168 2823.32,905.916 2812.8,916.492C2802.27,927.068 2795.56,940.87 2793.72,955.712L2718.05,1565.63L2642.38,955.712C2640.54,940.87 2633.83,927.068 2623.3,916.492C2612.78,905.916 2599.04,899.168 2584.27,897.318L1977.32,821.28L2584.27,745.242C2599.04,743.391 2612.78,736.644 2623.3,726.068C2633.83,715.491 2640.54,701.69 2642.38,686.847L2718.05,76.925ZM2883.68,1043.06C2909.88,1094.13 2924.67,1152.02 2924.67,1213.34C2924.67,1335.4 2866.06,1443.88 2775.49,1512.14L2869.03,1089.52C2871.07,1073.15 2876.07,1057.42 2883.68,1043.06ZM925.928,201.2L959.611,472.704C960.431,479.311 963.42,485.455 968.105,490.163C972.79,494.871 978.904,497.875 985.479,498.698L1255.66,532.546L985.479,566.395C978.904,567.218 972.79,570.222 968.105,574.93C963.42,579.638 960.431,585.781 959.611,592.388L925.928,863.893L892.245,592.388C891.425,585.781 888.436,579.638 883.751,574.93C879.066,570.222 872.952,567.218 866.378,566.395L596.195,532.546L866.378,498.698C872.952,497.875 879.066,494.871 883.751,490.163C888.436,485.455 891.425,479.311 892.245,472.704L925.928,201.2ZM2864.47,532.373L3080.9,532.373C3258.7,532.373 3413.2,632.945 3490.58,780.281L3319.31,742.773C3257.14,683.925 3173.2,647.804 3080.9,647.804L2927.07,647.804C2919.95,642.994 2913.25,637.473 2907.11,631.298C2886.11,610.194 2872.71,582.655 2869.03,553.04L2864.47,532.373ZM1352.36,532.373L2571.64,532.373L2567.07,553.04C2563.39,582.655 2549.99,610.194 2528.99,631.298C2522.85,637.473 2516.16,642.994 2509.03,647.804L993.801,647.804C996.072,636.21 1001.73,625.517 1010.09,617.116C1019.43,607.722 1031.63,601.729 1044.75,600.085L1353.15,532.546L1352.36,532.373Z"},void 0,!1,{fileName:Iye,lineNumber:7,columnNumber:5},void 0)});var LI="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/icons/TextToImageIcon.tsx";const $ye=o0({displayName:"TextToImageIcon",viewBox:"0 0 3543 3543",path:N("g",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",transform:"matrix(1.11667,0,0,1.1066,-231.131,-213.062)",children:N("path",{d:"M2209.59,1137.35L2209.59,1098.17C2177.13,1108.99 2125.74,1121.91 2055.41,1136.94C2054.77,1137.08 2054.14,1137.21 2053.49,1137.35L1662.79,1137.35C1687.75,1101.98 1720.8,1074.35 1761.93,1054.44C1808.52,1031.9 1875.69,1012.22 1963.45,995.386C2081.86,973.146 2163.91,952.409 2209.59,933.174L2209.59,907.929C2209.59,859.241 2197.57,824.529 2173.53,803.792C2149.48,783.054 2104.1,772.686 2037.38,772.686C1992.3,772.686 1957.14,781.552 1931.89,799.284C1906.64,817.015 1886.21,848.121 1870.58,892.601L1640.67,851.127C1666.51,758.56 1710.99,690.037 1774.11,645.557C1837.22,601.077 1930.99,578.837 2055.41,578.837C2168.42,578.837 2252.57,592.211 2307.87,618.959C2363.17,645.707 2402.09,679.668 2424.63,720.842C2447.17,762.016 2458.44,837.602 2458.44,947.6L2456.7,1137.35L3021.34,1137.35C3214.79,1137.35 3371.86,1294.41 3371.86,1487.87C3371.86,1487.87 3371.86,3000.32 3371.86,3000.32C3371.86,3193.78 3214.79,3350.84 3021.34,3350.84C3021.34,3350.84 1036.45,3350.84 1036.45,3350.84C842.991,3350.84 685.93,3193.78 685.93,3000.32L685.93,1487.87C685.93,1400.21 718.174,1320.03 771.448,1258.54L772.123,1257.76L607.408,1257.76L498.311,1558L215.202,1558L730.028,236.22L1012.24,236.22L1373.06,1137.35L2209.59,1137.35ZM3284.36,2598.93L3284.36,1487.87C3284.36,1342.71 3166.5,1224.85 3021.34,1224.85C3021.34,1224.85 1036.45,1224.85 1036.45,1224.85C891.284,1224.85 773.43,1342.71 773.43,1487.87L773.43,2454.35L1438.34,1700.79L2383.22,2740.16L2878.11,2164.98L3284.36,2598.93ZM2619.44,1370.08C2775.89,1370.08 2902.91,1497.1 2902.91,1653.54C2902.91,1809.99 2775.89,1937.01 2619.44,1937.01C2462.99,1937.01 2335.98,1809.99 2335.98,1653.54C2335.98,1497.1 2462.99,1370.08 2619.44,1370.08ZM772.877,1256.89L772.849,1256.93L773.167,1256.57L772.877,1256.89ZM773.634,1256.04L773.563,1256.12L773.985,1255.64L773.634,1256.04ZM774.394,1255.18L774.276,1255.31L774.746,1254.78L774.394,1255.18ZM775.157,1254.32L774.988,1254.51L775.493,1253.95L775.157,1254.32ZM775.923,1253.47L775.698,1253.72L776.237,1253.12L775.923,1253.47ZM776.691,1252.62L776.403,1252.94L776.979,1252.3L776.691,1252.62ZM777.462,1251.77L777.098,1252.17L777.723,1251.49L777.462,1251.77ZM925.081,1155.44C868.026,1174.57 817.508,1207.99 777.775,1251.43C817.511,1207.99 868.031,1174.57 925.081,1155.44ZM925.646,1155.25L925.108,1155.43L926.103,1155.1L925.646,1155.25ZM935.286,1152.2C932.214,1153.12 929.159,1154.09 926.13,1155.09C929.165,1154.09 932.219,1153.12 935.286,1152.2ZM935.716,1152.07L935.384,1152.17L936.292,1151.89L935.716,1152.07ZM936.843,1151.73L936.451,1151.85L937.327,1151.59L936.843,1151.73ZM937.972,1151.4L937.514,1151.53L938.377,1151.28L937.972,1151.4ZM939.102,1151.07L938.57,1151.22L939.438,1150.97L939.102,1151.07ZM940.233,1150.74L939.613,1150.92L940.505,1150.67L940.233,1150.74ZM946.659,1148.98C944.639,1149.51 942.626,1150.07 940.626,1150.63C942.631,1150.06 944.642,1149.51 946.659,1148.98ZM947.056,1148.87L946.829,1148.93L947.659,1148.71L947.056,1148.87ZM948.198,1148.57L947.919,1148.65L948.705,1148.44L948.198,1148.57ZM949.342,1148.28L949.008,1148.37L949.771,1148.17L949.342,1148.28ZM950.488,1147.99L950.096,1148.09L950.848,1147.9L950.488,1147.99ZM951.635,1147.7L951.182,1147.81L951.932,1147.63L951.635,1147.7ZM952.783,1147.42L952.262,1147.55L953.022,1147.36L952.783,1147.42ZM953.933,1147.14L953.327,1147.28L954.115,1147.09L953.933,1147.14ZM958.213,1146.13C956.927,1146.42 955.644,1146.73 954.354,1147.04C955.637,1146.73 956.923,1146.43 958.213,1146.13ZM958.547,1146.06L958.409,1146.09L959.174,1145.91L958.547,1146.06ZM959.704,1145.79L959.517,1145.84L960.229,1145.68L959.704,1145.79ZM960.863,1145.54L960.626,1145.59L961.311,1145.44L960.863,1145.54ZM962.023,1145.28L961.736,1145.35L962.406,1145.2L962.023,1145.28ZM963.184,1145.03L962.846,1145.11L963.508,1144.97L963.184,1145.03ZM964.347,1144.79L963.956,1144.87L964.615,1144.73L964.347,1144.79ZM965.511,1144.55L965.066,1144.64L965.725,1144.5L965.511,1144.55ZM966.677,1144.31L966.172,1144.41L966.838,1144.28L966.677,1144.31ZM967.844,1144.08L967.269,1144.19L967.953,1144.05L967.844,1144.08ZM970.183,1143.62C969.793,1143.69 969.403,1143.77 969.013,1143.85L969.055,1143.84C969.413,1143.77 969.771,1143.7 970.129,1143.63L970.183,1143.62ZM971.354,1143.4L971.245,1143.42L971.882,1143.3L971.354,1143.4ZM972.526,1143.18L972.37,1143.21L972.987,1143.09L972.526,1143.18ZM973.7,1142.96L973.496,1143L974.103,1142.89L973.7,1142.96ZM974.876,1142.75L974.624,1142.8L975.225,1142.69L974.876,1142.75ZM976.052,1142.55L975.754,1142.6L976.349,1142.49L976.052,1142.55ZM977.23,1142.34L976.885,1142.4L977.476,1142.3L977.23,1142.34ZM978.41,1142.14L978.019,1142.21L978.605,1142.11L978.41,1142.14ZM979.59,1141.95L979.156,1142.02L979.736,1141.92L979.59,1141.95ZM980.772,1141.76L980.299,1141.83L980.868,1141.74L980.772,1141.76ZM981.955,1141.57L981.464,1141.65L982.002,1141.56L981.955,1141.57ZM983.14,1141.39L983.1,1141.39L983.605,1141.32L983.14,1141.39ZM984.326,1141.21L984.239,1141.22L984.778,1141.14L984.326,1141.21ZM985.513,1141.03L985.379,1141.05L985.928,1140.97L985.513,1141.03ZM986.702,1140.86L986.521,1140.89L987.073,1140.81L986.702,1140.86ZM987.891,1140.69L987.665,1140.73L988.218,1140.65L987.891,1140.69ZM989.082,1140.53L988.811,1140.57L989.363,1140.49L989.082,1140.53ZM990.275,1140.37L989.96,1140.41L990.508,1140.34L990.275,1140.37ZM991.468,1140.22L991.113,1140.26L991.654,1140.19L991.468,1140.22ZM992.663,1140.07L992.273,1140.12L992.8,1140.05L992.663,1140.07ZM993.859,1139.92L993.447,1139.97L993.948,1139.91L993.859,1139.92ZM995.056,1139.78L994.671,1139.82L995.097,1139.77L995.056,1139.78ZM996.255,1139.64L996.23,1139.64L996.578,1139.6L996.255,1139.64ZM997.454,1139.5L997.383,1139.51L997.852,1139.46L997.454,1139.5ZM998.655,1139.37L998.537,1139.38L999.041,1139.33L998.655,1139.37ZM999.857,1139.24L999.693,1139.26L1000.21,1139.21L999.857,1139.24ZM1001.06,1139.12L1000.85,1139.14L1001.38,1139.09L1001.06,1139.12ZM1002.26,1139L1002.01,1139.03L1002.54,1138.98L1002.26,1139ZM1003.47,1138.89L1003.18,1138.91L1003.7,1138.87L1003.47,1138.89ZM1004.68,1138.78L1004.34,1138.81L1004.86,1138.76L1004.68,1138.78ZM1005.89,1138.67L1005.52,1138.7L1006.02,1138.66L1005.89,1138.67ZM1007.1,1138.57L1006.71,1138.6L1007.18,1138.56L1007.1,1138.57ZM1008.31,1138.47L1007.96,1138.5L1008.35,1138.46L1008.31,1138.47ZM1009.52,1138.37L1009.5,1138.38L1009.72,1138.36L1009.52,1138.37ZM1010.73,1138.28L1010.67,1138.29L1011.1,1138.26L1010.73,1138.28ZM1011.94,1138.2L1011.84,1138.2L1012.32,1138.17L1011.94,1138.2ZM1013.16,1138.12L1013,1138.13L1013.51,1138.09L1013.16,1138.12ZM1014.37,1138.04L1014.17,1138.05L1014.69,1138.02L1014.37,1138.04ZM1015.59,1137.96L1015.35,1137.98L1015.86,1137.95L1015.59,1137.96ZM1016.81,1137.89L1016.52,1137.91L1017.04,1137.88L1016.81,1137.89ZM1018.03,1137.83L1017.7,1137.85L1018.21,1137.82L1018.03,1137.83ZM1019.25,1137.77L1018.89,1137.79L1019.39,1137.76L1019.25,1137.77ZM1020.47,1137.71L1020.1,1137.73L1020.56,1137.71L1020.47,1137.71ZM1021.69,1137.66L1021.36,1137.67L1021.74,1137.66L1021.69,1137.66ZM1022.92,1137.61L1022.91,1137.61L1023.02,1137.61L1022.92,1137.61ZM1024.14,1137.57L1024.09,1137.57L1024.49,1137.55L1024.14,1137.57ZM1025.37,1137.52L1025.27,1137.53L1025.74,1137.51L1025.37,1137.52ZM1026.6,1137.49L1026.45,1137.49L1026.94,1137.48L1026.6,1137.49ZM1027.82,1137.46L1027.63,1137.46L1028.14,1137.45L1027.82,1137.46ZM1029.05,1137.43L1028.81,1137.43L1029.33,1137.42L1029.05,1137.43ZM1030.28,1137.41L1030,1137.41L1030.52,1137.4L1030.28,1137.41ZM1031.51,1137.39L1031.19,1137.39L1031.7,1137.38L1031.51,1137.39ZM1032.75,1137.37L1032.39,1137.38L1032.89,1137.37L1032.75,1137.37ZM1033.98,1137.36L1033.61,1137.36L1034.07,1137.36L1033.98,1137.36ZM1035.21,1137.35L1034.87,1137.36L1035.26,1137.35L1035.21,1137.35ZM1050.1,1035.06L867.977,544.575L689.455,1035.06L1050.1,1035.06Z"},void 0,!1,{fileName:LI,lineNumber:13,columnNumber:7},void 0)},void 0,!1,{fileName:LI,lineNumber:7,columnNumber:5},void 0)});var Yl=(e=>(e[e.PROMPT=0]="PROMPT",e[e.GALLERY=1]="GALLERY",e[e.OTHER=2]="OTHER",e[e.SEED=3]="SEED",e[e.VARIATIONS=4]="VARIATIONS",e[e.UPSCALE=5]="UPSCALE",e[e.FACE_CORRECTION=6]="FACE_CORRECTION",e[e.IMAGE_TO_IMAGE=7]="IMAGE_TO_IMAGE",e))(Yl||{});const Fye={[0]:{text:"This field will take all prompt text, including both content and stylistic terms. While weights can be included in the prompt, standard CLI Commands/parameters will not work.",href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[1]:{text:"As new invocations are generated, files from the output directory will be displayed here. Generations have additional options to configure new generations.",href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[2]:{text:"These options will enable alternative processing modes for Invoke. Seamless tiling will work to generate repeating patterns in the output. High Resolution Optimization performs a two-step generation cycle, and should be used at higher resolutions when you desire a more coherent image/composition. ",href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[3]:{text:"Seed values provide an initial set of noise which guide the denoising process, and can be randomized or populated with a seed from a previous invocation. The Threshold feature can be used to mitigate undesirable outcomes at higher CFG values (try between 0-10), and Perlin can be used to add Perlin noise into the denoising process - Both serve to add variation to your outputs. ",href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[4]:{text:"Try a variation with an amount of between 0 and 1 to change the output image for the set seed - Interesting variations on the seed are found between 0.1 and 0.3.",href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[5]:{text:"Using ESRGAN you can increase the output resolution without requiring a higher width/height in the initial generation.",href:"link/to/docs/feature1.html",guideImage:"asset/path.gif"},[6]:{text:"Using GFPGAN or Codeformer, Face Correction will attempt to identify faces in outputs, and correct any defects/abnormalities. Higher strength values will apply a stronger corrective pressure on outputs, resulting in more appealing faces. With Codeformer, a higher fidelity will attempt to preserve the original image, at the expense of face correction strength.",href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[7]:{text:"ImageToImage allows the upload of an initial image, which InvokeAI will use to guide the generation process, along with a prompt. A lower value for this setting will more closely resemble the original image. Values between 0-1 are accepted, and a range of .25-.75 is recommended ",href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"}};var q5="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/components/IAISwitch.tsx";const $m=e=>{const{label:t,isDisabled:n=!1,fontSize:i="md",size:o="md",width:s="auto",...l}=e;return N(Ld,{isDisabled:n,width:s,children:N(Nr,{justifyContent:"space-between",alignItems:"center",children:[t&&N(Am,{fontSize:i,marginBottom:1,flexGrow:2,whiteSpace:"nowrap",children:t},void 0,!1,{fileName:q5,lineNumber:30,columnNumber:11},void 0),N(l4,{size:o,className:"switch-button",...l},void 0,!1,{fileName:q5,lineNumber:39,columnNumber:9},void 0)]},void 0,!0,{fileName:q5,lineNumber:28,columnNumber:7},void 0)},void 0,!1,{fileName:q5,lineNumber:27,columnNumber:5},void 0)};var H7="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/FaceRestore/FaceRestore.tsx";function Zj(){const e=yt(o=>o.system.isGFPGANAvailable),t=yt(o=>o.options.shouldRunFacetool),n=wn();return N(Nr,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[N("p",{children:"Restore Face"},void 0,!1,{fileName:H7,lineNumber:32,columnNumber:7},this),N($m,{isDisabled:!e,isChecked:t,onChange:o=>n(Age(o.target.checked))},void 0,!1,{fileName:H7,lineNumber:33,columnNumber:7},this)]},void 0,!0,{fileName:H7,lineNumber:26,columnNumber:5},this)}var rm="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/components/IAINumberInput.tsx";const OI=/^-?(0\.)?\.?$/,Ql=e=>{const{label:t,styleClass:n,isDisabled:i=!1,showStepper:o=!0,fontSize:s="1rem",size:l="sm",width:p,textAlign:m,isInvalid:v,value:g,onChange:b,min:w,max:C,isInteger:T=!0,...R}=e,[L,D]=E.exports.useState(String(g));E.exports.useEffect(()=>{!L.match(OI)&&g!==Number(L)&&D(String(g))},[g,L]);const P=F=>{D(F),F.match(OI)||b(T?Math.floor(Number(F)):Number(F))},I=F=>{const z=Lb.clamp(T?Math.floor(Number(F.target.value)):Number(F.target.value),w,C);D(String(z)),b(z)};return N(Ld,{isDisabled:i,isInvalid:v,className:`number-input ${n}`,children:[t&&N(Am,{fontSize:s,marginBottom:1,flexGrow:2,whiteSpace:"nowrap",className:"number-input-label",children:t},void 0,!1,{fileName:rm,lineNumber:103,columnNumber:9},void 0),N(FB,{size:l,...R,className:"number-input-field",value:L,keepWithinRange:!0,clampValueOnBlur:!1,onChange:P,onBlur:I,children:[N(zB,{fontSize:s,className:"number-input-entry",width:p,textAlign:m},void 0,!1,{fileName:rm,lineNumber:123,columnNumber:9},void 0),N("div",{className:"number-input-stepper",style:o?{display:"block"}:{display:"none"},children:[N(jB,{className:"number-input-stepper-button"},void 0,!1,{fileName:rm,lineNumber:133,columnNumber:11},void 0),N(UB,{className:"number-input-stepper-button"},void 0,!1,{fileName:rm,lineNumber:134,columnNumber:11},void 0)]},void 0,!0,{fileName:rm,lineNumber:129,columnNumber:9},void 0)]},void 0,!0,{fileName:rm,lineNumber:113,columnNumber:7},void 0)]},void 0,!0,{fileName:rm,lineNumber:97,columnNumber:5},void 0)};var Ig="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/components/IAISelect.tsx";const oy=e=>{const{label:t,isDisabled:n,validValues:i,size:o="sm",fontSize:s="md",styleClass:l,...p}=e;return N(Ld,{isDisabled:n,className:`iai-select ${l}`,children:[N(Am,{fontSize:s,marginBottom:1,flexGrow:2,whiteSpace:"nowrap",className:"iai-select-label",children:t},void 0,!1,{fileName:Ig,lineNumber:25,columnNumber:7},void 0),N(GB,{fontSize:s,size:o,...p,className:"iai-select-picker",children:i.map(m=>typeof m=="string"||typeof m=="number"?N("option",{value:m,className:"iai-select-option",children:m},m,!1,{fileName:Ig,lineNumber:42,columnNumber:13},void 0):N("option",{value:m.value,children:m.key},m.value,!1,{fileName:Ig,lineNumber:46,columnNumber:13},void 0))},void 0,!1,{fileName:Ig,lineNumber:34,columnNumber:7},void 0)]},void 0,!0,{fileName:Ig,lineNumber:24,columnNumber:5},void 0)};var Z5="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/FaceRestore/FaceRestoreOptions.tsx";const zye=Qa(e=>e.options,e=>({facetoolStrength:e.facetoolStrength,facetoolType:e.facetoolType,codeformerFidelity:e.codeformerFidelity}),{memoizeOptions:{resultEqualityCheck:Xa.exports.isEqual}}),Bye=Qa(e=>e.system,e=>({isGFPGANAvailable:e.isGFPGANAvailable}),{memoizeOptions:{resultEqualityCheck:Xa.exports.isEqual}}),oR=()=>{const e=wn(),{facetoolStrength:t,facetoolType:n,codeformerFidelity:i}=yt(zye),{isGFPGANAvailable:o}=yt(Bye),s=m=>e(wS(m)),l=m=>e(bj(m)),p=m=>e(CS(m.target.value));return N(Nr,{direction:"column",gap:2,children:[N(oy,{label:"Type",validValues:fye.concat(),value:n,onChange:p},void 0,!1,{fileName:Z5,lineNumber:71,columnNumber:7},void 0),N(Ql,{isDisabled:!o,label:"Strength",step:.05,min:0,max:1,onChange:s,value:t,width:"90px",isInteger:!1},void 0,!1,{fileName:Z5,lineNumber:77,columnNumber:7},void 0),n==="codeformer"&&N(Ql,{isDisabled:!o,label:"Fidelity",step:.05,min:0,max:1,onChange:l,value:i,width:"90px",isInteger:!1},void 0,!1,{fileName:Z5,lineNumber:89,columnNumber:9},void 0)]},void 0,!0,{fileName:Z5,lineNumber:70,columnNumber:5},void 0)};var Uye="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/ImageToImage/ImageFit.tsx";function jye(){const e=wn(),t=yt(i=>i.options.shouldFitToWidthHeight);return N($m,{label:"Fit Initial Image To Output Size",isChecked:t,onChange:i=>e(yj(i.target.checked))},void 0,!1,{fileName:Uye,lineNumber:21,columnNumber:5},this)}var Vye="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/ImageToImage/ImageToImageStrength.tsx";function Hye(e){const{label:t="Strength",styleClass:n}=e,i=yt(l=>l.options.img2imgStrength),o=wn();return N(Ql,{label:t,step:.01,min:.01,max:.99,onChange:l=>o(gj(l)),value:i,width:"90px",isInteger:!1,styleClass:n},void 0,!1,{fileName:Vye,lineNumber:26,columnNumber:5},this)}var Wye="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/Seed/RandomizeSeed.tsx";function Gye(){const e=wn(),t=yt(i=>i.options.shouldRandomizeSeed);return N($m,{label:"Randomize Seed",isChecked:t,onChange:i=>e(Oge(i.target.checked))},void 0,!1,{fileName:Wye,lineNumber:22,columnNumber:5},this)}var Yye="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/Seed/Seed.tsx";function qye(){const e=yt(s=>s.options.seed),t=yt(s=>s.options.shouldRandomizeSeed),n=yt(s=>s.options.shouldGenerateVariations),i=wn(),o=s=>i(ay(s));return N(Ql,{label:"Seed",step:1,precision:0,flexGrow:1,min:rR,max:iR,isDisabled:t,isInvalid:e<0&&n,onChange:o,value:e,width:"10rem"},void 0,!1,{fileName:Yye,lineNumber:25,columnNumber:5},this)}var MI="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/Seed/ShuffleSeed.tsx";function Zye(){const e=wn(),t=yt(i=>i.options.shouldRandomizeSeed);return N(Wu,{size:"sm",isDisabled:t,onClick:()=>e(ay(jj(rR,iR))),children:N("p",{children:"Shuffle"},void 0,!1,{fileName:MI,lineNumber:27,columnNumber:7},this)},void 0,!1,{fileName:MI,lineNumber:22,columnNumber:5},this)}var Kye="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/Seed/Threshold.tsx";function Xye(){const e=wn(),t=yt(i=>i.options.threshold);return N(Ql,{label:"Threshold",min:0,max:1e3,step:.1,onChange:i=>e(Ege(i)),value:t,isInteger:!1},void 0,!1,{fileName:Kye,lineNumber:19,columnNumber:5},this)}var Qye="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/Seed/Perlin.tsx";function Jye(){const e=wn(),t=yt(i=>i.options.perlin);return N(Ql,{label:"Perlin Noise",min:0,max:1,step:.05,onChange:i=>e(_ge(i)),value:t,isInteger:!1},void 0,!1,{fileName:Qye,lineNumber:17,columnNumber:5},this)}var Bc="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/Seed/SeedOptions.tsx";const Kj=()=>N(Nr,{gap:2,direction:"column",children:[N(Gye,{},void 0,!1,{fileName:Bc,lineNumber:14,columnNumber:7},void 0),N(Nr,{gap:2,children:[N(qye,{},void 0,!1,{fileName:Bc,lineNumber:16,columnNumber:9},void 0),N(Zye,{},void 0,!1,{fileName:Bc,lineNumber:17,columnNumber:9},void 0)]},void 0,!0,{fileName:Bc,lineNumber:15,columnNumber:7},void 0),N(Nr,{gap:2,children:N(Xye,{},void 0,!1,{fileName:Bc,lineNumber:20,columnNumber:9},void 0)},void 0,!1,{fileName:Bc,lineNumber:19,columnNumber:7},void 0),N(Nr,{gap:2,children:N(Jye,{},void 0,!1,{fileName:Bc,lineNumber:23,columnNumber:9},void 0)},void 0,!1,{fileName:Bc,lineNumber:22,columnNumber:7},void 0)]},void 0,!0,{fileName:Bc,lineNumber:13,columnNumber:5},void 0);var W7="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/Upscale/Upscale.tsx";function Xj(){const e=yt(o=>o.system.isESRGANAvailable),t=yt(o=>o.options.shouldRunESRGAN),n=wn();return N(Nr,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[N("p",{children:"Upscale"},void 0,!1,{fileName:W7,lineNumber:30,columnNumber:7},this),N($m,{isDisabled:!e,isChecked:t,onChange:o=>n(Lge(o.target.checked))},void 0,!1,{fileName:W7,lineNumber:31,columnNumber:7},this)]},void 0,!0,{fileName:W7,lineNumber:24,columnNumber:5},this)}var G7="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/Upscale/UpscaleOptions.tsx";const e2e=Qa(e=>e.options,e=>({upscalingLevel:e.upscalingLevel,upscalingStrength:e.upscalingStrength}),{memoizeOptions:{resultEqualityCheck:Xa.exports.isEqual}}),t2e=Qa(e=>e.system,e=>({isESRGANAvailable:e.isESRGANAvailable}),{memoizeOptions:{resultEqualityCheck:Xa.exports.isEqual}}),sR=()=>{const e=wn(),{upscalingLevel:t,upscalingStrength:n}=yt(e2e),{isESRGANAvailable:i}=yt(t2e);return N("div",{className:"upscale-options",children:[N(oy,{isDisabled:!i,label:"Scale",value:t,onChange:l=>e(O_(Number(l.target.value))),validValues:cye},void 0,!1,{fileName:G7,lineNumber:64,columnNumber:7},void 0),N(Ql,{isDisabled:!i,label:"Strength",step:.05,min:0,max:1,onChange:l=>e(M_(l)),value:n,isInteger:!1},void 0,!1,{fileName:G7,lineNumber:71,columnNumber:7},void 0)]},void 0,!0,{fileName:G7,lineNumber:63,columnNumber:5},void 0)};var n2e="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/Variations/GenerateVariations.tsx";function r2e(){const e=yt(i=>i.options.shouldGenerateVariations),t=wn();return N($m,{isChecked:e,width:"auto",onChange:i=>t(Tge(i.target.checked))},void 0,!1,{fileName:n2e,lineNumber:22,columnNumber:5},this)}var Y7="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/Variations/Variations.tsx";function Qj(){return N(Nr,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[N("p",{children:"Variations"},void 0,!1,{fileName:Y7,lineNumber:13,columnNumber:7},this),N(r2e,{},void 0,!1,{fileName:Y7,lineNumber:14,columnNumber:7},this)]},void 0,!0,{fileName:Y7,lineNumber:7,columnNumber:5},this)}var q7="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/components/IAIInput.tsx";function i2e(e){const{label:t,styleClass:n,isDisabled:i=!1,fontSize:o="1rem",width:s,isInvalid:l,...p}=e;return N(Ld,{className:`input ${n}`,isInvalid:l,isDisabled:i,flexGrow:1,children:[N(Am,{fontSize:o,marginBottom:1,whiteSpace:"nowrap",className:"input-label",children:t},void 0,!1,{fileName:q7,lineNumber:30,columnNumber:7},this),N(rT,{...p,className:"input-entry",size:"sm",width:s},void 0,!1,{fileName:q7,lineNumber:38,columnNumber:7},this)]},void 0,!0,{fileName:q7,lineNumber:24,columnNumber:5},this)}var a2e="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/Variations/SeedWeights.tsx";function o2e(){const e=yt(o=>o.options.seedWeights),t=yt(o=>o.options.shouldGenerateVariations),n=wn(),i=o=>n(xj(o.target.value));return N(i2e,{label:"Seed Weights",value:e,isInvalid:t&&!(JT(e)||e===""),isDisabled:!t,onChange:i},void 0,!1,{fileName:a2e,lineNumber:26,columnNumber:5},this)}var s2e="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/Variations/VariationAmount.tsx";function l2e(){const e=yt(o=>o.options.variationAmount),t=yt(o=>o.options.shouldGenerateVariations),n=wn();return N(Ql,{label:"Variation Amount",value:e,step:.01,min:0,max:1,isDisabled:!t,onChange:o=>n(Rge(o)),isInteger:!1},void 0,!1,{fileName:s2e,lineNumber:24,columnNumber:5},this)}var Z7="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AdvancedOptions/Variations/VariationsOptions.tsx";const Jj=()=>N(Nr,{gap:2,direction:"column",children:[N(l2e,{},void 0,!1,{fileName:Z7,lineNumber:11,columnNumber:7},void 0),N(o2e,{},void 0,!1,{fileName:Z7,lineNumber:12,columnNumber:7},void 0)]},void 0,!0,{fileName:Z7,lineNumber:10,columnNumber:5},void 0);var K7="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/MainOptions/MainAdvancedOptions.tsx";function eV(){const e=yt(i=>i.options.showAdvancedOptions),t=wn();return N("div",{className:"advanced_options_checker",children:[N("input",{type:"checkbox",name:"advanced_options",id:"",onChange:i=>t(Mge(i.target.checked)),checked:e},void 0,!1,{fileName:K7,lineNumber:16,columnNumber:7},this),N("label",{htmlFor:"advanced_options",children:"Advanced Options"},void 0,!1,{fileName:K7,lineNumber:23,columnNumber:7},this)]},void 0,!0,{fileName:K7,lineNumber:15,columnNumber:5},this)}var u2e="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/MainOptions/MainCFGScale.tsx";function c2e(){const e=wn(),t=yt(i=>i.options.cfgScale);return N(Ql,{label:"CFG Scale",step:.5,min:1,max:30,onChange:i=>e(fj(i)),value:t,width:lR,fontSize:c0,styleClass:"main-option-block",textAlign:"center",isInteger:!1},void 0,!1,{fileName:u2e,lineNumber:14,columnNumber:5},this)}var f2e="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/MainOptions/MainHeight.tsx";function d2e(){const e=yt(i=>i.options.height),t=wn();return N(oy,{label:"Height",value:e,flexGrow:1,onChange:i=>t(dj(Number(i.target.value))),validValues:uye,fontSize:c0,styleClass:"main-option-block"},void 0,!1,{fileName:f2e,lineNumber:16,columnNumber:5},this)}var p2e="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/MainOptions/MainIterations.tsx";function m2e(){const e=wn(),t=yt(i=>i.options.iterations);return N(Ql,{label:"Images",step:1,min:1,max:9999,onChange:i=>e(Nge(i)),value:t,width:lR,fontSize:c0,styleClass:"main-option-block",textAlign:"center"},void 0,!1,{fileName:p2e,lineNumber:16,columnNumber:5},this)}var h2e="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/MainOptions/MainSampler.tsx";function v2e(){const e=yt(i=>i.options.sampler),t=wn();return N(oy,{label:"Sampler",value:e,onChange:i=>t(mj(i.target.value)),validValues:sye,fontSize:c0,styleClass:"main-option-block"},void 0,!1,{fileName:h2e,lineNumber:16,columnNumber:5},this)}var g2e="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/MainOptions/MainSteps.tsx";function b2e(){const e=wn(),t=yt(i=>i.options.steps);return N(Ql,{label:"Steps",min:1,max:9999,step:1,onChange:i=>e(cj(i)),value:t,width:lR,fontSize:c0,styleClass:"main-option-block",textAlign:"center"},void 0,!1,{fileName:g2e,lineNumber:14,columnNumber:5},this)}var y2e="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/MainOptions/MainWidth.tsx";function x2e(){const e=yt(i=>i.options.width),t=wn();return N(oy,{label:"Width",value:e,flexGrow:1,onChange:i=>t(pj(Number(i.target.value))),validValues:lye,fontSize:c0,styleClass:"main-option-block"},void 0,!1,{fileName:y2e,lineNumber:16,columnNumber:5},this)}var Tu="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/MainOptions/MainOptions.tsx";const c0="0.9rem",lR="auto";function tV(){return N("div",{className:"main-options",children:N("div",{className:"main-options-list",children:[N("div",{className:"main-options-row",children:[N(m2e,{},void 0,!1,{fileName:Tu,lineNumber:16,columnNumber:11},this),N(b2e,{},void 0,!1,{fileName:Tu,lineNumber:17,columnNumber:11},this),N(c2e,{},void 0,!1,{fileName:Tu,lineNumber:18,columnNumber:11},this)]},void 0,!0,{fileName:Tu,lineNumber:15,columnNumber:9},this),N("div",{className:"main-options-row",children:[N(x2e,{},void 0,!1,{fileName:Tu,lineNumber:21,columnNumber:11},this),N(d2e,{},void 0,!1,{fileName:Tu,lineNumber:22,columnNumber:11},this),N(v2e,{},void 0,!1,{fileName:Tu,lineNumber:23,columnNumber:11},this)]},void 0,!0,{fileName:Tu,lineNumber:20,columnNumber:9},this)]},void 0,!0,{fileName:Tu,lineNumber:14,columnNumber:7},this)},void 0,!1,{fileName:Tu,lineNumber:13,columnNumber:5},this)}var nV={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},PI=Ne.createContext&&Ne.createContext(nV),RS="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/react-icons/lib/esm/iconBase.js",wd=globalThis&&globalThis.__assign||function(){return wd=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},wd.apply(this,arguments)},S2e=globalThis&&globalThis.__rest||function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n};function rV(e){return e&&e.map(function(t,n){return Ne.createElement(t.tag,wd({key:n},t.attr),rV(t.child))})}function Mr(e){return function(t){return N(w2e,{...wd({attr:wd({},e.attr)},t),children:rV(e.child)},void 0,!1,{fileName:RS,lineNumber:39,columnNumber:12},this)}}function w2e(e){var t=function(n){var i=e.attr,o=e.size,s=e.title,l=S2e(e,["attr","size","title"]),p=o||n.size||"1em",m;return n.className&&(m=n.className),e.className&&(m=(m?m+" ":"")+e.className),N("svg",{...wd({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,i,l,{className:m,style:wd(wd({color:e.color||n.color},n.style),e.style),height:p,width:p,xmlns:"http://www.w3.org/2000/svg"}),children:[s&&N("title",{children:s},void 0,!1,{fileName:RS,lineNumber:67,columnNumber:18},this),e.children]},void 0,!0,{fileName:RS,lineNumber:55,columnNumber:12},this)};return PI!==void 0?N(PI.Consumer,{children:function(n){return t(n)}},void 0,!1,{fileName:RS,lineNumber:70,columnNumber:38},this):t(nV)}function C2e(e){return Mr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}}]})(e)}function N2e(e){return Mr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M9 11.75a1.25 1.25 0 100 2.5 1.25 1.25 0 000-2.5zm6 0a1.25 1.25 0 100 2.5 1.25 1.25 0 000-2.5zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8 0-.29.02-.58.05-.86 2.36-1.05 4.23-2.98 5.21-5.37a9.974 9.974 0 0010.41 3.97c.21.71.33 1.47.33 2.26 0 4.41-3.59 8-8 8z"}}]})(e)}function iV(e){return Mr({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 E2e(e){return Mr({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 15h-2v-6h2v6zm0-8h-2V7h2v2z"}}]})(e)}function _2e(e){return Mr({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)}function T2e(e){return Mr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 3H5a2 2 0 00-2 2v14a2 2 0 002 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 12H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm2-6h4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1h-4V9zm1.5 4.5h2v-3h-2v3z"}}]})(e)}function aV(e){return Mr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}}]})(e)}function R2e(e){return Mr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-9 3h2v2h-2V8zm0 3h2v2h-2v-2zM8 8h2v2H8V8zm0 3h2v2H8v-2zm-1 2H5v-2h2v2zm0-3H5V8h2v2zm9 7H8v-2h8v2zm0-4h-2v-2h2v2zm0-3h-2V8h2v2zm3 3h-2v-2h2v2zm0-3h-2V8h2v2z"}},{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0zm0 0h24v24H0z"}}]})(e)}function k2e(e){return Mr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"}}]})(e)}function II(e){return Mr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-11-4l2.03 2.71L16 11l4 5H8l3-4zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"}}]})(e)}function A2e(e){return Mr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"}}]})(e)}function L2e(e){return Mr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}}]})(e)}var bv="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/components/GuidePopover.tsx";const O2e=Qa(e=>e.system,e=>e.shouldDisplayGuides),M2e=({children:e,feature:t})=>{const n=yt(O2e),{text:i}=Fye[t];return n?N(AT,{trigger:"hover",children:[N(PT,{children:N(il,{children:e},void 0,!1,{fileName:bv,lineNumber:31,columnNumber:9},void 0)},void 0,!1,{fileName:bv,lineNumber:30,columnNumber:7},void 0),N(MT,{className:"guide-popover-content",maxWidth:"400px",onClick:o=>o.preventDefault(),cursor:"initial",children:[N(LT,{className:"guide-popover-arrow"},void 0,!1,{fileName:bv,lineNumber:39,columnNumber:9},void 0),N("div",{className:"guide-popover-guide-content",children:i},void 0,!1,{fileName:bv,lineNumber:40,columnNumber:9},void 0)]},void 0,!0,{fileName:bv,lineNumber:33,columnNumber:7},void 0)]},void 0,!0,{fileName:bv,lineNumber:29,columnNumber:5},void 0):N(Gi,{},void 0,!1)};var X7="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/components/GuideIcon.tsx";const P2e=qe(({feature:e,icon:t=iV},n)=>N(M2e,{feature:e,children:N(il,{ref:n,children:N(n4,{as:t},void 0,!1,{fileName:X7,lineNumber:16,columnNumber:9},void 0)},void 0,!1,{fileName:X7,lineNumber:15,columnNumber:7},void 0)},void 0,!1,{fileName:X7,lineNumber:14,columnNumber:5},void 0));var yv="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/AccordionItems/InvokeAccordionItem.tsx";function I2e(e){const{header:t,feature:n,options:i}=e;return N(qF,{className:"advanced-settings-item",children:[N("h2",{children:N(GF,{className:"advanced-settings-header",children:[t,N(P2e,{feature:n},void 0,!1,{fileName:yv,lineNumber:25,columnNumber:11},this),N(YF,{},void 0,!1,{fileName:yv,lineNumber:26,columnNumber:11},this)]},void 0,!0,{fileName:yv,lineNumber:23,columnNumber:9},this)},void 0,!1,{fileName:yv,lineNumber:22,columnNumber:7},this),N(ZF,{className:"advanced-settings-panel",children:i},void 0,!1,{fileName:yv,lineNumber:29,columnNumber:7},this)]},void 0,!0,{fileName:yv,lineNumber:21,columnNumber:5},this)}var DI="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/OptionsAccordion.tsx";const oV=e=>{const{accordionInfo:t}=e,n=yt(l=>l.system.openAccordions),i=wn();return N(KF,{defaultIndex:n,allowMultiple:!0,reduceMotion:!0,onChange:l=>i(qge(l)),className:"advanced-settings",children:(()=>{const l=[];return t&&Object.keys(t).forEach(p=>{l.push(N(I2e,{header:t[p].header,feature:t[p].feature,options:t[p].options},p,!1,{fileName:DI,lineNumber:40,columnNumber:11},void 0))}),l})()},void 0,!1,{fileName:DI,lineNumber:53,columnNumber:5},void 0)};var $I="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/HiresOptions.tsx";const D2e=()=>{const e=wn(),t=yt(i=>i.options.hiresFix);return N(Nr,{gap:2,direction:"column",children:N($m,{label:"High Res Optimization",fontSize:"md",isChecked:t,onChange:i=>e(vj(i.target.checked))},void 0,!1,{fileName:$I,lineNumber:22,columnNumber:7},void 0)},void 0,!1,{fileName:$I,lineNumber:21,columnNumber:5},void 0)};var FI="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/SeamlessOptions.tsx";const $2e=()=>{const e=wn(),t=yt(i=>i.options.seamless);return N(Nr,{gap:2,direction:"column",children:N($m,{label:"Seamless tiling",fontSize:"md",isChecked:t,onChange:i=>e(hj(i.target.checked))},void 0,!1,{fileName:FI,lineNumber:18,columnNumber:7},void 0)},void 0,!1,{fileName:FI,lineNumber:17,columnNumber:5},void 0)};var Q7="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/OutputOptions.tsx";const sV=()=>N(Nr,{gap:2,direction:"column",children:[N($2e,{},void 0,!1,{fileName:Q7,lineNumber:10,columnNumber:7},void 0),N(D2e,{},void 0,!1,{fileName:Q7,lineNumber:11,columnNumber:7},void 0)]},void 0,!0,{fileName:Q7,lineNumber:9,columnNumber:5},void 0);var zI="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/components/IAIButton.tsx";const Hg=e=>{const{label:t,tooltip:n="",size:i="sm",...o}=e;return N(bo,{label:n,children:N(Wu,{size:i,...o,children:t},void 0,!1,{fileName:zI,lineNumber:17,columnNumber:7},void 0)},void 0,!1,{fileName:zI,lineNumber:16,columnNumber:5},void 0)},BI=Qa(e=>e.options,e=>({prompt:e.prompt,shouldGenerateVariations:e.shouldGenerateVariations,seedWeights:e.seedWeights,maskPath:e.maskPath,initialImagePath:e.initialImagePath,seed:e.seed,activeTab:e.activeTab}),{memoizeOptions:{resultEqualityCheck:Xa.exports.isEqual}}),uR=Qa(e=>e.system,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected}),{memoizeOptions:{resultEqualityCheck:Xa.exports.isEqual}}),lV=()=>{const{prompt:e}=yt(BI),{shouldGenerateVariations:t,seedWeights:n,maskPath:i,initialImagePath:o,seed:s,activeTab:l}=yt(BI),{isProcessing:p,isConnected:m}=yt(uR);return E.exports.useMemo(()=>!(!e||Boolean(e.match(/^[\s\r\n]+$/))||e&&!o&&l===1||i&&!o||p||!m||t&&(!(JT(n)||n==="")||s===-1)),[e,i,o,p,m,t,n,s,l])};var F2e="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/ProcessButtons/InvokeButton.tsx";function z2e(){const e=wn(),t=lV();return N(Hg,{label:"Invoke","aria-label":"Invoke",type:"submit",isDisabled:!t,onClick:()=>{e(B_())},className:"invoke-btn"},void 0,!1,{fileName:F2e,lineNumber:16,columnNumber:5},this)}var UI="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/components/IAIIconButton.tsx";const pm=e=>{const{tooltip:t="",tooltipPlacement:n="bottom",onClick:i,...o}=e;return N(bo,{label:t,hasArrow:!0,placement:n,children:N(Ra,{...o,cursor:i?"pointer":"unset",onClick:i},void 0,!1,{fileName:UI,lineNumber:22,columnNumber:7},void 0)},void 0,!1,{fileName:UI,lineNumber:21,columnNumber:5},void 0)};var jI="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/ProcessButtons/CancelButton.tsx";function B2e(){const e=wn(),{isProcessing:t,isConnected:n}=yt(uR),i=()=>e(rye());return ci("shift+x",()=>{(n||t)&&i()},[n,t]),N(pm,{icon:N(L2e,{},void 0,!1,{fileName:jI,lineNumber:26,columnNumber:13},this),tooltip:"Cancel","aria-label":"Cancel",isDisabled:!n||!t,onClick:i,className:"cancel-btn"},void 0,!1,{fileName:jI,lineNumber:25,columnNumber:5},this)}var J7="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/ProcessButtons/ProcessButtons.tsx";const uV=()=>N("div",{className:"process-buttons",children:[N(z2e,{},void 0,!1,{fileName:J7,lineNumber:10,columnNumber:7},void 0),N(B2e,{},void 0,!1,{fileName:J7,lineNumber:11,columnNumber:7},void 0)]},void 0,!0,{fileName:J7,lineNumber:9,columnNumber:5},void 0);var eE="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/PromptInput/PromptInput.tsx";const U2e=Qa(e=>e.options,e=>({prompt:e.prompt}),{memoizeOptions:{resultEqualityCheck:Xa.exports.isEqual}}),cV=()=>{const e=E.exports.useRef(null),{prompt:t}=yt(U2e),{isProcessing:n}=yt(uR),i=wn(),o=lV(),s=p=>{i(eR(p.target.value))};ci("ctrl+enter",()=>{o&&i(B_())},[o]),ci("alt+a",()=>{e.current?.focus()},[]);const l=p=>{p.key==="Enter"&&p.shiftKey===!1&&o&&(p.preventDefault(),i(B_()))};return N("div",{className:"prompt-bar",children:N(Ld,{isInvalid:t.length===0||Boolean(t.match(/^[\s\r\n]+$/)),isDisabled:n,children:N(tU,{id:"prompt",name:"prompt",placeholder:"I'm dreaming of...",size:"lg",value:t,onChange:s,onKeyDown:l,resize:"vertical",height:30,ref:e},void 0,!1,{fileName:eE,lineNumber:73,columnNumber:9},void 0)},void 0,!1,{fileName:eE,lineNumber:69,columnNumber:7},void 0)},void 0,!1,{fileName:eE,lineNumber:68,columnNumber:5},void 0)};var ra="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/tabs/ImageToImage/ImageToImagePanel.tsx";function j2e(){const e=yt(n=>n.options.showAdvancedOptions),t={seed:{header:N(il,{flex:"1",textAlign:"left",children:"Seed"},void 0,!1,{fileName:ra,lineNumber:29,columnNumber:9},this),feature:Yl.SEED,options:N(Kj,{},void 0,!1,{fileName:ra,lineNumber:34,columnNumber:16},this)},variations:{header:N(Qj,{},void 0,!1,{fileName:ra,lineNumber:37,columnNumber:15},this),feature:Yl.VARIATIONS,options:N(Jj,{},void 0,!1,{fileName:ra,lineNumber:39,columnNumber:16},this)},face_restore:{header:N(Zj,{},void 0,!1,{fileName:ra,lineNumber:42,columnNumber:15},this),feature:Yl.FACE_CORRECTION,options:N(oR,{},void 0,!1,{fileName:ra,lineNumber:44,columnNumber:16},this)},upscale:{header:N(Xj,{},void 0,!1,{fileName:ra,lineNumber:47,columnNumber:15},this),feature:Yl.UPSCALE,options:N(sR,{},void 0,!1,{fileName:ra,lineNumber:49,columnNumber:16},this)},other:{header:N(il,{flex:"1",textAlign:"left",children:"Other"},void 0,!1,{fileName:ra,lineNumber:53,columnNumber:9},this),feature:Yl.OTHER,options:N(sV,{},void 0,!1,{fileName:ra,lineNumber:58,columnNumber:16},this)}};return N("div",{className:"image-to-image-panel",children:[N(cV,{},void 0,!1,{fileName:ra,lineNumber:64,columnNumber:7},this),N(uV,{},void 0,!1,{fileName:ra,lineNumber:65,columnNumber:7},this),N(tV,{},void 0,!1,{fileName:ra,lineNumber:66,columnNumber:7},this),N(Hye,{label:"Image To Image Strength",styleClass:"main-option-block image-to-image-strength-main-option"},void 0,!1,{fileName:ra,lineNumber:67,columnNumber:7},this),N(jye,{},void 0,!1,{fileName:ra,lineNumber:71,columnNumber:7},this),N(eV,{},void 0,!1,{fileName:ra,lineNumber:72,columnNumber:7},this),e?N(oV,{accordionInfo:t},void 0,!1,{fileName:ra,lineNumber:74,columnNumber:9},this):null]},void 0,!0,{fileName:ra,lineNumber:63,columnNumber:5},this)}function V2e(e){return Mr({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z"}}]})(e)}function H2e(e){return Mr({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 W2e(e){return Mr({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 G2e(e){return Mr({tag:"svg",attr:{viewBox:"0 0 256 512"},child:[{tag:"path",attr:{d:"M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z"}}]})(e)}function Y2e(e){return Mr({tag:"svg",attr:{viewBox:"0 0 256 512"},child:[{tag:"path",attr:{d:"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"}}]})(e)}function q2e(e){return Mr({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 Z2e(e){return Mr({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 K2e(e){return Mr({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 X2e(e){return Mr({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 Q2e(e){return Mr({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 J2e(e){return Mr({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 exe(e){return Mr({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm272-256a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zM432 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-16z"}}]})(e)}function txe(e){return Mr({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M296 384h-80c-13.3 0-24-10.7-24-24V192h-87.7c-17.8 0-26.7-21.5-14.1-34.1L242.3 5.7c7.5-7.5 19.8-7.5 27.3 0l152.2 152.2c12.6 12.6 3.7 34.1-14.1 34.1H320v168c0 13.3-10.7 24-24 24zm216-8v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h136v8c0 30.9 25.1 56 56 56h80c30.9 0 56-25.1 56-56v-8h136c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"}}]})(e)}var nxe=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 sy(e,t){var n=rxe(e);if(typeof n.path!="string"){var i=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof i=="string"&&i.length>0?i:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function rxe(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var i=t.split(".").pop().toLowerCase(),o=nxe.get(i);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var ixe=[".DS_Store","Thumbs.db"];function axe(e){return n0(this,void 0,void 0,function(){return r0(this,function(t){return h3(e)&&oxe(e.dataTransfer)?[2,cxe(e.dataTransfer,e.type)]:sxe(e)?[2,lxe(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,uxe(e)]:[2,[]]})})}function oxe(e){return h3(e)}function sxe(e){return h3(e)&&h3(e.target)}function h3(e){return typeof e=="object"&&e!==null}function lxe(e){return j_(e.target.files).map(function(t){return sy(t)})}function uxe(e){return n0(this,void 0,void 0,function(){var t;return r0(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(i){return i.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(i){return sy(i)})]}})})}function cxe(e,t){return n0(this,void 0,void 0,function(){var n,i;return r0(this,function(o){switch(o.label){case 0:return e.items?(n=j_(e.items).filter(function(s){return s.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(fxe))]):[3,2];case 1:return i=o.sent(),[2,VI(fV(i))];case 2:return[2,VI(j_(e.files).map(function(s){return sy(s)}))]}})})}function VI(e){return e.filter(function(t){return ixe.indexOf(t.name)===-1})}function j_(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var i=e[n];t.push(i)}return t}function fxe(e){if(typeof e.webkitGetAsEntry!="function")return HI(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?dV(t):HI(e)}function fV(e){return e.reduce(function(t,n){return TE(TE([],cO(t),!1),cO(Array.isArray(n)?fV(n):[n]),!1)},[])}function HI(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=sy(t);return Promise.resolve(n)}function dxe(e){return n0(this,void 0,void 0,function(){return r0(this,function(t){return[2,e.isDirectory?dV(e):pxe(e)]})})}function dV(e){var t=e.createReader();return new Promise(function(n,i){var o=[];function s(){var l=this;t.readEntries(function(p){return n0(l,void 0,void 0,function(){var m,v,g;return r0(this,function(b){switch(b.label){case 0:if(p.length)return[3,5];b.label=1;case 1:return b.trys.push([1,3,,4]),[4,Promise.all(o)];case 2:return m=b.sent(),n(m),[3,4];case 3:return v=b.sent(),i(v),[3,4];case 4:return[3,6];case 5:g=Promise.all(p.map(dxe)),o.push(g),s(),b.label=6;case 6:return[2]}})})},function(p){i(p)})}s()})}function pxe(e){return n0(this,void 0,void 0,function(){return r0(this,function(t){return[2,new Promise(function(n,i){e.file(function(o){var s=sy(o,e.fullPath);n(s)},function(o){i(o)})})]})})}var mxe=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),i=e.name||"",o=(e.type||"").toLowerCase(),s=o.replace(/\/.*$/,"");return n.some(function(l){var p=l.trim().toLowerCase();return p.charAt(0)==="."?i.toLowerCase().endsWith(p):p.endsWith("/*")?s===p.replace(/\/.*$/,""):o===p})}return!0};function WI(e){return gxe(e)||vxe(e)||mV(e)||hxe()}function hxe(){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 vxe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gxe(e){if(Array.isArray(e))return V_(e)}function GI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function YI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GI(Object(n),!0).forEach(function(i){pV(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GI(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function pV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mb(e,t){return xxe(e)||yxe(e,t)||mV(e,t)||bxe()}function bxe(){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 mV(e,t){if(!!e){if(typeof e=="string")return V_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return V_(e,t)}}function V_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function yxe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i=[],o=!0,s=!1,l,p;try{for(n=n.call(e);!(o=(l=n.next()).done)&&(i.push(l.value),!(t&&i.length===t));o=!0);}catch(m){s=!0,p=m}finally{try{!o&&n.return!=null&&n.return()}finally{if(s)throw p}}return i}}function xxe(e){if(Array.isArray(e))return e}var Sxe="file-invalid-type",wxe="file-too-large",Cxe="file-too-small",Nxe="too-many-files",Exe=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var n=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:Sxe,message:"File type must be ".concat(n)}},qI=function(t){return{code:wxe,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},ZI=function(t){return{code:Cxe,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},_xe={code:Nxe,message:"Too many files"};function hV(e,t){var n=e.type==="application/x-moz-file"||mxe(e,t);return[n,n?null:Exe(t)]}function vV(e,t,n){if(mm(e.size))if(mm(t)&&mm(n)){if(e.size>n)return[!1,qI(n)];if(e.size<t)return[!1,ZI(t)]}else{if(mm(t)&&e.size<t)return[!1,ZI(t)];if(mm(n)&&e.size>n)return[!1,qI(n)]}return[!0,null]}function mm(e){return e!=null}function Txe(e){var t=e.files,n=e.accept,i=e.minSize,o=e.maxSize,s=e.multiple,l=e.maxFiles,p=e.validator;return!s&&t.length>1||s&&l>=1&&t.length>l?!1:t.every(function(m){var v=hV(m,n),g=Mb(v,1),b=g[0],w=vV(m,i,o),C=Mb(w,1),T=C[0],R=p?p(m):null;return b&&T&&!R})}function v3(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function K5(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 KI(e){e.preventDefault()}function Rxe(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function kxe(e){return e.indexOf("Edge/")!==-1}function Axe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Rxe(e)||kxe(e)}function Ru(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(i){for(var o=arguments.length,s=new Array(o>1?o-1:0),l=1;l<o;l++)s[l-1]=arguments[l];return t.some(function(p){return!v3(i)&&p&&p.apply(void 0,[i].concat(s)),v3(i)})}}function Lxe(){return"showOpenFilePicker"in window}function Oxe(e){if(mm(e)){var t=Object.entries(e).filter(function(n){var i=Mb(n,2),o=i[0],s=i[1],l=!0;return gV(o)||(console.warn('Skipped "'.concat(o,'" 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.')),l=!1),(!Array.isArray(s)||!s.every(bV))&&(console.warn('Skipped "'.concat(o,'" because an invalid file extension was provided.')),l=!1),l}).reduce(function(n,i){var o=Mb(i,2),s=o[0],l=o[1];return YI(YI({},n),{},pV({},s,l))},{});return[{accept:t}]}return e}function Mxe(e){if(mm(e))return Object.entries(e).reduce(function(t,n){var i=Mb(n,2),o=i[0],s=i[1];return[].concat(WI(t),[o],WI(s))},[]).filter(function(t){return gV(t)||bV(t)}).join(",")}function Pxe(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function Ixe(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function gV(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function bV(e){return/^.*\.[\w]+$/.test(e)}var Dxe="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/react-dropzone/dist/es/index.js",$xe=["children"],Fxe=["open"],zxe=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Bxe=["refKey","onChange","onClick"];function Uxe(e){return Hxe(e)||Vxe(e)||yV(e)||jxe()}function jxe(){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 Vxe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Hxe(e){if(Array.isArray(e))return H_(e)}function tE(e,t){return Yxe(e)||Gxe(e,t)||yV(e,t)||Wxe()}function Wxe(){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 yV(e,t){if(!!e){if(typeof e=="string")return H_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return H_(e,t)}}function H_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Gxe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i=[],o=!0,s=!1,l,p;try{for(n=n.call(e);!(o=(l=n.next()).done)&&(i.push(l.value),!(t&&i.length===t));o=!0);}catch(m){s=!0,p=m}finally{try{!o&&n.return!=null&&n.return()}finally{if(s)throw p}}return i}}function Yxe(e){if(Array.isArray(e))return e}function XI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function Zr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XI(Object(n),!0).forEach(function(i){W_(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XI(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function W_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g3(e,t){if(e==null)return{};var n=qxe(e,t),i,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)i=s[o],!(t.indexOf(i)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,i)||(n[i]=e[i]))}return n}function qxe(e,t){if(e==null)return{};var n={},i=Object.keys(e),o,s;for(s=0;s<i.length;s++)o=i[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var cR=E.exports.forwardRef(function(e,t){var n=e.children,i=g3(e,$xe),o=SV(i),s=o.open,l=g3(o,Fxe);return E.exports.useImperativeHandle(t,function(){return{open:s}},[s]),N(E.exports.Fragment,{children:n(Zr(Zr({},l),{},{open:s}))},void 0,!1,{fileName:Dxe,lineNumber:70,columnNumber:23},this)});cR.displayName="Dropzone";var xV={disabled:!1,getFilesFromEvent:axe,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};cR.defaultProps=xV;cR.propTypes={children:Pt.exports.func,accept:Pt.exports.objectOf(Pt.exports.arrayOf(Pt.exports.string)),multiple:Pt.exports.bool,preventDropOnDocument:Pt.exports.bool,noClick:Pt.exports.bool,noKeyboard:Pt.exports.bool,noDrag:Pt.exports.bool,noDragEventsBubbling:Pt.exports.bool,minSize:Pt.exports.number,maxSize:Pt.exports.number,maxFiles:Pt.exports.number,disabled:Pt.exports.bool,getFilesFromEvent:Pt.exports.func,onFileDialogCancel:Pt.exports.func,onFileDialogOpen:Pt.exports.func,useFsAccessApi:Pt.exports.bool,autoFocus:Pt.exports.bool,onDragEnter:Pt.exports.func,onDragLeave:Pt.exports.func,onDragOver:Pt.exports.func,onDrop:Pt.exports.func,onDropAccepted:Pt.exports.func,onDropRejected:Pt.exports.func,onError:Pt.exports.func,validator:Pt.exports.func};var G_={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function SV(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Zr(Zr({},xV),e),n=t.accept,i=t.disabled,o=t.getFilesFromEvent,s=t.maxSize,l=t.minSize,p=t.multiple,m=t.maxFiles,v=t.onDragEnter,g=t.onDragLeave,b=t.onDragOver,w=t.onDrop,C=t.onDropAccepted,T=t.onDropRejected,R=t.onFileDialogCancel,L=t.onFileDialogOpen,D=t.useFsAccessApi,P=t.autoFocus,I=t.preventDropOnDocument,F=t.noClick,z=t.noKeyboard,q=t.noDrag,Y=t.noDragEventsBubbling,Q=t.onError,ie=t.validator,ae=E.exports.useMemo(function(){return Mxe(n)},[n]),me=E.exports.useMemo(function(){return Oxe(n)},[n]),ze=E.exports.useMemo(function(){return typeof L=="function"?L:QI},[L]),te=E.exports.useMemo(function(){return typeof R=="function"?R:QI},[R]),ee=E.exports.useRef(null),we=E.exports.useRef(null),ye=E.exports.useReducer(Zxe,G_),K=tE(ye,2),le=K[0],ge=K[1],pe=le.isFocused,Ee=le.isFileDialogActive,Oe=E.exports.useRef(typeof window<"u"&&window.isSecureContext&&D&&Lxe()),Pe=function(){!Oe.current&&Ee&&setTimeout(function(){if(we.current){var tt=we.current.files;tt.length||(ge({type:"closeDialog"}),te())}},300)};E.exports.useEffect(function(){return window.addEventListener("focus",Pe,!1),function(){window.removeEventListener("focus",Pe,!1)}},[we,Ee,te,Oe]);var Xe=E.exports.useRef([]),et=function(tt){ee.current&&ee.current.contains(tt.target)||(tt.preventDefault(),Xe.current=[])};E.exports.useEffect(function(){return I&&(document.addEventListener("dragover",KI,!1),document.addEventListener("drop",et,!1)),function(){I&&(document.removeEventListener("dragover",KI),document.removeEventListener("drop",et))}},[ee,I]),E.exports.useEffect(function(){return!i&&P&&ee.current&&ee.current.focus(),function(){}},[ee,P,i]);var at=E.exports.useCallback(function(Ze){Q?Q(Ze):console.error(Ze)},[Q]),kt=E.exports.useCallback(function(Ze){Ze.preventDefault(),Ze.persist(),Tt(Ze),Xe.current=[].concat(Uxe(Xe.current),[Ze.target]),K5(Ze)&&Promise.resolve(o(Ze)).then(function(tt){if(!(v3(Ze)&&!Y)){var rn=tt.length,Dt=rn>0&&Txe({files:tt,accept:ae,minSize:l,maxSize:s,multiple:p,maxFiles:m,validator:ie}),Ie=rn>0&&!Dt;ge({isDragAccept:Dt,isDragReject:Ie,isDragActive:!0,type:"setDraggedFiles"}),v&&v(Ze)}}).catch(function(tt){return at(tt)})},[o,v,at,Y,ae,l,s,p,m,ie]),He=E.exports.useCallback(function(Ze){Ze.preventDefault(),Ze.persist(),Tt(Ze);var tt=K5(Ze);if(tt&&Ze.dataTransfer)try{Ze.dataTransfer.dropEffect="copy"}catch{}return tt&&b&&b(Ze),!1},[b,Y]),ot=E.exports.useCallback(function(Ze){Ze.preventDefault(),Ze.persist(),Tt(Ze);var tt=Xe.current.filter(function(Dt){return ee.current&&ee.current.contains(Dt)}),rn=tt.indexOf(Ze.target);rn!==-1&&tt.splice(rn,1),Xe.current=tt,!(tt.length>0)&&(ge({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),K5(Ze)&&g&&g(Ze))},[ee,g,Y]),wt=E.exports.useCallback(function(Ze,tt){var rn=[],Dt=[];Ze.forEach(function(Ie){var Zt=hV(Ie,ae),Tn=tE(Zt,2),Ge=Tn[0],ut=Tn[1],At=vV(Ie,l,s),gn=tE(At,2),en=gn[0],Rn=gn[1],Fn=ie?ie(Ie):null;if(Ge&&en&&!Fn)rn.push(Ie);else{var zr=[ut,Rn];Fn&&(zr=zr.concat(Fn)),Dt.push({file:Ie,errors:zr.filter(function(Pn){return Pn})})}}),(!p&&rn.length>1||p&&m>=1&&rn.length>m)&&(rn.forEach(function(Ie){Dt.push({file:Ie,errors:[_xe]})}),rn.splice(0)),ge({acceptedFiles:rn,fileRejections:Dt,type:"setFiles"}),w&&w(rn,Dt,tt),Dt.length>0&&T&&T(Dt,tt),rn.length>0&&C&&C(rn,tt)},[ge,p,ae,l,s,m,w,C,T,ie]),It=E.exports.useCallback(function(Ze){Ze.preventDefault(),Ze.persist(),Tt(Ze),Xe.current=[],K5(Ze)&&Promise.resolve(o(Ze)).then(function(tt){v3(Ze)&&!Y||wt(tt,Ze)}).catch(function(tt){return at(tt)}),ge({type:"reset"})},[o,wt,at,Y]),We=E.exports.useCallback(function(){if(Oe.current){ge({type:"openDialog"}),ze();var Ze={multiple:p,types:me};window.showOpenFilePicker(Ze).then(function(tt){return o(tt)}).then(function(tt){wt(tt,null),ge({type:"closeDialog"})}).catch(function(tt){Pxe(tt)?(te(tt),ge({type:"closeDialog"})):Ixe(tt)?(Oe.current=!1,we.current?(we.current.value=null,we.current.click()):at(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."))):at(tt)});return}we.current&&(ge({type:"openDialog"}),ze(),we.current.value=null,we.current.click())},[ge,ze,te,D,wt,at,me,p]),Vt=E.exports.useCallback(function(Ze){!ee.current||!ee.current.isEqualNode(Ze.target)||(Ze.key===" "||Ze.key==="Enter"||Ze.keyCode===32||Ze.keyCode===13)&&(Ze.preventDefault(),We())},[ee,We]),Ce=E.exports.useCallback(function(){ge({type:"focus"})},[]),nt=E.exports.useCallback(function(){ge({type:"blur"})},[]),Ct=E.exports.useCallback(function(){F||(Axe()?setTimeout(We,0):We())},[F,We]),rt=function(tt){return i?null:tt},sn=function(tt){return z?null:rt(tt)},On=function(tt){return q?null:rt(tt)},Tt=function(tt){Y&&tt.stopPropagation()},ln=E.exports.useMemo(function(){return function(){var Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},tt=Ze.refKey,rn=tt===void 0?"ref":tt,Dt=Ze.role,Ie=Ze.onKeyDown,Zt=Ze.onFocus,Tn=Ze.onBlur,Ge=Ze.onClick,ut=Ze.onDragEnter,At=Ze.onDragOver,gn=Ze.onDragLeave,en=Ze.onDrop,Rn=g3(Ze,zxe);return Zr(Zr(W_({onKeyDown:sn(Ru(Ie,Vt)),onFocus:sn(Ru(Zt,Ce)),onBlur:sn(Ru(Tn,nt)),onClick:rt(Ru(Ge,Ct)),onDragEnter:On(Ru(ut,kt)),onDragOver:On(Ru(At,He)),onDragLeave:On(Ru(gn,ot)),onDrop:On(Ru(en,It)),role:typeof Dt=="string"&&Dt!==""?Dt:"presentation"},rn,ee),!i&&!z?{tabIndex:0}:{}),Rn)}},[ee,Vt,Ce,nt,Ct,kt,He,ot,It,z,q,i]),Mn=E.exports.useCallback(function(Ze){Ze.stopPropagation()},[]),yn=E.exports.useMemo(function(){return function(){var Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},tt=Ze.refKey,rn=tt===void 0?"ref":tt,Dt=Ze.onChange,Ie=Ze.onClick,Zt=g3(Ze,Bxe),Tn=W_({accept:ae,multiple:p,type:"file",style:{display:"none"},onChange:rt(Ru(Dt,It)),onClick:rt(Ru(Ie,Mn)),tabIndex:-1},rn,we);return Zr(Zr({},Tn),Zt)}},[we,n,p,It,i]);return Zr(Zr({},le),{},{isFocused:pe&&!i,getRootProps:ln,getInputProps:yn,rootRef:ee,inputRef:we,open:rt(We)})}function Zxe(e,t){switch(t.type){case"focus":return Zr(Zr({},e),{},{isFocused:!0});case"blur":return Zr(Zr({},e),{},{isFocused:!1});case"openDialog":return Zr(Zr({},G_),{},{isFileDialogActive:!0});case"closeDialog":return Zr(Zr({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Zr(Zr({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Zr(Zr({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Zr({},G_);default:return e}}function QI(){}var JI="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/options/ImageUploader.tsx";const Kxe=({children:e,fileAcceptedCallback:t,fileRejectionCallback:n,styleClass:i})=>{const o=E.exports.useCallback((v,g)=>{g.forEach(b=>{n(b)}),v.forEach(b=>{t(b)})},[t,n]),{getRootProps:s,getInputProps:l,open:p}=SV({onDrop:o,accept:{"image/jpeg":[".jpg",".jpeg",".png"]}}),m=v=>{v.stopPropagation(),p()};return N(il,{...s(),flexGrow:3,className:`${i}`,children:[N("input",{...l({multiple:!1})},void 0,!1,{fileName:JI,lineNumber:59,columnNumber:7},void 0),E.exports.cloneElement(e,{onClick:m})]},void 0,!0,{fileName:JI,lineNumber:58,columnNumber:5},void 0)};var eD="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/common/components/InvokeImageUploader.tsx";function Xxe(e){const{label:t,icon:n,dispatcher:i,styleClass:o,onMouseOver:s,OnMouseout:l}=e,p=iy(),m=wn(),v=E.exports.useCallback(b=>m(i(b)),[m,i]),g=E.exports.useCallback(b=>{const w=b.errors.reduce((C,T)=>C+`
`+T.message,"");p({title:"Upload failed",description:w,status:"error",isClosable:!0})},[p]);return N(Kxe,{fileAcceptedCallback:v,fileRejectionCallback:g,styleClass:o,children:N(Wu,{size:"sm",fontSize:"md",fontWeight:"normal",onMouseOver:s,onMouseOut:l,leftIcon:n,width:"100%",children:t||null},void 0,!1,{fileName:eD,lineNumber:52,columnNumber:7},this)},void 0,!1,{fileName:eD,lineNumber:47,columnNumber:5},this)}var Io="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/gallery/DeleteImageModal.tsx";const Qxe=Qa(e=>e.system,e=>e.shouldConfirmOnDelete),Y_=E.exports.forwardRef(({image:e,children:t},n)=>{const{isOpen:i,onOpen:o,onClose:s}=QS(),l=wn(),p=yt(Qxe),m=E.exports.useRef(null),v=iy(),g=C=>{C.stopPropagation(),p?o():b()},b=()=>{l(tye(e)),v({title:"Image Deleted",status:"success",duration:2500,isClosable:!0}),s()};ci("del",()=>{p?o():b()},[e,p]);const w=C=>l(Ej(!C.target.checked));return N(Gi,{children:[E.exports.cloneElement(t,{onClick:g,ref:n}),N(tue,{isOpen:i,leastDestructiveRef:m,onClose:s,children:N(Eb,{children:N(nue,{children:[N(TT,{fontSize:"lg",fontWeight:"bold",children:"Delete image"},void 0,!1,{fileName:Io,lineNumber:106,columnNumber:15},void 0),N(n3,{children:N(Nr,{direction:"column",gap:5,children:[N(zo,{children:"Are you sure? You can't undo this action afterwards."},void 0,!1,{fileName:Io,lineNumber:112,columnNumber:19},void 0),N(Ld,{children:N(Nr,{alignItems:"center",children:[N(Am,{mb:0,children:"Don't ask me again"},void 0,!1,{fileName:Io,lineNumber:117,columnNumber:23},void 0),N(l4,{checked:!p,onChange:w},void 0,!1,{fileName:Io,lineNumber:118,columnNumber:23},void 0)]},void 0,!0,{fileName:Io,lineNumber:116,columnNumber:21},void 0)},void 0,!1,{fileName:Io,lineNumber:115,columnNumber:19},void 0)]},void 0,!0,{fileName:Io,lineNumber:111,columnNumber:17},void 0)},void 0,!1,{fileName:Io,lineNumber:110,columnNumber:15},void 0),N(_T,{children:[N(Wu,{ref:m,onClick:s,children:"Cancel"},void 0,!1,{fileName:Io,lineNumber:127,columnNumber:17},void 0),N(Wu,{colorScheme:"red",onClick:b,ml:3,children:"Delete"},void 0,!1,{fileName:Io,lineNumber:130,columnNumber:17},void 0)]},void 0,!0,{fileName:Io,lineNumber:126,columnNumber:15},void 0)]},void 0,!0,{fileName:Io,lineNumber:105,columnNumber:13},void 0)},void 0,!1,{fileName:Io,lineNumber:104,columnNumber:11},void 0)},void 0,!1,{fileName:Io,lineNumber:99,columnNumber:9},void 0)]},void 0,!0)});var im="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/gallery/InvokePopover.tsx";const tD=({title:e="Popup",styleClass:t,delay:n=50,popoverOptions:i,actionButton:o,children:s})=>N(AT,{trigger:"hover",closeDelay:n,children:[N(PT,{children:N(il,{children:s},void 0,!1,{fileName:im,lineNumber:31,columnNumber:9},void 0)},void 0,!1,{fileName:im,lineNumber:30,columnNumber:7},void 0),N(MT,{className:`popover-content ${t}`,children:[N(LT,{className:"popover-arrow"},void 0,!1,{fileName:im,lineNumber:34,columnNumber:9},void 0),N(VB,{className:"popover-header",children:e},void 0,!1,{fileName:im,lineNumber:35,columnNumber:9},void 0),N("div",{className:"popover-options",children:[i||null,o]},void 0,!0,{fileName:im,lineNumber:36,columnNumber:9},void 0)]},void 0,!0,{fileName:im,lineNumber:33,columnNumber:7},void 0)]},void 0,!0,{fileName:im,lineNumber:29,columnNumber:5},void 0);var xi="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/gallery/CurrentImageButtons.tsx";const Jxe=Qa(e=>e.system,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected,isGFPGANAvailable:e.isGFPGANAvailable,isESRGANAvailable:e.isESRGANAvailable}),{memoizeOptions:{resultEqualityCheck:Xa.exports.isEqual}}),wV=({image:e})=>{const t=wn(),n=yt(D=>D.options.shouldShowImageDetails),i=iy(),o=yt(D=>D.gallery.intermediateImage),s=yt(D=>D.options.upscalingLevel),l=yt(D=>D.options.facetoolStrength),{isProcessing:p,isConnected:m,isGFPGANAvailable:v,isESRGANAvailable:g}=yt(Jxe),b=()=>{t(Tm(e.url)),t(Lu(1))};ci("shift+i",()=>{e?(b(),i({title:"Sent To Image To Image",status:"success",duration:2500,isClosable:!0})):i({title:"No Image Loaded",description:"No image found to send to image to image module.",status:"error",duration:2500,isClosable:!0})},[e]);const w=()=>t(kge(e.metadata));ci("a",()=>{["txt2img","img2img"].includes(e?.metadata?.image?.type)?(w(),i({title:"Parameters Set",status:"success",duration:2500,isClosable:!0})):i({title:"Parameters Not Set",description:"No metadata found for this image.",status:"error",duration:2500,isClosable:!0})},[e]);const C=()=>t(ay(e.metadata.image.seed));ci("s",()=>{e?.metadata?.image?.seed?(C(),i({title:"Seed Set",status:"success",duration:2500,isClosable:!0})):i({title:"Seed Not Set",description:"Could not find seed for this image.",status:"error",duration:2500,isClosable:!0})},[e]);const T=()=>t(Jbe(e));ci("u",()=>{g&&Boolean(!o)&&m&&!p&&s?T():i({title:"Upscaling Failed",status:"error",duration:2500,isClosable:!0})},[e,g,o,m,p,s]);const R=()=>t(eye(e));ci("r",()=>{v&&Boolean(!o)&&m&&!p&&l?R():i({title:"Face Restoration Failed",status:"error",duration:2500,isClosable:!0})},[e,v,o,m,p,l]);const L=()=>t(Pge(!n));return ci("i",()=>{e?L():i({title:"Failed to load metadata",status:"error",duration:2500,isClosable:!0})},[e,n]),N("div",{className:"current-image-options",children:[N(pm,{icon:N(k2e,{},void 0,!1,{fileName:xi,lineNumber:244,columnNumber:15},void 0),tooltip:"Send To Image To Image","aria-label":"Send To Image To Image",onClick:b},void 0,!1,{fileName:xi,lineNumber:243,columnNumber:7},void 0),N(Hg,{label:"Use All",isDisabled:!["txt2img","img2img"].includes(e?.metadata?.image?.type),onClick:w},void 0,!1,{fileName:xi,lineNumber:250,columnNumber:7},void 0),N(Hg,{label:"Use Seed",isDisabled:!e?.metadata?.image?.seed,onClick:C},void 0,!1,{fileName:xi,lineNumber:258,columnNumber:7},void 0),N(tD,{title:"Restore Faces",popoverOptions:N(oR,{},void 0,!1,{fileName:xi,lineNumber:266,columnNumber:25},void 0),actionButton:N(Hg,{label:"Restore Faces",isDisabled:!v||Boolean(o)||!(m&&!p)||!l,onClick:R},void 0,!1,{fileName:xi,lineNumber:268,columnNumber:11},void 0),children:N(pm,{icon:N(N2e,{},void 0,!1,{fileName:xi,lineNumber:280,columnNumber:30},void 0),"aria-label":"Restore Faces"},void 0,!1,{fileName:xi,lineNumber:280,columnNumber:9},void 0)},void 0,!1,{fileName:xi,lineNumber:264,columnNumber:7},void 0),N(tD,{title:"Upscale",styleClass:"upscale-popover",popoverOptions:N(sR,{},void 0,!1,{fileName:xi,lineNumber:286,columnNumber:25},void 0),actionButton:N(Hg,{label:"Upscale Image",isDisabled:!g||Boolean(o)||!(m&&!p)||!s,onClick:T},void 0,!1,{fileName:xi,lineNumber:288,columnNumber:11},void 0),children:N(pm,{icon:N(T2e,{},void 0,!1,{fileName:xi,lineNumber:300,columnNumber:30},void 0),"aria-label":"Upscale"},void 0,!1,{fileName:xi,lineNumber:300,columnNumber:9},void 0)},void 0,!1,{fileName:xi,lineNumber:283,columnNumber:7},void 0),N(pm,{icon:N(E2e,{},void 0,!1,{fileName:xi,lineNumber:304,columnNumber:15},void 0),tooltip:"Details","aria-label":"Details",onClick:L},void 0,!1,{fileName:xi,lineNumber:303,columnNumber:7},void 0),N(Y_,{image:e,children:N(pm,{icon:N(C2e,{},void 0,!1,{fileName:xi,lineNumber:312,columnNumber:17},void 0),tooltip:"Delete Image","aria-label":"Delete Image",isDisabled:Boolean(o)},void 0,!1,{fileName:xi,lineNumber:311,columnNumber:9},void 0)},void 0,!1,{fileName:xi,lineNumber:310,columnNumber:7},void 0)]},void 0,!0,{fileName:xi,lineNumber:242,columnNumber:5},void 0)};var Uc="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/gallery/CurrentImagePreview.tsx";const e5e=Qa(e=>e.gallery,e=>{const t=e.images.findIndex(i=>i.uuid===e?.currentImage?.uuid),n=e.images.length;return{isOnFirstImage:t===0,isOnLastImage:!isNaN(t)&&t===n-1}},{memoizeOptions:{resultEqualityCheck:Lb.isEqual}});function CV(e){const{imageToDisplay:t}=e,n=wn(),{isOnFirstImage:i,isOnLastImage:o}=yt(e5e),s=yt(w=>w.options.shouldShowImageDetails),[l,p]=E.exports.useState(!1),m=()=>{p(!0)},v=()=>{p(!1)},g=()=>{n(Cj())},b=()=>{n(wj())};return N("div",{className:"current-image-preview",children:[N(X3,{src:t.url,fit:"contain",maxWidth:"100%",maxHeight:"100%"},void 0,!1,{fileName:Uc,lineNumber:65,columnNumber:7},this),!s&&N("div",{className:"current-image-next-prev-buttons",children:[N("div",{className:"next-prev-button-trigger-area prev-button-trigger-area",onMouseOver:m,onMouseOut:v,children:l&&!i&&N(Ra,{"aria-label":"Previous image",icon:N(G2e,{className:"next-prev-button"},void 0,!1,{fileName:Uc,lineNumber:81,columnNumber:23},this),variant:"unstyled",onClick:g},void 0,!1,{fileName:Uc,lineNumber:79,columnNumber:15},this)},void 0,!1,{fileName:Uc,lineNumber:73,columnNumber:11},this),N("div",{className:"next-prev-button-trigger-area next-button-trigger-area",onMouseOver:m,onMouseOut:v,children:l&&!o&&N(Ra,{"aria-label":"Next image",icon:N(Y2e,{className:"next-prev-button"},void 0,!1,{fileName:Uc,lineNumber:95,columnNumber:23},this),variant:"unstyled",onClick:b},void 0,!1,{fileName:Uc,lineNumber:93,columnNumber:15},this)},void 0,!1,{fileName:Uc,lineNumber:87,columnNumber:11},this)]},void 0,!0,{fileName:Uc,lineNumber:72,columnNumber:9},this)]},void 0,!0,{fileName:Uc,lineNumber:64,columnNumber:5},this)}var Lv="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/icon/dist/index.esm.js",nD={path:N("g",{stroke:"currentColor",strokeWidth:"1.5",children:[N("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:Lv,lineNumber:14,columnNumber:22},globalThis),N("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:Lv,lineNumber:18,columnNumber:23},globalThis),N("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"},void 0,!1,{fileName:Lv,lineNumber:22,columnNumber:23},globalThis)]},void 0,!0,{fileName:Lv,lineNumber:11,columnNumber:25},globalThis),viewBox:"0 0 24 24"},NV=qe((e,t)=>{const{as:n,viewBox:i,color:o="currentColor",focusable:s=!1,children:l,className:p,__css:m,...v}=e,g=yr("chakra-icon",p),b={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...m},w={ref:t,focusable:s,className:g,__css:b},C=i??nD.viewBox;if(n&&typeof n!="string")return Ne.createElement($e.svg,{as:n,...w,...v});const T=l??nD.path;return Ne.createElement($e.svg,{verticalAlign:"middle",viewBox:C,...w,...v},T)});NV.displayName="Icon";function Rt(e){const{viewBox:t="0 0 24 24",d:n,displayName:i,defaultProps:o={}}=e,s=E.exports.Children.toArray(e.path),l=qe((p,m)=>N(NV,{ref:m,viewBox:t,...o,...p,children:s.length?s:N("path",{fill:"currentColor",d:n},void 0,!1,{fileName:Lv,lineNumber:93,columnNumber:43},this)},void 0,!1,{fileName:Lv,lineNumber:88,columnNumber:60},this));return l.displayName=i,l}var mt="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/@chakra-ui/icons/dist/index.esm.js";Rt({d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",displayName:"CopyIcon"});Rt({d:"M23.384,21.619,16.855,15.09a9.284,9.284,0,1,0-1.768,1.768l6.529,6.529a1.266,1.266,0,0,0,1.768,0A1.251,1.251,0,0,0,23.384,21.619ZM2.75,9.5a6.75,6.75,0,1,1,6.75,6.75A6.758,6.758,0,0,1,2.75,9.5Z",displayName:"SearchIcon"});Rt({d:"M23.414,20.591l-4.645-4.645a10.256,10.256,0,1,0-2.828,2.829l4.645,4.644a2.025,2.025,0,0,0,2.828,0A2,2,0,0,0,23.414,20.591ZM10.25,3.005A7.25,7.25,0,1,1,3,10.255,7.258,7.258,0,0,1,10.25,3.005Z",displayName:"Search2Icon"});Rt({d:"M21.4,13.7C20.6,13.9,19.8,14,19,14c-5,0-9-4-9-9c0-0.8,0.1-1.6,0.3-2.4c0.1-0.3,0-0.7-0.3-1 c-0.3-0.3-0.6-0.4-1-0.3C4.3,2.7,1,7.1,1,12c0,6.1,4.9,11,11,11c4.9,0,9.3-3.3,10.6-8.1c0.1-0.3,0-0.7-0.3-1 C22.1,13.7,21.7,13.6,21.4,13.7z",displayName:"MoonIcon"});Rt({displayName:"SunIcon",path:N("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor",children:[N("circle",{cx:"12",cy:"12",r:"5"},void 0,!1,{fileName:mt,lineNumber:42,columnNumber:22},globalThis),N("path",{d:"M12 1v2"},void 0,!1,{fileName:mt,lineNumber:46,columnNumber:23},globalThis),N("path",{d:"M12 21v2"},void 0,!1,{fileName:mt,lineNumber:48,columnNumber:23},globalThis),N("path",{d:"M4.22 4.22l1.42 1.42"},void 0,!1,{fileName:mt,lineNumber:50,columnNumber:23},globalThis),N("path",{d:"M18.36 18.36l1.42 1.42"},void 0,!1,{fileName:mt,lineNumber:52,columnNumber:23},globalThis),N("path",{d:"M1 12h2"},void 0,!1,{fileName:mt,lineNumber:54,columnNumber:23},globalThis),N("path",{d:"M21 12h2"},void 0,!1,{fileName:mt,lineNumber:56,columnNumber:23},globalThis),N("path",{d:"M4.22 19.78l1.42-1.42"},void 0,!1,{fileName:mt,lineNumber:58,columnNumber:23},globalThis),N("path",{d:"M18.36 5.64l1.42-1.42"},void 0,!1,{fileName:mt,lineNumber:60,columnNumber:23},globalThis)]},void 0,!0,{fileName:mt,lineNumber:36,columnNumber:25},globalThis)});Rt({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"});Rt({displayName:"SmallAddIcon",viewBox:"0 0 20 20",path:N("path",{fill:"currentColor",d:"M14 9h-3V6c0-.55-.45-1-1-1s-1 .45-1 1v3H6c-.55 0-1 .45-1 1s.45 1 1 1h3v3c0 .55.45 1 1 1s1-.45 1-1v-3h3c.55 0 1-.45 1-1s-.45-1-1-1z",fillRule:"evenodd"},void 0,!1,{fileName:mt,lineNumber:77,columnNumber:25},globalThis)});Rt({viewBox:"0 0 14 14",d:"M14,7.77 L14,6.17 L12.06,5.53 L11.61,4.44 L12.49,2.6 L11.36,1.47 L9.55,2.38 L8.46,1.93 L7.77,0.01 L6.17,0.01 L5.54,1.95 L4.43,2.4 L2.59,1.52 L1.46,2.65 L2.37,4.46 L1.92,5.55 L0,6.23 L0,7.82 L1.94,8.46 L2.39,9.55 L1.51,11.39 L2.64,12.52 L4.45,11.61 L5.54,12.06 L6.23,13.98 L7.82,13.98 L8.45,12.04 L9.56,11.59 L11.4,12.47 L12.53,11.34 L11.61,9.53 L12.08,8.44 L14,7.75 L14,7.77 Z M7,10 C5.34,10 4,8.66 4,7 C4,5.34 5.34,4 7,4 C8.66,4 10,5.34 10,7 C10,8.66 8.66,10 7,10 Z",displayName:"SettingsIcon"});Rt({displayName:"CheckCircleIcon",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"});Rt({d:"M19.5,9.5h-.75V6.75a6.75,6.75,0,0,0-13.5,0V9.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5ZM7.75,6.75a4.25,4.25,0,0,1,8.5,0V9a.5.5,0,0,1-.5.5H8.25a.5.5,0,0,1-.5-.5Z",displayName:"LockIcon"});Rt({d:"M19.5,9.5h-.75V6.75A6.751,6.751,0,0,0,5.533,4.811a1.25,1.25,0,1,0,2.395.717A4.251,4.251,0,0,1,16.25,6.75V9a.5.5,0,0,1-.5.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5Z",displayName:"UnlockIcon"});Rt({displayName:"ViewIcon",path:N("g",{fill:"currentColor",children:[N("path",{d:"M23.432,10.524C20.787,7.614,16.4,4.538,12,4.6,7.6,4.537,3.213,7.615.568,10.524a2.211,2.211,0,0,0,0,2.948C3.182,16.351,7.507,19.4,11.839,19.4h.308c4.347,0,8.671-3.049,11.288-5.929A2.21,2.21,0,0,0,23.432,10.524ZM7.4,12A4.6,4.6,0,1,1,12,16.6,4.6,4.6,0,0,1,7.4,12Z"},void 0,!1,{fileName:mt,lineNumber:119,columnNumber:22},globalThis),N("circle",{cx:"12",cy:"12",r:"2"},void 0,!1,{fileName:mt,lineNumber:121,columnNumber:23},globalThis)]},void 0,!0,{fileName:mt,lineNumber:117,columnNumber:25},globalThis)});Rt({displayName:"ViewOffIcon",path:N("g",{fill:"currentColor",children:[N("path",{d:"M23.2,10.549a20.954,20.954,0,0,0-4.3-3.6l4-3.995a1,1,0,1,0-1.414-1.414l-.018.018a.737.737,0,0,1-.173.291l-19.5,19.5c-.008.007-.018.009-.026.017a1,1,0,0,0,1.631,1.088l4.146-4.146a11.26,11.26,0,0,0,4.31.939h.3c4.256,0,8.489-2.984,11.051-5.8A2.171,2.171,0,0,0,23.2,10.549ZM16.313,13.27a4.581,4.581,0,0,1-3,3.028,4.3,4.3,0,0,1-3.1-.19.253.253,0,0,1-.068-.407l5.56-5.559a.252.252,0,0,1,.407.067A4.3,4.3,0,0,1,16.313,13.27Z"},void 0,!1,{fileName:mt,lineNumber:134,columnNumber:22},globalThis),N("path",{d:"M7.615,13.4a.244.244,0,0,0,.061-.24A4.315,4.315,0,0,1,7.5,12,4.5,4.5,0,0,1,12,7.5a4.276,4.276,0,0,1,1.16.173.244.244,0,0,0,.24-.062l1.941-1.942a.254.254,0,0,0-.1-.421A10.413,10.413,0,0,0,12,4.75C7.7,4.692,3.4,7.7.813,10.549a2.15,2.15,0,0,0-.007,2.9,21.209,21.209,0,0,0,3.438,3.03.256.256,0,0,0,.326-.029Z"},void 0,!1,{fileName:mt,lineNumber:136,columnNumber:23},globalThis)]},void 0,!0,{fileName:mt,lineNumber:132,columnNumber:25},globalThis)});Rt({d:"M11.2857,6.05714 L10.08571,4.85714 L7.85714,7.14786 L7.85714,1 L6.14286,1 L6.14286,7.14786 L3.91429,4.85714 L2.71429,6.05714 L7,10.42857 L11.2857,6.05714 Z M1,11.2857 L1,13 L13,13 L13,11.2857 L1,11.2857 Z",displayName:"DownloadIcon",viewBox:"0 0 14 14"});Rt({displayName:"DeleteIcon",path:N("g",{fill:"currentColor",children:N("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"},void 0,!1,{fileName:mt,lineNumber:155,columnNumber:22},globalThis)},void 0,!1,{fileName:mt,lineNumber:153,columnNumber:25},globalThis)});Rt({displayName:"RepeatIcon",path:N("g",{fill:"currentColor",children:[N("path",{d:"M10.319,4.936a7.239,7.239,0,0,1,7.1,2.252,1.25,1.25,0,1,0,1.872-1.657A9.737,9.737,0,0,0,9.743,2.5,10.269,10.269,0,0,0,2.378,9.61a.249.249,0,0,1-.271.178l-1.033-.13A.491.491,0,0,0,.6,9.877a.5.5,0,0,0-.019.526l2.476,4.342a.5.5,0,0,0,.373.248.43.43,0,0,0,.062,0,.5.5,0,0,0,.359-.152l3.477-3.593a.5.5,0,0,0-.3-.844L5.15,10.172a.25.25,0,0,1-.2-.333A7.7,7.7,0,0,1,10.319,4.936Z"},void 0,!1,{fileName:mt,lineNumber:166,columnNumber:22},globalThis),N("path",{d:"M23.406,14.1a.5.5,0,0,0,.015-.526l-2.5-4.329A.5.5,0,0,0,20.546,9a.489.489,0,0,0-.421.151l-3.456,3.614a.5.5,0,0,0,.3.842l1.848.221a.249.249,0,0,1,.183.117.253.253,0,0,1,.023.216,7.688,7.688,0,0,1-5.369,4.9,7.243,7.243,0,0,1-7.1-2.253,1.25,1.25,0,1,0-1.872,1.656,9.74,9.74,0,0,0,9.549,3.03,10.261,10.261,0,0,0,7.369-7.12.251.251,0,0,1,.27-.179l1.058.127a.422.422,0,0,0,.06,0A.5.5,0,0,0,23.406,14.1Z"},void 0,!1,{fileName:mt,lineNumber:168,columnNumber:23},globalThis)]},void 0,!0,{fileName:mt,lineNumber:164,columnNumber:25},globalThis)});Rt({displayName:"RepeatClockIcon",path:N("g",{fill:"currentColor",children:[N("path",{d:"M12.965,6a1,1,0,0,0-1,1v5.5a1,1,0,0,0,1,1h5a1,1,0,0,0,0-2h-3.75a.25.25,0,0,1-.25-.25V7A1,1,0,0,0,12.965,6Z"},void 0,!1,{fileName:mt,lineNumber:179,columnNumber:22},globalThis),N("path",{d:"M12.567,1.258A10.822,10.822,0,0,0,2.818,8.4a.25.25,0,0,1-.271.163L.858,8.309a.514.514,0,0,0-.485.213.5.5,0,0,0-.021.53l2.679,4.7a.5.5,0,0,0,.786.107l3.77-3.746a.5.5,0,0,0-.279-.85L5.593,9.007a.25.25,0,0,1-.192-.35,8.259,8.259,0,1,1,7.866,11.59,1.25,1.25,0,0,0,.045,2.5h.047a10.751,10.751,0,1,0-.792-21.487Z"},void 0,!1,{fileName:mt,lineNumber:181,columnNumber:23},globalThis)]},void 0,!0,{fileName:mt,lineNumber:177,columnNumber:25},globalThis)});Rt({displayName:"EditIcon",path:N("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[N("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"},void 0,!1,{fileName:mt,lineNumber:195,columnNumber:22},globalThis),N("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"},void 0,!1,{fileName:mt,lineNumber:197,columnNumber:23},globalThis)]},void 0,!0,{fileName:mt,lineNumber:190,columnNumber:25},globalThis)});Rt({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"});Rt({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"});Rt({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"});Rt({d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z",displayName:"ChevronUpIcon"});Rt({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"});Rt({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"});Rt({d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z",displayName:"ArrowUpIcon"});Rt({viewBox:"0 0 16 16",d:"M11.891 9.992a1 1 0 1 1 1.416 1.415l-4.3 4.3a1 1 0 0 1-1.414 0l-4.3-4.3A1 1 0 0 1 4.71 9.992l3.59 3.591 3.591-3.591zm0-3.984L8.3 2.417 4.709 6.008a1 1 0 0 1-1.416-1.415l4.3-4.3a1 1 0 0 1 1.414 0l4.3 4.3a1 1 0 1 1-1.416 1.415z",displayName:"ArrowUpDownIcon"});Rt({d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",displayName:"ArrowDownIcon"});var EV=Rt({displayName:"ExternalLinkIcon",path:N("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[N("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"},void 0,!1,{fileName:mt,lineNumber:275,columnNumber:22},globalThis),N("path",{d:"M15 3h6v6"},void 0,!1,{fileName:mt,lineNumber:277,columnNumber:23},globalThis),N("path",{d:"M10 14L21 3"},void 0,!1,{fileName:mt,lineNumber:279,columnNumber:23},globalThis)]},void 0,!0,{fileName:mt,lineNumber:270,columnNumber:25},globalThis)});Rt({displayName:"LinkIcon",path:N("g",{fill:"currentColor",children:[N("path",{d:"M10.458,18.374,7.721,21.11a2.853,2.853,0,0,1-3.942,0l-.892-.891a2.787,2.787,0,0,1,0-3.941l5.8-5.8a2.789,2.789,0,0,1,3.942,0l.893.892A1,1,0,0,0,14.94,9.952l-.893-.892a4.791,4.791,0,0,0-6.771,0l-5.8,5.8a4.787,4.787,0,0,0,0,6.77l.892.891a4.785,4.785,0,0,0,6.771,0l2.736-2.735a1,1,0,1,0-1.414-1.415Z"},void 0,!1,{fileName:mt,lineNumber:290,columnNumber:22},globalThis),N("path",{d:"M22.526,2.363l-.892-.892a4.8,4.8,0,0,0-6.77,0l-2.905,2.9a1,1,0,0,0,1.414,1.414l2.9-2.9a2.79,2.79,0,0,1,3.941,0l.893.893a2.786,2.786,0,0,1,0,3.942l-5.8,5.8a2.769,2.769,0,0,1-1.971.817h0a2.766,2.766,0,0,1-1.969-.816,1,1,0,1,0-1.415,1.412,4.751,4.751,0,0,0,3.384,1.4h0a4.752,4.752,0,0,0,3.385-1.4l5.8-5.8a4.786,4.786,0,0,0,0-6.771Z"},void 0,!1,{fileName:mt,lineNumber:292,columnNumber:23},globalThis)]},void 0,!0,{fileName:mt,lineNumber:288,columnNumber:25},globalThis)});Rt({displayName:"PlusSquareIcon",path:N("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[N("rect",{height:"18",width:"18",rx:"2",ry:"2",x:"3",y:"3"},void 0,!1,{fileName:mt,lineNumber:306,columnNumber:22},globalThis),N("path",{d:"M12 8v8"},void 0,!1,{fileName:mt,lineNumber:313,columnNumber:23},globalThis),N("path",{d:"M8 12h8"},void 0,!1,{fileName:mt,lineNumber:315,columnNumber:23},globalThis)]},void 0,!0,{fileName:mt,lineNumber:301,columnNumber:25},globalThis)});Rt({displayName:"CalendarIcon",viewBox:"0 0 14 14",d:"M10.8889,5.5 L3.11111,5.5 L3.11111,7.05556 L10.8889,7.05556 L10.8889,5.5 Z M12.4444,1.05556 L11.6667,1.05556 L11.6667,0 L10.1111,0 L10.1111,1.05556 L3.88889,1.05556 L3.88889,0 L2.33333,0 L2.33333,1.05556 L1.55556,1.05556 C0.692222,1.05556 0.00777777,1.75556 0.00777777,2.61111 L0,12.5 C0,13.3556 0.692222,14 1.55556,14 L12.4444,14 C13.3,14 14,13.3556 14,12.5 L14,2.61111 C14,1.75556 13.3,1.05556 12.4444,1.05556 Z M12.4444,12.5 L1.55556,12.5 L1.55556,3.94444 L12.4444,3.94444 L12.4444,12.5 Z M8.55556,8.61111 L3.11111,8.61111 L3.11111,10.1667 L8.55556,10.1667 L8.55556,8.61111 Z"});Rt({d:"M0.913134,0.920639 C1.49851,0.331726 2.29348,0 3.12342,0 L10.8766,0 C11.7065,0 12.5015,0.331725 13.0869,0.920639 C13.6721,1.50939 14,2.30689 14,3.13746 L14,8.12943 C13.9962,8.51443 13.9059,8.97125 13.7629,9.32852 C13.6128,9.683 13.3552,10.0709 13.0869,10.3462 C12.813,10.6163 12.4265,10.8761 12.0734,11.0274 C11.7172,11.1716 11.2607,11.263 10.8766,11.2669 L10.1234,11.2669 L10.1234,12.5676 L10.1209,12.5676 C10.1204,12.793 10.0633,13.0791 9.97807,13.262 C9.8627,13.466 9.61158,13.7198 9.40818,13.8382 L9.40824,13.8383 C9.4077,13.8386 9.40716,13.8388 9.40661,13.8391 C9.40621,13.8393 9.4058,13.8396 9.40539,13.8398 L9.40535,13.8397 C9.22958,13.9254 8.94505,13.9951 8.75059,14 L8.74789,14 C8.35724,13.9963 7.98473,13.8383 7.71035,13.5617 L5.39553,11.2669 L3.12342,11.2669 C2.29348,11.2669 1.49851,10.9352 0.913134,10.3462 C0.644826,10.0709 0.387187,9.683 0.23711,9.32852 C0.0941235,8.97125 0.00379528,8.51443 0,8.12943 L0,3.13746 C0,2.30689 0.327915,1.50939 0.913134,0.920639 Z M3.12342,1.59494 C2.71959,1.59494 2.33133,1.75628 2.04431,2.04503 C1.75713,2.33395 1.59494,2.72681 1.59494,3.13746 L1.59494,8.12943 C1.59114,8.35901 1.62114,8.51076 1.71193,8.72129 C1.79563,8.9346 1.88065,9.06264 2.04431,9.22185 C2.33133,9.5106 2.71959,9.67195 3.12342,9.67195 L5.72383,9.67195 C5.93413,9.67195 6.13592,9.75502 6.28527,9.90308 L8.52848,12.1269 L8.52848,10.4694 C8.52848,10.029 8.88552,9.67195 9.32595,9.67195 L10.8766,9.67195 C11.1034,9.67583 11.2517,9.64614 11.4599,9.55518 C11.6712,9.47132 11.7976,9.38635 11.9557,9.22185 C12.1193,9.06264 12.2044,8.9346 12.2881,8.72129 C12.3789,8.51076 12.4089,8.35901 12.4051,8.12943 L12.4051,3.13746 C12.4051,2.72681 12.2429,2.33394 11.9557,2.04503 C11.6687,1.75628 11.2804,1.59494 10.8766,1.59494 L3.12342,1.59494 Z",displayName:"ChatIcon",viewBox:"0 0 14 14"});Rt({displayName:"TimeIcon",path:N("g",{fill:"currentColor",children:[N("path",{d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm0,22A10,10,0,1,1,22,12,10.011,10.011,0,0,1,12,22Z"},void 0,!1,{fileName:mt,lineNumber:342,columnNumber:22},globalThis),N("path",{d:"M17.134,15.81,12.5,11.561V6.5a1,1,0,0,0-2,0V12a1,1,0,0,0,.324.738l4.959,4.545a1.01,1.01,0,0,0,1.413-.061A1,1,0,0,0,17.134,15.81Z"},void 0,!1,{fileName:mt,lineNumber:344,columnNumber:23},globalThis)]},void 0,!0,{fileName:mt,lineNumber:340,columnNumber:25},globalThis)});Rt({displayName:"ArrowRightIcon",path:N("g",{fill:"currentColor",children:[N("path",{d:"M13.584,12a2.643,2.643,0,0,1-.775,1.875L3.268,23.416a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L.768,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,13.584,12Z"},void 0,!1,{fileName:mt,lineNumber:355,columnNumber:22},globalThis),N("path",{d:"M23.75,12a2.643,2.643,0,0,1-.775,1.875l-9.541,9.541a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L10.934,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,23.75,12Z"},void 0,!1,{fileName:mt,lineNumber:357,columnNumber:23},globalThis)]},void 0,!0,{fileName:mt,lineNumber:353,columnNumber:25},globalThis)});Rt({displayName:"ArrowLeftIcon",path:N("g",{fill:"currentColor",children:[N("path",{d:"M10.416,12a2.643,2.643,0,0,1,.775-1.875L20.732.584a1.768,1.768,0,0,1,2.5,2.5l-8.739,8.739a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5l-9.541-9.541A2.643,2.643,0,0,1,10.416,12Z"},void 0,!1,{fileName:mt,lineNumber:368,columnNumber:22},globalThis),N("path",{d:"M.25,12a2.643,2.643,0,0,1,.775-1.875L10.566.584a1.768,1.768,0,0,1,2.5,2.5L4.327,11.823a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5L1.025,13.875A2.643,2.643,0,0,1,.25,12Z"},void 0,!1,{fileName:mt,lineNumber:370,columnNumber:23},globalThis)]},void 0,!0,{fileName:mt,lineNumber:366,columnNumber:25},globalThis)});Rt({displayName:"AtSignIcon",d:"M12,.5A11.634,11.634,0,0,0,.262,12,11.634,11.634,0,0,0,12,23.5a11.836,11.836,0,0,0,6.624-2,1.25,1.25,0,1,0-1.393-2.076A9.34,9.34,0,0,1,12,21a9.132,9.132,0,0,1-9.238-9A9.132,9.132,0,0,1,12,3a9.132,9.132,0,0,1,9.238,9v.891a1.943,1.943,0,0,1-3.884,0V12A5.355,5.355,0,1,0,12,17.261a5.376,5.376,0,0,0,3.861-1.634,4.438,4.438,0,0,0,7.877-2.736V12A11.634,11.634,0,0,0,12,.5Zm0,14.261A2.763,2.763,0,1,1,14.854,12,2.812,2.812,0,0,1,12,14.761Z"});Rt({displayName:"AttachmentIcon",d:"M21.843,3.455a6.961,6.961,0,0,0-9.846,0L1.619,13.832a5.128,5.128,0,0,0,7.252,7.252L17.3,12.653A3.293,3.293,0,1,0,12.646,8L7.457,13.184A1,1,0,1,0,8.871,14.6L14.06,9.409a1.294,1.294,0,0,1,1.829,1.83L7.457,19.67a3.128,3.128,0,0,1-4.424-4.424L13.411,4.869a4.962,4.962,0,1,1,7.018,7.018L12.646,19.67a1,1,0,1,0,1.414,1.414L21.843,13.3a6.96,6.96,0,0,0,0-9.846Z"});Rt({displayName:"UpDownIcon",viewBox:"-1 -1 9 11",d:"M 3.5 0L 3.98809 -0.569442L 3.5 -0.987808L 3.01191 -0.569442L 3.5 0ZM 3.5 9L 3.01191 9.56944L 3.5 9.98781L 3.98809 9.56944L 3.5 9ZM 0.488094 3.56944L 3.98809 0.569442L 3.01191 -0.569442L -0.488094 2.43056L 0.488094 3.56944ZM 3.01191 0.569442L 6.51191 3.56944L 7.48809 2.43056L 3.98809 -0.569442L 3.01191 0.569442ZM -0.488094 6.56944L 3.01191 9.56944L 3.98809 8.43056L 0.488094 5.43056L -0.488094 6.56944ZM 3.98809 9.56944L 7.48809 6.56944L 6.51191 5.43056L 3.01191 8.43056L 3.98809 9.56944Z"});Rt({d:"M23.555,8.729a1.505,1.505,0,0,0-1.406-.98H16.062a.5.5,0,0,1-.472-.334L13.405,1.222a1.5,1.5,0,0,0-2.81,0l-.005.016L8.41,7.415a.5.5,0,0,1-.471.334H1.85A1.5,1.5,0,0,0,.887,10.4l5.184,4.3a.5.5,0,0,1,.155.543L4.048,21.774a1.5,1.5,0,0,0,2.31,1.684l5.346-3.92a.5.5,0,0,1,.591,0l5.344,3.919a1.5,1.5,0,0,0,2.312-1.683l-2.178-6.535a.5.5,0,0,1,.155-.543l5.194-4.306A1.5,1.5,0,0,0,23.555,8.729Z",displayName:"StarIcon"});Rt({displayName:"EmailIcon",path:N("g",{fill:"currentColor",children:[N("path",{d:"M11.114,14.556a1.252,1.252,0,0,0,1.768,0L22.568,4.87a.5.5,0,0,0-.281-.849A1.966,1.966,0,0,0,22,4H2a1.966,1.966,0,0,0-.289.021.5.5,0,0,0-.281.849Z"},void 0,!1,{fileName:mt,lineNumber:410,columnNumber:22},globalThis),N("path",{d:"M23.888,5.832a.182.182,0,0,0-.2.039l-6.2,6.2a.251.251,0,0,0,0,.354l5.043,5.043a.75.75,0,1,1-1.06,1.061l-5.043-5.043a.25.25,0,0,0-.354,0l-2.129,2.129a2.75,2.75,0,0,1-3.888,0L7.926,13.488a.251.251,0,0,0-.354,0L2.529,18.531a.75.75,0,0,1-1.06-1.061l5.043-5.043a.251.251,0,0,0,0-.354l-6.2-6.2a.18.18,0,0,0-.2-.039A.182.182,0,0,0,0,6V18a2,2,0,0,0,2,2H22a2,2,0,0,0,2-2V6A.181.181,0,0,0,23.888,5.832Z"},void 0,!1,{fileName:mt,lineNumber:412,columnNumber:23},globalThis)]},void 0,!0,{fileName:mt,lineNumber:408,columnNumber:25},globalThis)});Rt({d:"M2.20731,0.0127209 C2.1105,-0.0066419 1.99432,-0.00664663 1.91687,0.032079 C0.871279,0.438698 0.212942,1.92964 0.0580392,2.95587 C-0.426031,6.28627 2.20731,9.17133 4.62766,11.0689 C6.77694,12.7534 10.9012,15.5223 13.3409,12.8503 C13.6507,12.5211 14.0186,12.037 13.9993,11.553 C13.9412,10.7397 13.186,10.1588 12.6051,9.71349 C12.1598,9.38432 11.2304,8.47427 10.6495,8.49363 C10.1267,8.51299 9.79754,9.05515 9.46837,9.38432 L8.88748,9.96521 C8.79067,10.062 7.55145,9.24878 7.41591,9.15197 C6.91248,8.8228 6.4284,8.45491 6.00242,8.04829 C5.57644,7.64167 5.18919,7.19632 4.86002,6.73161 C4.7632,6.59607 3.96933,5.41495 4.04678,5.31813 C4.04678,5.31813 4.72448,4.58234 4.91811,4.2919 C5.32473,3.67229 5.63453,3.18822 5.16982,2.45243 C4.99556,2.18135 4.78257,1.96836 4.55021,1.73601 C4.14359,1.34875 3.73698,0.942131 3.27227,0.612963 C3.02055,0.419335 2.59457,0.0708094 2.20731,0.0127209 Z",displayName:"PhoneIcon",viewBox:"0 0 14 14"});Rt({viewBox:"0 0 10 10",d:"M3,2 C2.44771525,2 2,1.55228475 2,1 C2,0.44771525 2.44771525,0 3,0 C3.55228475,0 4,0.44771525 4,1 C4,1.55228475 3.55228475,2 3,2 Z M3,6 C2.44771525,6 2,5.55228475 2,5 C2,4.44771525 2.44771525,4 3,4 C3.55228475,4 4,4.44771525 4,5 C4,5.55228475 3.55228475,6 3,6 Z M3,10 C2.44771525,10 2,9.55228475 2,9 C2,8.44771525 2.44771525,8 3,8 C3.55228475,8 4,8.44771525 4,9 C4,9.55228475 3.55228475,10 3,10 Z M7,2 C6.44771525,2 6,1.55228475 6,1 C6,0.44771525 6.44771525,0 7,0 C7.55228475,0 8,0.44771525 8,1 C8,1.55228475 7.55228475,2 7,2 Z M7,6 C6.44771525,6 6,5.55228475 6,5 C6,4.44771525 6.44771525,4 7,4 C7.55228475,4 8,4.44771525 8,5 C8,5.55228475 7.55228475,6 7,6 Z M7,10 C6.44771525,10 6,9.55228475 6,9 C6,8.44771525 6.44771525,8 7,8 C7.55228475,8 8,8.44771525 8,9 C8,9.55228475 7.55228475,10 7,10 Z",displayName:"DragHandleIcon"});Rt({displayName:"SpinnerIcon",path:N(Gi,{children:[N("defs",{children:N("linearGradient",{x1:"28.154%",y1:"63.74%",x2:"74.629%",y2:"17.783%",id:"a",children:[N("stop",{stopColor:"currentColor",offset:"0%"},void 0,!1,{fileName:mt,lineNumber:443,columnNumber:22},globalThis),N("stop",{stopColor:"#fff",stopOpacity:"0",offset:"100%"},void 0,!1,{fileName:mt,lineNumber:446,columnNumber:23},globalThis)]},void 0,!0,{fileName:mt,lineNumber:437,columnNumber:133},globalThis)},void 0,!1,{fileName:mt,lineNumber:437,columnNumber:83},globalThis),N("g",{transform:"translate(2)",fill:"none",children:[N("circle",{stroke:"url(#a)",strokeWidth:"4",cx:"10",cy:"12",r:"10"},void 0,!1,{fileName:mt,lineNumber:453,columnNumber:22},globalThis),N("path",{d:"M10 2C4.477 2 0 6.477 0 12",stroke:"currentColor",strokeWidth:"4"},void 0,!1,{fileName:mt,lineNumber:459,columnNumber:23},globalThis),N("rect",{fill:"currentColor",x:"8",width:"4",height:"4",rx:"8"},void 0,!1,{fileName:mt,lineNumber:463,columnNumber:23},globalThis)]},void 0,!0,{fileName:mt,lineNumber:450,columnNumber:25},globalThis)]},void 0,!0)});Rt({displayName:"CloseIcon",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"});Rt({displayName:"SmallCloseIcon",viewBox:"0 0 16 16",path:N("path",{d:"M9.41 8l2.29-2.29c.19-.18.3-.43.3-.71a1.003 1.003 0 0 0-1.71-.71L8 6.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42L6.59 8 4.3 10.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71L8 9.41l2.29 2.29c.18.19.43.3.71.3a1.003 1.003 0 0 0 .71-1.71L9.41 8z",fillRule:"evenodd",fill:"currentColor"},void 0,!1,{fileName:mt,lineNumber:484,columnNumber:25},globalThis)});Rt({d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20zm6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9z",displayName:"NotAllowedIcon"});Rt({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",displayName:"TriangleDownIcon"});Rt({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",displayName:"TriangleUpIcon"});Rt({displayName:"InfoOutlineIcon",path:N("g",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"2",children:[N("circle",{cx:"12",cy:"12",fill:"none",r:"11",stroke:"currentColor"},void 0,!1,{fileName:mt,lineNumber:521,columnNumber:22},globalThis),N("line",{fill:"none",x1:"11.959",x2:"11.959",y1:"11",y2:"17"},void 0,!1,{fileName:mt,lineNumber:527,columnNumber:23},globalThis),N("circle",{cx:"11.959",cy:"7",r:"1",stroke:"none"},void 0,!1,{fileName:mt,lineNumber:533,columnNumber:23},globalThis)]},void 0,!0,{fileName:mt,lineNumber:516,columnNumber:25},globalThis)});Rt({displayName:"BellIcon",d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"});Rt({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"});Rt({d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm0,19a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,12,19Zm1.6-6.08a1,1,0,0,0-.6.917,1,1,0,1,1-2,0,3,3,0,0,1,1.8-2.75A2,2,0,1,0,10,9.255a1,1,0,1,1-2,0,4,4,0,1,1,5.6,3.666Z",displayName:"QuestionIcon"});Rt({displayName:"QuestionOutlineIcon",path:N("g",{stroke:"currentColor",strokeWidth:"1.5",children:[N("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:mt,lineNumber:568,columnNumber:22},globalThis),N("path",{fill:"none",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:mt,lineNumber:572,columnNumber:23},globalThis),N("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"},void 0,!1,{fileName:mt,lineNumber:576,columnNumber:23},globalThis)]},void 0,!0,{fileName:mt,lineNumber:565,columnNumber:25},globalThis)});Rt({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",displayName:"WarningIcon"});Rt({displayName:"WarningTwoIcon",d:"M23.119,20,13.772,2.15h0a2,2,0,0,0-3.543,0L.881,20a2,2,0,0,0,1.772,2.928H21.347A2,2,0,0,0,23.119,20ZM11,8.423a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Zm1.05,11.51h-.028a1.528,1.528,0,0,1-1.522-1.47,1.476,1.476,0,0,1,1.448-1.53h.028A1.527,1.527,0,0,1,13.5,18.4,1.475,1.475,0,0,1,12.05,19.933Z"});Rt({viewBox:"0 0 14 14",path:N("g",{fill:"currentColor",children:N("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"},void 0,!1,{fileName:mt,lineNumber:605,columnNumber:22},globalThis)},void 0,!1,{fileName:mt,lineNumber:603,columnNumber:25},globalThis)});Rt({displayName:"MinusIcon",path:N("g",{fill:"currentColor",children:N("rect",{height:"4",width:"20",x:"2",y:"10"},void 0,!1,{fileName:mt,lineNumber:616,columnNumber:22},globalThis)},void 0,!1,{fileName:mt,lineNumber:614,columnNumber:25},globalThis)});Rt({displayName:"HamburgerIcon",viewBox:"0 0 24 24",d:"M 3 5 A 1.0001 1.0001 0 1 0 3 7 L 21 7 A 1.0001 1.0001 0 1 0 21 5 L 3 5 z M 3 11 A 1.0001 1.0001 0 1 0 3 13 L 21 13 A 1.0001 1.0001 0 1 0 21 11 L 3 11 z M 3 17 A 1.0001 1.0001 0 1 0 3 19 L 21 19 A 1.0001 1.0001 0 1 0 21 17 L 3 17 z"});function t5e(e){return Mr({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M245.09 327.74v-37.32c57.07 0 84.51 13.47 108.58 38.68 5.4 5.65 15 1.32 14.29-6.43-5.45-61.45-34.14-117.09-122.87-117.09v-37.32a8.32 8.32 0 00-14.05-6L146.58 242a8.2 8.2 0 000 11.94L231 333.71a8.32 8.32 0 0014.09-5.97z"}},{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M256 64C150 64 64 150 64 256s86 192 192 192 192-86 192-192S362 64 256 64z"}}]})(e)}var Mt="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/gallery/ImageMetaDataViewer/ImageMetadataViewer.tsx";const Ur=({label:e,value:t,onClick:n,isLink:i,labelPosition:o})=>N(Nr,{gap:2,children:[n&&N(bo,{label:`Recall ${e}`,children:N(Ra,{"aria-label":"Use this parameter",icon:N(t5e,{},void 0,!1,{fileName:Mt,lineNumber:64,columnNumber:19},void 0),size:"xs",variant:"ghost",fontSize:20,onClick:n},void 0,!1,{fileName:Mt,lineNumber:62,columnNumber:11},void 0)},void 0,!1,{fileName:Mt,lineNumber:61,columnNumber:9},void 0),N(Nr,{direction:o?"column":"row",children:[N(zo,{fontWeight:"semibold",whiteSpace:"pre-wrap",pr:2,children:[e,":"]},void 0,!0,{fileName:Mt,lineNumber:73,columnNumber:9},void 0),i?N(Dv,{href:t.toString(),isExternal:!0,wordBreak:"break-all",children:[t.toString()," ",N(EV,{mx:"2px"},void 0,!1,{fileName:Mt,lineNumber:78,columnNumber:32},void 0)]},void 0,!0,{fileName:Mt,lineNumber:77,columnNumber:11},void 0):N(zo,{overflowY:"scroll",wordBreak:"break-all",children:t.toString()},void 0,!1,{fileName:Mt,lineNumber:81,columnNumber:11},void 0)]},void 0,!0,{fileName:Mt,lineNumber:72,columnNumber:7},void 0)]},void 0,!0,{fileName:Mt,lineNumber:59,columnNumber:5},void 0),n5e=(e,t)=>e.image.uuid===t.image.uuid,_V=E.exports.memo(({image:e,styleClass:t})=>{const n=wn(),i=e?.metadata?.image||{},{type:o,postprocessing:s,sampler:l,prompt:p,seed:m,variations:v,steps:g,cfg_scale:b,seamless:w,hires_fix:C,width:T,height:R,strength:L,fit:D,init_image_path:P,mask_image_path:I,orig_path:F,scale:z}=i,q=JSON.stringify(i,null,2);return N("div",{className:`image-metadata-viewer ${t}`,children:N(Nr,{gap:1,direction:"column",width:"100%",children:[N(Nr,{gap:2,children:[N(zo,{fontWeight:"semibold",children:"File:"},void 0,!1,{fileName:Mt,lineNumber:140,columnNumber:13},void 0),N(Dv,{href:e.url,isExternal:!0,children:[e.url,N(EV,{mx:"2px"},void 0,!1,{fileName:Mt,lineNumber:143,columnNumber:15},void 0)]},void 0,!0,{fileName:Mt,lineNumber:141,columnNumber:13},void 0)]},void 0,!0,{fileName:Mt,lineNumber:139,columnNumber:11},void 0),Object.keys(i).length>0?N(Gi,{children:[o&&N(Ur,{label:"Generation type",value:o},void 0,!1,{fileName:Mt,lineNumber:148,columnNumber:24},void 0),["esrgan","gfpgan"].includes(o)&&N(Ur,{label:"Original image",value:F},void 0,!1,{fileName:Mt,lineNumber:150,columnNumber:17},void 0),o==="gfpgan"&&L!==void 0&&N(Ur,{label:"Fix faces strength",value:L,onClick:()=>n(wS(L))},void 0,!1,{fileName:Mt,lineNumber:153,columnNumber:17},void 0),o==="esrgan"&&z!==void 0&&N(Ur,{label:"Upscaling scale",value:z,onClick:()=>n(O_(z))},void 0,!1,{fileName:Mt,lineNumber:160,columnNumber:17},void 0),o==="esrgan"&&L!==void 0&&N(Ur,{label:"Upscaling strength",value:L,onClick:()=>n(M_(L))},void 0,!1,{fileName:Mt,lineNumber:167,columnNumber:17},void 0),p&&N(Ur,{label:"Prompt",labelPosition:"top",value:SS(p),onClick:()=>n(eR(p))},void 0,!1,{fileName:Mt,lineNumber:174,columnNumber:17},void 0),m!==void 0&&N(Ur,{label:"Seed",value:m,onClick:()=>n(ay(m))},void 0,!1,{fileName:Mt,lineNumber:182,columnNumber:17},void 0),l&&N(Ur,{label:"Sampler",value:l,onClick:()=>n(mj(l))},void 0,!1,{fileName:Mt,lineNumber:189,columnNumber:17},void 0),g&&N(Ur,{label:"Steps",value:g,onClick:()=>n(cj(g))},void 0,!1,{fileName:Mt,lineNumber:196,columnNumber:17},void 0),b!==void 0&&N(Ur,{label:"CFG scale",value:b,onClick:()=>n(fj(b))},void 0,!1,{fileName:Mt,lineNumber:203,columnNumber:17},void 0),v&&v.length>0&&N(Ur,{label:"Seed-weight pairs",value:m3(v),onClick:()=>n(xj(m3(v)))},void 0,!1,{fileName:Mt,lineNumber:210,columnNumber:17},void 0),w&&N(Ur,{label:"Seamless",value:w,onClick:()=>n(hj(w))},void 0,!1,{fileName:Mt,lineNumber:219,columnNumber:17},void 0),C&&N(Ur,{label:"High Resolution Optimization",value:C,onClick:()=>n(vj(C))},void 0,!1,{fileName:Mt,lineNumber:226,columnNumber:17},void 0),T&&N(Ur,{label:"Width",value:T,onClick:()=>n(pj(T))},void 0,!1,{fileName:Mt,lineNumber:233,columnNumber:17},void 0),R&&N(Ur,{label:"Height",value:R,onClick:()=>n(dj(R))},void 0,!1,{fileName:Mt,lineNumber:240,columnNumber:17},void 0),P&&N(Ur,{label:"Initial image",value:P,isLink:!0,onClick:()=>n(Tm(P))},void 0,!1,{fileName:Mt,lineNumber:247,columnNumber:17},void 0),I&&N(Ur,{label:"Mask image",value:I,isLink:!0,onClick:()=>n(P_(I))},void 0,!1,{fileName:Mt,lineNumber:255,columnNumber:17},void 0),o==="img2img"&&L&&N(Ur,{label:"Image to image strength",value:L,onClick:()=>n(gj(L))},void 0,!1,{fileName:Mt,lineNumber:263,columnNumber:17},void 0),D&&N(Ur,{label:"Image to image fit",value:D,onClick:()=>n(yj(D))},void 0,!1,{fileName:Mt,lineNumber:270,columnNumber:17},void 0),s&&s.length>0&&N(Gi,{children:[N(aT,{size:"sm",children:"Postprocessing"},void 0,!1,{fileName:Mt,lineNumber:278,columnNumber:19},void 0),s.map((Y,Q)=>{if(Y.type==="esrgan"){const{scale:ie,strength:ae}=Y;return N(Nr,{pl:"2rem",gap:1,direction:"column",children:[N(zo,{size:"md",children:`${Q+1}: Upscale (ESRGAN)`},void 0,!1,{fileName:Mt,lineNumber:293,columnNumber:29},void 0),N(Ur,{label:"Scale",value:ie,onClick:()=>n(O_(ie))},void 0,!1,{fileName:Mt,lineNumber:296,columnNumber:29},void 0),N(Ur,{label:"Strength",value:ae,onClick:()=>n(M_(ae))},void 0,!1,{fileName:Mt,lineNumber:301,columnNumber:29},void 0)]},Q,!0,{fileName:Mt,lineNumber:287,columnNumber:27},void 0)}else if(Y.type==="gfpgan"){const{strength:ie}=Y;return N(Nr,{pl:"2rem",gap:1,direction:"column",children:[N(zo,{size:"md",children:`${Q+1}: Face restoration (GFPGAN)`},void 0,!1,{fileName:Mt,lineNumber:319,columnNumber:29},void 0),N(Ur,{label:"Strength",value:ie,onClick:()=>{n(wS(ie)),n(CS("gfpgan"))}},void 0,!1,{fileName:Mt,lineNumber:323,columnNumber:29},void 0)]},Q,!0,{fileName:Mt,lineNumber:313,columnNumber:27},void 0)}else if(Y.type==="codeformer"){const{strength:ie,fidelity:ae}=Y;return N(Nr,{pl:"2rem",gap:1,direction:"column",children:[N(zo,{size:"md",children:`${Q+1}: Face restoration (Codeformer)`},void 0,!1,{fileName:Mt,lineNumber:342,columnNumber:29},void 0),N(Ur,{label:"Strength",value:ie,onClick:()=>{n(wS(ie)),n(CS("codeformer"))}},void 0,!1,{fileName:Mt,lineNumber:346,columnNumber:29},void 0),ae&&N(Ur,{label:"Fidelity",value:ae,onClick:()=>{n(bj(ae)),n(CS("codeformer"))}},void 0,!1,{fileName:Mt,lineNumber:355,columnNumber:31},void 0)]},Q,!0,{fileName:Mt,lineNumber:336,columnNumber:27},void 0)}})]},void 0,!0),N(Nr,{gap:2,direction:"column",children:[N(Nr,{gap:2,children:[N(bo,{label:"Copy metadata JSON",children:N(Ra,{"aria-label":"Copy metadata JSON",icon:N(K2e,{},void 0,!1,{fileName:Mt,lineNumber:376,columnNumber:29},void 0),size:"xs",variant:"ghost",fontSize:14,onClick:()=>navigator.clipboard.writeText(q)},void 0,!1,{fileName:Mt,lineNumber:374,columnNumber:21},void 0)},void 0,!1,{fileName:Mt,lineNumber:373,columnNumber:19},void 0),N(zo,{fontWeight:"semibold",children:"Metadata JSON:"},void 0,!1,{fileName:Mt,lineNumber:385,columnNumber:19},void 0)]},void 0,!0,{fileName:Mt,lineNumber:372,columnNumber:17},void 0),N("div",{className:"image-json-viewer",children:N("pre",{children:q},void 0,!1,{fileName:Mt,lineNumber:388,columnNumber:19},void 0)},void 0,!1,{fileName:Mt,lineNumber:387,columnNumber:17},void 0)]},void 0,!0,{fileName:Mt,lineNumber:371,columnNumber:15},void 0)]},void 0,!0):N(Cz,{width:"100%",pt:10,children:N(zo,{fontSize:"lg",fontWeight:"semibold",children:"No metadata available"},void 0,!1,{fileName:Mt,lineNumber:394,columnNumber:15},void 0)},void 0,!1,{fileName:Mt,lineNumber:393,columnNumber:13},void 0)]},void 0,!0,{fileName:Mt,lineNumber:138,columnNumber:9},void 0)},void 0,!1,{fileName:Mt,lineNumber:137,columnNumber:7},void 0)},n5e);var am="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/tabs/ImageToImage/InitImagePreview.tsx";function rD(){const e=yt(s=>s.options.initialImagePath),t=wn(),n=iy();return N("div",{className:"init-image-preview",children:[N("div",{className:"init-image-preview-header",children:[N("h1",{children:"Initial Image"},void 0,!1,{fileName:am,lineNumber:34,columnNumber:9},this),N(Ra,{isDisabled:!e,size:"sm","aria-label":"Reset Initial Image",onClick:s=>{s.stopPropagation(),t(Tm(null))},icon:N(aV,{},void 0,!1,{fileName:am,lineNumber:40,columnNumber:17},this)},void 0,!1,{fileName:am,lineNumber:35,columnNumber:9},this)]},void 0,!0,{fileName:am,lineNumber:33,columnNumber:7},this),e&&N("div",{className:"init-image-image",children:N(X3,{fit:"contain",src:e,rounded:"md",onError:()=>{n({title:"Problem loading parameters",description:"Unable to load init image.",status:"error",isClosable:!0}),t(Tm(null))}},void 0,!1,{fileName:am,lineNumber:45,columnNumber:11},this)},void 0,!1,{fileName:am,lineNumber:44,columnNumber:9},this)]},void 0,!0,{fileName:am,lineNumber:32,columnNumber:5},this)}var ps="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/tabs/ImageToImage/ImageToImageDisplay.tsx";function r5e(){const e=yt(s=>s.options.initialImagePath),{currentImage:t,intermediateImage:n}=yt(s=>s.gallery),i=yt(s=>s.options.shouldShowImageDetails),o=n||t;return N("div",{className:"image-to-image-display",style:o?{gridAutoRows:"max-content auto"}:{gridAutoRows:"auto"},children:e?N(Gi,{children:o?N(Gi,{children:[N(wV,{image:o},void 0,!1,{fileName:ps,lineNumber:40,columnNumber:15},this),N("div",{className:"image-to-image-dual-preview-container",children:[N("div",{className:"image-to-image-dual-preview",children:[N(rD,{},void 0,!1,{fileName:ps,lineNumber:43,columnNumber:19},this),N("div",{className:"image-to-image-current-image-display",children:N(CV,{imageToDisplay:o},void 0,!1,{fileName:ps,lineNumber:45,columnNumber:21},this)},void 0,!1,{fileName:ps,lineNumber:44,columnNumber:19},this)]},void 0,!0,{fileName:ps,lineNumber:42,columnNumber:17},this),i&&N(_V,{image:o,styleClass:"img2img-metadata"},void 0,!1,{fileName:ps,lineNumber:49,columnNumber:19},this)]},void 0,!0,{fileName:ps,lineNumber:41,columnNumber:15},this)]},void 0,!0):N("div",{className:"image-to-image-single-preview",children:N(rD,{},void 0,!1,{fileName:ps,lineNumber:58,columnNumber:15},this)},void 0,!1,{fileName:ps,lineNumber:57,columnNumber:13},this)},void 0,!1):N("div",{className:"upload-image",children:N(Xxe,{label:"Upload or Drop Image Here",icon:N(txe,{},void 0,!1,{fileName:ps,lineNumber:66,columnNumber:19},this),styleClass:"image-to-image-upload-btn",dispatcher:iye},void 0,!1,{fileName:ps,lineNumber:64,columnNumber:11},this)},void 0,!1,{fileName:ps,lineNumber:63,columnNumber:9},this)},void 0,!1,{fileName:ps,lineNumber:28,columnNumber:5},this)}var i5e="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/re-resizable/lib/resizer.js",a5e=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(i[s]=o[s])},e(t,n)};return function(t,n){e(t,n);function i(){this.constructor=t}t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),wi=globalThis&&globalThis.__assign||function(){return wi=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},wi.apply(this,arguments)},iD={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},aD={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},X5={width:"20px",height:"20px",position:"absolute"},o5e={top:wi(wi({},iD),{top:"-5px"}),right:wi(wi({},aD),{left:void 0,right:"-5px"}),bottom:wi(wi({},iD),{top:void 0,bottom:"-5px"}),left:wi(wi({},aD),{left:"-5px"}),topRight:wi(wi({},X5),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:wi(wi({},X5),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:wi(wi({},X5),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:wi(wi({},X5),{left:"-10px",top:"-10px",cursor:"nw-resize"})},s5e=function(e){a5e(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.onMouseDown=function(i){n.props.onResizeStart(i,n.props.direction)},n.onTouchStart=function(i){n.props.onResizeStart(i,n.props.direction)},n}return t.prototype.render=function(){return N("div",{className:this.props.className||"",style:wi(wi({position:"absolute",userSelect:"none"},o5e[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,children:this.props.children},void 0,!1,{fileName:i5e,lineNumber:68,columnNumber:17},this)},t}(E.exports.PureComponent),Q5="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/node_modules/re-resizable/lib/index.js",l5e=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(i[s]=o[s])},e(t,n)};return function(t,n){e(t,n);function i(){this.constructor=t}t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Au=globalThis&&globalThis.__assign||function(){return Au=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Au.apply(this,arguments)},u5e={width:"auto",height:"auto"},J5=function(e,t,n){return Math.max(Math.min(e,n),t)},oD=function(e,t){return Math.round(e/t)*t},xv=function(e,t){return new RegExp(e,"i").test(t)},eS=function(e){return Boolean(e.touches&&e.touches.length)},c5e=function(e){return Boolean((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},sD=function(e,t,n){n===void 0&&(n=0);var i=t.reduce(function(s,l,p){return Math.abs(l-e)<Math.abs(t[s]-e)?p:s},0),o=Math.abs(t[i]-e);return n===0||o<n?t[i]:e},nE=function(e){return e=e.toString(),e==="auto"||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:e+"px"},tS=function(e,t,n,i){if(e&&typeof e=="string"){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var o=Number(e.replace("%",""))/100;return t*o}if(e.endsWith("vw")){var o=Number(e.replace("vw",""))/100;return n*o}if(e.endsWith("vh")){var o=Number(e.replace("vh",""))/100;return i*o}}return e},f5e=function(e,t,n,i,o,s,l){return i=tS(i,e.width,t,n),o=tS(o,e.height,t,n),s=tS(s,e.width,t,n),l=tS(l,e.height,t,n),{maxWidth:typeof i>"u"?void 0:Number(i),maxHeight:typeof o>"u"?void 0:Number(o),minWidth:typeof s>"u"?void 0:Number(s),minHeight:typeof l>"u"?void 0:Number(l)}},d5e=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],lD="__resizable_base__",TV=function(e){l5e(t,e);function t(n){var i=e.call(this,n)||this;return i.ratio=1,i.resizable=null,i.parentLeft=0,i.parentTop=0,i.resizableLeft=0,i.resizableRight=0,i.resizableTop=0,i.resizableBottom=0,i.targetLeft=0,i.targetTop=0,i.appendBase=function(){if(!i.resizable||!i.window)return null;var o=i.parentNode;if(!o)return null;var s=i.window.document.createElement("div");return s.style.width="100%",s.style.height="100%",s.style.position="absolute",s.style.transform="scale(0, 0)",s.style.left="0",s.style.flex="0 0 100%",s.classList?s.classList.add(lD):s.className+=lD,o.appendChild(s),s},i.removeBase=function(o){var s=i.parentNode;!s||s.removeChild(o)},i.ref=function(o){o&&(i.resizable=o)},i.state={isResizing:!1,width:typeof(i.propsSize&&i.propsSize.width)>"u"?"auto":i.propsSize&&i.propsSize.width,height:typeof(i.propsSize&&i.propsSize.height)>"u"?"auto":i.propsSize&&i.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},i.onResizeStart=i.onResizeStart.bind(i),i.onMouseMove=i.onMouseMove.bind(i),i.onMouseUp=i.onMouseUp.bind(i),i}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||u5e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var n=0,i=0;if(this.resizable&&this.window){var o=this.resizable.offsetWidth,s=this.resizable.offsetHeight,l=this.resizable.style.position;l!=="relative"&&(this.resizable.style.position="relative"),n=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:o,i=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:s,this.resizable.style.position=l}return{width:n,height:i}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var n=this,i=this.props.size,o=function(p){if(typeof n.state[p]>"u"||n.state[p]==="auto")return"auto";if(n.propsSize&&n.propsSize[p]&&n.propsSize[p].toString().endsWith("%")){if(n.state[p].toString().endsWith("%"))return n.state[p].toString();var m=n.getParentSize(),v=Number(n.state[p].toString().replace("px","")),g=v/m[p]*100;return g+"%"}return nE(n.state[p])},s=i&&typeof i.width<"u"&&!this.state.isResizing?nE(i.width):o("width"),l=i&&typeof i.height<"u"&&!this.state.isResizing?nE(i.height):o("height");return{width:s,height:l}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var n=this.appendBase();if(!n)return{width:0,height:0};var i=!1,o=this.parentNode.style.flexWrap;o!=="wrap"&&(i=!0,this.parentNode.style.flexWrap="wrap"),n.style.position="relative",n.style.minWidth="100%",n.style.minHeight="100%";var s={width:n.offsetWidth,height:n.offsetHeight};return i&&(this.parentNode.style.flexWrap=o),this.removeBase(n),s},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var n=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:n.flexBasis!=="auto"?n.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(n,i){var o=this.propsSize&&this.propsSize[i];return this.state[i]==="auto"&&this.state.original[i]===n&&(typeof o>"u"||o==="auto")?"auto":n},t.prototype.calculateNewMaxFromBoundary=function(n,i){var o=this.props.boundsByDirection,s=this.state.direction,l=o&&xv("left",s),p=o&&xv("top",s),m,v;if(this.props.bounds==="parent"){var g=this.parentNode;g&&(m=l?this.resizableRight-this.parentLeft:g.offsetWidth+(this.parentLeft-this.resizableLeft),v=p?this.resizableBottom-this.parentTop:g.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(m=l?this.resizableRight:this.window.innerWidth-this.resizableLeft,v=p?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(m=l?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),v=p?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return m&&Number.isFinite(m)&&(n=n&&n<m?n:m),v&&Number.isFinite(v)&&(i=i&&i<v?i:v),{maxWidth:n,maxHeight:i}},t.prototype.calculateNewSizeFromDirection=function(n,i){var o=this.props.scale||1,s=this.props.resizeRatio||1,l=this.state,p=l.direction,m=l.original,v=this.props,g=v.lockAspectRatio,b=v.lockAspectRatioExtraHeight,w=v.lockAspectRatioExtraWidth,C=m.width,T=m.height,R=b||0,L=w||0;return xv("right",p)&&(C=m.width+(n-m.x)*s/o,g&&(T=(C-L)/this.ratio+R)),xv("left",p)&&(C=m.width-(n-m.x)*s/o,g&&(T=(C-L)/this.ratio+R)),xv("bottom",p)&&(T=m.height+(i-m.y)*s/o,g&&(C=(T-R)*this.ratio+L)),xv("top",p)&&(T=m.height-(i-m.y)*s/o,g&&(C=(T-R)*this.ratio+L)),{newWidth:C,newHeight:T}},t.prototype.calculateNewSizeFromAspectRatio=function(n,i,o,s){var l=this.props,p=l.lockAspectRatio,m=l.lockAspectRatioExtraHeight,v=l.lockAspectRatioExtraWidth,g=typeof s.width>"u"?10:s.width,b=typeof o.width>"u"||o.width<0?n:o.width,w=typeof s.height>"u"?10:s.height,C=typeof o.height>"u"||o.height<0?i:o.height,T=m||0,R=v||0;if(p){var L=(w-T)*this.ratio+R,D=(C-T)*this.ratio+R,P=(g-R)/this.ratio+T,I=(b-R)/this.ratio+T,F=Math.max(g,L),z=Math.min(b,D),q=Math.max(w,P),Y=Math.min(C,I);n=J5(n,F,z),i=J5(i,q,Y)}else n=J5(n,g,b),i=J5(i,w,C);return{newWidth:n,newHeight:i}},t.prototype.setBoundingClientRect=function(){if(this.props.bounds==="parent"){var n=this.parentNode;if(n){var i=n.getBoundingClientRect();this.parentLeft=i.left,this.parentTop=i.top}}if(this.props.bounds&&typeof this.props.bounds!="string"){var o=this.props.bounds.getBoundingClientRect();this.targetLeft=o.left,this.targetTop=o.top}if(this.resizable){var s=this.resizable.getBoundingClientRect(),l=s.left,p=s.top,m=s.right,v=s.bottom;this.resizableLeft=l,this.resizableRight=m,this.resizableTop=p,this.resizableBottom=v}},t.prototype.onResizeStart=function(n,i){if(!(!this.resizable||!this.window)){var o=0,s=0;if(n.nativeEvent&&c5e(n.nativeEvent)?(o=n.nativeEvent.clientX,s=n.nativeEvent.clientY):n.nativeEvent&&eS(n.nativeEvent)&&(o=n.nativeEvent.touches[0].clientX,s=n.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var l=this.props.onResizeStart(n,i,this.resizable);if(l===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var p,m=this.window.getComputedStyle(this.resizable);if(m.flexBasis!=="auto"){var v=this.parentNode;if(v){var g=this.window.getComputedStyle(v).flexDirection;this.flexDir=g.startsWith("row")?"row":"column",p=m.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var b={original:{x:o,y:s,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:Au(Au({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(n.target).cursor||"auto"}),direction:i,flexBasis:p};this.setState(b)}},t.prototype.onMouseMove=function(n){var i=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&eS(n))try{n.preventDefault(),n.stopPropagation()}catch{}var o=this.props,s=o.maxWidth,l=o.maxHeight,p=o.minWidth,m=o.minHeight,v=eS(n)?n.touches[0].clientX:n.clientX,g=eS(n)?n.touches[0].clientY:n.clientY,b=this.state,w=b.direction,C=b.original,T=b.width,R=b.height,L=this.getParentSize(),D=f5e(L,this.window.innerWidth,this.window.innerHeight,s,l,p,m);s=D.maxWidth,l=D.maxHeight,p=D.minWidth,m=D.minHeight;var P=this.calculateNewSizeFromDirection(v,g),I=P.newHeight,F=P.newWidth,z=this.calculateNewMaxFromBoundary(s,l);this.props.snap&&this.props.snap.x&&(F=sD(F,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(I=sD(I,this.props.snap.y,this.props.snapGap));var q=this.calculateNewSizeFromAspectRatio(F,I,{width:z.maxWidth,height:z.maxHeight},{width:p,height:m});if(F=q.newWidth,I=q.newHeight,this.props.grid){var Y=oD(F,this.props.grid[0]),Q=oD(I,this.props.grid[1]),ie=this.props.snapGap||0;F=ie===0||Math.abs(Y-F)<=ie?Y:F,I=ie===0||Math.abs(Q-I)<=ie?Q:I}var ae={width:F-C.width,height:I-C.height};if(T&&typeof T=="string"){if(T.endsWith("%")){var me=F/L.width*100;F=me+"%"}else if(T.endsWith("vw")){var ze=F/this.window.innerWidth*100;F=ze+"vw"}else if(T.endsWith("vh")){var te=F/this.window.innerHeight*100;F=te+"vh"}}if(R&&typeof R=="string"){if(R.endsWith("%")){var me=I/L.height*100;I=me+"%"}else if(R.endsWith("vw")){var ze=I/this.window.innerWidth*100;I=ze+"vw"}else if(R.endsWith("vh")){var te=I/this.window.innerHeight*100;I=te+"vh"}}var ee={width:this.createSizeForCssProperty(F,"width"),height:this.createSizeForCssProperty(I,"height")};this.flexDir==="row"?ee.flexBasis=ee.width:this.flexDir==="column"&&(ee.flexBasis=ee.height),ef.exports.flushSync(function(){i.setState(ee)}),this.props.onResize&&this.props.onResize(n,w,this.resizable,ae)}},t.prototype.onMouseUp=function(n){var i=this.state,o=i.isResizing,s=i.direction,l=i.original;if(!(!o||!this.resizable)){var p={width:this.size.width-l.width,height:this.size.height-l.height};this.props.onResizeStop&&this.props.onResizeStop(n,s,this.resizable,p),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:Au(Au({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(n){this.setState({width:n.width,height:n.height})},t.prototype.renderResizer=function(){var n=this,i=this.props,o=i.enable,s=i.handleStyles,l=i.handleClasses,p=i.handleWrapperStyle,m=i.handleWrapperClass,v=i.handleComponent;if(!o)return null;var g=Object.keys(o).map(function(b){return o[b]!==!1?N(s5e,{direction:b,onResizeStart:n.onResizeStart,replaceStyles:s&&s[b],className:l&&l[b],children:v&&v[b]?v[b]:null},b,!1,{fileName:Q5,lineNumber:704,columnNumber:25},this):null});return N("div",{className:m,style:p,children:g},void 0,!1,{fileName:Q5,lineNumber:709,columnNumber:17},this)},t.prototype.render=function(){var n=this,i=Object.keys(this.props).reduce(function(l,p){return d5e.indexOf(p)!==-1||(l[p]=n.props[p]),l},{}),o=Au(Au(Au({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(o.flexBasis=this.state.flexBasis);var s=this.props.as||"div";return N(s,{...Au({ref:this.ref,style:o,className:this.props.className},i),children:[this.state.isResizing&&N("div",{style:this.state.backgroundStyle},void 0,!1,{fileName:Q5,lineNumber:726,columnNumber:38},this),this.props.children,this.renderResizer()]},void 0,!0,{fileName:Q5,lineNumber:725,columnNumber:17},this)},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(E.exports.PureComponent);function Lr(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function ly(e,t=[]){let n=[];function i(s,l){const p=E.exports.createContext(l),m=n.length;n=[...n,l];function v(b){const{scope:w,children:C,...T}=b,R=w?.[e][m]||p,L=E.exports.useMemo(()=>T,Object.values(T));return E.exports.createElement(R.Provider,{value:L},C)}function g(b,w){const C=w?.[e][m]||p,T=E.exports.useContext(C);if(T)return T;if(l!==void 0)return l;throw new Error(`\`${b}\` must be used within \`${s}\``)}return v.displayName=s+"Provider",[v,g]}const o=()=>{const s=n.map(l=>E.exports.createContext(l));return function(p){const m=p?.[e]||s;return E.exports.useMemo(()=>({[`__scope${e}`]:{...p,[e]:m}}),[p,m])}};return o.scopeName=e,[i,p5e(o,...t)]}function p5e(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const i=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const l=i.reduce((p,{useScope:m,scopeName:v})=>{const b=m(s)[`__scope${v}`];return{...p,...b}},{});return E.exports.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function m5e(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function RV(...e){return t=>e.forEach(n=>m5e(n,t))}function sl(...e){return E.exports.useCallback(RV(...e),e)}const Pb=E.exports.forwardRef((e,t)=>{const{children:n,...i}=e,o=E.exports.Children.toArray(n),s=o.find(v5e);if(s){const l=s.props.children,p=o.map(m=>m===s?E.exports.Children.count(l)>1?E.exports.Children.only(null):E.exports.isValidElement(l)?l.props.children:null:m);return E.exports.createElement(q_,hr({},i,{ref:t}),E.exports.isValidElement(l)?E.exports.cloneElement(l,void 0,p):null)}return E.exports.createElement(q_,hr({},i,{ref:t}),n)});Pb.displayName="Slot";const q_=E.exports.forwardRef((e,t)=>{const{children:n,...i}=e;return E.exports.isValidElement(n)?E.exports.cloneElement(n,{...g5e(i,n.props),ref:RV(t,n.ref)}):E.exports.Children.count(n)>1?E.exports.Children.only(null):null});q_.displayName="SlotClone";const h5e=({children:e})=>E.exports.createElement(E.exports.Fragment,null,e);function v5e(e){return E.exports.isValidElement(e)&&e.type===h5e}function g5e(e,t){const n={...t};for(const i in t){const o=e[i],s=t[i];/^on[A-Z]/.test(i)?o&&s?n[i]=(...p)=>{s(...p),o(...p)}:o&&(n[i]=o):i==="style"?n[i]={...o,...s}:i==="className"&&(n[i]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}const b5e=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"],Xc=b5e.reduce((e,t)=>{const n=E.exports.forwardRef((i,o)=>{const{asChild:s,...l}=i,p=s?Pb:t;return E.exports.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),E.exports.createElement(p,hr({},l,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function kV(e,t){e&&ef.exports.flushSync(()=>e.dispatchEvent(t))}function AV(e){const t=e+"CollectionProvider",[n,i]=ly(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=C=>{const{scope:T,children:R}=C,L=Ne.useRef(null),D=Ne.useRef(new Map).current;return Ne.createElement(o,{scope:T,itemMap:D,collectionRef:L},R)},p=e+"CollectionSlot",m=Ne.forwardRef((C,T)=>{const{scope:R,children:L}=C,D=s(p,R),P=sl(T,D.collectionRef);return Ne.createElement(Pb,{ref:P},L)}),v=e+"CollectionItemSlot",g="data-radix-collection-item",b=Ne.forwardRef((C,T)=>{const{scope:R,children:L,...D}=C,P=Ne.useRef(null),I=sl(T,P),F=s(v,R);return Ne.useEffect(()=>(F.itemMap.set(P,{ref:P,...D}),()=>void F.itemMap.delete(P))),Ne.createElement(Pb,{[g]:"",ref:I},L)});function w(C){const T=s(e+"CollectionConsumer",C);return Ne.useCallback(()=>{const L=T.collectionRef.current;if(!L)return[];const D=Array.from(L.querySelectorAll(`[${g}]`));return Array.from(T.itemMap.values()).sort((F,z)=>D.indexOf(F.ref.current)-D.indexOf(z.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:l,Slot:m,ItemSlot:b},w,i]}const y5e=E.exports.createContext(void 0);function LV(e){const t=E.exports.useContext(y5e);return e||t||"ltr"}function qu(e){const t=E.exports.useRef(e);return E.exports.useEffect(()=>{t.current=e}),E.exports.useMemo(()=>(...n)=>{var i;return(i=t.current)===null||i===void 0?void 0:i.call(t,...n)},[])}function x5e(e,t=globalThis?.document){const n=qu(e);E.exports.useEffect(()=>{const i=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",i),()=>t.removeEventListener("keydown",i)},[n,t])}const Z_="dismissableLayer.update",S5e="dismissableLayer.pointerDownOutside",w5e="dismissableLayer.focusOutside";let uD;const C5e=E.exports.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),N5e=E.exports.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:l,onInteractOutside:p,onDismiss:m,...v}=e,g=E.exports.useContext(C5e),[b,w]=E.exports.useState(null),C=(n=b?.ownerDocument)!==null&&n!==void 0?n:globalThis?.document,[,T]=E.exports.useState({}),R=sl(t,Q=>w(Q)),L=Array.from(g.layers),[D]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),P=L.indexOf(D),I=b?L.indexOf(b):-1,F=g.layersWithOutsidePointerEventsDisabled.size>0,z=I>=P,q=E5e(Q=>{const ie=Q.target,ae=[...g.branches].some(me=>me.contains(ie));!z||ae||(s?.(Q),p?.(Q),Q.defaultPrevented||m?.())},C),Y=_5e(Q=>{const ie=Q.target;[...g.branches].some(me=>me.contains(ie))||(l?.(Q),p?.(Q),Q.defaultPrevented||m?.())},C);return x5e(Q=>{I===g.layers.size-1&&(o?.(Q),!Q.defaultPrevented&&m&&(Q.preventDefault(),m()))},C),E.exports.useEffect(()=>{if(!!b)return i&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(uD=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(b)),g.layers.add(b),cD(),()=>{i&&g.layersWithOutsidePointerEventsDisabled.size===1&&(C.body.style.pointerEvents=uD)}},[b,C,i,g]),E.exports.useEffect(()=>()=>{!b||(g.layers.delete(b),g.layersWithOutsidePointerEventsDisabled.delete(b),cD())},[b,g]),E.exports.useEffect(()=>{const Q=()=>T({});return document.addEventListener(Z_,Q),()=>document.removeEventListener(Z_,Q)},[]),E.exports.createElement(Xc.div,hr({},v,{ref:R,style:{pointerEvents:F?z?"auto":"none":void 0,...e.style},onFocusCapture:Lr(e.onFocusCapture,Y.onFocusCapture),onBlurCapture:Lr(e.onBlurCapture,Y.onBlurCapture),onPointerDownCapture:Lr(e.onPointerDownCapture,q.onPointerDownCapture)}))});function E5e(e,t=globalThis?.document){const n=qu(e),i=E.exports.useRef(!1),o=E.exports.useRef(()=>{});return E.exports.useEffect(()=>{const s=p=>{if(p.target&&!i.current){let g=function(){OV(S5e,n,v,{discrete:!0})};var m=g;const v={originalEvent:p};p.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=g,t.addEventListener("click",o.current,{once:!0})):g()}i.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}function _5e(e,t=globalThis?.document){const n=qu(e),i=E.exports.useRef(!1);return E.exports.useEffect(()=>{const o=s=>{s.target&&!i.current&&OV(w5e,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function cD(){const e=new CustomEvent(Z_);document.dispatchEvent(e)}function OV(e,t,n,{discrete:i}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),i?kV(o,s):o.dispatchEvent(s)}let rE=0;function T5e(){E.exports.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:fD()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:fD()),rE++,()=>{rE===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),rE--}},[])}function fD(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const iE="focusScope.autoFocusOnMount",aE="focusScope.autoFocusOnUnmount",dD={bubbles:!1,cancelable:!0},R5e=E.exports.forwardRef((e,t)=>{const{loop:n=!1,trapped:i=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...l}=e,[p,m]=E.exports.useState(null),v=qu(o),g=qu(s),b=E.exports.useRef(null),w=sl(t,R=>m(R)),C=E.exports.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;E.exports.useEffect(()=>{if(i){let D=function(I){if(C.paused||!p)return;const F=I.target;p.contains(F)?b.current=F:cm(b.current,{select:!0})},P=function(I){C.paused||!p||p.contains(I.relatedTarget)||cm(b.current,{select:!0})};var R=D,L=P;return document.addEventListener("focusin",D),document.addEventListener("focusout",P),()=>{document.removeEventListener("focusin",D),document.removeEventListener("focusout",P)}}},[i,p,C.paused]),E.exports.useEffect(()=>{if(p){mD.add(C);const R=document.activeElement;if(!p.contains(R)){const D=new CustomEvent(iE,dD);p.addEventListener(iE,v),p.dispatchEvent(D),D.defaultPrevented||(k5e(P5e(MV(p)),{select:!0}),document.activeElement===R&&cm(p))}return()=>{p.removeEventListener(iE,v),setTimeout(()=>{const D=new CustomEvent(aE,dD);p.addEventListener(aE,g),p.dispatchEvent(D),D.defaultPrevented||cm(R??document.body,{select:!0}),p.removeEventListener(aE,g),mD.remove(C)},0)}}},[p,v,g,C]);const T=E.exports.useCallback(R=>{if(!n&&!i||C.paused)return;const L=R.key==="Tab"&&!R.altKey&&!R.ctrlKey&&!R.metaKey,D=document.activeElement;if(L&&D){const P=R.currentTarget,[I,F]=A5e(P);I&&F?!R.shiftKey&&D===F?(R.preventDefault(),n&&cm(I,{select:!0})):R.shiftKey&&D===I&&(R.preventDefault(),n&&cm(F,{select:!0})):D===P&&R.preventDefault()}},[n,i,C.paused]);return E.exports.createElement(Xc.div,hr({tabIndex:-1},l,{ref:w,onKeyDown:T}))});function k5e(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(cm(i,{select:t}),document.activeElement!==n)return}function A5e(e){const t=MV(e),n=pD(t,e),i=pD(t.reverse(),e);return[n,i]}function MV(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const o=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||o?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function pD(e,t){for(const n of e)if(!L5e(n,{upTo:t}))return n}function L5e(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function O5e(e){return e instanceof HTMLInputElement&&"select"in e}function cm(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&O5e(e)&&t&&e.select()}}const mD=M5e();function M5e(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=hD(e,t),e.unshift(t)},remove(t){var n;e=hD(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function hD(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}function P5e(e){return e.filter(t=>t.tagName!=="A")}const Jv=Boolean(globalThis?.document)?E.exports.useLayoutEffect:()=>{},I5e=uE["useId".toString()]||(()=>{});let D5e=0;function $5e(e){const[t,n]=E.exports.useState(I5e());return Jv(()=>{e||n(i=>i??String(D5e++))},[e]),e||(t?`radix-${t}`:"")}function f0(e){return e.split("-")[0]}function m4(e){return e.split("-")[1]}function d0(e){return["top","bottom"].includes(f0(e))?"x":"y"}function fR(e){return e==="y"?"height":"width"}function vD(e,t,n){let{reference:i,floating:o}=e;const s=i.x+i.width/2-o.width/2,l=i.y+i.height/2-o.height/2,p=d0(t),m=fR(p),v=i[m]/2-o[m]/2,g=f0(t),b=p==="x";let w;switch(g){case"top":w={x:s,y:i.y-o.height};break;case"bottom":w={x:s,y:i.y+i.height};break;case"right":w={x:i.x+i.width,y:l};break;case"left":w={x:i.x-o.width,y:l};break;default:w={x:i.x,y:i.y}}switch(m4(t)){case"start":w[p]-=v*(n&&b?-1:1);break;case"end":w[p]+=v*(n&&b?-1:1);break}return w}const F5e=async(e,t,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:s=[],platform:l}=n,p=await(l.isRTL==null?void 0:l.isRTL(t));if(l==null&&console.error(["Floating UI: `platform` property was not passed to config. If you","want to use Floating UI on the web, install @floating-ui/dom","instead of the /core package. Otherwise, you can create your own","`platform`: https://floating-ui.com/docs/platform"].join(" ")),s.filter(T=>{let{name:R}=T;return R==="autoPlacement"||R==="flip"}).length>1)throw new Error(["Floating UI: duplicate `flip` and/or `autoPlacement`","middleware detected. This will lead to an infinite loop. Ensure only","one of either has been passed to the `middleware` array."].join(" "));let m=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:v,y:g}=vD(m,i,p),b=i,w={},C=0;for(let T=0;T<s.length;T++){const{name:R,fn:L}=s[T],{x:D,y:P,data:I,reset:F}=await L({x:v,y:g,initialPlacement:i,placement:b,strategy:o,middlewareData:w,rects:m,platform:l,elements:{reference:e,floating:t}});if(v=D??v,g=P??g,w={...w,[R]:{...w[R],...I}},C>50&&console.warn(["Floating UI: The middleware lifecycle appears to be running in an","infinite loop. This is usually caused by a `reset` continually","being returned without a break condition."].join(" ")),F&&C<=50){C++,typeof F=="object"&&(F.placement&&(b=F.placement),F.rects&&(m=F.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:o}):F.rects),{x:v,y:g}=vD(m,b,p)),T=-1;continue}}return{x:v,y:g,placement:b,strategy:o,middlewareData:w}};function z5e(e){return{top:0,right:0,bottom:0,left:0,...e}}function PV(e){return typeof e!="number"?z5e(e):{top:e,right:e,bottom:e,left:e}}function b3(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function y3(e,t){var n;t===void 0&&(t={});const{x:i,y:o,platform:s,rects:l,elements:p,strategy:m}=e,{boundary:v="clippingAncestors",rootBoundary:g="viewport",elementContext:b="floating",altBoundary:w=!1,padding:C=0}=t,T=PV(C),L=p[w?b==="floating"?"reference":"floating":b],D=b3(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(L)))==null||n?L:L.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(p.floating)),boundary:v,rootBoundary:g,strategy:m})),P=b3(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b==="floating"?{...l.floating,x:i,y:o}:l.reference,offsetParent:await(s.getOffsetParent==null?void 0:s.getOffsetParent(p.floating)),strategy:m}):l[b]);return{top:D.top-P.top+T.top,bottom:P.bottom-D.bottom+T.bottom,left:D.left-P.left+T.left,right:P.right-D.right+T.right}}const B5e=Math.min,U5e=Math.max;function K_(e,t,n){return U5e(e,B5e(t,n))}const gD=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:i=0}=e??{},{x:o,y:s,placement:l,rects:p,platform:m}=t;if(n==null)return console.warn("Floating UI: No `element` was passed to the `arrow` middleware."),{};const v=PV(i),g={x:o,y:s},b=d0(l),w=m4(l),C=fR(b),T=await m.getDimensions(n),R=b==="y"?"top":"left",L=b==="y"?"bottom":"right",D=p.reference[C]+p.reference[b]-g[b]-p.floating[C],P=g[b]-p.reference[b],I=await(m.getOffsetParent==null?void 0:m.getOffsetParent(n));let F=I?b==="y"?I.clientHeight||0:I.clientWidth||0:0;F===0&&(F=p.floating[C]);const z=D/2-P/2,q=v[R],Y=F-T[C]-v[L],Q=F/2-T[C]/2+z,ie=K_(q,Q,Y),ze=(w==="start"?v[R]:v[L])>0&&Q!==ie&&p.reference[C]<=p.floating[C]?Q<q?q-Q:Y-Q:0;return{[b]:g[b]-ze,data:{[b]:ie,centerOffset:Q-ie}}}}),j5e={left:"right",right:"left",bottom:"top",top:"bottom"};function x3(e){return e.replace(/left|right|bottom|top/g,t=>j5e[t])}function V5e(e,t,n){n===void 0&&(n=!1);const i=m4(e),o=d0(e),s=fR(o);let l=o==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(l=x3(l)),{main:l,cross:x3(l)}}const H5e={start:"end",end:"start"};function bD(e){return e.replace(/start|end/g,t=>H5e[t])}const W5e=["top","right","bottom","left"];function G5e(e){const t=x3(e);return[bD(e),t,bD(t)]}const Y5e=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:i,middlewareData:o,rects:s,initialPlacement:l,platform:p,elements:m}=t,{mainAxis:v=!0,crossAxis:g=!0,fallbackPlacements:b,fallbackStrategy:w="bestFit",flipAlignment:C=!0,...T}=e,R=f0(i),D=b||(R===l||!C?[x3(l)]:G5e(l)),P=[l,...D],I=await y3(t,T),F=[];let z=((n=o.flip)==null?void 0:n.overflows)||[];if(v&&F.push(I[R]),g){const{main:ie,cross:ae}=V5e(i,s,await(p.isRTL==null?void 0:p.isRTL(m.floating)));F.push(I[ie],I[ae])}if(z=[...z,{placement:i,overflows:F}],!F.every(ie=>ie<=0)){var q,Y;const ie=((q=(Y=o.flip)==null?void 0:Y.index)!=null?q:0)+1,ae=P[ie];if(ae)return{data:{index:ie,overflows:z},reset:{placement:ae}};let me="bottom";switch(w){case"bestFit":{var Q;const ze=(Q=z.map(te=>[te,te.overflows.filter(ee=>ee>0).reduce((ee,we)=>ee+we,0)]).sort((te,ee)=>te[1]-ee[1])[0])==null?void 0:Q[0].placement;ze&&(me=ze);break}case"initialPlacement":me=l;break}if(i!==me)return{reset:{placement:me}}}return{}}}};function yD(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function xD(e){return W5e.some(t=>e[t]>=0)}const q5e=function(e){let{strategy:t="referenceHidden",...n}=e===void 0?{}:e;return{name:"hide",async fn(i){const{rects:o}=i;switch(t){case"referenceHidden":{const s=await y3(i,{...n,elementContext:"reference"}),l=yD(s,o.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:xD(l)}}}case"escaped":{const s=await y3(i,{...n,altBoundary:!0}),l=yD(s,o.floating);return{data:{escapedOffsets:l,escaped:xD(l)}}}default:return{}}}}};async function Z5e(e,t){const{placement:n,platform:i,elements:o}=e,s=await(i.isRTL==null?void 0:i.isRTL(o.floating)),l=f0(n),p=m4(n),m=d0(n)==="x",v=["left","top"].includes(l)?-1:1,g=s&&m?-1:1,b=typeof t=="function"?t(e):t;let{mainAxis:w,crossAxis:C,alignmentAxis:T}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...b};return p&&typeof T=="number"&&(C=p==="end"?T*-1:T),m?{x:C*g,y:w*v}:{x:w*v,y:C*g}}const K5e=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:i}=t,o=await Z5e(t,e);return{x:n+o.x,y:i+o.y,data:o}}}};function IV(e){return e==="x"?"y":"x"}const X5e=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:o}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:p={fn:L=>{let{x:D,y:P}=L;return{x:D,y:P}}},...m}=e,v={x:n,y:i},g=await y3(t,m),b=d0(f0(o)),w=IV(b);let C=v[b],T=v[w];if(s){const L=b==="y"?"top":"left",D=b==="y"?"bottom":"right",P=C+g[L],I=C-g[D];C=K_(P,C,I)}if(l){const L=w==="y"?"top":"left",D=w==="y"?"bottom":"right",P=T+g[L],I=T-g[D];T=K_(P,T,I)}const R=p.fn({...t,[b]:C,[w]:T});return{...R,data:{x:R.x-n,y:R.y-i}}}}},Q5e=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:o,rects:s,middlewareData:l}=t,{offset:p=0,mainAxis:m=!0,crossAxis:v=!0}=e,g={x:n,y:i},b=d0(o),w=IV(b);let C=g[b],T=g[w];const R=typeof p=="function"?p({...s,placement:o}):p,L=typeof R=="number"?{mainAxis:R,crossAxis:0}:{mainAxis:0,crossAxis:0,...R};if(m){const z=b==="y"?"height":"width",q=s.reference[b]-s.floating[z]+L.mainAxis,Y=s.reference[b]+s.reference[z]-L.mainAxis;C<q?C=q:C>Y&&(C=Y)}if(v){var D,P,I,F;const z=b==="y"?"width":"height",q=["top","left"].includes(f0(o)),Y=s.reference[w]-s.floating[z]+(q&&(D=(P=l.offset)==null?void 0:P[w])!=null?D:0)+(q?0:L.crossAxis),Q=s.reference[w]+s.reference[z]+(q?0:(I=(F=l.offset)==null?void 0:F[w])!=null?I:0)-(q?L.crossAxis:0);T<Y?T=Y:T>Q&&(T=Q)}return{[b]:C,[w]:T}}}};function DV(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function nf(e){if(e==null)return window;if(!DV(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function uy(e){return nf(e).getComputedStyle(e)}function Qc(e){return DV(e)?"":e?(e.nodeName||"").toLowerCase():""}function $V(){const e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(t=>t.brand+"/"+t.version).join(" "):navigator.userAgent}function Zu(e){return e instanceof nf(e).HTMLElement}function Ad(e){return e instanceof nf(e).Element}function J5e(e){return e instanceof nf(e).Node}function dR(e){if(typeof ShadowRoot>"u")return!1;const t=nf(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function h4(e){const{overflow:t,overflowX:n,overflowY:i}=uy(e);return/auto|scroll|overlay|hidden/.test(t+i+n)}function eSe(e){return["table","td","th"].includes(Qc(e))}function FV(e){const t=/firefox/i.test($V()),n=uy(e);return n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].includes(n.willChange)||t&&n.willChange==="filter"||t&&(n.filter?n.filter!=="none":!1)}function zV(){return!/^((?!chrome|android).)*safari/i.test($V())}const SD=Math.min,sb=Math.max,S3=Math.round;function Jc(e,t,n){var i,o,s,l;t===void 0&&(t=!1),n===void 0&&(n=!1);const p=e.getBoundingClientRect();let m=1,v=1;t&&Zu(e)&&(m=e.offsetWidth>0&&S3(p.width)/e.offsetWidth||1,v=e.offsetHeight>0&&S3(p.height)/e.offsetHeight||1);const g=Ad(e)?nf(e):window,b=!zV()&&n,w=(p.left+(b&&(i=(o=g.visualViewport)==null?void 0:o.offsetLeft)!=null?i:0))/m,C=(p.top+(b&&(s=(l=g.visualViewport)==null?void 0:l.offsetTop)!=null?s:0))/v,T=p.width/m,R=p.height/v;return{width:T,height:R,top:C,right:w+T,bottom:C+R,left:w,x:w,y:C}}function Md(e){return((J5e(e)?e.ownerDocument:e.document)||window.document).documentElement}function v4(e){return Ad(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function BV(e){return Jc(Md(e)).left+v4(e).scrollLeft}function tSe(e){const t=Jc(e);return S3(t.width)!==e.offsetWidth||S3(t.height)!==e.offsetHeight}function nSe(e,t,n){const i=Zu(t),o=Md(t),s=Jc(e,i&&tSe(t),n==="fixed");let l={scrollLeft:0,scrollTop:0};const p={x:0,y:0};if(i||!i&&n!=="fixed")if((Qc(t)!=="body"||h4(o))&&(l=v4(t)),Zu(t)){const m=Jc(t,!0);p.x=m.x+t.clientLeft,p.y=m.y+t.clientTop}else o&&(p.x=BV(o));return{x:s.left+l.scrollLeft-p.x,y:s.top+l.scrollTop-p.y,width:s.width,height:s.height}}function UV(e){return Qc(e)==="html"?e:e.assignedSlot||e.parentNode||(dR(e)?e.host:null)||Md(e)}function wD(e){return!Zu(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function rSe(e){let t=UV(e);for(dR(t)&&(t=t.host);Zu(t)&&!["html","body"].includes(Qc(t));){if(FV(t))return t;t=t.parentNode}return null}function X_(e){const t=nf(e);let n=wD(e);for(;n&&eSe(n)&&getComputedStyle(n).position==="static";)n=wD(n);return n&&(Qc(n)==="html"||Qc(n)==="body"&&getComputedStyle(n).position==="static"&&!FV(n))?t:n||rSe(e)||t}function CD(e){if(Zu(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=Jc(e);return{width:t.width,height:t.height}}function iSe(e){let{rect:t,offsetParent:n,strategy:i}=e;const o=Zu(n),s=Md(n);if(n===s)return t;let l={scrollLeft:0,scrollTop:0};const p={x:0,y:0};if((o||!o&&i!=="fixed")&&((Qc(n)!=="body"||h4(s))&&(l=v4(n)),Zu(n))){const m=Jc(n,!0);p.x=m.x+n.clientLeft,p.y=m.y+n.clientTop}return{...t,x:t.x-l.scrollLeft+p.x,y:t.y-l.scrollTop+p.y}}function aSe(e,t){const n=nf(e),i=Md(e),o=n.visualViewport;let s=i.clientWidth,l=i.clientHeight,p=0,m=0;if(o){s=o.width,l=o.height;const v=zV();(v||!v&&t==="fixed")&&(p=o.offsetLeft,m=o.offsetTop)}return{width:s,height:l,x:p,y:m}}function oSe(e){var t;const n=Md(e),i=v4(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=sb(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=sb(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let p=-i.scrollLeft+BV(e);const m=-i.scrollTop;return uy(o||n).direction==="rtl"&&(p+=sb(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:l,x:p,y:m}}function jV(e){const t=UV(e);return["html","body","#document"].includes(Qc(t))?e.ownerDocument.body:Zu(t)&&h4(t)?t:jV(t)}function w3(e,t){var n;t===void 0&&(t=[]);const i=jV(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),s=nf(i),l=o?[s].concat(s.visualViewport||[],h4(i)?i:[]):i,p=t.concat(l);return o?p:p.concat(w3(l))}function sSe(e,t){const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&dR(n)){let i=t;do{if(i&&e===i)return!0;i=i.parentNode||i.host}while(i)}return!1}function lSe(e,t){const n=Jc(e,!1,t==="fixed"),i=n.top+e.clientTop,o=n.left+e.clientLeft;return{top:i,left:o,x:o,y:i,right:o+e.clientWidth,bottom:i+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function ND(e,t,n){return t==="viewport"?b3(aSe(e,n)):Ad(t)?lSe(t,n):b3(oSe(Md(e)))}function uSe(e){const t=w3(e),i=["absolute","fixed"].includes(uy(e).position)&&Zu(e)?X_(e):e;return Ad(i)?t.filter(o=>Ad(o)&&sSe(o,i)&&Qc(o)!=="body"):[]}function cSe(e){let{element:t,boundary:n,rootBoundary:i,strategy:o}=e;const l=[...n==="clippingAncestors"?uSe(t):[].concat(n),i],p=l[0],m=l.reduce((v,g)=>{const b=ND(t,g,o);return v.top=sb(b.top,v.top),v.right=SD(b.right,v.right),v.bottom=SD(b.bottom,v.bottom),v.left=sb(b.left,v.left),v},ND(t,p,o));return{width:m.right-m.left,height:m.bottom-m.top,x:m.left,y:m.top}}const fSe={getClippingRect:cSe,convertOffsetParentRelativeRectToViewportRelativeRect:iSe,isElement:Ad,getDimensions:CD,getOffsetParent:X_,getDocumentElement:Md,getElementRects:e=>{let{reference:t,floating:n,strategy:i}=e;return{reference:nSe(t,X_(n),i),floating:{...CD(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>uy(e).direction==="rtl"};function dSe(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:l=!0,animationFrame:p=!1}=i,m=o&&!p,v=s&&!p,g=m||v?[...Ad(e)?w3(e):[],...w3(t)]:[];g.forEach(R=>{m&&R.addEventListener("scroll",n,{passive:!0}),v&&R.addEventListener("resize",n)});let b=null;if(l){let R=!0;b=new ResizeObserver(()=>{R||n(),R=!1}),Ad(e)&&!p&&b.observe(e),b.observe(t)}let w,C=p?Jc(e):null;p&&T();function T(){const R=Jc(e);C&&(R.x!==C.x||R.y!==C.y||R.width!==C.width||R.height!==C.height)&&n(),C=R,w=requestAnimationFrame(T)}return n(),()=>{var R;g.forEach(L=>{m&&L.removeEventListener("scroll",n),v&&L.removeEventListener("resize",n)}),(R=b)==null||R.disconnect(),b=null,p&&cancelAnimationFrame(w)}}const pSe=(e,t,n)=>F5e(e,t,{platform:fSe,...n});var Q_=typeof document<"u"?E.exports.useLayoutEffect:E.exports.useEffect;function J_(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,i,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(i=n;i--!==0;)if(!J_(e[i],t[i]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[i]))return!1;for(i=n;i--!==0;){const s=o[i];if(!(s==="_owner"&&e.$$typeof)&&!J_(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function mSe(e){const t=E.exports.useRef(e);return Q_(()=>{t.current=e}),t}function hSe(e){let{middleware:t,placement:n="bottom",strategy:i="absolute",whileElementsMounted:o}=e===void 0?{}:e;const s=E.exports.useRef(null),l=E.exports.useRef(null),p=mSe(o),m=E.exports.useRef(null),[v,g]=E.exports.useState({x:null,y:null,strategy:i,placement:n,middlewareData:{}}),[b,w]=E.exports.useState(t);J_(b?.map(I=>{let{options:F}=I;return F}),t?.map(I=>{let{options:F}=I;return F}))||w(t);const C=E.exports.useCallback(()=>{!s.current||!l.current||pSe(s.current,l.current,{middleware:b,placement:n,strategy:i}).then(I=>{T.current&&ef.exports.flushSync(()=>{g(I)})})},[b,n,i]);Q_(()=>{T.current&&C()},[C]);const T=E.exports.useRef(!1);Q_(()=>(T.current=!0,()=>{T.current=!1}),[]);const R=E.exports.useCallback(()=>{if(typeof m.current=="function"&&(m.current(),m.current=null),s.current&&l.current)if(p.current){const I=p.current(s.current,l.current,C);m.current=I}else C()},[C,p]),L=E.exports.useCallback(I=>{s.current=I,R()},[R]),D=E.exports.useCallback(I=>{l.current=I,R()},[R]),P=E.exports.useMemo(()=>({reference:s,floating:l}),[]);return E.exports.useMemo(()=>({...v,update:C,refs:P,reference:L,floating:D}),[v,C,P,L,D])}const vSe=e=>{const{element:t,padding:n}=e;function i(o){return Object.prototype.hasOwnProperty.call(o,"current")}return{name:"arrow",options:e,fn(o){return i(t)?t.current!=null?gD({element:t.current,padding:n}).fn(o):{}:t?gD({element:t,padding:n}).fn(o):{}}}};function gSe(e){const[t,n]=E.exports.useState(void 0);return Jv(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let l,p;if("borderBoxSize"in s){const m=s.borderBoxSize,v=Array.isArray(m)?m[0]:m;l=v.inlineSize,p=v.blockSize}else l=e.offsetWidth,p=e.offsetHeight;n({width:l,height:p})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else n(void 0)},[e]),t}const VV="Popper",[pR,HV]=ly(VV),[bSe,WV]=pR(VV),ySe=e=>{const{__scopePopper:t,children:n}=e,[i,o]=E.exports.useState(null);return E.exports.createElement(bSe,{scope:t,anchor:i,onAnchorChange:o},n)},xSe="PopperAnchor",SSe=E.exports.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:i,...o}=e,s=WV(xSe,n),l=E.exports.useRef(null),p=sl(t,l);return E.exports.useEffect(()=>{s.onAnchorChange(i?.current||l.current)}),i?null:E.exports.createElement(Xc.div,hr({},o,{ref:p}))}),C3="PopperContent",[wSe,R4e]=pR(C3),[CSe,NSe]=pR(C3,{hasParent:!1,positionUpdateFns:new Set}),ESe=E.exports.forwardRef((e,t)=>{var n,i,o,s,l,p,m,v;const{__scopePopper:g,side:b="bottom",sideOffset:w=0,align:C="center",alignOffset:T=0,arrowPadding:R=0,collisionBoundary:L=[],collisionPadding:D=0,sticky:P="partial",hideWhenDetached:I=!1,avoidCollisions:F=!0,...z}=e,q=WV(C3,g),[Y,Q]=E.exports.useState(null),ie=sl(t,Tt=>Q(Tt)),[ae,me]=E.exports.useState(null),ze=gSe(ae),te=(n=ze?.width)!==null&&n!==void 0?n:0,ee=(i=ze?.height)!==null&&i!==void 0?i:0,we=b+(C!=="center"?"-"+C:""),ye=typeof D=="number"?D:{top:0,right:0,bottom:0,left:0,...D},K=Array.isArray(L)?L:[L],le=K.length>0,ge={padding:ye,boundary:K.filter(TSe),altBoundary:le},{reference:pe,floating:Ee,strategy:Oe,x:Pe,y:Xe,placement:et,middlewareData:at,update:kt}=hSe({strategy:"fixed",placement:we,whileElementsMounted:dSe,middleware:[K5e({mainAxis:w+ee,alignmentAxis:T}),F?X5e({mainAxis:!0,crossAxis:!1,limiter:P==="partial"?Q5e():void 0,...ge}):void 0,ae?vSe({element:ae,padding:R}):void 0,F?Y5e({...ge}):void 0,RSe({arrowWidth:te,arrowHeight:ee}),I?q5e({strategy:"referenceHidden"}):void 0].filter(_Se)});Jv(()=>{pe(q.anchor)},[pe,q.anchor]);const He=Pe!==null&&Xe!==null,[ot,wt]=GV(et),It=(o=at.arrow)===null||o===void 0?void 0:o.x,We=(s=at.arrow)===null||s===void 0?void 0:s.y,Vt=((l=at.arrow)===null||l===void 0?void 0:l.centerOffset)!==0,[Ce,nt]=E.exports.useState();Jv(()=>{Y&&nt(window.getComputedStyle(Y).zIndex)},[Y]);const{hasParent:Ct,positionUpdateFns:rt}=NSe(C3,g),sn=!Ct;E.exports.useLayoutEffect(()=>{if(!sn)return rt.add(kt),()=>{rt.delete(kt)}},[sn,rt,kt]),E.exports.useLayoutEffect(()=>{sn&&He&&Array.from(rt).reverse().forEach(Tt=>requestAnimationFrame(Tt))},[sn,He,rt]);const On={"data-side":ot,"data-align":wt,...z,ref:ie,style:{...z.style,animation:He?void 0:"none",opacity:(p=at.hide)!==null&&p!==void 0&&p.referenceHidden?0:void 0}};return E.exports.createElement("div",{ref:Ee,"data-radix-popper-content-wrapper":"",style:{position:Oe,left:0,top:0,transform:He?`translate3d(${Math.round(Pe)}px, ${Math.round(Xe)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:Ce,["--radix-popper-transform-origin"]:[(m=at.transformOrigin)===null||m===void 0?void 0:m.x,(v=at.transformOrigin)===null||v===void 0?void 0:v.y].join(" ")}},E.exports.createElement(wSe,{scope:g,placedSide:ot,onArrowChange:me,arrowX:It,arrowY:We,shouldHideArrow:Vt},sn?E.exports.createElement(CSe,{scope:g,hasParent:!0,positionUpdateFns:rt},E.exports.createElement(Xc.div,On)):E.exports.createElement(Xc.div,On)))});function _Se(e){return e!==void 0}function TSe(e){return e!==null}const RSe=e=>({name:"transformOrigin",options:e,fn(t){var n,i,o,s,l;const{placement:p,rects:m,middlewareData:v}=t,b=((n=v.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,w=b?0:e.arrowWidth,C=b?0:e.arrowHeight,[T,R]=GV(p),L={start:"0%",center:"50%",end:"100%"}[R],D=((i=(o=v.arrow)===null||o===void 0?void 0:o.x)!==null&&i!==void 0?i:0)+w/2,P=((s=(l=v.arrow)===null||l===void 0?void 0:l.y)!==null&&s!==void 0?s:0)+C/2;let I="",F="";return T==="bottom"?(I=b?L:`${D}px`,F=`${-C}px`):T==="top"?(I=b?L:`${D}px`,F=`${m.floating.height+C}px`):T==="right"?(I=`${-C}px`,F=b?L:`${P}px`):T==="left"&&(I=`${m.floating.width+C}px`,F=b?L:`${P}px`),{data:{x:I,y:F}}}});function GV(e){const[t,n="center"]=e.split("-");return[t,n]}const kSe=ySe,ASe=SSe,LSe=ESe;function OSe(e,t){return E.exports.useReducer((n,i)=>{const o=t[n][i];return o??n},e)}const YV=e=>{const{present:t,children:n}=e,i=MSe(t),o=typeof n=="function"?n({present:i.isPresent}):E.exports.Children.only(n),s=sl(i.ref,o.ref);return typeof n=="function"||i.isPresent?E.exports.cloneElement(o,{ref:s}):null};YV.displayName="Presence";function MSe(e){const[t,n]=E.exports.useState(),i=E.exports.useRef({}),o=E.exports.useRef(e),s=E.exports.useRef("none"),l=e?"mounted":"unmounted",[p,m]=OSe(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E.exports.useEffect(()=>{const v=nS(i.current);s.current=p==="mounted"?v:"none"},[p]),Jv(()=>{const v=i.current,g=o.current;if(g!==e){const w=s.current,C=nS(v);e?m("MOUNT"):C==="none"||v?.display==="none"?m("UNMOUNT"):m(g&&w!==C?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Jv(()=>{if(t){const v=b=>{const C=nS(i.current).includes(b.animationName);b.target===t&&C&&ef.exports.flushSync(()=>m("ANIMATION_END"))},g=b=>{b.target===t&&(s.current=nS(i.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",v),t.addEventListener("animationend",v),()=>{t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",v),t.removeEventListener("animationend",v)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:E.exports.useCallback(v=>{v&&(i.current=getComputedStyle(v)),n(v)},[])}}function nS(e){return e?.animationName||"none"}function PSe({prop:e,defaultProp:t,onChange:n=()=>{}}){const[i,o]=ISe({defaultProp:t,onChange:n}),s=e!==void 0,l=s?e:i,p=qu(n),m=E.exports.useCallback(v=>{if(s){const b=typeof v=="function"?v(e):v;b!==e&&p(b)}else o(v)},[s,e,o,p]);return[l,m]}function ISe({defaultProp:e,onChange:t}){const n=E.exports.useState(e),[i]=n,o=E.exports.useRef(i),s=qu(t);return E.exports.useEffect(()=>{o.current!==i&&(s(i),o.current=i)},[i,o,s]),n}const oE="rovingFocusGroup.onEntryFocus",DSe={bubbles:!1,cancelable:!0},mR="RovingFocusGroup",[e8,qV,$Se]=AV(mR),[FSe,ZV]=ly(mR,[$Se]),[zSe,BSe]=FSe(mR),USe=E.exports.forwardRef((e,t)=>E.exports.createElement(e8.Provider,{scope:e.__scopeRovingFocusGroup},E.exports.createElement(e8.Slot,{scope:e.__scopeRovingFocusGroup},E.exports.createElement(jSe,hr({},e,{ref:t}))))),jSe=E.exports.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:i,loop:o=!1,dir:s,currentTabStopId:l,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:m,onEntryFocus:v,...g}=e,b=E.exports.useRef(null),w=sl(t,b),C=LV(s),[T=null,R]=PSe({prop:l,defaultProp:p,onChange:m}),[L,D]=E.exports.useState(!1),P=qu(v),I=qV(n),F=E.exports.useRef(!1),[z,q]=E.exports.useState(0);return E.exports.useEffect(()=>{const Y=b.current;if(Y)return Y.addEventListener(oE,P),()=>Y.removeEventListener(oE,P)},[P]),E.exports.createElement(zSe,{scope:n,orientation:i,dir:C,loop:o,currentTabStopId:T,onItemFocus:E.exports.useCallback(Y=>R(Y),[R]),onItemShiftTab:E.exports.useCallback(()=>D(!0),[]),onFocusableItemAdd:E.exports.useCallback(()=>q(Y=>Y+1),[]),onFocusableItemRemove:E.exports.useCallback(()=>q(Y=>Y-1),[])},E.exports.createElement(Xc.div,hr({tabIndex:L||z===0?-1:0,"data-orientation":i},g,{ref:w,style:{outline:"none",...e.style},onMouseDown:Lr(e.onMouseDown,()=>{F.current=!0}),onFocus:Lr(e.onFocus,Y=>{const Q=!F.current;if(Y.target===Y.currentTarget&&Q&&!L){const ie=new CustomEvent(oE,DSe);if(Y.currentTarget.dispatchEvent(ie),!ie.defaultPrevented){const ae=I().filter(we=>we.focusable),me=ae.find(we=>we.active),ze=ae.find(we=>we.id===T),ee=[me,ze,...ae].filter(Boolean).map(we=>we.ref.current);KV(ee)}}F.current=!1}),onBlur:Lr(e.onBlur,()=>D(!1))})))}),VSe="RovingFocusGroupItem",HSe=E.exports.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:i=!0,active:o=!1,...s}=e,l=$5e(),p=BSe(VSe,n),m=p.currentTabStopId===l,v=qV(n),{onFocusableItemAdd:g,onFocusableItemRemove:b}=p;return E.exports.useEffect(()=>{if(i)return g(),()=>b()},[i,g,b]),E.exports.createElement(e8.ItemSlot,{scope:n,id:l,focusable:i,active:o},E.exports.createElement(Xc.span,hr({tabIndex:m?0:-1,"data-orientation":p.orientation},s,{ref:t,onMouseDown:Lr(e.onMouseDown,w=>{i?p.onItemFocus(l):w.preventDefault()}),onFocus:Lr(e.onFocus,()=>p.onItemFocus(l)),onKeyDown:Lr(e.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){p.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const C=YSe(w,p.orientation,p.dir);if(C!==void 0){w.preventDefault();let R=v().filter(L=>L.focusable).map(L=>L.ref.current);if(C==="last")R.reverse();else if(C==="prev"||C==="next"){C==="prev"&&R.reverse();const L=R.indexOf(w.currentTarget);R=p.loop?qSe(R,L+1):R.slice(L+1)}setTimeout(()=>KV(R))}})})))}),WSe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function GSe(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function YSe(e,t,n){const i=GSe(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return WSe[i]}function KV(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function qSe(e,t){return e.map((n,i)=>e[(t+i)%e.length])}const ZSe=USe,KSe=HSe,XSe=["Enter"," "],QSe=["ArrowDown","PageUp","Home"],XV=["ArrowUp","PageDown","End"],JSe=[...QSe,...XV],g4="Menu",[t8,e3e,t3e]=AV(g4),[Fm,QV]=ly(g4,[t3e,HV,ZV]),hR=HV(),JV=ZV(),[n3e,b4]=Fm(g4),[r3e,vR]=Fm(g4),i3e=e=>{const{__scopeMenu:t,open:n=!1,children:i,dir:o,onOpenChange:s,modal:l=!0}=e,p=hR(t),[m,v]=E.exports.useState(null),g=E.exports.useRef(!1),b=qu(s),w=LV(o);return E.exports.useEffect(()=>{const C=()=>{g.current=!0,document.addEventListener("pointerdown",T,{capture:!0,once:!0}),document.addEventListener("pointermove",T,{capture:!0,once:!0})},T=()=>g.current=!1;return document.addEventListener("keydown",C,{capture:!0}),()=>{document.removeEventListener("keydown",C,{capture:!0}),document.removeEventListener("pointerdown",T,{capture:!0}),document.removeEventListener("pointermove",T,{capture:!0})}},[]),E.exports.createElement(kSe,p,E.exports.createElement(n3e,{scope:t,open:n,onOpenChange:b,content:m,onContentChange:v},E.exports.createElement(r3e,{scope:t,onClose:E.exports.useCallback(()=>b(!1),[b]),isUsingKeyboardRef:g,dir:w,modal:l},i)))},a3e=E.exports.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e,o=hR(n);return E.exports.createElement(ASe,hr({},o,i,{ref:t}))}),o3e="MenuPortal",[k4e,s3e]=Fm(o3e,{forceMount:void 0}),Cd="MenuContent",[l3e,eH]=Fm(Cd),u3e=E.exports.forwardRef((e,t)=>{const n=s3e(Cd,e.__scopeMenu),{forceMount:i=n.forceMount,...o}=e,s=b4(Cd,e.__scopeMenu),l=vR(Cd,e.__scopeMenu);return E.exports.createElement(t8.Provider,{scope:e.__scopeMenu},E.exports.createElement(YV,{present:i||s.open},E.exports.createElement(t8.Slot,{scope:e.__scopeMenu},l.modal?E.exports.createElement(c3e,hr({},o,{ref:t})):E.exports.createElement(f3e,hr({},o,{ref:t})))))}),c3e=E.exports.forwardRef((e,t)=>{const n=b4(Cd,e.__scopeMenu),i=E.exports.useRef(null),o=sl(t,i);return E.exports.useEffect(()=>{const s=i.current;if(s)return Yz(s)},[]),E.exports.createElement(tH,hr({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Lr(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),f3e=E.exports.forwardRef((e,t)=>{const n=b4(Cd,e.__scopeMenu);return E.exports.createElement(tH,hr({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),tH=E.exports.forwardRef((e,t)=>{const{__scopeMenu:n,loop:i=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:l,disableOutsidePointerEvents:p,onEscapeKeyDown:m,onPointerDownOutside:v,onFocusOutside:g,onInteractOutside:b,onDismiss:w,disableOutsideScroll:C,...T}=e,R=b4(Cd,n),L=vR(Cd,n),D=hR(n),P=JV(n),I=e3e(n),[F,z]=E.exports.useState(null),q=E.exports.useRef(null),Y=sl(t,q,R.onContentChange),Q=E.exports.useRef(0),ie=E.exports.useRef(""),ae=E.exports.useRef(0),me=E.exports.useRef(null),ze=E.exports.useRef("right"),te=E.exports.useRef(0),ee=C?PB:E.exports.Fragment,we=C?{as:Pb,allowPinchZoom:!0}:void 0,ye=le=>{var ge,pe;const Ee=ie.current+le,Oe=I().filter(He=>!He.disabled),Pe=document.activeElement,Xe=(ge=Oe.find(He=>He.ref.current===Pe))===null||ge===void 0?void 0:ge.textValue,et=Oe.map(He=>He.textValue),at=x3e(et,Ee,Xe),kt=(pe=Oe.find(He=>He.textValue===at))===null||pe===void 0?void 0:pe.ref.current;(function He(ot){ie.current=ot,window.clearTimeout(Q.current),ot!==""&&(Q.current=window.setTimeout(()=>He(""),1e3))})(Ee),kt&&setTimeout(()=>kt.focus())};E.exports.useEffect(()=>()=>window.clearTimeout(Q.current),[]),T5e();const K=E.exports.useCallback(le=>{var ge,pe;return ze.current===((ge=me.current)===null||ge===void 0?void 0:ge.side)&&w3e(le,(pe=me.current)===null||pe===void 0?void 0:pe.area)},[]);return E.exports.createElement(l3e,{scope:n,searchRef:ie,onItemEnter:E.exports.useCallback(le=>{K(le)&&le.preventDefault()},[K]),onItemLeave:E.exports.useCallback(le=>{var ge;K(le)||((ge=q.current)===null||ge===void 0||ge.focus(),z(null))},[K]),onTriggerLeave:E.exports.useCallback(le=>{K(le)&&le.preventDefault()},[K]),pointerGraceTimerRef:ae,onPointerGraceIntentChange:E.exports.useCallback(le=>{me.current=le},[])},E.exports.createElement(ee,we,E.exports.createElement(R5e,{asChild:!0,trapped:o,onMountAutoFocus:Lr(s,le=>{var ge;le.preventDefault(),(ge=q.current)===null||ge===void 0||ge.focus()}),onUnmountAutoFocus:l},E.exports.createElement(N5e,{asChild:!0,disableOutsidePointerEvents:p,onEscapeKeyDown:m,onPointerDownOutside:v,onFocusOutside:g,onInteractOutside:b,onDismiss:w},E.exports.createElement(ZSe,hr({asChild:!0},P,{dir:L.dir,orientation:"vertical",loop:i,currentTabStopId:F,onCurrentTabStopIdChange:z,onEntryFocus:le=>{L.isUsingKeyboardRef.current||le.preventDefault()}}),E.exports.createElement(LSe,hr({role:"menu","aria-orientation":"vertical","data-state":g3e(R.open),"data-radix-menu-content":"",dir:L.dir},D,T,{ref:Y,style:{outline:"none",...T.style},onKeyDown:Lr(T.onKeyDown,le=>{const pe=le.target.closest("[data-radix-menu-content]")===le.currentTarget,Ee=le.ctrlKey||le.altKey||le.metaKey,Oe=le.key.length===1;pe&&(le.key==="Tab"&&le.preventDefault(),!Ee&&Oe&&ye(le.key));const Pe=q.current;if(le.target!==Pe||!JSe.includes(le.key))return;le.preventDefault();const et=I().filter(at=>!at.disabled).map(at=>at.ref.current);XV.includes(le.key)&&et.reverse(),b3e(et)}),onBlur:Lr(e.onBlur,le=>{le.currentTarget.contains(le.target)||(window.clearTimeout(Q.current),ie.current="")}),onPointerMove:Lr(e.onPointerMove,r8(le=>{const ge=le.target,pe=te.current!==le.clientX;if(le.currentTarget.contains(ge)&&pe){const Ee=le.clientX>te.current?"right":"left";ze.current=Ee,te.current=le.clientX}}))})))))))}),n8="MenuItem",ED="menu.itemSelect",d3e=E.exports.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:i,...o}=e,s=E.exports.useRef(null),l=vR(n8,e.__scopeMenu),p=eH(n8,e.__scopeMenu),m=sl(t,s),v=E.exports.useRef(!1),g=()=>{const b=s.current;if(!n&&b){const w=new CustomEvent(ED,{bubbles:!0,cancelable:!0});b.addEventListener(ED,C=>i?.(C),{once:!0}),kV(b,w),w.defaultPrevented?v.current=!1:l.onClose()}};return E.exports.createElement(p3e,hr({},o,{ref:m,disabled:n,onClick:Lr(e.onClick,g),onPointerDown:b=>{var w;(w=e.onPointerDown)===null||w===void 0||w.call(e,b),v.current=!0},onPointerUp:Lr(e.onPointerUp,b=>{var w;v.current||(w=b.currentTarget)===null||w===void 0||w.click()}),onKeyDown:Lr(e.onKeyDown,b=>{const w=p.searchRef.current!=="";n||w&&b.key===" "||XSe.includes(b.key)&&(b.currentTarget.click(),b.preventDefault())})}))}),p3e=E.exports.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:i=!1,textValue:o,...s}=e,l=eH(n8,n),p=JV(n),m=E.exports.useRef(null),v=sl(t,m),[g,b]=E.exports.useState(!1),[w,C]=E.exports.useState("");return E.exports.useEffect(()=>{const T=m.current;if(T){var R;C(((R=T.textContent)!==null&&R!==void 0?R:"").trim())}},[s.children]),E.exports.createElement(t8.ItemSlot,{scope:n,disabled:i,textValue:o??w},E.exports.createElement(KSe,hr({asChild:!0},p,{focusable:!i}),E.exports.createElement(Xc.div,hr({role:"menuitem","data-highlighted":g?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0},s,{ref:v,onPointerMove:Lr(e.onPointerMove,r8(T=>{i?l.onItemLeave(T):(l.onItemEnter(T),T.defaultPrevented||T.currentTarget.focus())})),onPointerLeave:Lr(e.onPointerLeave,r8(T=>l.onItemLeave(T))),onFocus:Lr(e.onFocus,()=>b(!0)),onBlur:Lr(e.onBlur,()=>b(!1))}))))}),m3e="MenuRadioGroup";Fm(m3e,{value:void 0,onValueChange:()=>{}});const h3e="MenuItemIndicator";Fm(h3e,{checked:!1});const v3e="MenuSub";Fm(v3e);function g3e(e){return e?"open":"closed"}function b3e(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function y3e(e,t){return e.map((n,i)=>e[(t+i)%e.length])}function x3e(e,t,n){const o=t.length>1&&Array.from(t).every(v=>v===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let l=y3e(e,Math.max(s,0));o.length===1&&(l=l.filter(v=>v!==n));const m=l.find(v=>v.toLowerCase().startsWith(o.toLowerCase()));return m!==n?m:void 0}function S3e(e,t){const{x:n,y:i}=e;let o=!1;for(let s=0,l=t.length-1;s<t.length;l=s++){const p=t[s].x,m=t[s].y,v=t[l].x,g=t[l].y;m>i!=g>i&&n<(v-p)*(i-m)/(g-m)+p&&(o=!o)}return o}function w3e(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return S3e(n,t)}function r8(e){return t=>t.pointerType==="mouse"?e(t):void 0}const C3e=i3e,N3e=a3e,E3e=u3e,_3e=d3e,nH="ContextMenu",[T3e,A4e]=ly(nH,[QV]),y4=QV(),[R3e,rH]=T3e(nH),k3e=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:i,dir:o,modal:s=!0}=e,[l,p]=E.exports.useState(!1),m=y4(t),v=qu(i),g=E.exports.useCallback(b=>{p(b),v(b)},[v]);return E.exports.createElement(R3e,{scope:t,open:l,onOpenChange:g,modal:s},E.exports.createElement(C3e,hr({},m,{dir:o,open:l,onOpenChange:g,modal:s}),n))},A3e="ContextMenuTrigger",L3e=E.exports.forwardRef((e,t)=>{const{__scopeContextMenu:n,...i}=e,o=rH(A3e,n),s=y4(n),l=E.exports.useRef({x:0,y:0}),p=E.exports.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...l.current})}),m=E.exports.useRef(0),v=E.exports.useCallback(()=>window.clearTimeout(m.current),[]),g=b=>{l.current={x:b.clientX,y:b.clientY},o.onOpenChange(!0)};return E.exports.useEffect(()=>v,[v]),E.exports.createElement(E.exports.Fragment,null,E.exports.createElement(N3e,hr({},s,{virtualRef:p})),E.exports.createElement(Xc.span,hr({"data-state":o.open?"open":"closed"},i,{ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:Lr(e.onContextMenu,b=>{v(),g(b),b.preventDefault()}),onPointerDown:Lr(e.onPointerDown,rS(b=>{v(),m.current=window.setTimeout(()=>g(b),700)})),onPointerMove:Lr(e.onPointerMove,rS(v)),onPointerCancel:Lr(e.onPointerCancel,rS(v)),onPointerUp:Lr(e.onPointerUp,rS(v))})))}),O3e="ContextMenuContent",M3e=E.exports.forwardRef((e,t)=>{const{__scopeContextMenu:n,...i}=e,o=rH(O3e,n),s=y4(n),l=E.exports.useRef(!1);return E.exports.createElement(E3e,hr({},s,i,{ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:p=>{var m;(m=e.onCloseAutoFocus)===null||m===void 0||m.call(e,p),!p.defaultPrevented&&l.current&&p.preventDefault(),l.current=!1},onInteractOutside:p=>{var m;(m=e.onInteractOutside)===null||m===void 0||m.call(e,p),!p.defaultPrevented&&!o.modal&&(l.current=!0)},style:{...e.style,["--radix-context-menu-content-transform-origin"]:"var(--radix-popper-transform-origin)"}}))}),P3e=E.exports.forwardRef((e,t)=>{const{__scopeContextMenu:n,...i}=e,o=y4(n);return E.exports.createElement(_3e,hr({},o,i,{ref:t}))});function rS(e){return t=>t.pointerType!=="mouse"?e(t):void 0}const I3e=k3e,D3e=L3e,$3e=M3e,Sv=P3e;var Si="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/gallery/HoverableImage.tsx";const F3e=(e,t)=>e.image.uuid===t.image.uuid&&e.isSelected===t.isSelected,z3e=E.exports.memo(e=>{const t=wn(),n=yt(I=>I.options.activeTab),[i,o]=E.exports.useState(!1),s=iy(),{image:l,isSelected:p}=e,{url:m,uuid:v,metadata:g}=l,b=()=>o(!0),w=()=>o(!1),C=()=>{t(eR(l.metadata.image.prompt)),s({title:"Prompt Set",status:"success",duration:2500,isClosable:!0})},T=()=>{t(ay(l.metadata.image.seed)),s({title:"Seed Set",status:"success",duration:2500,isClosable:!0})},R=()=>{t(Tm(l.url)),n!==1&&t(Lu(1)),s({title:"Sent to Image To Image",status:"success",duration:2500,isClosable:!0})},L=()=>{t(Ige(g)),s({title:"Parameters Set",status:"success",duration:2500,isClosable:!0})},D=async()=>{if(g?.image?.init_image_path&&(await fetch(g.image.init_image_path)).ok){t(Lu(gR.indexOf("img2img"))),t(Dge(g)),s({title:"Initial Image Set",status:"success",duration:2500,isClosable:!0});return}s({title:"Initial Image Not Set",description:"Could not load initial image.",status:"error",duration:2500,isClosable:!0})};return N(I3e,{children:[N(D3e,{children:N(il,{position:"relative",className:"hoverable-image",onMouseOver:b,onMouseOut:w,children:[N(X3,{className:"hoverable-image-image",objectFit:"cover",rounded:"md",src:m,loading:"lazy"},void 0,!1,{fileName:Si,lineNumber:136,columnNumber:11},void 0),N("div",{className:"hoverable-image-content",onClick:()=>t(Bge(l)),children:p&&N(n4,{width:"50%",height:"50%",as:q2e,className:"hoverable-image-check"},void 0,!1,{fileName:Si,lineNumber:145,columnNumber:15},void 0)},void 0,!1,{fileName:Si,lineNumber:143,columnNumber:11},void 0),i&&N("div",{className:"hoverable-image-delete-button",children:N(bo,{label:"Delete image",hasArrow:!0,children:N(Y_,{image:l,children:N(Ra,{"aria-label":"Delete image",icon:N(exe,{},void 0,!1,{fileName:Si,lineNumber:159,columnNumber:27},void 0),size:"xs",variant:"imageHoverIconButton",fontSize:14},void 0,!1,{fileName:Si,lineNumber:157,columnNumber:19},void 0)},void 0,!1,{fileName:Si,lineNumber:156,columnNumber:17},void 0)},void 0,!1,{fileName:Si,lineNumber:155,columnNumber:15},void 0)},void 0,!1,{fileName:Si,lineNumber:154,columnNumber:13},void 0)]},v,!0,{fileName:Si,lineNumber:129,columnNumber:9},void 0)},void 0,!1,{fileName:Si,lineNumber:128,columnNumber:7},void 0),N($3e,{className:"hoverable-image-context-menu",children:[N(Sv,{onClickCapture:C,disabled:l?.metadata?.image?.prompt===void 0,children:"Use Prompt"},void 0,!1,{fileName:Si,lineNumber:171,columnNumber:9},void 0),N(Sv,{onClickCapture:T,disabled:l?.metadata?.image?.seed===void 0,children:"Use Seed"},void 0,!1,{fileName:Si,lineNumber:178,columnNumber:9},void 0),N(Sv,{onClickCapture:L,disabled:!["txt2img","img2img"].includes(l?.metadata?.image?.type),children:"Use All Parameters"},void 0,!1,{fileName:Si,lineNumber:184,columnNumber:9},void 0),N(bo,{label:"Load initial image used for this generation",children:N(Sv,{onClickCapture:D,disabled:l?.metadata?.image?.type!=="img2img",children:"Use Initial Image"},void 0,!1,{fileName:Si,lineNumber:193,columnNumber:11},void 0)},void 0,!1,{fileName:Si,lineNumber:192,columnNumber:9},void 0),N(Sv,{onClickCapture:R,children:"Send to Image To Image"},void 0,!1,{fileName:Si,lineNumber:200,columnNumber:9},void 0),N(Y_,{image:l,children:N(Sv,{"data-warning":!0,children:"Delete Image"},void 0,!1,{fileName:Si,lineNumber:204,columnNumber:11},void 0)},void 0,!1,{fileName:Si,lineNumber:203,columnNumber:9},void 0)]},void 0,!0,{fileName:Si,lineNumber:170,columnNumber:7},void 0)]},void 0,!0,{fileName:Si,lineNumber:127,columnNumber:5},void 0)},F3e);var vo="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/gallery/ImageGallery.tsx";function iH(){const{images:e,currentImageUuid:t,areMoreImagesAvailable:n}=yt(v=>v.gallery),i=yt(v=>v.options.shouldShowGallery),o=yt(v=>v.options.activeTab),s=wn(),l=()=>{s(fI(!i))},p=()=>{s(fI(!1))},m=()=>{s(Uj())};return ci("g",()=>{l()},[i]),ci("left",()=>{s(Cj())},[]),ci("right",()=>{s(wj())},[]),N("div",{className:"image-gallery-area",children:[!i&&N(pm,{tooltip:"Show Gallery",tooltipPlacement:"top","aria-label":"Show Gallery",onClick:l,className:"image-gallery-popup-btn",children:N(II,{},void 0,!1,{fileName:vo,lineNumber:75,columnNumber:11},this)},void 0,!1,{fileName:vo,lineNumber:68,columnNumber:9},this),i&&N(TV,{defaultSize:{width:"300",height:"100%"},minWidth:"300",maxWidth:o==1?"300":"600",className:"image-gallery-popup",children:[N("div",{className:"image-gallery-header",children:[N("h1",{children:"Your Invocations"},void 0,!1,{fileName:vo,lineNumber:87,columnNumber:13},this),N(Ra,{size:"sm","aria-label":"Close Gallery",onClick:p,className:"image-gallery-close-btn",icon:N(aV,{},void 0,!1,{fileName:vo,lineNumber:93,columnNumber:21},this)},void 0,!1,{fileName:vo,lineNumber:88,columnNumber:13},this)]},void 0,!0,{fileName:vo,lineNumber:86,columnNumber:11},this),N("div",{className:"image-gallery-container",children:[e.length?N("div",{className:"image-gallery",children:e.map(v=>{const{uuid:g}=v;return N(z3e,{image:v,isSelected:t===g},g,!1,{fileName:vo,lineNumber:103,columnNumber:21},this)})},void 0,!1,{fileName:vo,lineNumber:98,columnNumber:15},this):N("div",{className:"image-gallery-container-placeholder",children:[N(II,{},void 0,!1,{fileName:vo,lineNumber:113,columnNumber:17},this),N("p",{children:"No Images In Gallery"},void 0,!1,{fileName:vo,lineNumber:114,columnNumber:17},this)]},void 0,!0,{fileName:vo,lineNumber:112,columnNumber:15},this),N(Wu,{onClick:m,isDisabled:!n,className:"image-gallery-load-more-btn",children:n?"Load More":"All Images Loaded"},void 0,!1,{fileName:vo,lineNumber:117,columnNumber:13},this)]},void 0,!0,{fileName:vo,lineNumber:96,columnNumber:11},this)]},void 0,!0,{fileName:vo,lineNumber:80,columnNumber:9},this)]},void 0,!0,{fileName:vo,lineNumber:66,columnNumber:5},this)}var Dg="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/tabs/ImageToImage/ImageToImage.tsx";function B3e(){const e=yt(t=>t.options.shouldShowGallery);return N("div",{className:"image-to-image-workarea",children:[N(j2e,{},void 0,!1,{fileName:Dg,lineNumber:14,columnNumber:7},this),N("div",{className:"image-to-image-display-area",style:e?{gridTemplateColumns:"auto max-content"}:{gridTemplateColumns:"auto"},children:[N(r5e,{},void 0,!1,{fileName:Dg,lineNumber:23,columnNumber:9},this),N(iH,{},void 0,!1,{fileName:Dg,lineNumber:24,columnNumber:9},this)]},void 0,!0,{fileName:Dg,lineNumber:15,columnNumber:7},this)]},void 0,!0,{fileName:Dg,lineNumber:13,columnNumber:5},this)}var qa="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/tabs/TextToImage/TextToImagePanel.tsx";function U3e(){const e=yt(n=>n.options.showAdvancedOptions),t={seed:{header:N(il,{flex:"1",textAlign:"left",children:"Seed"},void 0,!1,{fileName:qa,lineNumber:29,columnNumber:9},this),feature:Yl.SEED,options:N(Kj,{},void 0,!1,{fileName:qa,lineNumber:34,columnNumber:16},this)},variations:{header:N(Qj,{},void 0,!1,{fileName:qa,lineNumber:37,columnNumber:15},this),feature:Yl.VARIATIONS,options:N(Jj,{},void 0,!1,{fileName:qa,lineNumber:39,columnNumber:16},this)},face_restore:{header:N(Zj,{},void 0,!1,{fileName:qa,lineNumber:42,columnNumber:15},this),feature:Yl.FACE_CORRECTION,options:N(oR,{},void 0,!1,{fileName:qa,lineNumber:44,columnNumber:16},this)},upscale:{header:N(Xj,{},void 0,!1,{fileName:qa,lineNumber:47,columnNumber:15},this),feature:Yl.UPSCALE,options:N(sR,{},void 0,!1,{fileName:qa,lineNumber:49,columnNumber:16},this)},other:{header:N(il,{flex:"1",textAlign:"left",children:"Other"},void 0,!1,{fileName:qa,lineNumber:58,columnNumber:9},this),feature:Yl.OTHER,options:N(sV,{},void 0,!1,{fileName:qa,lineNumber:63,columnNumber:16},this)}};return N("div",{className:"text-to-image-panel",children:[N(cV,{},void 0,!1,{fileName:qa,lineNumber:69,columnNumber:7},this),N(uV,{},void 0,!1,{fileName:qa,lineNumber:70,columnNumber:7},this),N(tV,{},void 0,!1,{fileName:qa,lineNumber:71,columnNumber:7},this),N(eV,{},void 0,!1,{fileName:qa,lineNumber:72,columnNumber:7},this),e?N(oV,{accordionInfo:t},void 0,!1,{fileName:qa,lineNumber:74,columnNumber:9},this):null]},void 0,!0,{fileName:qa,lineNumber:68,columnNumber:5},this)}var om="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/gallery/CurrentImageDisplay.tsx";const j3e=()=>{const{currentImage:e,intermediateImage:t}=yt(o=>o.gallery),n=yt(o=>o.options.shouldShowImageDetails),i=t||e;return i?N("div",{className:"current-image-display",children:[N("div",{className:"current-image-tools",children:N(wV,{image:i},void 0,!1,{fileName:om,lineNumber:24,columnNumber:9},void 0)},void 0,!1,{fileName:om,lineNumber:23,columnNumber:7},void 0),N(CV,{imageToDisplay:i},void 0,!1,{fileName:om,lineNumber:26,columnNumber:7},void 0),n&&N(_V,{image:i,styleClass:"current-image-metadata"},void 0,!1,{fileName:om,lineNumber:28,columnNumber:9},void 0)]},void 0,!0,{fileName:om,lineNumber:22,columnNumber:5},void 0):N("div",{className:"current-image-display-placeholder",children:N(A2e,{},void 0,!1,{fileName:om,lineNumber:36,columnNumber:7},void 0)},void 0,!1,{fileName:om,lineNumber:35,columnNumber:5},void 0)};var $g="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/tabs/TextToImage/TextToImage.tsx";function V3e(){const e=yt(t=>t.options.shouldShowGallery);return N("div",{className:"text-to-image-workarea",children:[N(U3e,{},void 0,!1,{fileName:$g,lineNumber:14,columnNumber:7},this),N("div",{className:"text-to-image-display",style:e?{gridTemplateColumns:"auto max-content"}:{gridTemplateColumns:"auto"},children:[N(j3e,{},void 0,!1,{fileName:$g,lineNumber:23,columnNumber:9},this),N(iH,{},void 0,!1,{fileName:$g,lineNumber:24,columnNumber:9},this)]},void 0,!0,{fileName:$g,lineNumber:15,columnNumber:7},this)]},void 0,!0,{fileName:$g,lineNumber:13,columnNumber:5},this)}var ia="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/tabs/InvokeTabs.tsx";const Nv={txt2img:{title:N($ye,{fill:"black",boxSize:"2.5rem"},void 0,!1,{fileName:ia,lineNumber:22,columnNumber:12},void 0),panel:N(V3e,{},void 0,!1,{fileName:ia,lineNumber:23,columnNumber:12},void 0),tooltip:"Text To Image"},img2img:{title:N(Rye,{fill:"black",boxSize:"2.5rem"},void 0,!1,{fileName:ia,lineNumber:27,columnNumber:12},void 0),panel:N(B3e,{},void 0,!1,{fileName:ia,lineNumber:28,columnNumber:12},void 0),tooltip:"Image To Image"},inpainting:{title:N(Aye,{fill:"black",boxSize:"2.5rem"},void 0,!1,{fileName:ia,lineNumber:32,columnNumber:12},void 0),panel:N(Nye,{},void 0,!1,{fileName:ia,lineNumber:33,columnNumber:12},void 0),tooltip:"Inpainting"},outpainting:{title:N(Pye,{fill:"black",boxSize:"2.5rem"},void 0,!1,{fileName:ia,lineNumber:37,columnNumber:12},void 0),panel:N(_ye,{},void 0,!1,{fileName:ia,lineNumber:38,columnNumber:12},void 0),tooltip:"Outpainting"},nodes:{title:N(Oye,{fill:"black",boxSize:"2.5rem"},void 0,!1,{fileName:ia,lineNumber:42,columnNumber:12},void 0),panel:N(Eye,{},void 0,!1,{fileName:ia,lineNumber:43,columnNumber:12},void 0),tooltip:"Nodes"},postprocess:{title:N(Dye,{fill:"black",boxSize:"2.5rem"},void 0,!1,{fileName:ia,lineNumber:47,columnNumber:12},void 0),panel:N(Tye,{},void 0,!1,{fileName:ia,lineNumber:48,columnNumber:12},void 0),tooltip:"Post Processing"}},gR=Lb.map(Nv,(e,t)=>t);[...gR];function H3e(){const e=yt(o=>o.options.activeTab),t=wn();ci("1",()=>{t(Lu(0))}),ci("2",()=>{t(Lu(1))}),ci("3",()=>{t(Lu(2))}),ci("4",()=>{t(Lu(3))}),ci("5",()=>{t(Lu(4))}),ci("6",()=>{t(Lu(5))});const n=()=>{const o=[];return Object.keys(Nv).forEach(s=>{o.push(N(bo,{hasArrow:!0,label:Nv[s].tooltip,placement:"right",children:N(eU,{children:Nv[s].title},void 0,!1,{fileName:ia,lineNumber:100,columnNumber:11},this)},s,!1,{fileName:ia,lineNumber:94,columnNumber:9},this))}),o},i=()=>{const o=[];return Object.keys(Nv).forEach(s=>{o.push(N(QB,{className:"app-tabs-panel",children:Nv[s].panel},s,!1,{fileName:ia,lineNumber:111,columnNumber:9},this))}),o};return N(XB,{isLazy:!0,className:"app-tabs",variant:"unstyled",defaultIndex:e,index:e,onChange:o=>{t(Lu(o))},children:[N("div",{className:"app-tabs-list",children:n()},void 0,!1,{fileName:ia,lineNumber:130,columnNumber:7},this),N(JB,{className:"app-tabs-panels",children:i()},void 0,!1,{fileName:ia,lineNumber:131,columnNumber:7},this)]},void 0,!0,{fileName:ia,lineNumber:120,columnNumber:5},this)}const W3e=(e,t)=>{const{dispatch:n,getState:i}=e;return{emitGenerateImage:()=>{n(NS(!0));const o={...i().options};gR[o.activeTab]!=="img2img"&&(o.shouldUseInitImage=!1);const{generationParameters:s,esrganParameters:l,facetoolParameters:p}=dye(o,i().system);t.emit("generateImage",s,l,p),n(Do({timestamp:$o(new Date,"isoDateTime"),message:`Image generation requested: ${JSON.stringify({...s,...l,...p})}`}))},emitRunESRGAN:o=>{n(NS(!0));const{upscalingLevel:s,upscalingStrength:l}=i().options,p={upscale:[s,l]};t.emit("runPostprocessing",o,{type:"esrgan",...p}),n(Do({timestamp:$o(new Date,"isoDateTime"),message:`ESRGAN upscale requested: ${JSON.stringify({file:o.url,...p})}`}))},emitRunFacetool:o=>{n(NS(!0));const{facetoolType:s,facetoolStrength:l,codeformerFidelity:p}=i().options,m={facetool_strength:l};s==="codeformer"&&(m.codeformer_fidelity=p),t.emit("runPostprocessing",o,{type:s,...m}),n(Do({timestamp:$o(new Date,"isoDateTime"),message:`Face restoration (${s}) requested: ${JSON.stringify({file:o.url,...m})}`}))},emitDeleteImage:o=>{const{url:s,uuid:l}=o;t.emit("deleteImage",s,l)},emitRequestImages:()=>{const{earliest_mtime:o}=i().gallery;t.emit("requestImages",o)},emitRequestNewImages:()=>{const{latest_mtime:o}=i().gallery;t.emit("requestLatestImages",o)},emitCancelProcessing:()=>{t.emit("cancel")},emitUploadInitialImage:o=>{t.emit("uploadInitialImage",o,o.name)},emitUploadMaskImage:o=>{t.emit("uploadMaskImage",o,o.name)},emitRequestSystemConfig:()=>{t.emit("requestSystemConfig")}}},G3e=()=>{const{origin:e}=new URL(window.location.href),t=TS(e,{timeout:6e4});let n=!1;return o=>s=>l=>{const{onConnect:p,onDisconnect:m,onError:v,onPostprocessingResult:g,onGenerationResult:b,onIntermediateResult:w,onProgressUpdate:C,onGalleryImages:T,onProcessingCanceled:R,onImageDeleted:L,onInitialImageUploaded:D,onMaskImageUploaded:P,onSystemConfig:I}=oye(o),{emitGenerateImage:F,emitRunESRGAN:z,emitRunFacetool:q,emitDeleteImage:Y,emitRequestImages:Q,emitRequestNewImages:ie,emitCancelProcessing:ae,emitUploadInitialImage:me,emitUploadMaskImage:ze,emitRequestSystemConfig:te}=W3e(o,t);switch(n||(t.on("connect",()=>p()),t.on("disconnect",()=>m()),t.on("error",ee=>v(ee)),t.on("generationResult",ee=>b(ee)),t.on("postprocessingResult",ee=>g(ee)),t.on("intermediateResult",ee=>w(ee)),t.on("progressUpdate",ee=>C(ee)),t.on("galleryImages",ee=>T(ee)),t.on("processingCanceled",()=>{R()}),t.on("imageDeleted",ee=>{L(ee)}),t.on("initialImageUploaded",ee=>{D(ee)}),t.on("maskImageUploaded",ee=>{P(ee)}),t.on("systemConfig",ee=>{I(ee)}),n=!0),l.type){case"socketio/generateImage":{F();break}case"socketio/runESRGAN":{z(l.payload);break}case"socketio/runFacetool":{q(l.payload);break}case"socketio/deleteImage":{Y(l.payload);break}case"socketio/requestImages":{Q();break}case"socketio/requestNewImages":{ie();break}case"socketio/cancelProcessing":{ae();break}case"socketio/uploadInitialImage":{me(l.payload);break}case"socketio/uploadMaskImage":{ze(l.payload);break}case"socketio/requestSystemConfig":{te();break}}s(l)}},Y3e={key:"root",storage:QT,blacklist:["gallery","system"]},q3e={key:"system",storage:QT,blacklist:["isConnected","isProcessing","currentStep","socketId","isESRGANAvailable","isGFPGANAvailable","currentStep","totalSteps","currentIteration","totalIterations","currentStatus"]},Z3e=FU({options:$ge,gallery:Vge,system:oj(q3e,ebe)}),K3e=oj(Y3e,Z3e),aH=N1e({reducer:K3e,middleware:e=>e({serializableCheck:!1}).concat(G3e())}),wn=W1e,yt=I1e;function kS(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?kS=function(n){return typeof n}:kS=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},kS(e)}function X3e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _D(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Q3e(e,t,n){return t&&_D(e.prototype,t),n&&_D(e,n),e}function J3e(e,t){return t&&(kS(t)==="object"||typeof t=="function")?t:AS(e)}function i8(e){return i8=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},i8(e)}function AS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function e4e(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&&a8(e,t)}function a8(e,t){return a8=Object.setPrototypeOf||function(i,o){return i.__proto__=o,i},a8(e,t)}function LS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oH=function(e){e4e(t,e);function t(){var n,i;X3e(this,t);for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];return i=J3e(this,(n=i8(t)).call.apply(n,[this].concat(s))),LS(AS(i),"state",{bootstrapped:!1}),LS(AS(i),"_unsubscribe",void 0),LS(AS(i),"handlePersistorState",function(){var p=i.props.persistor,m=p.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 Q3e(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}(E.exports.PureComponent);LS(oH,"defaultProps",{children:null,loading:null});const TD=I0e({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"}},Button:{variants:{imageHoverIconButton:e=>({bg:e.colorMode==="dark"?"blackAlpha.700":"whiteAlpha.800",color:e.colorMode==="dark"?"whiteAlpha.700":"blackAlpha.700",_hover:{bg:e.colorMode==="dark"?"blackAlpha.800":"whiteAlpha.800",color:e.colorMode==="dark"?"whiteAlpha.900":"blackAlpha.900"}})}}}});var RD="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/Loading.tsx";const sH=()=>N(Nr,{width:"100vw",height:"100vh",alignItems:"center",justifyContent:"center",children:N(Z3,{thickness:"2px",speed:"1s",emptyColor:"gray.200",color:"gray.400",size:"xl"},void 0,!1,{fileName:RD,lineNumber:11,columnNumber:13},void 0)},void 0,!1,{fileName:RD,lineNumber:5,columnNumber:9},void 0);var t4e="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/system/ProgressBar.tsx";const n4e=Qa(e=>e.system,e=>({isProcessing:e.isProcessing,currentStep:e.currentStep,totalSteps:e.totalSteps,currentStatusHasSteps:e.currentStatusHasSteps}),{memoizeOptions:{resultEqualityCheck:Xa.exports.isEqual}}),r4e=()=>{const{isProcessing:e,currentStep:t,totalSteps:n,currentStatusHasSteps:i}=yt(n4e),o=t?Math.round(t*100/n):0;return N(HB,{height:"4px",value:o,isIndeterminate:e&&!i,className:"progress-bar"},void 0,!1,{fileName:t4e,lineNumber:30,columnNumber:5},void 0)},i4e="/assets/logo.13003d72.png";var Fg="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/system/HotkeysModal/HotkeysModalItem.tsx";function a4e(e){const{title:t,hotkey:n,description:i}=e;return N("div",{className:"hotkey-modal-item",children:[N("div",{className:"hotkey-info",children:[N("p",{className:"hotkey-title",children:t},void 0,!1,{fileName:Fg,lineNumber:14,columnNumber:9},this),i&&N("p",{className:"hotkey-description",children:i},void 0,!1,{fileName:Fg,lineNumber:15,columnNumber:25},this)]},void 0,!0,{fileName:Fg,lineNumber:13,columnNumber:7},this),N("div",{className:"hotkey-key",children:n},void 0,!1,{fileName:Fg,lineNumber:17,columnNumber:7},this)]},void 0,!0,{fileName:Fg,lineNumber:12,columnNumber:5},this)}var sm="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/system/HotkeysModal/HotkeysModal.tsx";function o4e({children:e}){const{isOpen:t,onOpen:n,onClose:i}=QS(),o=[{title:"Invoke",desc:"Generate an image",hotkey:"Ctrl+Enter"},{title:"Cancel",desc:"Cancel image generation",hotkey:"Shift+X"},{title:"Toggle Gallery",desc:"Open and close the gallery drawer",hotkey:"G"},{title:"Set Seed",desc:"Use the seed of the current image",hotkey:"S"},{title:"Set Parameters",desc:"Use all parameters of the current image",hotkey:"A"},{title:"Restore Faces",desc:"Restore the current image",hotkey:"R"},{title:"Upscale",desc:"Upscale the current image",hotkey:"U"},{title:"Show Info",desc:"Show metadata info of the current image",hotkey:"I"},{title:"Send To Image To Image",desc:"Send the current image to Image to Image module",hotkey:"Shift+I"},{title:"Delete Image",desc:"Delete the current image",hotkey:"Del"},{title:"Focus Prompt",desc:"Focus the prompt input area",hotkey:"Alt+A"},{title:"Previous Image",desc:"Display the previous image in the gallery",hotkey:"Arrow left"},{title:"Next Image",desc:"Display the next image in the gallery",hotkey:"Arrow right"},{title:"Change Tabs",desc:"Switch to another workspace",hotkey:"1-6"},{title:"Theme Toggle",desc:"Switch between dark and light modes",hotkey:"Shift+D"},{title:"Console Toggle",desc:"Open and close console",hotkey:"`"}],s=()=>{const l=[];return o.forEach((p,m)=>{l.push(N(a4e,{title:p.title,description:p.desc,hotkey:p.hotkey},m,!1,{fileName:sm,lineNumber:91,columnNumber:9},this))}),l};return N(Gi,{children:[E.exports.cloneElement(e,{onClick:n}),N(Kv,{isOpen:t,onClose:i,children:[N(Eb,{},void 0,!1,{fileName:sm,lineNumber:109,columnNumber:9},this),N(Nb,{className:"hotkeys-modal",children:[N(ET,{},void 0,!1,{fileName:sm,lineNumber:111,columnNumber:11},this),N("h1",{children:"Keyboard Shorcuts"},void 0,!1,{fileName:sm,lineNumber:112,columnNumber:11},this),N("div",{className:"hotkeys-modal-items",children:s()},void 0,!1,{fileName:sm,lineNumber:113,columnNumber:11},this)]},void 0,!0,{fileName:sm,lineNumber:110,columnNumber:9},this)]},void 0,!0,{fileName:sm,lineNumber:108,columnNumber:7},this)]},void 0,!0)}var sE="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/system/SettingsModal/SettingsModalItem.tsx";function iS({settingTitle:e,isChecked:t,dispatcher:n}){const i=wn();return N(Ld,{className:"settings-modal-item",children:[N(Am,{marginBottom:1,children:e},void 0,!1,{fileName:sE,lineNumber:17,columnNumber:7},this),N(l4,{isChecked:t,onChange:o=>i(n(o.target.checked))},void 0,!1,{fileName:sE,lineNumber:18,columnNumber:7},this)]},void 0,!0,{fileName:sE,lineNumber:16,columnNumber:5},this)}var jr="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/system/SettingsModal/SettingsModal.tsx";const s4e=Qa(e=>e.system,e=>{const{shouldDisplayInProgress:t,shouldDisplayInProgressLatents:n,shouldConfirmOnDelete:i,shouldDisplayGuides:o}=e;return{shouldDisplayInProgress:t,shouldDisplayInProgressLatents:n,shouldConfirmOnDelete:i,shouldDisplayGuides:o}},{memoizeOptions:{resultEqualityCheck:Xa.exports.isEqual}}),l4e=({children:e})=>{const{isOpen:t,onOpen:n,onClose:i}=QS(),{isOpen:o,onOpen:s,onClose:l}=QS(),{shouldDisplayInProgress:p,shouldDisplayInProgressLatents:m,shouldConfirmOnDelete:v,shouldDisplayGuides:g}=yt(s4e),b=()=>{lH.purge().then(()=>{i(),s()})};return N(Gi,{children:[E.exports.cloneElement(e,{onClick:n}),N(Kv,{isOpen:t,onClose:i,children:[N(Eb,{},void 0,!1,{fileName:jr,lineNumber:99,columnNumber:9},void 0),N(Nb,{className:"settings-modal",children:[N(TT,{className:"settings-modal-header",children:"Settings"},void 0,!1,{fileName:jr,lineNumber:101,columnNumber:11},void 0),N(ET,{},void 0,!1,{fileName:jr,lineNumber:102,columnNumber:11},void 0),N(n3,{className:"settings-modal-content",children:[N("div",{className:"settings-modal-items",children:[N(iS,{settingTitle:"Display In-Progress Images (slower)",isChecked:p,dispatcher:Gge},void 0,!1,{fileName:jr,lineNumber:105,columnNumber:15},void 0),N(iS,{settingTitle:"Display In-Progress Latents (quick; lo-res)",isChecked:m,dispatcher:Yge},void 0,!1,{fileName:jr,lineNumber:111,columnNumber:15},void 0),N(iS,{settingTitle:"Confirm on Delete",isChecked:v,dispatcher:Ej},void 0,!1,{fileName:jr,lineNumber:117,columnNumber:15},void 0),N(iS,{settingTitle:"Display Help Icons",isChecked:g,dispatcher:Xge},void 0,!1,{fileName:jr,lineNumber:123,columnNumber:15},void 0)]},void 0,!0,{fileName:jr,lineNumber:104,columnNumber:13},void 0),N("div",{className:"settings-modal-reset",children:[N(aT,{size:"md",children:"Reset Web UI"},void 0,!1,{fileName:jr,lineNumber:131,columnNumber:15},void 0),N(zo,{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:jr,lineNumber:132,columnNumber:15},void 0),N(zo,{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:jr,lineNumber:137,columnNumber:15},void 0),N(Wu,{colorScheme:"red",onClick:b,children:"Reset Web UI"},void 0,!1,{fileName:jr,lineNumber:142,columnNumber:15},void 0)]},void 0,!0,{fileName:jr,lineNumber:130,columnNumber:13},void 0)]},void 0,!0,{fileName:jr,lineNumber:103,columnNumber:11},void 0),N(_T,{children:N(Wu,{onClick:i,children:"Close"},void 0,!1,{fileName:jr,lineNumber:149,columnNumber:13},void 0)},void 0,!1,{fileName:jr,lineNumber:148,columnNumber:11},void 0)]},void 0,!0,{fileName:jr,lineNumber:100,columnNumber:9},void 0)]},void 0,!0,{fileName:jr,lineNumber:98,columnNumber:7},void 0),N(Kv,{closeOnOverlayClick:!1,isOpen:o,onClose:l,isCentered:!0,children:[N(Eb,{bg:"blackAlpha.300",backdropFilter:"blur(40px)"},void 0,!1,{fileName:jr,lineNumber:160,columnNumber:9},void 0),N(Nb,{children:N(n3,{pb:6,pt:6,children:N(Nr,{justifyContent:"center",children:N(zo,{fontSize:"lg",children:"Web UI has been reset. Refresh the page to reload."},void 0,!1,{fileName:jr,lineNumber:164,columnNumber:15},void 0)},void 0,!1,{fileName:jr,lineNumber:163,columnNumber:13},void 0)},void 0,!1,{fileName:jr,lineNumber:162,columnNumber:11},void 0)},void 0,!1,{fileName:jr,lineNumber:161,columnNumber:9},void 0)]},void 0,!0,{fileName:jr,lineNumber:154,columnNumber:7},void 0)]},void 0,!0)};var kD="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/system/StatusIndicator.tsx";const u4e=Qa(e=>e.system,e=>({isConnected:e.isConnected,isProcessing:e.isProcessing,currentIteration:e.currentIteration,totalIterations:e.totalIterations,currentStatus:e.currentStatus,hasError:e.hasError,wasErrorSeen:e.wasErrorSeen}),{memoizeOptions:{resultEqualityCheck:Xa.exports.isEqual}}),c4e=()=>{const{isConnected:e,isProcessing:t,currentIteration:n,totalIterations:i,currentStatus:o,hasError:s,wasErrorSeen:l}=yt(u4e),p=wn();let m;e&&!s?m="status-good":m="status-bad";let v=o;return["generating","preparing","saving image","restoring faces","upscaling"].includes(v.toLowerCase())&&(m="status-working"),v&&t&&i>1&&(v+=` (${n}/${i})`),N(bo,{label:s&&!l?"Click to clear, check logs for details":void 0,children:N(zo,{cursor:s&&!l?"pointer":"initial",onClick:()=>{(s||!l)&&p(_j())},className:`status ${m}`,children:v},void 0,!1,{fileName:kD,lineNumber:83,columnNumber:7},void 0)},void 0,!1,{fileName:kD,lineNumber:82,columnNumber:5},void 0)};var dr="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/system/SiteHeader.tsx";const f4e=()=>{const{colorMode:e,toggleColorMode:t}=l8();ci("shift+d",()=>{t()},[e,t]);const n=e=="light"?N(Q2e,{},void 0,!1,{fileName:dr,lineNumber:27,columnNumber:48},void 0):N(J2e,{},void 0,!1,{fileName:dr,lineNumber:27,columnNumber:61},void 0),i=e=="light"?18:20;return N("div",{className:"site-header",children:[N("div",{className:"site-header-left-side",children:[N("img",{src:i4e,alt:"invoke-ai-logo"},void 0,!1,{fileName:dr,lineNumber:35,columnNumber:9},void 0),N("h1",{children:["invoke ",N("strong",{children:"ai"},void 0,!1,{fileName:dr,lineNumber:37,columnNumber:18},void 0)]},void 0,!0,{fileName:dr,lineNumber:36,columnNumber:9},void 0)]},void 0,!0,{fileName:dr,lineNumber:34,columnNumber:7},void 0),N("div",{className:"site-header-right-side",children:[N(c4e,{},void 0,!1,{fileName:dr,lineNumber:42,columnNumber:9},void 0),N(l4e,{children:N(Ra,{"aria-label":"Settings",variant:"link",fontSize:24,size:"sm",icon:N(_2e,{},void 0,!1,{fileName:dr,lineNumber:50,columnNumber:19},void 0)},void 0,!1,{fileName:dr,lineNumber:45,columnNumber:11},void 0)},void 0,!1,{fileName:dr,lineNumber:44,columnNumber:9},void 0),N(o4e,{children:N(Ra,{"aria-label":"Hotkeys",variant:"link",fontSize:24,size:"sm",icon:N(R2e,{},void 0,!1,{fileName:dr,lineNumber:60,columnNumber:19},void 0)},void 0,!1,{fileName:dr,lineNumber:55,columnNumber:11},void 0)},void 0,!1,{fileName:dr,lineNumber:54,columnNumber:9},void 0),N(bo,{hasArrow:!0,label:"Report Bug",placement:"bottom",children:N(Ra,{"aria-label":"Link to Github Issues",variant:"link",fontSize:23,size:"sm",icon:N(Dv,{isExternal:!0,href:"http://github.com/invoke-ai/InvokeAI/issues",children:N(iV,{},void 0,!1,{fileName:dr,lineNumber:75,columnNumber:17},void 0)},void 0,!1,{fileName:dr,lineNumber:71,columnNumber:15},void 0)},void 0,!1,{fileName:dr,lineNumber:65,columnNumber:11},void 0)},void 0,!1,{fileName:dr,lineNumber:64,columnNumber:9},void 0),N(bo,{hasArrow:!0,label:"Github",placement:"bottom",children:N(Ra,{"aria-label":"Link to Github Repo",variant:"link",fontSize:20,size:"sm",icon:N(Dv,{isExternal:!0,href:"http://github.com/invoke-ai/InvokeAI",children:N(H2e,{},void 0,!1,{fileName:dr,lineNumber:89,columnNumber:17},void 0)},void 0,!1,{fileName:dr,lineNumber:88,columnNumber:15},void 0)},void 0,!1,{fileName:dr,lineNumber:82,columnNumber:11},void 0)},void 0,!1,{fileName:dr,lineNumber:81,columnNumber:9},void 0),N(bo,{hasArrow:!0,label:"Discord",placement:"bottom",children:N(Ra,{"aria-label":"Link to Discord Server",variant:"link",fontSize:20,size:"sm",icon:N(Dv,{isExternal:!0,href:"https://discord.gg/ZmtBAhwWhy",children:N(V2e,{},void 0,!1,{fileName:dr,lineNumber:103,columnNumber:17},void 0)},void 0,!1,{fileName:dr,lineNumber:102,columnNumber:15},void 0)},void 0,!1,{fileName:dr,lineNumber:96,columnNumber:11},void 0)},void 0,!1,{fileName:dr,lineNumber:95,columnNumber:9},void 0),N(bo,{hasArrow:!0,label:"Theme",placement:"bottom",children:N(Ra,{"aria-label":"Toggle Dark Mode",onClick:t,variant:"link",size:"sm",fontSize:i,icon:n},void 0,!1,{fileName:dr,lineNumber:110,columnNumber:11},void 0)},void 0,!1,{fileName:dr,lineNumber:109,columnNumber:9},void 0)]},void 0,!0,{fileName:dr,lineNumber:41,columnNumber:7},void 0)]},void 0,!0,{fileName:dr,lineNumber:33,columnNumber:5},void 0)};var Js="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/features/system/Console.tsx";const d4e=Qa(e=>e.system,e=>e.log,{memoizeOptions:{resultEqualityCheck:(e,t)=>e.length===t.length}}),p4e=Qa(e=>e.system,e=>({shouldShowLogViewer:e.shouldShowLogViewer,hasError:e.hasError,wasErrorSeen:e.wasErrorSeen}),{memoizeOptions:{resultEqualityCheck:Xa.exports.isEqual}}),m4e=()=>{const e=wn(),t=yt(d4e),{shouldShowLogViewer:n,hasError:i,wasErrorSeen:o}=yt(p4e),[s,l]=E.exports.useState(!0),p=E.exports.useRef(null);E.exports.useLayoutEffect(()=>{p.current!==null&&s&&(p.current.scrollTop=p.current.scrollHeight)},[s,t,n]);const m=()=>{e(_j()),e(pI(!n))};return ci("`",()=>{e(pI(!n))},[n]),N(Gi,{children:[n&&N(TV,{defaultSize:{width:"100%",height:200},style:{display:"flex",position:"fixed",left:0,bottom:0},maxHeight:"90vh",children:N("div",{className:"console",ref:p,children:t.map((v,g)=>{const{timestamp:b,message:w,level:C}=v;return N("div",{className:`console-entry console-${C}-color`,children:[N("p",{className:"console-timestamp",children:[b,":"]},void 0,!0,{fileName:Js,lineNumber:94,columnNumber:19},void 0),N("p",{className:"console-message",children:w},void 0,!1,{fileName:Js,lineNumber:95,columnNumber:19},void 0)]},g,!0,{fileName:Js,lineNumber:93,columnNumber:17},void 0)})},void 0,!1,{fileName:Js,lineNumber:89,columnNumber:11},void 0)},void 0,!1,{fileName:Js,lineNumber:81,columnNumber:9},void 0),n&&N(bo,{hasArrow:!0,label:s?"Autoscroll On":"Autoscroll Off",children:N(Ra,{className:`console-autoscroll-icon-button ${s&&"autoscroll-enabled"}`,size:"sm","aria-label":"Toggle autoscroll",variant:"solid",icon:N(W2e,{},void 0,!1,{fileName:Js,lineNumber:111,columnNumber:19},void 0),onClick:()=>l(!s)},void 0,!1,{fileName:Js,lineNumber:104,columnNumber:11},void 0)},void 0,!1,{fileName:Js,lineNumber:103,columnNumber:9},void 0),N(bo,{hasArrow:!0,label:n?"Hide Console":"Show Console",children:N(Ra,{className:`console-toggle-icon-button ${(i||!o)&&"error-seen"}`,size:"sm",position:"fixed",variant:"solid","aria-label":"Toggle Log Viewer",icon:n?N(X2e,{},void 0,!1,{fileName:Js,lineNumber:126,columnNumber:39},void 0):N(Z2e,{},void 0,!1,{fileName:Js,lineNumber:126,columnNumber:53},void 0),onClick:m},void 0,!1,{fileName:Js,lineNumber:117,columnNumber:9},void 0)},void 0,!1,{fileName:Js,lineNumber:116,columnNumber:7},void 0)]},void 0,!0)};function h4e(){async function e(n=""){return await fetch(n,{method:"GET",cache:"no-cache"})}const t=()=>{const n=document.location;e(n+"/flaskwebgui-keep-server-alive").then(o=>o)};(!{BASE_URL:"/",MODE:"development",DEV:!0,PROD:!1}.NODE_ENV||{BASE_URL:"/",MODE:"development",DEV:!0,PROD:!1}.NODE_ENV==="production")&&document.addEventListener("DOMContentLoaded",()=>{t(),setInterval(t,3e3)})}var ld="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/app/App.tsx";h4e();const v4e=()=>{const e=wn(),[t,n]=E.exports.useState(!1);return E.exports.useEffect(()=>{e(aye()),n(!0)},[e]),t?N("div",{className:"App",children:[N(r4e,{},void 0,!1,{fileName:ld,lineNumber:24,columnNumber:7},void 0),N("div",{className:"app-content",children:[N(f4e,{},void 0,!1,{fileName:ld,lineNumber:26,columnNumber:9},void 0),N(H3e,{},void 0,!1,{fileName:ld,lineNumber:27,columnNumber:9},void 0)]},void 0,!0,{fileName:ld,lineNumber:25,columnNumber:7},void 0),N("div",{className:"app-console",children:N(m4e,{},void 0,!1,{fileName:ld,lineNumber:30,columnNumber:9},void 0)},void 0,!1,{fileName:ld,lineNumber:29,columnNumber:7},void 0)]},void 0,!0,{fileName:ld,lineNumber:23,columnNumber:5},void 0):N(sH,{},void 0,!1,{fileName:ld,lineNumber:34,columnNumber:5},void 0)};var lm="/Users/damian/2.current/stablediffusion/stable-diffusion/frontend/src/main.tsx";const lH=fge(aH);cE.createRoot(document.getElementById("root")).render(N(Ne.StrictMode,{children:N(j1e,{store:aH,children:N(oH,{loading:N(sH,{},void 0,!1,{fileName:lm,lineNumber:21,columnNumber:29},void 0),persistor:lH,children:N(P0e,{theme:TD,children:[N(fq,{initialColorMode:TD.config.initialColorMode},void 0,!1,{fileName:lm,lineNumber:23,columnNumber:11},void 0),N(v4e,{},void 0,!1,{fileName:lm,lineNumber:24,columnNumber:11},void 0)]},void 0,!0,{fileName:lm,lineNumber:22,columnNumber:9},void 0)},void 0,!1,{fileName:lm,lineNumber:21,columnNumber:7},void 0)},void 0,!1,{fileName:lm,lineNumber:20,columnNumber:5},void 0)},void 0,!1,{fileName:lm,lineNumber:19,columnNumber:3},void 0));