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

518 lines
1.2 MiB
JavaScript
Raw Normal View History

2022-11-01 05:57:07 +00:00
function Nj(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerpolicy&&(o.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?o.credentials="include":i.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var wu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function n8(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var C={exports:{}},Xt={};/**
* @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 tv=Symbol.for("react.element"),Dj=Symbol.for("react.portal"),zj=Symbol.for("react.fragment"),Fj=Symbol.for("react.strict_mode"),Bj=Symbol.for("react.profiler"),$j=Symbol.for("react.provider"),Hj=Symbol.for("react.context"),Wj=Symbol.for("react.forward_ref"),Vj=Symbol.for("react.suspense"),Uj=Symbol.for("react.memo"),Gj=Symbol.for("react.lazy"),bk=Symbol.iterator;function jj(e){return e===null||typeof e!="object"?null:(e=bk&&e[bk]||e["@@iterator"],typeof e=="function"?e:null)}var MM={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},IM=Object.assign,RM={};function N0(e,t,n){this.props=e,this.context=t,this.refs=RM,this.updater=n||MM}N0.prototype.isReactComponent={};N0.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};N0.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function OM(){}OM.prototype=N0.prototype;function r8(e,t,n){this.props=e,this.context=t,this.refs=RM,this.updater=n||MM}var i8=r8.prototype=new OM;i8.constructor=r8;IM(i8,N0.prototype);i8.isPureReactComponent=!0;var Sk=Array.isArray,NM=Object.prototype.hasOwnProperty,o8={current:null},DM={key:!0,ref:!0,__self:!0,__source:!0};function zM(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)NM.call(t,r)&&!DM.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var l=Array(s),d=0;d<s;d++)l[d]=arguments[d+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:tv,type:e,key:o,ref:a,props:i,_owner:o8.current}}function qj(e,t){return{$$typeof:tv,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function a8(e){return typeof e=="object"&&e!==null&&e.$$typeof===tv}function Kj(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var wk=/\/+/g;function sb(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Kj(""+e.key):t.toString(36)}function Iy(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case tv:case Dj:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+sb(a,0):r,Sk(i)?(n="",e!=null&&(n=e.replace(wk,"$&/")+"/"),Iy(i,t,n,"",function(d){return d})):i!=null&&(a8(i)&&(i=qj(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(wk,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",Sk(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+sb(o,s);a+=Iy(o,t,n,l,i)}else if(l=jj(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+sb(o,s++),a+=Iy(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function S2(e,t,n){if(e==null)return e;var r=[],i=0;return Iy(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Zj(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var xo={current:null},Ry={transition:null},Yj={ReactCurrentDispatcher:xo,ReactCurrentBatchConfig:Ry,ReactCurrentOwner:o8};Xt.Children={map:S2,forEach:function(e,t,n){S2(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return S2(e,function(){t++}),t},toArray:function(e){return S2(e,function(t){return t})||[]},only:function(e){if(!a8(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Xt.Component=N0;Xt.Fragment=zj;Xt.Profiler=Bj;Xt
* @license React
* scheduler.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.
*/(function(e){function t(G,te){var Q=G.length;G.push(te);e:for(;0<Q;){var W=Q-1>>>1,ie=G[W];if(0<i(ie,te))G[W]=te,G[Q]=ie,Q=W;else break e}}function n(G){return G.length===0?null:G[0]}function r(G){if(G.length===0)return null;var te=G[0],Q=G.pop();if(Q!==te){G[0]=Q;e:for(var W=0,ie=G.length,ce=ie>>>1;W<ce;){var Se=2*(W+1)-1,De=G[Se],Ie=Se+1,Ve=G[Ie];if(0>i(De,Q))Ie<ie&&0>i(Ve,De)?(G[W]=Ve,G[Ie]=Q,W=Ie):(G[W]=De,G[Se]=Q,W=Se);else if(Ie<ie&&0>i(Ve,Q))G[W]=Ve,G[Ie]=Q,W=Ie;else break e}}return te}function i(G,te){var Q=G.sortIndex-te.sortIndex;return Q!==0?Q:G.id-te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],d=[],p=1,g=null,m=3,y=!1,b=!1,w=!1,P=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function L(G){for(var te=n(d);te!==null;){if(te.callback===null)r(d);else if(te.startTime<=G)r(d),te.sortIndex=te.expirationTime,t(l,te);else break;te=n(d)}}function I(G){if(w=!1,L(G),!b)if(n(l)!==null)b=!0,xe(N);else{var te=n(d);te!==null&&J(I,te.startTime-G)}}function N(G,te){b=!1,w&&(w=!1,E($),$=-1),y=!0;var Q=m;try{for(L(te),g=n(l);g!==null&&(!(g.expirationTime>te)||G&&!q());){var W=g.callback;if(typeof W=="function"){g.callback=null,m=g.priorityLevel;var ie=W(g.expirationTime<=te);te=e.unstable_now(),typeof ie=="function"?g.callback=ie:g===n(l)&&r(l),L(te)}else r(l);g=n(l)}if(g!==null)var ce=!0;else{var Se=n(d);Se!==null&&J(I,Se.startTime-te),ce=!1}return ce}finally{g=null,m=Q,y=!1}}var D=!1,F=null,$=-1,K=5,j=-1;function q(){return!(e.unstable_now()-j<K)}function fe(){if(F!==null){var G=e.unstable_now();j=G;var te=!0;try{te=F(!0,G)}finally{te?pe():(D=!1,F=null)}}else D=!1}var pe;if(typeof k=="function")pe=function(){k(fe)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,we=be.port2;be.port1.onmessage=fe,pe=function(){we.postMessage(null)}}else pe=function(){P(fe,0)};function xe(G){F=G,D||(D=!0,pe())}function J(G,te){$=P(function(){G(e.unstable_now())},te)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(G){G.callback=null},e.unstable_continueExecution=function(){b||y||(b=!0,xe(N))},e.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<G?Math.floor(1e3/G):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(G){switch(m){case 1:case 2:case 3:var te=3;break;default:te=m}var Q=m;m=te;try{return G()}finally{m=Q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(G,te){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var Q=m;m=G;try{return te()}finally{m=Q}},e.unstable_scheduleCallback=function(G,te,Q){var W=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?W+Q:W):Q=W,G){case 1:var ie=-1;break;case 2:ie=250;break;case 5:ie=1073741823;break;case 4:ie=1e4;break;default:ie=5e3}return ie=Q+ie,G={id:p++,callback:te,priorityLevel:G,startTime:Q,expirationTime:ie,sortIndex:-1},Q>W?(G.sortIndex=Q,t(d,G),n(l)===null&&G===n(d)&&(w?(E($),$=-1):w=!0,J(I,Q-W))):(G.sortIndex=ie,t(l,G),b||y||(b=!0,xe(N))),G},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(G){var te=m;return function(){var Q=m;m=te;try{return G.apply(this,arguments)}finally{m=Q}}}})(FM);(function(e){e.exports=FM})(Gp);/**
* @license React
* react-dom.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 BM=C.exports,va=Gp.exports;function ze(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var $M=new Set,sm={};function uh(e,t){p0(e,t),p0(e+"Capture",t)}function p0(e,t){for(sm[e]=t,e=0;e<t.length;e++)$M.add(t[e])}var Tu=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),QS=Object.prototype.hasOwnProperty,Xj=/^[: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][: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\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ck={},_k={};function Qj(e){return QS.call(_k,e)?!0:QS.call(Ck,e)?!1:Xj.test(e)?_k[e]=!0:(Ck[e]=!0,!1)}function Jj(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function eq(e,t,n,r){if(t===null||typeof t>"u"||Jj(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function bo(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Bi={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Bi[e]=new bo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Bi[t]=new bo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Bi[e]=new bo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Bi[e]=new bo(e,2,!1,e,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".split(" ").forEach(function(e){Bi[e]=new bo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Bi[e]=new bo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Bi[e]=new bo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Bi[e]=new bo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Bi[e]=new bo(e,5,!1,e.toLowerCase(),null,!1,!1)});var s8=/[\-:]([a-z])/g;function l8(e){return e[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-a
`+lb+e}var ub=!1;function cb(e,t){if(!e||ub)return"";ub=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var r=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){r=d}e.call(t.prototype)}else{try{throw Error()}catch(d){r=d}e()}}catch(d){if(d&&r&&typeof d.stack=="string"){for(var i=d.stack.split(`
`),o=r.stack.split(`
`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s]){var l=`
`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{ub=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?hg(e):""}function tq(e){switch(e.tag){case 5:return hg(e.type);case 16:return hg("Lazy");case 13:return hg("Suspense");case 19:return hg("SuspenseList");case 0:case 2:case 15:return e=cb(e.type,!1),e;case 11:return e=cb(e.type.render,!1),e;case 1:return e=cb(e.type,!0),e;default:return""}}function nw(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Tp:return"Fragment";case Pp:return"Portal";case JS:return"Profiler";case c8:return"StrictMode";case ew:return"Suspense";case tw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case WM:return(e.displayName||"Context")+".Consumer";case HM:return(e._context.displayName||"Context")+".Provider";case d8:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case f8:return t=e.displayName||null,t!==null?t:nw(e.type)||"Memo";case Fc:t=e._payload,e=e._init;try{return nw(e(t))}catch{}}return null}function nq(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return nw(t);case 8:return t===c8?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function sd(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function UM(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function rq(e){var t=UM(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function C2(e){e._valueTracker||(e._valueTracker=rq(e))}function GM(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=UM(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function C3(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function rw(e,t){var n=t.checked;return gr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ek(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=sd(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function jM(e,t){t=t.checked,t!=null&&u8(e,"checked",t,!1)}function iw(e,t){jM(e,t);var n=sd(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ow(e,t.type,n):t.hasOwnProperty("defaultValue")&&ow(e,t.type,sd(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Pk(e,t,n){if(t.hasOwnProperty("val
`).replace(hK,"")}function M2(e,t,n){if(t=Yk(t),Yk(e)!==t&&n)throw Error(ze(425))}function M3(){}var xw=null,bw=null;function Sw(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ww=typeof setTimeout=="function"?setTimeout:void 0,pK=typeof clearTimeout=="function"?clearTimeout:void 0,Xk=typeof Promise=="function"?Promise:void 0,gK=typeof queueMicrotask=="function"?queueMicrotask:typeof Xk<"u"?function(e){return Xk.resolve(null).then(e).catch(mK)}:ww;function mK(e){setTimeout(function(){throw e})}function Cb(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),fm(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);fm(t)}function ed(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Qk(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var z0=Math.random().toString(36).slice(2),bl="__reactFiber$"+z0,vm="__reactProps$"+z0,Lu="__reactContainer$"+z0,Cw="__reactEvents$"+z0,vK="__reactListeners$"+z0,yK="__reactHandles$"+z0;function zf(e){var t=e[bl];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Lu]||n[bl]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Qk(e);e!==null;){if(n=e[bl])return n;e=Qk(e)}return t}e=n,n=e.parentNode}return null}function iv(e){return e=e[bl]||e[Lu],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ip(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(ze(33))}function j5(e){return e[vm]||null}var _w=[],Rp=-1;function vd(e){return{current:e}}function Xn(e){0>Rp||(e.current=_w[Rp],_w[Rp]=null,Rp--)}function Gn(e,t){Rp++,_w[Rp]=e.current,e.current=t}var ld={},Qi=vd(ld),Bo=vd(!1),th=ld;function g0(e,t){var n=e.type.contextTypes;if(!n)return ld;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function $o(e){return e=e.childContextTypes,e!=null}function I3(){Xn(Bo),Xn(Qi)}function Jk(e,t,n){if(Qi.current!==ld)throw Error(ze(168));Gn(Qi,t),Gn(Bo,n)}function OI(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(ze(108,nq(e)||"Unknown",i));return gr({},n,r)}function R3(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ld,th=Qi.current,Gn(Qi,e),Gn(Bo,Bo.current),!0}function eE(e,t,n){var r=e.stateNode;if(!r)throw Error(ze(169));n?(e=OI(e,t,th),r.__reactInternalMemoizedMergedChildContext=e,Xn(Bo),Xn(Qi),Gn(Qi,e)):Xn(Bo),Gn(Bo,n)}var Su=null,q5=!1,_b=!1;function NI(e){Su===null?Su=[e]:Su.push(e)}function xK(e){q5=!0,NI(e)}function yd(){if(!_b&&Su!==null){_b=!0;var e=0,t=Tn;try{var n=Su;for(Tn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Su=null,q5=!1}catch(i){throw Su!==null&&(Su=Su.slice(e+1)),aI(p8,yd),i}finally{Tn=t,_b=!1}}return null}var Op=[],Np=0,O3=null,N3=0,Ua=[],Ga=0,nh=null,_u=1,ku="";function Tf(e,t){Op[Np++]=N3,Op[Np++]=O3,O3=e,N3=t}function DI(e,t,n){Ua[Ga++]=_u,Ua[Ga++]=ku,Ua[Ga++]=nh,nh=e;var r=_u;e=ku;var i=32-Is(r)-1;r&=~(1<<i),n+=1;var o=32-Is(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,_u=1<<32-Is(t)+i|n<<i|r,ku=o+e}else _u=1<<o|n<<i|r,ku=e}function C8(e){e.return!==null&&(Tf(e,1),DI(e,1,0))}function _8(e){for(;e===O3;)O3=Op[--Np],Op[Np]=null,N3=Op[--Np],Op[Np]=null;for(;e===nh;)nh=Ua[--Ga],Ua[Ga]=null,ku=Ua[--Ga],Ua[Ga]=null,_u=Ua[--Ga],Ua[Ga]=null}var pa=null,fa=null,rr=!1,As=null;function zI(e,t){var n=Ka(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.de
Error generating stack: `+o.message+`
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Lb(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Aw(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var TK=typeof WeakMap=="function"?WeakMap:Map;function dR(e,t,n){n=Pu(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){V3||(V3=!0,$w=r),Aw(e,t)},n}function fR(e,t,n){n=Pu(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Aw(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Aw(e,t),typeof r!="function"&&(nd===null?nd=new Set([this]):nd.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function cE(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new TK;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=WK.bind(null,e,t,n),t.then(e,e))}function dE(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function fE(e,t,n,r,i){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Pu(-1,1),t.tag=2,td(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var LK=Bu.ReactCurrentOwner,Fo=!1;function po(e,t,n,r){t.child=e===null?UI(t,null,n,r):v0(t,e.child,n,r)}function hE(e,t,n,r,i){n=n.render;var o=t.ref;return Yp(t,i),r=N8(e,t,n,r,o,i),n=D8(),e!==null&&!Fo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Mu(e,t,i)):(rr&&n&&C8(t),t.flags|=1,po(e,t,r,i),t.child)}function pE(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!j8(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,hR(e,t,o,r,i)):(e=Vy(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,(e.lanes&i)===0){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:pm,n(a,r)&&e.ref===t.ref)return Mu(e,t,i)}return t.flags|=1,e=id(o,r),e.ref=t.ref,e.return=t,t.child=e}function hR(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(pm(o,r)&&e.ref===t.ref)if(Fo=!1,t.pendingProps=r=o,(e.lanes&i)!==0)(e.flags&131072)!==0&&(Fo=!0);else return t.lanes=e.lanes,Mu(e,t,i)}return Mw(e,t,n,r,i)}function pR(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Gn(Fp,ca),ca|=n;else{if((n&1073741824)===0)return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Gn(Fp,ca),ca|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Gn(Fp,ca),ca|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Gn(Fp,ca),ca|=r;return po(e,t,i,n),t.child}function gR(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Mw(e,t,n,r,i){var o=$o(n)?th:Qi.current;return o=g0(t,o),Yp(t,i),n=N8(e,t,n,r,o,i),r=D8(),e!==null&&!Fo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Mu(e,t,i)):(rr&&r&&C8(t),t.flags|=1,po(e,t,n,i),t.child)}function gE(e,t,n,r,i){if($o(n)){var o=!0;R3(t)}else o=!1;if(Yp(t,i),t.stateNode===null)$y(e,t),WI(t,n,r),Lw(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,d=n.contextType;typeof d=="object"&&d!==null?d=Qa(d):(d=$o(n)?th:Qi.current,d=g0(t,d));var p=n.getDerivedStateFromProps,g=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function";g||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==d)&&aE(t,a,r,d),Bc=!1;var m=t.memoizedState;a.state=m,F3(t,r,a,i),l=t.memoizedState,s!==r||m!==l||Bo.current||Bc?(typeof p=="function"&&(Tw(t,n,p,r),l=t.memoizedState),(s=Bc||oE(t,n,s,r,m,l,d))?(g||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="f
* @license React
* react-jsx-runtime.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 JK=C.exports,eZ=Symbol.for("react.element"),tZ=Symbol.for("react.fragment"),nZ=Object.prototype.hasOwnProperty,rZ=JK.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,iZ={key:!0,ref:!0,__self:!0,__source:!0};function FR(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)nZ.call(t,r)&&!iZ.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:eZ,type:e,key:o,ref:a,props:i,_owner:rZ.current}}i4.Fragment=tZ;i4.jsx=FR;i4.jsxs=FR;(function(e){e.exports=i4})(r4);const Bn=r4.exports.Fragment,S=r4.exports.jsx,oe=r4.exports.jsxs;var X8=C.exports.createContext({});X8.displayName="ColorModeContext";function Q8(){const e=C.exports.useContext(X8);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var B2={light:"chakra-ui-light",dark:"chakra-ui-dark"};function oZ(e={}){const{preventTransition:t=!0}=e,n={setDataset:r=>{const i=t?n.preventTransition():void 0;document.documentElement.dataset.theme=r,document.documentElement.style.colorScheme=r,i?.()},setClassName(r){document.body.classList.add(r?B2.dark:B2.light),document.body.classList.remove(r?B2.light:B2.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(r){return n.query().matches??r==="dark"?"dark":"light"},addListener(r){const i=n.query(),o=a=>{r(a.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(o):i.addEventListener("change",o),()=>{typeof i.removeListener=="function"?i.removeListener(o):i.removeEventListener("change",o)}},preventTransition(){const r=document.createElement("style");return r.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(r),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(r)})})}}};return n}var aZ="chakra-ui-color-mode";function sZ(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 lZ=sZ(aZ),LE=()=>{};function AE(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function BR(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:i,disableTransitionOnChange:o}={},colorModeManager:a=lZ}=e,s=i==="dark"?"dark":"light",[l,d]=C.exports.useState(()=>AE(a,s)),[p,g]=C.exports.useState(()=>AE(a)),{getSystemTheme:m,setClassName:y,setDataset:b,addListener:w}=C.exports.useMemo(()=>oZ({preventTransition:o}),[o]),P=i==="system"&&!l?p:l,E=C.exports.useCallback(I=>{const N=I==="system"?m():I;d(N),y(N==="dark"),b(N),a.set(N)},[a,m,y,b]);El(()=>{i==="system"&&g(m())},[]),C.exports.useEffect(()=>{const I=a.get();if(I){E(I);return}if(i==="system"){E("system");return}E(s)},[a,s,i,E]);const k=C.exports.useCallback(()=>{E(P==="dark"?"light":"dark")},[P,E]);C.exports.useEffect(()=>{if(!!r)return w(E)},[r,w,E]);const L=C.exports.useMemo(()=>({colorMode:t??P,toggleColorMode:t?LE:k,setColorMode:t?LE:E}),[P,k,E,t]);return S(X8.Provider,{value:L,children:n})}BR.displayName="ColorModeProvider";var uZ=new Set(["dark","light","system"]);function cZ(e){let t=e;return uZ.has(t)||(t="light"),t}function dZ(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,i=cZ(t),o=n==="cookie",a=`(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="${i}",r="${r}",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=/")}catc
`,s=`(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="${i}",e="${r}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})();
`;return`!${o?a:s}`.trim()}function fZ(e={}){return S("script",{id:"chakra-script",dangerouslySetInnerHTML:{__html:dZ(e)}})}var Uw={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=800,o=16,a=9007199254740991,s="[object Arguments]",l="[object Array]",d="[object AsyncFunction]",p="[object Boolean]",g="[object Date]",m="[object Error]",y="[object Function]",b="[object GeneratorFunction]",w="[object Map]",P="[object Number]",E="[object Null]",k="[object Object]",L="[object Proxy]",I="[object RegExp]",N="[object Set]",D="[object String]",F="[object Undefined]",$="[object WeakMap]",K="[object ArrayBuffer]",j="[object DataView]",q="[object Float32Array]",fe="[object Float64Array]",pe="[object Int8Array]",be="[object Int16Array]",we="[object Int32Array]",xe="[object Uint8Array]",J="[object Uint8ClampedArray]",G="[object Uint16Array]",te="[object Uint32Array]",Q=/[\\^$.*+?()[\]{}|]/g,W=/^\[object .+?Constructor\]$/,ie=/^(?:0|[1-9]\d*)$/,ce={};ce[q]=ce[fe]=ce[pe]=ce[be]=ce[we]=ce[xe]=ce[J]=ce[G]=ce[te]=!0,ce[s]=ce[l]=ce[K]=ce[p]=ce[j]=ce[g]=ce[m]=ce[y]=ce[w]=ce[P]=ce[k]=ce[I]=ce[N]=ce[D]=ce[$]=!1;var Se=typeof wu=="object"&&wu&&wu.Object===Object&&wu,De=typeof self=="object"&&self&&self.Object===Object&&self,Ie=Se||De||Function("return this")(),Ve=t&&!t.nodeType&&t,ke=Ve&&!0&&e&&!e.nodeType&&e,We=ke&&ke.exports===Ve,it=We&&Se.process,ht=function(){try{var M=ke&&ke.require&&ke.require("util").types;return M||it&&it.binding&&it.binding("util")}catch{}}(),Ht=ht&&ht.isTypedArray;function Nt(M,z,U){switch(U.length){case 0:return M.call(z);case 1:return M.call(z,U[0]);case 2:return M.call(z,U[0],U[1]);case 3:return M.call(z,U[0],U[1],U[2])}return M.apply(z,U)}function Re(M,z){for(var U=-1,me=Array(M);++U<M;)me[U]=z(U);return me}function tt(M){return function(z){return M(z)}}function gt(M,z){return M?.[z]}function at(M,z){return function(U){return M(z(U))}}var mt=Array.prototype,gn=Function.prototype,vt=Object.prototype,Wt=Ie["__core-js_shared__"],rn=gn.toString,Dt=vt.hasOwnProperty,Oe=function(){var M=/[^.]+$/.exec(Wt&&Wt.keys&&Wt.keys.IE_PROTO||"");return M?"Symbol(src)_1."+M:""}(),et=vt.toString,Gt=rn.call(Object),Vt=RegExp("^"+rn.call(Dt).replace(Q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ee=We?Ie.Buffer:void 0,Et=Ie.Symbol,Jt=Ie.Uint8Array,Hn=Ee?Ee.allocUnsafe:void 0,Ge=at(Object.getPrototypeOf,Object),Lt=Object.create,Be=vt.propertyIsEnumerable,ut=mt.splice,je=Et?Et.toStringTag:void 0,St=function(){try{var M=ro(Object,"defineProperty");return M({},"",{}),M}catch{}}(),en=Ee?Ee.isBuffer:void 0,Kn=Math.max,yr=Date.now,Wr=ro(Ie,"Map"),Hi=ro(Object,"create"),Ld=function(){function M(){}return function(z){if(!Ar(z))return{};if(Lt)return Lt(z);M.prototype=z;var U=new M;return M.prototype=void 0,U}}();function Vr(M){var z=-1,U=M==null?0:M.length;for(this.clear();++z<U;){var me=M[z];this.set(me[0],me[1])}}function qu(){this.__data__=Hi?Hi(null):{},this.size=0}function Ad(M){var z=this.has(M)&&delete this.__data__[M];return this.size-=z?1:0,z}function Bs(M){var z=this.__data__;if(Hi){var U=z[M];return U===r?void 0:U}return Dt.call(z,M)?z[M]:void 0}function Ku(M){var z=this.__data__;return Hi?z[M]!==void 0:Dt.call(z,M)}function Zu(M,z){var U=this.__data__;return this.size+=this.has(M)?0:1,U[M]=Hi&&z===void 0?r:z,this}Vr.prototype.clear=qu,Vr.prototype.delete=Ad,Vr.prototype.get=Bs,Vr.prototype.has=Ku,Vr.prototype.set=Zu;function or(M){var z=-1,U=M==null?0:M.length;for(this.clear();++z<U;){var me=M[z];this.set(me[0],me[1])}}function Vl(){this.__data__=[],this.size=0}function Md(M){var z=this.__data__,U=Wi(z,M);if(U<0)return!1;var me=z.length-1;return U==me?z.pop():ut.call(z,U,1),--this.size,!0}function $s(M){var z=this.__data__,U=Wi(z,M);return U<0?void 0:z[U][1]}function Ul(M){return Wi(this.__data__,M)>-1}function Id(M,z){var U=this.__data__,me=Wi(U,M);return me<0?(++this.size,U.push([M,z])):U[me][1]=z,this}or.prototype.clear=Vl,or.prototype.delete=Md,or.prototype.get=$s,or.prototype.has=Ul,or.prototype.set=Id;function bi(M){var z=-1,U=M==null?0:M.length;for(this.clear();+
* react-is.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 xi=typeof Symbol=="function"&&Symbol.for,i9=xi?Symbol.for("react.element"):60103,o9=xi?Symbol.for("react.portal"):60106,c4=xi?Symbol.for("react.fragment"):60107,d4=xi?Symbol.for("react.strict_mode"):60108,f4=xi?Symbol.for("react.profiler"):60114,h4=xi?Symbol.for("react.provider"):60109,p4=xi?Symbol.for("react.context"):60110,a9=xi?Symbol.for("react.async_mode"):60111,g4=xi?Symbol.for("react.concurrent_mode"):60111,m4=xi?Symbol.for("react.forward_ref"):60112,v4=xi?Symbol.for("react.suspense"):60113,rX=xi?Symbol.for("react.suspense_list"):60120,y4=xi?Symbol.for("react.memo"):60115,x4=xi?Symbol.for("react.lazy"):60116,iX=xi?Symbol.for("react.block"):60121,oX=xi?Symbol.for("react.fundamental"):60117,aX=xi?Symbol.for("react.responder"):60118,sX=xi?Symbol.for("react.scope"):60119;function Ca(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case i9:switch(e=e.type,e){case a9:case g4:case c4:case f4:case d4:case v4:return e;default:switch(e=e&&e.$$typeof,e){case p4:case m4:case x4:case y4:case h4:return e;default:return t}}case o9:return t}}}function iO(e){return Ca(e)===g4}An.AsyncMode=a9;An.ConcurrentMode=g4;An.ContextConsumer=p4;An.ContextProvider=h4;An.Element=i9;An.ForwardRef=m4;An.Fragment=c4;An.Lazy=x4;An.Memo=y4;An.Portal=o9;An.Profiler=f4;An.StrictMode=d4;An.Suspense=v4;An.isAsyncMode=function(e){return iO(e)||Ca(e)===a9};An.isConcurrentMode=iO;An.isContextConsumer=function(e){return Ca(e)===p4};An.isContextProvider=function(e){return Ca(e)===h4};An.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===i9};An.isForwardRef=function(e){return Ca(e)===m4};An.isFragment=function(e){return Ca(e)===c4};An.isLazy=function(e){return Ca(e)===x4};An.isMemo=function(e){return Ca(e)===y4};An.isPortal=function(e){return Ca(e)===o9};An.isProfiler=function(e){return Ca(e)===f4};An.isStrictMode=function(e){return Ca(e)===d4};An.isSuspense=function(e){return Ca(e)===v4};An.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===c4||e===g4||e===f4||e===d4||e===v4||e===rX||typeof e=="object"&&e!==null&&(e.$$typeof===x4||e.$$typeof===y4||e.$$typeof===h4||e.$$typeof===p4||e.$$typeof===m4||e.$$typeof===oX||e.$$typeof===aX||e.$$typeof===sX||e.$$typeof===iX)};An.typeOf=Ca;(function(e){e.exports=An})(rO);var oO=rO.exports,lX={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},uX={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},aO={};aO[oO.ForwardRef]=lX;aO[oO.Memo]=uX;var cX=!0;function dX(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var sO=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||cX===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},lO=function(t,n,r){sO(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function fX(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&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(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&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 hX={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,strokeWid
[data-motion-pop-id="${n}"] {
position: absolute !important;
width: ${o}px !important;
height: ${a}px !important;
top: ${s}px !important;
left: ${l}px !important;
}
`),()=>{document.head.removeChild(d)}},[t]),S(Are,{isPresent:t,childRef:r,sizeRef:i,children:C.exports.cloneElement(e,{ref:r})})}const jb=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const s=P4(Ire),l=C.exports.useId(),d=C.exports.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:p=>{s.set(p,!0);for(const g of s.values())if(!g)return;r&&r()},register:p=>(s.set(p,!1),()=>s.delete(p))}),o?void 0:[n]);return C.exports.useMemo(()=>{s.forEach((p,g)=>s.set(g,!1))},[n]),C.exports.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=S(Mre,{isPresent:n,children:e})),S(H0.Provider,{value:d,children:e})};function Ire(){return new Map}const _p=e=>e.key||"";function Rre(e,t){e.forEach(n=>{const r=_p(n);t.set(r,n)})}function Ore(e){const t=[];return C.exports.Children.forEach(e,n=>{C.exports.isValidElement(n)&&t.push(n)}),t}const $u=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait",EN(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=Lre();const l=C.exports.useContext(f9).forceRender;l&&(s=l);const d=eD(),p=Ore(e);let g=p;const m=new Set,y=C.exports.useRef(g),b=C.exports.useRef(new Map).current,w=C.exports.useRef(!0);if(Q3(()=>{w.current=!1,Rre(p,b),y.current=g}),b9(()=>{w.current=!0,b.clear(),m.clear()}),w.current)return S(Bn,{children:g.map(L=>S(jb,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:a,children:L},_p(L)))});g=[...g];const P=y.current.map(_p),E=p.map(_p),k=P.length;for(let L=0;L<k;L++){const I=P[L];E.indexOf(I)===-1&&m.add(I)}return a==="wait"&&m.size&&(g=[]),m.forEach(L=>{if(E.indexOf(L)!==-1)return;const I=b.get(L);if(!I)return;const N=P.indexOf(L),D=()=>{b.delete(L),m.delete(L);const F=y.current.findIndex($=>$.key===L);if(y.current.splice(F,1),!m.size){if(y.current=p,d.current===!1)return;s(),r&&r()}};g.splice(N,0,S(jb,{isPresent:!1,onExitComplete:D,custom:t,presenceAffectsLayout:o,mode:a,children:I},_p(I)))}),g=g.map(L=>{const I=L.key;return m.has(I)?L:S(jb,{isPresent:!0,presenceAffectsLayout:o,mode:a,children:L},_p(L))}),kN!=="production"&&a==="wait"&&g.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.`),S(Bn,{children:m.size?g:g.map(L=>C.exports.cloneElement(L))})};var gv=(...e)=>e.filter(Boolean).join(" ");function Nre(){return!1}var Dre=e=>{const{condition:t,message:n}=e;t&&Nre()&&console.warn(n)},Hf={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},ng={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 k6(e){switch(e?.direction??"right"){case"right":return ng.slideRight;case"left":return ng.slideLeft;case"bottom":return ng.slideDown;case"top":return ng.slideUp;default:return ng.slideRight}}var Yf={enter:{duration:.2,ease:Hf.easeOut},exit:{duration:.1,ease:Hf.easeIn}},Os={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t?.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t?.exit})},zre=e=>e!=null&&parseInt(e.toString(),10)>0,aT={exit:{height:{duration:.2,ease:Hf.ease},opacity:{duration:.3,ease:Hf.ease}},enter:{height:{duration:.3,ease:Hf.ease},opacity:{duration:.4,ease:Hf.ease}}},Fre={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:i})=>({...e&&{opacity:zre(t)?1:0},height:t,transitionEnd:r?.exit,transition:n?.exit??Os.exit(aT.exit,i)}),enter:({animateOpacity:e,endingHei
`})}function iie(e){N4({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function Vf(e){const{isOpen:t,isDisabled:n}=D9(),{reduceMotion:r}=z9(),i=mv("chakra-accordion__icon",e.className),o=D4(),a={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:r?void 0:"transform 0.2s",transformOrigin:"center",...o.icon};return S(_a,{viewBox:"0 0 24 24","aria-hidden":!0,className:i,__css:a,...e,children:S("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}Vf.displayName="AccordionIcon";var Uf=Me(function(t,n){const{children:r,className:i}=t,{htmlProps:o,...a}=eie(t),l={...D4().container,overflowAnchor:"none"},d=C.exports.useMemo(()=>a,[a]);return le.createElement(Kre,{value:d},le.createElement(Ce.div,{ref:n,...o,className:mv("chakra-accordion__item",i),__css:l},typeof r=="function"?r({isExpanded:!!a.isOpen,isDisabled:!!a.isDisabled}):r))});Uf.displayName="AccordionItem";var Gf=Me(function(t,n){const{reduceMotion:r}=z9(),{getPanelProps:i,isOpen:o}=D9(),a=i(t,n),s=mv("chakra-accordion__panel",t.className),l=D4();r||delete a.hidden;const d=le.createElement(Ce.div,{...a,__css:l.panel,className:s});return r?d:S(tD,{in:o,children:d})});Gf.displayName="AccordionPanel";var z4=Me(function({children:t,reduceMotion:n,...r},i){const o=$i("Accordion",r),a=Sn(r),{htmlProps:s,descendants:l,...d}=Qre(a),p=C.exports.useMemo(()=>({...d,reduceMotion:!!n}),[d,n]);return le.createElement(Zre,{value:l},le.createElement(Jre,{value:p},le.createElement(qre,{value:o},le.createElement(Ce.div,{ref:i,...s,className:mv("chakra-accordion",r.className),__css:o.root},t))))});z4.displayName="Accordion";var oie=(...e)=>e.filter(Boolean).join(" "),aie=sv({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),U0=Me((e,t)=>{const n=So("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:a="transparent",className:s,...l}=Sn(e),d=oie("chakra-spinner",s),p={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:a,borderLeftColor:a,animation:`${aie} ${o} linear infinite`,...n};return le.createElement(Ce.div,{ref:t,__css:p,className:d,...l},r&&le.createElement(Ce.span,{srOnly:!0},r))});U0.displayName="Spinner";var F4=(...e)=>e.filter(Boolean).join(" ");function sie(e){return S(_a,{viewBox:"0 0 24 24",...e,children:S("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"})})}function lie(e){return S(_a,{viewBox:"0 0 24 24",...e,children:S("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"})})}function lT(e){return S(_a,{viewBox:"0 0 24 24",...e,children:S("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"})})}var[uie,cie]=kn({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[die,F9]=kn({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),oD={info:{icon:lie,colorScheme:"blue"},warning:{icon:lT,colorScheme:"orange"},success:{icon:sie,colorScheme:"green"},error:{icon:lT,colorScheme:"red"},loading:{icon:U0,colorScheme:"blue"}};function fie(e){return oD[e].colorScheme}function hie(e){return oD[e].icon}var aD=Me(function(t,n){const{status:r="info",addRole:i=!0,...o}=Sn(t),a=t.colorScheme??fie(r),s=$i("Alert",{...t,colorScheme:a}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...s.container};
* @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 H4=(...e)=>e.filter(Boolean).join(" "),cT=e=>e?"":void 0,[kie,Eie]=kn({strict:!1,name:"ButtonGroupContext"});function P6(e){const{children:t,className:n,...r}=e,i=C.exports.isValidElement(t)?C.exports.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,o=H4("chakra-button__icon",n);return le.createElement(Ce.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:o},i)}P6.displayName="ButtonIcon";function T6(e){const{label:t,placement:n,spacing:r="0.5rem",children:i=S(U0,{color:"currentColor",width:"1em",height:"1em"}),className:o,__css:a,...s}=e,l=H4("chakra-button__spinner",o),d=n==="start"?"marginEnd":"marginStart",p=C.exports.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[d]:t?r:0,fontSize:"1em",lineHeight:"normal",...a}),[a,t,d,r]);return le.createElement(Ce.div,{className:l,...s,__css:p},i)}T6.displayName="ButtonSpinner";function Pie(e){const[t,n]=C.exports.useState(!e);return{ref:C.exports.useCallback(o=>{!o||n(o.tagName==="BUTTON")},[]),type:t?"button":void 0}}var Ya=Me((e,t)=>{const n=Eie(),r=So("Button",{...n,...e}),{isDisabled:i=n?.isDisabled,isLoading:o,isActive:a,children:s,leftIcon:l,rightIcon:d,loadingText:p,iconSpacing:g="0.5rem",type:m,spinner:y,spinnerPlacement:b="start",className:w,as:P,...E}=Sn(e),k=C.exports.useMemo(()=>{const D={...r?._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:D}}},[r,n]),{ref:L,type:I}=Pie(P),N={rightIcon:d,leftIcon:l,iconSpacing:g,children:s};return le.createElement(Ce.button,{disabled:i||o,ref:HQ(t,L),as:P,type:m??I,"data-active":cT(a),"data-loading":cT(o),__css:k,className:H4("chakra-button",w),...E},o&&b==="start"&&S(T6,{className:"chakra-button__spinner--start",label:p,placement:"start",spacing:g,children:y}),o?p||le.createElement(Ce.span,{opacity:0},S(dT,{...N})):S(dT,{...N}),o&&b==="end"&&S(T6,{className:"chakra-button__spinner--end",label:p,placement:"end",spacing:g,children:y}))});Ya.displayName="Button";function dT(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:i}=e;return oe(Bn,{children:[t&&S(P6,{marginEnd:i,children:t}),r,n&&S(P6,{marginStart:i,children:n})]})}var hD=Me(function(t,n){const{size:r,colorScheme:i,variant:o,className:a,spacing:s="0.5rem",isAttached:l,isDisabled:d,...p}=t,g=H4("chakra-button__group",a),m=C.exports.useMemo(()=>({size:r,colorScheme:i,variant:o,isDisabled:d}),[r,i,o,d]);let y={display:"inline-flex"};return l?y={...y,"> *: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}}:y={...y,"& > *:not(style) ~ *:not(style)":{marginStart:s}},le.createElement(kie,{value:m},le.createElement(Ce.div,{ref:n,role:"group",__css:y,className:g,"data-attached":l?"":void 0,...p}))});hD.displayName="ButtonGroup";var ri=Me((e,t)=>{const{icon:n,children:r,isRound:i,"aria-label":o,...a}=e,s=n||r,l=C.exports.isValidElement(s)?C.exports.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;return S(Ya,{padding:"0",borderRadius:i?"full":void 0,ref:t,"aria-label":o,...a,children:l})});ri.displayName="IconButton";var G0=(...e)=>e.filter(Boolean).join(" "),Z2=e=>e?"":void 0,Kb=e=>e?!0:void 0;function fT(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var[Tie,pD]=kn({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormControl />" `}),[Lie,j0]=kn({strict:!1,name:"FormControlContext"});function Aie(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:i,isReadOnly:o,...a}=e,s=C.exports.useId(),l=t||`field-${s}`,d=`${l}-label`,p=`${l}-feedback`,g=`${l}-helptext`,[m,y]=C.exports.useState(!1),[b,w]=C.exports.useState(!1),[P,E]=C.exports.useState(!1),k=C.exports.useCallback((F={},$=null)=>({id:g,...F,ref:Fn($,K=>{!K||w(!0)})}),[g]),L=C.exports.useCallback((F={},$=null)=>({...F,ref:$,"data-focus":Z2(P),"data-disab
: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;
}
}
`,ioe=()=>S(b4,{styles:SD}),ooe=()=>S(b4,{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;
}
${SD}
`});function I6(e,t,n,r){const i=kr(n);return C.exports.useEffect(()=>{const o=typeof e=="function"?e():e??document;if(!(!n||!o))return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[t,e,r,i,n]),()=>{const o=typeof e=="function"?e():e??document;o?.removeEventListener(t,i,r)}}var aoe=uv?C.exports.useLayoutEffect:C.exports.useEffect;function R6(e,t=[]){const n=C.exports.useRef(e);return aoe(()=>{n.current=e}),C.exports.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function U9(e,t,n,r){const i=R6(t);return C.exports.useEffect(()=>{const o=Z3(n)??document;if(!!t)return o.addEventListener(e,i,r),()=>{o.removeEventListener(e,i,r)}},[e,n,r,i,t]),()=>{(Z3(n)??document).removeEventListener(e,i,r)}}function soe(e){const{isOpen:t,ref:n}=e,[r,i]=C.exports.useState(t),[o,a]=C.exports.useState(!1);return C.exports.useEffect(()=>{o||(i(t),a(!0))},[t,o,r]),U9("animationend",()=>{i(t)},()=>n.current),{present:!(t?!1:!r),onComplete(){var l;const d=OX(n.current),p=new d.CustomEvent("animationend",{bubbles:!0});(l=n.current)==null||l.dispatchEvent(p)}}}function loe(e,t){const n=e!==void 0;return[n,n&&typeof e<"u"?e:t]}function uoe(e,t){const n=C.exports.useId();return C.exports.useMemo(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}function f5(e={}){const{onClose:t,onOpen:n,isOpen:r,id:i}=e,o=R6(n),a=R6(t),[s,l]=C.exports.useState(e.defaultIsOpen||!1),[d,p]=loe(r,s),g=uoe(i,"disclosure"),m=C.exports.useCallback(()=>{d||l(!1),a?.()},[d,a]),y=C.exports.useCallback(()=>{d||l(!0),o?.()},[d,o]),b=C.exports.useCallback(()=>{(p?m:y)()},[p,y,m]);return{isOpen:!!p,onOpen:y,onClose:m,onToggle:b,isControlled:d,getButtonProps:(w={})=>({...w,"aria-expanded":p,"aria-controls":g,onClick:qX(w.onClick,b)}),getDisclosureProps:(w={})=>({...w,hidden:!p,id:g})}}var wD=(e,t)=>{const n=C.exports.useRef(!1),r=C.exports.useRef(!1);C.exports.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),C.exports.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function coe(e){const t=e.current;if(!t)return!1;const n=zX(t);return!n||c9(t,n)?!1:!!WX(n)}function doe(e,t){const{shouldFocus:n,visible:r,focusRef:i}=t,o=n&&!r;wD(()=>{if(!o||coe(e))return;const a=i?.current||e.current;a&&Y3(a,{nextTick:!0})},[o,e,i])}function foe(e,t,n,r){return U9(fQ(t),aQ(n,t==="pointerdown"),e,r)}function hoe(e){const{ref:t,elements:n,enabled:r}=e,i=pQ("Safari");foe(()=>lv(t.current),"pointerdown",a=>{if(!i||!r)return;const s=a.target,d=(n??[t]).some(p=>{const g=mO(p)?p.current:p;return c9(g,s)});!SO(s)&&d&&(a.preventDefault(),Y3(s))})}var poe={preventScroll:!0,shouldFocus:!1};function goe(e,t=poe){const{focusRef:n,preventScroll:r,shouldFocus:i,visible:o}=t,a=mO(e)?e.current:e,s=i&&o,l=C.exports.useCallback(()=>{if(!(!a||!s)&&!c9(a,document.activeElement))if(n?.current)Y3(n.current,{preventScroll:r,nextTick:!0});else{const d=jX(a);d.length>0&&Y3(d[0],{preventScroll:r,nextTick:!0})}},[s,r,a,n]);wD(()=>{l()},[l]),U9("transitionend",l,a)}function G9(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var j9=Me(function(t,n){const{htmlSize:r,...i}=t,o=$i("Input",i),a=Sn(i),s=B9(a),l=Pr("chakra-input",t.className);return le.createElement(Ce.input,{size:r,...s,__css:o.field,ref:n,className:l})});j9.displayName="Input";j9.id="Input";var[moe,CD]=kn({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "<InputGroup />" `}),voe=Me(function(t,n){const r=$i("Input",t),{children:i,className:o,...a}=Sn(t),s=Pr("chakra-input__group",o),l={},d=$4(i),p=r.field;d.forEach(m=>{!r||(p&&m.type.id==="InputLeftElement"&&(l.paddingStart=p.height??p.h),p&&m.type.id==="InputRightElement"&&(l.paddingEnd=p.height??p.h),m.type.id==="InputRightAddon"&&(l.borderEndRadius=0),m.type.id==="InputLeftAddon"&&(l.borderStartRadius=0))});const g=d.map(m=>{var y,b;const w=G9({size:((y=m.props)==null?void 0:y.size)||t.size,variant:((b=m.props)==null?void 0:b.variant)||t.variant});return m.type.id!=="Input"?C.exports.cloneElement(m,w):C.exports.cloneElement(m
.`.concat(Ule,` {
overflow: hidden `).concat(r,`;
padding-right: `).concat(s,"px ").concat(r,`;
}
body {
overflow: hidden `).concat(r,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
padding-left: `.concat(i,`px;
padding-top: `).concat(o,`px;
padding-right: `).concat(a,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(s,"px ").concat(r,`;
`),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
}
.`).concat(Jy,` {
right: `).concat(s,"px ").concat(r,`;
}
.`).concat(e3,` {
margin-right: `).concat(s,"px ").concat(r,`;
}
.`).concat(Jy," .").concat(Jy,` {
right: 0 `).concat(r,`;
}
.`).concat(e3," .").concat(e3,` {
margin-right: 0 `).concat(r,`;
}
body {
`).concat(Gle,": ").concat(s,`px;
}
`)},rue=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r,o=C.exports.useMemo(function(){return eue(i)},[i]);return S(tue,{styles:nue(o,!t,i,n?"":"!important")})},V6=!1;if(typeof window<"u")try{var J2=Object.defineProperty({},"passive",{get:function(){return V6=!0,!0}});window.addEventListener("test",J2,J2),window.removeEventListener("test",J2,J2)}catch{V6=!1}var gp=V6?{passive:!1}:!1,iue=function(e){return e.tagName==="TEXTAREA"},Nz=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!iue(e)&&n[t]==="visible")},oue=function(e){return Nz(e,"overflowY")},aue=function(e){return Nz(e,"overflowX")},DT=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=Dz(e,n);if(r){var i=zz(e,n),o=i[1],a=i[2];if(o>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},sue=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},lue=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Dz=function(e,t){return e==="v"?oue(t):aue(t)},zz=function(e,t){return e==="v"?sue(t):lue(t)},uue=function(e,t){return e==="h"&&t==="rtl"?-1:1},cue=function(e,t,n,r,i){var o=uue(e,window.getComputedStyle(t).direction),a=o*r,s=n.target,l=t.contains(s),d=!1,p=a>0,g=0,m=0;do{var y=zz(e,s),b=y[0],w=y[1],P=y[2],E=w-P-o*b;(b||E)&&Dz(e,s)&&(g+=E,m+=b),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(p&&(i&&g===0||!i&&a>g)||!p&&(i&&m===0||!i&&-a>m))&&(d=!0),d},ey=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},zT=function(e){return[e.deltaX,e.deltaY]},FT=function(e){return e&&"current"in e?e.current:e},due=function(e,t){return e[0]===t[0]&&e[1]===t[1]},fue=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},hue=0,mp=[];function pue(e){var t=C.exports.useRef([]),n=C.exports.useRef([0,0]),r=C.exports.useRef(),i=C.exports.useState(hue++)[0],o=C.exports.useState(function(){return Oz()})[0],a=C.exports.useRef(e);C.exports.useEffect(function(){a.current=e},[e]),C.exports.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var w=u6([e.lockRef.current],(e.shards||[]).map(FT),!0).filter(Boolean);return w.forEach(function(P){return P.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),w.forEach(function(P){return P.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=C.exports.useCallback(function(w,P){if("touches"in w&&w.touches.length===2)return!a.current.allowPinchZoom;var E=ey(w),k=n.current,L="deltaX"in w?w.deltaX:k[0]-E[0],I="deltaY"in w?w.deltaY:k[1]-E[1],N,D=w.target,F=Math.abs(L)>Math.abs(I)?"h":"v";if("touches"in w&&F==="h"&&D.type==="range")return!1;var $=DT(F,D);if(!$)return!0;if($?N=F:(N=F==="v"?"h":"v",$=DT(F,D)),!$)return!1;if(!r.current&&"changedTouches"in w&&(L||I)&&(r.current=N),!N)return!0;var K=r.current||N;return cue(K,P,w,K==="h"?L:I,!0)},[]),l=C.exports.useCallback(function(w){var P=w;if(!(!mp.length||mp[mp.length-1]!==o)){var E="deltaY"in P?zT(P):ey(P),k=t.current.filter(function(N){return N.name===P.type&&N.target===P.target&&due(N.delta,E)})[0];if(k&&k.should){P.cancelable&&P.preventDefault();return}if(!k){var L=(a.current.shards||[]).map(FT).filter(Boolean).filter(function(N){return N.contains(P.target)}),I=L.length>0?s(P,L[0]):!a.current.noIsolation;I&&P.cancelable&&P.preventDefault()}}},[]),d=C.exports.useCallback(function(w,P,E,k){var L={name:w,delta:P,target:E,should:k};t.current.push(L),setTimeout(function(){t.current=t.current.filter(function(I){return I!==L})},1)},[]),p=C.exports.useCallback(function(w){n.current=ey(w),r.current=void 0},[]),g=C.exports.useCallback(function(w){d(w.type,zT(w),w.target,s(w,e.lockRef.current))},[]),m=C.exports.useCallback(function(w){d(w.type,ey(w),w.target,s(w,e.lockRef.current))},[]);C.exports.useEffect(function(){return mp.push(o),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:m}),document.addEventListener("wheel",l,gp),document.addEventListener("touchmove",l,gp),document.addEventListener("touchstart",p,gp),function(){mp=mp.filter(function(w){return w!==o}),document.removeEventListener("wheel",l,gp),document.removeEventListener("touchmove",l,gp),document.removeEventListener("touchstart",p,gp)}},[]);var y=e.removeScrollBar,b=e.inert;return oe(Bn,{children:[b?S(o,{styles:fue(i)}):null,y?S(rue,{gapMode:"margin"}):null]})}const gue=qse(Rz,pue);var Fz=C.exports.forwardRef(function(e,t){return S(j4,{...Sl({},e,{ref:t,sideCar:gue})})});Fz.classNames=j4.classNames;const Bz=Fz;var gh=(...e)=>e.filter(Boolean).join(" ");function yg(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var mue=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}},U6=new mue;function vue(e,t){C.exports.useEffect(()=>(t&&U6.add(e),()=>{U6.remove(e)}),[t,e])}function yue(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:i=!0,closeOnEsc:o=!0,useInert:a=!0,onOverlayClick:s,onEsc:l}=e,d=C.exports.useRef(null),p=C.exports.useRef(null),[g,m,y]=bue(r,"chakra-modal","chakra-modal--header","chakra-modal--body");xue(d,t&&a),vue(d,t);const b=C.exports.useRef(null),w=C.exports.useCallback($=>{b.current=$.target},[]),P=C.exports.useCallback($=>{$.key==="Escape"&&($.stopPropagation(),o&&n?.(),l?.())},[o,n,l]),[E,k]=C.exports.useState(!1),[L,I]=C.exports.useState(!1),N=C.exports.useCallback(($={},K=null)=>({role:"dialog",...$,ref:Fn(K,d),id:g,tabIndex:-1,"aria-modal":!0,"aria-labelledby":E?m:void 0,"aria-describedby":L?y:void 0,onClick:yg($.onClick,j=>j.stopPropagation())}),[y,L,g,m,E]),D=C.exports.useCallback($=>{$.stopPropagation(),b.current===$.target&&(!U6.isTopModal(d)||(i&&n?.()
45deg,
${t} 25%,
transparent 25%,
transparent 50%,
${t} 50%,
${t} 75%,
transparent 75%,
transparent
)`,backgroundSize:`${e} ${e}`}}function dfe(e){const t=xF().toHexString();return!e||lfe(e)?t:e.string&&e.colors?hfe(e.string,e.colors):e.string&&!e.colors?ffe(e.string):e.colors&&!e.string?pfe(e.colors):t}function ffe(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r<e.length;r+=1)t=e.charCodeAt(r)+((t<<5)-t),t=t&t;let n="#";for(let r=0;r<3;r+=1)n+=`00${(t>>r*8&255).toString(16)}`.substr(-2);return n}function hfe(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;r<e.length;r+=1)n=e.charCodeAt(r)+((n<<5)-n),n=n&n;return n=(n%t.length+t.length)%t.length,t[n]}function pfe(e){return e[Math.floor(Math.random()*e.length)]}function Te(e,t){return n=>n.colorMode==="dark"?t:e}function C7(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function gfe(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function CF(e){return gfe(e)&&e.reference?e.reference:String(e)}var tx=(e,...t)=>t.map(CF).join(` ${e} `).replace(/calc/g,""),YT=(...e)=>`calc(${tx("+",...e)})`,XT=(...e)=>`calc(${tx("-",...e)})`,q6=(...e)=>`calc(${tx("*",...e)})`,QT=(...e)=>`calc(${tx("/",...e)})`,JT=e=>{const t=CF(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:q6(t,-1)},Cu=Object.assign(e=>({add:(...t)=>Cu(YT(e,...t)),subtract:(...t)=>Cu(XT(e,...t)),multiply:(...t)=>Cu(q6(e,...t)),divide:(...t)=>Cu(QT(e,...t)),negate:()=>Cu(JT(e)),toString:()=>e.toString()}),{add:YT,subtract:XT,multiply:q6,divide:QT,negate:JT});function mfe(e){return!Number.isInteger(parseFloat(e.toString()))}function vfe(e,t="-"){return e.replace(/\s+/g,t)}function _F(e){const t=vfe(e.toString());return t.includes("\\.")?e:mfe(e)?t.replace(".","\\."):e}function yfe(e,t=""){return[t,_F(e)].filter(Boolean).join("-")}function xfe(e,t){return`var(${_F(e)}${t?`, ${t}`:""})`}function bfe(e,t=""){return`--${yfe(e,t)}`}function Go(e,t){const n=bfe(e,t?.prefix);return{variable:n,reference:xfe(n,Sfe(t?.fallback))}}function Sfe(e){return typeof e=="string"?e:e?.reference}var{definePartsStyle:wfe,defineMultiStyleConfig:Cfe}=ir(bde.keys),_fe={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},kfe={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},Efe={pt:"2",px:"4",pb:"5"},Pfe={fontSize:"1.25em"},Tfe=wfe({container:_fe,button:kfe,panel:Efe,icon:Pfe}),Lfe=Cfe({baseStyle:Tfe}),{definePartsStyle:_v,defineMultiStyleConfig:Afe}=ir(Sde.keys),Ou=xd("alert-fg"),kv=xd("alert-bg"),Mfe=_v({container:{bg:kv.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Ou.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Ou.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function _7(e){const{theme:t,colorScheme:n}=e,r=oi(t,`${n}.100`,n),i=A0(`${n}.200`,.16)(t);return Te(r,i)(e)}var Ife=_v(e=>{const{colorScheme:t}=e,n=Te(`${t}.500`,`${t}.200`)(e);return{container:{[kv.variable]:_7(e),[Ou.variable]:`colors.${n}`}}}),Rfe=_v(e=>{const{colorScheme:t}=e,n=Te(`${t}.500`,`${t}.200`)(e);return{container:{[kv.variable]:_7(e),[Ou.variable]:`colors.${n}`,paddingStart:"3",borderStartWidth:"4px",borderStartColor:Ou.reference}}}),Ofe=_v(e=>{const{colorScheme:t}=e,n=Te(`${t}.500`,`${t}.200`)(e);return{container:{[kv.variable]:_7(e),[Ou.variable]:`colors.${n}`,pt:"2",borderTopWidth:"4px",borderTopColor:Ou.reference}}}),Nfe=_v(e=>{const{colorScheme:t}=e,n=Te(`${t}.500`,`${t}.200`)(e),r=Te("white","gray.900")(e);return{container:{[kv.variable]:`colors.${n}`,[Ou.variable]:`colors.${r}`,color:Ou.reference}}}),Dfe={subtle:Ife,"left-accent":Rfe,"top-accent":Ofe,solid:Nfe},zfe=Afe({baseStyle:Mfe,variants:Dfe,defaultProps:{variant:"subtle",colorScheme:"blue"}}),kF={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"
to right,
transparent 0%,
${oi(n,a)} 50%,
transparent 100%
)`;return{...!r&&i&&o,...r?{bgImage:s}:{bgColor:a}}},T0e={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},L0e=e=>({bg:Te("gray.100","whiteAlpha.300")(e)}),A0e=e=>({transitionProperty:"common",transitionDuration:"slow",...P0e(e)}),M0e=bg(e=>({label:T0e,filledTrack:A0e(e),track:L0e(e)})),I0e={xs:bg({track:{h:"1"}}),sm:bg({track:{h:"2"}}),md:bg({track:{h:"3"}}),lg:bg({track:{h:"4"}})},R0e=E0e({sizes:I0e,baseStyle:M0e,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:O0e,definePartsStyle:i3}=ir(Dde.keys),N0e=e=>{var t;const n=(t=Hr(y5.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"}}}},D0e=i3(e=>{var t,n,r,i;return{label:(n=(t=y5).baseStyle)==null?void 0:n.call(t,e).label,container:(i=(r=y5).baseStyle)==null?void 0:i.call(r,e).container,control:N0e(e)}}),z0e={md:i3({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:i3({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:i3({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},F0e=O0e({baseStyle:D0e,sizes:z0e,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:B0e,definePartsStyle:$0e}=ir(zde.keys),H0e=e=>{var t;return{...(t=bn.baseStyle)==null?void 0:t.field,bg:Te("white","gray.700")(e),appearance:"none",paddingBottom:"1px",lineHeight:"normal","> option, > optgroup":{bg:Te("white","gray.700")(e)}}},W0e={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},V0e=$0e(e=>({field:H0e(e),icon:W0e})),oy={paddingInlineEnd:"8"},nL,rL,iL,oL,aL,sL,lL,uL,U0e={lg:{...(nL=bn.sizes)==null?void 0:nL.lg,field:{...(rL=bn.sizes)==null?void 0:rL.lg.field,...oy}},md:{...(iL=bn.sizes)==null?void 0:iL.md,field:{...(oL=bn.sizes)==null?void 0:oL.md.field,...oy}},sm:{...(aL=bn.sizes)==null?void 0:aL.sm,field:{...(sL=bn.sizes)==null?void 0:sL.sm.field,...oy}},xs:{...(lL=bn.sizes)==null?void 0:lL.xs,field:{...(uL=bn.sizes)==null?void 0:uL.sm.field,...oy},icon:{insetEnd:"1"}}},G0e=B0e({baseStyle:V0e,sizes:U0e,variants:bn.variants,defaultProps:bn.defaultProps}),j0e=xd("skeleton-start-color"),q0e=xd("skeleton-end-color"),K0e=e=>{const t=Te("gray.100","gray.800")(e),n=Te("gray.400","gray.600")(e),{startColor:r=t,endColor:i=n,theme:o}=e,a=oi(o,r),s=oi(o,i);return{[j0e.variable]:a,[q0e.variable]:s,opacity:.7,borderRadius:"2px",borderColor:a,background:s}},Z0e={baseStyle:K0e},Y0e=e=>({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",bg:Te("white","gray.700")(e)}}),X0e={baseStyle:Y0e},{defineMultiStyleConfig:Q0e,definePartsStyle:nx}=ir(Fde.keys),Um=xd("slider-thumb-size"),Gm=xd("slider-track-size"),J0e=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...C7({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},e1e=e=>({...C7({orientation:e.orientation,horizontal:{h:Gm.reference},vertical:{w:Gm.reference}}),overflow:"hidden",borderRadius:"sm",bg:Te("gray.200","whiteAlpha.200")(e),_disabled:{bg:Te("gray.300","whiteAlpha.300")(e)}}),t1e=e=>{const{orientation:t}=e;return{...C7({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:Um.reference,h:Um.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"}}},n1e=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",bg:Te(`${t}.500`,`${t}.200`)(e)}},r1e=nx(e=>({container:J0e(e),track:e1e(e),thumb:t1e(e),filledTrack:n1e(e)})),i1e=nx({container:{[Um.variable]:"sizes.4",[
* @license React
* use-sync-external-store-shim.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 M0=C.exports;function Vme(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ume=typeof Object.is=="function"?Object.is:Vme,Gme=M0.useState,jme=M0.useEffect,qme=M0.useLayoutEffect,Kme=M0.useDebugValue;function Zme(e,t){var n=t(),r=Gme({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return qme(function(){i.value=n,i.getSnapshot=t,bS(i)&&o({inst:i})},[e,n,t]),jme(function(){return bS(i)&&o({inst:i}),e(function(){bS(i)&&o({inst:i})})},[e]),Kme(n),n}function bS(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ume(e,n)}catch{return!0}}function Yme(e,t){return t()}var Xme=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Yme:Zme;KF.useSyncExternalStore=M0.useSyncExternalStore!==void 0?M0.useSyncExternalStore:Xme;(function(e){e.exports=KF})(qF);var ZF={exports:{}},YF={};/**
* @license React
* use-sync-external-store-shim/with-selector.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 ix=C.exports,Qme=qF.exports;function Jme(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var eve=typeof Object.is=="function"?Object.is:Jme,tve=Qme.useSyncExternalStore,nve=ix.useRef,rve=ix.useEffect,ive=ix.useMemo,ove=ix.useDebugValue;YF.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=nve(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=ive(function(){function l(y){if(!d){if(d=!0,p=y,y=r(y),i!==void 0&&a.hasValue){var b=a.value;if(i(b,y))return g=b}return g=y}if(b=g,eve(p,y))return b;var w=r(y);return i!==void 0&&i(b,w)?b:(p=y,g=w)}var d=!1,p,g,m=n===void 0?null:n;return[function(){return l(t())},m===null?void 0:function(){return l(m())}]},[t,n,r,i]);var s=tve(e,o[0],o[1]);return rve(function(){a.hasValue=!0,a.value=s},[s]),ove(s),s};(function(e){e.exports=YF})(ZF);function ave(e){e()}let XF=ave;const sve=e=>XF=e,lve=()=>XF,hd=le.createContext(null);function QF(){return C.exports.useContext(hd)}const uve=()=>{throw new Error("uSES not initialized!")};let JF=uve;const cve=e=>{JF=e},dve=(e,t)=>e===t;function fve(e=hd){const t=e===hd?QF:()=>C.exports.useContext(e);return function(r,i=dve){const{store:o,subscription:a,getServerState:s}=t(),l=JF(a.addNestedSub,o.getState,s||o.getState,r,i);return C.exports.useDebugValue(l),l}}const hve=fve();var pve={exports:{}},Mn={};/**
* @license React
* react-is.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 N7=Symbol.for("react.element"),D7=Symbol.for("react.portal"),ox=Symbol.for("react.fragment"),ax=Symbol.for("react.strict_mode"),sx=Symbol.for("react.profiler"),lx=Symbol.for("react.provider"),ux=Symbol.for("react.context"),gve=Symbol.for("react.server_context"),cx=Symbol.for("react.forward_ref"),dx=Symbol.for("react.suspense"),fx=Symbol.for("react.suspense_list"),hx=Symbol.for("react.memo"),px=Symbol.for("react.lazy"),mve=Symbol.for("react.offscreen"),eB;eB=Symbol.for("react.module.reference");function os(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case N7:switch(e=e.type,e){case ox:case sx:case ax:case dx:case fx:return e;default:switch(e=e&&e.$$typeof,e){case gve:case ux:case cx:case px:case hx:case lx:return e;default:return t}}case D7:return t}}}Mn.ContextConsumer=ux;Mn.ContextProvider=lx;Mn.Element=N7;Mn.ForwardRef=cx;Mn.Fragment=ox;Mn.Lazy=px;Mn.Memo=hx;Mn.Portal=D7;Mn.Profiler=sx;Mn.StrictMode=ax;Mn.Suspense=dx;Mn.SuspenseList=fx;Mn.isAsyncMode=function(){return!1};Mn.isConcurrentMode=function(){return!1};Mn.isContextConsumer=function(e){return os(e)===ux};Mn.isContextProvider=function(e){return os(e)===lx};Mn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===N7};Mn.isForwardRef=function(e){return os(e)===cx};Mn.isFragment=function(e){return os(e)===ox};Mn.isLazy=function(e){return os(e)===px};Mn.isMemo=function(e){return os(e)===hx};Mn.isPortal=function(e){return os(e)===D7};Mn.isProfiler=function(e){return os(e)===sx};Mn.isStrictMode=function(e){return os(e)===ax};Mn.isSuspense=function(e){return os(e)===dx};Mn.isSuspenseList=function(e){return os(e)===fx};Mn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ox||e===sx||e===ax||e===dx||e===fx||e===mve||typeof e=="object"&&e!==null&&(e.$$typeof===px||e.$$typeof===hx||e.$$typeof===lx||e.$$typeof===ux||e.$$typeof===cx||e.$$typeof===eB||e.getModuleId!==void 0)};Mn.typeOf=os;(function(e){e.exports=Mn})(pve);function vve(){const e=lve();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],i=t;for(;i;)r.push(i),i=i.next;return r},subscribe(r){let i=!0,o=n={callback:r,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){!i||t===null||(i=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}const IL={notify(){},get:()=>[]};function yve(e,t){let n,r=IL;function i(g){return l(),r.subscribe(g)}function o(){r.notify()}function a(){p.onStateChange&&p.onStateChange()}function s(){return Boolean(n)}function l(){n||(n=t?t.addNestedSub(a):e.subscribe(a),r=vve())}function d(){n&&(n(),n=void 0,r.clear(),r=IL)}const p={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:s,trySubscribe:l,tryUnsubscribe:d,getListeners:()=>r};return p}const xve=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",bve=xve?C.exports.useLayoutEffect:C.exports.useEffect;function Sve({store:e,context:t,children:n,serverState:r}){const i=C.exports.useMemo(()=>{const s=yve(e);return{store:e,subscription:s,getServerState:r?()=>r:void 0}},[e,r]),o=C.exports.useMemo(()=>e.getState(),[e]);return bve(()=>{const{subscription:s}=i;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),o!==e.getState()&&s.notifyNestedSubs(),()=>{s.tryUnsubscribe(),s.onStateChange=void 0}},[i,o]),S((t||hd).Provider,{value:i,children:n})}function tB(e=hd){const t=e===hd?QF:()=>C.exports.useContext(e);return function(){const{store:r}=t();return r}}const wve=tB();function Cve(e=hd){const t=e===hd?wve:tB(e);return function(){return t().dispatch}}const _ve=Cve();cve(ZF.exports.useSyncExternalStoreWithSelector);sve(Bl.exports.unstable_batchedUpdates);var z7="persist:",nB="persist/FLUSH",F7="persist/REHYDRATE",rB="persist/PAUSE",iB="persist/PERSIST",oB="persist/PURGE",aB="persist/REGISTER",kve=-1;function a3(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?a3=function(n){return typeof n}:a3=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symb
* @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,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",d=500,p="__lodash_placeholder__",g=1,m=2,y=4,b=1,w=2,P=1,E=2,k=4,L=8,I=16,N=32,D=64,F=128,$=256,K=512,j=30,q="...",fe=800,pe=16,be=1,we=2,xe=3,J=1/0,G=9007199254740991,te=17976931348623157e292,Q=0/0,W=4294967295,ie=W-1,ce=W>>>1,Se=[["ary",F],["bind",P],["bindKey",E],["curry",L],["curryRight",I],["flip",K],["partial",N],["partialRight",D],["rearg",$]],De="[object Arguments]",Ie="[object Array]",Ve="[object AsyncFunction]",ke="[object Boolean]",We="[object Date]",it="[object DOMException]",ht="[object Error]",Ht="[object Function]",Nt="[object GeneratorFunction]",Re="[object Map]",tt="[object Number]",gt="[object Null]",at="[object Object]",mt="[object Promise]",gn="[object Proxy]",vt="[object RegExp]",Wt="[object Set]",rn="[object String]",Dt="[object Symbol]",Oe="[object Undefined]",et="[object WeakMap]",Gt="[object WeakSet]",Vt="[object ArrayBuffer]",Ee="[object DataView]",Et="[object Float32Array]",Jt="[object Float64Array]",Hn="[object Int8Array]",Ge="[object Int16Array]",Lt="[object Int32Array]",Be="[object Uint8Array]",ut="[object Uint8ClampedArray]",je="[object Uint16Array]",St="[object Uint32Array]",en=/\b__p \+= '';/g,Kn=/\b(__p \+=) '' \+/g,yr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Wr=/&(?:amp|lt|gt|quot|#39);/g,Hi=/[&<>"']/g,Ld=RegExp(Wr.source),Vr=RegExp(Hi.source),qu=/<%-([\s\S]+?)%>/g,Ad=/<%([\s\S]+?)%>/g,Bs=/<%=([\s\S]+?)%>/g,Ku=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Zu=/^\w*$/,or=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Vl=/[\\^$.*+?()[\]{}|]/g,Md=RegExp(Vl.source),$s=/^\s+/,Ul=/\s/,Id=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,bi=/\{\n\/\* \[wrapped with (.+)\] \*/,Hs=/,? & /,Rd=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Od=/[()=,{}\[\]\/\s]/,Nd=/\\(\\)?/g,Dd=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,si=/\w*$/,zd=/^[-+]0x[0-9a-f]+$/i,Fd=/^0b[01]+$/i,Bd=/^\[object .+?Constructor\]$/,$d=/^0o[0-7]+$/i,Hd=/^(?:0|[1-9]\d*)$/,Wd=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wo=/($^)/,Vd=/['\n\r\u2028\u2029\\]/g,Wi="\\ud800-\\udfff",jo="\\u0300-\\u036f",ss="\\ufe20-\\ufe2f",eo="\\u20d0-\\u20ff",ka=jo+ss+eo,Yu="\\u2700-\\u27bf",Ws="a-z\\xdf-\\xf6\\xf8-\\xff",Ea="\\xac\\xb1\\xd7\\xf7",Vi="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",mn="\\u2000-\\u206f",dn=" \\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",to="A-Z\\xc0-\\xd6\\xd8-\\xde",ar="\\ufe0e\\ufe0f",Tr=Ea+Vi+mn+dn,no="['\u2019]",Pa="["+Wi+"]",Lr="["+Tr+"]",qo="["+ka+"]",Gl="\\d+",Co="["+Yu+"]",ro="["+Ws+"]",jl="[^"+Wi+Tr+Gl+Yu+Ws+to+"]",Qr="\\ud83c[\\udffb-\\udfff]",ql="(?:"+qo+"|"+Qr+")",Xu="[^"+Wi+"]",Kl="(?:\\ud83c[\\udde6-\\uddff]){2}",Ta="[\\ud800-\\udbff][\\udc00-\\udfff]",Si="["+to+"]",La="\\u200d",ls="(?:"+ro+"|"+jl+")",Ud="(?:"+Si+"|"+jl+")",Aa="(?:"+no+"(?:d|ll|m|re|s|t|ve))?",Vs="(?:"+no+"(?:D|LL|M|RE|S|T|VE))?",Zl=ql+"?",Us="["+ar+"]?",wi="(?:"+La+"(?:"+[Xu,Kl,Ta].join("|")+")"+Us+Zl+")*",us="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ko="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",At=Us+Zl+wi,Qu="(?:"+[Co,Kl,Ta].join("|")+")"+At,cs="(?:"+[Xu+qo+"?",qo,Kl,Ta,Pa].join("|")+")",Ma=RegExp(no,"g"),Yl=RegExp(qo,"g"),Ar=RegExp(Qr+"(?="+Qr+")|"+cs+At,"g"),fn=RegExp([Si+"?"+ro+"+"+Aa+"(?="+[Lr,Si,"$"].join("|")+")",Ud+"+"+Vs+"(?="+[Lr,Si+ls,"$"].join("|")+")",Si+"?"+ls+"+"+Aa,Si+"+"+Vs,Ko,us,Gl,Qu].join("|"),"g"),Xl=RegExp("["+La+Wi+ka+ar+"]"),Ql=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Jl=["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"],eu=-1,on={};o
/* [wrapped with `+h+`] */
`)}function hW(u){return It(u)||Cf(u)||!!(d1&&u&&u[d1])}function du(u,h){var x=typeof u;return h=h??G,!!h&&(x=="number"||x!="symbol"&&Hd.test(u))&&u>-1&&u%1==0&&u<h}function uo(u,h,x){if(!dr(x))return!1;var A=typeof h;return(A=="number"?Mo(x)&&du(h,x.length):A=="string"&&h in x)?bs(x[h],u):!1}function Wx(u,h){if(It(u))return!1;var x=typeof u;return x=="number"||x=="symbol"||x=="boolean"||u==null||oa(u)?!0:Zu.test(u)||!Ku.test(u)||h!=null&&u in hn(h)}function pW(u){var h=typeof u;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?u!=="__proto__":u===null}function Vx(u){var h=ve(u),x=B[h];if(typeof x!="function"||!(h in Ut.prototype))return!1;if(u===x)return!0;var A=ae(x);return!!A&&u===A[0]}function gW(u){return!!ac&&ac in u}var mW=Qn?fu:ab;function W1(u){var h=u&&u.constructor,x=typeof h=="function"&&h.prototype||wn;return u===x}function M_(u){return u===u&&!dr(u)}function I_(u,h){return function(x){return x==null?!1:x[u]===h&&(h!==n||u in hn(x))}}function vW(u){var h=m2(u,function(A){return x.size===d&&x.clear(),A}),x=h.cache;return h}function yW(u,h){var x=u[1],A=h[1],O=x|A,H=O<(P|E|F),Z=A==F&&x==L||A==F&&x==$&&u[7].length<=h[8]||A==(F|$)&&h[7].length<=h[8]&&x==L;if(!(H||Z))return u;A&P&&(u[2]=h[2],O|=x&P?0:k);var X=h[3];if(X){var se=u[3];u[3]=se?c2(se,X,h[4]):X,u[4]=se?Xo(u[3],p):h[4]}return X=h[5],X&&(se=u[5],u[5]=se?z1(se,X,h[6]):X,u[6]=se?Xo(u[5],p):h[6]),X=h[7],X&&(u[7]=X),A&F&&(u[8]=u[8]==null?h[8]:ei(u[8],h[8])),u[9]==null&&(u[9]=h[9]),u[0]=h[0],u[1]=O,u}function xW(u){var h=[];if(u!=null)for(var x in hn(u))h.push(x);return h}function bW(u){return Mh.call(u)}function R_(u,h,x){return h=xr(h===n?u.length-1:h,0),function(){for(var A=arguments,O=-1,H=xr(A.length-h,0),Z=ge(H);++O<H;)Z[O]=A[h+O];O=-1;for(var X=ge(h+1);++O<h;)X[O]=A[O];return X[h]=x(Z),Ci(u,this,X)}}function O_(u,h){return h.length<2?u:Xs(u,Nr(h,0,-1))}function SW(u,h){for(var x=u.length,A=ei(h.length,x),O=Li(u);A--;){var H=h[A];u[A]=du(H,x)?O[H]:n}return u}function Ux(u,h){if(!(h==="constructor"&&typeof u[h]=="function")&&h!="__proto__")return u[h]}var N_=z_(mf),V1=af||function(u,h){return qe.setTimeout(u,h)},Gx=z_(Qh);function D_(u,h,x){var A=h+"";return Gx(u,fW(A,wW(uW(A),x)))}function z_(u){var h=0,x=0;return function(){var A=f1(),O=pe-(A-x);if(x=A,O>0){if(++h>=fe)return arguments[0]}else h=0;return u.apply(n,arguments)}}function f2(u,h){var x=-1,A=u.length,O=A-1;for(h=h===n?A:h;++x<h;){var H=pf(x,O),Z=u[H];u[H]=u[x],u[x]=Z}return u.length=h,u}var F_=vW(function(u){var h=[];return u.charCodeAt(0)===46&&h.push(""),u.replace(or,function(x,A,O,H){h.push(O?H.replace(Nd,"$1"):A||x)}),h});function sl(u){if(typeof u=="string"||oa(u))return u;var h=u+"";return h=="0"&&1/u==-J?"-0":h}function wf(u){if(u!=null){try{return lr.call(u)}catch{}try{return u+""}catch{}}return""}function wW(u,h){return Wn(Se,function(x){var A="_."+x[0];h&x[1]&&!Ui(u,A)&&u.push(A)}),u.sort()}function B_(u){if(u instanceof Ut)return u.clone();var h=new oo(u.__wrapped__,u.__chain__);return h.__actions__=Li(u.__actions__),h.__index__=u.__index__,h.__values__=u.__values__,h}function CW(u,h,x){(x?uo(u,h,x):h===n)?h=1:h=xr(Ot(h),0);var A=u==null?0:u.length;if(!A||h<1)return[];for(var O=0,H=0,Z=ge(sf(A/h));O<A;)Z[H++]=Nr(u,O,O+=h);return Z}function _W(u){for(var h=-1,x=u==null?0:u.length,A=0,O=[];++h<x;){var H=u[h];H&&(O[A++]=H)}return O}function kW(){var u=arguments.length;if(!u)return[];for(var h=ge(u-1),x=arguments[0],A=u;A--;)h[A-1]=arguments[A];return Ra(It(x)?Li(x):[x],Rr(h,1))}var EW=Ct(function(u,h){return Dr(u)?bc(u,Rr(h,1,Dr,!0)):[]}),PW=Ct(function(u,h){var x=Fa(h);return Dr(x)&&(x=n),Dr(u)?bc(u,Rr(h,1,Dr,!0),Le(x,2)):[]}),TW=Ct(function(u,h){var x=Fa(h);return Dr(x)&&(x=n),Dr(u)?bc(u,Rr(h,1,Dr,!0),n,x):[]});function LW(u,h,x){var A=u==null?0:u.length;return A?(h=x||h===n?1:Ot(h),Nr(u,h<0?0:h,A)):[]}function AW(u,h,x){var A=u==null?0:u.length;return A?(h=x||h===n?1:Ot(h),h=A-h,Nr(u,0,h<0?0:h)):[]}function MW(u,h){return u&&u.length?Pc(u,Le(h,3),!0,!0):[]}function IW(u,h){return u&&u.length?Pc(u,Le(h,3),!0):[]}function RW(u,h,x,A){var O=u==null?0:u.length;return O?(x&&t
`;u.replace(Xe,function(bt,qt,nn,aa,co,sa){return nn||(nn=aa),Ae+=u.slice(_e,sa).replace(Vd,qs),qt&&(X=!0,Ae+=`' +
__e(`+qt+`) +
'`),co&&(se=!0,Ae+=`';
`+co+`;
__p += '`),nn&&(Ae+=`' +
((__t = (`+nn+`)) == null ? '' : __t) +
'`),_e=sa+bt.length,bt}),Ae+=`';
`;var xt=an.call(h,"variable")&&h.variable;if(!xt)Ae=`with (obj) {
`+Ae+`
}
`;else if(Od.test(xt))throw new _t(s);Ae=(se?Ae.replace(en,""):Ae).replace(Kn,"$1").replace(yr,"$1;"),Ae="function("+(xt||"obj")+`) {
`+(xt?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(X?", __e = _.escape":"")+(se?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+Ae+`return __p
}`;var Bt=vk(function(){return tn(H,ct+"return "+Ae).apply(n,Z)});if(Bt.source=Ae,Yx(Bt))throw Bt;return Bt}function WG(u){return Cn(u).toLowerCase()}function VG(u){return Cn(u).toUpperCase()}function UG(u,h,x){if(u=Cn(u),u&&(x||h===n))return io(u);if(!u||!(h=so(h)))return u;var A=Gi(u),O=Gi(h),H=Yo(A,O),Z=ds(A,O)+1;return ys(A,H,Z).join("")}function GG(u,h,x){if(u=Cn(u),u&&(x||h===n))return u.slice(0,a1(u)+1);if(!u||!(h=so(h)))return u;var A=Gi(u),O=ds(A,Gi(h))+1;return ys(A,0,O).join("")}function jG(u,h,x){if(u=Cn(u),u&&(x||h===n))return u.replace($s,"");if(!u||!(h=so(h)))return u;var A=Gi(u),O=Yo(A,Gi(h));return ys(A,O).join("")}function qG(u,h){var x=j,A=q;if(dr(h)){var O="separator"in h?h.separator:O;x="length"in h?Ot(h.length):x,A="omission"in h?so(h.omission):A}u=Cn(u);var H=u.length;if(ru(u)){var Z=Gi(u);H=Z.length}if(x>=H)return u;var X=x-Oa(A);if(X<1)return A;var se=Z?ys(Z,0,X).join(""):u.slice(0,X);if(O===n)return se+A;if(Z&&(X+=se.length-X),Xx(O)){if(u.slice(X).search(O)){var _e,Pe=se;for(O.global||(O=tf(O.source,Cn(si.exec(O))+"g")),O.lastIndex=0;_e=O.exec(Pe);)var Ae=_e.index;se=se.slice(0,Ae===n?X:Ae)}}else if(u.indexOf(so(O),X)!=X){var Xe=se.lastIndexOf(O);Xe>-1&&(se=se.slice(0,Xe))}return se+A}function KG(u){return u=Cn(u),u&&Ld.test(u)?u.replace(Wr,Wv):u}var ZG=al(function(u,h,x){return u+(x?" ":"")+h.toUpperCase()}),eb=ap("toUpperCase");function mk(u,h,x){return u=Cn(u),h=x?n:h,h===n?Th(u)?ef(u):r1(u):u.match(h)||[]}var vk=Ct(function(u,h){try{return Ci(u,n,h)}catch(x){return Yx(x)?x:new _t(x)}}),YG=Jn(function(u,h){return Wn(h,function(x){x=sl(x),ea(u,x,Kx(u[x],u))}),u});function XG(u){var h=u==null?0:u.length,x=Le();return u=h?Nn(u,function(A){if(typeof A[1]!="function")throw new _i(a);return[x(A[0]),A[1]]}):[],Ct(function(A){for(var O=-1;++O<h;){var H=u[O];if(Ci(H[0],this,A))return Ci(H[1],this,A)}})}function QG(u){return Fh(fi(u,g))}function tb(u){return function(){return u}}function JG(u,h){return u==null||u!==u?h:u}var ej=$1(),tj=$1(!0);function Ro(u){return u}function nb(u){return cr(typeof u=="function"?u:fi(u,g))}function nj(u){return _c(fi(u,g))}function rj(u,h){return Js(u,fi(h,g))}var ij=Ct(function(u,h){return function(x){return ms(x,u,h)}}),oj=Ct(function(u,h){return function(x){return ms(u,x,h)}});function rb(u,h,x){var A=mi(h),O=Wh(h,A);x==null&&!(dr(h)&&(O.length||!A.length))&&(x=h,h=u,u=this,O=Wh(h,mi(h)));var H=!(dr(x)&&"chain"in x)||!!x.chain,Z=fu(u);return Wn(O,function(X){var se=h[X];u[X]=se,Z&&(u.prototype[X]=function(){var _e=this.__chain__;if(H||_e){var Pe=u(this.__wrapped__),Ae=Pe.__actions__=Li(this.__actions__);return Ae.push({func:se,args:arguments,thisArg:u}),Pe.__chain__=_e,Pe}return se.apply(u,Ra([this.value()],arguments))})}),u}function aj(){return qe._===this&&(qe._=l1),this}function ib(){}function sj(u){return u=Ot(u),Ct(function(h){return kc(h,u)})}var lj=H1(Nn),uj=H1(On),cj=H1(Ju);function yk(u){return Wx(u)?js(sl(u)):vs(u)}function dj(u){return function(h){return u==null?n:Xs(u,h)}}var fj=v(),hj=v(!0);function ob(){return[]}function ab(){return!1}function pj(){return{}}function gj(){return""}function mj(){return!0}function vj(u,h){if(u=Ot(u),u<1||u>G)return[];var x=W,A=ei(u,W);h=Le(h),u-=W;for(var O=Xd(A,h);++x<u;)h(x);return O}function yj(u){return It(u)?Nn(u,sl):oa(u)?[u]:Li(F_(Cn(u)))}function xj(u){var h=++nf;return Cn(u)+h}var bj=sp(function(u,h){return u+h},0),Sj=R("ceil"),wj=sp(function(u,h){return u/h},1),Cj=R("floor");function _j(u){return u&&u.length?Sr(u,Ro,Vh):n}function kj(u,h){return u&&u.length?Sr(u,Le(h,2),Vh):n}function Ej(u){return Kd(u,Ro)}function Pj(u,h){return Kd(u,Le(h,2))}function Tj(u){return u&&u.length?Sr(u,Ro,Qs):n}function Lj(u,h){return u&&u.length?Sr(u,Le(h,2),Qs):n}var Aj=sp(function(u,h){return u*h},1),Mj=R("round"),Ij=sp(function(u,h){return u-h},0);function Rj(u){return u&&u.length?Yd(u,Ro):0}function Oj(u,h){return u&&u.length?Yd(u,Le(h,2)):0}return B.after=nU,B.ary=Z_,B.assign=VU,B.assignIn=uk,B.assignInWith=b2,B.assignWith=UU,B.at=GU,B.before=Y_,B.bind=Kx,B.bindAll=YG,B.bindKey=X_,B.castArray=pU,B.chain=j_,B.chunk=CW,B.compact
`),n=+this.fontSize(),r=0,i=this.lineHeight()*n,o=this.attrs.width,a=this.attrs.height,s=o!==Cp&&o!==void 0,l=a!==Cp&&a!==void 0,d=this.padding(),p=o-d*2,g=a-d*2,m=0,y=this.wrap(),b=y!==KA,w=y!==aSe&&b,P=this.ellipsis();this.textArr=[],VS().font=this._getContextFont();for(var E=P?this._getTextWidth(WS):0,k=0,L=t.length;k<L;++k){var I=t[k],N=this._getTextWidth(I);if(s&&N>p)for(;I.length>0;){for(var D=0,F=I.length,$="",K=0;D<F;){var j=D+F>>>1,q=I.slice(0,j+1),fe=this._getTextWidth(q)+E;fe<=p?(D=j+1,$=q,K=fe):F=j}if($){if(w){var pe,be=I[$.length],we=be===_y||be===jA;we&&K<=p?pe=$.length:pe=Math.max($.lastIndexOf(_y),$.lastIndexOf(jA))+1,pe>0&&(D=pe,$=$.slice(0,D),K=this._getTextWidth($))}$=$.trimRight(),this._addTextLine($),r=Math.max(r,K),m+=i;var xe=this._shouldHandleEllipsis(m);if(xe){this._tryToAddEllipsisToLastLine();break}if(I=I.slice(D),I=I.trimLeft(),I.length>0&&(N=this._getTextWidth(I),N<=p)){this._addTextLine(I),m+=i,r=Math.max(r,N);break}}else break}else this._addTextLine(I),m+=i,r=Math.max(r,N),this._shouldHandleEllipsis(m)&&k<L-1&&this._tryToAddEllipsisToLastLine();if(l&&m+i>g)break;this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0)}this.textHeight=n,this.textWidth=r}_shouldHandleEllipsis(t){var n=+this.fontSize(),r=this.lineHeight()*n,i=this.attrs.height,o=i!==Cp&&i!==void 0,a=this.padding(),s=i-a*2,l=this.wrap(),d=l!==KA;return!d||o&&t+r>s}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,n=t!==Cp&&t!==void 0,r=this.padding(),i=t-r*2,o=this.ellipsis(),a=this.textArr[this.textArr.length-1];if(!(!a||!o)){if(n){var s=this._getTextWidth(a.text+WS)<i;s||(a.text=a.text.slice(0,a.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+WS)}}getStrokeScaleEnabled(){return!0}}mr.prototype._fillFunc=uSe;mr.prototype._strokeFunc=cSe;mr.prototype.className=eSe;mr.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];vr(mr);Y.overWriteSetter(mr,"width",p_());Y.overWriteSetter(mr,"height",p_());Y.addGetterSetter(mr,"fontFamily","Arial");Y.addGetterSetter(mr,"fontSize",12,$e());Y.addGetterSetter(mr,"fontStyle",rH);Y.addGetterSetter(mr,"fontVariant",rH);Y.addGetterSetter(mr,"padding",0,$e());Y.addGetterSetter(mr,"align",nH);Y.addGetterSetter(mr,"verticalAlign",tSe);Y.addGetterSetter(mr,"lineHeight",1,$e());Y.addGetterSetter(mr,"wrap",oSe);Y.addGetterSetter(mr,"ellipsis",!1,zs());Y.addGetterSetter(mr,"letterSpacing",0,$e());Y.addGetterSetter(mr,"text","",Q0());Y.addGetterSetter(mr,"textDecoration","");var fSe="",oH="normal";function aH(e){e.fillText(this.partialText,0,0)}function sH(e){e.strokeText(this.partialText,0,0)}class ai extends Ne{constructor(t){super(t),this.dummyCanvas=ue.createCanvasElement(),this.dataArray=[],this.dataArray=Rn.parsePathData(this.attrs.data),this.on("dataChange.konva",function(){this.dataArray=Rn.parsePathData(this.attrs.data),this._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_sceneFunc(t){t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",this.textBaseline()),t.setAttr("textAlign","left"),t.save();var n=this.textDecoration(),r=this.fill(),i=this.fontSize(),o=this.glyphInfo;n==="underline"&&t.beginPath();for(var a=0;a<o.length;a++){t.save();var s=o[a].p0;t.translate(s.x,s.y),t.rotate(o[a].rotation),this.partialText=o[a].text,t.fillStrokeShape(this),n==="underline"&&(a===0&&t.moveTo(0,i/2+1),t.lineTo(i,i/2+1)),t.restore()}n==="underline"&&(t.strokeStyle=r,t.lineWidth=i/20,t.stroke()),t.restore()}_hitFunc(t){t.beginPath();var n=this.glyphInfo;if(n.length>=1){var r=n[0].p0;t.moveTo(r.x,r.y)}for(var i=0;i<n.length;i++){var o=n[i].p1;t.lineTo(o.x,o.y)}t.setAttr("lineWidth",this.fontSize()),t.setAttr("strokeStyle",this.colorKey),t.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return ue.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height
* @license React
* react-reconciler.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 QSe=function(t){var n={},r=C.exports,i=Gp.exports,o=Object.assign;function a(c){for(var f="https://reactjs.org/docs/error-decoder.html?invariant="+c,v=1;v<arguments.length;v++)f+="&args[]="+encodeURIComponent(arguments[v]);return"Minified React error #"+c+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,l=Symbol.for("react.element"),d=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),y=Symbol.for("react.provider"),b=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),N=Symbol.iterator;function D(c){return c===null||typeof c!="object"?null:(c=N&&c[N]||c["@@iterator"],typeof c=="function"?c:null)}function F(c){if(c==null)return null;if(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case p:return"Fragment";case d:return"Portal";case m:return"Profiler";case g:return"StrictMode";case P:return"Suspense";case E:return"SuspenseList"}if(typeof c=="object")switch(c.$$typeof){case b:return(c.displayName||"Context")+".Consumer";case y:return(c._context.displayName||"Context")+".Provider";case w:var f=c.render;return c=c.displayName,c||(c=f.displayName||f.name||"",c=c!==""?"ForwardRef("+c+")":"ForwardRef"),c;case k:return f=c.displayName||null,f!==null?f:F(c.type)||"Memo";case L:f=c._payload,c=c._init;try{return F(c(f))}catch{}}return null}function $(c){var f=c.type;switch(c.tag){case 24:return"Cache";case 9:return(f.displayName||"Context")+".Consumer";case 10:return(f._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return c=f.render,c=c.displayName||c.name||"",f.displayName||(c!==""?"ForwardRef("+c+")":"ForwardRef");case 7:return"Fragment";case 5:return f;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return F(f);case 8:return f===g?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f}return null}function K(c){var f=c,v=c;if(c.alternate)for(;f.return;)f=f.return;else{c=f;do f=c,(f.flags&4098)!==0&&(v=f.return),c=f.return;while(c)}return f.tag===3?v:null}function j(c){if(K(c)!==c)throw Error(a(188))}function q(c){var f=c.alternate;if(!f){if(f=K(c),f===null)throw Error(a(188));return f!==c?null:c}for(var v=c,_=f;;){var T=v.return;if(T===null)break;var R=T.alternate;if(R===null){if(_=T.return,_!==null){v=_;continue}break}if(T.child===R.child){for(R=T.child;R;){if(R===v)return j(T),c;if(R===_)return j(T),f;R=R.sibling}throw Error(a(188))}if(v.return!==_.return)v=T,_=R;else{for(var V=!1,re=T.child;re;){if(re===v){V=!0,v=T,_=R;break}if(re===_){V=!0,_=T,v=R;break}re=re.sibling}if(!V){for(re=R.child;re;){if(re===v){V=!0,v=R,_=T;break}if(re===_){V=!0,_=R,v=T;break}re=re.sibling}if(!V)throw Error(a(189))}}if(v.alternate!==_)throw Error(a(190))}if(v.tag!==3)throw Error(a(188));return v.stateNode.current===v?c:f}function fe(c){return c=q(c),c!==null?pe(c):null}function pe(c){if(c.tag===5||c.tag===6)return c;for(c=c.child;c!==null;){var f=pe(c);if(f!==null)return f;c=c.sibling}return null}function be(c){if(c.tag===5||c.tag===6)return c;for(c=c.child;c!==null;){if(c.tag!==4){var f=be(c);if(f!==null)return f}c=c.sibling}return null}var we=Array.isArray,xe=t.getPublicInstance,J=t.getRootHostContext,G=t.getChildHostContext,te=t.prepareForCommit,Q=t.resetAfterCommit,W=t.createInstance,ie=t.appendInitialChild,ce=t.finalizeInitialChildren,Se=t.prepareUpdate,De=t.shouldSetTextContent,Ie=t.createTextInstance,Ve=t.scheduleTimeout,ke=t.cancelTimeout,We=t.noTimeout,it=t.isPrimaryRenderer,ht=t.supportsMutation,Ht=t.suppo
`+jo+c}var eo=!1;function ka(c,f){if(!c||eo)return"";eo=!0;var v=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(f)if(f=function(){throw Error()},Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(Fe){var _=Fe}Reflect.construct(c,[],f)}else{try{f.call()}catch(Fe){_=Fe}c.call(f.prototype)}else{try{throw Error()}catch(Fe){_=Fe}c()}}catch(Fe){if(Fe&&_&&typeof Fe.stack=="string"){for(var T=Fe.stack.split(`
`),R=_.stack.split(`
`),V=T.length-1,re=R.length-1;1<=V&&0<=re&&T[V]!==R[re];)re--;for(;1<=V&&0<=re;V--,re--)if(T[V]!==R[re]){if(V!==1||re!==1)do if(V--,re--,0>re||T[V]!==R[re]){var de=`
`+T[V].replace(" at new "," at ");return c.displayName&&de.includes("<anonymous>")&&(de=de.replace("<anonymous>",c.displayName)),de}while(1<=V&&0<=re);break}}}finally{eo=!1,Error.prepareStackTrace=v}return(c=c?c.displayName||c.name:"")?ss(c):""}var Yu=Object.prototype.hasOwnProperty,Ws=[],Ea=-1;function Vi(c){return{current:c}}function mn(c){0>Ea||(c.current=Ws[Ea],Ws[Ea]=null,Ea--)}function dn(c,f){Ea++,Ws[Ea]=c.current,c.current=f}var to={},ar=Vi(to),Tr=Vi(!1),no=to;function Pa(c,f){var v=c.type.contextTypes;if(!v)return to;var _=c.stateNode;if(_&&_.__reactInternalMemoizedUnmaskedChildContext===f)return _.__reactInternalMemoizedMaskedChildContext;var T={},R;for(R in v)T[R]=f[R];return _&&(c=c.stateNode,c.__reactInternalMemoizedUnmaskedChildContext=f,c.__reactInternalMemoizedMaskedChildContext=T),T}function Lr(c){return c=c.childContextTypes,c!=null}function qo(){mn(Tr),mn(ar)}function Gl(c,f,v){if(ar.current!==to)throw Error(a(168));dn(ar,f),dn(Tr,v)}function Co(c,f,v){var _=c.stateNode;if(f=f.childContextTypes,typeof _.getChildContext!="function")return v;_=_.getChildContext();for(var T in _)if(!(T in f))throw Error(a(108,$(c)||"Unknown",T));return o({},v,_)}function ro(c){return c=(c=c.stateNode)&&c.__reactInternalMemoizedMergedChildContext||to,no=ar.current,dn(ar,c),dn(Tr,Tr.current),!0}function jl(c,f,v){var _=c.stateNode;if(!_)throw Error(a(169));v?(c=Co(c,f,no),_.__reactInternalMemoizedMergedChildContext=c,mn(Tr),mn(ar),dn(ar,c)):mn(Tr),dn(Tr,v)}var Qr=Math.clz32?Math.clz32:Kl,ql=Math.log,Xu=Math.LN2;function Kl(c){return c>>>=0,c===0?32:31-(ql(c)/Xu|0)|0}var Ta=64,Si=4194304;function La(c){switch(c&-c){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return c&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return c&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return c}}function ls(c,f){var v=c.pendingLanes;if(v===0)return 0;var _=0,T=c.suspendedLanes,R=c.pingedLanes,V=v&268435455;if(V!==0){var re=V&~T;re!==0?_=La(re):(R&=V,R!==0&&(_=La(R)))}else V=v&~T,V!==0?_=La(V):R!==0&&(_=La(R));if(_===0)return 0;if(f!==0&&f!==_&&(f&T)===0&&(T=_&-_,R=f&-f,T>=R||T===16&&(R&4194240)!==0))return f;if((_&4)!==0&&(_|=v&16),f=c.entangledLanes,f!==0)for(c=c.entanglements,f&=_;0<f;)v=31-Qr(f),T=1<<v,_|=c[v],f&=~T;return _}function Ud(c,f){switch(c){case 1:case 2:case 4:return f+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return f+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Aa(c,f){for(var v=c.suspendedLanes,_=c.pingedLanes,T=c.expirationTimes,R=c.pendingLanes;0<R;){var V=31-Qr(R),re=1<<V,de=T[V];de===-1?((re&v)===0||(re&_)!==0)&&(T[V]=Ud(re,f)):de<=f&&(c.expiredLanes|=re),R&=~re}}function Vs(c){return c=c.pendingLanes&-1073741825,c!==0?c:c&1073741824?1073741824:0}function Zl(){var c=Ta;return Ta<<=1,(Ta&4194240)===0&&(Ta=64),c}function Us(c){for(var f=[],v=0;31>v;v++)f.push(c);return f}function wi(c,f,v){c.pendingLanes|=f,f!==536870912&&(c.suspendedLanes=0,c.pingedLanes=0),c=c.eventTimes,f=31-Qr(f),c[f]=v}function us(c,f){var v=c.pendingLanes&~f;c.pendingLanes=f,c.suspendedLanes=0,c.pingedLanes=0,c.expiredLanes&=f,c.mutableReadLanes&=f,c.entangledLanes&=f,f=c.entanglements;var _=c.eventTimes;for(c=c.expirationTimes;0<v;){var T=31-Qr(v),R=1<<T;f[T]=0,_[T]=-1,c[T]=-1,v&=~R}}function Ko(c,f){var v=c.entangledLanes|=f;for(c=c.entanglements;v;){var _=31-Qr(v),T=1<<_;T&f|c[_]&f&&(c[_]|=f),v&=~T}}var At=0;function Qu(c){return c&=-c,1<c?4<c?(c&268435455)!==0?16:536870912:4:1}var cs=i.unstable_scheduleCallback,Ma
Error generating stack: `+R.message+`
`+R.stack}return{value:c,source:f,stack:T,digest:null}}function m1(c,f,v){return{value:c,source:null,stack:v??null,digest:f??null}}function vc(c,f){try{console.error(f.value)}catch(v){setTimeout(function(){throw v})}}var uf=typeof WeakMap=="function"?WeakMap:Map;function v1(c,f,v){v=fs(-1,v),v.tag=3,v.payload={element:null};var _=f.value;return v.callback=function(){hf||(hf=!0,pf=_),vc(c,f)},v}function B(c,f,v){v=fs(-1,v),v.tag=3;var _=c.type.getDerivedStateFromError;if(typeof _=="function"){var T=f.value;v.payload=function(){return _(T)},v.callback=function(){vc(c,f)}}var R=c.stateNode;return R!==null&&typeof R.componentDidCatch=="function"&&(v.callback=function(){vc(c,f),typeof _!="function"&&(tl===null?tl=new Set([this]):tl.add(this));var V=f.stack;this.componentDidCatch(f.value,{componentStack:V!==null?V:""})}),v}function au(c,f,v){var _=c.pingCache;if(_===null){_=c.pingCache=new uf;var T=new Set;_.set(f,T)}else T=_.get(f),T===void 0&&(T=new Set,_.set(f,T));T.has(v)||(T.add(v),c=u2.bind(null,c,f,v),f.then(c,c))}function cf(c){do{var f;if((f=c.tag===13)&&(f=c.memoizedState,f=f!==null?f.dehydrated!==null:!0),f)return c;c=c.return}while(c!==null);return null}function oo(c,f,v,_,T){return(c.mode&1)===0?(c===f?c.flags|=65536:(c.flags|=128,v.flags|=131072,v.flags&=-52805,v.tag===1&&(v.alternate===null?v.tag=17:(f=fs(-1,1),f.tag=2,qs(v,f,1))),v.lanes|=1),c):(c.flags|=65536,c.lanes=T,c)}var Ut=s.ReactCurrentOwner,ji=!1;function Ei(c,f,v,_){f.child=c===null?Vv(f,null,v,_):ic(f,c.child,v,_)}function Xv(c,f,v,_,T){v=v.render;var R=f.ref;return nc(f,T),_=u1(c,f,v,_,R,T),v=sc(),c!==null&&!ji?(f.updateQueue=c.updateQueue,f.flags&=-2053,c.lanes&=~T,ps(c,f,T)):(On&&v&&Ci(f),f.flags|=1,Ei(c,f,_,T),f.child)}function Zs(c,f,v,_,T){if(c===null){var R=v.type;return typeof R=="function"&&!F1(R)&&R.defaultProps===void 0&&v.compare===null&&v.defaultProps===void 0?(f.tag=15,f.type=R,Qv(c,f,R,_,T)):(c=yf(v.type,null,_,f,f.mode,T),c.ref=f.ref,c.return=f,f.child=c)}if(R=c.child,(c.lanes&T)===0){var V=R.memoizedProps;if(v=v.compare,v=v!==null?v:nu,v(V,_)&&c.ref===f.ref)return ps(c,f,T)}return f.flags|=1,c=lo(R,_),c.ref=f.ref,c.return=f,f.child=c}function Qv(c,f,v,_,T){if(c!==null){var R=c.memoizedProps;if(nu(R,_)&&c.ref===f.ref)if(ji=!1,f.pendingProps=_=R,(c.lanes&T)!==0)(c.flags&131072)!==0&&(ji=!0);else return f.lanes=c.lanes,ps(c,f,T)}return y1(c,f,v,_,T)}function Jv(c,f,v){var _=f.pendingProps,T=_.children,R=c!==null?c.memoizedState:null;if(_.mode==="hidden")if((f.mode&1)===0)f.memoizedState={baseLanes:0,cachePool:null,transitions:null},dn(Qs,ao),ao|=v;else{if((v&1073741824)===0)return c=R!==null?R.baseLanes|v:v,f.lanes=f.childLanes=1073741824,f.memoizedState={baseLanes:c,cachePool:null,transitions:null},f.updateQueue=null,dn(Qs,ao),ao|=c,null;f.memoizedState={baseLanes:0,cachePool:null,transitions:null},_=R!==null?R.baseLanes:v,dn(Qs,ao),ao|=_}else R!==null?(_=R.baseLanes|v,f.memoizedState=null):_=v,dn(Qs,ao),ao|=_;return Ei(c,f,T,v),f.child}function e2(c,f){var v=f.ref;(c===null&&v!==null||c!==null&&c.ref!==v)&&(f.flags|=512,f.flags|=2097152)}function y1(c,f,v,_,T){var R=Lr(v)?no:ar.current;return R=Pa(f,R),nc(f,T),v=u1(c,f,v,_,R,T),_=sc(),c!==null&&!ji?(f.updateQueue=c.updateQueue,f.flags&=-2053,c.lanes&=~T,ps(c,f,T)):(On&&_&&Ci(f),f.flags|=1,Ei(c,f,v,T),f.child)}function t2(c,f,v,_,T){if(Lr(v)){var R=!0;ro(f)}else R=!1;if(nc(f,T),f.stateNode===null)Da(c,f),$v(f,v,_),o1(f,v,_,T),_=!0;else if(c===null){var V=f.stateNode,re=f.memoizedProps;V.props=re;var de=V.context,Fe=v.contextType;typeof Fe=="object"&&Fe!==null?Fe=io(Fe):(Fe=Lr(v)?no:ar.current,Fe=Pa(f,Fe));var rt=v.getDerivedStateFromProps,Pt=typeof rt=="function"||typeof V.getSnapshotBeforeUpdate=="function";Pt||typeof V.UNSAFE_componentWillReceiveProps!="function"&&typeof V.componentWillReceiveProps!="function"||(re!==_||de!==Fe)&&Hv(f,V,_,Fe),ds=!1;var Je=f.memoizedState;V.state=Je,Th(f,_,V,T),de=f.memoizedState,re!==_||Je!==de||Tr.current||ds?(typeof rt=="function"&&(Ah(f,v,rt,_),de=f.memoizedState),(re=ds||Jd(f,v,re,_,Je,de,Fe))?(Pt||typeof V.UNSAFE_componentWillMount!="function"&
`+(_.join(" > ")+`
No matching component was found for:
`)+c.join(" > ")}return null},n.getPublicRootInstance=function(c){if(c=c.current,!c.child)return null;switch(c.child.tag){case 5:return xe(c.child.stateNode);default:return c.child.stateNode}},n.injectIntoDevTools=function(c){if(c={bundleType:c.bundleType,version:c.version,rendererPackageName:c.rendererPackageName,rendererConfig:c.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:sp,findFiberByHostInstance:c.findFiberByHostInstance||H1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")c=!1;else{var f=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(f.isDisabled||!f.supportsFiber)c=!0;else{try{on=f.inject(c),Rt=f}catch{}c=!!f.checkDCE}}return c},n.isAlreadyRendering=function(){return!1},n.observeVisibleRects=function(c,f,v,_){if(!vt)throw Error(a(363));c=L1(c,f);var T=Vt(c,v,_).disconnect;return{disconnect:function(){T()}}},n.registerMutableSourceForHydration=function(c,f){var v=f._getVersion;v=v(f._source),c.mutableSourceEagerHydrationData==null?c.mutableSourceEagerHydrationData=[f,v]:c.mutableSourceEagerHydrationData.push(f,v)},n.runWithPriority=function(c,f){var v=At;try{return At=c,f()}finally{At=v}},n.shouldError=function(){return null},n.shouldSuspend=function(){return!1},n.updateContainer=function(c,f,v,_){var T=f.current,R=pi(),V=Nr(T);return v=B1(v),f.context===null?f.context=v:f.pendingContext=v,f=fs(R,V),f.payload={element:c},_=_===void 0?null:_,_!==null&&(f.callback=_),c=qs(T,f,V),c!==null&&(Lo(c,T,V,R),Ph(c,T,V)),V},n};(function(e){e.exports=QSe})(cH);const JSe=n8(cH.exports);var x_={exports:{}},_h={};/**
* @license React
* react-reconciler-constants.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.
*/_h.ConcurrentRoot=1;_h.ContinuousEventPriority=4;_h.DefaultEventPriority=16;_h.DiscreteEventPriority=1;_h.IdleEventPriority=536870912;_h.LegacyRoot=0;(function(e){e.exports=_h})(x_);const QA={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let JA=!1,eM=!1;const b_=".react-konva-event",ewe=`ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled.
Position of a node will be changed during drag&drop, so you should update state of the react app as well.
Consider to add onDragMove or onDragEnd events.
For more info see: https://github.com/konvajs/react-konva/issues/256
`,twe=`ReactKonva: You are using "zIndex" attribute for a Konva node.
react-konva may get confused with ordering. Just define correct order of elements in your render function of a component.
For more info see: https://github.com/konvajs/react-konva/issues/194
`,nwe={};function Tx(e,t,n=nwe){if(!JA&&"zIndex"in t&&(console.warn(twe),JA=!0),!eM&&t.draggable){var r=t.x!==void 0||t.y!==void 0,i=t.onDragEnd||t.onDragMove;r&&!i&&(console.warn(ewe),eM=!0)}for(var o in n)if(!QA[o]){var a=o.slice(0,2)==="on",s=n[o]!==t[o];if(a&&s){var l=o.substr(2).toLowerCase();l.substr(0,7)==="content"&&(l="content"+l.substr(7,1).toUpperCase()+l.substr(8)),e.off(l,n[o])}var d=!t.hasOwnProperty(o);d&&e.setAttr(o,void 0)}var p=t._useStrictMode,g={},m=!1;const y={};for(var o in t)if(!QA[o]){var a=o.slice(0,2)==="on",b=n[o]!==t[o];if(a&&b){var l=o.substr(2).toLowerCase();l.substr(0,7)==="content"&&(l="content"+l.substr(7,1).toUpperCase()+l.substr(8)),t[o]&&(y[l]=t[o])}!a&&(t[o]!==n[o]||p&&t[o]!==e.getAttr(o))&&(m=!0,g[o]=t[o])}m&&(e.setAttrs(g),Td(e));for(var l in y)e.on(l+b_,y[l])}function Td(e){if(!st.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const dH={},rwe={};lh.Node.prototype._applyProps=Tx;function iwe(e,t){if(typeof t=="string"){console.error(`Do not use plain text as child of Konva.Node. You are using text: ${t}`);return}e.add(t),Td(e)}function owe(e,t,n){let r=lh[e];r||(console.error(`Konva has no node with the type ${e}. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/${e}" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html`),r=lh.Group);const i={},o={};for(var a in t){var s=a.slice(0,2)==="on";s?o[a]=t[a]:i[a]=t[a]}const l=new r(i);return Tx(l,o),l}function awe(e,t,n){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function swe(e,t,n){return!1}function lwe(e){return e}function uwe(){return null}function cwe(){return null}function dwe(e,t,n,r){return rwe}function fwe(){}function hwe(e){}function pwe(e,t){return!1}function gwe(){return dH}function mwe(){return dH}const vwe=setTimeout,ywe=clearTimeout,xwe=-1;function bwe(e,t){return!1}const Swe=!1,wwe=!0,Cwe=!0;function _we(e,t){t.parent===e?t.moveToTop():e.add(t),Td(e)}function kwe(e,t){t.parent===e?t.moveToTop():e.add(t),Td(e)}function fH(e,t,n){t._remove(),e.add(t),t.setZIndex(n.getZIndex()),Td(e)}function Ewe(e,t,n){fH(e,t,n)}function Pwe(e,t){t.destroy(),t.off(b_),Td(e)}function Twe(e,t){t.destroy(),t.off(b_),Td(e)}function Lwe(e,t,n){console.error(`Text components are not yet supported in ReactKonva. You text is: "${n}"`)}function Awe(e,t,n){}function Mwe(e,t,n,r,i){Tx(e,i,r)}function Iwe(e){e.hide(),Td(e)}function Rwe(e){}function Owe(e,t){(t.visible==null||t.visible)&&e.show()}function Nwe(e,t){}function Dwe(e){}function zwe(){}const Fwe=()=>x_.exports.DefaultEventPriority,Bwe=Object.freeze(Object.defineProperty({__proto__:null,appendInitialChild:iwe,createInstance:owe,createTextInstance:awe,finalizeInitialChildren:swe,getPublicInstance:lwe,prepareForCommit:uwe,preparePortalMount:cwe,prepareUpdate:dwe,resetAfterCommit:fwe,resetTextContent:hwe,shouldDeprioritizeSubtree:pwe,getRootHostContext:gwe,getChildHostContext:mwe,scheduleTimeout:vwe,cancelTimeout:ywe,noTimeout:xwe,shouldSetTextContent:bwe,isPrimaryRenderer:Swe,warnsIfNotActing:wwe,supportsMutation:Cwe,appendChild:_we,appendChildToContainer:kwe,insertBefore:fH,insertInContainerBefore:Ewe,removeChild:Pwe,removeChildFromContainer:Twe,commitTextUpdate:Lwe,commitMount:Awe,commitUpdate:Mwe,hideInstance:Iwe,hideTextInstance:Rwe,unhideInstance:Owe,unhideTextInstance:Nwe,clearContainer:Dwe,detachDeletedInstance:zwe,getCurrentEventPriority:Fwe,now:Gp.exports.unstable_now,idlePriority:Gp.exports.unstable_IdlePriority,run:Gp.exports.unstable_runWithPriority},Symbol.toStringTag,{value:"Module"}));var $we=Object.defineProperty,Hwe=Object.defineProperties,Wwe=Object.getOwnPropertyDescriptors,tM=Object.getOwnPropertySymbols,Vwe=Object.prototype.hasOwnProperty,Uwe=Object.prototype.propertyIsEnumerable,nM=(e,t,n)=>t in e?$we(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rM=(e,t)=>{for(var n in t||(t={}))Vwe.call(t,n)&&nM(e,n,t[n]);if(tM)
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q8e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function J8e(e){if(Array.isArray(e))return QC(e)}function _M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function kM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_M(Object(n),!0).forEach(function(r){QH(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_M(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function QH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ev(e,t){return n9e(e)||t9e(e,t)||JH(e,t)||e9e()}function e9e(){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 JH(e,t){if(!!e){if(typeof e=="string")return QC(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 QC(e,t)}}function QC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function t9e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function n9e(e){if(Array.isArray(e))return e}var r9e="file-invalid-type",i9e="file-too-large",o9e="file-too-small",a9e="too-many-files",s9e=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:r9e,message:"File type must be ".concat(n)}},EM=function(t){return{code:i9e,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},PM=function(t){return{code:o9e,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},l9e={code:a9e,message:"Too many files"};function eW(e,t){var n=e.type==="application/x-moz-file"||Y8e(e,t);return[n,n?null:s9e(t)]}function tW(e,t,n){if(Df(e.size))if(Df(t)&&Df(n)){if(e.size>n)return[!1,EM(n)];if(e.size<t)return[!1,PM(t)]}else{if(Df(t)&&e.size<t)return[!1,PM(t)];if(Df(n)&&e.size>n)return[!1,EM(n)]}return[!0,null]}function Df(e){return e!=null}function u9e(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,o=e.multiple,a=e.maxFiles,s=e.validator;return!o&&t.length>1||o&&a>=1&&t.length>a?!1:t.every(function(l){var d=eW(l,n),p=ev(d,1),g=p[0],m=tW(l,r,i),y=ev(m,1),b=y[0],w=s?s(l):null;return g&&b&&!w})}function $5(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function My(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 TM(e){e.preventDefault()}function c9e(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function d9e(e){return e.indexOf("Edge/")!==-1}function f9e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return c9e(e)||d9e(e)}function hl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return t.some(function(s){return!$5(r)&&s&&s.apply(void 0,[r].concat(o)),$5(r)})}}function h9e(){return"showOpenFilePicker"in window}function p9e(e){if(Df(e)){var t=Object.entries(e).filter(function(n){var r=ev(n,2),i=r[0],o=r[1],a=!0;return nW(i)||(console.warn('Skipped "'.concat(i,'" 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.')),a=!1),(!Array.isArray(o)||!o.every(rW))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,r){var i=ev(r,2),o=i[0],a=i[1];return kM(kM({},n),{},QH({},o,a))},{});return[{accept:t}]}return e}function g9e(e){if(Df(e))return Object.entries(e).reduce(function(t,n){var r=ev(n,2),i=r[0],o=r[1];return[].concat(CM(t),[i],CM(o))},[]).filter(function(t){return nW(t)||rW(t)}).join(",")}function m9e(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function v9e(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function nW(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function rW(e){return/^.*\.[\w]+$/.test(e)}var y9e=["children"],x9e=["open"],b9e=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLe
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _9e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function k9e(e){if(Array.isArray(e))return JC(e)}function ZS(e,t){return T9e(e)||P9e(e,t)||iW(e,t)||E9e()}function E9e(){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 iW(e,t){if(!!e){if(typeof e=="string")return JC(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 JC(e,t)}}function JC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function P9e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function T9e(e){if(Array.isArray(e))return e}function LM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LM(Object(n),!0).forEach(function(r){e8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function e8(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H5(e,t){if(e==null)return{};var n=L9e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function L9e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var T_=C.exports.forwardRef(function(e,t){var n=e.children,r=H5(e,y9e),i=aW(r),o=i.open,a=H5(i,x9e);return C.exports.useImperativeHandle(t,function(){return{open:o}},[o]),S(C.exports.Fragment,{children:n(fr(fr({},a),{},{open:o}))})});T_.displayName="Dropzone";var oW={disabled:!1,getFilesFromEvent:H8e,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};T_.defaultProps=oW;T_.propTypes={children:In.exports.func,accept:In.exports.objectOf(In.exports.arrayOf(In.exports.string)),multiple:In.exports.bool,preventDropOnDocument:In.exports.bool,noClick:In.exports.bool,noKeyboard:In.exports.bool,noDrag:In.exports.bool,noDragEventsBubbling:In.exports.bool,minSize:In.exports.number,maxSize:In.exports.number,maxFiles:In.exports.number,disabled:In.exports.bool,getFilesFromEvent:In.exports.func,onFileDialogCancel:In.exports.func,onFileDialogOpen:In.exports.func,useFsAccessApi:In.exports.bool,autoFocus:In.exports.bool,onDragEnter:In.exports.func,onDragLeave:In.exports.func,onDragOver:In.exports.func,onDrop:In.exports.func,onDropAccepted:In.exports.func,onDropRejected:In.exports.func,onError:In.exports.func,validator:In.exports.func};var t8={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function aW(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=fr(fr({},oW),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,d=t.onDragEnter,p=t.onDragLeave,g=t.onDragOver,m=t.onDrop,y=t.onDropAccepted,b=t.onDropRejected,w=t.onFileDialogCancel,P=t.onFileDialogOpen,E=t.useFsAccessApi,k=t.autoFocus,L=t.preventDropOnDocument,I=t.noClick,N=t.noKeyboard,D=t.noDrag,F=t.noDragEventsBubbling,$=t.onError,K=t.validator,j=C.exports.useMemo(function(){return g9e(n)},[n]),q=C.exports.useMemo(function(){return p9e(n)},[n]),fe=C.exports.useMemo(function(){return typeof P=="function"?P:AM},[P]),pe=C.exports.useMemo(function(){return typeof w=="function"?w:AM},[w]),be=C.exports.useRef(null),we=C.exports.useRef(null),xe=C.ex
`+L.message,"");i({title:"Upload failed",description:E,status:"error",isClosable:!0})},[i]),l=C.exports.useCallback(P=>{a(!0);const E={file:P};["img2img","inpainting"].includes(r)&&(E.destination=r),n(ZL(E))},[n,r]),d=C.exports.useCallback((P,E)=>{E.forEach(k=>{s(k)}),P.forEach(k=>{l(k)})},[l,s]),{getRootProps:p,getInputProps:g,isDragAccept:m,isDragReject:y,isDragActive:b,open:w}=aW({accept:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg",".png"]},noClick:!0,onDrop:d,maxFiles:1});return C.exports.useEffect(()=>{const P=E=>{const k=E.clipboardData?.items;if(!k)return;const L=[];for(const D of k)D.kind==="file"&&["image/png","image/jpg"].includes(D.type)&&L.push(D);if(!L.length)return;if(E.stopImmediatePropagation(),L.length>1){i({description:"Multiple images pasted, may only upload one image at a time",status:"error",isClosable:!0});return}const I=L[0].getAsFile();if(!I){i({description:"Unable to load file",status:"error",isClosable:!0});return}const N={file:I};["img2img","inpainting"].includes(r)&&(N.destination=r),n(ZL(N))};return document.addEventListener("paste",P),()=>{document.removeEventListener("paste",P)}},[n,i,r]),S(UB.Provider,{value:w,children:oe("div",{...p({style:{}}),children:[S("input",{...g()}),t,b&&oe("div",{className:"dropzone-container",children:[m&&S("div",{className:"dropzone-overlay is-drag-accept",children:S(Xf,{size:"lg",children:"Drop Images"})}),y&&oe("div",{className:"dropzone-overlay is-drag-reject",children:[S(Xf,{size:"lg",children:"Invalid Upload"}),S(Xf,{size:"md",children:"Must be single JPEG or PNG image"})]}),o&&S("div",{className:"dropzone-overlay is-handling-upload",children:S(U0,{})})]})]})})},I9e=()=>{const e=pt();return S(xn,{tooltip:"Show Gallery (G)",tooltipPlacement:"top","aria-label":"Show Gallery",styleClass:"floating-show-hide-button right",onMouseOver:()=>{e(hC(!0))},children:S(EB,{})})};function R9e(e){return yt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M32 384h272v32H32zM400 384h80v32h-80zM384 447.5c0 17.949-14.327 32.5-32 32.5-17.673 0-32-14.551-32-32.5v-95c0-17.949 14.327-32.5 32-32.5 17.673 0 32 14.551 32 32.5v95z"}},{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M32 240h80v32H32zM208 240h272v32H208zM192 303.5c0 17.949-14.327 32.5-32 32.5-17.673 0-32-14.551-32-32.5v-95c0-17.949 14.327-32.5 32-32.5 17.673 0 32 14.551 32 32.5v95z"}}]},{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M32 96h272v32H32zM400 96h80v32h-80zM384 159.5c0 17.949-14.327 32.5-32 32.5-17.673 0-32-14.551-32-32.5v-95c0-17.949 14.327-32.5 32-32.5 17.673 0 32 14.551 32 32.5v95z"}}]}]})(e)}const O9e=Qt(e=>e.options,e=>{const{shouldPinOptionsPanel:t,shouldShowOptionsPanel:n}=e;return{shouldShowProcessButtons:!t||!n}},{memoizeOptions:{resultEqualityCheck:Kt.isEqual}}),N9e=()=>{const e=pt(),{shouldShowProcessButtons:t}=Ze(O9e);return oe("div",{className:"show-hide-button-options",children:[S(xn,{tooltip:"Show Options Panel (O)",tooltipPlacement:"top","aria-label":"Show Options Panel",onClick:()=>{e(VC(!0))},children:S(R9e,{})}),t&&oe(Bn,{children:[S(AB,{iconButton:!0}),S(IB,{}),S(MB,{})]})]})};z8e();const D9e=Qt([e=>e.gallery,e=>e.options,e=>e.system,as],(e,t,n,r)=>{const{shouldShowGallery:i,shouldHoldGalleryOpen:o,shouldPinGallery:a}=e,{shouldShowOptionsPanel:s,shouldHoldOptionsPanelOpen:l,shouldPinOptionsPanel:d}=t,p=Kt.reduce(n.model_list,(y,b,w)=>(b.status==="active"&&(y=w),y),""),g=!(i||o&&!a),m=!(s||l&&!d)&&["txt2img","img2img","inpainting"].includes(r);return{modelStatusText:p,shouldShowGalleryButton:g,shouldShowOptionsPanelButton:m}},{memoizeOptions:{resultEqualityCheck:Kt.isEqual}}),z9e=()=>{const e=pt(),[t,n]=C.exports.useState(!1),{shouldShowGalleryButton:r,shouldShowOptionsPanelButton:i}=Ze(D9e);return C.exports.useEffect(()=>{e(t3e()),n(!0)},[e]),t?S("div",{className:"App",children:oe(M9e,{children:[S(C8e,{}),oe("div",{className:"app-content",children:[S(R8e,{}),S($6e,{})]}),S("div",{className:"app-console",children:S(D8e,{})}),r&&S(I9e,{}),i&&S(N9e,{})]})}):S(ZH,{})};const sW=jve(qH);XS.createRoot(document.getElementById("root")).render(S(le.StrictMode,{children:S(Sve,{st