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

528 lines
1.6 MiB
JavaScript
Raw Normal View History

2022-10-27 17:22:17 +00:00
function uj(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 Su=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function DC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}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 Vm=Symbol.for("react.element"),cj=Symbol.for("react.portal"),dj=Symbol.for("react.fragment"),fj=Symbol.for("react.strict_mode"),hj=Symbol.for("react.profiler"),pj=Symbol.for("react.provider"),gj=Symbol.for("react.context"),mj=Symbol.for("react.forward_ref"),vj=Symbol.for("react.suspense"),yj=Symbol.for("react.memo"),xj=Symbol.for("react.lazy"),Q7=Symbol.iterator;function bj(e){return e===null||typeof e!="object"?null:(e=Q7&&e[Q7]||e["@@iterator"],typeof e=="function"?e:null)}var oI={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},aI=Object.assign,sI={};function T0(e,t,n){this.props=e,this.context=t,this.refs=sI,this.updater=n||oI}T0.prototype.isReactComponent={};T0.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")};T0.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function lI(){}lI.prototype=T0.prototype;function FC(e,t,n){this.props=e,this.context=t,this.refs=sI,this.updater=n||oI}var zC=FC.prototype=new lI;zC.constructor=FC;aI(zC,T0.prototype);zC.isPureReactComponent=!0;var J7=Array.isArray,uI=Object.prototype.hasOwnProperty,$C={current:null},cI={key:!0,ref:!0,__self:!0,__source:!0};function dI(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)uI.call(t,r)&&!cI.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var l=Array(s),d=0;d<s;d++)l[d]=arguments[d+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:Vm,type:e,key:o,ref:a,props:i,_owner:$C.current}}function Sj(e,t){return{$$typeof:Vm,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function BC(e){return typeof e=="object"&&e!==null&&e.$$typeof===Vm}function wj(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var ek=/\/+/g;function jx(e,t){return typeof e=="object"&&e!==null&&e.key!=null?wj(""+e.key):t.toString(36)}function xy(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 Vm:case cj:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+jx(a,0):r,J7(i)?(n="",e!=null&&(n=e.replace(ek,"$&/")+"/"),xy(i,t,n,"",function(d){return d})):i!=null&&(BC(i)&&(i=Sj(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(ek,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",J7(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+jx(o,s);a+=xy(o,t,n,l,i)}else if(l=bj(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+jx(o,s++),a+=xy(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 u2(e,t,n){if(e==null)return e;var r=[],i=0;return xy(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Cj(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 bo={current:null},by={transition:null},_j={ReactCurrentDispatcher:bo,ReactCurrentBatchConfig:by,ReactCurrentOwner:$C};Yt.Children={map:u2,forEach:function(e,t,n){u2(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return u2(e,function(){t++}),t},toArray:function(e){return u2(e,function(t){return t})||[]},only:function(e){if(!BC(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Yt.Component=T0;Yt.Fragment=dj;Yt.Profiler=hj;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(j,ne){var Q=j.length;j.push(ne);e:for(;0<Q;){var W=Q-1>>>1,ie=j[W];if(0<i(ie,ne))j[W]=ne,j[Q]=ie,Q=W;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var ne=j[0],Q=j.pop();if(Q!==ne){j[0]=Q;e:for(var W=0,ie=j.length,ce=ie>>>1;W<ce;){var Se=2*(W+1)-1,De=j[Se],Me=Se+1,Ve=j[Me];if(0>i(De,Q))Me<ie&&0>i(Ve,De)?(j[W]=Ve,j[Me]=Q,W=Me):(j[W]=De,j[Se]=Q,W=Se);else if(Me<ie&&0>i(Ve,Q))j[W]=Ve,j[Me]=Q,W=Me;else break e}}return ne}function i(j,ne){var Q=j.sortIndex-ne.sortIndex;return Q!==0?Q:j.id-ne.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],d=[],p=1,g=null,m=3,y=!1,b=!1,S=!1,E=typeof setTimeout=="function"?setTimeout:null,P=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(j){for(var ne=n(d);ne!==null;){if(ne.callback===null)r(d);else if(ne.startTime<=j)r(d),ne.sortIndex=ne.expirationTime,t(l,ne);else break;ne=n(d)}}function R(j){if(S=!1,L(j),!b)if(n(l)!==null)b=!0,we(N);else{var ne=n(d);ne!==null&&re(R,ne.startTime-j)}}function N(j,ne){b=!1,S&&(S=!1,P(B),B=-1),y=!0;var Q=m;try{for(L(ne),g=n(l);g!==null&&(!(g.expirationTime>ne)||j&&!Y());){var W=g.callback;if(typeof W=="function"){g.callback=null,m=g.priorityLevel;var ie=W(g.expirationTime<=ne);ne=e.unstable_now(),typeof ie=="function"?g.callback=ie:g===n(l)&&r(l),L(ne)}else r(l);g=n(l)}if(g!==null)var ce=!0;else{var Se=n(d);Se!==null&&re(R,Se.startTime-ne),ce=!1}return ce}finally{g=null,m=Q,y=!1}}var F=!1,z=null,B=-1,K=5,G=-1;function Y(){return!(e.unstable_now()-G<K)}function ye(){if(z!==null){var j=e.unstable_now();G=j;var ne=!0;try{ne=z(!0,j)}finally{ne?pe():(F=!1,z=null)}}else F=!1}var pe;if(typeof k=="function")pe=function(){k(ye)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,me=he.port2;he.port1.onmessage=ye,pe=function(){me.postMessage(null)}}else pe=function(){E(ye,0)};function we(j){z=j,F||(F=!0,pe())}function re(j,ne){B=E(function(){j(e.unstable_now())},ne)}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(j){j.callback=null},e.unstable_continueExecution=function(){b||y||(b=!0,we(N))},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(j){switch(m){case 1:case 2:case 3:var ne=3;break;default:ne=m}var Q=m;m=ne;try{return j()}finally{m=Q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,ne){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var Q=m;m=j;try{return ne()}finally{m=Q}},e.unstable_scheduleCallback=function(j,ne,Q){var W=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?W+Q:W):Q=W,j){case 1:var ie=-1;break;case 2:ie=250;break;case 5:ie=1073741823;break;case 4:ie=1e4;break;default:ie=5e3}return ie=Q+ie,j={id:p++,callback:ne,priorityLevel:j,startTime:Q,expirationTime:ie,sortIndex:-1},Q>W?(j.sortIndex=Q,t(d,j),n(l)===null&&j===n(d)&&(S?(P(B),B=-1):S=!0,re(R,Q-W))):(j.sortIndex=ie,t(l,j),b||y||(b=!0,we(N))),j},e.unstable_shouldYield=Y,e.unstable_wrapCallback=function(j){var ne=m;return function(){var Q=m;m=ne;try{return j.apply(this,arguments)}finally{m=Q}}}})(fI);(function(e){e.exports=fI})($p);/**
* @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 hI=C.exports,ya=$p.exports;function Fe(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 pI=new Set,Xg={};function oh(e,t){s0(e,t),s0(e+"Capture",t)}function s0(e,t){for(Xg[e]=t,e=0;e<t.length;e++)pI.add(t[e])}var Pu=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),DS=Object.prototype.hasOwnProperty,kj=/^[: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]*$/,tk={},nk={};function Ej(e){return DS.call(nk,e)?!0:DS.call(tk,e)?!1:kj.test(e)?nk[e]=!0:(tk[e]=!0,!1)}function Pj(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 Tj(e,t,n,r){if(t===null||typeof t>"u"||Pj(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 So(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 Di={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Di[e]=new So(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Di[t]=new So(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Di[e]=new So(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Di[e]=new So(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){Di[e]=new So(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Di[e]=new So(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Di[e]=new So(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Di[e]=new So(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Di[e]=new So(e,5,!1,e.toLowerCase(),null,!1,!1)});var HC=/[\-:]([a-z])/g;function WC(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
`+Kx+e}var qx=!1;function Zx(e,t){if(!e||qx)return"";qx=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var r=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){r=d}e.call(t.prototype)}else{try{throw Error()}catch(d){r=d}e()}}catch(d){if(d&&r&&typeof d.stack=="string"){for(var i=d.stack.split(`
`),o=r.stack.split(`
`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s]){var l=`
`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{qx=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ig(e):""}function Lj(e){switch(e.tag){case 5:return ig(e.type);case 16:return ig("Lazy");case 13:return ig("Suspense");case 19:return ig("SuspenseList");case 0:case 2:case 15:return e=Zx(e.type,!1),e;case 11:return e=Zx(e.type.render,!1),e;case 1:return e=Zx(e.type,!0),e;default:return""}}function BS(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 wp:return"Fragment";case Sp:return"Portal";case FS:return"Profiler";case UC:return"StrictMode";case zS:return"Suspense";case $S:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case mI:return(e.displayName||"Context")+".Consumer";case gI:return(e._context.displayName||"Context")+".Provider";case GC:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case jC:return t=e.displayName||null,t!==null?t:BS(e.type)||"Memo";case zc:t=e._payload,e=e._init;try{return BS(e(t))}catch{}}return null}function Aj(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 BS(t);case 8:return t===UC?"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 ld(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function yI(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ij(e){var t=yI(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 d2(e){e._valueTracker||(e._valueTracker=Ij(e))}function xI(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=yI(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function u3(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 HS(e,t){var n=t.checked;return gr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ik(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ld(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 bI(e,t){t=t.checked,t!=null&&VC(e,"checked",t,!1)}function WS(e,t){bI(e,t);var n=ld(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")?VS(e,t.type,n):t.hasOwnProperty("defaultValue")&&VS(e,t.type,ld(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ok(e,t,n){if(t.hasOwnProperty("val
`).replace(HK,"")}function x2(e,t,n){if(t=Tk(t),Tk(e)!==t&&n)throw Error(Fe(425))}function v3(){}var rw=null,iw=null;function ow(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 aw=typeof setTimeout=="function"?setTimeout:void 0,WK=typeof clearTimeout=="function"?clearTimeout:void 0,Lk=typeof Promise=="function"?Promise:void 0,VK=typeof queueMicrotask=="function"?queueMicrotask:typeof Lk<"u"?function(e){return Lk.resolve(null).then(e).catch(UK)}:aw;function UK(e){setTimeout(function(){throw e})}function lb(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),nm(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);nm(t)}function td(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 Ak(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 A0=Math.random().toString(36).slice(2),xl="__reactFiber$"+A0,sm="__reactProps$"+A0,Tu="__reactContainer$"+A0,sw="__reactEvents$"+A0,GK="__reactListeners$"+A0,jK="__reactHandles$"+A0;function zf(e){var t=e[xl];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Tu]||n[xl]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ak(e);e!==null;){if(n=e[xl])return n;e=Ak(e)}return t}e=n,n=e.parentNode}return null}function jm(e){return e=e[xl]||e[Tu],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ep(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Fe(33))}function R5(e){return e[sm]||null}var lw=[],Pp=-1;function yd(e){return{current:e}}function Yn(e){0>Pp||(e.current=lw[Pp],lw[Pp]=null,Pp--)}function Vn(e,t){Pp++,lw[Pp]=e.current,e.current=t}var ud={},Xi=yd(ud),Bo=yd(!1),Yf=ud;function l0(e,t){var n=e.type.contextTypes;if(!n)return ud;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 Ho(e){return e=e.childContextTypes,e!=null}function y3(){Yn(Bo),Yn(Xi)}function Ik(e,t,n){if(Xi.current!==ud)throw Error(Fe(168));Vn(Xi,t),Vn(Bo,n)}function lR(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(Fe(108,Aj(e)||"Unknown",i));return gr({},n,r)}function x3(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ud,Yf=Xi.current,Vn(Xi,e),Vn(Bo,Bo.current),!0}function Rk(e,t,n){var r=e.stateNode;if(!r)throw Error(Fe(169));n?(e=lR(e,t,Yf),r.__reactInternalMemoizedMergedChildContext=e,Yn(Bo),Yn(Xi),Vn(Xi,e)):Yn(Bo),Vn(Bo,n)}var bu=null,M5=!1,ub=!1;function uR(e){bu===null?bu=[e]:bu.push(e)}function KK(e){M5=!0,uR(e)}function xd(){if(!ub&&bu!==null){ub=!0;var e=0,t=En;try{var n=bu;for(En=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}bu=null,M5=!1}catch(i){throw bu!==null&&(bu=bu.slice(e+1)),OI(qC,xd),i}finally{En=t,ub=!1}}return null}var Tp=[],Lp=0,b3=null,S3=0,Ua=[],Ga=0,Xf=null,Cu=1,_u="";function Lf(e,t){Tp[Lp++]=S3,Tp[Lp++]=b3,b3=e,S3=t}function cR(e,t,n){Ua[Ga++]=Cu,Ua[Ga++]=_u,Ua[Ga++]=Xf,Xf=e;var r=Cu;e=_u;var i=32-Is(r)-1;r&=~(1<<i),n+=1;var o=32-Is(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Cu=1<<32-Is(t)+i|n<<i|r,_u=o+e}else Cu=1<<o|n<<i|r,_u=e}function r9(e){e.return!==null&&(Lf(e,1),cR(e,1,0))}function i9(e){for(;e===b3;)b3=Tp[--Lp],Tp[Lp]=null,S3=Tp[--Lp],Tp[Lp]=null;for(;e===Xf;)Xf=Ua[--Ga],Ua[Ga]=null,_u=Ua[--Ga],Ua[Ga]=null,Cu=Ua[--Ga],Ua[Ga]=null}var ga=null,ha=null,rr=!1,Ls=null;function dR(e,t){var n=qa(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 pb(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function pw(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var nq=typeof WeakMap=="function"?WeakMap:Map;function $R(e,t,n){n=Eu(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){L3||(L3=!0,_w=r),pw(e,t)},n}function BR(e,t,n){n=Eu(-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(){pw(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){pw(e,t),typeof r!="function"&&(rd===null?rd=new Set([this]):rd.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function Wk(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new nq;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=mq.bind(null,e,t,n),t.then(e,e))}function Vk(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 Uk(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=Eu(-1,1),t.tag=2,nd(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var rq=zu.ReactCurrentOwner,$o=!1;function po(e,t,n,r){t.child=e===null?yR(t,null,n,r):c0(t,e.child,n,r)}function Gk(e,t,n,r,i){n=n.render;var o=t.ref;return Up(t,i),r=g9(e,t,n,r,o,i),n=m9(),e!==null&&!$o?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Au(e,t,i)):(rr&&n&&r9(t),t.flags|=1,po(e,t,r,i),t.child)}function jk(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!E9(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,HR(e,t,o,r,i)):(e=Ay(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:im,n(a,r)&&e.ref===t.ref)return Au(e,t,i)}return t.flags|=1,e=od(o,r),e.ref=t.ref,e.return=t,t.child=e}function HR(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(im(o,r)&&e.ref===t.ref)if($o=!1,t.pendingProps=r=o,(e.lanes&i)!==0)(e.flags&131072)!==0&&($o=!0);else return t.lanes=e.lanes,Au(e,t,i)}return gw(e,t,n,r,i)}function WR(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},Vn(Rp,da),da|=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,Vn(Rp,da),da|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Vn(Rp,da),da|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Vn(Rp,da),da|=r;return po(e,t,i,n),t.child}function VR(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function gw(e,t,n,r,i){var o=Ho(n)?Yf:Xi.current;return o=l0(t,o),Up(t,i),n=g9(e,t,n,r,o,i),r=m9(),e!==null&&!$o?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Au(e,t,i)):(rr&&r&&r9(t),t.flags|=1,po(e,t,n,i),t.child)}function Kk(e,t,n,r,i){if(Ho(n)){var o=!0;x3(t)}else o=!1;if(Up(t,i),t.stateNode===null)Py(e,t),mR(t,n,r),hw(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,d=n.contextType;typeof d=="object"&&d!==null?d=Xa(d):(d=Ho(n)?Yf:Xi.current,d=l0(t,d));var p=n.getDerivedStateFromProps,g=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function";g||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==d)&&zk(t,a,r,d),$c=!1;var m=t.memoizedState;a.state=m,_3(t,r,a,i),l=t.memoizedState,s!==r||m!==l||Bo.current||$c?(typeof p=="function"&&(fw(t,n,p,r),l=t.memoizedState),(s=$c||Fk(t,n,s,r,m,l,d))?(g||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="f
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Pq=C.exports,Tq=Symbol.for("react.element"),Lq=Symbol.for("react.fragment"),Aq=Object.prototype.hasOwnProperty,Iq=Pq.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Rq={key:!0,ref:!0,__self:!0,__source:!0};function fM(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)Aq.call(t,r)&&!Rq.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:Tq,type:e,key:o,ref:a,props:i,_owner:Iq.current}}U5.Fragment=Lq;U5.jsx=fM;U5.jsxs=fM;(function(e){e.exports=U5})(V5);const Xn=V5.exports.Fragment,_=V5.exports.jsx,le=V5.exports.jsxs;var I9=C.exports.createContext({});I9.displayName="ColorModeContext";function R9(){const e=C.exports.useContext(I9);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var P2={light:"chakra-ui-light",dark:"chakra-ui-dark"};function Mq(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?P2.dark:P2.light),document.body.classList.remove(r?P2.light:P2.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 Oq="chakra-ui-color-mode";function Nq(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 Dq=Nq(Oq),sE=()=>{};function lE(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function hM(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:i,disableTransitionOnChange:o}={},colorModeManager:a=Dq}=e,s=i==="dark"?"dark":"light",[l,d]=C.exports.useState(()=>lE(a,s)),[p,g]=C.exports.useState(()=>lE(a)),{getSystemTheme:m,setClassName:y,setDataset:b,addListener:S}=C.exports.useMemo(()=>Mq({preventTransition:o}),[o]),E=i==="system"&&!l?p:l,P=C.exports.useCallback(R=>{const N=R==="system"?m():R;d(N),y(N==="dark"),b(N),a.set(N)},[a,m,y,b]);kl(()=>{i==="system"&&g(m())},[]),C.exports.useEffect(()=>{const R=a.get();if(R){P(R);return}if(i==="system"){P("system");return}P(s)},[a,s,i,P]);const k=C.exports.useCallback(()=>{P(E==="dark"?"light":"dark")},[E,P]);C.exports.useEffect(()=>{if(!!r)return S(P)},[r,S,P]);const L=C.exports.useMemo(()=>({colorMode:t??E,toggleColorMode:t?sE:k,setColorMode:t?sE:P}),[E,k,P,t]);return _(I9.Provider,{value:L,children:n})}hM.displayName="ColorModeProvider";var Fq=new Set(["dark","light","system"]);function zq(e){let t=e;return Fq.has(t)||(t="light"),t}function $q(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,i=zq(t),o=n==="cookie",a=`(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${i}",r="${r}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catc
`,s=`(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${i}",e="${r}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})();
`;return`!${o?a:s}`.trim()}function Bq(e={}){return _("script",{id:"chakra-script",dangerouslySetInnerHTML:{__html:$q(e)}})}var Tw={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=800,o=16,a=9007199254740991,s="[object Arguments]",l="[object Array]",d="[object AsyncFunction]",p="[object Boolean]",g="[object Date]",m="[object Error]",y="[object Function]",b="[object GeneratorFunction]",S="[object Map]",E="[object Number]",P="[object Null]",k="[object Object]",L="[object Proxy]",R="[object RegExp]",N="[object Set]",F="[object String]",z="[object Undefined]",B="[object WeakMap]",K="[object ArrayBuffer]",G="[object DataView]",Y="[object Float32Array]",ye="[object Float64Array]",pe="[object Int8Array]",he="[object Int16Array]",me="[object Int32Array]",we="[object Uint8Array]",re="[object Uint8ClampedArray]",j="[object Uint16Array]",ne="[object Uint32Array]",Q=/[\\^$.*+?()[\]{}|]/g,W=/^\[object .+?Constructor\]$/,ie=/^(?:0|[1-9]\d*)$/,ce={};ce[Y]=ce[ye]=ce[pe]=ce[he]=ce[me]=ce[we]=ce[re]=ce[j]=ce[ne]=!0,ce[s]=ce[l]=ce[K]=ce[p]=ce[G]=ce[g]=ce[m]=ce[y]=ce[S]=ce[E]=ce[k]=ce[R]=ce[N]=ce[F]=ce[B]=!1;var Se=typeof Su=="object"&&Su&&Su.Object===Object&&Su,De=typeof self=="object"&&self&&self.Object===Object&&self,Me=Se||De||Function("return this")(),Ve=t&&!t.nodeType&&t,ke=Ve&&!0&&e&&!e.nodeType&&e,$e=ke&&ke.exports===Ve,nt=$e&&Se.process,ft=function(){try{var I=ke&&ke.require&&ke.require("util").types;return I||nt&&nt.binding&&nt.binding("util")}catch{}}(),Rt=ft&&ft.isTypedArray;function Mt(I,D,U){switch(U.length){case 0:return I.call(D);case 1:return I.call(D,U[0]);case 2:return I.call(D,U[0],U[1]);case 3:return I.call(D,U[0],U[1],U[2])}return I.apply(D,U)}function Re(I,D){for(var U=-1,ve=Array(I);++U<I;)ve[U]=D(U);return ve}function tt(I){return function(D){return I(D)}}function pt(I,D){return I?.[D]}function at(I,D){return function(U){return I(D(U))}}var gt=Array.prototype,hn=Function.prototype,mt=Object.prototype,Ht=Me["__core-js_shared__"],tn=hn.toString,Ft=mt.hasOwnProperty,Oe=function(){var I=/[^.]+$/.exec(Ht&&Ht.keys&&Ht.keys.IE_PROTO||"");return I?"Symbol(src)_1."+I:""}(),et=mt.toString,Ut=tn.call(Object),Wt=RegExp("^"+tn.call(Ft).replace(Q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ee=$e?Me.Buffer:void 0,kt=Me.Symbol,Xt=Me.Uint8Array,zn=Ee?Ee.allocUnsafe:void 0,Ge=at(Object.getPrototypeOf,Object),Tt=Object.create,Be=mt.propertyIsEnumerable,ut=gt.splice,je=kt?kt.toStringTag:void 0,xt=function(){try{var I=to(Object,"defineProperty");return I({},"",{}),I}catch{}}(),Qt=Ee?Ee.isBuffer:void 0,jn=Math.max,yr=Date.now,Hr=to(Me,"Map"),zi=to(Object,"create"),Ad=function(){function I(){}return function(D){if(!Ar(D))return{};if(Tt)return Tt(D);I.prototype=D;var U=new I;return I.prototype=void 0,U}}();function Wr(I){var D=-1,U=I==null?0:I.length;for(this.clear();++D<U;){var ve=I[D];this.set(ve[0],ve[1])}}function Ku(){this.__data__=zi?zi(null):{},this.size=0}function Id(I){var D=this.has(I)&&delete this.__data__[I];return this.size-=D?1:0,D}function $s(I){var D=this.__data__;if(zi){var U=D[I];return U===r?void 0:U}return Ft.call(D,I)?D[I]:void 0}function qu(I){var D=this.__data__;return zi?D[I]!==void 0:Ft.call(D,I)}function Zu(I,D){var U=this.__data__;return this.size+=this.has(I)?0:1,U[I]=zi&&D===void 0?r:D,this}Wr.prototype.clear=Ku,Wr.prototype.delete=Id,Wr.prototype.get=$s,Wr.prototype.has=qu,Wr.prototype.set=Zu;function or(I){var D=-1,U=I==null?0:I.length;for(this.clear();++D<U;){var ve=I[D];this.set(ve[0],ve[1])}}function Wl(){this.__data__=[],this.size=0}function Rd(I){var D=this.__data__,U=$i(D,I);if(U<0)return!1;var ve=D.length-1;return U==ve?D.pop():ut.call(D,U,1),--this.size,!0}function Bs(I){var D=this.__data__,U=$i(D,I);return U<0?void 0:D[U][1]}function Vl(I){return $i(this.__data__,I)>-1}function Md(I,D){var U=this.__data__,ve=$i(U,I);return ve<0?(++this.size,U.push([I,D])):U[ve][1]=D,this}or.prototype.clear=Wl,or.prototype.delete=Rd,or.prototype.get=Bs,or.prototype.has=Vl,or.prototype.set=Md;function yi(I){var D=-1,U=I==null?0:I.length;for(this.clear()
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var vi=typeof Symbol=="function"&&Symbol.for,z9=vi?Symbol.for("react.element"):60103,$9=vi?Symbol.for("react.portal"):60106,Y5=vi?Symbol.for("react.fragment"):60107,X5=vi?Symbol.for("react.strict_mode"):60108,Q5=vi?Symbol.for("react.profiler"):60114,J5=vi?Symbol.for("react.provider"):60109,e4=vi?Symbol.for("react.context"):60110,B9=vi?Symbol.for("react.async_mode"):60111,t4=vi?Symbol.for("react.concurrent_mode"):60111,n4=vi?Symbol.for("react.forward_ref"):60112,r4=vi?Symbol.for("react.suspense"):60113,IY=vi?Symbol.for("react.suspense_list"):60120,i4=vi?Symbol.for("react.memo"):60115,o4=vi?Symbol.for("react.lazy"):60116,RY=vi?Symbol.for("react.block"):60121,MY=vi?Symbol.for("react.fundamental"):60117,OY=vi?Symbol.for("react.responder"):60118,NY=vi?Symbol.for("react.scope"):60119;function _a(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case z9:switch(e=e.type,e){case B9:case t4:case Y5:case Q5:case X5:case r4:return e;default:switch(e=e&&e.$$typeof,e){case e4:case n4:case o4:case i4:case J5:return e;default:return t}}case $9:return t}}}function RM(e){return _a(e)===t4}Tn.AsyncMode=B9;Tn.ConcurrentMode=t4;Tn.ContextConsumer=e4;Tn.ContextProvider=J5;Tn.Element=z9;Tn.ForwardRef=n4;Tn.Fragment=Y5;Tn.Lazy=o4;Tn.Memo=i4;Tn.Portal=$9;Tn.Profiler=Q5;Tn.StrictMode=X5;Tn.Suspense=r4;Tn.isAsyncMode=function(e){return RM(e)||_a(e)===B9};Tn.isConcurrentMode=RM;Tn.isContextConsumer=function(e){return _a(e)===e4};Tn.isContextProvider=function(e){return _a(e)===J5};Tn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===z9};Tn.isForwardRef=function(e){return _a(e)===n4};Tn.isFragment=function(e){return _a(e)===Y5};Tn.isLazy=function(e){return _a(e)===o4};Tn.isMemo=function(e){return _a(e)===i4};Tn.isPortal=function(e){return _a(e)===$9};Tn.isProfiler=function(e){return _a(e)===Q5};Tn.isStrictMode=function(e){return _a(e)===X5};Tn.isSuspense=function(e){return _a(e)===r4};Tn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Y5||e===t4||e===Q5||e===X5||e===r4||e===IY||typeof e=="object"&&e!==null&&(e.$$typeof===o4||e.$$typeof===i4||e.$$typeof===J5||e.$$typeof===e4||e.$$typeof===n4||e.$$typeof===MY||e.$$typeof===OY||e.$$typeof===NY||e.$$typeof===RY)};Tn.typeOf=_a;(function(e){e.exports=Tn})(IM);var MM=IM.exports,DY={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},FY={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},OM={};OM[MM.ForwardRef]=DY;OM[MM.Memo]=FY;var zY=!0;function $Y(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var NM=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||zY===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},DM=function(t,n,r){NM(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 BY(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 HY={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWid
[data-motion-pop-id="${n}"] {
position: absolute !important;
width: ${o}px !important;
height: ${a}px !important;
top: ${s}px !important;
left: ${l}px !important;
}
`),()=>{document.head.removeChild(d)}},[t]),_(ire,{isPresent:t,childRef:r,sizeRef:i,children:C.exports.cloneElement(e,{ref:r})})}const Ib=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const s=h4(are),l=C.exports.useId(),d=C.exports.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:p=>{s.set(p,!0);for(const g of s.values())if(!g)return;r&&r()},register:p=>(s.set(p,!1),()=>s.delete(p))}),o?void 0:[n]);return C.exports.useMemo(()=>{s.forEach((p,g)=>s.set(g,!1))},[n]),C.exports.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=_(ore,{isPresent:n,children:e})),_(O0.Provider,{value:d,children:e})};function are(){return new Map}const yp=e=>e.key||"";function sre(e,t){e.forEach(n=>{const r=yp(n);t.set(r,n)})}function lre(e){const t=[];return C.exports.Children.forEach(e,n=>{C.exports.isValidElement(n)&&t.push(n)}),t}const $u=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait",eN(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=rre();const l=C.exports.useContext(j9).forceRender;l&&(s=l);const d=TN(),p=lre(e);let g=p;const m=new Set,y=C.exports.useRef(g),b=C.exports.useRef(new Map).current,S=C.exports.useRef(!0);if(z3(()=>{S.current=!1,sre(p,b),y.current=g}),e_(()=>{S.current=!0,b.clear(),m.clear()}),S.current)return _(Xn,{children:g.map(L=>_(Ib,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:a,children:L},yp(L)))});g=[...g];const E=y.current.map(yp),P=p.map(yp),k=E.length;for(let L=0;L<k;L++){const R=E[L];P.indexOf(R)===-1&&m.add(R)}return a==="wait"&&m.size&&(g=[]),m.forEach(L=>{if(P.indexOf(L)!==-1)return;const R=b.get(L);if(!R)return;const N=E.indexOf(L),F=()=>{b.delete(L),m.delete(L);const z=y.current.findIndex(B=>B.key===L);if(y.current.splice(z,1),!m.size){if(y.current=p,d.current===!1)return;s(),r&&r()}};g.splice(N,0,_(Ib,{isPresent:!1,onExitComplete:F,custom:t,presenceAffectsLayout:o,mode:a,children:R},yp(R)))}),g=g.map(L=>{const R=L.key;return m.has(R)?L:_(Ib,{isPresent:!0,presenceAffectsLayout:o,mode:a,children:L},yp(L))}),JO!=="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.`),_(Xn,{children:m.size?g:g.map(L=>C.exports.cloneElement(L))})};var rv=(...e)=>e.filter(Boolean).join(" ");function ure(){return!1}var cre=e=>{const{condition:t,message:n}=e;t&&ure()&&console.warn(n)},Wf={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},q1={scale:{enter:{scale:1},exit:{scale:.95}},fade:{enter:{opacity:1},exit:{opacity:0}},pushLeft:{enter:{x:"100%"},exit:{x:"-30%"}},pushRight:{enter:{x:"-100%"},exit:{x:"30%"}},pushUp:{enter:{y:"100%"},exit:{y:"-30%"}},pushDown:{enter:{y:"-100%"},exit:{y:"30%"}},slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function u6(e){switch(e?.direction??"right"){case"right":return q1.slideRight;case"left":return q1.slideLeft;case"bottom":return q1.slideDown;case"top":return q1.slideUp;default:return q1.slideRight}}var jf={enter:{duration:.2,ease:Wf.easeOut},exit:{duration:.1,ease:Wf.easeIn}},Ms={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t?.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t?.exit})},dre=e=>e!=null&&parseInt(e.toString(),10)>0,zP={exit:{height:{duration:.2,ease:Wf.ease},opacity:{duration:.3,ease:Wf.ease}},enter:{height:{duration:.3,ease:Wf.ease},opacity:{duration:.4,ease:Wf.ease}}},fre={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:i})=>({...e&&{opacity:dre(t)?1:0},height:t,transitionEnd:r?.exit,transition:n?.exit??Ms.exit(zP.exit,i)}),enter:({animateOpacity:e,endingHei
`})}function Rre(e){S4({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function ON(e){const{isOpen:t,isDisabled:n}=m_(),{reduceMotion:r}=v_(),i=iv("chakra-accordion__icon",e.className),o=w4(),a={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:r?void 0:"transform 0.2s",transformOrigin:"center",...o.icon};return _(ka,{viewBox:"0 0 24 24","aria-hidden":!0,className:i,__css:a,...e,children:_("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}ON.displayName="AccordionIcon";var NN=Ie(function(t,n){const{children:r,className:i}=t,{htmlProps:o,...a}=Tre(t),l={...w4().container,overflowAnchor:"none"},d=C.exports.useMemo(()=>a,[a]);return se.createElement(wre,{value:d},se.createElement(Ce.div,{ref:n,...o,className:iv("chakra-accordion__item",i),__css:l},typeof r=="function"?r({isExpanded:!!a.isOpen,isDisabled:!!a.isDisabled}):r))});NN.displayName="AccordionItem";var DN=Ie(function(t,n){const{reduceMotion:r}=v_(),{getPanelProps:i,isOpen:o}=m_(),a=i(t,n),s=iv("chakra-accordion__panel",t.className),l=w4();r||delete a.hidden;const d=se.createElement(Ce.div,{...a,__css:l.panel,className:s});return r?d:_(LN,{in:o,children:d})});DN.displayName="AccordionPanel";var FN=Ie(function({children:t,reduceMotion:n,...r},i){const o=Fi("Accordion",r),a=yn(r),{htmlProps:s,descendants:l,...d}=Ere(a),p=C.exports.useMemo(()=>({...d,reduceMotion:!!n}),[d,n]);return se.createElement(Cre,{value:l},se.createElement(Pre,{value:p},se.createElement(Sre,{value:o},se.createElement(Ce.div,{ref:i,...s,className:iv("chakra-accordion",r.className),__css:o.root},t))))});FN.displayName="Accordion";var Mre=(...e)=>e.filter(Boolean).join(" "),Ore=Zm({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),ov=Ie((e,t)=>{const n=wo("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:a="transparent",className:s,...l}=yn(e),d=Mre("chakra-spinner",s),p={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:a,borderLeftColor:a,animation:`${Ore} ${o} linear infinite`,...n};return se.createElement(Ce.div,{ref:t,__css:p,className:d,...l},r&&se.createElement(Ce.span,{srOnly:!0},r))});ov.displayName="Spinner";var C4=(...e)=>e.filter(Boolean).join(" ");function Nre(e){return _(ka,{viewBox:"0 0 24 24",...e,children:_("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 Dre(e){return _(ka,{viewBox:"0 0 24 24",...e,children:_("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 BP(e){return _(ka,{viewBox:"0 0 24 24",...e,children:_("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[Fre,zre]=Cn({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[$re,y_]=Cn({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),zN={info:{icon:Dre,colorScheme:"blue"},warning:{icon:BP,colorScheme:"orange"},success:{icon:Nre,colorScheme:"green"},error:{icon:BP,colorScheme:"red"},loading:{icon:ov,colorScheme:"blue"}};function Bre(e){return zN[e].colorScheme}function Hre(e){return zN[e].icon}var $N=Ie(function(t,n){const{status:r="info",addRole:i=!0,...o}=yn(t),a=t.colorScheme??Bre(r),s=Fi("Alert",{...t,colorScheme:a}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...s.container};
* @license React
* react.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*//**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var E4=(...e)=>e.filter(Boolean).join(" "),WP=e=>e?"":void 0,[Jre,eie]=Cn({strict:!1,name:"ButtonGroupContext"});function d6(e){const{children:t,className:n,...r}=e,i=C.exports.isValidElement(t)?C.exports.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,o=E4("chakra-button__icon",n);return se.createElement(Ce.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:o},i)}d6.displayName="ButtonIcon";function f6(e){const{label:t,placement:n,spacing:r="0.5rem",children:i=_(ov,{color:"currentColor",width:"1em",height:"1em"}),className:o,__css:a,...s}=e,l=E4("chakra-button__spinner",o),d=n==="start"?"marginEnd":"marginStart",p=C.exports.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[d]:t?r:0,fontSize:"1em",lineHeight:"normal",...a}),[a,t,d,r]);return se.createElement(Ce.div,{className:l,...s,__css:p},i)}f6.displayName="ButtonSpinner";function tie(e){const[t,n]=C.exports.useState(!e);return{ref:C.exports.useCallback(o=>{!o||n(o.tagName==="BUTTON")},[]),type:t?"button":void 0}}var Ol=Ie((e,t)=>{const n=eie(),r=wo("Button",{...n,...e}),{isDisabled:i=n?.isDisabled,isLoading:o,isActive:a,children:s,leftIcon:l,rightIcon:d,loadingText:p,iconSpacing:g="0.5rem",type:m,spinner:y,spinnerPlacement:b="start",className:S,as:E,...P}=yn(e),k=C.exports.useMemo(()=>{const F={...r?._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:F}}},[r,n]),{ref:L,type:R}=tie(E),N={rightIcon:d,leftIcon:l,iconSpacing:g,children:s};return se.createElement(Ce.button,{disabled:i||o,ref:gQ(t,L),as:E,type:m??R,"data-active":WP(a),"data-loading":WP(o),__css:k,className:E4("chakra-button",S),...P},o&&b==="start"&&_(f6,{className:"chakra-button__spinner--start",label:p,placement:"start",spacing:g,children:y}),o?p||se.createElement(Ce.span,{opacity:0},_(VP,{...N})):_(VP,{...N}),o&&b==="end"&&_(f6,{className:"chakra-button__spinner--end",label:p,placement:"end",spacing:g,children:y}))});Ol.displayName="Button";function VP(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:i}=e;return le(Xn,{children:[t&&_(d6,{marginEnd:i,children:t}),r,n&&_(d6,{marginStart:i,children:n})]})}var nie=Ie(function(t,n){const{size:r,colorScheme:i,variant:o,className:a,spacing:s="0.5rem",isAttached:l,isDisabled:d,...p}=t,g=E4("chakra-button__group",a),m=C.exports.useMemo(()=>({size:r,colorScheme:i,variant:o,isDisabled:d}),[r,i,o,d]);let y={display:"inline-flex"};return l?y={...y,"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}}:y={...y,"& > *:not(style) ~ *:not(style)":{marginStart:s}},se.createElement(Jre,{value:m},se.createElement(Ce.div,{ref:n,role:"group",__css:y,className:g,"data-attached":l?"":void 0,...p}))});nie.displayName="ButtonGroup";var Yi=Ie((e,t)=>{const{icon:n,children:r,isRound:i,"aria-label":o,...a}=e,s=n||r,l=C.exports.isValidElement(s)?C.exports.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;return _(Ol,{padding:"0",borderRadius:i?"full":void 0,ref:t,"aria-label":o,...a,children:l})});Yi.displayName="IconButton";var F0=(...e)=>e.filter(Boolean).join(" "),F2=e=>e?"":void 0,Mb=e=>e?!0:void 0;function UP(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var[rie,jN]=Cn({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormControl />" `}),[iie,z0]=Cn({strict:!1,name:"FormControlContext"});function oie(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:i,isReadOnly:o,...a}=e,s=C.exports.useId(),l=t||`field-${s}`,d=`${l}-label`,p=`${l}-feedback`,g=`${l}-helptext`,[m,y]=C.exports.useState(!1),[b,S]=C.exports.useState(!1),[E,P]=C.exports.useState(!1),k=C.exports.useCallback((z={},B=null)=>({id:g,...z,ref:Dn(B,K=>{!K||S(!0)})}),[g]),L=C.exports.useCallback((z={},B=null)=>({...z,ref:B,"data-focus":F2(E),"data-dis
:root {
--chakra-vh: 100vh;
}
@supports (height: -webkit-fill-available) {
:root {
--chakra-vh: -webkit-fill-available;
}
}
@supports (height: -moz-fill-available) {
:root {
--chakra-vh: -moz-fill-available;
}
}
@supports (height: 100lvh) {
:root {
--chakra-vh: 100lvh;
}
}
`,Mie=()=>_(a4,{styles:JN}),Oie=()=>_(a4,{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;
}
${JN}
`});function m6(e,t,n,r){const i=kr(n);return C.exports.useEffect(()=>{const o=typeof e=="function"?e():e??document;if(!(!n||!o))return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[t,e,r,i,n]),()=>{const o=typeof e=="function"?e():e??document;o?.removeEventListener(t,i,r)}}var Nie=Xm?C.exports.useLayoutEffect:C.exports.useEffect;function v6(e,t=[]){const n=C.exports.useRef(e);return Nie(()=>{n.current=e}),C.exports.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function __(e,t,n,r){const i=v6(t);return C.exports.useEffect(()=>{const o=N3(n)??document;if(!!t)return o.addEventListener(e,i,r),()=>{o.removeEventListener(e,i,r)}},[e,n,r,i,t]),()=>{(N3(n)??document).removeEventListener(e,i,r)}}function Die(e){const{isOpen:t,ref:n}=e,[r,i]=C.exports.useState(t),[o,a]=C.exports.useState(!1);return C.exports.useEffect(()=>{o||(i(t),a(!0))},[t,o,r]),__("animationend",()=>{i(t)},()=>n.current),{present:!(t?!1:!r),onComplete(){var l;const d=lX(n.current),p=new d.CustomEvent("animationend",{bubbles:!0});(l=n.current)==null||l.dispatchEvent(p)}}}function Fie(e,t){const n=e!==void 0;return[n,n&&typeof e<"u"?e:t]}function zie(e,t){const n=C.exports.useId();return C.exports.useMemo(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}function Q3(e={}){const{onClose:t,onOpen:n,isOpen:r,id:i}=e,o=v6(n),a=v6(t),[s,l]=C.exports.useState(e.defaultIsOpen||!1),[d,p]=Fie(r,s),g=zie(i,"disclosure"),m=C.exports.useCallback(()=>{d||l(!1),a?.()},[d,a]),y=C.exports.useCallback(()=>{d||l(!0),o?.()},[d,o]),b=C.exports.useCallback(()=>{(p?m:y)()},[p,y,m]);return{isOpen:!!p,onOpen:y,onClose:m,onToggle:b,isControlled:d,getButtonProps:(S={})=>({...S,"aria-expanded":p,"aria-controls":g,onClick:SX(S.onClick,b)}),getDisclosureProps:(S={})=>({...S,hidden:!p,id:g})}}var eD=(e,t)=>{const n=C.exports.useRef(!1),r=C.exports.useRef(!1);C.exports.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),C.exports.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function $ie(e){const t=e.current;if(!t)return!1;const n=dX(t);return!n||U9(t,n)?!1:!!mX(n)}function Bie(e,t){const{shouldFocus:n,visible:r,focusRef:i}=t,o=n&&!r;eD(()=>{if(!o||$ie(e))return;const a=i?.current||e.current;a&&D3(a,{nextTick:!0})},[o,e,i])}function Hie(e,t,n,r){return __(BX(t),OX(n,t==="pointerdown"),e,r)}function Wie(e){const{ref:t,elements:n,enabled:r}=e,i=WX("Safari");Hie(()=>Ym(t.current),"pointerdown",a=>{if(!i||!r)return;const s=a.target,d=(n??[t]).some(p=>{const g=UM(p)?p.current:p;return U9(g,s)});!ZM(s)&&d&&(a.preventDefault(),D3(s))})}var Vie={preventScroll:!0,shouldFocus:!1};function Uie(e,t=Vie){const{focusRef:n,preventScroll:r,shouldFocus:i,visible:o}=t,a=UM(e)?e.current:e,s=i&&o,l=C.exports.useCallback(()=>{if(!(!a||!s)&&!U9(a,document.activeElement))if(n?.current)D3(n.current,{preventScroll:r,nextTick:!0});else{const d=bX(a);d.length>0&&D3(d[0],{preventScroll:r,nextTick:!0})}},[s,r,a,n]);eD(()=>{l()},[l]),__("transitionend",l,a)}function k_(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var E_=Ie(function(t,n){const{htmlSize:r,...i}=t,o=Fi("Input",i),a=yn(i),s=x_(a),l=Pr("chakra-input",t.className);return se.createElement(Ce.input,{size:r,...s,__css:o.field,ref:n,className:l})});E_.displayName="Input";E_.id="Input";var[Gie,tD]=Cn({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "<InputGroup />" `}),jie=Ie(function(t,n){const r=Fi("Input",t),{children:i,className:o,...a}=yn(t),s=Pr("chakra-input__group",o),l={},d=k4(i),p=r.field;d.forEach(m=>{!r||(p&&m.type.id==="InputLeftElement"&&(l.paddingStart=p.height??p.h),p&&m.type.id==="InputRightElement"&&(l.paddingEnd=p.height??p.h),m.type.id==="InputRightAddon"&&(l.borderEndRadius=0),m.type.id==="InputLeftAddon"&&(l.borderStartRadius=0))});const g=d.map(m=>{var y,b;const S=k_({size:((y=m.props)==null?void 0:y.size)||t.size,variant:((b=m.props)==null?void 0:b.variant)||t.variant});return m.type.id!=="Input"?C.exports.cloneElement(m,S):C.exports.cloneElement(m
.`.concat(xle,` {
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(By,` {
right: `).concat(s,"px ").concat(r,`;
}
.`).concat(Hy,` {
margin-right: `).concat(s,"px ").concat(r,`;
}
.`).concat(By," .").concat(By,` {
right: 0 `).concat(r,`;
}
.`).concat(Hy," .").concat(Hy,` {
margin-right: 0 `).concat(r,`;
}
body {
`).concat(ble,": ").concat(s,`px;
}
`)},Rle=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r,o=C.exports.useMemo(function(){return Lle(i)},[i]);return _(Ale,{styles:Ile(o,!t,i,n?"":"!important")})},P6=!1;if(typeof window<"u")try{var H2=Object.defineProperty({},"passive",{get:function(){return P6=!0,!0}});window.addEventListener("test",H2,H2),window.removeEventListener("test",H2,H2)}catch{P6=!1}var cp=P6?{passive:!1}:!1,Mle=function(e){return e.tagName==="TEXTAREA"},hF=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Mle(e)&&n[t]==="visible")},Ole=function(e){return hF(e,"overflowY")},Nle=function(e){return hF(e,"overflowX")},pT=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=pF(e,n);if(r){var i=gF(e,n),o=i[1],a=i[2];if(o>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Dle=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Fle=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},pF=function(e,t){return e==="v"?Ole(t):Nle(t)},gF=function(e,t){return e==="v"?Dle(t):Fle(t)},zle=function(e,t){return e==="h"&&t==="rtl"?-1:1},$le=function(e,t,n,r,i){var o=zle(e,window.getComputedStyle(t).direction),a=o*r,s=n.target,l=t.contains(s),d=!1,p=a>0,g=0,m=0;do{var y=gF(e,s),b=y[0],S=y[1],E=y[2],P=S-E-o*b;(b||P)&&pF(e,s)&&(g+=P,m+=b),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(p&&(i&&g===0||!i&&a>g)||!p&&(i&&m===0||!i&&-a>m))&&(d=!0),d},W2=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},gT=function(e){return[e.deltaX,e.deltaY]},mT=function(e){return e&&"current"in e?e.current:e},Ble=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Hle=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},Wle=0,dp=[];function Vle(e){var t=C.exports.useRef([]),n=C.exports.useRef([0,0]),r=C.exports.useRef(),i=C.exports.useState(Wle++)[0],o=C.exports.useState(function(){return fF()})[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 S=Kw([e.lockRef.current],(e.shards||[]).map(mT),!0).filter(Boolean);return S.forEach(function(E){return E.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),S.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=C.exports.useCallback(function(S,E){if("touches"in S&&S.touches.length===2)return!a.current.allowPinchZoom;var P=W2(S),k=n.current,L="deltaX"in S?S.deltaX:k[0]-P[0],R="deltaY"in S?S.deltaY:k[1]-P[1],N,F=S.target,z=Math.abs(L)>Math.abs(R)?"h":"v";if("touches"in S&&z==="h"&&F.type==="range")return!1;var B=pT(z,F);if(!B)return!0;if(B?N=z:(N=z==="v"?"h":"v",B=pT(z,F)),!B)return!1;if(!r.current&&"changedTouches"in S&&(L||R)&&(r.current=N),!N)return!0;var K=r.current||N;return $le(K,E,S,K==="h"?L:R,!0)},[]),l=C.exports.useCallback(function(S){var E=S;if(!(!dp.length||dp[dp.length-1]!==o)){var P="deltaY"in E?gT(E):W2(E),k=t.current.filter(function(N){return N.name===E.type&&N.target===E.target&&Ble(N.delta,P)})[0];if(k&&k.should){E.cancelable&&E.preventDefault();return}if(!k){var L=(a.current.shards||[]).map(mT).filter(Boolean).filter(function(N){return N.contains(E.target)}),R=L.length>0?s(E,L[0]):!a.current.noIsolation;R&&E.cancelable&&E.preventDefault()}}},[]),d=C.exports.useCallback(function(S,E,P,k){var L={name:S,delta:E,target:P,should:k};t.current.push(L),setTimeout(function(){t.current=t.current.filter(function(R){return R!==L})},1)},[]),p=C.exports.useCallback(function(S){n.current=W2(S),r.current=void 0},[]),g=C.exports.useCallback(function(S){d(S.type,gT(S),S.target,s(S,e.lockRef.current))},[]),m=C.exports.useCallback(function(S){d(S.type,W2(S),S.target,s(S,e.lockRef.current))},[]);C.exports.useEffect(function(){return dp.push(o),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:m}),document.addEventListener("wheel",l,cp),document.addEventListener("touchmove",l,cp),document.addEventListener("touchstart",p,cp),function(){dp=dp.filter(function(S){return S!==o}),document.removeEventListener("wheel",l,cp),document.removeEventListener("touchmove",l,cp),document.removeEventListener("touchstart",p,cp)}},[]);var y=e.removeScrollBar,b=e.inert;return le(Xn,{children:[b?_(o,{styles:Hle(i)}):null,y?_(Rle,{gapMode:"margin"}):null]})}const Ule=wse(dF,Vle);var mF=C.exports.forwardRef(function(e,t){return _(I4,{...bl({},e,{ref:t,sideCar:Ule})})});mF.classNames=I4.classNames;const vF=mF;var ch=(...e)=>e.filter(Boolean).join(" ");function ug(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var Gle=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}},T6=new Gle;function jle(e,t){C.exports.useEffect(()=>(t&&T6.add(e),()=>{T6.remove(e)}),[t,e])}function Kle(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:i=!0,closeOnEsc:o=!0,useInert:a=!0,onOverlayClick:s,onEsc:l}=e,d=C.exports.useRef(null),p=C.exports.useRef(null),[g,m,y]=Zle(r,"chakra-modal","chakra-modal--header","chakra-modal--body");qle(d,t&&a),jle(d,t);const b=C.exports.useRef(null),S=C.exports.useCallback(B=>{b.current=B.target},[]),E=C.exports.useCallback(B=>{B.key==="Escape"&&(B.stopPropagation(),o&&n?.(),l?.())},[o,n,l]),[P,k]=C.exports.useState(!1),[L,R]=C.exports.useState(!1),N=C.exports.useCallback((B={},K=null)=>({role:"dialog",...B,ref:Dn(K,d),id:g,tabIndex:-1,"aria-modal":!0,"aria-labelledby":P?m:void 0,"aria-describedby":L?y:void 0,onClick:ug(B.onClick,G=>G.stopPropagation())}),[y,L,g,m,P]),F=C.exports.useCallback(B=>{B.stopPropagation(),b.current===B.target&&(!T6.isTopModal(d)||(i&&n?.()
45deg,
${t} 25%,
transparent 25%,
transparent 50%,
${t} 50%,
${t} 75%,
transparent 75%,
transparent
)`,backgroundSize:`${e} ${e}`}}function Bde(e){const t=XF().toHexString();return!e||Fde(e)?t:e.string&&e.colors?Wde(e.string,e.colors):e.string&&!e.colors?Hde(e.string):e.colors&&!e.string?Vde(e.colors):t}function Hde(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r<e.length;r+=1)t=e.charCodeAt(r)+((t<<5)-t),t=t&t;let n="#";for(let r=0;r<3;r+=1)n+=`00${(t>>r*8&255).toString(16)}`.substr(-2);return n}function Wde(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 Vde(e){return e[Math.floor(Math.random()*e.length)]}function Te(e,t){return n=>n.colorMode==="dark"?t:e}function r8(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function Ude(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function tz(e){return Ude(e)&&e.reference?e.reference:String(e)}var H4=(e,...t)=>t.map(tz).join(` ${e} `).replace(/calc/g,""),TT=(...e)=>`calc(${H4("+",...e)})`,LT=(...e)=>`calc(${H4("-",...e)})`,I6=(...e)=>`calc(${H4("*",...e)})`,AT=(...e)=>`calc(${H4("/",...e)})`,IT=e=>{const t=tz(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:I6(t,-1)},wu=Object.assign(e=>({add:(...t)=>wu(TT(e,...t)),subtract:(...t)=>wu(LT(e,...t)),multiply:(...t)=>wu(I6(e,...t)),divide:(...t)=>wu(AT(e,...t)),negate:()=>wu(IT(e)),toString:()=>e.toString()}),{add:TT,subtract:LT,multiply:I6,divide:AT,negate:IT});function Gde(e){return!Number.isInteger(parseFloat(e.toString()))}function jde(e,t="-"){return e.replace(/\s+/g,t)}function nz(e){const t=jde(e.toString());return t.includes("\\.")?e:Gde(e)?t.replace(".","\\."):e}function Kde(e,t=""){return[t,nz(e)].filter(Boolean).join("-")}function qde(e,t){return`var(${nz(e)}${t?`, ${t}`:""})`}function Zde(e,t=""){return`--${Kde(e,t)}`}function jo(e,t){const n=Zde(e,t?.prefix);return{variable:n,reference:qde(n,Yde(t?.fallback))}}function Yde(e){return typeof e=="string"?e:e?.reference}var{definePartsStyle:Xde,defineMultiStyleConfig:Qde}=ir(Zce.keys),Jde={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},efe={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},tfe={pt:"2",px:"4",pb:"5"},nfe={fontSize:"1.25em"},rfe=Xde({container:Jde,button:efe,panel:tfe,icon:nfe}),ife=Qde({baseStyle:rfe}),{definePartsStyle:hv,defineMultiStyleConfig:ofe}=ir(Yce.keys),Mu=bd("alert-fg"),pv=bd("alert-bg"),afe=hv({container:{bg:pv.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Mu.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Mu.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function i8(e){const{theme:t,colorScheme:n}=e,r=ri(t,`${n}.100`,n),i=C0(`${n}.200`,.16)(t);return Te(r,i)(e)}var sfe=hv(e=>{const{colorScheme:t}=e,n=Te(`${t}.500`,`${t}.200`)(e);return{container:{[pv.variable]:i8(e),[Mu.variable]:`colors.${n}`}}}),lfe=hv(e=>{const{colorScheme:t}=e,n=Te(`${t}.500`,`${t}.200`)(e);return{container:{[pv.variable]:i8(e),[Mu.variable]:`colors.${n}`,paddingStart:"3",borderStartWidth:"4px",borderStartColor:Mu.reference}}}),ufe=hv(e=>{const{colorScheme:t}=e,n=Te(`${t}.500`,`${t}.200`)(e);return{container:{[pv.variable]:i8(e),[Mu.variable]:`colors.${n}`,pt:"2",borderTopWidth:"4px",borderTopColor:Mu.reference}}}),cfe=hv(e=>{const{colorScheme:t}=e,n=Te(`${t}.500`,`${t}.200`)(e),r=Te("white","gray.900")(e);return{container:{[pv.variable]:`colors.${n}`,[Mu.variable]:`colors.${r}`,color:Mu.reference}}}),dfe={subtle:sfe,"left-accent":lfe,"top-accent":ufe,solid:cfe},ffe=ofe({baseStyle:afe,variants:dfe,defaultProps:{variant:"subtle",colorScheme:"blue"}}),rz={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem"
to right,
transparent 0%,
${ri(n,a)} 50%,
transparent 100%
)`;return{...!r&&i&&o,...r?{bgImage:s}:{bgColor:a}}},r0e={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},i0e=e=>({bg:Te("gray.100","whiteAlpha.300")(e)}),o0e=e=>({transitionProperty:"common",transitionDuration:"slow",...n0e(e)}),a0e=dg(e=>({label:r0e,filledTrack:o0e(e),track:i0e(e)})),s0e={xs:dg({track:{h:"1"}}),sm:dg({track:{h:"2"}}),md:dg({track:{h:"3"}}),lg:dg({track:{h:"4"}})},l0e=t0e({sizes:s0e,baseStyle:a0e,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:u0e,definePartsStyle:Gy}=ir(dde.keys),c0e=e=>{var t;const n=(t=Br(i5.baseStyle,e))==null?void 0:t.control;return{...n,borderRadius:"full",_checked:{...n?._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},d0e=Gy(e=>{var t,n,r,i;return{label:(n=(t=i5).baseStyle)==null?void 0:n.call(t,e).label,container:(i=(r=i5).baseStyle)==null?void 0:i.call(r,e).container,control:c0e(e)}}),f0e={md:Gy({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Gy({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Gy({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},h0e=u0e({baseStyle:d0e,sizes:f0e,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:p0e,definePartsStyle:g0e}=ir(fde.keys),m0e=e=>{var t;return{...(t=vn.baseStyle)==null?void 0:t.field,bg:Te("white","gray.700")(e),appearance:"none",paddingBottom:"1px",lineHeight:"normal","> option, > optgroup":{bg:Te("white","gray.700")(e)}}},v0e={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},y0e=g0e(e=>({field:m0e(e),icon:v0e})),K2={paddingInlineEnd:"8"},OT,NT,DT,FT,zT,$T,BT,HT,x0e={lg:{...(OT=vn.sizes)==null?void 0:OT.lg,field:{...(NT=vn.sizes)==null?void 0:NT.lg.field,...K2}},md:{...(DT=vn.sizes)==null?void 0:DT.md,field:{...(FT=vn.sizes)==null?void 0:FT.md.field,...K2}},sm:{...(zT=vn.sizes)==null?void 0:zT.sm,field:{...($T=vn.sizes)==null?void 0:$T.sm.field,...K2}},xs:{...(BT=vn.sizes)==null?void 0:BT.xs,field:{...(HT=vn.sizes)==null?void 0:HT.sm.field,...K2},icon:{insetEnd:"1"}}},b0e=p0e({baseStyle:y0e,sizes:x0e,variants:vn.variants,defaultProps:vn.defaultProps}),S0e=bd("skeleton-start-color"),w0e=bd("skeleton-end-color"),C0e=e=>{const t=Te("gray.100","gray.800")(e),n=Te("gray.400","gray.600")(e),{startColor:r=t,endColor:i=n,theme:o}=e,a=ri(o,r),s=ri(o,i);return{[S0e.variable]:a,[w0e.variable]:s,opacity:.7,borderRadius:"2px",borderColor:a,background:s}},_0e={baseStyle:C0e},k0e=e=>({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",bg:Te("white","gray.700")(e)}}),E0e={baseStyle:k0e},{defineMultiStyleConfig:P0e,definePartsStyle:W4}=ir(hde.keys),Om=bd("slider-thumb-size"),Nm=bd("slider-track-size"),T0e=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...r8({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},L0e=e=>({...r8({orientation:e.orientation,horizontal:{h:Nm.reference},vertical:{w:Nm.reference}}),overflow:"hidden",borderRadius:"sm",bg:Te("gray.200","whiteAlpha.200")(e),_disabled:{bg:Te("gray.300","whiteAlpha.300")(e)}}),A0e=e=>{const{orientation:t}=e;return{...r8({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:Om.reference,h:Om.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"}}},I0e=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",bg:Te(`${t}.500`,`${t}.200`)(e)}},R0e=W4(e=>({container:T0e(e),track:L0e(e),thumb:A0e(e),filledTrack:I0e(e)})),M0e=W4({container:{[Om.variable]:"sizes.4",[
* @license React
* use-sync-external-store-shim.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var _0=C.exports;function yme(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xme=typeof Object.is=="function"?Object.is:yme,bme=_0.useState,Sme=_0.useEffect,wme=_0.useLayoutEffect,Cme=_0.useDebugValue;function _me(e,t){var n=t(),r=bme({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return wme(function(){i.value=n,i.getSnapshot=t,oS(i)&&o({inst:i})},[e,n,t]),Sme(function(){return oS(i)&&o({inst:i}),e(function(){oS(i)&&o({inst:i})})},[e]),Cme(n),n}function oS(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!xme(e,n)}catch{return!0}}function kme(e,t){return t()}var Eme=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?kme:_me;Ez.useSyncExternalStore=_0.useSyncExternalStore!==void 0?_0.useSyncExternalStore:Eme;(function(e){e.exports=Ez})(kz);var Pz={exports:{}},Tz={};/**
* @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 U4=C.exports,Pme=kz.exports;function Tme(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Lme=typeof Object.is=="function"?Object.is:Tme,Ame=Pme.useSyncExternalStore,Ime=U4.useRef,Rme=U4.useEffect,Mme=U4.useMemo,Ome=U4.useDebugValue;Tz.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=Ime(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=Mme(function(){function l(y){if(!d){if(d=!0,p=y,y=r(y),i!==void 0&&a.hasValue){var b=a.value;if(i(b,y))return g=b}return g=y}if(b=g,Lme(p,y))return b;var S=r(y);return i!==void 0&&i(b,S)?b:(p=y,g=S)}var d=!1,p,g,m=n===void 0?null:n;return[function(){return l(t())},m===null?void 0:function(){return l(m())}]},[t,n,r,i]);var s=Ame(e,o[0],o[1]);return Rme(function(){a.hasValue=!0,a.value=s},[s]),Ome(s),s};(function(e){e.exports=Tz})(Pz);function Nme(e){e()}let Lz=Nme;const Dme=e=>Lz=e,Fme=()=>Lz,pd=se.createContext(null);function Az(){return C.exports.useContext(pd)}const zme=()=>{throw new Error("uSES not initialized!")};let Iz=zme;const $me=e=>{Iz=e},Bme=(e,t)=>e===t;function Hme(e=pd){const t=e===pd?Az:()=>C.exports.useContext(e);return function(r,i=Bme){const{store:o,subscription:a,getServerState:s}=t(),l=Iz(a.addNestedSub,o.getState,s||o.getState,r,i);return C.exports.useDebugValue(l),l}}const Wme=Hme();var Vme={exports:{}},Ln={};/**
* @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 g8=Symbol.for("react.element"),m8=Symbol.for("react.portal"),G4=Symbol.for("react.fragment"),j4=Symbol.for("react.strict_mode"),K4=Symbol.for("react.profiler"),q4=Symbol.for("react.provider"),Z4=Symbol.for("react.context"),Ume=Symbol.for("react.server_context"),Y4=Symbol.for("react.forward_ref"),X4=Symbol.for("react.suspense"),Q4=Symbol.for("react.suspense_list"),J4=Symbol.for("react.memo"),ex=Symbol.for("react.lazy"),Gme=Symbol.for("react.offscreen"),Rz;Rz=Symbol.for("react.module.reference");function is(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case g8:switch(e=e.type,e){case G4:case K4:case j4:case X4:case Q4:return e;default:switch(e=e&&e.$$typeof,e){case Ume:case Z4:case Y4:case ex:case J4:case q4:return e;default:return t}}case m8:return t}}}Ln.ContextConsumer=Z4;Ln.ContextProvider=q4;Ln.Element=g8;Ln.ForwardRef=Y4;Ln.Fragment=G4;Ln.Lazy=ex;Ln.Memo=J4;Ln.Portal=m8;Ln.Profiler=K4;Ln.StrictMode=j4;Ln.Suspense=X4;Ln.SuspenseList=Q4;Ln.isAsyncMode=function(){return!1};Ln.isConcurrentMode=function(){return!1};Ln.isContextConsumer=function(e){return is(e)===Z4};Ln.isContextProvider=function(e){return is(e)===q4};Ln.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===g8};Ln.isForwardRef=function(e){return is(e)===Y4};Ln.isFragment=function(e){return is(e)===G4};Ln.isLazy=function(e){return is(e)===ex};Ln.isMemo=function(e){return is(e)===J4};Ln.isPortal=function(e){return is(e)===m8};Ln.isProfiler=function(e){return is(e)===K4};Ln.isStrictMode=function(e){return is(e)===j4};Ln.isSuspense=function(e){return is(e)===X4};Ln.isSuspenseList=function(e){return is(e)===Q4};Ln.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===G4||e===K4||e===j4||e===X4||e===Q4||e===Gme||typeof e=="object"&&e!==null&&(e.$$typeof===ex||e.$$typeof===J4||e.$$typeof===q4||e.$$typeof===Z4||e.$$typeof===Y4||e.$$typeof===Rz||e.getModuleId!==void 0)};Ln.typeOf=is;(function(e){e.exports=Ln})(Vme);function jme(){const e=Fme();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 cL={notify(){},get:()=>[]};function Kme(e,t){let n,r=cL;function i(g){return l(),r.subscribe(g)}function o(){r.notify()}function a(){p.onStateChange&&p.onStateChange()}function s(){return Boolean(n)}function l(){n||(n=t?t.addNestedSub(a):e.subscribe(a),r=jme())}function d(){n&&(n(),n=void 0,r.clear(),r=cL)}const p={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:s,trySubscribe:l,tryUnsubscribe:d,getListeners:()=>r};return p}const qme=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Zme=qme?C.exports.useLayoutEffect:C.exports.useEffect;function Yme({store:e,context:t,children:n,serverState:r}){const i=C.exports.useMemo(()=>{const s=Kme(e);return{store:e,subscription:s,getServerState:r?()=>r:void 0}},[e,r]),o=C.exports.useMemo(()=>e.getState(),[e]);return Zme(()=>{const{subscription:s}=i;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),o!==e.getState()&&s.notifyNestedSubs(),()=>{s.tryUnsubscribe(),s.onStateChange=void 0}},[i,o]),_((t||pd).Provider,{value:i,children:n})}function Mz(e=pd){const t=e===pd?Az:()=>C.exports.useContext(e);return function(){const{store:r}=t();return r}}const Xme=Mz();function Qme(e=pd){const t=e===pd?Xme:Mz(e);return function(){return t().dispatch}}const Jme=Qme();$me(Pz.exports.useSyncExternalStoreWithSelector);Dme($l.exports.unstable_batchedUpdates);var v8="persist:",Oz="persist/FLUSH",y8="persist/REHYDRATE",Nz="persist/PAUSE",Dz="persist/PERSIST",Fz="persist/PURGE",zz="persist/REGISTER",eve=-1;function Ky(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ky=function(n){return typeof n}:Ky=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symb
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",d=500,p="__lodash_placeholder__",g=1,m=2,y=4,b=1,S=2,E=1,P=2,k=4,L=8,R=16,N=32,F=64,z=128,B=256,K=512,G=30,Y="...",ye=800,pe=16,he=1,me=2,we=3,re=1/0,j=9007199254740991,ne=17976931348623157e292,Q=0/0,W=4294967295,ie=W-1,ce=W>>>1,Se=[["ary",z],["bind",E],["bindKey",P],["curry",L],["curryRight",R],["flip",K],["partial",N],["partialRight",F],["rearg",B]],De="[object Arguments]",Me="[object Array]",Ve="[object AsyncFunction]",ke="[object Boolean]",$e="[object Date]",nt="[object DOMException]",ft="[object Error]",Rt="[object Function]",Mt="[object GeneratorFunction]",Re="[object Map]",tt="[object Number]",pt="[object Null]",at="[object Object]",gt="[object Promise]",hn="[object Proxy]",mt="[object RegExp]",Ht="[object Set]",tn="[object String]",Ft="[object Symbol]",Oe="[object Undefined]",et="[object WeakMap]",Ut="[object WeakSet]",Wt="[object ArrayBuffer]",Ee="[object DataView]",kt="[object Float32Array]",Xt="[object Float64Array]",zn="[object Int8Array]",Ge="[object Int16Array]",Tt="[object Int32Array]",Be="[object Uint8Array]",ut="[object Uint8ClampedArray]",je="[object Uint16Array]",xt="[object Uint32Array]",Qt=/\b__p \+= '';/g,jn=/\b(__p \+=) '' \+/g,yr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Hr=/&(?:amp|lt|gt|quot|#39);/g,zi=/[&<>"']/g,Ad=RegExp(Hr.source),Wr=RegExp(zi.source),Ku=/<%-([\s\S]+?)%>/g,Id=/<%([\s\S]+?)%>/g,$s=/<%=([\s\S]+?)%>/g,qu=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Zu=/^\w*$/,or=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Wl=/[\\^$.*+?()[\]{}|]/g,Rd=RegExp(Wl.source),Bs=/^\s+/,Vl=/\s/,Md=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,yi=/\{\n\/\* \[wrapped with (.+)\] \*/,Hs=/,? & /,Od=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Nd=/[()=,{}\[\]\/\s]/,Dd=/\\(\\)?/g,Fd=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,oi=/\w*$/,zd=/^[-+]0x[0-9a-f]+$/i,$d=/^0b[01]+$/i,Bd=/^\[object .+?Constructor\]$/,Hd=/^0o[0-7]+$/i,Wd=/^(?:0|[1-9]\d*)$/,Vd=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Co=/($^)/,Ud=/['\n\r\u2028\u2029\\]/g,$i="\\ud800-\\udfff",Ko="\\u0300-\\u036f",as="\\ufe20-\\ufe2f",Qi="\\u20d0-\\u20ff",Ea=Ko+as+Qi,Yu="\\u2700-\\u27bf",Ws="a-z\\xdf-\\xf6\\xf8-\\xff",Pa="\\xac\\xb1\\xd7\\xf7",Bi="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",pn="\\u2000-\\u206f",un=" \\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",Ji="A-Z\\xc0-\\xd6\\xd8-\\xde",ar="\\ufe0e\\ufe0f",Tr=Pa+Bi+pn+un,eo="['\u2019]",Ta="["+$i+"]",Lr="["+Tr+"]",qo="["+Ea+"]",Ul="\\d+",_o="["+Yu+"]",to="["+Ws+"]",Gl="[^"+$i+Tr+Ul+Yu+Ws+Ji+"]",Xr="\\ud83c[\\udffb-\\udfff]",jl="(?:"+qo+"|"+Xr+")",Xu="[^"+$i+"]",Kl="(?:\\ud83c[\\udde6-\\uddff]){2}",La="[\\ud800-\\udbff][\\udc00-\\udfff]",xi="["+Ji+"]",Aa="\\u200d",ss="(?:"+to+"|"+Gl+")",Gd="(?:"+xi+"|"+Gl+")",Ia="(?:"+eo+"(?:d|ll|m|re|s|t|ve))?",Vs="(?:"+eo+"(?:D|LL|M|RE|S|T|VE))?",ql=jl+"?",Us="["+ar+"]?",bi="(?:"+Aa+"(?:"+[Xu,Kl,La].join("|")+")"+Us+ql+")*",ls="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Zo="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Lt=Us+ql+bi,Qu="(?:"+[_o,Kl,La].join("|")+")"+Lt,us="(?:"+[Xu+qo+"?",qo,Kl,La,Ta].join("|")+")",Ra=RegExp(eo,"g"),Zl=RegExp(qo,"g"),Ar=RegExp(Xr+"(?="+Xr+")|"+us+Lt,"g"),cn=RegExp([xi+"?"+to+"+"+Ia+"(?="+[Lr,xi,"$"].join("|")+")",Gd+"+"+Vs+"(?="+[Lr,xi+ss,"$"].join("|")+")",xi+"?"+ss+"+"+Ia,xi+"+"+Vs,Zo,ls,Ul,Qu].join("|"),"g"),Yl=RegExp("["+Aa+$i+Ea+ar+"]"),Xl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ql=["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"],Jl=-1,nn={};
/* [wrapped with `+h+`] */
`)}function HH(u){return It(u)||_f(u)||!!(r1&&u&&u[r1])}function cu(u,h){var x=typeof u;return h=h??j,!!h&&(x=="number"||x!="symbol"&&Wd.test(u))&&u>-1&&u%1==0&&u<h}function so(u,h,x){if(!dr(x))return!1;var A=typeof h;return(A=="number"?Ro(x)&&cu(h,x.length):A=="string"&&h in x)?xs(x[h],u):!1}function Px(u,h){if(It(u))return!1;var x=typeof u;return x=="number"||x=="symbol"||x=="boolean"||u==null||aa(u)?!0:Zu.test(u)||!qu.test(u)||h!=null&&u in dn(h)}function WH(u){var h=typeof u;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?u!=="__proto__":u===null}function Tx(u){var h=xe(u),x=$[h];if(typeof x!="function"||!(h in Vt.prototype))return!1;if(u===x)return!0;var A=oe(x);return!!A&&u===A[0]}function VH(u){return!!ac&&ac in u}var UH=Qn?du:Gx;function O1(u){var h=u&&u.constructor,x=typeof h=="function"&&h.prototype||xn;return u===x}function u7(u){return u===u&&!dr(u)}function c7(u,h){return function(x){return x==null?!1:x[u]===h&&(h!==n||u in dn(x))}}function GH(u){var h=i2(u,function(A){return x.size===d&&x.clear(),A}),x=h.cache;return h}function jH(u,h){var x=u[1],A=h[1],O=x|A,H=O<(E|P|z),q=A==z&&x==L||A==z&&x==B&&u[7].length<=h[8]||A==(z|B)&&h[7].length<=h[8]&&x==L;if(!(H||q))return u;A&E&&(u[2]=h[2],O|=x&E?0:k);var X=h[3];if(X){var ae=u[3];u[3]=ae?Qv(ae,X,h[4]):X,u[4]=ae?Qo(u[3],p):h[4]}return X=h[5],X&&(ae=u[5],u[5]=ae?L1(ae,X,h[6]):X,u[6]=ae?Qo(u[5],p):h[6]),X=h[7],X&&(u[7]=X),A&z&&(u[8]=u[8]==null?h[8]:Jr(u[8],h[8])),u[9]==null&&(u[9]=h[9]),u[0]=h[0],u[1]=O,u}function KH(u){var h=[];if(u!=null)for(var x in dn(u))h.push(x);return h}function qH(u){return Eh.call(u)}function d7(u,h,x){return h=xr(h===n?u.length-1:h,0),function(){for(var A=arguments,O=-1,H=xr(A.length-h,0),q=ge(H);++O<H;)q[O]=A[h+O];O=-1;for(var X=ge(h+1);++O<h;)X[O]=A[O];return X[h]=x(q),Si(u,this,X)}}function f7(u,h){return h.length<2?u:Xs(u,Nr(h,0,-1))}function ZH(u,h){for(var x=u.length,A=Jr(h.length,x),O=Pi(u);A--;){var H=h[A];u[A]=cu(H,x)?O[H]:n}return u}function Lx(u,h){if(!(h==="constructor"&&typeof u[h]=="function")&&h!="__proto__")return u[h]}var h7=g7(vf),N1=sf||function(u,h){return Ke.setTimeout(u,h)},Ax=g7(Kh);function p7(u,h,x){var A=h+"";return Ax(u,BH(A,YH(FH(A),x)))}function g7(u){var h=0,x=0;return function(){var A=i1(),O=pe-(A-x);if(x=A,O>0){if(++h>=ye)return arguments[0]}else h=0;return u.apply(n,arguments)}}function e2(u,h){var x=-1,A=u.length,O=A-1;for(h=h===n?A:h;++x<h;){var H=gf(x,O),q=u[H];u[H]=u[x],u[x]=q}return u.length=h,u}var m7=GH(function(u){var h=[];return u.charCodeAt(0)===46&&h.push(""),u.replace(or,function(x,A,O,H){h.push(O?H.replace(Dd,"$1"):A||x)}),h});function sl(u){if(typeof u=="string"||aa(u))return u;var h=u+"";return h=="0"&&1/u==-re?"-0":h}function Cf(u){if(u!=null){try{return lr.call(u)}catch{}try{return u+""}catch{}}return""}function YH(u,h){return $n(Se,function(x){var A="_."+x[0];h&x[1]&&!Hi(u,A)&&u.push(A)}),u.sort()}function v7(u){if(u instanceof Vt)return u.clone();var h=new ro(u.__wrapped__,u.__chain__);return h.__actions__=Pi(u.__actions__),h.__index__=u.__index__,h.__values__=u.__values__,h}function XH(u,h,x){(x?so(u,h,x):h===n)?h=1:h=xr(Nt(h),0);var A=u==null?0:u.length;if(!A||h<1)return[];for(var O=0,H=0,q=ge(lf(A/h));O<A;)q[H++]=Nr(u,O,O+=h);return q}function QH(u){for(var h=-1,x=u==null?0:u.length,A=0,O=[];++h<x;){var H=u[h];H&&(O[A++]=H)}return O}function JH(){var u=arguments.length;if(!u)return[];for(var h=ge(u-1),x=arguments[0],A=u;A--;)h[A-1]=arguments[A];return Oa(It(x)?Pi(x):[x],Mr(h,1))}var eW=wt(function(u,h){return Dr(u)?bc(u,Mr(h,1,Dr,!0)):[]}),tW=wt(function(u,h){var x=$a(h);return Dr(x)&&(x=n),Dr(u)?bc(u,Mr(h,1,Dr,!0),Le(x,2)):[]}),nW=wt(function(u,h){var x=$a(h);return Dr(x)&&(x=n),Dr(u)?bc(u,Mr(h,1,Dr,!0),n,x):[]});function rW(u,h,x){var A=u==null?0:u.length;return A?(h=x||h===n?1:Nt(h),Nr(u,h<0?0:h,A)):[]}function iW(u,h,x){var A=u==null?0:u.length;return A?(h=x||h===n?1:Nt(h),h=A-h,Nr(u,0,h<0?0:h)):[]}function oW(u,h){return u&&u.length?Pc(u,Le(h,3),!0,!0):[]}function aW(u,h){return u&&u.length?Pc(u,Le(h,3),!0):[]}function sW(u,h,x,A){var O=u==null?0:u.length;return O?(x&&
`;u.replace(Xe,function(yt,jt,en,sa,lo,la){return en||(en=sa),Ae+=u.slice(_e,la).replace(Ud,Ks),jt&&(X=!0,Ae+=`' +
__e(`+jt+`) +
'`),lo&&(ae=!0,Ae+=`';
`+lo+`;
__p += '`),en&&(Ae+=`' +
((__t = (`+en+`)) == null ? '' : __t) +
'`),_e=la+yt.length,yt}),Ae+=`';
`;var vt=rn.call(h,"variable")&&h.variable;if(!vt)Ae=`with (obj) {
`+Ae+`
}
`;else if(Nd.test(vt))throw new Ct(s);Ae=(ae?Ae.replace(Qt,""):Ae).replace(jn,"$1").replace(yr,"$1;"),Ae="function("+(vt||"obj")+`) {
`+(vt?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(X?", __e = _.escape":"")+(ae?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+Ae+`return __p
<<<<<<<< HEAD:frontend/dist/assets/index.35e26a9a.js
}`;var Bt=Z7(function(){return Jt(H,ct+"return "+Ae).apply(n,q)});if(Bt.source=Ae,Nx(Bt))throw Bt;return Bt}function mG(u){return bn(u).toLowerCase()}function vG(u){return bn(u).toUpperCase()}function yG(u,h,x){if(u=bn(u),u&&(x||h===n))return no(u);if(!u||!(h=oo(h)))return u;var A=Wi(u),O=Wi(h),H=Xo(A,O),q=cs(A,O)+1;return vs(A,H,q).join("")}function xG(u,h,x){if(u=bn(u),u&&(x||h===n))return u.slice(0,Q0(u)+1);if(!u||!(h=oo(h)))return u;var A=Wi(u),O=cs(A,Wi(h))+1;return vs(A,0,O).join("")}function bG(u,h,x){if(u=bn(u),u&&(x||h===n))return u.replace(Bs,"");if(!u||!(h=oo(h)))return u;var A=Wi(u),O=Xo(A,Wi(h));return vs(A,O).join("")}function SG(u,h){var x=G,A=Y;if(dr(h)){var O="separator"in h?h.separator:O;x="length"in h?Nt(h.length):x,A="omission"in h?oo(h.omission):A}u=bn(u);var H=u.length;if(nu(u)){var q=Wi(u);H=q.length}if(x>=H)return u;var X=x-Na(A);if(X<1)return A;var ae=q?vs(q,0,X).join(""):u.slice(0,X);if(O===n)return ae+A;if(q&&(X+=ae.length-X),Dx(O)){if(u.slice(X).search(O)){var _e,Pe=ae;for(O.global||(O=nf(O.source,bn(oi.exec(O))+"g")),O.lastIndex=0;_e=O.exec(Pe);)var Ae=_e.index;ae=ae.slice(0,Ae===n?X:Ae)}}else if(u.indexOf(oo(O),X)!=X){var Xe=ae.lastIndexOf(O);Xe>-1&&(ae=ae.slice(0,Xe))}return ae+A}function wG(u){return u=bn(u),u&&Ad.test(u)?u.replace(Hr,Av):u}var CG=al(function(u,h,x){return u+(x?" ":"")+h.toUpperCase()}),$x=tp("toUpperCase");function q7(u,h,x){return u=bn(u),h=x?n:h,h===n?Ch(u)?tf(u):Z0(u):u.match(h)||[]}var Z7=wt(function(u,h){try{return Si(u,n,h)}catch(x){return Nx(x)?x:new Ct(x)}}),_G=Jn(function(u,h){return $n(h,function(x){x=sl(x),ta(u,x,Mx(u[x],u))}),u});function kG(u){var h=u==null?0:u.length,x=Le();return u=h?On(u,function(A){if(typeof A[1]!="function")throw new wi(a);return[x(A[0]),A[1]]}):[],wt(function(A){for(var O=-1;++O<h;){var H=u[O];if(Si(H[0],this,A))return Si(H[1],this,A)}})}function EG(u){return Mh(ci(u,g))}function Bx(u){return function(){return u}}function PG(u,h){return u==null||u!==u?h:u}var TG=R1(),LG=R1(!0);function Oo(u){return u}function Hx(u){return cr(typeof u=="function"?u:ci(u,g))}function AG(u){return _c(ci(u,g))}function IG(u,h){return Js(u,ci(h,g))}var RG=wt(function(u,h){return function(x){return gs(x,u,h)}}),MG=wt(function(u,h){return function(x){return gs(u,x,h)}});function Wx(u,h,x){var A=pi(h),O=Fh(h,A);x==null&&!(dr(h)&&(O.length||!A.length))&&(x=h,h=u,u=this,O=Fh(h,pi(h)));var H=!(dr(x)&&"chain"in x)||!!x.chain,q=du(u);return $n(O,function(X){var ae=h[X];u[X]=ae,q&&(u.prototype[X]=function(){var _e=this.__chain__;if(H||_e){var Pe=u(this.__wrapped__),Ae=Pe.__actions__=Pi(this.__actions__);return Ae.push({func:ae,args:arguments,thisArg:u}),Pe.__chain__=_e,Pe}return ae.apply(u,Oa([this.value()],arguments))})}),u}function OG(){return Ke._===this&&(Ke._=e1),this}function Vx(){}function NG(u){return u=Nt(u),wt(function(h){return kc(h,u)})}var DG=M1(On),FG=M1(Mn),zG=M1(Ju);function Y7(u){return Px(u)?js(sl(u)):ms(u)}function $G(u){return function(h){return u==null?n:Xs(u,h)}}var BG=v(),HG=v(!0);function Ux(){return[]}function Gx(){return!1}function WG(){return{}}function VG(){return""}function UG(){return!0}function GG(u,h){if(u=Nt(u),u<1||u>j)return[];var x=W,A=Jr(u,W);h=Le(h),u-=W;for(var O=Qd(A,h);++x<u;)h(x);return O}function jG(u){return It(u)?On(u,sl):aa(u)?[u]:Pi(m7(bn(u)))}function KG(u){var h=++rf;return bn(u)+h}var qG=np(function(u,h){return u+h},0),ZG=M("ceil"),YG=np(function(u,h){return u/h},1),XG=M("floor");function QG(u){return u&&u.length?Sr(u,Oo,zh):n}function JG(u,h){return u&&u.length?Sr(u,Le(h,2),zh):n}function ej(u){return Zd(u,Oo)}function tj(u,h){return Zd(u,Le(h,2))}function nj(u){return u&&u.length?Sr(u,Oo,Qs):n}function rj(u,h){return u&&u.length?Sr(u,Le(h,2),Qs):n}var ij=np(function(u,h){return u*h},1),oj=M("round"),aj=np(function(u,h){return u-h},0);function sj(u){return u&&u.length?Xd(u,Oo):0}function lj(u,h){return u&&u.length?Xd(u,Le(h,2)):0}return $.after=AV,$.ary=P7,$.assign=vU,$.assignIn=H7,$.assignInWith=l2,$.assignWith=yU,$.at=xU,$.before=T7,$.bind=Mx,$.bindAll=_G,$.bindKey=L7,$.castArray=WV,$.chain=_7,$.chunk=XH,$.compact
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Uye(e){if(Array.isArray(e))return K6(e)}function EL(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 PL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EL(Object(n),!0).forEach(function(r){d$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function d$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bm(e,t){return Kye(e)||jye(e,t)||f$(e,t)||Gye()}function Gye(){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 f$(e,t){if(!!e){if(typeof e=="string")return K6(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 K6(e,t)}}function K6(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 jye(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 Kye(e){if(Array.isArray(e))return e}var qye="file-invalid-type",Zye="file-too-large",Yye="file-too-small",Xye="too-many-files",Qye=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:qye,message:"File type must be ".concat(n)}},TL=function(t){return{code:Zye,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},LL=function(t){return{code:Yye,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},Jye={code:Xye,message:"Too many files"};function h$(e,t){var n=e.type==="application/x-moz-file"||Hye(e,t);return[n,n?null:Qye(t)]}function p$(e,t,n){if(Ff(e.size))if(Ff(t)&&Ff(n)){if(e.size>n)return[!1,TL(n)];if(e.size<t)return[!1,LL(t)]}else{if(Ff(t)&&e.size<t)return[!1,LL(t)];if(Ff(n)&&e.size>n)return[!1,TL(n)]}return[!0,null]}function Ff(e){return e!=null}function e3e(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,o=e.multiple,a=e.maxFiles,s=e.validator;return!o&&t.length>1||o&&a>=1&&t.length>a?!1:t.every(function(l){var d=h$(l,n),p=Bm(d,1),g=p[0],m=p$(l,r,i),y=Bm(m,1),b=y[0],S=s?s(l):null;return g&&b&&!S})}function m5(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Z2(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 AL(e){e.preventDefault()}function t3e(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function n3e(e){return e.indexOf("Edge/")!==-1}function r3e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return t3e(e)||n3e(e)}function fl(){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!m5(r)&&s&&s.apply(void 0,[r].concat(o)),m5(r)})}}function i3e(){return"showOpenFilePicker"in window}function o3e(e){if(Ff(e)){var t=Object.entries(e).filter(function(n){var r=Bm(n,2),i=r[0],o=r[1],a=!0;return g$(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(m$))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,r){var i=Bm(r,2),o=i[0],a=i[1];return PL(PL({},n),{},d$({},o,a))},{});return[{accept:t}]}return e}function a3e(e){if(Ff(e))return Object.entries(e).reduce(function(t,n){var r=Bm(n,2),i=r[0],o=r[1];return[].concat(kL(t),[i],kL(o))},[]).filter(function(t){return g$(t)||m$(t)}).join(",")}function s3e(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function l3e(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function g$(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function m$(e){return/^.*\.[\w]+$/.test(e)}var u3e=["children"],c3e=["open"],d3e=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLe
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g3e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function m3e(e){if(Array.isArray(e))return q6(e)}function fS(e,t){return x3e(e)||y3e(e,t)||v$(e,t)||v3e()}function v3e(){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 v$(e,t){if(!!e){if(typeof e=="string")return q6(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 q6(e,t)}}function q6(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 y3e(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 x3e(e){if(Array.isArray(e))return e}function IL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IL(Object(n),!0).forEach(function(r){Z6(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Z6(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v5(e,t){if(e==null)return{};var n=b3e(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 b3e(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 z8=C.exports.forwardRef(function(e,t){var n=e.children,r=v5(e,u3e),i=x$(r),o=i.open,a=v5(i,c3e);return C.exports.useImperativeHandle(t,function(){return{open:o}},[o]),_(C.exports.Fragment,{children:n(fr(fr({},a),{},{open:o}))})});z8.displayName="Dropzone";var y$={disabled:!1,getFilesFromEvent:Rye,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};z8.defaultProps=y$;z8.propTypes={children:An.exports.func,accept:An.exports.objectOf(An.exports.arrayOf(An.exports.string)),multiple:An.exports.bool,preventDropOnDocument:An.exports.bool,noClick:An.exports.bool,noKeyboard:An.exports.bool,noDrag:An.exports.bool,noDragEventsBubbling:An.exports.bool,minSize:An.exports.number,maxSize:An.exports.number,maxFiles:An.exports.number,disabled:An.exports.bool,getFilesFromEvent:An.exports.func,onFileDialogCancel:An.exports.func,onFileDialogOpen:An.exports.func,useFsAccessApi:An.exports.bool,autoFocus:An.exports.bool,onDragEnter:An.exports.func,onDragLeave:An.exports.func,onDragOver:An.exports.func,onDrop:An.exports.func,onDropAccepted:An.exports.func,onDropRejected:An.exports.func,onError:An.exports.func,validator:An.exports.func};var Y6={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function x$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=fr(fr({},y$),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,d=t.onDragEnter,p=t.onDragLeave,g=t.onDragOver,m=t.onDrop,y=t.onDropAccepted,b=t.onDropRejected,S=t.onFileDialogCancel,E=t.onFileDialogOpen,P=t.useFsAccessApi,k=t.autoFocus,L=t.preventDropOnDocument,R=t.noClick,N=t.noKeyboard,F=t.noDrag,z=t.noDragEventsBubbling,B=t.onError,K=t.validator,G=C.exports.useMemo(function(){return a3e(n)},[n]),Y=C.exports.useMemo(function(){return o3e(n)},[n]),ye=C.exports.useMemo(function(){return typeof E=="function"?E:RL},[E]),pe=C.exports.useMemo(function(){return typeof S=="function"?S:RL},[S]),he=C.exports.useRef(null),me=C.exports.useRef(null),we=C.ex
`+b.message,"");s({title:"Upload failed",description:m,status:"error",isClosable:!0})},[s]);return _(w3e,{fileAcceptedCallback:d,fileRejectionCallback:p,styleClass:i,children:_(Ol,{size:"sm",fontSize:"md",fontWeight:"normal",onMouseOver:o,onMouseOut:a,leftIcon:n,width:"100%",children:t||null})})}const _3e=Rn(e=>e.system,e=>e.shouldConfirmOnDelete),X6=C.exports.forwardRef(({image:e,children:t},n)=>{const{isOpen:r,onOpen:i,onClose:o}=Q3(),a=St(),s=qe(_3e),l=C.exports.useRef(null),d=_d(),p=y=>{y.stopPropagation(),s?i():g()},g=()=>{a(Q2e(e)),d({title:"Image Deleted",status:"success",duration:2500,isClosable:!0}),o()};Kt("del",()=>{s?i():g()},[e,s]);const m=y=>a(Xz(!y.target.checked));return le(Xn,{children:[C.exports.cloneElement(t,{onClick:p,ref:n}),_(tue,{isOpen:r,leastDestructiveRef:l,onClose:o,children:_(Mm,{children:le(nue,{children:[_(X_,{fontSize:"lg",fontWeight:"bold",children:"Delete image"}),_(n5,{children:le(Wn,{direction:"column",gap:5,children:[_(zo,{children:"Are you sure? You can't undo this action afterwards."}),_(Bu,{children:le(Wn,{alignItems:"center",children:[_(Sd,{mb:0,children:"Don't ask me again"}),_(B4,{checked:!s,onChange:m})]})})]})}),le(Y_,{children:[_(Ol,{ref:l,onClick:o,children:"Cancel"}),_(Ol,{colorScheme:"red",onClick:g,ml:3,children:"Delete"})]})]})})})]})}),ML=({title:e="Popup",styleClass:t,delay:n=50,popoverOptions:r,actionButton:i,children:o})=>le(M4,{trigger:"hover",closeDelay:n,children:[_(D4,{children:_(Ns,{children:o})}),le(N4,{className:`popover-content ${t}`,children:[_(O4,{className:"popover-arrow"}),_(EF,{className:"popover-header",children:e}),le("div",{className:"popover-options",children:[r||null,i]})]})]}),qi=(e,t)=>Math.floor(e/t)*t,OL=(e,t)=>Math.round(e/t)*t,k3e={tool:"brush",brushSize:50,maskColor:{r:255,g:90,b:90,a:.5},canvasDimensions:{width:0,height:0},boundingBoxDimensions:{width:64,height:64},boundingBoxCoordinate:{x:0,y:0},boundingBoxPreviewFill:{r:0,g:0,b:0,a:.7},shouldShowBoundingBox:!1,shouldShowBoundingBoxFill:!1,isBoundingBoxTransforming:!1,cursorPosition:null,lines:[],pastLines:[],futureLines:[],shouldShowMask:!0,shouldInvertMask:!1,shouldShowCheckboardTransparency:!1,shouldShowBrush:!0,shouldShowBrushPreview:!1,isMovingBoundingBox:!1,needsRepaint:!1,isDrawing:!1,stageScale:1,shouldUseInpaintReplace:!1,inpaintReplace:.5},E3e=k3e,b$=V4({name:"inpainting",initialState:E3e,reducers:{setTool:(e,t)=>{e.tool=t.payload},toggleTool:e=>{e.tool=e.tool==="brush"?"eraser":"brush"},setBrushSize:(e,t)=>{e.brushSize=t.payload},addLine:(e,t)=>{e.pastLines.push(e.lines),e.lines.push(t.payload),e.futureLines=[]},addPointToCurrentLine:(e,t)=>{e.lines[e.lines.length-1].points.push(...t.payload)},undo:e=>{if(e.pastLines.length===0)return;const t=e.pastLines.pop();!t||(e.futureLines.unshift(e.lines),e.lines=t)},redo:e=>{if(e.futureLines.length===0)return;const t=e.futureLines.shift();!t||(e.pastLines.push(e.lines),e.lines=t)},clearMask:e=>{e.pastLines.push(e.lines),e.lines=[],e.futureLines=[],e.shouldInvertMask=!1},toggleShouldInvertMask:e=>{e.shouldInvertMask=!e.shouldInvertMask},toggleShouldShowMask:e=>{e.shouldShowMask=!e.shouldShowMask},setShouldInvertMask:(e,t)=>{e.shouldInvertMask=t.payload},setShouldShowMask:(e,t)=>{e.shouldShowMask=t.payload,t.payload||(e.shouldInvertMask=!1)},setShouldShowCheckboardTransparency:(e,t)=>{e.shouldShowCheckboardTransparency=t.payload},setShouldShowBrushPreview:(e,t)=>{e.shouldShowBrushPreview=t.payload},setShouldShowBrush:(e,t)=>{e.shouldShowBrush=t.payload},setMaskColor:(e,t)=>{e.maskColor=t.payload},setCursorPosition:(e,t)=>{e.cursorPosition=t.payload},setImageToInpaint:(e,t)=>{const{width:n,height:r}=t.payload,{width:i,height:o}=e.boundingBoxDimensions,{x:a,y:s}=e.boundingBoxCoordinate,l=qi(wn.clamp(i,64,n),64),d=qi(wn.clamp(o,64,r),64),p=qi(wn.clamp(a,0,n-l),64),g=qi(wn.clamp(s,0,r-d),64);e.boundingBoxDimensions={width:l,height:d},e.boundingBoxCoordinate={x:p,y:g},e.canvasDimensions={width:n,height:r},e.imageToInpaint=t.payload,e.needsRepaint=!0},setCanvasDimensions:(e,t)=>{e.canvasDimensions=t.payload;const{width:n,height:r}=t.payload,{wid
`),n=+this.fontSize(),r=0,i=this.lineHeight()*n,o=this.attrs.width,a=this.attrs.height,s=o!==vp&&o!==void 0,l=a!==vp&&a!==void 0,d=this.padding(),p=o-d*2,g=a-d*2,m=0,y=this.wrap(),b=y!==RA,S=y!==xSe&&b,E=this.ellipsis();this.textArr=[],TS().font=this._getContextFont();for(var P=E?this._getTextWidth(PS):0,k=0,L=t.length;k<L;++k){var R=t[k],N=this._getTextWidth(R);if(s&&N>p)for(;R.length>0;){for(var F=0,z=R.length,B="",K=0;F<z;){var G=F+z>>>1,Y=R.slice(0,G+1),ye=this._getTextWidth(Y)+P;ye<=p?(F=G+1,B=Y,K=ye):z=G}if(B){if(S){var pe,he=R[B.length],me=he===cy||he===AA;me&&K<=p?pe=B.length:pe=Math.max(B.lastIndexOf(cy),B.lastIndexOf(AA))+1,pe>0&&(F=pe,B=B.slice(0,F),K=this._getTextWidth(B))}B=B.trimRight(),this._addTextLine(B),r=Math.max(r,K),m+=i;var we=this._shouldHandleEllipsis(m);if(we){this._tryToAddEllipsisToLastLine();break}if(R=R.slice(F),R=R.trimLeft(),R.length>0&&(N=this._getTextWidth(R),N<=p)){this._addTextLine(R),m+=i,r=Math.max(r,N);break}}else break}else this._addTextLine(R),m+=i,r=Math.max(r,N),this._shouldHandleEllipsis(m)&&k<L-1&&this._tryToAddEllipsisToLastLine();if(l&&m+i>g)break;this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0)}this.textHeight=n,this.textWidth=r}_shouldHandleEllipsis(t){var n=+this.fontSize(),r=this.lineHeight()*n,i=this.attrs.height,o=i!==vp&&i!==void 0,a=this.padding(),s=i-a*2,l=this.wrap(),d=l!==RA;return!d||o&&t+r>s}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,n=t!==vp&&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+PS)<i;s||(a.text=a.text.slice(0,a.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+PS)}}getStrokeScaleEnabled(){return!0}}mr.prototype._fillFunc=wSe;mr.prototype._strokeFunc=CSe;mr.prototype.className=hSe;mr.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];vr(mr);Z.overWriteSetter(mr,"width",K8());Z.overWriteSetter(mr,"height",K8());Z.addGetterSetter(mr,"fontFamily","Arial");Z.addGetterSetter(mr,"fontSize",12,He());Z.addGetterSetter(mr,"fontStyle",WB);Z.addGetterSetter(mr,"fontVariant",WB);Z.addGetterSetter(mr,"padding",0,He());Z.addGetterSetter(mr,"align",HB);Z.addGetterSetter(mr,"verticalAlign",pSe);Z.addGetterSetter(mr,"lineHeight",1,He());Z.addGetterSetter(mr,"wrap",ySe);Z.addGetterSetter(mr,"ellipsis",!1,Fs());Z.addGetterSetter(mr,"letterSpacing",0,He());Z.addGetterSetter(mr,"text","",U0());Z.addGetterSetter(mr,"textDecoration","");var kSe="",UB="normal";function GB(e){e.fillText(this.partialText,0,0)}function jB(e){e.strokeText(this.partialText,0,0)}class ii extends Ne{constructor(t){super(t),this.dummyCanvas=ue.createCanvasElement(),this.dataArray=[],this.dataArray=In.parsePathData(this.attrs.data),this.on("dataChange.konva",function(){this.dataArray=In.parsePathData(this.attrs.data),this._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_sceneFunc(t){t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",this.textBaseline()),t.setAttr("textAlign","left"),t.save();var n=this.textDecoration(),r=this.fill(),i=this.fontSize(),o=this.glyphInfo;n==="underline"&&t.beginPath();for(var a=0;a<o.length;a++){t.save();var s=o[a].p0;t.translate(s.x,s.y),t.rotate(o[a].rotation),this.partialText=o[a].text,t.fillStrokeShape(this),n==="underline"&&(a===0&&t.moveTo(0,i/2+1),t.lineTo(i,i/2+1)),t.restore()}n==="underline"&&(t.strokeStyle=r,t.lineWidth=i/20,t.stroke()),t.restore()}_hitFunc(t){t.beginPath();var n=this.glyphInfo;if(n.length>=1){var r=n[0].p0;t.moveTo(r.x,r.y)}for(var i=0;i<n.length;i++){var o=n[i].p1;t.lineTo(o.x,o.y)}t.setAttr("lineWidth",this.fontSize()),t.setAttr("strokeStyle",this.colorKey),t.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return ue.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height
========
}`;var Bt=Z7(function(){return Jt(H,ct+"return "+Ae).apply(n,q)});if(Bt.source=Ae,Ox(Bt))throw Bt;return Bt}function gG(u){return bn(u).toLowerCase()}function mG(u){return bn(u).toUpperCase()}function vG(u,h,x){if(u=bn(u),u&&(x||h===n))return no(u);if(!u||!(h=oo(h)))return u;var A=Wi(u),O=Wi(h),H=Xo(A,O),q=cs(A,O)+1;return vs(A,H,q).join("")}function yG(u,h,x){if(u=bn(u),u&&(x||h===n))return u.slice(0,Q0(u)+1);if(!u||!(h=oo(h)))return u;var A=Wi(u),O=cs(A,Wi(h))+1;return vs(A,0,O).join("")}function xG(u,h,x){if(u=bn(u),u&&(x||h===n))return u.replace(Bs,"");if(!u||!(h=oo(h)))return u;var A=Wi(u),O=Xo(A,Wi(h));return vs(A,O).join("")}function bG(u,h){var x=G,A=Y;if(dr(h)){var O="separator"in h?h.separator:O;x="length"in h?Nt(h.length):x,A="omission"in h?oo(h.omission):A}u=bn(u);var H=u.length;if(nu(u)){var q=Wi(u);H=q.length}if(x>=H)return u;var X=x-Na(A);if(X<1)return A;var ae=q?vs(q,0,X).join(""):u.slice(0,X);if(O===n)return ae+A;if(q&&(X+=ae.length-X),Nx(O)){if(u.slice(X).search(O)){var _e,Pe=ae;for(O.global||(O=nf(O.source,bn(oi.exec(O))+"g")),O.lastIndex=0;_e=O.exec(Pe);)var Ae=_e.index;ae=ae.slice(0,Ae===n?X:Ae)}}else if(u.indexOf(oo(O),X)!=X){var Xe=ae.lastIndexOf(O);Xe>-1&&(ae=ae.slice(0,Xe))}return ae+A}function SG(u){return u=bn(u),u&&Ad.test(u)?u.replace(Hr,Av):u}var wG=al(function(u,h,x){return u+(x?" ":"")+h.toUpperCase()}),zx=tp("toUpperCase");function q7(u,h,x){return u=bn(u),h=x?n:h,h===n?Ch(u)?tf(u):Z0(u):u.match(h)||[]}var Z7=wt(function(u,h){try{return Si(u,n,h)}catch(x){return Ox(x)?x:new Ct(x)}}),CG=Jn(function(u,h){return $n(h,function(x){x=sl(x),ta(u,x,Rx(u[x],u))}),u});function _G(u){var h=u==null?0:u.length,x=Le();return u=h?On(u,function(A){if(typeof A[1]!="function")throw new wi(a);return[x(A[0]),A[1]]}):[],wt(function(A){for(var O=-1;++O<h;){var H=u[O];if(Si(H[0],this,A))return Si(H[1],this,A)}})}function kG(u){return Mh(ci(u,g))}function $x(u){return function(){return u}}function EG(u,h){return u==null||u!==u?h:u}var PG=R1(),TG=R1(!0);function Oo(u){return u}function Bx(u){return cr(typeof u=="function"?u:ci(u,g))}function LG(u){return _c(ci(u,g))}function AG(u,h){return Js(u,ci(h,g))}var IG=wt(function(u,h){return function(x){return gs(x,u,h)}}),RG=wt(function(u,h){return function(x){return gs(u,x,h)}});function Hx(u,h,x){var A=pi(h),O=Fh(h,A);x==null&&!(dr(h)&&(O.length||!A.length))&&(x=h,h=u,u=this,O=Fh(h,pi(h)));var H=!(dr(x)&&"chain"in x)||!!x.chain,q=du(u);return $n(O,function(X){var ae=h[X];u[X]=ae,q&&(u.prototype[X]=function(){var _e=this.__chain__;if(H||_e){var Pe=u(this.__wrapped__),Ae=Pe.__actions__=Pi(this.__actions__);return Ae.push({func:ae,args:arguments,thisArg:u}),Pe.__chain__=_e,Pe}return ae.apply(u,Oa([this.value()],arguments))})}),u}function MG(){return Ke._===this&&(Ke._=e1),this}function Wx(){}function OG(u){return u=Nt(u),wt(function(h){return kc(h,u)})}var NG=M1(On),DG=M1(Mn),FG=M1(Ju);function Y7(u){return Ex(u)?js(sl(u)):ms(u)}function zG(u){return function(h){return u==null?n:Xs(u,h)}}var $G=v(),BG=v(!0);function Vx(){return[]}function Ux(){return!1}function HG(){return{}}function WG(){return""}function VG(){return!0}function UG(u,h){if(u=Nt(u),u<1||u>j)return[];var x=W,A=Jr(u,W);h=Le(h),u-=W;for(var O=Qd(A,h);++x<u;)h(x);return O}function GG(u){return It(u)?On(u,sl):aa(u)?[u]:Pi(m7(bn(u)))}function jG(u){var h=++rf;return bn(u)+h}var KG=np(function(u,h){return u+h},0),qG=M("ceil"),ZG=np(function(u,h){return u/h},1),YG=M("floor");function XG(u){return u&&u.length?Sr(u,Oo,zh):n}function QG(u,h){return u&&u.length?Sr(u,Le(h,2),zh):n}function JG(u){return Zd(u,Oo)}function ej(u,h){return Zd(u,Le(h,2))}function tj(u){return u&&u.length?Sr(u,Oo,Qs):n}function nj(u,h){return u&&u.length?Sr(u,Le(h,2),Qs):n}var rj=np(function(u,h){return u*h},1),ij=M("round"),oj=np(function(u,h){return u-h},0);function aj(u){return u&&u.length?Xd(u,Oo):0}function sj(u,h){return u&&u.length?Xd(u,Le(h,2)):0}return B.after=LV,B.ary=P7,B.assign=mU,B.assignIn=H7,B.assignInWith=l2,B.assignWith=vU,B.at=yU,B.before=T7,B.bind=Rx,B.bindAll=CG,B.bindKey=L7,B.castArray=HV,B.chain=_7,B.chunk=YH,B.compact
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Vye(e){if(Array.isArray(e))return j6(e)}function EL(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 PL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EL(Object(n),!0).forEach(function(r){d$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function d$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bm(e,t){return jye(e)||Gye(e,t)||f$(e,t)||Uye()}function Uye(){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 f$(e,t){if(!!e){if(typeof e=="string")return j6(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 j6(e,t)}}function j6(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 Gye(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 jye(e){if(Array.isArray(e))return e}var Kye="file-invalid-type",qye="file-too-large",Zye="file-too-small",Yye="too-many-files",Xye=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:Kye,message:"File type must be ".concat(n)}},TL=function(t){return{code:qye,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},LL=function(t){return{code:Zye,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},Qye={code:Yye,message:"Too many files"};function h$(e,t){var n=e.type==="application/x-moz-file"||Bye(e,t);return[n,n?null:Xye(t)]}function p$(e,t,n){if(Ff(e.size))if(Ff(t)&&Ff(n)){if(e.size>n)return[!1,TL(n)];if(e.size<t)return[!1,LL(t)]}else{if(Ff(t)&&e.size<t)return[!1,LL(t)];if(Ff(n)&&e.size>n)return[!1,TL(n)]}return[!0,null]}function Ff(e){return e!=null}function Jye(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,o=e.multiple,a=e.maxFiles,s=e.validator;return!o&&t.length>1||o&&a>=1&&t.length>a?!1:t.every(function(l){var d=h$(l,n),p=Bm(d,1),g=p[0],m=p$(l,r,i),y=Bm(m,1),b=y[0],S=s?s(l):null;return g&&b&&!S})}function m5(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Z2(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 AL(e){e.preventDefault()}function e3e(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function t3e(e){return e.indexOf("Edge/")!==-1}function n3e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return e3e(e)||t3e(e)}function fl(){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!m5(r)&&s&&s.apply(void 0,[r].concat(o)),m5(r)})}}function r3e(){return"showOpenFilePicker"in window}function i3e(e){if(Ff(e)){var t=Object.entries(e).filter(function(n){var r=Bm(n,2),i=r[0],o=r[1],a=!0;return g$(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(m$))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,r){var i=Bm(r,2),o=i[0],a=i[1];return PL(PL({},n),{},d$({},o,a))},{});return[{accept:t}]}return e}function o3e(e){if(Ff(e))return Object.entries(e).reduce(function(t,n){var r=Bm(n,2),i=r[0],o=r[1];return[].concat(kL(t),[i],kL(o))},[]).filter(function(t){return g$(t)||m$(t)}).join(",")}function a3e(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function s3e(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function g$(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function m$(e){return/^.*\.[\w]+$/.test(e)}var l3e=["children"],u3e=["open"],c3e=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLe
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p3e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function g3e(e){if(Array.isArray(e))return K6(e)}function dS(e,t){return y3e(e)||v3e(e,t)||v$(e,t)||m3e()}function m3e(){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 v$(e,t){if(!!e){if(typeof e=="string")return K6(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 K6(e,t)}}function K6(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 v3e(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 y3e(e){if(Array.isArray(e))return e}function IL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IL(Object(n),!0).forEach(function(r){q6(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function q6(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v5(e,t){if(e==null)return{};var n=x3e(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 x3e(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 z8=C.exports.forwardRef(function(e,t){var n=e.children,r=v5(e,l3e),i=x$(r),o=i.open,a=v5(i,u3e);return C.exports.useImperativeHandle(t,function(){return{open:o}},[o]),_(C.exports.Fragment,{children:n(fr(fr({},a),{},{open:o}))})});z8.displayName="Dropzone";var y$={disabled:!1,getFilesFromEvent:Iye,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};z8.defaultProps=y$;z8.propTypes={children:An.exports.func,accept:An.exports.objectOf(An.exports.arrayOf(An.exports.string)),multiple:An.exports.bool,preventDropOnDocument:An.exports.bool,noClick:An.exports.bool,noKeyboard:An.exports.bool,noDrag:An.exports.bool,noDragEventsBubbling:An.exports.bool,minSize:An.exports.number,maxSize:An.exports.number,maxFiles:An.exports.number,disabled:An.exports.bool,getFilesFromEvent:An.exports.func,onFileDialogCancel:An.exports.func,onFileDialogOpen:An.exports.func,useFsAccessApi:An.exports.bool,autoFocus:An.exports.bool,onDragEnter:An.exports.func,onDragLeave:An.exports.func,onDragOver:An.exports.func,onDrop:An.exports.func,onDropAccepted:An.exports.func,onDropRejected:An.exports.func,onError:An.exports.func,validator:An.exports.func};var Z6={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function x$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=fr(fr({},y$),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,d=t.onDragEnter,p=t.onDragLeave,g=t.onDragOver,m=t.onDrop,y=t.onDropAccepted,b=t.onDropRejected,S=t.onFileDialogCancel,P=t.onFileDialogOpen,E=t.useFsAccessApi,k=t.autoFocus,L=t.preventDropOnDocument,R=t.noClick,N=t.noKeyboard,F=t.noDrag,z=t.noDragEventsBubbling,$=t.onError,K=t.validator,G=C.exports.useMemo(function(){return o3e(n)},[n]),Y=C.exports.useMemo(function(){return i3e(n)},[n]),ve=C.exports.useMemo(function(){return typeof P=="function"?P:RL},[P]),pe=C.exports.useMemo(function(){return typeof S=="function"?S:RL},[S]),le=C.exports.useRef(null),we=C.exports.useRef(null),be=C.ex
`+b.message,"");s({title:"Upload failed",description:m,status:"error",isClosable:!0})},[s]);return _(S3e,{fileAcceptedCallback:d,fileRejectionCallback:p,styleClass:i,children:_(Ol,{size:"sm",fontSize:"md",fontWeight:"normal",onMouseOver:o,onMouseOut:a,leftIcon:n,width:"100%",children:t||null})})}const C3e=Rn(e=>e.system,e=>e.shouldConfirmOnDelete),Y6=C.exports.forwardRef(({image:e,children:t},n)=>{const{isOpen:r,onOpen:i,onClose:o}=Q3(),a=St(),s=qe(C3e),l=C.exports.useRef(null),d=_d(),p=y=>{y.stopPropagation(),s?i():g()},g=()=>{a(X2e(e)),d({title:"Image Deleted",status:"success",duration:2500,isClosable:!0}),o()};Kt("del",()=>{s?i():g()},[e,s]);const m=y=>a(Xz(!y.target.checked));return ue(Xn,{children:[C.exports.cloneElement(t,{onClick:p,ref:n}),_(eue,{isOpen:r,leastDestructiveRef:l,onClose:o,children:_(Mm,{children:ue(tue,{children:[_(X_,{fontSize:"lg",fontWeight:"bold",children:"Delete image"}),_(n5,{children:ue(Wn,{direction:"column",gap:5,children:[_(zo,{children:"Are you sure? You can't undo this action afterwards."}),_(Bu,{children:ue(Wn,{alignItems:"center",children:[_(Sd,{mb:0,children:"Don't ask me again"}),_($4,{checked:!s,onChange:m})]})})]})}),ue(Y_,{children:[_(Ol,{ref:l,onClick:o,children:"Cancel"}),_(Ol,{colorScheme:"red",onClick:g,ml:3,children:"Delete"})]})]})})})]})}),ML=({title:e="Popup",styleClass:t,delay:n=50,popoverOptions:r,actionButton:i,children:o})=>ue(R4,{trigger:"hover",closeDelay:n,children:[_(N4,{children:_(Ns,{children:o})}),ue(O4,{className:`popover-content ${t}`,children:[_(M4,{className:"popover-arrow"}),_(EF,{className:"popover-header",children:e}),ue("div",{className:"popover-options",children:[r||null,i]})]})]}),qi=(e,t)=>Math.floor(e/t)*t,OL=(e,t)=>Math.round(e/t)*t,_3e={tool:"brush",brushSize:50,maskColor:{r:255,g:90,b:90,a:.5},canvasDimensions:{width:0,height:0},boundingBoxDimensions:{width:64,height:64},boundingBoxCoordinate:{x:0,y:0},boundingBoxPreviewFill:{r:0,g:0,b:0,a:.7},shouldShowBoundingBox:!1,shouldShowBoundingBoxFill:!1,isBoundingBoxTransforming:!1,cursorPosition:null,lines:[],pastLines:[],futureLines:[],shouldShowMask:!0,shouldInvertMask:!1,shouldShowCheckboardTransparency:!1,shouldShowBrush:!0,shouldShowBrushPreview:!1,isMovingBoundingBox:!1,needsRepaint:!1,isDrawing:!1,stageScale:1,shouldUseInpaintReplace:!1,inpaintReplace:1},k3e=_3e,b$=W4({name:"inpainting",initialState:k3e,reducers:{setTool:(e,t)=>{e.tool=t.payload},toggleTool:e=>{e.tool=e.tool==="brush"?"eraser":"brush"},setBrushSize:(e,t)=>{e.brushSize=t.payload},addLine:(e,t)=>{e.pastLines.push(e.lines),e.lines.push(t.payload),e.futureLines=[]},addPointToCurrentLine:(e,t)=>{e.lines[e.lines.length-1].points.push(...t.payload)},undo:e=>{if(e.pastLines.length===0)return;const t=e.pastLines.pop();!t||(e.futureLines.unshift(e.lines),e.lines=t)},redo:e=>{if(e.futureLines.length===0)return;const t=e.futureLines.shift();!t||(e.pastLines.push(e.lines),e.lines=t)},clearMask:e=>{e.pastLines.push(e.lines),e.lines=[],e.futureLines=[],e.shouldInvertMask=!1},toggleShouldInvertMask:e=>{e.shouldInvertMask=!e.shouldInvertMask},toggleShouldShowMask:e=>{e.shouldShowMask=!e.shouldShowMask},setShouldInvertMask:(e,t)=>{e.shouldInvertMask=t.payload},setShouldShowMask:(e,t)=>{e.shouldShowMask=t.payload,t.payload||(e.shouldInvertMask=!1)},setShouldShowCheckboardTransparency:(e,t)=>{e.shouldShowCheckboardTransparency=t.payload},setShouldShowBrushPreview:(e,t)=>{e.shouldShowBrushPreview=t.payload},setShouldShowBrush:(e,t)=>{e.shouldShowBrush=t.payload},setMaskColor:(e,t)=>{e.maskColor=t.payload},setCursorPosition:(e,t)=>{e.cursorPosition=t.payload},setImageToInpaint:(e,t)=>{const{width:n,height:r}=t.payload,{width:i,height:o}=e.boundingBoxDimensions,{x:a,y:s}=e.boundingBoxCoordinate,l=qi(wn.clamp(i,64,n),64),d=qi(wn.clamp(o,64,r),64),p=qi(wn.clamp(a,0,n-l),64),g=qi(wn.clamp(s,0,r-d),64);e.boundingBoxDimensions={width:l,height:d},e.boundingBoxCoordinate={x:p,y:g},e.canvasDimensions={width:n,height:r},e.imageToInpaint=t.payload,e.needsRepaint=!0},setCanvasDimensions:(e,t)=>{e.canvasDimensions=t.payload;const{width:n,height:r}=t.payload,{widt
`),n=+this.fontSize(),r=0,i=this.lineHeight()*n,o=this.attrs.width,a=this.attrs.height,s=o!==vp&&o!==void 0,l=a!==vp&&a!==void 0,d=this.padding(),p=o-d*2,g=a-d*2,m=0,y=this.wrap(),b=y!==RA,S=y!==ySe&&b,P=this.ellipsis();this.textArr=[],PS().font=this._getContextFont();for(var E=P?this._getTextWidth(ES):0,k=0,L=t.length;k<L;++k){var R=t[k],N=this._getTextWidth(R);if(s&&N>p)for(;R.length>0;){for(var F=0,z=R.length,$="",K=0;F<z;){var G=F+z>>>1,Y=R.slice(0,G+1),ve=this._getTextWidth(Y)+E;ve<=p?(F=G+1,$=Y,K=ve):z=G}if($){if(S){var pe,le=R[$.length],we=le===cy||le===AA;we&&K<=p?pe=$.length:pe=Math.max($.lastIndexOf(cy),$.lastIndexOf(AA))+1,pe>0&&(F=pe,$=$.slice(0,F),K=this._getTextWidth($))}$=$.trimRight(),this._addTextLine($),r=Math.max(r,K),m+=i;var be=this._shouldHandleEllipsis(m);if(be){this._tryToAddEllipsisToLastLine();break}if(R=R.slice(F),R=R.trimLeft(),R.length>0&&(N=this._getTextWidth(R),N<=p)){this._addTextLine(R),m+=i,r=Math.max(r,N);break}}else break}else this._addTextLine(R),m+=i,r=Math.max(r,N),this._shouldHandleEllipsis(m)&&k<L-1&&this._tryToAddEllipsisToLastLine();if(l&&m+i>g)break;this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0)}this.textHeight=n,this.textWidth=r}_shouldHandleEllipsis(t){var n=+this.fontSize(),r=this.lineHeight()*n,i=this.attrs.height,o=i!==vp&&i!==void 0,a=this.padding(),s=i-a*2,l=this.wrap(),d=l!==RA;return!d||o&&t+r>s}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,n=t!==vp&&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+ES)<i;s||(a.text=a.text.slice(0,a.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+ES)}}getStrokeScaleEnabled(){return!0}}mr.prototype._fillFunc=SSe;mr.prototype._strokeFunc=wSe;mr.prototype.className=fSe;mr.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];vr(mr);Z.overWriteSetter(mr,"width",K8());Z.overWriteSetter(mr,"height",K8());Z.addGetterSetter(mr,"fontFamily","Arial");Z.addGetterSetter(mr,"fontSize",12,He());Z.addGetterSetter(mr,"fontStyle",HB);Z.addGetterSetter(mr,"fontVariant",HB);Z.addGetterSetter(mr,"padding",0,He());Z.addGetterSetter(mr,"align",BB);Z.addGetterSetter(mr,"verticalAlign",hSe);Z.addGetterSetter(mr,"lineHeight",1,He());Z.addGetterSetter(mr,"wrap",vSe);Z.addGetterSetter(mr,"ellipsis",!1,Fs());Z.addGetterSetter(mr,"letterSpacing",0,He());Z.addGetterSetter(mr,"text","",U0());Z.addGetterSetter(mr,"textDecoration","");var _Se="",VB="normal";function UB(e){e.fillText(this.partialText,0,0)}function GB(e){e.strokeText(this.partialText,0,0)}class ii extends Ne{constructor(t){super(t),this.dummyCanvas=ce.createCanvasElement(),this.dataArray=[],this.dataArray=In.parsePathData(this.attrs.data),this.on("dataChange.konva",function(){this.dataArray=In.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 ce.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height
>>>>>>>> 03a3869c (Change default of inpaintReplace to 1):frontend/dist/assets/index.18fcde62.js
* @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 dwe=function(t){var n={},r=C.exports,i=$p.exports,o=Object.assign;function a(c){for(var f="https://reactjs.org/docs/error-decoder.html?invariant="+c,v=1;v<arguments.length;v++)f+="&args[]="+encodeURIComponent(arguments[v]);return"Minified React error #"+c+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,l=Symbol.for("react.element"),d=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),y=Symbol.for("react.provider"),b=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),N=Symbol.iterator;function F(c){return c===null||typeof c!="object"?null:(c=N&&c[N]||c["@@iterator"],typeof c=="function"?c:null)}function z(c){if(c==null)return null;if(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case p:return"Fragment";case d:return"Portal";case m:return"Profiler";case g:return"StrictMode";case E:return"Suspense";case P:return"SuspenseList"}if(typeof c=="object")switch(c.$$typeof){case b:return(c.displayName||"Context")+".Consumer";case y:return(c._context.displayName||"Context")+".Provider";case S:var f=c.render;return c=c.displayName,c||(c=f.displayName||f.name||"",c=c!==""?"ForwardRef("+c+")":"ForwardRef"),c;case k:return f=c.displayName||null,f!==null?f:z(c.type)||"Memo";case L:f=c._payload,c=c._init;try{return z(c(f))}catch{}}return null}function B(c){var f=c.type;switch(c.tag){case 24:return"Cache";case 9:return(f.displayName||"Context")+".Consumer";case 10:return(f._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return c=f.render,c=c.displayName||c.name||"",f.displayName||(c!==""?"ForwardRef("+c+")":"ForwardRef");case 7:return"Fragment";case 5:return f;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return z(f);case 8:return f===g?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f}return null}function K(c){var f=c,v=c;if(c.alternate)for(;f.return;)f=f.return;else{c=f;do f=c,(f.flags&4098)!==0&&(v=f.return),c=f.return;while(c)}return f.tag===3?v:null}function G(c){if(K(c)!==c)throw Error(a(188))}function Y(c){var f=c.alternate;if(!f){if(f=K(c),f===null)throw Error(a(188));return f!==c?null:c}for(var v=c,w=f;;){var T=v.return;if(T===null)break;var M=T.alternate;if(M===null){if(w=T.return,w!==null){v=w;continue}break}if(T.child===M.child){for(M=T.child;M;){if(M===v)return G(T),c;if(M===w)return G(T),f;M=M.sibling}throw Error(a(188))}if(v.return!==w.return)v=T,w=M;else{for(var V=!1,te=T.child;te;){if(te===v){V=!0,v=T,w=M;break}if(te===w){V=!0,w=T,v=M;break}te=te.sibling}if(!V){for(te=M.child;te;){if(te===v){V=!0,v=M,w=T;break}if(te===w){V=!0,w=M,v=T;break}te=te.sibling}if(!V)throw Error(a(189))}}if(v.alternate!==w)throw Error(a(190))}if(v.tag!==3)throw Error(a(188));return v.stateNode.current===v?c:f}function ye(c){return c=Y(c),c!==null?pe(c):null}function pe(c){if(c.tag===5||c.tag===6)return c;for(c=c.child;c!==null;){var f=pe(c);if(f!==null)return f;c=c.sibling}return null}function he(c){if(c.tag===5||c.tag===6)return c;for(c=c.child;c!==null;){if(c.tag!==4){var f=he(c);if(f!==null)return f}c=c.sibling}return null}var me=Array.isArray,we=t.getPublicInstance,re=t.getRootHostContext,j=t.getChildHostContext,ne=t.prepareForCommit,Q=t.resetAfterCommit,W=t.createInstance,ie=t.appendInitialChild,ce=t.finalizeInitialChildren,Se=t.prepareUpdate,De=t.shouldSetTextContent,Me=t.createTextInstance,Ve=t.scheduleTimeout,ke=t.cancelTimeout,$e=t.noTimeout,nt=t.isPrimaryRenderer,ft=t.supportsMutation,Rt=t.supp
`+Ko+c}var Qi=!1;function Ea(c,f){if(!c||Qi)return"";Qi=!0;var v=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(f)if(f=function(){throw Error()},Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(ze){var w=ze}Reflect.construct(c,[],f)}else{try{f.call()}catch(ze){w=ze}c.call(f.prototype)}else{try{throw Error()}catch(ze){w=ze}c()}}catch(ze){if(ze&&w&&typeof ze.stack=="string"){for(var T=ze.stack.split(`
`),M=w.stack.split(`
`),V=T.length-1,te=M.length-1;1<=V&&0<=te&&T[V]!==M[te];)te--;for(;1<=V&&0<=te;V--,te--)if(T[V]!==M[te]){if(V!==1||te!==1)do if(V--,te--,0>te||T[V]!==M[te]){var de=`
`+T[V].replace(" at new "," at ");return c.displayName&&de.includes("<anonymous>")&&(de=de.replace("<anonymous>",c.displayName)),de}while(1<=V&&0<=te);break}}}finally{Qi=!1,Error.prepareStackTrace=v}return(c=c?c.displayName||c.name:"")?as(c):""}var Yu=Object.prototype.hasOwnProperty,Ws=[],Pa=-1;function Bi(c){return{current:c}}function pn(c){0>Pa||(c.current=Ws[Pa],Ws[Pa]=null,Pa--)}function un(c,f){Pa++,Ws[Pa]=c.current,c.current=f}var Ji={},ar=Bi(Ji),Tr=Bi(!1),eo=Ji;function Ta(c,f){var v=c.type.contextTypes;if(!v)return Ji;var w=c.stateNode;if(w&&w.__reactInternalMemoizedUnmaskedChildContext===f)return w.__reactInternalMemoizedMaskedChildContext;var T={},M;for(M in v)T[M]=f[M];return w&&(c=c.stateNode,c.__reactInternalMemoizedUnmaskedChildContext=f,c.__reactInternalMemoizedMaskedChildContext=T),T}function Lr(c){return c=c.childContextTypes,c!=null}function qo(){pn(Tr),pn(ar)}function Ul(c,f,v){if(ar.current!==Ji)throw Error(a(168));un(ar,f),un(Tr,v)}function _o(c,f,v){var w=c.stateNode;if(f=f.childContextTypes,typeof w.getChildContext!="function")return v;w=w.getChildContext();for(var T in w)if(!(T in f))throw Error(a(108,B(c)||"Unknown",T));return o({},v,w)}function to(c){return c=(c=c.stateNode)&&c.__reactInternalMemoizedMergedChildContext||Ji,eo=ar.current,un(ar,c),un(Tr,Tr.current),!0}function Gl(c,f,v){var w=c.stateNode;if(!w)throw Error(a(169));v?(c=_o(c,f,eo),w.__reactInternalMemoizedMergedChildContext=c,pn(Tr),pn(ar),un(ar,c)):pn(Tr),un(Tr,v)}var Xr=Math.clz32?Math.clz32:Kl,jl=Math.log,Xu=Math.LN2;function Kl(c){return c>>>=0,c===0?32:31-(jl(c)/Xu|0)|0}var La=64,xi=4194304;function Aa(c){switch(c&-c){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return c&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return c&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return c}}function ss(c,f){var v=c.pendingLanes;if(v===0)return 0;var w=0,T=c.suspendedLanes,M=c.pingedLanes,V=v&268435455;if(V!==0){var te=V&~T;te!==0?w=Aa(te):(M&=V,M!==0&&(w=Aa(M)))}else V=v&~T,V!==0?w=Aa(V):M!==0&&(w=Aa(M));if(w===0)return 0;if(f!==0&&f!==w&&(f&T)===0&&(T=w&-w,M=f&-f,T>=M||T===16&&(M&4194240)!==0))return f;if((w&4)!==0&&(w|=v&16),f=c.entangledLanes,f!==0)for(c=c.entanglements,f&=w;0<f;)v=31-Xr(f),T=1<<v,w|=c[v],f&=~T;return w}function Gd(c,f){switch(c){case 1:case 2:case 4:return f+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return f+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ia(c,f){for(var v=c.suspendedLanes,w=c.pingedLanes,T=c.expirationTimes,M=c.pendingLanes;0<M;){var V=31-Xr(M),te=1<<V,de=T[V];de===-1?((te&v)===0||(te&w)!==0)&&(T[V]=Gd(te,f)):de<=f&&(c.expiredLanes|=te),M&=~te}}function Vs(c){return c=c.pendingLanes&-1073741825,c!==0?c:c&1073741824?1073741824:0}function ql(){var c=La;return La<<=1,(La&4194240)===0&&(La=64),c}function Us(c){for(var f=[],v=0;31>v;v++)f.push(c);return f}function bi(c,f,v){c.pendingLanes|=f,f!==536870912&&(c.suspendedLanes=0,c.pingedLanes=0),c=c.eventTimes,f=31-Xr(f),c[f]=v}function ls(c,f){var v=c.pendingLanes&~f;c.pendingLanes=f,c.suspendedLanes=0,c.pingedLanes=0,c.expiredLanes&=f,c.mutableReadLanes&=f,c.entangledLanes&=f,f=c.entanglements;var w=c.eventTimes;for(c=c.expirationTimes;0<v;){var T=31-Xr(v),M=1<<T;f[T]=0,w[T]=-1,c[T]=-1,v&=~M}}function Zo(c,f){var v=c.entangledLanes|=f;for(c=c.entanglements;v;){var w=31-Xr(v),T=1<<w;T&f|c[w]&f&&(c[w]|=f),v&=~T}}var Lt=0;function Qu(c){return c&=-c,1<c?4<c?(c&268435455)!==0?16:536870912:4:1}var us=i.unstable_scheduleCallback,Ra
Error generating stack: `+M.message+`
`+M.stack}return{value:c,source:f,stack:T,digest:null}}function l1(c,f,v){return{value:c,source:null,stack:v??null,digest:f??null}}function vc(c,f){try{console.error(f.value)}catch(v){setTimeout(function(){throw v})}}var cf=typeof WeakMap=="function"?WeakMap:Map;function u1(c,f,v){v=ds(-1,v),v.tag=3,v.payload={element:null};var w=f.value;return v.callback=function(){pf||(pf=!0,gf=w),vc(c,f)},v}function $(c,f,v){v=ds(-1,v),v.tag=3;var w=c.type.getDerivedStateFromError;if(typeof w=="function"){var T=f.value;v.payload=function(){return w(T)},v.callback=function(){vc(c,f)}}var M=c.stateNode;return M!==null&&typeof M.componentDidCatch=="function"&&(v.callback=function(){vc(c,f),typeof w!="function"&&(tl===null?tl=new Set([this]):tl.add(this));var V=f.stack;this.componentDidCatch(f.value,{componentStack:V!==null?V:""})}),v}function ou(c,f,v){var w=c.pingCache;if(w===null){w=c.pingCache=new cf;var T=new Set;w.set(f,T)}else T=w.get(f),T===void 0&&(T=new Set,w.set(f,T));T.has(v)||(T.add(v),c=Xv.bind(null,c,f,v),f.then(c,c))}function df(c){do{var f;if((f=c.tag===13)&&(f=c.memoizedState,f=f!==null?f.dehydrated!==null:!0),f)return c;c=c.return}while(c!==null);return null}function ro(c,f,v,w,T){return(c.mode&1)===0?(c===f?c.flags|=65536:(c.flags|=128,v.flags|=131072,v.flags&=-52805,v.tag===1&&(v.alternate===null?v.tag=17:(f=ds(-1,1),f.tag=2,Ks(v,f,1))),v.lanes|=1),c):(c.flags|=65536,c.lanes=T,c)}var Vt=s.ReactCurrentOwner,Vi=!1;function _i(c,f,v,w){f.child=c===null?Iv(f,null,v,w):ic(f,c.child,v,w)}function $v(c,f,v,w,T){v=v.render;var M=f.ref;return nc(f,T),w=t1(c,f,v,w,M,T),v=sc(),c!==null&&!Vi?(f.updateQueue=c.updateQueue,f.flags&=-2053,c.lanes&=~T,hs(c,f,T)):(Mn&&v&&Si(f),f.flags|=1,_i(c,f,w,T),f.child)}function Zs(c,f,v,w,T){if(c===null){var M=v.type;return typeof M=="function"&&!A1(M)&&M.defaultProps===void 0&&v.compare===null&&v.defaultProps===void 0?(f.tag=15,f.type=M,Bv(c,f,M,w,T)):(c=xf(v.type,null,w,f,f.mode,T),c.ref=f.ref,c.return=f,f.child=c)}if(M=c.child,(c.lanes&T)===0){var V=M.memoizedProps;if(v=v.compare,v=v!==null?v:tu,v(V,w)&&c.ref===f.ref)return hs(c,f,T)}return f.flags|=1,c=ao(M,w),c.ref=f.ref,c.return=f,f.child=c}function Bv(c,f,v,w,T){if(c!==null){var M=c.memoizedProps;if(tu(M,w)&&c.ref===f.ref)if(Vi=!1,f.pendingProps=w=M,(c.lanes&T)!==0)(c.flags&131072)!==0&&(Vi=!0);else return f.lanes=c.lanes,hs(c,f,T)}return c1(c,f,v,w,T)}function Hv(c,f,v){var w=f.pendingProps,T=w.children,M=c!==null?c.memoizedState:null;if(w.mode==="hidden")if((f.mode&1)===0)f.memoizedState={baseLanes:0,cachePool:null,transitions:null},un(Qs,io),io|=v;else{if((v&1073741824)===0)return c=M!==null?M.baseLanes|v:v,f.lanes=f.childLanes=1073741824,f.memoizedState={baseLanes:c,cachePool:null,transitions:null},f.updateQueue=null,un(Qs,io),io|=c,null;f.memoizedState={baseLanes:0,cachePool:null,transitions:null},w=M!==null?M.baseLanes:v,un(Qs,io),io|=w}else M!==null?(w=M.baseLanes|v,f.memoizedState=null):w=v,un(Qs,io),io|=w;return _i(c,f,T,v),f.child}function Wv(c,f){var v=f.ref;(c===null&&v!==null||c!==null&&c.ref!==v)&&(f.flags|=512,f.flags|=2097152)}function c1(c,f,v,w,T){var M=Lr(v)?eo:ar.current;return M=Ta(f,M),nc(f,T),v=t1(c,f,v,w,M,T),w=sc(),c!==null&&!Vi?(f.updateQueue=c.updateQueue,f.flags&=-2053,c.lanes&=~T,hs(c,f,T)):(Mn&&w&&Si(f),f.flags|=1,_i(c,f,v,T),f.child)}function Vv(c,f,v,w,T){if(Lr(v)){var M=!0;to(f)}else M=!1;if(nc(f,T),f.stateNode===null)Fa(c,f),Tv(f,v,w),X0(f,v,w,T),w=!0;else if(c===null){var V=f.stateNode,te=f.memoizedProps;V.props=te;var de=V.context,ze=v.contextType;typeof ze=="object"&&ze!==null?ze=no(ze):(ze=Lr(v)?eo:ar.current,ze=Ta(f,ze));var it=v.getDerivedStateFromProps,Et=typeof it=="function"||typeof V.getSnapshotBeforeUpdate=="function";Et||typeof V.UNSAFE_componentWillReceiveProps!="function"&&typeof V.componentWillReceiveProps!="function"||(te!==w||de!==ze)&&Lv(f,V,w,ze),cs=!1;var Je=f.memoizedState;V.state=Je,Ch(f,w,V,T),de=f.memoizedState,te!==w||Je!==de||Tr.current||cs?(typeof it=="function"&&(kh(f,v,it,w),de=f.memoizedState),(te=cs||ef(f,v,te,w,Je,de,ze))?(Et||typeof V.UNSAFE_componentWillMount!="function"&
`+(w.join(" > ")+`
No matching component was found for:
`)+c.join(" > ")}return null},n.getPublicRootInstance=function(c){if(c=c.current,!c.child)return null;switch(c.child.tag){case 5:return we(c.child.stateNode);default:return c.child.stateNode}},n.injectIntoDevTools=function(c){if(c={bundleType:c.bundleType,version:c.version,rendererPackageName:c.rendererPackageName,rendererConfig:c.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:np,findFiberByHostInstance:c.findFiberByHostInstance||M1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")c=!1;else{var f=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(f.isDisabled||!f.supportsFiber)c=!0;else{try{nn=f.inject(c),Ot=f}catch{}c=!!f.checkDCE}}return c},n.isAlreadyRendering=function(){return!1},n.observeVisibleRects=function(c,f,v,w){if(!mt)throw Error(a(363));c=S1(c,f);var T=Wt(c,v,w).disconnect;return{disconnect:function(){T()}}},n.registerMutableSourceForHydration=function(c,f){var v=f._getVersion;v=v(f._source),c.mutableSourceEagerHydrationData==null?c.mutableSourceEagerHydrationData=[f,v]:c.mutableSourceEagerHydrationData.push(f,v)},n.runWithPriority=function(c,f){var v=Lt;try{return Lt=c,f()}finally{Lt=v}},n.shouldError=function(){return null},n.shouldSuspend=function(){return!1},n.updateContainer=function(c,f,v,w){var T=f.current,M=fi(),V=Nr(T);return v=I1(v),f.context===null?f.context=v:f.pendingContext=v,f=ds(M,V),f.payload={element:c},w=w===void 0?null:w,w!==null&&(f.callback=w),c=Ks(T,f,V),c!==null&&(Ao(c,T,V,M),wh(c,T,V)),V},n};(function(e){e.exports=dwe})(ZB);const fwe=DC(ZB.exports);var Q8={exports:{}},xh={};/**
* @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.
*/xh.ConcurrentRoot=1;xh.ContinuousEventPriority=4;xh.DefaultEventPriority=16;xh.DiscreteEventPriority=1;xh.IdleEventPriority=536870912;xh.LegacyRoot=0;(function(e){e.exports=xh})(Q8);const DA={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let FA=!1,zA=!1;const J8=".react-konva-event",hwe=`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
`,pwe=`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
`,gwe={};function hx(e,t,n=gwe){if(!FA&&"zIndex"in t&&(console.warn(pwe),FA=!0),!zA&&t.draggable){var r=t.x!==void 0||t.y!==void 0,i=t.onDragEnd||t.onDragMove;r&&!i&&(console.warn(hwe),zA=!0)}for(var o in n)if(!DA[o]){var a=o.slice(0,2)==="on",s=n[o]!==t[o];if(a&&s){var l=o.substr(2).toLowerCase();l.substr(0,7)==="content"&&(l="content"+l.substr(7,1).toUpperCase()+l.substr(8)),e.off(l,n[o])}var d=!t.hasOwnProperty(o);d&&e.setAttr(o,void 0)}var p=t._useStrictMode,g={},m=!1;const y={};for(var o in t)if(!DA[o]){var a=o.slice(0,2)==="on",b=n[o]!==t[o];if(a&&b){var l=o.substr(2).toLowerCase();l.substr(0,7)==="content"&&(l="content"+l.substr(7,1).toUpperCase()+l.substr(8)),t[o]&&(y[l]=t[o])}!a&&(t[o]!==n[o]||p&&t[o]!==e.getAttr(o))&&(m=!0,g[o]=t[o])}m&&(e.setAttrs(g),Ld(e));for(var l in y)e.on(l+J8,y[l])}function Ld(e){if(!st.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const YB={},mwe={};rh.Node.prototype._applyProps=hx;function vwe(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),Ld(e)}function ywe(e,t,n){let r=rh[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=rh.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 hx(l,o),l}function xwe(e,t,n){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function bwe(e,t,n){return!1}function Swe(e){return e}function wwe(){return null}function Cwe(){return null}function _we(e,t,n,r){return mwe}function kwe(){}function Ewe(e){}function Pwe(e,t){return!1}function Twe(){return YB}function Lwe(){return YB}const Awe=setTimeout,Iwe=clearTimeout,Rwe=-1;function Mwe(e,t){return!1}const Owe=!1,Nwe=!0,Dwe=!0;function Fwe(e,t){t.parent===e?t.moveToTop():e.add(t),Ld(e)}function zwe(e,t){t.parent===e?t.moveToTop():e.add(t),Ld(e)}function XB(e,t,n){t._remove(),e.add(t),t.setZIndex(n.getZIndex()),Ld(e)}function $we(e,t,n){XB(e,t,n)}function Bwe(e,t){t.destroy(),t.off(J8),Ld(e)}function Hwe(e,t){t.destroy(),t.off(J8),Ld(e)}function Wwe(e,t,n){console.error(`Text components are not yet supported in ReactKonva. You text is: "${n}"`)}function Vwe(e,t,n){}function Uwe(e,t,n,r,i){hx(e,i,r)}function Gwe(e){e.hide(),Ld(e)}function jwe(e){}function Kwe(e,t){(t.visible==null||t.visible)&&e.show()}function qwe(e,t){}function Zwe(e){}function Ywe(){}const Xwe=()=>Q8.exports.DefaultEventPriority,Qwe=Object.freeze(Object.defineProperty({__proto__:null,appendInitialChild:vwe,createInstance:ywe,createTextInstance:xwe,finalizeInitialChildren:bwe,getPublicInstance:Swe,prepareForCommit:wwe,preparePortalMount:Cwe,prepareUpdate:_we,resetAfterCommit:kwe,resetTextContent:Ewe,shouldDeprioritizeSubtree:Pwe,getRootHostContext:Twe,getChildHostContext:Lwe,scheduleTimeout:Awe,cancelTimeout:Iwe,noTimeout:Rwe,shouldSetTextContent:Mwe,isPrimaryRenderer:Owe,warnsIfNotActing:Nwe,supportsMutation:Dwe,appendChild:Fwe,appendChildToContainer:zwe,insertBefore:XB,insertInContainerBefore:$we,removeChild:Bwe,removeChildFromContainer:Hwe,commitTextUpdate:Wwe,commitMount:Vwe,commitUpdate:Uwe,hideInstance:Gwe,hideTextInstance:jwe,unhideInstance:Kwe,unhideTextInstance:qwe,clearContainer:Zwe,detachDeletedInstance:Ywe,getCurrentEventPriority:Xwe,now:$p.exports.unstable_now,idlePriority:$p.exports.unstable_IdlePriority,run:$p.exports.unstable_runWithPriority},Symbol.toStringTag,{value:"Module"}));var Jwe=Object.defineProperty,e6e=Object.defineProperties,t6e=Object.getOwnPropertyDescriptors,$A=Object.getOwnPropertySymbols,n6e=Object.prototype.hasOwnProperty,r6e=Object.prototype.propertyIsEnumerable,BA=(e,t,n)=>t in e?Jwe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,HA=(e,t)=>{for(var n in t||(t={}))n6e.call(t,n)&&BA(e,n,t[n]);if($A)