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

594 lines
1.3 MiB
JavaScript
Raw Normal View History

2022-11-11 13:06:26 +00:00
function Wq(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 gs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function L8(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Vq(e){var t=e.default;if(typeof t=="function"){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var C={exports:{}},Yt={};/**
* @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 wv=Symbol.for("react.element"),Uq=Symbol.for("react.portal"),jq=Symbol.for("react.fragment"),Gq=Symbol.for("react.strict_mode"),qq=Symbol.for("react.profiler"),Kq=Symbol.for("react.provider"),Yq=Symbol.for("react.context"),Zq=Symbol.for("react.forward_ref"),Xq=Symbol.for("react.suspense"),Qq=Symbol.for("react.memo"),Jq=Symbol.for("react.lazy"),Qk=Symbol.iterator;function eK(e){return e===null||typeof e!="object"?null:(e=Qk&&e[Qk]||e["@@iterator"],typeof e=="function"?e:null)}var iM={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},oM=Object.assign,aM={};function $0(e,t,n){this.props=e,this.context=t,this.refs=aM,this.updater=n||iM}$0.prototype.isReactComponent={};$0.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")};$0.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function sM(){}sM.prototype=$0.prototype;function T8(e,t,n){this.props=e,this.context=t,this.refs=aM,this.updater=n||iM}var A8=T8.prototype=new sM;A8.constructor=T8;oM(A8,$0.prototype);A8.isPureReactComponent=!0;var Jk=Array.isArray,lM=Object.prototype.hasOwnProperty,I8={current:null},uM={key:!0,ref:!0,__self:!0,__source:!0};function cM(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)lM.call(t,r)&&!uM.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),u=0;u<s;u++)l[u]=arguments[u+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:wv,type:e,key:o,ref:a,props:i,_owner:I8.current}}function tK(e,t){return{$$typeof:wv,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function M8(e){return typeof e=="object"&&e!==null&&e.$$typeof===wv}function nK(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var eE=/\/+/g;function $x(e,t){return typeof e=="object"&&e!==null&&e.key!=null?nK(""+e.key):t.toString(36)}function e3(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 wv:case Uq:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+$x(a,0):r,Jk(i)?(n="",e!=null&&(n=e.replace(eE,"$&/")+"/"),e3(i,t,n,"",function(u){return u})):i!=null&&(M8(i)&&(i=tK(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(eE,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",Jk(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+$x(o,s);a+=e3(o,t,n,l,i)}else if(l=eK(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+$x(o,s++),a+=e3(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 H2(e,t,n){if(e==null)return e;var r=[],i=0;return e3(e,r,"","",function(o){return t.call(n,o,i++)}),r}function rK(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 oo={current:null},t3={transition:null},iK={ReactCurrentDispatcher:oo,ReactCurrentBatchConfig:t3,ReactCurrentOwner:I8};Yt.Children={map:H2,forEach:function(e,t,n){H2(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return H2(e,function(){t++}),t},toArray:function(e){return H2(e,function(t){return t})||[]},only:function(e){if(!M8(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Yt.Component=$0;Yt.Fragment=jq;Yt.Profiler=qq;Yt
* @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(V,G){var Q=V.length;V.push(G);e:for(;0<Q;){var X=Q-1>>>1,me=V[X];if(0<i(me,G))V[X]=G,V[Q]=me,Q=X;else break e}}function n(V){return V.length===0?null:V[0]}function r(V){if(V.length===0)return null;var G=V[0],Q=V.pop();if(Q!==G){V[0]=Q;e:for(var X=0,me=V.length,xe=me>>>1;X<xe;){var Se=2*(X+1)-1,He=V[Se],Ue=Se+1,ut=V[Ue];if(0>i(He,Q))Ue<me&&0>i(ut,He)?(V[X]=ut,V[Ue]=Q,X=Ue):(V[X]=He,V[Se]=Q,X=Se);else if(Ue<me&&0>i(ut,Q))V[X]=ut,V[Ue]=Q,X=Ue;else break e}}return G}function i(V,G){var Q=V.sortIndex-G.sortIndex;return Q!==0?Q:V.id-G.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=[],u=[],h=1,g=null,m=3,v=!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(V){for(var G=n(u);G!==null;){if(G.callback===null)r(u);else if(G.startTime<=V)r(u),G.sortIndex=G.expirationTime,t(l,G);else break;G=n(u)}}function I(V){if(w=!1,L(V),!b)if(n(l)!==null)b=!0,J(O);else{var G=n(u);G!==null&&q(I,G.startTime-V)}}function O(V,G){b=!1,w&&(w=!1,E(z),z=-1),v=!0;var Q=m;try{for(L(G),g=n(l);g!==null&&(!(g.expirationTime>G)||V&&!Y());){var X=g.callback;if(typeof X=="function"){g.callback=null,m=g.priorityLevel;var me=X(g.expirationTime<=G);G=e.unstable_now(),typeof me=="function"?g.callback=me:g===n(l)&&r(l),L(G)}else r(l);g=n(l)}if(g!==null)var xe=!0;else{var Se=n(u);Se!==null&&q(I,Se.startTime-G),xe=!1}return xe}finally{g=null,m=Q,v=!1}}var N=!1,D=null,z=-1,H=5,W=-1;function Y(){return!(e.unstable_now()-W<H)}function de(){if(D!==null){var V=e.unstable_now();W=V;var G=!0;try{G=D(!0,V)}finally{G?j():(N=!1,D=null)}}else N=!1}var j;if(typeof k=="function")j=function(){k(de)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,ie=ne.port2;ne.port1.onmessage=de,j=function(){ie.postMessage(null)}}else j=function(){P(de,0)};function J(V){D=V,N||(N=!0,j())}function q(V,G){z=P(function(){V(e.unstable_now())},G)}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(V){V.callback=null},e.unstable_continueExecution=function(){b||v||(b=!0,J(O))},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(V){switch(m){case 1:case 2:case 3:var G=3;break;default:G=m}var Q=m;m=G;try{return V()}finally{m=Q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(V,G){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var Q=m;m=V;try{return G()}finally{m=Q}},e.unstable_scheduleCallback=function(V,G,Q){var X=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?X+Q:X):Q=X,V){case 1:var me=-1;break;case 2:me=250;break;case 5:me=1073741823;break;case 4:me=1e4;break;default:me=5e3}return me=Q+me,V={id:h++,callback:G,priorityLevel:V,startTime:Q,expirationTime:me,sortIndex:-1},Q>X?(V.sortIndex=Q,t(u,V),n(l)===null&&V===n(u)&&(w?(E(z),z=-1):w=!0,q(I,Q-X))):(V.sortIndex=me,t(l,V),b||v||(b=!0,J(O))),V},e.unstable_shouldYield=Y,e.unstable_wrapCallback=function(V){var G=m;return function(){var Q=m;m=G;try{return V.apply(this,arguments)}finally{m=Q}}}})(dM);(function(e){e.exports=dM})(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 fM=C.exports,sa=Gp.exports;function Oe(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 hM=new Set,Mm={};function Jf(e,t){x0(e,t),x0(e+"Capture",t)}function x0(e,t){for(Mm[e]=t,e=0;e<t.length;e++)hM.add(t[e])}var hu=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),O6=Object.prototype.hasOwnProperty,oK=/^[: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]*$/,tE={},nE={};function aK(e){return O6.call(nE,e)?!0:O6.call(tE,e)?!1:oK.test(e)?nE[e]=!0:(tE[e]=!0,!1)}function sK(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 lK(e,t,n,r){if(t===null||typeof t>"u"||sK(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 ao(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 Oi={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Oi[e]=new ao(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Oi[t]=new ao(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Oi[e]=new ao(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Oi[e]=new ao(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){Oi[e]=new ao(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Oi[e]=new ao(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Oi[e]=new ao(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Oi[e]=new ao(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Oi[e]=new ao(e,5,!1,e.toLowerCase(),null,!1,!1)});var O8=/[\-:]([a-z])/g;function R8(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
`+Hx+e}var Wx=!1;function Vx(e,t){if(!e||Wx)return"";Wx=!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(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.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{Wx=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Fg(e):""}function uK(e){switch(e.tag){case 5:return Fg(e.type);case 16:return Fg("Lazy");case 13:return Fg("Suspense");case 19:return Fg("SuspenseList");case 0:case 2:case 15:return e=Vx(e.type,!1),e;case 11:return e=Vx(e.type.render,!1),e;case 1:return e=Vx(e.type,!0),e;default:return""}}function z6(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 Ip:return"Fragment";case Ap:return"Portal";case R6:return"Profiler";case D8:return"StrictMode";case N6:return"Suspense";case D6:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case gM:return(e.displayName||"Context")+".Consumer";case pM:return(e._context.displayName||"Context")+".Provider";case z8:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case B8:return t=e.displayName||null,t!==null?t:z6(e.type)||"Memo";case Pc:t=e._payload,e=e._init;try{return z6(e(t))}catch{}}return null}function cK(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 z6(t);case 8:return t===D8?"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 nd(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function vM(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dK(e){var t=vM(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 V2(e){e._valueTracker||(e._valueTracker=dK(e))}function yM(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=vM(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function V3(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 B6(e,t){var n=t.checked;return hr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function iE(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=nd(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 bM(e,t){t=t.checked,t!=null&&N8(e,"checked",t,!1)}function F6(e,t){bM(e,t);var n=nd(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")?$6(e,t.type,n):t.hasOwnProperty("defaultValue")&&$6(e,t.type,nd(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function oE(e,t,n){if(t.hasOwnProperty("val
`).replace(SY,"")}function X2(e,t,n){if(t=LE(t),LE(e)!==t&&n)throw Error(Oe(425))}function X3(){}var ew=null,tw=null;function nw(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 rw=typeof setTimeout=="function"?setTimeout:void 0,wY=typeof clearTimeout=="function"?clearTimeout:void 0,TE=typeof Promise=="function"?Promise:void 0,CY=typeof queueMicrotask=="function"?queueMicrotask:typeof TE<"u"?function(e){return TE.resolve(null).then(e).catch(_Y)}:rw;function _Y(e){setTimeout(function(){throw e})}function nS(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),zm(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);zm(t)}function Kc(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 AE(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 W0=Math.random().toString(36).slice(2),hl="__reactFiber$"+W0,Wm="__reactProps$"+W0,pu="__reactContainer$"+W0,iw="__reactEvents$"+W0,kY="__reactListeners$"+W0,EY="__reactHandles$"+W0;function Pf(e){var t=e[hl];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pu]||n[hl]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=AE(e);e!==null;){if(n=e[hl])return n;e=AE(e)}return t}e=n,n=e.parentNode}return null}function kv(e){return e=e[hl]||e[pu],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Np(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Oe(33))}function d4(e){return e[Wm]||null}var ow=[],Dp=-1;function dd(e){return{current:e}}function Zn(e){0>Dp||(e.current=ow[Dp],ow[Dp]=null,Dp--)}function Gn(e,t){Dp++,ow[Dp]=e.current,e.current=t}var rd={},Vi=dd(rd),Lo=dd(!1),Vf=rd;function S0(e,t){var n=e.type.contextTypes;if(!n)return rd;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 To(e){return e=e.childContextTypes,e!=null}function Q3(){Zn(Lo),Zn(Vi)}function IE(e,t,n){if(Vi.current!==rd)throw Error(Oe(168));Gn(Vi,t),Gn(Lo,n)}function sO(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(Oe(108,cK(e)||"Unknown",i));return hr({},n,r)}function J3(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||rd,Vf=Vi.current,Gn(Vi,e),Gn(Lo,Lo.current),!0}function ME(e,t,n){var r=e.stateNode;if(!r)throw Error(Oe(169));n?(e=sO(e,t,Vf),r.__reactInternalMemoizedMergedChildContext=e,Zn(Lo),Zn(Vi),Gn(Vi,e)):Zn(Lo),Gn(Lo,n)}var su=null,f4=!1,rS=!1;function lO(e){su===null?su=[e]:su.push(e)}function PY(e){f4=!0,lO(e)}function fd(){if(!rS&&su!==null){rS=!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,f4=!1}catch(i){throw su!==null&&(su=su.slice(e+1)),OM($8,fd),i}finally{Tn=t,rS=!1}}return null}var zp=[],Bp=0,e5=null,t5=0,Pa=[],La=0,Uf=null,uu=1,cu="";function mf(e,t){zp[Bp++]=t5,zp[Bp++]=e5,e5=e,t5=t}function uO(e,t,n){Pa[La++]=uu,Pa[La++]=cu,Pa[La++]=Uf,Uf=e;var r=uu;e=cu;var i=32-vs(r)-1;r&=~(1<<i),n+=1;var o=32-vs(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,uu=1<<32-vs(t)+i|n<<i|r,cu=o+e}else uu=1<<o|n<<i|r,cu=e}function Y8(e){e.return!==null&&(mf(e,1),uO(e,1,0))}function Z8(e){for(;e===e5;)e5=zp[--Bp],zp[Bp]=null,t5=zp[--Bp],zp[Bp]=null;for(;e===Uf;)Uf=Pa[--La],Pa[La]=null,cu=Pa[--La],Pa[La]=null,uu=Pa[--La],Pa[La]=null}var ra=null,na=null,rr=!1,ps=null;function cO(e,t){var n=Ma(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 lS(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function dw(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var DY=typeof WeakMap=="function"?WeakMap:Map;function BO(e,t,n){n=fu(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){u5||(u5=!0,Sw=r),dw(e,t)},n}function FO(e,t,n){n=fu(-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(){dw(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){dw(e,t),typeof r!="function"&&(Zc===null?Zc=new Set([this]):Zc.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function WE(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new DY;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=ZY.bind(null,e,t,n),t.then(e,e))}function VE(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 UE(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=fu(-1,1),t.tag=2,Yc(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var zY=ku.ReactCurrentOwner,Po=!1;function no(e,t,n,r){t.child=e===null?vO(t,null,n,r):C0(t,e.child,n,r)}function jE(e,t,n,r,i){n=n.render;var o=t.ref;return Xp(t,i),r=s9(e,t,n,r,o,i),n=l9(),e!==null&&!Po?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,mu(e,t,i)):(rr&&n&&Y8(t),t.flags|=1,no(e,t,r,i),t.child)}function GE(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!y9(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,$O(e,t,o,r,i)):(e=d3(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:Fm,n(a,r)&&e.ref===t.ref)return mu(e,t,i)}return t.flags|=1,e=Qc(o,r),e.ref=t.ref,e.return=t,t.child=e}function $O(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Fm(o,r)&&e.ref===t.ref)if(Po=!1,t.pendingProps=r=o,(e.lanes&i)!==0)(e.flags&131072)!==0&&(Po=!0);else return t.lanes=e.lanes,mu(e,t,i)}return fw(e,t,n,r,i)}function HO(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(Hp,ea),ea|=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(Hp,ea),ea|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Gn(Hp,ea),ea|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Gn(Hp,ea),ea|=r;return no(e,t,i,n),t.child}function WO(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function fw(e,t,n,r,i){var o=To(n)?Vf:Vi.current;return o=S0(t,o),Xp(t,i),n=s9(e,t,n,r,o,i),r=l9(),e!==null&&!Po?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,mu(e,t,i)):(rr&&r&&Y8(t),t.flags|=1,no(e,t,n,i),t.child)}function qE(e,t,n,r,i){if(To(n)){var o=!0;J3(t)}else o=!1;if(Xp(t,i),t.stateNode===null)l3(e,t),gO(t,n,r),cw(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=Da(u):(u=To(n)?Vf:Vi.current,u=S0(t,u));var h=n.getDerivedStateFromProps,g=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function";g||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==u)&&BE(t,a,r,u),Lc=!1;var m=t.memoizedState;a.state=m,i5(t,r,a,i),l=t.memoizedState,s!==r||m!==l||Lo.current||Lc?(typeof h=="function"&&(uw(t,n,h,r),l=t.memoizedState),(s=Lc||zE(t,n,s,r,m,l,u))?(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 sZ=C.exports,lZ=Symbol.for("react.element"),uZ=Symbol.for("react.fragment"),cZ=Object.prototype.hasOwnProperty,dZ=sZ.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,fZ={key:!0,ref:!0,__self:!0,__source:!0};function dR(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)cZ.call(t,r)&&!fZ.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:lZ,type:e,key:o,ref:a,props:i,_owner:dZ.current}}C4.Fragment=uZ;C4.jsx=dR;C4.jsxs=dR;(function(e){e.exports=C4})(w4);const Xn=w4.exports.Fragment,x=w4.exports.jsx,te=w4.exports.jsxs,hZ=Object.freeze(Object.defineProperty({__proto__:null,Fragment:Xn,jsx:x,jsxs:te},Symbol.toStringTag,{value:"Module"}));var C9=C.exports.createContext({});C9.displayName="ColorModeContext";function Pv(){const e=C.exports.useContext(C9);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var oy={light:"chakra-ui-light",dark:"chakra-ui-dark"};function pZ(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?oy.dark:oy.light),document.body.classList.remove(r?oy.light:oy.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 gZ="chakra-ui-color-mode";function mZ(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 vZ=mZ(gZ),sP=()=>{};function lP(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function fR(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:i,disableTransitionOnChange:o}={},colorModeManager:a=vZ}=e,s=i==="dark"?"dark":"light",[l,u]=C.exports.useState(()=>lP(a,s)),[h,g]=C.exports.useState(()=>lP(a)),{getSystemTheme:m,setClassName:v,setDataset:b,addListener:w}=C.exports.useMemo(()=>pZ({preventTransition:o}),[o]),P=i==="system"&&!l?h:l,E=C.exports.useCallback(I=>{const O=I==="system"?m():I;u(O),v(O==="dark"),b(O),a.set(O)},[a,m,v,b]);bs(()=>{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?sP:k,setColorMode:t?sP:E,forced:t!==void 0}),[P,k,E,t]);return x(C9.Provider,{value:L,children:n})}fR.displayName="ColorModeProvider";var kw={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=800,o=16,a=9007199254740991,s="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",h="[object Boolean]",g="[object Date]",m="[object Error]",v="[object Function]",b="[object GeneratorFunction]",w="[object Map]",P="[object Number]",E="[object Null]",k="[object Object]",L="[object Proxy]",I="[object RegExp]",O="[object Set]",N="[object String]",D="[object Undefined]",z="[object WeakMap]",H="[object ArrayBuffer]",W="[object DataView]",Y="[object Float32Array]",de="[object Float64Array]",j="[object Int8Array]",ne="[object
* 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 hi=typeof Symbol=="function"&&Symbol.for,T9=hi?Symbol.for("react.element"):60103,A9=hi?Symbol.for("react.portal"):60106,T4=hi?Symbol.for("react.fragment"):60107,A4=hi?Symbol.for("react.strict_mode"):60108,I4=hi?Symbol.for("react.profiler"):60114,M4=hi?Symbol.for("react.provider"):60109,O4=hi?Symbol.for("react.context"):60110,I9=hi?Symbol.for("react.async_mode"):60111,R4=hi?Symbol.for("react.concurrent_mode"):60111,N4=hi?Symbol.for("react.forward_ref"):60112,D4=hi?Symbol.for("react.suspense"):60113,lQ=hi?Symbol.for("react.suspense_list"):60120,z4=hi?Symbol.for("react.memo"):60115,B4=hi?Symbol.for("react.lazy"):60116,uQ=hi?Symbol.for("react.block"):60121,cQ=hi?Symbol.for("react.fundamental"):60117,dQ=hi?Symbol.for("react.responder"):60118,fQ=hi?Symbol.for("react.scope"):60119;function ha(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case T9:switch(e=e.type,e){case I9:case R4:case T4:case I4:case A4:case D4:return e;default:switch(e=e&&e.$$typeof,e){case O4:case N4:case B4:case z4:case M4:return e;default:return t}}case A9:return t}}}function MR(e){return ha(e)===R4}Mn.AsyncMode=I9;Mn.ConcurrentMode=R4;Mn.ContextConsumer=O4;Mn.ContextProvider=M4;Mn.Element=T9;Mn.ForwardRef=N4;Mn.Fragment=T4;Mn.Lazy=B4;Mn.Memo=z4;Mn.Portal=A9;Mn.Profiler=I4;Mn.StrictMode=A4;Mn.Suspense=D4;Mn.isAsyncMode=function(e){return MR(e)||ha(e)===I9};Mn.isConcurrentMode=MR;Mn.isContextConsumer=function(e){return ha(e)===O4};Mn.isContextProvider=function(e){return ha(e)===M4};Mn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===T9};Mn.isForwardRef=function(e){return ha(e)===N4};Mn.isFragment=function(e){return ha(e)===T4};Mn.isLazy=function(e){return ha(e)===B4};Mn.isMemo=function(e){return ha(e)===z4};Mn.isPortal=function(e){return ha(e)===A9};Mn.isProfiler=function(e){return ha(e)===I4};Mn.isStrictMode=function(e){return ha(e)===A4};Mn.isSuspense=function(e){return ha(e)===D4};Mn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===T4||e===R4||e===I4||e===A4||e===D4||e===lQ||typeof e=="object"&&e!==null&&(e.$$typeof===B4||e.$$typeof===z4||e.$$typeof===M4||e.$$typeof===O4||e.$$typeof===N4||e.$$typeof===cQ||e.$$typeof===dQ||e.$$typeof===fQ||e.$$typeof===uQ)};Mn.typeOf=ha;(function(e){e.exports=Mn})(IR);var OR=IR.exports,hQ={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},pQ={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},RR={};RR[OR.ForwardRef]=hQ;RR[OR.Memo]=pQ;var gQ=!0;function mQ(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var NR=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||gQ===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},DR=function(t,n,r){NR(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 vQ(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 yQ={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
45deg,
${t} 25%,
transparent 25%,
transparent 50%,
${t} 50%,
${t} 75%,
transparent 75%,
transparent
)`,backgroundSize:`${e} ${e}`}}function WJ(e){const t=YR().toHexString();return!e||FJ(e)?t:e.string&&e.colors?UJ(e.string,e.colors):e.string&&!e.colors?VJ(e.string):e.colors&&!e.string?jJ(e.colors):t}function VJ(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){const i=t>>r*8&255;n+=`00${i.toString(16)}`.substr(-2)}return n}function UJ(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 jJ(e){return e[Math.floor(Math.random()*e.length)]}function Ve(e,t){return n=>n.colorMode==="dark"?t:e}function R9(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function GJ(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function JR(e){return GJ(e)&&e.reference?e.reference:String(e)}var H4=(e,...t)=>t.map(JR).join(` ${e} `).replace(/calc/g,""),OP=(...e)=>`calc(${H4("+",...e)})`,RP=(...e)=>`calc(${H4("-",...e)})`,Bw=(...e)=>`calc(${H4("*",...e)})`,NP=(...e)=>`calc(${H4("/",...e)})`,DP=e=>{const t=JR(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Bw(t,-1)},lu=Object.assign(e=>({add:(...t)=>lu(OP(e,...t)),subtract:(...t)=>lu(RP(e,...t)),multiply:(...t)=>lu(Bw(e,...t)),divide:(...t)=>lu(NP(e,...t)),negate:()=>lu(DP(e)),toString:()=>e.toString()}),{add:OP,subtract:RP,multiply:Bw,divide:NP,negate:DP});function qJ(e){return!Number.isInteger(parseFloat(e.toString()))}function KJ(e,t="-"){return e.replace(/\s+/g,t)}function eN(e){const t=KJ(e.toString());return t.includes("\\.")?e:qJ(e)?t.replace(".","\\."):e}function YJ(e,t=""){return[t,eN(e)].filter(Boolean).join("-")}function ZJ(e,t){return`var(${eN(e)}${t?`, ${t}`:""})`}function XJ(e,t=""){return`--${YJ(e,t)}`}function ji(e,t){const n=XJ(e,t?.prefix);return{variable:n,reference:ZJ(n,QJ(t?.fallback))}}function QJ(e){return typeof e=="string"?e:e?.reference}var{definePartsStyle:JJ,defineMultiStyleConfig:eee}=ir(XQ.keys),tee={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},nee={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},ree={pt:"2",px:"4",pb:"5"},iee={fontSize:"1.25em"},oee=JJ({container:tee,button:nee,panel:ree,icon:iee}),aee=eee({baseStyle:oee}),{definePartsStyle:Av,defineMultiStyleConfig:see}=ir(QQ.keys),oa=ei("alert-fg"),vu=ei("alert-bg"),lee=Av({container:{bg:vu.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:oa.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:oa.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function N9(e){const{theme:t,colorScheme:n}=e,r=L0(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}var uee=Av(e=>{const{colorScheme:t}=e,n=N9(e);return{container:{[oa.variable]:`colors.${t}.500`,[vu.variable]:n.light,_dark:{[oa.variable]:`colors.${t}.200`,[vu.variable]:n.dark}}}}),cee=Av(e=>{const{colorScheme:t}=e,n=N9(e);return{container:{[oa.variable]:`colors.${t}.500`,[vu.variable]:n.light,_dark:{[oa.variable]:`colors.${t}.200`,[vu.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:oa.reference}}}),dee=Av(e=>{const{colorScheme:t}=e,n=N9(e);return{container:{[oa.variable]:`colors.${t}.500`,[vu.variable]:n.light,_dark:{[oa.variable]:`colors.${t}.200`,[vu.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:oa.reference}}}),fee=Av(e=>{const{colorScheme:t}=e;return{container:{[oa.variable]:"colors.white",[vu.variable]:`colors.${t}.500`,_dark:{[oa.variable]:"colors.gray.900",[vu.variable]:`colors.${t}.200`},color:oa.reference}}}),hee={subtle:uee,"left-accent":cee,"top-accent":dee,solid:fee},pee=see({baseStyle:lee,variants:hee,defaultProps:{variant:"subtle",colorScheme:"blue"}}),tN={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:
to right,
transparent 0%,
${Ai(n,a)} 50%,
transparent 100%
)`;return{...!r&&i&&o,...r?{bgImage:s}:{bgColor:a}}},ire={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},ore=e=>({bg:Ve("gray.100","whiteAlpha.300")(e)}),are=e=>({transitionProperty:"common",transitionDuration:"slow",...rre(e)}),sre=Ug(e=>({label:ire,filledTrack:are(e),track:ore(e)})),lre={xs:Ug({track:{h:"1"}}),sm:Ug({track:{h:"2"}}),md:Ug({track:{h:"3"}}),lg:Ug({track:{h:"4"}})},ure=nre({sizes:lre,baseStyle:sre,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:cre,definePartsStyle:v3}=ir(hJ.keys),dre=e=>{var t;const n=(t=fi(m5.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"}}}},fre=v3(e=>{var t,n,r,i;return{label:(n=(t=m5).baseStyle)==null?void 0:n.call(t,e).label,container:(i=(r=m5).baseStyle)==null?void 0:i.call(r,e).container,control:dre(e)}}),hre={md:v3({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:v3({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:v3({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},pre=cre({baseStyle:fre,sizes:hre,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:gre,definePartsStyle:mre}=ir(pJ.keys),vre=e=>{var t;return{...(t=mn.baseStyle)==null?void 0:t.field,bg:Ve("white","gray.700")(e),appearance:"none",paddingBottom:"1px",lineHeight:"normal","> option, > optgroup":{bg:Ve("white","gray.700")(e)}}},yre={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},bre=mre(e=>({field:vre(e),icon:yre})),fy={paddingInlineEnd:"8"},HP,WP,VP,UP,jP,GP,qP,KP,xre={lg:{...(HP=mn.sizes)==null?void 0:HP.lg,field:{...(WP=mn.sizes)==null?void 0:WP.lg.field,...fy}},md:{...(VP=mn.sizes)==null?void 0:VP.md,field:{...(UP=mn.sizes)==null?void 0:UP.md.field,...fy}},sm:{...(jP=mn.sizes)==null?void 0:jP.sm,field:{...(GP=mn.sizes)==null?void 0:GP.sm.field,...fy}},xs:{...(qP=mn.sizes)==null?void 0:qP.xs,field:{...(KP=mn.sizes)==null?void 0:KP.xs.field,...fy},icon:{insetEnd:"1"}}},Sre=gre({baseStyle:bre,sizes:xre,variants:mn.variants,defaultProps:mn.defaultProps}),wre=ei("skeleton-start-color"),Cre=ei("skeleton-end-color"),_re=e=>{const t=Ve("gray.100","gray.800")(e),n=Ve("gray.400","gray.600")(e),{startColor:r=t,endColor:i=n,theme:o}=e,a=Ai(o,r),s=Ai(o,i);return{[wre.variable]:a,[Cre.variable]:s,opacity:.7,borderRadius:"2px",borderColor:a,background:s}},kre={baseStyle:_re},xS=ei("skip-link-bg"),Ere={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[xS.variable]:"colors.white",_dark:{[xS.variable]:"colors.gray.700"},bg:xS.reference}},Pre={baseStyle:Ere},{defineMultiStyleConfig:Lre,definePartsStyle:W4}=ir(gJ.keys),tv=ei("slider-thumb-size"),nv=ei("slider-track-size"),Mc=ei("slider-bg"),Tre=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...R9({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},Are=e=>({...R9({orientation:e.orientation,horizontal:{h:nv.reference},vertical:{w:nv.reference}}),overflow:"hidden",borderRadius:"sm",[Mc.variable]:"colors.gray.200",_dark:{[Mc.variable]:"colors.whiteAlpha.200"},_disabled:{[Mc.variable]:"colors.gray.300",_dark:{[Mc.variable]:"colors.whiteAlpha.300"}},bg:Mc.reference}),Ire=e=>{const{orientation:t}=e;return{...R9({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:tv.reference,h:tv.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"}}},Mre=e=>{const{colorScheme:t}=e;return{wid
[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(u)}},[t]),x(yce,{isPresent:t,childRef:r,sizeRef:i,children:C.exports.cloneElement(e,{ref:r})})}const RS=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const s=q4(xce),l=C.exports.useId(),u=C.exports.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:h=>{s.set(h,!0);for(const g of s.values())if(!g)return;r&&r()},register:h=>(s.set(h,!1),()=>s.delete(h))}),o?void 0:[n]);return C.exports.useMemo(()=>{s.forEach((h,g)=>s.set(g,!1))},[n]),C.exports.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=x(bce,{isPresent:n,children:e})),x(j0.Provider,{value:u,children:e})};function xce(){return new Map}const Pp=e=>e.key||"";function Sce(e,t){e.forEach(n=>{const r=Pp(n);t.set(r,n)})}function wce(e){const t=[];return C.exports.Children.forEach(e,n=>{C.exports.isValidElement(n)&&t.push(n)}),t}const pd=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait",dD(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=vce();const l=C.exports.useContext(F9).forceRender;l&&(s=l);const u=$D(),h=wce(e);let g=h;const m=new Set,v=C.exports.useRef(g),b=C.exports.useRef(new Map).current,w=C.exports.useRef(!0);if(b5(()=>{w.current=!1,Sce(h,b),v.current=g}),K9(()=>{w.current=!0,b.clear(),m.clear()}),w.current)return x(Xn,{children:g.map(L=>x(RS,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:a,children:L},Pp(L)))});g=[...g];const P=v.current.map(Pp),E=h.map(Pp),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 O=P.indexOf(L),N=()=>{b.delete(L),m.delete(L);const D=v.current.findIndex(z=>z.key===L);if(v.current.splice(D,1),!m.size){if(v.current=h,u.current===!1)return;s(),r&&r()}};g.splice(O,0,x(RS,{isPresent:!1,onExitComplete:N,custom:t,presenceAffectsLayout:o,mode:a,children:I},Pp(I)))}),g=g.map(L=>{const I=L.key;return m.has(I)?L:x(RS,{isPresent:!0,presenceAffectsLayout:o,mode:a,children:L},Pp(L))}),cD!=="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.`),x(Xn,{children:m.size?g:g.map(L=>C.exports.cloneElement(L))})};var pl=function(){return pl=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},pl.apply(this,arguments)};function HD(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function G0(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(h){try{u(r.next(h))}catch(g){a(g)}}function l(h){try{u(r.throw(h))}catch(g){a(g)}}function u(h){h.done?o(h.value):i(h.value).then(s,l)}u((r=r.apply(e,t||[])).next())})}function q0(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(h){return l([u,h])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[
`})}function Gce(e){eb({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function Rc(e){const{isOpen:t,isDisabled:n}=c7(),{reduceMotion:r}=d7(),i=zv("chakra-accordion__icon",e.className),o=tb(),a={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:r?void 0:"transform 0.2s",transformOrigin:"center",...o.icon};return x(pa,{viewBox:"0 0 24 24","aria-hidden":!0,className:i,__css:a,...e,children:x("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}Rc.displayName="AccordionIcon";var Nc=Pe(function(t,n){const{children:r,className:i}=t,{htmlProps:o,...a}=Wce(t),l={...tb().container,overflowAnchor:"none"},u=C.exports.useMemo(()=>a,[a]);return le.createElement(Dce,{value:u},le.createElement(we.div,{ref:n,...o,className:zv("chakra-accordion__item",i),__css:l},typeof r=="function"?r({isExpanded:!!a.isOpen,isDisabled:!!a.isDisabled}):r))});Nc.displayName="AccordionItem";var Dc=Pe(function(t,n){const{className:r,motionProps:i,...o}=t,{reduceMotion:a}=d7(),{getPanelProps:s,isOpen:l}=c7(),u=s(o,n),h=zv("chakra-accordion__panel",r),g=tb();a||delete u.hidden;const m=le.createElement(we.div,{...u,__css:g.panel,className:h});return a?m:x(WD,{in:l,...i,children:m})});Dc.displayName="AccordionPanel";var nb=Pe(function({children:t,reduceMotion:n,...r},i){const o=Ri("Accordion",r),a=vn(r),{htmlProps:s,descendants:l,...u}=$ce(a),h=C.exports.useMemo(()=>({...u,reduceMotion:!!n}),[u,n]);return le.createElement(zce,{value:l},le.createElement(Hce,{value:h},le.createElement(Nce,{value:o},le.createElement(we.div,{ref:i,...s,className:zv("chakra-accordion",r.className),__css:o.root},t))))});nb.displayName="Accordion";var qce=(...e)=>e.filter(Boolean).join(" "),Kce=hd({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Bv=Pe((e,t)=>{const n=so("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:a="transparent",className:s,...l}=vn(e),u=qce("chakra-spinner",s),h={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:a,borderLeftColor:a,animation:`${Kce} ${o} linear infinite`,...n};return le.createElement(we.div,{ref:t,__css:h,className:u,...l},r&&le.createElement(we.span,{srOnly:!0},r))});Bv.displayName="Spinner";var rb=(...e)=>e.filter(Boolean).join(" ");function Yce(e){return x(pa,{viewBox:"0 0 24 24",...e,children:x("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 Zce(e){return x(pa,{viewBox:"0 0 24 24",...e,children:x("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 pT(e){return x(pa,{viewBox:"0 0 24 24",...e,children:x("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[Xce,Qce]=Cn({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[Jce,f7]=Cn({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),GD={info:{icon:Zce,colorScheme:"blue"},warning:{icon:pT,colorScheme:"orange"},success:{icon:Yce,colorScheme:"green"},error:{icon:pT,colorScheme:"red"},loading:{icon:Bv,colorScheme:"blue"}};function ede(e){return GD[e].colorScheme}function tde(e){return GD[e].icon}var qD=Pe(function(t,n){const{status:r="info",addRole:i=!0,...o}=vn(t),a=t.colorScheme??ede(r),s=Ri("Alert",{...t,colorScheme:a}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",over
: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: 100dvh) {
:root {
--chakra-vh: 100dvh;
}
}
`,Fde=()=>x(F4,{styles:rz}),$de=()=>x(F4,{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;
}
${rz}
`});function Ff(e,t,n,r){const i=dr(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)}}function Hde(e){return"current"in e}var iz=()=>typeof window<"u";function Wde(){const e=navigator.userAgentData;return e?.platform??navigator.platform}var Vde=e=>iz()&&e.test(navigator.vendor),Ude=e=>iz()&&e.test(Wde()),jde=()=>Ude(/mac|iphone|ipad|ipod/i),Gde=()=>jde()&&Vde(/apple/i);function qde(e){const{ref:t,elements:n,enabled:r}=e,i=()=>{var o;return((o=t.current)==null?void 0:o.ownerDocument)??document};Ff(i,"pointerdown",o=>{if(!Gde()||!r)return;const a=o.target,l=(n??[t]).some(u=>{const h=Hde(u)?u.current:u;return h?.contains(a)||h===a});i().activeElement!==a&&l&&(o.preventDefault(),a.focus())})}var Kde=HQ?C.exports.useLayoutEffect:C.exports.useEffect;function wT(e,t=[]){const n=C.exports.useRef(e);return Kde(()=>{n.current=e}),C.exports.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function Yde(e,t){const n=e!==void 0;return[n,n&&typeof e<"u"?e:t]}function Zde(e,t){const n=C.exports.useId();return C.exports.useMemo(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}function O5(e={}){const{onClose:t,onOpen:n,isOpen:r,id:i}=e,o=wT(n),a=wT(t),[s,l]=C.exports.useState(e.defaultIsOpen||!1),[u,h]=Yde(r,s),g=Zde(i,"disclosure"),m=C.exports.useCallback(()=>{u||l(!1),a?.()},[u,a]),v=C.exports.useCallback(()=>{u||l(!0),o?.()},[u,o]),b=C.exports.useCallback(()=>{(h?m:v)()},[h,v,m]);return{isOpen:!!h,onOpen:v,onClose:m,onToggle:b,isControlled:u,getButtonProps:(w={})=>({...w,"aria-expanded":h,"aria-controls":g,onClick:WQ(w.onClick,b)}),getDisclosureProps:(w={})=>({...w,hidden:!h,id:g})}}function y7(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var b7=Pe(function(t,n){const{htmlSize:r,...i}=t,o=Ri("Input",i),a=vn(i),s=h7(a),l=Nr("chakra-input",t.className);return le.createElement(we.input,{size:r,...s,__css:o.field,ref:n,className:l})});b7.displayName="Input";b7.id="Input";var[Xde,oz]=Cn({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "<InputGroup />" `}),Qde=Pe(function(t,n){const r=Ri("Input",t),{children:i,className:o,...a}=vn(t),s=Nr("chakra-input__group",o),l={},u=ob(i),h=r.field;u.forEach(m=>{!r||(h&&m.type.id==="InputLeftElement"&&(l.paddingStart=h.height??h.h),h&&m.type.id==="InputRightElement"&&(l.paddingEnd=h.height??h.h),m.type.id==="InputRightAddon"&&(l.borderEndRadius=0),m.type.id==="InputLeftAddon"&&(l.borderStartRadius=0))});const g=u.map(m=>{var v,b;const w=y7({size:((v=m.props)==null?void 0:v.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,Object.assign(w,l,m.props))});return le.createElement(we.div,{className:s,ref:n,__css:{width:"100%",display:"flex",position:"relative"},...a},x(Xde,{value:r,children:g}))});Qde.displayName="InputGroup";var Jde={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},efe=we("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),x7=Pe(function(t,n){const{placement:r="left",...i}=t,o=Jde[r]??{},a=oz();return x(efe,{ref:n,...i,__css:{...a.addon,...o}})});x7.displayName="InputAddon";var az=Pe(function(t,n){return x(x7,{ref:n,placement:"left",...t,className:Nr("chakra-input__left-addon",t.className)})});az.displayName="InputLeftAddon";az.id="InputLeftAddon";var sz=Pe(function(t,n){return x(x7,{ref:n,placement:"right",...t,className:Nr("chakra-input__right-addon",t.className)})});sz.displayName="InputRightAddon";sz.id="InputRightAddon";var tfe=we("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),ub=Pe(function(t,n){const{placement:
.`.concat(k0e,` {
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(_3,` {
right: `).concat(s,"px ").concat(r,`;
}
.`).concat(k3,` {
margin-right: `).concat(s,"px ").concat(r,`;
}
.`).concat(_3," .").concat(_3,` {
right: 0 `).concat(r,`;
}
.`).concat(k3," .").concat(k3,` {
margin-right: 0 `).concat(r,`;
}
body {
`).concat(E0e,": ").concat(s,`px;
}
`)},B0e=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r,o=C.exports.useMemo(function(){return N0e(i)},[i]);return x(D0e,{styles:z0e(o,!t,i,n?"":"!important")})},kC=!1;if(typeof window<"u")try{var _y=Object.defineProperty({},"passive",{get:function(){return kC=!0,!0}});window.addEventListener("test",_y,_y),window.removeEventListener("test",_y,_y)}catch{kC=!1}var xp=kC?{passive:!1}:!1,F0e=function(e){return e.tagName==="TEXTAREA"},PB=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!F0e(e)&&n[t]==="visible")},$0e=function(e){return PB(e,"overflowY")},H0e=function(e){return PB(e,"overflowX")},WT=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=LB(e,n);if(r){var i=TB(e,n),o=i[1],a=i[2];if(o>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},W0e=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},V0e=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},LB=function(e,t){return e==="v"?$0e(t):H0e(t)},TB=function(e,t){return e==="v"?W0e(t):V0e(t)},U0e=function(e,t){return e==="h"&&t==="rtl"?-1:1},j0e=function(e,t,n,r,i){var o=U0e(e,window.getComputedStyle(t).direction),a=o*r,s=n.target,l=t.contains(s),u=!1,h=a>0,g=0,m=0;do{var v=TB(e,s),b=v[0],w=v[1],P=v[2],E=w-P-o*b;(b||E)&&LB(e,s)&&(g+=E,m+=b),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(h&&(i&&g===0||!i&&a>g)||!h&&(i&&m===0||!i&&-a>m))&&(u=!0),u},ky=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},VT=function(e){return[e.deltaX,e.deltaY]},UT=function(e){return e&&"current"in e?e.current:e},G0e=function(e,t){return e[0]===t[0]&&e[1]===t[1]},q0e=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},K0e=0,Sp=[];function Y0e(e){var t=C.exports.useRef([]),n=C.exports.useRef([0,0]),r=C.exports.useRef(),i=C.exports.useState(K0e++)[0],o=C.exports.useState(function(){return EB()})[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=uC([e.lockRef.current],(e.shards||[]).map(UT),!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=ky(w),k=n.current,L="deltaX"in w?w.deltaX:k[0]-E[0],I="deltaY"in w?w.deltaY:k[1]-E[1],O,N=w.target,D=Math.abs(L)>Math.abs(I)?"h":"v";if("touches"in w&&D==="h"&&N.type==="range")return!1;var z=WT(D,N);if(!z)return!0;if(z?O=D:(O=D==="v"?"h":"v",z=WT(D,N)),!z)return!1;if(!r.current&&"changedTouches"in w&&(L||I)&&(r.current=O),!O)return!0;var H=r.current||O;return j0e(H,P,w,H==="h"?L:I,!0)},[]),l=C.exports.useCallback(function(w){var P=w;if(!(!Sp.length||Sp[Sp.length-1]!==o)){var E="deltaY"in P?VT(P):ky(P),k=t.current.filter(function(O){return O.name===P.type&&O.target===P.target&&G0e(O.delta,E)})[0];if(k&&k.should){P.cancelable&&P.preventDefault();return}if(!k){var L=(a.current.shards||[]).map(UT).filter(Boolean).filter(function(O){return O.contains(P.target)}),I=L.length>0?s(P,L[0]):!a.current.noIsolation;I&&P.cancelable&&P.preventDefault()}}},[]),u=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)},[]),h=C.exports.useCallback(function(w){n.current=ky(w),r.current=void 0},[]),g=C.exports.useCallback(function(w){u(w.type,VT(w),w.target,s(w,e.lockRef.current))},[]),m=C.exports.useCallback(function(w){u(w.type,ky(w),w.target,s(w,e.lockRef.current))},[]);C.exports.useEffect(function(){return Sp.push(o),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:m}),document.addEventListener("wheel",l,xp),document.addEventListener("touchmove",l,xp),document.addEventListener("touchstart",h,xp),function(){Sp=Sp.filter(function(w){return w!==o}),document.removeEventListener("wheel",l,xp),document.removeEventListener("touchmove",l,xp),document.removeEventListener("touchstart",h,xp)}},[]);var v=e.removeScrollBar,b=e.inert;return te(Xn,{children:[b?x(o,{styles:q0e(i)}):null,v?x(B0e,{gapMode:"margin"}):null]})}const Z0e=Tpe(kB,Y0e);var AB=C.exports.forwardRef(function(e,t){return x(db,{...pl({},e,{ref:t,sideCar:Z0e})})});AB.classNames=db.classNames;const IB=AB;var oh=(...e)=>e.filter(Boolean).join(" ");function jg(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var X0e=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}},EC=new X0e;function Q0e(e,t){C.exports.useEffect(()=>(t&&EC.add(e),()=>{EC.remove(e)}),[t,e])}function J0e(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:i=!0,closeOnEsc:o=!0,useInert:a=!0,onOverlayClick:s,onEsc:l}=e,u=C.exports.useRef(null),h=C.exports.useRef(null),[g,m,v]=t1e(r,"chakra-modal","chakra-modal--header","chakra-modal--body");e1e(u,t&&a),Q0e(u,t);const b=C.exports.useRef(null),w=C.exports.useCallback(z=>{b.current=z.target},[]),P=C.exports.useCallback(z=>{z.key==="Escape"&&(z.stopPropagation(),o&&n?.(),l?.())},[o,n,l]),[E,k]=C.exports.useState(!1),[L,I]=C.exports.useState(!1),O=C.exports.useCallback((z={},H=null)=>({role:"dialog",...z,ref:$n(H,u),id:g,tabIndex:-1,"aria-modal":!0,"aria-labelledby":E?m:void 0,"aria-describedby":L?v:void 0,onClick:jg(z.onClick,W=>W.stopPropagation())}),[v,L,g,m,E]),N=C.exports.useCallback(z=>{z.stopPropagation(),b.current===z.target&&(!EC.isTopModal(u)||(i&&n?.()
* @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 D0=C.exports;function uve(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var cve=typeof Object.is=="function"?Object.is:uve,dve=D0.useState,fve=D0.useEffect,hve=D0.useLayoutEffect,pve=D0.useDebugValue;function gve(e,t){var n=t(),r=dve({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return hve(function(){i.value=n,i.getSnapshot=t,i6(i)&&o({inst:i})},[e,n,t]),fve(function(){return i6(i)&&o({inst:i}),e(function(){i6(i)&&o({inst:i})})},[e]),pve(n),n}function i6(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!cve(e,n)}catch{return!0}}function mve(e,t){return t()}var vve=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?mve:gve;wF.useSyncExternalStore=D0.useSyncExternalStore!==void 0?D0.useSyncExternalStore:vve;(function(e){e.exports=wF})(SF);var CF={exports:{}},_F={};/**
* @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 vb=C.exports,yve=SF.exports;function bve(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xve=typeof Object.is=="function"?Object.is:bve,Sve=yve.useSyncExternalStore,wve=vb.useRef,Cve=vb.useEffect,_ve=vb.useMemo,kve=vb.useDebugValue;_F.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=wve(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=_ve(function(){function l(v){if(!u){if(u=!0,h=v,v=r(v),i!==void 0&&a.hasValue){var b=a.value;if(i(b,v))return g=b}return g=v}if(b=g,xve(h,v))return b;var w=r(v);return i!==void 0&&i(b,w)?b:(h=v,g=w)}var u=!1,h,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=Sve(e,o[0],o[1]);return Cve(function(){a.hasValue=!0,a.value=s},[s]),kve(s),s};(function(e){e.exports=_F})(CF);function Eve(e){e()}let kF=Eve;const Pve=e=>kF=e,Lve=()=>kF,ld=C.exports.createContext(null);function EF(){return C.exports.useContext(ld)}const Tve=()=>{throw new Error("uSES not initialized!")};let PF=Tve;const Ave=e=>{PF=e},Ive=(e,t)=>e===t;function Mve(e=ld){const t=e===ld?EF:()=>C.exports.useContext(e);return function(r,i=Ive){const{store:o,subscription:a,getServerState:s}=t(),l=PF(a.addNestedSub,o.getState,s||o.getState,r,i);return C.exports.useDebugValue(l),l}}const Ove=Mve();var Rve={exports:{}},On={};/**
* @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 f_=Symbol.for("react.element"),h_=Symbol.for("react.portal"),yb=Symbol.for("react.fragment"),bb=Symbol.for("react.strict_mode"),xb=Symbol.for("react.profiler"),Sb=Symbol.for("react.provider"),wb=Symbol.for("react.context"),Nve=Symbol.for("react.server_context"),Cb=Symbol.for("react.forward_ref"),_b=Symbol.for("react.suspense"),kb=Symbol.for("react.suspense_list"),Eb=Symbol.for("react.memo"),Pb=Symbol.for("react.lazy"),Dve=Symbol.for("react.offscreen"),LF;LF=Symbol.for("react.module.reference");function Va(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case f_:switch(e=e.type,e){case yb:case xb:case bb:case _b:case kb:return e;default:switch(e=e&&e.$$typeof,e){case Nve:case wb:case Cb:case Pb:case Eb:case Sb:return e;default:return t}}case h_:return t}}}On.ContextConsumer=wb;On.ContextProvider=Sb;On.Element=f_;On.ForwardRef=Cb;On.Fragment=yb;On.Lazy=Pb;On.Memo=Eb;On.Portal=h_;On.Profiler=xb;On.StrictMode=bb;On.Suspense=_b;On.SuspenseList=kb;On.isAsyncMode=function(){return!1};On.isConcurrentMode=function(){return!1};On.isContextConsumer=function(e){return Va(e)===wb};On.isContextProvider=function(e){return Va(e)===Sb};On.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===f_};On.isForwardRef=function(e){return Va(e)===Cb};On.isFragment=function(e){return Va(e)===yb};On.isLazy=function(e){return Va(e)===Pb};On.isMemo=function(e){return Va(e)===Eb};On.isPortal=function(e){return Va(e)===h_};On.isProfiler=function(e){return Va(e)===xb};On.isStrictMode=function(e){return Va(e)===bb};On.isSuspense=function(e){return Va(e)===_b};On.isSuspenseList=function(e){return Va(e)===kb};On.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===yb||e===xb||e===bb||e===_b||e===kb||e===Dve||typeof e=="object"&&e!==null&&(e.$$typeof===Pb||e.$$typeof===Eb||e.$$typeof===Sb||e.$$typeof===wb||e.$$typeof===Cb||e.$$typeof===LF||e.getModuleId!==void 0)};On.typeOf=Va;(function(e){e.exports=On})(Rve);function zve(){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 pA={notify(){},get:()=>[]};function Bve(e,t){let n,r=pA;function i(g){return l(),r.subscribe(g)}function o(){r.notify()}function a(){h.onStateChange&&h.onStateChange()}function s(){return Boolean(n)}function l(){n||(n=t?t.addNestedSub(a):e.subscribe(a),r=zve())}function u(){n&&(n(),n=void 0,r.clear(),r=pA)}const h={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:s,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>r};return h}const Fve=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",$ve=Fve?C.exports.useLayoutEffect:C.exports.useEffect;function Hve({store:e,context:t,children:n,serverState:r}){const i=C.exports.useMemo(()=>{const s=Bve(e);return{store:e,subscription:s,getServerState:r?()=>r:void 0}},[e,r]),o=C.exports.useMemo(()=>e.getState(),[e]);return $ve(()=>{const{subscription:s}=i;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),o!==e.getState()&&s.notifyNestedSubs(),()=>{s.tryUnsubscribe(),s.onStateChange=void 0}},[i,o]),x((t||ld).Provider,{value:i,children:n})}function TF(e=ld){const t=e===ld?EF:()=>C.exports.useContext(e);return function(){const{store:r}=t();return r}}const Wve=TF();function Vve(e=ld){const t=e===ld?Wve:TF(e);return function(){return t().dispatch}}const Uve=Vve();Ave(CF.exports.useSyncExternalStoreWithSelector);Pve(Il.exports.unstable_batchedUpdates);var p_="persist:",AF="persist/FLUSH",g_="persist/REHYDRATE",IF="persist/PAUSE",MF="persist/PERSIST",OF="persist/PURGE",RF="persist/REGISTER",jve=-1;function L3(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?L3=function(n){return typeof n}:L3=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symb
`;if(!(0,e.isString)(ne)||ne.length<1)throw new Error(`${q} Name (key) of reducer is required. ${V}`);if(!j||!j.length)return;const{duplicates:G,subsets:Q}=(0,e.findDuplicatesAndSubsets)(j);if(G.length>1)throw new Error(`${q} Duplicated paths.
${JSON.stringify(G)}
${V}`);if(Q.length>1)throw new Error(`${q} You are trying to persist an entire property and also some of its subset.
${JSON.stringify(Q)}
${V}`)};e.singleTransformValidator=z;const H=function(j){if(!(0,e.isArray)(j))return;const ne=j?.map(ie=>ie.deepPersistKey).filter(ie=>ie)||[];if(ne.length){const ie=ne.filter((J,q)=>ne.indexOf(J)!==q);if(ie.length)throw new Error(`${t.PACKAGE_NAME}: found duplicated keys in transforms creators. You can createWhitelist or createBlacklist for a specific root reducer key only once. Duplicated keys among createWhitelist and createBlacklist transforms are not allowed.
Duplicates: ${JSON.stringify(ie)}`)}};e.transformsValidator=H;const W=function({whitelist:j,blacklist:ne}){if(j&&j.length&&ne&&ne.length)throw new Error(`${t.PACKAGE_NAME}: you should not define a whitelist and blacklist in parallel. It is allowed to use only one of these lists per config.`);if(j){const{duplicates:ie,subsets:J}=(0,e.findDuplicatesAndSubsets)(j);(0,e.throwError)({duplicates:ie,subsets:J},"whitelist")}if(ne){const{duplicates:ie,subsets:J}=(0,e.findDuplicatesAndSubsets)(ne);(0,e.throwError)({duplicates:ie,subsets:J},"blacklist")}};e.configValidator=W;const Y=function({duplicates:j,subsets:ne},ie){if(j.length)throw new Error(`${t.PACKAGE_NAME}: duplicates of paths found in your ${ie}.
${JSON.stringify(j)}`);if(ne.length)throw new Error(`${t.PACKAGE_NAME}: subsets of some parent keys found in your ${ie}. You must decide if you want to persist an entire path or its specific subset.
${JSON.stringify(ne)}`)};e.throwError=Y;const de=function(j){return(0,e.isArray)(j)?j.filter(e.unique).reduce((ne,ie)=>{const J=ie.split("."),q=J[0],V=J.slice(1).join(".")||void 0,G=ne.filter(X=>Object.keys(X)[0]===q)[0],Q=G?Object.values(G)[0]:void 0;return G||ne.push({[q]:V?[V]:void 0}),G&&!Q&&V&&(G[q]=[V]),G&&Q&&V&&Q.push(V),ne},[]):[]};e.getRootKeysGroup=de})(BF);(function(e){var t=gs&&gs.__rest||function(g,m){var v={};for(var b in g)Object.prototype.hasOwnProperty.call(g,b)&&m.indexOf(b)<0&&(v[b]=g[b]);if(g!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,b=Object.getOwnPropertySymbols(g);w<b.length;w++)m.indexOf(b[w])<0&&Object.prototype.propertyIsEnumerable.call(g,b[w])&&(v[b[w]]=g[b[w]]);return v};Object.defineProperty(e,"__esModule",{value:!0}),e.getPersistConfig=e.getTransforms=e.createBlacklist=e.createWhitelist=e.autoMergeDeep=void 0;const n=BF,r=Xf,i=y_,o=function(g,m,v={}){const b=v.whitelist||null,w=v.blacklist||null;function P(E){return!!(b&&b.indexOf(E)===-1||w&&w.indexOf(E)!==-1)}return{in:(E,k,L)=>!P(k)&&g?g(E,k,L):E,out:(E,k,L)=>!P(k)&&m?m(E,k,L):E,deepPersistKey:b&&b[0]}},a=(g,m,v,{debug:b,whitelist:w,blacklist:P,transforms:E})=>{if(w||P)throw new Error("State reconciler autoMergeDeep uses custom transforms instead of old whitelist or blacklist config properties. Please use createWhitelist or createBlacklist transforms.");(0,n.transformsValidator)(E);const k=(0,n.cloneDeep)(v);let L=g;if(L&&(0,n.isObjectLike)(L)){const I=(0,n.difference)(m,v);(0,n.isEmpty)(I)||(L=(0,n.mergeDeep)(g,I,{preserveUndefined:!0}),b&&console.log(`${r.PACKAGE_NAME}/autoMergeDeep: sub state of your state was modified by reducer during rehydration. Values from reducer will be kept: ${JSON.stringify(I)}`)),Object.keys(L).forEach(O=>{if(O!=="_persist"){if((0,n.isObjectLike)(k[O])){k[O]=(0,n.mergeDeep)(k[O],L[O]);return}k[O]=L[O]}})}return b&&L&&(0,n.isObjectLike)(L)&&console.log(`${r.PACKAGE_NAME}/autoMergeDeep: rehydrated keys ${JSON.stringify(L)}`),k};e.autoMergeDeep=a;const s=(g,m)=>((0,n.singleTransformValidator)(m,g,i.ConfigType.WHITELIST),o(v=>{if(!m||!m.length)return v;let b=null,w;return m.forEach(P=>{const E=P.split(".");w=(0,n.path)(v,E),typeof w>"u"&&(0,n.isIntegerString)(E[E.length-1])&&(w=r.PLACEHOLDER_UNDEFINED);const k=(0,n.assocPath)(E,w),L=(0,n.isArray)(k)?[]:{};b=(0,n.mergeDeep)(b||L,k,{preservePlaceholder:!0})}),b||v},v=>(0,n.preserveUndefined)(v,m,i.ConfigType.WHITELIST),{whitelist:[g]}));e.createWhitelist=s;const l=(g,m)=>((0,n.singleTransformValidator)(m,g,i.ConfigType.BLACKLIST),o(v=>{if(!m||!m.length)return;const b=(0,n.preserveUndefined)(v,m,i.ConfigType.BLACKLIST,!0);return m.map(P=>P.split(".")).reduce((P,E)=>(0,n.dissocPath)(P,E),b)},v=>(0,n.preserveUndefined)(v,m,i.ConfigType.BLACKLIST),{whitelist:[g]}));e.createBlacklist=l;const u=function(g,m){return m.map(v=>{const b=Object.keys(v)[0],w=v[b];return g===i.ConfigType.WHITELIST?(0,e.createWhitelist)(b,w):(0,e.createBlacklist)(b,w)})};e.getTransforms=u;const h=g=>{var{key:m,whitelist:v,blacklist:b,storage:w,transforms:P,rootReducer:E}=g,k=t(g,["key","whitelist","blacklist","storage","transforms","rootReducer"]);(0,n.configValidator)({whitelist:v,blacklist:b});const L=(0,n.getRootKeysGroup)(v),I=(0,n.getRootKeysGroup)(b),O=Object.keys(E(void 0,{type:""})),N=L.map(de=>Object.keys(de)[0]),D=I.map(de=>Object.keys(de)[0]),z=O.filter(de=>N.indexOf(de)===-1&&D.indexOf(de)===-1),H=(0,e.getTransforms)(i.ConfigType.WHITELIST,L),W=(0,e.getTransforms)(i.ConfigType.BLACKLIST,I),Y=(0,n.isArray)(v)?z.map(de=>(0,e.createBlacklist)(de)):[];return Object.assign(Object.assign({},k),{key:m,storage:w,transforms:[...H,...W,...Y,...P||[]],stateReconciler:e.autoMergeDeep})};e.getPersistConfig=h})(zF);const A3=e=>e.length===1?e[0].prompt:e.map(t=>`${t.prompt}:${t.weight}`).join(" "),S2e=e=>{const r=e.split(",").map(i=>i.split(":")).map(i=>({seed:Number(i[0]),weight:Number(i[1])}));return b_(r)?r:!1},b_=e=>Boolean(typeof e=="string"?S2e(e):e.length&&!e.some(t=>{const{seed:n,weight:r}=t,i=!isNaN(parseInt(n.toString(),10)),o=!isNaN(parseInt(r.toString(),10))&&
* @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__",u=500,h="__lodash_placeholder__",g=1,m=2,v=4,b=1,w=2,P=1,E=2,k=4,L=8,I=16,O=32,N=64,D=128,z=256,H=512,W=30,Y="...",de=800,j=16,ne=1,ie=2,J=3,q=1/0,V=9007199254740991,G=17976931348623157e292,Q=0/0,X=4294967295,me=X-1,xe=X>>>1,Se=[["ary",D],["bind",P],["bindKey",E],["curry",L],["curryRight",I],["flip",H],["partial",O],["partialRight",N],["rearg",z]],He="[object Arguments]",Ue="[object Array]",ut="[object AsyncFunction]",Xe="[object Boolean]",et="[object Date]",tt="[object DOMException]",at="[object Error]",At="[object Function]",wt="[object GeneratorFunction]",Ae="[object Map]",dt="[object Number]",Mt="[object Null]",ct="[object Object]",xt="[object Promise]",kn="[object Proxy]",Et="[object RegExp]",Zt="[object Set]",En="[object String]",yn="[object Symbol]",Me="[object Undefined]",Je="[object WeakMap]",Xt="[object WeakSet]",qt="[object ArrayBuffer]",Ee="[object DataView]",It="[object Float32Array]",Ne="[object Float64Array]",st="[object Int8Array]",ln="[object Int16Array]",Dn="[object Int32Array]",Fe="[object Uint8Array]",pt="[object Uint8ClampedArray]",rt="[object Uint16Array]",Nt="[object Uint32Array]",Qt=/\b__p \+= '';/g,Qn=/\b(__p \+=) '' \+/g,lo=/(__e\(.*?\)|\b__t\)) \+\n'';/g,pi=/&(?:amp|lt|gt|quot|#39);/g,As=/[&<>"']/g,o1=RegExp(pi.source),ga=RegExp(As.source),yh=/<%-([\s\S]+?)%>/g,a1=/<%([\s\S]+?)%>/g,Mu=/<%=([\s\S]+?)%>/g,bh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xh=/^\w*$/,Ro=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kd=/[\\^$.*+?()[\]{}|]/g,s1=RegExp(kd.source),Ou=/^\s+/,Ed=/\s/,l1=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Is=/\{\n\/\* \[wrapped with (.+)\] \*/,Ru=/,? & /,u1=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,c1=/[()=,{}\[\]\/\s]/,d1=/\\(\\)?/g,f1=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ua=/\w*$/,h1=/^[-+]0x[0-9a-f]+$/i,p1=/^0b[01]+$/i,g1=/^\[object .+?Constructor\]$/,m1=/^0o[0-7]+$/i,v1=/^(?:0|[1-9]\d*)$/,y1=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ms=/($^)/,b1=/['\n\r\u2028\u2029\\]/g,ja="\\ud800-\\udfff",Nl="\\u0300-\\u036f",Dl="\\ufe20-\\ufe2f",Os="\\u20d0-\\u20ff",zl=Nl+Dl+Os,Sh="\\u2700-\\u27bf",Nu="a-z\\xdf-\\xf6\\xf8-\\xff",Rs="\\xac\\xb1\\xd7\\xf7",No="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Pn="\\u2000-\\u206f",bn=" \\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",Do="A-Z\\xc0-\\xd6\\xd8-\\xde",kr="\\ufe0e\\ufe0f",Ur=Rs+No+Pn+bn,zo="['\u2019]",Ns="["+ja+"]",jr="["+Ur+"]",Ga="["+zl+"]",Pd="\\d+",Bl="["+Sh+"]",qa="["+Nu+"]",Ld="[^"+ja+Ur+Pd+Sh+Nu+Do+"]",gi="\\ud83c[\\udffb-\\udfff]",wh="(?:"+Ga+"|"+gi+")",Ch="[^"+ja+"]",Td="(?:\\ud83c[\\udde6-\\uddff]){2}",Ds="[\\ud800-\\udbff][\\udc00-\\udfff]",uo="["+Do+"]",zs="\\u200d",Fl="(?:"+qa+"|"+Ld+")",x1="(?:"+uo+"|"+Ld+")",Du="(?:"+zo+"(?:d|ll|m|re|s|t|ve))?",zu="(?:"+zo+"(?:D|LL|M|RE|S|T|VE))?",Ad=wh+"?",Bu="["+kr+"]?",ma="(?:"+zs+"(?:"+[Ch,Td,Ds].join("|")+")"+Bu+Ad+")*",Id="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$l="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ht=Bu+Ad+ma,_h="(?:"+[Bl,Td,Ds].join("|")+")"+Ht,Fu="(?:"+[Ch+Ga+"?",Ga,Td,Ds,Ns].join("|")+")",$u=RegExp(zo,"g"),kh=RegExp(Ga,"g"),Bo=RegExp(gi+"(?="+gi+")|"+Fu+Ht,"g"),Wn=RegExp([uo+"?"+qa+"+"+Du+"(?="+[jr,uo,"$"].join("|")+")",x1+"+"+zu+"(?="+[jr,uo+Fl,"$"].join("|")+")",uo+"?"+Fl+"+"+Du,uo+"+"+zu,$l,Id,Pd,_h].join("|"),"g"),Md=RegExp("["+zs+ja+zl+kr+"]"),Eh=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Od=["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"],Ph=-1,un={};un[I
/* [wrapped with `+p+`] */
`)}function xV(c){return Rt(c)||df(c)||!!(M1&&c&&c[M1])}function Zl(c,p){var S=typeof c;return p=p??V,!!p&&(S=="number"||S!="symbol"&&v1.test(c))&&c>-1&&c%1==0&&c<p}function Qi(c,p,S){if(!lr(S))return!1;var A=typeof p;return(A=="number"?bo(S)&&Zl(p,S.length):A=="string"&&p in S)?rs(S[p],c):!1}function Sx(c,p){if(Rt(c))return!1;var S=typeof c;return S=="number"||S=="symbol"||S=="boolean"||c==null||Yo(c)?!0:xh.test(c)||!bh.test(c)||p!=null&&c in cn(p)}function SV(c){var p=typeof c;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?c!=="__proto__":c===null}function wx(c){var p=ye(c),S=B[p];if(typeof S!="function"||!(p in Ut.prototype))return!1;if(c===S)return!0;var A=ue(S);return!!A&&c===A[0]}function wV(c){return!!Ku&&Ku in c}var CV=Jn?Xl:Fx;function ug(c){var p=c&&c.constructor,S=typeof p=="function"&&p.prototype||xn;return c===S}function uk(c){return c===c&&!lr(c)}function ck(c,p){return function(S){return S==null?!1:S[c]===p&&(p!==n||c in cn(S))}}function _V(c){var p=D2(c,function(A){return S.size===u&&S.clear(),A}),S=p.cache;return p}function kV(c,p){var S=c[1],A=p[1],R=S|A,F=R<(P|E|D),K=A==D&&S==L||A==D&&S==z&&c[7].length<=p[8]||A==(D|z)&&p[7].length<=p[8]&&S==L;if(!(F||K))return c;A&P&&(c[2]=p[2],R|=S&P?0:k);var ee=p[3];if(ee){var ce=c[3];c[3]=ce?A2(ce,ee,p[4]):ee,c[4]=ce?Ho(c[3],h):p[4]}return ee=p[5],ee&&(ce=c[5],c[5]=ce?ig(ce,ee,p[6]):ee,c[6]=ce?Ho(c[5],h):p[6]),ee=p[7],ee&&(c[7]=ee),A&D&&(c[8]=c[8]==null?p[8]:Kr(c[8],p[8])),c[9]==null&&(c[9]=p[9]),c[0]=p[0],c[1]=R,c}function EV(c){var p=[];if(c!=null)for(var S in cn(c))p.push(S);return p}function PV(c){return Nh.call(c)}function dk(c,p,S){return p=vr(p===n?c.length-1:p,0),function(){for(var A=arguments,R=-1,F=vr(A.length-p,0),K=ve(F);++R<F;)K[R]=A[p+R];R=-1;for(var ee=ve(p+1);++R<p;)ee[R]=A[R];return ee[p]=S(K),mi(c,this,ee)}}function fk(c,p){return p.length<2?c:Us(c,Ar(p,0,-1))}function LV(c,p){for(var S=c.length,A=Kr(p.length,S),R=wi(c);A--;){var F=p[A];c[A]=Zl(F,S)?R[F]:n}return c}function Cx(c,p){if(!(p==="constructor"&&typeof c[p]=="function")&&p!="__proto__")return c[p]}var hk=gk(rf),cg=qd||function(c,p){return mt.setTimeout(c,p)},_x=gk(np);function pk(c,p,S){var A=p+"";return _x(c,bV(A,TV(mV(A),S)))}function gk(c){var p=0,S=0;return function(){var A=O1(),R=j-(A-S);if(S=A,R>0){if(++p>=de)return arguments[0]}else p=0;return c.apply(n,arguments)}}function M2(c,p){var S=-1,A=c.length,R=A-1;for(p=p===n?A:p;++S<p;){var F=tf(S,R),K=c[F];c[F]=c[S],c[S]=K}return c.length=p,c}var mk=_V(function(c){var p=[];return c.charCodeAt(0)===46&&p.push(""),c.replace(Ro,function(S,A,R,F){p.push(R?F.replace(d1,"$1"):A||S)}),p});function el(c){if(typeof c=="string"||Yo(c))return c;var p=c+"";return p=="0"&&1/c==-q?"-0":p}function cf(c){if(c!=null){try{return or.call(c)}catch{}try{return c+""}catch{}}return""}function TV(c,p){return Vn(Se,function(S){var A="_."+S[0];p&S[1]&&!Ni(c,A)&&c.push(A)}),c.sort()}function vk(c){if(c instanceof Ut)return c.clone();var p=new Ki(c.__wrapped__,c.__chain__);return p.__actions__=wi(c.__actions__),p.__index__=c.__index__,p.__values__=c.__values__,p}function AV(c,p,S){(S?Qi(c,p,S):p===n)?p=1:p=vr(Dt(p),0);var A=c==null?0:c.length;if(!A||p<1)return[];for(var R=0,F=0,K=ve(Kd(A/p));R<A;)K[F++]=Ar(c,R,R+=p);return K}function IV(c){for(var p=-1,S=c==null?0:c.length,A=0,R=[];++p<S;){var F=c[p];F&&(R[A++]=F)}return R}function MV(){var c=arguments.length;if(!c)return[];for(var p=ve(c-1),S=arguments[0],A=c;A--;)p[A-1]=arguments[A];return ya(Rt(S)?wi(S):[S],Lr(p,1))}var OV=Ct(function(c,p){return Ir(c)?lc(c,Lr(p,1,Ir,!0)):[]}),RV=Ct(function(c,p){var S=Ca(p);return Ir(S)&&(S=n),Ir(c)?lc(c,Lr(p,1,Ir,!0),Le(S,2)):[]}),NV=Ct(function(c,p){var S=Ca(p);return Ir(S)&&(S=n),Ir(c)?lc(c,Lr(p,1,Ir,!0),n,S):[]});function DV(c,p,S){var A=c==null?0:c.length;return A?(p=S||p===n?1:Dt(p),Ar(c,p<0?0:p,A)):[]}function zV(c,p,S){var A=c==null?0:c.length;return A?(p=S||p===n?1:Dt(p),p=A-p,Ar(c,0,p<0?0:p)):[]}function BV(c,p){return c&&c.length?gc(c,Le(p,3),!0,!0):[]}function FV(c,p){return c&&c.length?gc(c,Le(p,3),!0):[]}function $V(c,p,S,A){var R=c==null?0:c.length;
`;c.replace(je,function(bt,Gt,en,Zo,Ji,Xo){return en||(en=Zo),Te+=c.slice(_e,Xo).replace(b1,$s),Gt&&(ee=!0,Te+=`' +
__e(`+Gt+`) +
'`),Ji&&(ce=!0,Te+=`';
`+Ji+`;
__p += '`),en&&(Te+=`' +
((__t = (`+en+`)) == null ? '' : __t) +
'`),_e=Xo+bt.length,bt}),Te+=`';
`;var yt=tn.call(p,"variable")&&p.variable;if(!yt)Te=`with (obj) {
`+Te+`
}
`;else if(c1.test(yt))throw new _t(s);Te=(ce?Te.replace(Qt,""):Te).replace(Qn,"$1").replace(lo,"$1;"),Te="function("+(yt||"obj")+`) {
`+(yt?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(ee?", __e = _.escape":"")+(ce?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+Te+`return __p
}`;var $t=Yk(function(){return Jt(F,ht+"return "+Te).apply(n,K)});if($t.source=Te,Tx($t))throw $t;return $t}function YG(c){return Sn(c).toLowerCase()}function ZG(c){return Sn(c).toUpperCase()}function XG(c,p,S){if(c=Sn(c),c&&(S||p===n))return qi(c);if(!c||!(p=Zi(p)))return c;var A=Di(c),R=Di(p),F=$o(A,R),K=Ka(A,R)+1;return ts(A,F,K).join("")}function QG(c,p,S){if(c=Sn(c),c&&(S||p===n))return c.slice(0,P1(c)+1);if(!c||!(p=Zi(p)))return c;var A=Di(c),R=Ka(A,Di(p))+1;return ts(A,0,R).join("")}function JG(c,p,S){if(c=Sn(c),c&&(S||p===n))return c.replace(Ou,"");if(!c||!(p=Zi(p)))return c;var A=Di(c),R=$o(A,Di(p));return ts(A,R).join("")}function eq(c,p){var S=W,A=Y;if(lr(p)){var R="separator"in p?p.separator:R;S="length"in p?Dt(p.length):S,A="omission"in p?Zi(p.omission):A}c=Sn(c);var F=c.length;if(Wl(c)){var K=Di(c);F=K.length}if(S>=F)return c;var ee=S-ba(A);if(ee<1)return A;var ce=K?ts(K,0,ee).join(""):c.slice(0,ee);if(R===n)return ce+A;if(K&&(ee+=ce.length-ee),Ax(R)){if(c.slice(ee).search(R)){var _e,ke=ce;for(R.global||(R=Vd(R.source,Sn(Ua.exec(R))+"g")),R.lastIndex=0;_e=R.exec(ke);)var Te=_e.index;ce=ce.slice(0,Te===n?ee:Te)}}else if(c.indexOf(Zi(R),ee)!=ee){var je=ce.lastIndexOf(R);je>-1&&(ce=ce.slice(0,je))}return ce+A}function tq(c){return c=Sn(c),c&&o1.test(c)?c.replace(pi,l2):c}var nq=Js(function(c,p,S){return c+(S?" ":"")+p.toUpperCase()}),Ox=cp("toUpperCase");function Kk(c,p,S){return c=Sn(c),p=S?n:p,p===n?Mh(c)?Wd(c):_1(c):c.match(p)||[]}var Yk=Ct(function(c,p){try{return mi(c,n,p)}catch(S){return Tx(S)?S:new _t(S)}}),rq=er(function(c,p){return Vn(p,function(S){S=el(S),Uo(c,S,Px(c[S],c))}),c});function iq(c){var p=c==null?0:c.length,S=Le();return c=p?Bn(c,function(A){if(typeof A[1]!="function")throw new vi(a);return[S(A[0]),A[1]]}):[],Ct(function(A){for(var R=-1;++R<p;){var F=c[R];if(mi(F[0],this,A))return mi(F[1],this,A)}})}function oq(c){return Wh(ii(c,g))}function Rx(c){return function(){return c}}function aq(c,p){return c==null||c!==c?p:c}var sq=sg(),lq=sg(!0);function So(c){return c}function Nx(c){return sr(typeof c=="function"?c:ii(c,g))}function uq(c){return fc(ii(c,g))}function cq(c,p){return Gs(c,ii(p,g))}var dq=Ct(function(c,p){return function(S){return Ja(S,c,p)}}),fq=Ct(function(c,p){return function(S){return Ja(c,S,p)}});function Dx(c,p,S){var A=li(p),R=Gh(p,A);S==null&&!(lr(p)&&(R.length||!A.length))&&(S=p,p=c,c=this,R=Gh(p,li(p)));var F=!(lr(S)&&"chain"in S)||!!S.chain,K=Xl(c);return Vn(R,function(ee){var ce=p[ee];c[ee]=ce,K&&(c.prototype[ee]=function(){var _e=this.__chain__;if(F||_e){var ke=c(this.__wrapped__),Te=ke.__actions__=wi(this.__actions__);return Te.push({func:ce,args:arguments,thisArg:c}),ke.__chain__=_e,ke}return ce.apply(c,ya([this.value()],arguments))})}),c}function hq(){return mt._===this&&(mt._=T1),this}function zx(){}function pq(c){return c=Dt(c),Ct(function(p){return hc(p,c)})}var gq=lg(Bn),mq=lg(zn),vq=lg(Hu);function Zk(c){return Sx(c)?Fs(el(c)):es(c)}function yq(c){return function(p){return c==null?n:Us(c,p)}}var bq=y(),xq=y(!0);function Bx(){return[]}function Fx(){return!1}function Sq(){return{}}function wq(){return""}function Cq(){return!0}function _q(c,p){if(c=Dt(c),c<1||c>V)return[];var S=X,A=Kr(c,X);p=Le(p),c-=X;for(var R=Fd(A,p);++S<c;)p(S);return R}function kq(c){return Rt(c)?Bn(c,el):Yo(c)?[c]:wi(mk(Sn(c)))}function Eq(c){var p=++Ud;return Sn(c)+p}var Pq=dp(function(c,p){return c+p},0),Lq=M("ceil"),Tq=dp(function(c,p){return c/p},1),Aq=M("floor");function Iq(c){return c&&c.length?br(c,So,qh):n}function Mq(c,p){return c&&c.length?br(c,Le(p,2),qh):n}function Oq(c){return Dd(c,So)}function Rq(c,p){return Dd(c,Le(p,2))}function Nq(c){return c&&c.length?br(c,So,js):n}function Dq(c,p){return c&&c.length?br(c,Le(p,2),js):n}var zq=dp(function(c,p){return c*p},1),Bq=M("round"),Fq=dp(function(c,p){return c-p},0);function $q(c){return c&&c.length?Bd(c,So):0}function Hq(c,p){return c&&c.length?Bd(c,Le(p,2)):0}return B.after=uj,B.ary=Pk,B.assign=Zj,B.assignIn=Hk,B.assignInWith=$2,B.assignWith=Xj,B.at=Qj,B.before=Lk,B.bind=Px,B.bindAll=rq,B.bindKey=Tk,B.castArray=Sj,B.chain=_k,B.chun
`),n=+this.fontSize(),r=0,i=this.lineHeight()*n,o=this.attrs.width,a=this.attrs.height,s=o!==Ep&&o!==void 0,l=a!==Ep&&a!==void 0,u=this.padding(),h=o-u*2,g=a-u*2,m=0,v=this.wrap(),b=v!==kI,w=v!==Uwe&&b,P=this.ellipsis();this.textArr=[],P6().font=this._getContextFont();for(var E=P?this._getTextWidth(E6):0,k=0,L=t.length;k<L;++k){var I=t[k],O=this._getTextWidth(I);if(s&&O>h)for(;I.length>0;){for(var N=0,D=I.length,z="",H=0;N<D;){var W=N+D>>>1,Y=I.slice(0,W+1),de=this._getTextWidth(Y)+E;de<=h?(N=W+1,z=Y,H=de):D=W}if(z){if(w){var j,ne=I[z.length],ie=ne===Gy||ne===CI;ie&&H<=h?j=z.length:j=Math.max(z.lastIndexOf(Gy),z.lastIndexOf(CI))+1,j>0&&(N=j,z=z.slice(0,N),H=this._getTextWidth(z))}z=z.trimRight(),this._addTextLine(z),r=Math.max(r,H),m+=i;var J=this._shouldHandleEllipsis(m);if(J){this._tryToAddEllipsisToLastLine();break}if(I=I.slice(N),I=I.trimLeft(),I.length>0&&(O=this._getTextWidth(I),O<=h)){this._addTextLine(I),m+=i,r=Math.max(r,O);break}}else break}else this._addTextLine(I),m+=i,r=Math.max(r,O),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!==Ep&&i!==void 0,a=this.padding(),s=i-a*2,l=this.wrap(),u=l!==kI;return!u||o&&t+r>s}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,n=t!==Ep&&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+E6)<i;s||(a.text=a.text.slice(0,a.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+E6)}}getStrokeScaleEnabled(){return!0}}pr.prototype._fillFunc=qwe;pr.prototype._strokeFunc=Kwe;pr.prototype.className=Bwe;pr.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];gr(pr);Z.overWriteSetter(pr,"width",K_());Z.overWriteSetter(pr,"height",K_());Z.addGetterSetter(pr,"fontFamily","Arial");Z.addGetterSetter(pr,"fontSize",12,ze());Z.addGetterSetter(pr,"fontStyle",aW);Z.addGetterSetter(pr,"fontVariant",aW);Z.addGetterSetter(pr,"padding",0,ze());Z.addGetterSetter(pr,"align",oW);Z.addGetterSetter(pr,"verticalAlign",Fwe);Z.addGetterSetter(pr,"lineHeight",1,ze());Z.addGetterSetter(pr,"wrap",Vwe);Z.addGetterSetter(pr,"ellipsis",!1,Ls());Z.addGetterSetter(pr,"letterSpacing",0,ze());Z.addGetterSetter(pr,"text","",n1());Z.addGetterSetter(pr,"textDecoration","");var Zwe="",lW="normal";function uW(e){e.fillText(this.partialText,0,0)}function cW(e){e.strokeText(this.partialText,0,0)}class ti extends Ie{constructor(t){super(t),this.dummyCanvas=fe.createCanvasElement(),this.dataArray=[],this.dataArray=Nn.parsePathData(this.attrs.data),this.on("dataChange.konva",function(){this.dataArray=Nn.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 fe.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),thi
* @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 DCe=function(t){var n={},r=C.exports,i=Gp.exports,o=Object.assign;function a(d){for(var f="https://reactjs.org/docs/error-decoder.html?invariant="+d,y=1;y<arguments.length;y++)f+="&args[]="+encodeURIComponent(arguments[y]);return"Minified React error #"+d+"; 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"),u=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),v=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"),O=Symbol.iterator;function N(d){return d===null||typeof d!="object"?null:(d=O&&d[O]||d["@@iterator"],typeof d=="function"?d:null)}function D(d){if(d==null)return null;if(typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case h:return"Fragment";case u:return"Portal";case m:return"Profiler";case g:return"StrictMode";case P:return"Suspense";case E:return"SuspenseList"}if(typeof d=="object")switch(d.$$typeof){case b:return(d.displayName||"Context")+".Consumer";case v:return(d._context.displayName||"Context")+".Provider";case w:var f=d.render;return d=d.displayName,d||(d=f.displayName||f.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case k:return f=d.displayName||null,f!==null?f:D(d.type)||"Memo";case L:f=d._payload,d=d._init;try{return D(d(f))}catch{}}return null}function z(d){var f=d.type;switch(d.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 d=f.render,d=d.displayName||d.name||"",f.displayName||(d!==""?"ForwardRef("+d+")":"ForwardRef");case 7:return"Fragment";case 5:return f;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return D(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 H(d){var f=d,y=d;if(d.alternate)for(;f.return;)f=f.return;else{d=f;do f=d,(f.flags&4098)!==0&&(y=f.return),d=f.return;while(d)}return f.tag===3?y:null}function W(d){if(H(d)!==d)throw Error(a(188))}function Y(d){var f=d.alternate;if(!f){if(f=H(d),f===null)throw Error(a(188));return f!==d?null:d}for(var y=d,_=f;;){var T=y.return;if(T===null)break;var M=T.alternate;if(M===null){if(_=T.return,_!==null){y=_;continue}break}if(T.child===M.child){for(M=T.child;M;){if(M===y)return W(T),d;if(M===_)return W(T),f;M=M.sibling}throw Error(a(188))}if(y.return!==_.return)y=T,_=M;else{for(var $=!1,se=T.child;se;){if(se===y){$=!0,y=T,_=M;break}if(se===_){$=!0,_=T,y=M;break}se=se.sibling}if(!$){for(se=M.child;se;){if(se===y){$=!0,y=M,_=T;break}if(se===_){$=!0,_=M,y=T;break}se=se.sibling}if(!$)throw Error(a(189))}}if(y.alternate!==_)throw Error(a(190))}if(y.tag!==3)throw Error(a(188));return y.stateNode.current===y?d:f}function de(d){return d=Y(d),d!==null?j(d):null}function j(d){if(d.tag===5||d.tag===6)return d;for(d=d.child;d!==null;){var f=j(d);if(f!==null)return f;d=d.sibling}return null}function ne(d){if(d.tag===5||d.tag===6)return d;for(d=d.child;d!==null;){if(d.tag!==4){var f=ne(d);if(f!==null)return f}d=d.sibling}return null}var ie=Array.isArray,J=t.getPublicInstance,q=t.getRootHostContext,V=t.getChildHostContext,G=t.prepareForCommit,Q=t.resetAfterCommit,X=t.createInstance,me=t.appendInitialChild,xe=t.finalizeInitialChildren,Se=t.prepareUpdate,He=t.shouldSetTextContent,Ue=t.createTextInstance,ut=t.scheduleTimeout,Xe=t.cancelTimeout,et=t.noTimeout,tt=t.isPrimaryRenderer,at=t.supportsMutation,At=t.supportsPe
`+Nl+d}var Os=!1;function zl(d,f){if(!d||Os)return"";Os=!0;var y=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(Re){var _=Re}Reflect.construct(d,[],f)}else{try{f.call()}catch(Re){_=Re}d.call(f.prototype)}else{try{throw Error()}catch(Re){_=Re}d()}}catch(Re){if(Re&&_&&typeof Re.stack=="string"){for(var T=Re.stack.split(`
`),M=_.stack.split(`
`),$=T.length-1,se=M.length-1;1<=$&&0<=se&&T[$]!==M[se];)se--;for(;1<=$&&0<=se;$--,se--)if(T[$]!==M[se]){if($!==1||se!==1)do if($--,se--,0>se||T[$]!==M[se]){var he=`
`+T[$].replace(" at new "," at ");return d.displayName&&he.includes("<anonymous>")&&(he=he.replace("<anonymous>",d.displayName)),he}while(1<=$&&0<=se);break}}}finally{Os=!1,Error.prepareStackTrace=y}return(d=d?d.displayName||d.name:"")?Dl(d):""}var Sh=Object.prototype.hasOwnProperty,Nu=[],Rs=-1;function No(d){return{current:d}}function Pn(d){0>Rs||(d.current=Nu[Rs],Nu[Rs]=null,Rs--)}function bn(d,f){Rs++,Nu[Rs]=d.current,d.current=f}var Do={},kr=No(Do),Ur=No(!1),zo=Do;function Ns(d,f){var y=d.type.contextTypes;if(!y)return Do;var _=d.stateNode;if(_&&_.__reactInternalMemoizedUnmaskedChildContext===f)return _.__reactInternalMemoizedMaskedChildContext;var T={},M;for(M in y)T[M]=f[M];return _&&(d=d.stateNode,d.__reactInternalMemoizedUnmaskedChildContext=f,d.__reactInternalMemoizedMaskedChildContext=T),T}function jr(d){return d=d.childContextTypes,d!=null}function Ga(){Pn(Ur),Pn(kr)}function Pd(d,f,y){if(kr.current!==Do)throw Error(a(168));bn(kr,f),bn(Ur,y)}function Bl(d,f,y){var _=d.stateNode;if(f=f.childContextTypes,typeof _.getChildContext!="function")return y;_=_.getChildContext();for(var T in _)if(!(T in f))throw Error(a(108,z(d)||"Unknown",T));return o({},y,_)}function qa(d){return d=(d=d.stateNode)&&d.__reactInternalMemoizedMergedChildContext||Do,zo=kr.current,bn(kr,d),bn(Ur,Ur.current),!0}function Ld(d,f,y){var _=d.stateNode;if(!_)throw Error(a(169));y?(d=Bl(d,f,zo),_.__reactInternalMemoizedMergedChildContext=d,Pn(Ur),Pn(kr),bn(kr,d)):Pn(Ur),bn(Ur,y)}var gi=Math.clz32?Math.clz32:Td,wh=Math.log,Ch=Math.LN2;function Td(d){return d>>>=0,d===0?32:31-(wh(d)/Ch|0)|0}var Ds=64,uo=4194304;function zs(d){switch(d&-d){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 d&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return d&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return d}}function Fl(d,f){var y=d.pendingLanes;if(y===0)return 0;var _=0,T=d.suspendedLanes,M=d.pingedLanes,$=y&268435455;if($!==0){var se=$&~T;se!==0?_=zs(se):(M&=$,M!==0&&(_=zs(M)))}else $=y&~T,$!==0?_=zs($):M!==0&&(_=zs(M));if(_===0)return 0;if(f!==0&&f!==_&&(f&T)===0&&(T=_&-_,M=f&-f,T>=M||T===16&&(M&4194240)!==0))return f;if((_&4)!==0&&(_|=y&16),f=d.entangledLanes,f!==0)for(d=d.entanglements,f&=_;0<f;)y=31-gi(f),T=1<<y,_|=d[y],f&=~T;return _}function x1(d,f){switch(d){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 Du(d,f){for(var y=d.suspendedLanes,_=d.pingedLanes,T=d.expirationTimes,M=d.pendingLanes;0<M;){var $=31-gi(M),se=1<<$,he=T[$];he===-1?((se&y)===0||(se&_)!==0)&&(T[$]=x1(se,f)):he<=f&&(d.expiredLanes|=se),M&=~se}}function zu(d){return d=d.pendingLanes&-1073741825,d!==0?d:d&1073741824?1073741824:0}function Ad(){var d=Ds;return Ds<<=1,(Ds&4194240)===0&&(Ds=64),d}function Bu(d){for(var f=[],y=0;31>y;y++)f.push(d);return f}function ma(d,f,y){d.pendingLanes|=f,f!==536870912&&(d.suspendedLanes=0,d.pingedLanes=0),d=d.eventTimes,f=31-gi(f),d[f]=y}function Id(d,f){var y=d.pendingLanes&~f;d.pendingLanes=f,d.suspendedLanes=0,d.pingedLanes=0,d.expiredLanes&=f,d.mutableReadLanes&=f,d.entangledLanes&=f,f=d.entanglements;var _=d.eventTimes;for(d=d.expirationTimes;0<y;){var T=31-gi(y),M=1<<T;f[T]=0,_[T]=-1,d[T]=-1,y&=~M}}function $l(d,f){var y=d.entangledLanes|=f;for(d=d.entanglements;y;){var _=31-gi(y),T=1<<_;T&f|d[_]&f&&(d[_]|=f),y&=~T}}var Ht=0;function _h(d){return d&=-d,1<d?4<d?(d&268435455)!==0?16:536870912:4:1}var Fu=i.unstable_scheduleCallback,$u
Error generating stack: `+M.message+`
`+M.stack}return{value:d,source:f,stack:T,digest:null}}function z1(d,f,y){return{value:d,source:null,stack:y??null,digest:f??null}}function oc(d,f){try{console.error(f.value)}catch(y){setTimeout(function(){throw y})}}var Zd=typeof WeakMap=="function"?WeakMap:Map;function B1(d,f,y){y=Ya(-1,y),y.tag=3,y.payload={element:null};var _=f.value;return y.callback=function(){ef||(ef=!0,tf=_),oc(d,f)},y}function B(d,f,y){y=Ya(-1,y),y.tag=3;var _=d.type.getDerivedStateFromError;if(typeof _=="function"){var T=f.value;y.payload=function(){return _(T)},y.callback=function(){oc(d,f)}}var M=d.stateNode;return M!==null&&typeof M.componentDidCatch=="function"&&(y.callback=function(){oc(d,f),typeof _!="function"&&(Ks===null?Ks=new Set([this]):Ks.add(this));var $=f.stack;this.componentDidCatch(f.value,{componentStack:$!==null?$:""})}),y}function jl(d,f,y){var _=d.pingCache;if(_===null){_=d.pingCache=new Zd;var T=new Set;_.set(f,T)}else T=_.get(f),T===void 0&&(T=new Set,_.set(f,T));T.has(y)||(T.add(y),d=T2.bind(null,d,f,y),f.then(d,d))}function Xd(d){do{var f;if((f=d.tag===13)&&(f=d.memoizedState,f=f!==null?f.dehydrated!==null:!0),f)return d;d=d.return}while(d!==null);return null}function Ki(d,f,y,_,T){return(d.mode&1)===0?(d===f?d.flags|=65536:(d.flags|=128,y.flags|=131072,y.flags&=-52805,y.tag===1&&(y.alternate===null?y.tag=17:(f=Ya(-1,1),f.tag=2,$s(y,f,1))),y.lanes|=1),d):(d.flags|=65536,d.lanes=T,d)}var Ut=s.ReactCurrentOwner,zi=!1;function bi(d,f,y,_){f.child=d===null?u2(f,null,y,_):Gu(f,d.child,y,_)}function v2(d,f,y,_,T){y=y.render;var M=f.ref;return Uu(f,T),_=A1(d,f,y,_,M,T),y=Yu(),d!==null&&!zi?(f.updateQueue=d.updateQueue,f.flags&=-2053,d.lanes&=~T,Xa(d,f,T)):(zn&&y&&mi(f),f.flags|=1,bi(d,f,_,T),f.child)}function Ws(d,f,y,_,T){if(d===null){var M=y.type;return typeof M=="function"&&!og(M)&&M.defaultProps===void 0&&y.compare===null&&y.defaultProps===void 0?(f.tag=15,f.type=M,y2(d,f,M,_,T)):(d=af(y.type,null,_,f,f.mode,T),d.ref=f.ref,d.return=f,f.child=d)}if(M=d.child,(d.lanes&T)===0){var $=M.memoizedProps;if(y=y.compare,y=y!==null?y:Hl,y($,_)&&d.ref===f.ref)return Xa(d,f,T)}return f.flags|=1,d=Xi(M,_),d.ref=f.ref,d.return=f,f.child=d}function y2(d,f,y,_,T){if(d!==null){var M=d.memoizedProps;if(Hl(M,_)&&d.ref===f.ref)if(zi=!1,f.pendingProps=_=M,(d.lanes&T)!==0)(d.flags&131072)!==0&&(zi=!0);else return f.lanes=d.lanes,Xa(d,f,T)}return F1(d,f,y,_,T)}function b2(d,f,y){var _=f.pendingProps,T=_.children,M=d!==null?d.memoizedState:null;if(_.mode==="hidden")if((f.mode&1)===0)f.memoizedState={baseLanes:0,cachePool:null,transitions:null},bn(js,Yi),Yi|=y;else{if((y&1073741824)===0)return d=M!==null?M.baseLanes|y:y,f.lanes=f.childLanes=1073741824,f.memoizedState={baseLanes:d,cachePool:null,transitions:null},f.updateQueue=null,bn(js,Yi),Yi|=d,null;f.memoizedState={baseLanes:0,cachePool:null,transitions:null},_=M!==null?M.baseLanes:y,bn(js,Yi),Yi|=_}else M!==null?(_=M.baseLanes|y,f.memoizedState=null):_=y,bn(js,Yi),Yi|=_;return bi(d,f,T,y),f.child}function x2(d,f){var y=f.ref;(d===null&&y!==null||d!==null&&d.ref!==y)&&(f.flags|=512,f.flags|=2097152)}function F1(d,f,y,_,T){var M=jr(y)?zo:kr.current;return M=Ns(f,M),Uu(f,T),y=A1(d,f,y,_,M,T),_=Yu(),d!==null&&!zi?(f.updateQueue=d.updateQueue,f.flags&=-2053,d.lanes&=~T,Xa(d,f,T)):(zn&&_&&mi(f),f.flags|=1,bi(d,f,y,T),f.child)}function S2(d,f,y,_,T){if(jr(y)){var M=!0;qa(f)}else M=!1;if(Uu(f,T),f.stateNode===null)Sa(d,f),a2(f,y,_),E1(f,y,_,T),_=!0;else if(d===null){var $=f.stateNode,se=f.memoizedProps;$.props=se;var he=$.context,Re=y.contextType;typeof Re=="object"&&Re!==null?Re=qi(Re):(Re=jr(y)?zo:kr.current,Re=Ns(f,Re));var nt=y.getDerivedStateFromProps,Lt=typeof nt=="function"||typeof $.getSnapshotBeforeUpdate=="function";Lt||typeof $.UNSAFE_componentWillReceiveProps!="function"&&typeof $.componentWillReceiveProps!="function"||(se!==_||he!==Re)&&s2(f,$,_,Re),Ka=!1;var Ke=f.memoizedState;$.state=Ke,Mh(f,_,$,T),he=f.memoizedState,se!==_||Ke!==he||Ur.current||Ka?(typeof nt=="function"&&(Rh(f,y,nt,_),he=f.memoizedState),(se=Ka||Hd(f,y,se,_,Ke,he,Re))?(Lt||typeof $.UNSAFE_componentWillMount!="function"&
`+(_.join(" > ")+`
No matching component was found for:
`)+d.join(" > ")}return null},n.getPublicRootInstance=function(d){if(d=d.current,!d.child)return null;switch(d.child.tag){case 5:return J(d.child.stateNode);default:return d.child.stateNode}},n.injectIntoDevTools=function(d){if(d={bundleType:d.bundleType,version:d.version,rendererPackageName:d.rendererPackageName,rendererConfig:d.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:dp,findFiberByHostInstance:d.findFiberByHostInstance||lg,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")d=!1;else{var f=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(f.isDisabled||!f.supportsFiber)d=!0;else{try{un=f.inject(d),Wt=f}catch{}d=!!f.checkDCE}}return d},n.isAlreadyRendering=function(){return!1},n.observeVisibleRects=function(d,f,y,_){if(!Et)throw Error(a(363));d=Z1(d,f);var T=qt(d,y,_).disconnect;return{disconnect:function(){T()}}},n.registerMutableSourceForHydration=function(d,f){var y=f._getVersion;y=y(f._source),d.mutableSourceEagerHydrationData==null?d.mutableSourceEagerHydrationData=[f,y]:d.mutableSourceEagerHydrationData.push(f,y)},n.runWithPriority=function(d,f){var y=Ht;try{return Ht=d,f()}finally{Ht=y}},n.shouldError=function(){return null},n.shouldSuspend=function(){return!1},n.updateContainer=function(d,f,y,_){var T=f.current,M=ai(),$=Ar(T);return y=ag(y),f.context===null?f.context=y:f.pendingContext=y,f=Ya(M,$),f.payload={element:d},_=_===void 0?null:_,_!==null&&(f.callback=_),d=$s(T,f,$),d!==null&&(vo(d,T,$,M),Ih(d,T,$)),$},n};(function(e){e.exports=DCe})(hW);const zCe=L8(hW.exports);var J_={exports:{}},vh={};/**
* @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.
*/vh.ConcurrentRoot=1;vh.ContinuousEventPriority=4;vh.DefaultEventPriority=16;vh.DiscreteEventPriority=1;vh.IdleEventPriority=536870912;vh.LegacyRoot=0;(function(e){e.exports=vh})(J_);const TI={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let AI=!1,II=!1;const ek=".react-konva-event",BCe=`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
`,FCe=`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
`,$Ce={};function ax(e,t,n=$Ce){if(!AI&&"zIndex"in t&&(console.warn(FCe),AI=!0),!II&&t.draggable){var r=t.x!==void 0||t.y!==void 0,i=t.onDragEnd||t.onDragMove;r&&!i&&(console.warn(BCe),II=!0)}for(var o in n)if(!TI[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 u=!t.hasOwnProperty(o);u&&e.setAttr(o,void 0)}var h=t._useStrictMode,g={},m=!1;const v={};for(var o in t)if(!TI[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]&&(v[l]=t[o])}!a&&(t[o]!==n[o]||h&&t[o]!==e.getAttr(o))&&(m=!0,g[o]=t[o])}m&&(e.setAttrs(g),_d(e));for(var l in v)e.on(l+ek,v[l])}function _d(e){if(!ot.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const pW={},HCe={};Qf.Node.prototype._applyProps=ax;function WCe(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),_d(e)}function VCe(e,t,n){let r=Qf[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=Qf.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 ax(l,o),l}function UCe(e,t,n){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function jCe(e,t,n){return!1}function GCe(e){return e}function qCe(){return null}function KCe(){return null}function YCe(e,t,n,r){return HCe}function ZCe(){}function XCe(e){}function QCe(e,t){return!1}function JCe(){return pW}function e8e(){return pW}const t8e=setTimeout,n8e=clearTimeout,r8e=-1;function i8e(e,t){return!1}const o8e=!1,a8e=!0,s8e=!0;function l8e(e,t){t.parent===e?t.moveToTop():e.add(t),_d(e)}function u8e(e,t){t.parent===e?t.moveToTop():e.add(t),_d(e)}function gW(e,t,n){t._remove(),e.add(t),t.setZIndex(n.getZIndex()),_d(e)}function c8e(e,t,n){gW(e,t,n)}function d8e(e,t){t.destroy(),t.off(ek),_d(e)}function f8e(e,t){t.destroy(),t.off(ek),_d(e)}function h8e(e,t,n){console.error(`Text components are not yet supported in ReactKonva. You text is: "${n}"`)}function p8e(e,t,n){}function g8e(e,t,n,r,i){ax(e,i,r)}function m8e(e){e.hide(),_d(e)}function v8e(e){}function y8e(e,t){(t.visible==null||t.visible)&&e.show()}function b8e(e,t){}function x8e(e){}function S8e(){}const w8e=()=>J_.exports.DefaultEventPriority,C8e=Object.freeze(Object.defineProperty({__proto__:null,appendInitialChild:WCe,createInstance:VCe,createTextInstance:UCe,finalizeInitialChildren:jCe,getPublicInstance:GCe,prepareForCommit:qCe,preparePortalMount:KCe,prepareUpdate:YCe,resetAfterCommit:ZCe,resetTextContent:XCe,shouldDeprioritizeSubtree:QCe,getRootHostContext:JCe,getChildHostContext:e8e,scheduleTimeout:t8e,cancelTimeout:n8e,noTimeout:r8e,shouldSetTextContent:i8e,isPrimaryRenderer:o8e,warnsIfNotActing:a8e,supportsMutation:s8e,appendChild:l8e,appendChildToContainer:u8e,insertBefore:gW,insertInContainerBefore:c8e,removeChild:d8e,removeChildFromContainer:f8e,commitTextUpdate:h8e,commitMount:p8e,commitUpdate:g8e,hideInstance:m8e,hideTextInstance:v8e,unhideInstance:y8e,unhideTextInstance:b8e,clearContainer:x8e,detachDeletedInstance:S8e,getCurrentEventPriority:w8e,now:Gp.exports.unstable_now,idlePriority:Gp.exports.unstable_IdlePriority,run:Gp.exports.unstable_runWithPriority},Symbol.toStringTag,{value:"Module"}));var _8e=Object.defineProperty,k8e=Object.defineProperties,E8e=Object.getOwnPropertyDescriptors,MI=Object.getOwnPropertySymbols,P8e=Object.prototype.hasOwnProperty,L8e=Object.prototype.propertyIsEnumerable,OI=(e,t,n)=>t in e?_8e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,RI=(e,t)=>{for(var n in t||(t={}))P8e.call(t,n)&&OI(e,n,t[n]);if(MI)
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="60px" height="60px" viewBox="0 0 30 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;">
<g transform="matrix(0.5,0,0,0.5,0,0)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,2.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,7.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,10)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,12.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,15)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,17.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,20)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,22.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,25)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,27.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,30)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-2.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-7.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-10)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-12.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-15)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-17.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-20)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-22.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-25)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-27.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-30)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
</svg>`.replaceAll("black",e),q8e=e=>{const{...t}=e,{maskColorString:n,stageCoordinates:r,stageDimensions:i,stageScale:o}=Ce(G8e),[a,s]=C.exports.useState(null),[l,u]=C.exports.useState(0),h=C.exports.useRef(null),g=C.exports.useCallback(()=>{u(l+1),setTimeout(g,500)},[l]);return C.exports.useEffect(()=>{if(a)return;const m=new Image;m.onload=()=>{s(m)},m.src=DI(n)},[a,n]),C.exports.useEffect(()=>{!a||(a.src=DI(n))},[a,n]),C.exports.useEffect(()=>{const m=setInterval(()=>u(v=>(v+1)%5),50);return()=>clearInterval(m)},[]),a?x(R3,{ref:h,offsetX:r.x/o,offsetY:r.y/o,height:i.height/o,width:i.width/o,fillPatternImage:a,fillPatternOffsetY:isNaN(l)?0:l,fillPatternRepeat:"repeat",fillPatternScale:{x:1/o,y:1/o},listening:!0,globalCompositeOperation:"source-in",...t}):null},K8e=.999,Y8e=.1,Z8e=20,X8e=Ze([sn,jt],(e,t)=>{const{isMoveStageKeyHeld:n,stageScale:r}=t;return{isMoveStageKeyHeld:n,stageScale:r,activeTabName:e}},{memoizeOptions:{resultEqualityCheck:Ge.isEqual}}),Q8e=e=>{const t=$e(),{isMoveStageKeyHeld:n,stageScale:r,activeTabName:i}=Ce(X8e);return C.exports.useCallback(o=>{if(i!=="outpainting"||(o.evt.preventDefault(),!e.current||n))return;const a=e.current.getPointerPosition();if(!a)return;const s={x:(a.x-e.current.x())/r,y:(a.y-e.current.y())/r};let l=o.evt.deltaY;o.evt.ctrlKey&&(l=-l);const u=Ge.clamp(r*K8e**l,Y8e,Z8e),h={x:a.x-s.x*u,y:a.y-s.y*u};t(L$(u)),t(I$(h))},[i,t,n,e,r])},sx=e=>{const t=e.getPointerPosition(),n=e.getAbsoluteTransform().copy();if(!t||!n)return;const r=n.invert().point(t);return{x:Math.floor(r.x),y:Math.floor(r.y)}},J8e=Ze([sn,jt],(e,t)=>{const{tool:n}=t;return{tool:n,activeTabName:e}},{memoizeOptions:{resultEqualityCheck:Ge.isEqual}}),e9e=e=>{const t=$e(),{tool:n}=Ce(J8e);return C.exports.useCallback(r=>{if(!e.current)return;if(n==="move"){t(K5(!0));return}const i=sx(e.current);!i||(r.evt.preventDefault(),t(Ub(!0)),t(S$([i.x,i.y])))},[e,t,n])},t9e=Ze([sn,jt],(e,t)=>{const{tool:n,isDrawing:r}=t;return{tool:n,isDrawing:r,activeTabName:e}},{memoizeOptions:{resultEqualityCheck:Ge.isEqual}}),n9e=(e,t)=>{const n=$e(),{tool:r,isDrawing:i}=Ce(t9e);return C.exports.useCallback(()=>{if(r==="move"){n(K5(!1));return}if(!t.current&&i&&e.current){const o=sx(e.current);if(!o)return;n(w$([o.x,o.y]))}else t.current=!1;n(Ub(!1))},[t,n,i,e,r])},r9e=Ze([sn,jt],(e,t)=>{const{tool:n,isDrawing:r}=t;return{tool:n,isDrawing:r,activeTabName:e}},{memoizeOptions:{resultEqualityCheck:Ge.isEqual}}),i9e=(e,t,n)=>{const r=$e(),{isDrawing:i,tool:o}=Ce(r9e);return C.exports.useCallback(()=>{if(!e.current)return;const a=sx(e.current);!a||(r(E$(a)),n.current=a,!(!i||o==="move")&&(t.current=!0,r(w$([a.x,a.y]))))},[t,r,i,n,e,o])},o9e=Ze([sn,jt],(e,t)=>{const{tool:n}=t;return{tool:n,activeTabName:e}},{memoizeOptions:{resultEqualityCheck:Ge.isEqual}}),a9e=e=>{const t=$e(),{tool:n}=Ce(o9e);return C.exports.useCallback(r=>{if(r.evt.buttons!==1||!e.current)return;const i=sx(e.current);!i||n==="move"||(t(Ub(!0)),t(S$([i.x,i.y])))},[e,n,t])},s9e=()=>{const e=$e();return C.exports.useCallback(()=>{e(E$(null)),e(Ub(!1))},[e])},l9e=Ze([jt,sn],(e,t)=>{const{tool:n}=e;return{tool:n,activeTabName:t}},{memoizeOptions:{resultEqualityCheck:Ge.isEqual}}),u9e=()=>{const e=$e(),{tool:t,activeTabName:n}=Ce(l9e);return{handleDragStart:C.exports.useCallback(()=>{t!=="move"||n!=="outpainting"||e(K5(!0))},[n,e,t]),handleDragMove:C.exports.useCallback(r=>{t!=="move"||n!=="outpainting"||e(I$(r.target.getPosition()))},[n,e,t]),handleDragEnd:C.exports.useCallback(()=>{t!=="move"||n!=="outpainting"||e(K5(!1))},[n,e,t])}};var gf=C.exports,c9e=function(t,n,r){const i=gf.useRef("loading"),o=gf.useRef(),[a,s]=gf.useState(0),l=gf.useRef(),u=gf.useRef(),h=gf.useRef();return(l.current!==t||u.current!==n||h.current!==r)&&(i.current="loading",o.current=void 0,l.current=t,u.current=n,h.current=r),gf.useLayoutEffect(function(){if(!t)return;var g=document.createElement("img");function m(){i.current="loaded",o.current=g,s(Math.random())}function v(){i.current="failed",o.current=void 0,s(Math.random())}return g.addEventListener("load",m),g.addEventListener("error",v),n&&(g.cro
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nke(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rke(e){if(Array.isArray(e))return _8(e)}function XI(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 QI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XI(Object(n),!0).forEach(function(r){oV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sv(e,t){return ake(e)||oke(e,t)||aV(e,t)||ike()}function ike(){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 aV(e,t){if(!!e){if(typeof e=="string")return _8(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 _8(e,t)}}function _8(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 oke(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 ake(e){if(Array.isArray(e))return e}var ske="file-invalid-type",lke="file-too-large",uke="file-too-small",cke="too-many-files",dke=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:ske,message:"File type must be ".concat(n)}},JI=function(t){return{code:lke,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},eM=function(t){return{code:uke,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},fke={code:cke,message:"Too many files"};function sV(e,t){var n=e.type==="application/x-moz-file"||eke(e,t);return[n,n?null:dke(t)]}function lV(e,t,n){if(Ef(e.size))if(Ef(t)&&Ef(n)){if(e.size>n)return[!1,JI(n)];if(e.size<t)return[!1,eM(t)]}else{if(Ef(t)&&e.size<t)return[!1,eM(t)];if(Ef(n)&&e.size>n)return[!1,JI(n)]}return[!0,null]}function Ef(e){return e!=null}function hke(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 u=sV(l,n),h=Sv(u,1),g=h[0],m=lV(l,r,i),v=Sv(m,1),b=v[0],w=s?s(l):null;return g&&b&&!w})}function o4(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Jy(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 pke(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function gke(e){return e.indexOf("Edge/")!==-1}function mke(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return pke(e)||gke(e)}function ol(){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!o4(r)&&s&&s.apply(void 0,[r].concat(o)),o4(r)})}}function vke(){return"showOpenFilePicker"in window}function yke(e){if(Ef(e)){var t=Object.entries(e).filter(function(n){var r=Sv(n,2),i=r[0],o=r[1],a=!0;return uV(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(cV))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,r){var i=Sv(r,2),o=i[0],a=i[1];return QI(QI({},n),{},oV({},o,a))},{});return[{description:"Files",accept:t}]}return e}function bke(e){if(Ef(e))return Object.entries(e).reduce(function(t,n){var r=Sv(n,2),i=r[0],o=r[1];return[].concat(ZI(t),[i],ZI(o))},[]).filter(function(t){return uV(t)||cV(t)}).join(",")}function xke(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function Ske(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function uV(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function cV(e){return/^.*\.[\w]+$/.test(e)}var wke=["children"],Cke=["open"],_ke=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","o
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lke(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Tke(e){if(Array.isArray(e))return k8(e)}function A6(e,t){return Mke(e)||Ike(e,t)||dV(e,t)||Ake()}function Ake(){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 dV(e,t){if(!!e){if(typeof e=="string")return k8(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 k8(e,t)}}function k8(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 Ike(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 Mke(e){if(Array.isArray(e))return e}function nM(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 ur(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nM(Object(n),!0).forEach(function(r){E8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nM(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 a4(e,t){if(e==null)return{};var n=Oke(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 Oke(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 ak=C.exports.forwardRef(function(e,t){var n=e.children,r=a4(e,wke),i=hV(r),o=i.open,a=a4(i,Cke);return C.exports.useImperativeHandle(t,function(){return{open:o}},[o]),x(C.exports.Fragment,{children:n(ur(ur({},a),{},{open:o}))})});ak.displayName="Dropzone";var fV={disabled:!1,getFilesFromEvent:j_e,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};ak.defaultProps=fV;ak.propTypes={children:Rn.exports.func,accept:Rn.exports.objectOf(Rn.exports.arrayOf(Rn.exports.string)),multiple:Rn.exports.bool,preventDropOnDocument:Rn.exports.bool,noClick:Rn.exports.bool,noKeyboard:Rn.exports.bool,noDrag:Rn.exports.bool,noDragEventsBubbling:Rn.exports.bool,minSize:Rn.exports.number,maxSize:Rn.exports.number,maxFiles:Rn.exports.number,disabled:Rn.exports.bool,getFilesFromEvent:Rn.exports.func,onFileDialogCancel:Rn.exports.func,onFileDialogOpen:Rn.exports.func,useFsAccessApi:Rn.exports.bool,autoFocus:Rn.exports.bool,onDragEnter:Rn.exports.func,onDragLeave:Rn.exports.func,onDragOver:Rn.exports.func,onDrop:Rn.exports.func,onDropAccepted:Rn.exports.func,onDropRejected:Rn.exports.func,onError:Rn.exports.func,validator:Rn.exports.func};var P8={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function hV(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=ur(ur({},fV),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,u=t.onDragEnter,h=t.onDragLeave,g=t.onDragOver,m=t.onDrop,v=t.onDropAccepted,b=t.onDropRejected,w=t.onFileDialogCancel,P=t.onFileDialogOpen,E=t.useFsAccessApi,k=t.autoFocus,L=t.preventDropOnDocument,I=t.noClick,O=t.noKeyboard,N=t.noDrag,D=t.noDragEventsBubbling,z=t.onError,H=t.validator,W=C.exports.useMemo(function(){return bke(n)},[n]),Y=C.exports.useMemo(function(){return yke(n)},[n]),de=C.exports.useMemo(function(){return typeof P=="function"?P:rM},[P]),j=C.exports.useMemo(function(){return typeof w=="function"?w:rM},[w]),ne=C.exports.useRef(null),ie=C.exports.useRef(null),J=C.expo
`+I.message,"");i({title:"Upload failed",description:k,status:"error",isClosable:!0})},[i]),l=C.exports.useCallback(E=>{a(!0);const k={file:E};["img2img","inpainting","outpainting"].includes(r)&&(k.destination=r),n(IA(k))},[n,r]),u=C.exports.useCallback((E,k)=>{k.forEach(L=>{s(L)}),E.forEach(L=>{l(L)})},[l,s]),{getRootProps:h,getInputProps:g,isDragAccept:m,isDragReject:v,isDragActive:b,open:w}=hV({accept:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg",".png"]},noClick:!0,onDrop:u,onDragOver:()=>a(!0),maxFiles:1});C.exports.useEffect(()=>{const E=k=>{const L=k.clipboardData?.items;if(!L)return;const I=[];for(const D of L)D.kind==="file"&&["image/png","image/jpg"].includes(D.type)&&I.push(D);if(!I.length)return;if(k.stopImmediatePropagation(),I.length>1){i({description:"Multiple images pasted, may only upload one image at a time",status:"error",isClosable:!0});return}const O=I[0].getAsFile();if(!O){i({description:"Unable to load file",status:"error",isClosable:!0});return}const N={file:O};["img2img","inpainting"].includes(r)&&(N.destination=r),n(IA(N))};return document.addEventListener("paste",E),()=>{document.removeEventListener("paste",E)}},[n,i,r]);const P=["img2img","inpainting"].includes(r)?` to ${kf[r].tooltip}`:"";return x(R_.Provider,{value:w,children:te("div",{...h({style:{}}),onKeyDown:E=>{E.key},children:[x("input",{...g()}),t,b&&o&&x(Nke,{isDragAccept:m,isDragReject:v,overlaySecondaryText:P,setIsHandlingUpload:a})]})})},zke=()=>{const e=$e(),t=Ce(r=>r.gallery.shouldPinGallery);return x(gt,{tooltip:"Show Gallery (G)",tooltipProps:{placement:"top"},"aria-label":"Show Gallery",styleClass:"floating-show-hide-button right show-hide-button-gallery",onClick:()=>{e(m0(!0)),t&&e(Cr(!0))},children:x(u$,{})})};function Bke(e){return ft({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 Fke=Ze(e=>e.options,e=>{const{shouldPinOptionsPanel:t,shouldShowOptionsPanel:n}=e;return{shouldPinOptionsPanel:t,shouldShowProcessButtons:!t||!n}},{memoizeOptions:{resultEqualityCheck:Ge.isEqual}}),$ke=()=>{const e=$e(),{shouldShowProcessButtons:t,shouldPinOptionsPanel:n}=Ce(Fke);return te("div",{className:"show-hide-button-options",children:[x(gt,{tooltip:"Show Options Panel (O)",tooltipProps:{placement:"top"},"aria-label":"Show Options Panel",onClick:()=>{e(b0(!0)),n&&setTimeout(()=>e(Cr(!0)),400)},children:x(Bke,{})}),t&&te(Xn,{children:[x(R$,{iconButton:!0}),x(D$,{}),x(N$,{})]})]})};H_e();const Hke=Ze([e=>e.gallery,e=>e.options,e=>e.system,sn],(e,t,n,r)=>{const{shouldShowGallery:i,shouldHoldGalleryOpen:o,shouldPinGallery:a}=e,{shouldShowOptionsPanel:s,shouldHoldOptionsPanelOpen:l,shouldPinOptionsPanel:u}=t,h=Ge.reduce(n.model_list,(v,b,w)=>(b.status==="active"&&(v=w),v),""),g=!(i||o&&!a)&&["txt2img","img2img","inpainting","outpainting"].includes(r),m=!(s||l&&!u)&&["txt2img","img2img","inpainting","outpainting"].includes(r);return{modelStatusText:h,shouldShowGalleryButton:g,shouldShowOptionsPanelButton:m}},{memoizeOptions:{resultEqualityCheck:Ge.isEqual}}),Wke=()=>{const{shouldShowGalleryButton:e,shouldShowOptionsPanelButton:t}=Ce(Hke);return x("div",{className:"App",children:te(Dke,{children:[x(k_e,{}),te("div",{className:"app-content",children:[x(z_e,{}),x(q9e,{})]}),x("div",{className:"app-console",children:x($_e,{})}),e&&x(zke,{}),t&&x($ke,{})]})})};const pV=d2e(tV),Vke=AR({key:"invokeai-style-cache",prepend:!0});M6.createRoot(document.getElementById("root")).render(x(le.StrictMode,{children:x(Hve,{store:tV,