mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
502 lines
1.2 MiB
JavaScript
502 lines
1.2 MiB
JavaScript
|
function Rj(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 tu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function G8(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var C={exports:{}},qt={};/**
|
||
|
* @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 sv=Symbol.for("react.element"),Oj=Symbol.for("react.portal"),Nj=Symbol.for("react.fragment"),Dj=Symbol.for("react.strict_mode"),zj=Symbol.for("react.profiler"),Fj=Symbol.for("react.provider"),Bj=Symbol.for("react.context"),$j=Symbol.for("react.forward_ref"),Hj=Symbol.for("react.suspense"),Wj=Symbol.for("react.memo"),Vj=Symbol.for("react.lazy"),dk=Symbol.iterator;function Uj(e){return e===null||typeof e!="object"?null:(e=dk&&e[dk]||e["@@iterator"],typeof e=="function"?e:null)}var CI={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_I=Object.assign,kI={};function E0(e,t,n){this.props=e,this.context=t,this.refs=kI,this.updater=n||CI}E0.prototype.isReactComponent={};E0.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")};E0.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function EI(){}EI.prototype=E0.prototype;function j8(e,t,n){this.props=e,this.context=t,this.refs=kI,this.updater=n||CI}var q8=j8.prototype=new EI;q8.constructor=j8;_I(q8,E0.prototype);q8.isPureReactComponent=!0;var fk=Array.isArray,PI=Object.prototype.hasOwnProperty,K8={current:null},TI={key:!0,ref:!0,__self:!0,__source:!0};function LI(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)PI.call(t,r)&&!TI.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),c=0;c<s;c++)l[c]=arguments[c+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:sv,type:e,key:o,ref:a,props:i,_owner:K8.current}}function Gj(e,t){return{$$typeof:sv,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Z8(e){return typeof e=="object"&&e!==null&&e.$$typeof===sv}function jj(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var hk=/\/+/g;function ib(e,t){return typeof e=="object"&&e!==null&&e.key!=null?jj(""+e.key):t.toString(36)}function Oy(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 sv:case Oj:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+ib(a,0):r,fk(i)?(n="",e!=null&&(n=e.replace(hk,"$&/")+"/"),Oy(i,t,n,"",function(c){return c})):i!=null&&(Z8(i)&&(i=Gj(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(hk,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",fk(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+ib(o,s);a+=Oy(o,t,n,l,i)}else if(l=Uj(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+ib(o,s++),a+=Oy(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 C2(e,t,n){if(e==null)return e;var r=[],i=0;return Oy(e,r,"","",function(o){return t.call(n,o,i++)}),r}function qj(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 ro={current:null},Ny={transition:null},Kj={ReactCurrentDispatcher:ro,ReactCurrentBatchConfig:Ny,ReactCurrentOwner:K8};qt.Children={map:C2,forEach:function(e,t,n){C2(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return C2(e,function(){t++}),t},toArray:function(e){return C2(e,function(t){return t})||[]},only:function(e){if(!Z8(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};qt.Component=E0;qt.Fragment=Nj;qt.Profiler=zj;qt
|
||
|
* @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(U,ee){var ae=U.length;U.push(ee);e:for(;0<ae;){var X=ae-1>>>1,me=U[X];if(0<i(me,ee))U[X]=ee,U[ae]=me,ae=X;else break e}}function n(U){return U.length===0?null:U[0]}function r(U){if(U.length===0)return null;var ee=U[0],ae=U.pop();if(ae!==ee){U[0]=ae;e:for(var X=0,me=U.length,ye=me>>>1;X<ye;){var Se=2*(X+1)-1,He=U[Se],je=Se+1,ut=U[je];if(0>i(He,ae))je<me&&0>i(ut,He)?(U[X]=ut,U[je]=ae,X=je):(U[X]=He,U[Se]=ae,X=Se);else if(je<me&&0>i(ut,ae))U[X]=ut,U[je]=ae,X=je;else break e}}return ee}function i(U,ee){var ae=U.sortIndex-ee.sortIndex;return ae!==0?ae:U.id-ee.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=[],c=[],p=1,g=null,m=3,y=!1,b=!1,S=!1,T=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function L(U){for(var ee=n(c);ee!==null;){if(ee.callback===null)r(c);else if(ee.startTime<=U)r(c),ee.sortIndex=ee.expirationTime,t(l,ee);else break;ee=n(c)}}function I(U){if(S=!1,L(U),!b)if(n(l)!==null)b=!0,xe(O);else{var ee=n(c);ee!==null&&Z(I,ee.startTime-U)}}function O(U,ee){b=!1,S&&(S=!1,E(z),z=-1),y=!0;var ae=m;try{for(L(ee),g=n(l);g!==null&&(!(g.expirationTime>ee)||U&&!q());){var X=g.callback;if(typeof X=="function"){g.callback=null,m=g.priorityLevel;var me=X(g.expirationTime<=ee);ee=e.unstable_now(),typeof me=="function"?g.callback=me:g===n(l)&&r(l),L(ee)}else r(l);g=n(l)}if(g!==null)var ye=!0;else{var Se=n(c);Se!==null&&Z(I,Se.startTime-ee),ye=!1}return ye}finally{g=null,m=ae,y=!1}}var D=!1,N=null,z=-1,W=5,V=-1;function q(){return!(e.unstable_now()-V<W)}function he(){if(N!==null){var U=e.unstable_now();V=U;var ee=!0;try{ee=N(!0,U)}finally{ee?de():(D=!1,N=null)}}else D=!1}var de;if(typeof k=="function")de=function(){k(he)};else if(typeof MessageChannel<"u"){var ve=new MessageChannel,Ee=ve.port2;ve.port1.onmessage=he,de=function(){Ee.postMessage(null)}}else de=function(){T(he,0)};function xe(U){N=U,D||(D=!0,de())}function Z(U,ee){z=T(function(){U(e.unstable_now())},ee)}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(U){U.callback=null},e.unstable_continueExecution=function(){b||y||(b=!0,xe(O))},e.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<U?Math.floor(1e3/U):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(U){switch(m){case 1:case 2:case 3:var ee=3;break;default:ee=m}var ae=m;m=ee;try{return U()}finally{m=ae}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(U,ee){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var ae=m;m=U;try{return ee()}finally{m=ae}},e.unstable_scheduleCallback=function(U,ee,ae){var X=e.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?X+ae:X):ae=X,U){case 1:var me=-1;break;case 2:me=250;break;case 5:me=1073741823;break;case 4:me=1e4;break;default:me=5e3}return me=ae+me,U={id:p++,callback:ee,priorityLevel:U,startTime:ae,expirationTime:me,sortIndex:-1},ae>X?(U.sortIndex=ae,t(c,U),n(l)===null&&U===n(c)&&(S?(E(z),z=-1):S=!0,Z(I,ae-X))):(U.sortIndex=me,t(l,U),b||y||(b=!0,xe(O))),U},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(U){var ee=m;return function(){var ae=m;m=ee;try{return U.apply(this,arguments)}finally{m=ae}}}})(AI);(function(e){e.exports=AI})(Dp);/**
|
||
|
* @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 II=C.exports,oa=Dp.exports;function Oe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var MI=new Set,pm={};function jf(e,t){a0(e,t),a0(e+"Capture",t)}function a0(e,t){for(pm[e]=t,e=0;e<t.length;e++)MI.add(t[e])}var uu=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),YS=Object.prototype.hasOwnProperty,Zj=/^[: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]*$/,pk={},gk={};function Yj(e){return YS.call(gk,e)?!0:YS.call(pk,e)?!1:Zj.test(e)?gk[e]=!0:(pk[e]=!0,!1)}function Xj(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 Qj(e,t,n,r){if(t===null||typeof t>"u"||Xj(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 io(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 Li={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Li[e]=new io(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Li[t]=new io(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Li[e]=new io(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Li[e]=new io(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){Li[e]=new io(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Li[e]=new io(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Li[e]=new io(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Li[e]=new io(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Li[e]=new io(e,5,!1,e.toLowerCase(),null,!1,!1)});var Y8=/[\-:]([a-z])/g;function X8(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
|
||
|
`+ob+e}var ab=!1;function sb(e,t){if(!e||ab)return"";ab=!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(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.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{ab=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?bg(e):""}function Jj(e){switch(e.tag){case 5:return bg(e.type);case 16:return bg("Lazy");case 13:return bg("Suspense");case 19:return bg("SuspenseList");case 0:case 2:case 15:return e=sb(e.type,!1),e;case 11:return e=sb(e.type.render,!1),e;case 1:return e=sb(e.type,!0),e;default:return""}}function ew(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 Sp:return"Fragment";case bp:return"Portal";case XS:return"Profiler";case J8:return"StrictMode";case QS:return"Suspense";case JS:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case OI:return(e.displayName||"Context")+".Consumer";case RI:return(e._context.displayName||"Context")+".Provider";case e9:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case t9:return t=e.displayName||null,t!==null?t:ew(e.type)||"Memo";case Sc:t=e._payload,e=e._init;try{return ew(e(t))}catch{}}return null}function eq(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 ew(t);case 8:return t===J8?"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 Gc(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function DI(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function tq(e){var t=DI(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 k2(e){e._valueTracker||(e._valueTracker=tq(e))}function zI(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=DI(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function E3(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 tw(e,t){var n=t.checked;return dr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function vk(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Gc(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 FI(e,t){t=t.checked,t!=null&&Q8(e,"checked",t,!1)}function nw(e,t){FI(e,t);var n=Gc(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")?rw(e,t.type,n):t.hasOwnProperty("defaultValue")&&rw(e,t.type,Gc(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function yk(e,t,n){if(t.hasOwnProperty("val
|
||
|
`).replace(dK,"")}function R2(e,t,n){if(t=Hk(t),Hk(e)!==t&&n)throw Error(Oe(425))}function O3(){}var vw=null,yw=null;function xw(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 bw=typeof setTimeout=="function"?setTimeout:void 0,fK=typeof clearTimeout=="function"?clearTimeout:void 0,Wk=typeof Promise=="function"?Promise:void 0,hK=typeof queueMicrotask=="function"?queueMicrotask:typeof Wk<"u"?function(e){return Wk.resolve(null).then(e).catch(pK)}:bw;function pK(e){setTimeout(function(){throw e})}function bb(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),xm(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);xm(t)}function Fc(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 Vk(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 T0=Math.random().toString(36).slice(2),ll="__reactFiber$"+T0,_m="__reactProps$"+T0,cu="__reactContainer$"+T0,Sw="__reactEvents$"+T0,gK="__reactListeners$"+T0,mK="__reactHandles$"+T0;function mf(e){var t=e[ll];if(t)return t;for(var n=e.parentNode;n;){if(t=n[cu]||n[ll]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Vk(e);e!==null;){if(n=e[ll])return n;e=Vk(e)}return t}e=n,n=e.parentNode}return null}function cv(e){return e=e[ll]||e[cu],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function kp(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Oe(33))}function j4(e){return e[_m]||null}var ww=[],Ep=-1;function td(e){return{current:e}}function Kn(e){0>Ep||(e.current=ww[Ep],ww[Ep]=null,Ep--)}function Un(e,t){Ep++,ww[Ep]=e.current,e.current=t}var jc={},Bi=td(jc),_o=td(!1),zf=jc;function s0(e,t){var n=e.type.contextTypes;if(!n)return jc;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 ko(e){return e=e.childContextTypes,e!=null}function N3(){Kn(_o),Kn(Bi)}function Uk(e,t,n){if(Bi.current!==jc)throw Error(Oe(168));Un(Bi,t),Un(_o,n)}function EM(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Oe(108,eq(e)||"Unknown",i));return dr({},n,r)}function D3(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||jc,zf=Bi.current,Un(Bi,e),Un(_o,_o.current),!0}function Gk(e,t,n){var r=e.stateNode;if(!r)throw Error(Oe(169));n?(e=EM(e,t,zf),r.__reactInternalMemoizedMergedChildContext=e,Kn(_o),Kn(Bi),Un(Bi,e)):Kn(_o),Un(_o,n)}var eu=null,q4=!1,Sb=!1;function PM(e){eu===null?eu=[e]:eu.push(e)}function vK(e){q4=!0,PM(e)}function nd(){if(!Sb&&eu!==null){Sb=!0;var e=0,t=kn;try{var n=eu;for(kn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}eu=null,q4=!1}catch(i){throw eu!==null&&(eu=eu.slice(e+1)),QI(r9,nd),i}finally{kn=t,Sb=!1}}return null}var Pp=[],Tp=0,z3=null,F3=0,Pa=[],Ta=0,Ff=null,ru=1,iu="";function of(e,t){Pp[Tp++]=F3,Pp[Tp++]=z3,z3=e,F3=t}function TM(e,t,n){Pa[Ta++]=ru,Pa[Ta++]=iu,Pa[Ta++]=Ff,Ff=e;var r=ru;e=iu;var i=32-gs(r)-1;r&=~(1<<i),n+=1;var o=32-gs(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,ru=1<<32-gs(t)+i|n<<i|r,iu=o+e}else ru=1<<o|n<<i|r,iu=e}function f9(e){e.return!==null&&(of(e,1),TM(e,1,0))}function h9(e){for(;e===z3;)z3=Pp[--Tp],Pp[Tp]=null,F3=Pp[--Tp],Pp[Tp]=null;for(;e===Ff;)Ff=Pa[--Ta],Pa[Ta]=null,iu=Pa[--Ta],Pa[Ta]=null,ru=Pa[--Ta],Pa[Ta]=null}var ta=null,Jo=null,tr=!1,hs=null;function LM(e,t){var n=Ia(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 Eb(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Tw(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var EK=typeof WeakMap=="function"?WeakMap:Map;function rR(e,t,n){n=lu(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){j3||(j3=!0,Fw=r),Tw(e,t)},n}function iR(e,t,n){n=lu(-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(){Tw(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Tw(e,t),typeof r!="function"&&($c===null?$c=new Set([this]):$c.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function tE(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new EK;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=$K.bind(null,e,t,n),t.then(e,e))}function nE(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 rE(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=lu(-1,1),t.tag=2,Bc(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var PK=Su.ReactCurrentOwner,Co=!1;function Qi(e,t,n,r){t.child=e===null?DM(t,null,n,r):u0(t,e.child,n,r)}function iE(e,t,n,r,i){n=n.render;var o=t.ref;return Hp(t,i),r=_9(e,t,n,r,o,i),n=k9(),e!==null&&!Co?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,fu(e,t,i)):(tr&&n&&f9(t),t.flags|=1,Qi(e,t,r,i),t.child)}function oE(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!N9(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,oR(e,t,o,r,i)):(e=Gy(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:Sm,n(a,r)&&e.ref===t.ref)return fu(e,t,i)}return t.flags|=1,e=Wc(o,r),e.ref=t.ref,e.return=t,t.child=e}function oR(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Sm(o,r)&&e.ref===t.ref)if(Co=!1,t.pendingProps=r=o,(e.lanes&i)!==0)(e.flags&131072)!==0&&(Co=!0);else return t.lanes=e.lanes,fu(e,t,i)}return Lw(e,t,n,r,i)}function aR(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},Un(Ip,Xo),Xo|=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,Un(Ip,Xo),Xo|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Un(Ip,Xo),Xo|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Un(Ip,Xo),Xo|=r;return Qi(e,t,i,n),t.child}function sR(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Lw(e,t,n,r,i){var o=ko(n)?zf:Bi.current;return o=s0(t,o),Hp(t,i),n=_9(e,t,n,r,o,i),r=k9(),e!==null&&!Co?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,fu(e,t,i)):(tr&&r&&f9(t),t.flags|=1,Qi(e,t,n,i),t.child)}function aE(e,t,n,r,i){if(ko(n)){var o=!0;D3(t)}else o=!1;if(Hp(t,i),t.stateNode===null)Wy(e,t),OM(t,n,r),Pw(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=Da(c):(c=ko(n)?zf:Bi.current,c=s0(t,c));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!==c)&&Xk(t,a,r,c),wc=!1;var m=t.memoizedState;a.state=m,H3(t,r,a,i),l=t.memoizedState,s!==r||m!==l||_o.current||wc?(typeof p=="function"&&(Ew(t,n,p,r),l=t.memoizedState),(s=wc||Yk(t,n,s,r,m,l,c))?(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 XK=C.exports,QK=Symbol.for("react.element"),JK=Symbol.for("react.fragment"),eZ=Object.prototype.hasOwnProperty,tZ=XK.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,nZ={key:!0,ref:!0,__self:!0,__source:!0};function AR(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)eZ.call(t,r)&&!nZ.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:QK,type:e,key:o,ref:a,props:i,_owner:tZ.current}}i5.Fragment=JK;i5.jsx=AR;i5.jsxs=AR;(function(e){e.exports=i5})(r5);const Fn=r5.exports.Fragment,w=r5.exports.jsx,ne=r5.exports.jsxs;var $9=C.exports.createContext({});$9.displayName="ColorModeContext";function o5(){const e=C.exports.useContext($9);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var H2={light:"chakra-ui-light",dark:"chakra-ui-dark"};function rZ(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?H2.dark:H2.light),document.body.classList.remove(r?H2.light:H2.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 iZ="chakra-ui-color-mode";function oZ(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 aZ=oZ(iZ),bE=()=>{};function SE(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function IR(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:i,disableTransitionOnChange:o}={},colorModeManager:a=aZ}=e,s=i==="dark"?"dark":"light",[l,c]=C.exports.useState(()=>SE(a,s)),[p,g]=C.exports.useState(()=>SE(a)),{getSystemTheme:m,setClassName:y,setDataset:b,addListener:S}=C.exports.useMemo(()=>rZ({preventTransition:o}),[o]),T=i==="system"&&!l?p:l,E=C.exports.useCallback(I=>{const O=I==="system"?m():I;c(O),y(O==="dark"),b(O),a.set(O)},[a,m,y,b]);pl(()=>{i==="system"&&g(m())},[]),C.exports.useEffect(()=>{const I=a.get();if(I){E(I);return}if(i==="system"){E("system");return}E(s)},[a,s,i,E]);const k=C.exports.useCallback(()=>{E(T==="dark"?"light":"dark")},[T,E]);C.exports.useEffect(()=>{if(!!r)return S(E)},[r,S,E]);const L=C.exports.useMemo(()=>({colorMode:t??T,toggleColorMode:t?bE:k,setColorMode:t?bE:E,forced:t!==void 0}),[T,k,E,t]);return w($9.Provider,{value:L,children:n})}IR.displayName="ColorModeProvider";var sZ=new Set(["dark","light","system"]);function lZ(e){let t=e;return sZ.has(t)||(t="light"),t}function uZ(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,i=lZ(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=31536
|
||
|
`,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 cZ(e={}){const{nonce:t}=e;return w("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:uZ(e)}})}var Ww={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=800,o=16,a=9007199254740991,s="[object Arguments]",l="[object Array]",c="[object AsyncFunction]",p="[object Boolean]",g="[object Date]",m="[object Error]",y="[object Function]",b="[object GeneratorFunction]",S="[object Map]",T="[object Number]",E="[object Null]",k="[object Object]",L="[object Proxy]",I="[object RegExp]",O="[object Set]",D="[object String]",N="[object Undefined]",z="[object WeakMap]",W="[object ArrayBuffer]",V="[object DataView]",q="[object Float32Array]",he="[object Float64Array]",de="[object Int8Array]",ve="[object Int16Array]",Ee="[object Int32Array]",xe="[object Uint8Array]",Z="[object Uint8ClampedArray]",U="[object Uint16Array]",ee="[object Uint32Array]",ae=/[\\^$.*+?()[\]{}|]/g,X=/^\[object .+?Constructor\]$/,me=/^(?:0|[1-9]\d*)$/,ye={};ye[q]=ye[he]=ye[de]=ye[ve]=ye[Ee]=ye[xe]=ye[Z]=ye[U]=ye[ee]=!0,ye[s]=ye[l]=ye[W]=ye[p]=ye[V]=ye[g]=ye[m]=ye[y]=ye[S]=ye[T]=ye[k]=ye[I]=ye[O]=ye[D]=ye[z]=!1;var Se=typeof tu=="object"&&tu&&tu.Object===Object&&tu,He=typeof self=="object"&&self&&self.Object===Object&&self,je=Se||He||Function("return this")(),ut=t&&!t.nodeType&&t,qe=ut&&!0&&e&&!e.nodeType&&e,ot=qe&&qe.exports===ut,tt=ot&&Se.process,at=function(){try{var H=qe&&qe.require&&qe.require("util").types;return H||tt&&tt.binding&&tt.binding("util")}catch{}}(),Rt=at&&at.isTypedArray;function kt(H,Y,ue){switch(ue.length){case 0:return H.call(Y);case 1:return H.call(Y,ue[0]);case 2:return H.call(Y,ue[0],ue[1]);case 3:return H.call(Y,ue[0],ue[1],ue[2])}return H.apply(Y,ue)}function Le(H,Y){for(var ue=-1,Ge=Array(H);++ue<H;)Ge[ue]=Y(ue);return Ge}function st(H){return function(Y){return H(Y)}}function Lt(H,Y){return H?.[Y]}function it(H,Y){return function(ue){return H(Y(ue))}}var mt=Array.prototype,Sn=Function.prototype,wt=Object.prototype,Kt=je["__core-js_shared__"],wn=Sn.toString,pn=wt.hasOwnProperty,Re=function(){var H=/[^.]+$/.exec(Kt&&Kt.keys&&Kt.keys.IE_PROTO||"");return H?"Symbol(src)_1."+H:""}(),Ze=wt.toString,Zt=wn.call(Object),Gt=RegExp("^"+wn.call(pn).replace(ae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_e=ot?je.Buffer:void 0,Tt=je.Symbol,De=je.Uint8Array,nt=_e?_e.allocUnsafe:void 0,rn=it(Object.getPrototypeOf,Object),Mn=Object.create,Be=wt.propertyIsEnumerable,ct=mt.splice,Qe=Tt?Tt.toStringTag:void 0,Mt=function(){try{var H=qa(Object,"defineProperty");return H({},"",{}),H}catch{}}(),Yt=_e?_e.isBuffer:void 0,Zn=Math.max,ao=Date.now,ui=qa(je,"Map"),_s=qa(Object,"create"),G0=function(){function H(){}return function(Y){if(!No(Y))return{};if(Mn)return Mn(Y);H.prototype=Y;var ue=new H;return H.prototype=void 0,ue}}();function pa(H){var Y=-1,ue=H==null?0:H.length;for(this.clear();++Y<ue;){var Ge=H[Y];this.set(Ge[0],Ge[1])}}function lh(){this.__data__=_s?_s(null):{},this.size=0}function j0(H){var Y=this.has(H)&&delete this.__data__[H];return this.size-=Y?1:0,Y}function Tu(H){var Y=this.__data__;if(_s){var ue=Y[H];return ue===r?void 0:ue}return pn.call(Y,H)?Y[H]:void 0}function uh(H){var Y=this.__data__;return _s?Y[H]!==void 0:pn.call(Y,H)}function ch(H,Y){var ue=this.__data__;return this.size+=this.has(H)?0:1,ue[H]=_s&&Y===void 0?r:Y,this}pa.prototype.clear=lh,pa.prototype.delete=j0,pa.prototype.get=Tu,pa.prototype.has=uh,pa.prototype.set=ch;function Io(H){var Y=-1,ue=H==null?0:H.length;for(this.clear();++Y<ue;){var Ge=H[Y];this.set(Ge[0],Ge[1])}}function pd(){this.__data__=[],this.size=0}function q0(H){var Y=this.__data__,ue=Ga(Y,H);if(ue<0)return!1;var Ge=Y.length-1;return ue==Ge?Y.pop():ct.call(Y,ue,1),--this.size,!0}function Lu(H){var Y=this.__data__,ue=Ga(Y,H);return ue<0?void 0:Y[ue][1]}function gd(H){return Ga(this.__data__,H)>-1}function K0(H,Y){var ue=this.__data__,Ge=Ga(ue,H);return Ge<0?(++this.size,ue.push([H,Y])):ue[Ge][1]=Y,this}Io.prototype.clear=pd,Io.prototype.delete=q0,Io.prototype.get=Lu,Io.prototype.has=gd,Io.prototype.set=K0
|
||
|
* 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 li=typeof Symbol=="function"&&Symbol.for,j9=li?Symbol.for("react.element"):60103,q9=li?Symbol.for("react.portal"):60106,d5=li?Symbol.for("react.fragment"):60107,f5=li?Symbol.for("react.strict_mode"):60108,h5=li?Symbol.for("react.profiler"):60114,p5=li?Symbol.for("react.provider"):60109,g5=li?Symbol.for("react.context"):60110,K9=li?Symbol.for("react.async_mode"):60111,m5=li?Symbol.for("react.concurrent_mode"):60111,v5=li?Symbol.for("react.forward_ref"):60112,y5=li?Symbol.for("react.suspense"):60113,nX=li?Symbol.for("react.suspense_list"):60120,x5=li?Symbol.for("react.memo"):60115,b5=li?Symbol.for("react.lazy"):60116,rX=li?Symbol.for("react.block"):60121,iX=li?Symbol.for("react.fundamental"):60117,oX=li?Symbol.for("react.responder"):60118,aX=li?Symbol.for("react.scope"):60119;function fa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case j9:switch(e=e.type,e){case K9:case m5:case d5:case h5:case f5:case y5:return e;default:switch(e=e&&e.$$typeof,e){case g5:case v5:case b5:case x5:case p5:return e;default:return t}}case q9:return t}}}function YR(e){return fa(e)===m5}Tn.AsyncMode=K9;Tn.ConcurrentMode=m5;Tn.ContextConsumer=g5;Tn.ContextProvider=p5;Tn.Element=j9;Tn.ForwardRef=v5;Tn.Fragment=d5;Tn.Lazy=b5;Tn.Memo=x5;Tn.Portal=q9;Tn.Profiler=h5;Tn.StrictMode=f5;Tn.Suspense=y5;Tn.isAsyncMode=function(e){return YR(e)||fa(e)===K9};Tn.isConcurrentMode=YR;Tn.isContextConsumer=function(e){return fa(e)===g5};Tn.isContextProvider=function(e){return fa(e)===p5};Tn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===j9};Tn.isForwardRef=function(e){return fa(e)===v5};Tn.isFragment=function(e){return fa(e)===d5};Tn.isLazy=function(e){return fa(e)===b5};Tn.isMemo=function(e){return fa(e)===x5};Tn.isPortal=function(e){return fa(e)===q9};Tn.isProfiler=function(e){return fa(e)===h5};Tn.isStrictMode=function(e){return fa(e)===f5};Tn.isSuspense=function(e){return fa(e)===y5};Tn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===d5||e===m5||e===h5||e===f5||e===y5||e===nX||typeof e=="object"&&e!==null&&(e.$$typeof===b5||e.$$typeof===x5||e.$$typeof===p5||e.$$typeof===g5||e.$$typeof===v5||e.$$typeof===iX||e.$$typeof===oX||e.$$typeof===aX||e.$$typeof===rX)};Tn.typeOf=fa;(function(e){e.exports=Tn})(ZR);var XR=ZR.exports,sX={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},lX={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},QR={};QR[XR.ForwardRef]=sX;QR[XR.Memo]=lX;var uX=!0;function cX(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var JR=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||uX===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},eO=function(t,n,r){JR(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 dX(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 fX={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWid
|
||
|
45deg,
|
||
|
${t} 25%,
|
||
|
transparent 25%,
|
||
|
transparent 50%,
|
||
|
${t} 50%,
|
||
|
${t} 75%,
|
||
|
transparent 75%,
|
||
|
transparent
|
||
|
)`,backgroundSize:`${e} ${e}`}}function NQ(e){const t=hO().toHexString();return!e||MQ(e)?t:e.string&&e.colors?zQ(e.string,e.colors):e.string&&!e.colors?DQ(e.string):e.colors&&!e.string?FQ(e.colors):t}function DQ(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r<e.length;r+=1)t=e.charCodeAt(r)+((t<<5)-t),t=t&t;let n="#";for(let r=0;r<3;r+=1){const i=t>>r*8&255;n+=`00${i.toString(16)}`.substr(-2)}return n}function zQ(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 FQ(e){return e[Math.floor(Math.random()*e.length)]}function Ie(e,t){return n=>n.colorMode==="dark"?t:e}function X9(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function BQ(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function vO(e){return BQ(e)&&e.reference?e.reference:String(e)}var C5=(e,...t)=>t.map(vO).join(` ${e} `).replace(/calc/g,""),jE=(...e)=>`calc(${C5("+",...e)})`,qE=(...e)=>`calc(${C5("-",...e)})`,t6=(...e)=>`calc(${C5("*",...e)})`,KE=(...e)=>`calc(${C5("/",...e)})`,ZE=e=>{const t=vO(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:t6(t,-1)},nu=Object.assign(e=>({add:(...t)=>nu(jE(e,...t)),subtract:(...t)=>nu(qE(e,...t)),multiply:(...t)=>nu(t6(e,...t)),divide:(...t)=>nu(KE(e,...t)),negate:()=>nu(ZE(e)),toString:()=>e.toString()}),{add:jE,subtract:qE,multiply:t6,divide:KE,negate:ZE});function $Q(e){return!Number.isInteger(parseFloat(e.toString()))}function HQ(e,t="-"){return e.replace(/\s+/g,t)}function yO(e){const t=HQ(e.toString());return t.includes("\\.")?e:$Q(e)?t.replace(".","\\."):e}function WQ(e,t=""){return[t,yO(e)].filter(Boolean).join("-")}function VQ(e,t){return`var(${yO(e)}${t?`, ${t}`:""})`}function UQ(e,t=""){return`--${WQ(e,t)}`}function Ao(e,t){const n=UQ(e,t?.prefix);return{variable:n,reference:VQ(n,GQ(t?.fallback))}}function GQ(e){return typeof e=="string"?e:e?.reference}var{definePartsStyle:jQ,defineMultiStyleConfig:qQ}=nr(UX.keys),KQ={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},ZQ={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},YQ={pt:"2",px:"4",pb:"5"},XQ={fontSize:"1.25em"},QQ=jQ({container:KQ,button:ZQ,panel:YQ,icon:XQ}),JQ=qQ({baseStyle:QQ}),{definePartsStyle:gv,defineMultiStyleConfig:eJ}=nr(GX.keys),ra=da("alert-fg"),hu=da("alert-bg"),tJ=gv({container:{bg:hu.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:ra.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:ra.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function Q9(e){const{theme:t,colorScheme:n}=e,r=p0(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}var nJ=gv(e=>{const{colorScheme:t}=e,n=Q9(e);return{container:{[ra.variable]:`colors.${t}.500`,[hu.variable]:n.light,_dark:{[ra.variable]:`colors.${t}.200`,[hu.variable]:n.dark}}}}),rJ=gv(e=>{const{colorScheme:t}=e,n=Q9(e);return{container:{[ra.variable]:`colors.${t}.500`,[hu.variable]:n.light,_dark:{[ra.variable]:`colors.${t}.200`,[hu.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:ra.reference}}}),iJ=gv(e=>{const{colorScheme:t}=e,n=Q9(e);return{container:{[ra.variable]:`colors.${t}.500`,[hu.variable]:n.light,_dark:{[ra.variable]:`colors.${t}.200`,[hu.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:ra.reference}}}),oJ=gv(e=>{const{colorScheme:t}=e;return{container:{[ra.variable]:"colors.white",[hu.variable]:`colors.${t}.500`,_dark:{[ra.variable]:"colors.gray.900",[hu.variable]:`colors.${t}.200`},color:ra.reference}}}),aJ={subtle:nJ,"left-accent":rJ,"top-accent":iJ,solid:oJ},sJ=eJ({baseStyle:tJ,variants:aJ,defaultProps:{variant:"subtle",colorScheme:"blue"}}),xO={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:"
|
||
|
to right,
|
||
|
transparent 0%,
|
||
|
${Ei(n,a)} 50%,
|
||
|
transparent 100%
|
||
|
)`;return{...!r&&i&&o,...r?{bgImage:s}:{bgColor:a}}},Qte={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},Jte=e=>({bg:Ie("gray.100","whiteAlpha.300")(e)}),ene=e=>({transitionProperty:"common",transitionDuration:"slow",...Xte(e)}),tne=kg(e=>({label:Qte,filledTrack:ene(e),track:Jte(e)})),nne={xs:kg({track:{h:"1"}}),sm:kg({track:{h:"2"}}),md:kg({track:{h:"3"}}),lg:kg({track:{h:"4"}})},rne=Yte({sizes:nne,baseStyle:tne,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:ine,definePartsStyle:Xy}=nr(aQ.keys),one=e=>{var t;const n=(t=wr(J3.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"}}}},ane=Xy(e=>{var t,n,r,i;return{label:(n=(t=J3).baseStyle)==null?void 0:n.call(t,e).label,container:(i=(r=J3).baseStyle)==null?void 0:i.call(r,e).container,control:one(e)}}),sne={md:Xy({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Xy({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Xy({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},lne=ine({baseStyle:ane,sizes:sne,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:une,definePartsStyle:cne}=nr(sQ.keys),dne=e=>{var t;return{...(t=fn.baseStyle)==null?void 0:t.field,bg:Ie("white","gray.700")(e),appearance:"none",paddingBottom:"1px",lineHeight:"normal","> option, > optgroup":{bg:Ie("white","gray.700")(e)}}},fne={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},hne=cne(e=>({field:dne(e),icon:fne})),q2={paddingInlineEnd:"8"},JE,eP,tP,nP,rP,iP,oP,aP,pne={lg:{...(JE=fn.sizes)==null?void 0:JE.lg,field:{...(eP=fn.sizes)==null?void 0:eP.lg.field,...q2}},md:{...(tP=fn.sizes)==null?void 0:tP.md,field:{...(nP=fn.sizes)==null?void 0:nP.md.field,...q2}},sm:{...(rP=fn.sizes)==null?void 0:rP.sm,field:{...(iP=fn.sizes)==null?void 0:iP.sm.field,...q2}},xs:{...(oP=fn.sizes)==null?void 0:oP.xs,field:{...(aP=fn.sizes)==null?void 0:aP.xs.field,...q2},icon:{insetEnd:"1"}}},gne=une({baseStyle:hne,sizes:pne,variants:fn.variants,defaultProps:fn.defaultProps}),mne=da("skeleton-start-color"),vne=da("skeleton-end-color"),yne=e=>{const t=Ie("gray.100","gray.800")(e),n=Ie("gray.400","gray.600")(e),{startColor:r=t,endColor:i=n,theme:o}=e,a=Ei(o,r),s=Ei(o,i);return{[mne.variable]:a,[vne.variable]:s,opacity:.7,borderRadius:"2px",borderColor:a,background:s}},xne={baseStyle:yne},bne=e=>({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",bg:Ie("white","gray.700")(e)}}),Sne={baseStyle:bne},{defineMultiStyleConfig:wne,definePartsStyle:_5}=nr(lQ.keys),zm=da("slider-thumb-size"),Fm=da("slider-track-size"),Cne=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...X9({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},_ne=e=>({...X9({orientation:e.orientation,horizontal:{h:Fm.reference},vertical:{w:Fm.reference}}),overflow:"hidden",borderRadius:"sm",bg:Ie("gray.200","whiteAlpha.200")(e),_disabled:{bg:Ie("gray.300","whiteAlpha.300")(e)}}),kne=e=>{const{orientation:t}=e;return{...X9({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:zm.reference,h:zm.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"}}},Ene=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",bg:Ie(`${t}.500`,`${t}.200`)(e)}},Pne=_5(e=>({container:Cne(e),track:_ne(e),thumb:kne(e),filledTrack:Ene(e)})),Tne=_5({container:{[zm.variable]:"sizes.4",[Fm.
|
||
|
[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(c)}},[t]),w(vue,{isPresent:t,childRef:r,sizeRef:i,children:C.exports.cloneElement(e,{ref:r})})}const Yb=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const s=L5(xue),l=C.exports.useId(),c=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=w(yue,{isPresent:n,children:e})),w(I0.Provider,{value:c,children:e})};function xue(){return new Map}const yp=e=>e.key||"";function bue(e,t){e.forEach(n=>{const r=yp(n);t.set(r,n)})}function Sue(e){const t=[];return C.exports.Children.forEach(e,n=>{C.exports.isValidElement(n)&&t.push(n)}),t}const wu=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait",IN(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=mue();const l=C.exports.useContext(nC).forceRender;l&&(s=l);const c=aD(),p=Sue(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(n4(()=>{S.current=!1,bue(p,b),y.current=g}),dC(()=>{S.current=!0,b.clear(),m.clear()}),S.current)return w(Fn,{children:g.map(L=>w(Yb,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:a,children:L},yp(L)))});g=[...g];const T=y.current.map(yp),E=p.map(yp),k=T.length;for(let L=0;L<k;L++){const I=T[L];E.indexOf(I)===-1&&m.add(I)}return a==="wait"&&m.size&&(g=[]),m.forEach(L=>{if(E.indexOf(L)!==-1)return;const I=b.get(L);if(!I)return;const O=T.indexOf(L),D=()=>{b.delete(L),m.delete(L);const N=y.current.findIndex(z=>z.key===L);if(y.current.splice(N,1),!m.size){if(y.current=p,c.current===!1)return;s(),r&&r()}};g.splice(O,0,w(Yb,{isPresent:!1,onExitComplete:D,custom:t,presenceAffectsLayout:o,mode:a,children:I},yp(I)))}),g=g.map(L=>{const I=L.key;return m.has(I)?L:w(Yb,{isPresent:!0,presenceAffectsLayout:o,mode:a,children:L},yp(L))}),AN!=="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.`),w(Fn,{children:m.size?g:g.map(L=>C.exports.cloneElement(L))})};var ul=function(){return ul=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},ul.apply(this,arguments)};function sD(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function M0(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(p){try{c(r.next(p))}catch(g){a(g)}}function l(p){try{c(r.throw(p))}catch(g){a(g)}}function c(p){p.done?o(p.value):i(p.value).then(s,l)}c((r=r.apply(e,t||[])).next())})}function R0(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(p){return l([c,p])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(n=0)),n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[
|
||
|
`})}function Gue(e){D5({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function _f(e){const{isOpen:t,isDisabled:n}=PC(),{reduceMotion:r}=TC(),i=wv("chakra-accordion__icon",e.className),o=z5(),a={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:r?void 0:"transform 0.2s",transformOrigin:"center",...o.icon};return w(ha,{viewBox:"0 0 24 24","aria-hidden":!0,className:i,__css:a,...e,children:w("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}_f.displayName="AccordionIcon";var kf=ke(function(t,n){const{children:r,className:i}=t,{htmlProps:o,...a}=Hue(t),l={...z5().container,overflowAnchor:"none"},c=C.exports.useMemo(()=>a,[a]);return re.createElement(Nue,{value:c},re.createElement(be.div,{ref:n,...o,className:wv("chakra-accordion__item",i),__css:l},typeof r=="function"?r({isExpanded:!!a.isOpen,isDisabled:!!a.isDisabled}):r))});kf.displayName="AccordionItem";var Ef=ke(function(t,n){const{className:r,motionProps:i,...o}=t,{reduceMotion:a}=TC(),{getPanelProps:s,isOpen:l}=PC(),c=s(o,n),p=wv("chakra-accordion__panel",r),g=z5();a||delete c.hidden;const m=re.createElement(be.div,{...c,__css:g.panel,className:p});return a?m:w(lD,{in:l,...i,children:m})});Ef.displayName="AccordionPanel";var F5=ke(function({children:t,reduceMotion:n,...r},i){const o=Ai("Accordion",r),a=hn(r),{htmlProps:s,descendants:l,...c}=Bue(a),p=C.exports.useMemo(()=>({...c,reduceMotion:!!n}),[c,n]);return re.createElement(Due,{value:l},re.createElement($ue,{value:p},re.createElement(Oue,{value:o},re.createElement(be.div,{ref:i,...s,className:wv("chakra-accordion",r.className),__css:o.root},t))))});F5.displayName="Accordion";var jue=(...e)=>e.filter(Boolean).join(" "),que=hv({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Cv=ke((e,t)=>{const n=oo("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:a="transparent",className:s,...l}=hn(e),c=jue("chakra-spinner",s),p={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:a,borderLeftColor:a,animation:`${que} ${o} linear infinite`,...n};return re.createElement(be.div,{ref:t,__css:p,className:c,...l},r&&re.createElement(be.span,{srOnly:!0},r))});Cv.displayName="Spinner";var B5=(...e)=>e.filter(Boolean).join(" ");function Kue(e){return w(ha,{viewBox:"0 0 24 24",...e,children:w("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 Zue(e){return w(ha,{viewBox:"0 0 24 24",...e,children:w("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function PT(e){return w(ha,{viewBox:"0 0 24 24",...e,children:w("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[Yue,Xue]=xn({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[Que,LC]=xn({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),fD={info:{icon:Zue,colorScheme:"blue"},warning:{icon:PT,colorScheme:"orange"},success:{icon:Kue,colorScheme:"green"},error:{icon:PT,colorScheme:"red"},loading:{icon:Cv,colorScheme:"blue"}};function Jue(e){return fD[e].colorScheme}function ece(e){return fD[e].icon}var hD=ke(function(t,n){const{status:r="info",addRole:i=!0,...o}=hn(t),a=t.colorScheme??Jue(r),s=Ai("Alert",{...t,colorScheme:a}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",over
|
||
|
:root {
|
||
|
--chakra-vh: 100vh;
|
||
|
}
|
||
|
|
||
|
@supports (height: -webkit-fill-available) {
|
||
|
:root {
|
||
|
--chakra-vh: -webkit-fill-available;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@supports (height: -moz-fill-available) {
|
||
|
:root {
|
||
|
--chakra-vh: -moz-fill-available;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@supports (height: 100lvh) {
|
||
|
:root {
|
||
|
--chakra-vh: 100lvh;
|
||
|
}
|
||
|
}
|
||
|
`,Dce=()=>w(S5,{styles:_D}),zce=()=>w(S5,{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;
|
||
|
}
|
||
|
|
||
|
${_D}
|
||
|
`});function Mf(e,t,n,r){const i=ur(n);return C.exports.useEffect(()=>{const o=typeof e=="function"?e():e??document;if(!(!n||!o))return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[t,e,r,i,n]),()=>{const o=typeof e=="function"?e():e??document;o?.removeEventListener(t,i,r)}}function Fce(e){return"current"in e}var kD=()=>typeof window<"u";function Bce(){const e=navigator.userAgentData;return e?.platform??navigator.platform}var $ce=e=>kD()&&e.test(navigator.vendor),Hce=e=>kD()&&e.test(Bce()),Wce=()=>Hce(/mac|iphone|ipad|ipod/i),Vce=()=>Wce()&&$ce(/apple/i);function Uce(e){const{ref:t,elements:n,enabled:r}=e,i=()=>{var o;return((o=t.current)==null?void 0:o.ownerDocument)??document};Mf(i,"pointerdown",o=>{if(!Vce()||!r)return;const a=o.target,l=(n??[t]).some(c=>{const p=Fce(c)?c.current:c;return p?.contains(a)||p===a});i().activeElement!==a&&l&&(o.preventDefault(),a.focus())})}var Gce=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(i){e.addRange(i)}),t&&t.focus()}},jce=Gce,NT={"text/plain":"Text","text/html":"Url",default:"Text"},qce="Copy to clipboard: #{key}, Enter";function Kce(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function Zce(e,t){var n,r,i,o,a,s,l=!1;t||(t={}),n=t.debug||!1;try{i=jce(),o=document.createRange(),a=document.getSelection(),s=document.createElement("span"),s.textContent=e,s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(p){if(p.stopPropagation(),t.format)if(p.preventDefault(),typeof p.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var g=NT[t.format]||NT.default;window.clipboardData.setData(g,e)}else p.clipboardData.clearData(),p.clipboardData.setData(t.format,e);t.onCopy&&(p.preventDefault(),t.onCopy(p.clipboardData))}),document.body.appendChild(s),o.selectNodeContents(s),a.addRange(o);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");l=!0}catch(p){n&&console.error("unable to copy using execCommand: ",p),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(g){n&&console.error("unable to copy using clipboardData: ",g),n&&console.error("falling back to prompt"),r=Kce("message"in t?t.message:qce),window.prompt(r,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(o):a.removeAllRanges()),s&&document.body.removeChild(s),i()}return l}var Yce=Zce,Xce=OX?C.exports.useLayoutEffect:C.exports.useEffect;function DT(e,t=[]){const n=C.exports.useRef(e);return Xce(()=>{n.current=e}),C.exports.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function Qce(e,t={}){const[n,r]=C.exports.useState(!1),[i,o]=C.exports.useState(e),{timeout:a=1500,...s}=typeof t=="number"?{timeout:t}:t,l=C.exports.useCallback(()=>{const c=Yce(i,s);r(c)},[i,s]);return C.exports.useEffect(()=>{let c=null;return n&&(c=window.setTimeout(()=>{r(!1)},a)),()=>{c&&window.clearTimeout(c)}},[a,n]),{value:i,setValue:o,onCopy:l,hasCopied:n}}function Jce(e,t){const n=e!==void 0;return[n,n&&typeof e<"u"?e:t]}function ede(e,t){const n=C.exports.useId();return C.exports.useMemo(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}function m4(e={}){const{onClose:t,onOpen:n,isOpen:r,id:i}=e,o=DT(n),a=DT(t),[s,l]=C.exports.useState(e.defaultIsOpen||!1),[c,p]=Jce(r,s),g=ede(i,"disclosure"),m=C.exports.useCallback(()=>{c||l(!1),a?.()},[c,a]),y=C.exports.useCallback(()=>{c||l(!0),o?.()},[c,o
|
||
|
.`.concat(Ape,` {
|
||
|
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(i3,` {
|
||
|
right: `).concat(s,"px ").concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(o3,` {
|
||
|
margin-right: `).concat(s,"px ").concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(i3," .").concat(i3,` {
|
||
|
right: 0 `).concat(r,`;
|
||
|
}
|
||
|
|
||
|
.`).concat(o3," .").concat(o3,` {
|
||
|
margin-right: 0 `).concat(r,`;
|
||
|
}
|
||
|
|
||
|
body {
|
||
|
`).concat(Ipe,": ").concat(s,`px;
|
||
|
}
|
||
|
`)},Vpe=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r,o=C.exports.useMemo(function(){return $pe(i)},[i]);return w(Hpe,{styles:Wpe(o,!t,i,n?"":"!important")})},W6=!1;if(typeof window<"u")try{var iy=Object.defineProperty({},"passive",{get:function(){return W6=!0,!0}});window.addEventListener("test",iy,iy),window.removeEventListener("test",iy,iy)}catch{W6=!1}var cp=W6?{passive:!1}:!1,Upe=function(e){return e.tagName==="TEXTAREA"},qz=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Upe(e)&&n[t]==="visible")},Gpe=function(e){return qz(e,"overflowY")},jpe=function(e){return qz(e,"overflowX")},nL=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=Kz(e,n);if(r){var i=Zz(e,n),o=i[1],a=i[2];if(o>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},qpe=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Kpe=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Kz=function(e,t){return e==="v"?Gpe(t):jpe(t)},Zz=function(e,t){return e==="v"?qpe(t):Kpe(t)},Zpe=function(e,t){return e==="h"&&t==="rtl"?-1:1},Ype=function(e,t,n,r,i){var o=Zpe(e,window.getComputedStyle(t).direction),a=o*r,s=n.target,l=t.contains(s),c=!1,p=a>0,g=0,m=0;do{var y=Zz(e,s),b=y[0],S=y[1],T=y[2],E=S-T-o*b;(b||E)&&Kz(e,s)&&(g+=E,m+=b),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(p&&(i&&g===0||!i&&a>g)||!p&&(i&&m===0||!i&&-a>m))&&(c=!0),c},oy=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},rL=function(e){return[e.deltaX,e.deltaY]},iL=function(e){return e&&"current"in e?e.current:e},Xpe=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Qpe=function(e){return`
|
||
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
||
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
||
|
`)},Jpe=0,dp=[];function e0e(e){var t=C.exports.useRef([]),n=C.exports.useRef([0,0]),r=C.exports.useRef(),i=C.exports.useState(Jpe++)[0],o=C.exports.useState(function(){return jz()})[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=E6([e.lockRef.current],(e.shards||[]).map(iL),!0).filter(Boolean);return S.forEach(function(T){return T.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),S.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=C.exports.useCallback(function(S,T){if("touches"in S&&S.touches.length===2)return!a.current.allowPinchZoom;var E=oy(S),k=n.current,L="deltaX"in S?S.deltaX:k[0]-E[0],I="deltaY"in S?S.deltaY:k[1]-E[1],O,D=S.target,N=Math.abs(L)>Math.abs(I)?"h":"v";if("touches"in S&&N==="h"&&D.type==="range")return!1;var z=nL(N,D);if(!z)return!0;if(z?O=N:(O=N==="v"?"h":"v",z=nL(N,D)),!z)return!1;if(!r.current&&"changedTouches"in S&&(L||I)&&(r.current=O),!O)return!0;var W=r.current||O;return Ype(W,T,S,W==="h"?L:I,!0)},[]),l=C.exports.useCallback(function(S){var T=S;if(!(!dp.length||dp[dp.length-1]!==o)){var E="deltaY"in T?rL(T):oy(T),k=t.current.filter(function(O){return O.name===T.type&&O.target===T.target&&Xpe(O.delta,E)})[0];if(k&&k.should){T.cancelable&&T.preventDefault();return}if(!k){var L=(a.current.shards||[]).map(iL).filter(Boolean).filter(function(O){return O.contains(T.target)}),I=L.length>0?s(T,L[0]):!a.current.noIsolation;I&&T.cancelable&&T.preventDefault()}}},[]),c=C.exports.useCallback(function(S,T,E,k){var L={name:S,delta:T,target:E,should:k};t.current.push(L),setTimeout(function(){t.current=t.current.filter(function(I){return I!==L})},1)},[]),p=C.exports.useCallback(function(S){n.current=oy(S),r.current=void 0},[]),g=C.exports.useCallback(function(S){c(S.type,rL(S),S.target,s(S,e.lockRef.current))},[]),m=C.exports.useCallback(function(S){c(S.type,oy(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 ne(Fn,{children:[b?w(o,{styles:Qpe(i)}):null,y?w(Vpe,{gapMode:"margin"}):null]})}const t0e=Ohe(Gz,e0e);var Yz=C.exports.forwardRef(function(e,t){return w(q5,{...ul({},e,{ref:t,sideCar:t0e})})});Yz.classNames=q5.classNames;const Xz=Yz;var Qf=(...e)=>e.filter(Boolean).join(" ");function Pg(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var n0e=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}},V6=new n0e;function r0e(e,t){C.exports.useEffect(()=>(t&&V6.add(e),()=>{V6.remove(e)}),[t,e])}function i0e(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:i=!0,closeOnEsc:o=!0,useInert:a=!0,onOverlayClick:s,onEsc:l}=e,c=C.exports.useRef(null),p=C.exports.useRef(null),[g,m,y]=a0e(r,"chakra-modal","chakra-modal--header","chakra-modal--body");o0e(c,t&&a),r0e(c,t);const b=C.exports.useRef(null),S=C.exports.useCallback(z=>{b.current=z.target},[]),T=C.exports.useCallback(z=>{z.key==="Escape"&&(z.stopPropagation(),o&&n?.(),l?.())},[o,n,l]),[E,k]=C.exports.useState(!1),[L,I]=C.exports.useState(!1),O=C.exports.useCallback((z={},W=null)=>({role:"dialog",...z,ref:zn(W,c),id:g,tabIndex:-1,"aria-modal":!0,"aria-labelledby":E?m:void 0,"aria-describedby":L?y:void 0,onClick:Pg(z.onClick,V=>V.stopPropagation())}),[y,L,g,m,E]),D=C.exports.useCallback(z=>{z.stopPropagation(),b.current===z.target&&(!V6.isTopModal(c)||(i&&n?.()
|
||
|
* @license React
|
||
|
* use-sync-external-store-shim.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/var w0=C.exports;function ome(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ame=typeof Object.is=="function"?Object.is:ome,sme=w0.useState,lme=w0.useEffect,ume=w0.useLayoutEffect,cme=w0.useDebugValue;function dme(e,t){var n=t(),r=sme({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return ume(function(){i.value=n,i.getSnapshot=t,yS(i)&&o({inst:i})},[e,n,t]),lme(function(){return yS(i)&&o({inst:i}),e(function(){yS(i)&&o({inst:i})})},[e]),cme(n),n}function yS(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ame(e,n)}catch{return!0}}function fme(e,t){return t()}var hme=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?fme:dme;GF.useSyncExternalStore=w0.useSyncExternalStore!==void 0?w0.useSyncExternalStore:hme;(function(e){e.exports=GF})(UF);var jF={exports:{}},qF={};/**
|
||
|
* @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 J5=C.exports,pme=UF.exports;function gme(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mme=typeof Object.is=="function"?Object.is:gme,vme=pme.useSyncExternalStore,yme=J5.useRef,xme=J5.useEffect,bme=J5.useMemo,Sme=J5.useDebugValue;qF.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=yme(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=bme(function(){function l(y){if(!c){if(c=!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,mme(p,y))return b;var S=r(y);return i!==void 0&&i(b,S)?b:(p=y,g=S)}var c=!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=vme(e,o[0],o[1]);return xme(function(){a.hasValue=!0,a.value=s},[s]),Sme(s),s};(function(e){e.exports=qF})(jF);function wme(e){e()}let KF=wme;const Cme=e=>KF=e,_me=()=>KF,Xc=C.exports.createContext(null);function ZF(){return C.exports.useContext(Xc)}const kme=()=>{throw new Error("uSES not initialized!")};let YF=kme;const Eme=e=>{YF=e},Pme=(e,t)=>e===t;function Tme(e=Xc){const t=e===Xc?ZF:()=>C.exports.useContext(e);return function(r,i=Pme){const{store:o,subscription:a,getServerState:s}=t(),l=YF(a.addNestedSub,o.getState,s||o.getState,r,i);return C.exports.useDebugValue(l),l}}const Lme=Tme();var Ame={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 k7=Symbol.for("react.element"),E7=Symbol.for("react.portal"),ex=Symbol.for("react.fragment"),tx=Symbol.for("react.strict_mode"),nx=Symbol.for("react.profiler"),rx=Symbol.for("react.provider"),ix=Symbol.for("react.context"),Ime=Symbol.for("react.server_context"),ox=Symbol.for("react.forward_ref"),ax=Symbol.for("react.suspense"),sx=Symbol.for("react.suspense_list"),lx=Symbol.for("react.memo"),ux=Symbol.for("react.lazy"),Mme=Symbol.for("react.offscreen"),XF;XF=Symbol.for("react.module.reference");function Va(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case k7:switch(e=e.type,e){case ex:case nx:case tx:case ax:case sx:return e;default:switch(e=e&&e.$$typeof,e){case Ime:case ix:case ox:case ux:case lx:case rx:return e;default:return t}}case E7:return t}}}Ln.ContextConsumer=ix;Ln.ContextProvider=rx;Ln.Element=k7;Ln.ForwardRef=ox;Ln.Fragment=ex;Ln.Lazy=ux;Ln.Memo=lx;Ln.Portal=E7;Ln.Profiler=nx;Ln.StrictMode=tx;Ln.Suspense=ax;Ln.SuspenseList=sx;Ln.isAsyncMode=function(){return!1};Ln.isConcurrentMode=function(){return!1};Ln.isContextConsumer=function(e){return Va(e)===ix};Ln.isContextProvider=function(e){return Va(e)===rx};Ln.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===k7};Ln.isForwardRef=function(e){return Va(e)===ox};Ln.isFragment=function(e){return Va(e)===ex};Ln.isLazy=function(e){return Va(e)===ux};Ln.isMemo=function(e){return Va(e)===lx};Ln.isPortal=function(e){return Va(e)===E7};Ln.isProfiler=function(e){return Va(e)===nx};Ln.isStrictMode=function(e){return Va(e)===tx};Ln.isSuspense=function(e){return Va(e)===ax};Ln.isSuspenseList=function(e){return Va(e)===sx};Ln.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ex||e===nx||e===tx||e===ax||e===sx||e===Mme||typeof e=="object"&&e!==null&&(e.$$typeof===ux||e.$$typeof===lx||e.$$typeof===rx||e.$$typeof===ix||e.$$typeof===ox||e.$$typeof===XF||e.getModuleId!==void 0)};Ln.typeOf=Va;(function(e){e.exports=Ln})(Ame);function Rme(){const e=_me();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 EL={notify(){},get:()=>[]};function Ome(e,t){let n,r=EL;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=Rme())}function c(){n&&(n(),n=void 0,r.clear(),r=EL)}const p={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:s,trySubscribe:l,tryUnsubscribe:c,getListeners:()=>r};return p}const Nme=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Dme=Nme?C.exports.useLayoutEffect:C.exports.useEffect;function zme({store:e,context:t,children:n,serverState:r}){const i=C.exports.useMemo(()=>{const s=Ome(e);return{store:e,subscription:s,getServerState:r?()=>r:void 0}},[e,r]),o=C.exports.useMemo(()=>e.getState(),[e]);return Dme(()=>{const{subscription:s}=i;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),o!==e.getState()&&s.notifyNestedSubs(),()=>{s.tryUnsubscribe(),s.onStateChange=void 0}},[i,o]),w((t||Xc).Provider,{value:i,children:n})}function QF(e=Xc){const t=e===Xc?ZF:()=>C.exports.useContext(e);return function(){const{store:r}=t();return r}}const Fme=QF();function Bme(e=Xc){const t=e===Xc?Fme:QF(e);return function(){return t().dispatch}}const $me=Bme();Eme(jF.exports.useSyncExternalStoreWithSelector);Cme(El.exports.unstable_batchedUpdates);var P7="persist:",JF="persist/FLUSH",T7="persist/REHYDRATE",eB="persist/PAUSE",tB="persist/PERSIST",nB="persist/PURGE",rB="persist/REGISTER",Hme=-1;function l3(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?l3=function(n){return typeof n}:l3=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symb
|
||
|
* @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__",c=500,p="__lodash_placeholder__",g=1,m=2,y=4,b=1,S=2,T=1,E=2,k=4,L=8,I=16,O=32,D=64,N=128,z=256,W=512,V=30,q="...",he=800,de=16,ve=1,Ee=2,xe=3,Z=1/0,U=9007199254740991,ee=17976931348623157e292,ae=0/0,X=4294967295,me=X-1,ye=X>>>1,Se=[["ary",N],["bind",T],["bindKey",E],["curry",L],["curryRight",I],["flip",W],["partial",O],["partialRight",D],["rearg",z]],He="[object Arguments]",je="[object Array]",ut="[object AsyncFunction]",qe="[object Boolean]",ot="[object Date]",tt="[object DOMException]",at="[object Error]",Rt="[object Function]",kt="[object GeneratorFunction]",Le="[object Map]",st="[object Number]",Lt="[object Null]",it="[object Object]",mt="[object Promise]",Sn="[object Proxy]",wt="[object RegExp]",Kt="[object Set]",wn="[object String]",pn="[object Symbol]",Re="[object Undefined]",Ze="[object WeakMap]",Zt="[object WeakSet]",Gt="[object ArrayBuffer]",_e="[object DataView]",Tt="[object Float32Array]",De="[object Float64Array]",nt="[object Int8Array]",rn="[object Int16Array]",Mn="[object Int32Array]",Be="[object Uint8Array]",ct="[object Uint8ClampedArray]",Qe="[object Uint16Array]",Mt="[object Uint32Array]",Yt=/\b__p \+= '';/g,Zn=/\b(__p \+=) '' \+/g,ao=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ui=/&(?:amp|lt|gt|quot|#39);/g,_s=/[&<>"']/g,G0=RegExp(ui.source),pa=RegExp(_s.source),lh=/<%-([\s\S]+?)%>/g,j0=/<%([\s\S]+?)%>/g,Tu=/<%=([\s\S]+?)%>/g,uh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ch=/^\w*$/,Io=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,pd=/[\\^$.*+?()[\]{}|]/g,q0=RegExp(pd.source),Lu=/^\s+/,gd=/\s/,K0=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ks=/\{\n\/\* \[wrapped with (.+)\] \*/,Au=/,? & /,Z0=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Y0=/[()=,{}\[\]\/\s]/,X0=/\\(\\)?/g,Q0=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ua=/\w*$/,J0=/^[-+]0x[0-9a-f]+$/i,e1=/^0b[01]+$/i,t1=/^\[object .+?Constructor\]$/,n1=/^0o[0-7]+$/i,r1=/^(?:0|[1-9]\d*)$/,i1=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Es=/($^)/,o1=/['\n\r\u2028\u2029\\]/g,Ga="\\ud800-\\udfff",Ll="\\u0300-\\u036f",Al="\\ufe20-\\ufe2f",Ps="\\u20d0-\\u20ff",Il=Ll+Al+Ps,dh="\\u2700-\\u27bf",Iu="a-z\\xdf-\\xf6\\xf8-\\xff",Ts="\\xac\\xb1\\xd7\\xf7",Mo="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Cn="\\u2000-\\u206f",gn=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ro="A-Z\\xc0-\\xd6\\xd8-\\xde",_r="\\ufe0e\\ufe0f",Ur=Ts+Mo+Cn+gn,Oo="['\u2019]",Ls="["+Ga+"]",Gr="["+Ur+"]",ja="["+Il+"]",md="\\d+",Ml="["+dh+"]",qa="["+Iu+"]",vd="[^"+Ga+Ur+md+dh+Iu+Ro+"]",ci="\\ud83c[\\udffb-\\udfff]",fh="(?:"+ja+"|"+ci+")",hh="[^"+Ga+"]",yd="(?:\\ud83c[\\udde6-\\uddff]){2}",As="[\\ud800-\\udbff][\\udc00-\\udfff]",so="["+Ro+"]",Is="\\u200d",Rl="(?:"+qa+"|"+vd+")",a1="(?:"+so+"|"+vd+")",Mu="(?:"+Oo+"(?:d|ll|m|re|s|t|ve))?",Ru="(?:"+Oo+"(?:D|LL|M|RE|S|T|VE))?",xd=fh+"?",Ou="["+_r+"]?",ga="(?:"+Is+"(?:"+[hh,yd,As].join("|")+")"+Ou+xd+")*",bd="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ol="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Bt=Ou+xd+ga,ph="(?:"+[Ml,yd,As].join("|")+")"+Bt,Nu="(?:"+[hh+ja+"?",ja,yd,As,Ls].join("|")+")",Du=RegExp(Oo,"g"),gh=RegExp(ja,"g"),No=RegExp(ci+"(?="+ci+")|"+Nu+Bt,"g"),$n=RegExp([so+"?"+qa+"+"+Mu+"(?="+[Gr,so,"$"].join("|")+")",a1+"+"+Ru+"(?="+[Gr,so+Rl,"$"].join("|")+")",so+"?"+Rl+"+"+Mu,so+"+"+Ru,Ol,bd,md,ph].join("|"),"g"),Sd=RegExp("["+Is+Ga+Il+_r+"]"),mh=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,wd=["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"],vh=-1,on={};
|
||
|
/* [wrapped with `+h+`] */
|
||
|
`)}function dW(u){return It(u)||Jd(u)||!!(y1&&u&&u[y1])}function Ul(u,h){var x=typeof u;return h=h??U,!!h&&(x=="number"||x!="symbol"&&r1.test(u))&&u>-1&&u%1==0&&u<h}function Ki(u,h,x){if(!ar(x))return!1;var A=typeof h;return(A=="number"?vo(x)&&Ul(h,x.length):A=="string"&&h in x)?rs(x[h],u):!1}function Bx(u,h){if(It(u))return!1;var x=typeof u;return x=="number"||x=="symbol"||x=="boolean"||u==null||jo(u)?!0:ch.test(u)||!uh.test(u)||h!=null&&u in an(h)}function fW(u){var h=typeof u;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?u!=="__proto__":u===null}function $x(u){var h=pe(u),x=F[h];if(typeof x!="function"||!(h in Wt.prototype))return!1;if(u===x)return!0;var A=ie(x);return!!A&&u===A[0]}function hW(u){return!!Uu&&Uu in u}var pW=Yn?Gl:rb;function Z1(u){var h=u&&u.constructor,x=typeof h=="function"&&h.prototype||mn;return u===x}function w_(u){return u===u&&!ar(u)}function C_(u,h){return function(x){return x==null?!1:x[u]===h&&(h!==n||u in an(x))}}function gW(u){var h=y2(u,function(A){return x.size===c&&x.clear(),A}),x=h.cache;return h}function mW(u,h){var x=u[1],A=h[1],R=x|A,B=R<(T|E|N),G=A==N&&x==L||A==N&&x==z&&u[7].length<=h[8]||A==(N|z)&&h[7].length<=h[8]&&x==L;if(!(B||G))return u;A&T&&(u[2]=h[2],R|=x&T?0:k);var K=h[3];if(K){var oe=u[3];u[3]=oe?f2(oe,K,h[4]):K,u[4]=oe?Fo(u[3],p):h[4]}return K=h[5],K&&(oe=u[5],u[5]=oe?U1(oe,K,h[6]):K,u[6]=oe?Fo(u[5],p):h[6]),K=h[7],K&&(u[7]=K),A&N&&(u[8]=u[8]==null?h[8]:Kr(u[8],h[8])),u[9]==null&&(u[9]=h[9]),u[0]=h[0],u[1]=R,u}function vW(u){var h=[];if(u!=null)for(var x in an(u))h.push(x);return h}function yW(u){return kh.call(u)}function __(u,h,x){return h=gr(h===n?u.length-1:h,0),function(){for(var A=arguments,R=-1,B=gr(A.length-h,0),G=fe(B);++R<B;)G[R]=A[h+R];R=-1;for(var K=fe(h+1);++R<h;)K[R]=A[R];return K[h]=x(G),di(u,this,K)}}function k_(u,h){return h.length<2?u:Fs(u,Lr(h,0,-1))}function xW(u,h){for(var x=u.length,A=Kr(h.length,x),R=vi(u);A--;){var B=h[A];u[A]=Ul(B,x)?R[B]:n}return u}function Hx(u,h){if(!(h==="constructor"&&typeof u[h]=="function")&&h!="__proto__")return u[h]}var E_=T_(jd),Y1=Dd||function(u,h){return dt.setTimeout(u,h)},Wx=T_(jh);function P_(u,h,x){var A=h+"";return Wx(u,cW(A,bW(sW(A),x)))}function T_(u){var h=0,x=0;return function(){var A=x1(),R=de-(A-x);if(x=A,R>0){if(++h>=he)return arguments[0]}else h=0;return u.apply(n,arguments)}}function p2(u,h){var x=-1,A=u.length,R=A-1;for(h=h===n?A:h;++x<h;){var B=Ud(x,R),G=u[B];u[B]=u[x],u[x]=G}return u.length=h,u}var L_=gW(function(u){var h=[];return u.charCodeAt(0)===46&&h.push(""),u.replace(Io,function(x,A,R,B){h.push(R?B.replace(X0,"$1"):A||x)}),h});function Ks(u){if(typeof u=="string"||jo(u))return u;var h=u+"";return h=="0"&&1/u==-Z?"-0":h}function Qd(u){if(u!=null){try{return rr.call(u)}catch{}try{return u+""}catch{}}return""}function bW(u,h){return Hn(Se,function(x){var A="_."+x[0];h&x[1]&&!Ii(u,A)&&u.push(A)}),u.sort()}function A_(u){if(u instanceof Wt)return u.clone();var h=new Ui(u.__wrapped__,u.__chain__);return h.__actions__=vi(u.__actions__),h.__index__=u.__index__,h.__values__=u.__values__,h}function SW(u,h,x){(x?Ki(u,h,x):h===n)?h=1:h=gr(Ot(h),0);var A=u==null?0:u.length;if(!A||h<1)return[];for(var R=0,B=0,G=fe(zd(A/h));R<A;)G[B++]=Lr(u,R,R+=h);return G}function wW(u){for(var h=-1,x=u==null?0:u.length,A=0,R=[];++h<x;){var B=u[h];B&&(R[A++]=B)}return R}function CW(){var u=arguments.length;if(!u)return[];for(var h=fe(u-1),x=arguments[0],A=u;A--;)h[A-1]=arguments[A];return va(It(x)?vi(x):[x],Pr(h,1))}var _W=yt(function(u,h){return Ar(u)?ic(u,Pr(h,1,Ar,!0)):[]}),kW=yt(function(u,h){var x=wa(h);return Ar(x)&&(x=n),Ar(u)?ic(u,Pr(h,1,Ar,!0),Pe(x,2)):[]}),EW=yt(function(u,h){var x=wa(h);return Ar(x)&&(x=n),Ar(u)?ic(u,Pr(h,1,Ar,!0),n,x):[]});function PW(u,h,x){var A=u==null?0:u.length;return A?(h=x||h===n?1:Ot(h),Lr(u,h<0?0:h,A)):[]}function TW(u,h,x){var A=u==null?0:u.length;return A?(h=x||h===n?1:Ot(h),h=A-h,Lr(u,0,h<0?0:h)):[]}function LW(u,h){return u&&u.length?dc(u,Pe(h,3),!0,!0):[]}function AW(u,h){return u&&u.length?dc(u,Pe(h,3),!0):[]}function IW(u,h,x,A){var R=u==null?0:u.length;return R?(x&&t
|
||
|
`;u.replace(We,function(gt,Vt,Qt,qo,Zi,Ko){return Qt||(Qt=qo),Te+=u.slice(we,Ko).replace(o1,Os),Vt&&(K=!0,Te+=`' +
|
||
|
__e(`+Vt+`) +
|
||
|
'`),Zi&&(oe=!0,Te+=`';
|
||
|
`+Zi+`;
|
||
|
__p += '`),Qt&&(Te+=`' +
|
||
|
((__t = (`+Qt+`)) == null ? '' : __t) +
|
||
|
'`),we=Ko+gt.length,gt}),Te+=`';
|
||
|
`;var pt=Jt.call(h,"variable")&&h.variable;if(!pt)Te=`with (obj) {
|
||
|
`+Te+`
|
||
|
}
|
||
|
`;else if(Y0.test(pt))throw new xt(s);Te=(oe?Te.replace(Yt,""):Te).replace(Zn,"$1").replace(ao,"$1;"),Te="function("+(pt||"obj")+`) {
|
||
|
`+(pt?"":`obj || (obj = {});
|
||
|
`)+"var __t, __p = ''"+(K?", __e = _.escape":"")+(oe?`, __j = Array.prototype.join;
|
||
|
function print() { __p += __j.call(arguments, '') }
|
||
|
`:`;
|
||
|
`)+Te+`return __p
|
||
|
}`;var Ft=lk(function(){return Xt(B,lt+"return "+Te).apply(n,G)});if(Ft.source=Te,qx(Ft))throw Ft;return Ft}function $G(u){return vn(u).toLowerCase()}function HG(u){return vn(u).toUpperCase()}function WG(u,h,x){if(u=vn(u),u&&(x||h===n))return Vi(u);if(!u||!(h=ji(h)))return u;var A=Mi(u),R=Mi(h),B=zo(A,R),G=Ka(A,R)+1;return ts(A,B,G).join("")}function VG(u,h,x){if(u=vn(u),u&&(x||h===n))return u.slice(0,h1(u)+1);if(!u||!(h=ji(h)))return u;var A=Mi(u),R=Ka(A,Mi(h))+1;return ts(A,0,R).join("")}function UG(u,h,x){if(u=vn(u),u&&(x||h===n))return u.replace(Lu,"");if(!u||!(h=ji(h)))return u;var A=Mi(u),R=zo(A,Mi(h));return ts(A,R).join("")}function GG(u,h){var x=V,A=q;if(ar(h)){var R="separator"in h?h.separator:R;x="length"in h?Ot(h.length):x,A="omission"in h?ji(h.omission):A}u=vn(u);var B=u.length;if(Dl(u)){var G=Mi(u);B=G.length}if(x>=B)return u;var K=x-ya(A);if(K<1)return A;var oe=G?ts(G,0,K).join(""):u.slice(0,K);if(R===n)return oe+A;if(G&&(K+=oe.length-K),Kx(R)){if(u.slice(K).search(R)){var we,Ce=oe;for(R.global||(R=Md(R.source,vn(Ua.exec(R))+"g")),R.lastIndex=0;we=R.exec(Ce);)var Te=we.index;oe=oe.slice(0,Te===n?K:Te)}}else if(u.indexOf(ji(R),K)!=K){var We=oe.lastIndexOf(R);We>-1&&(oe=oe.slice(0,We))}return oe+A}function jG(u){return u=vn(u),u&&G0.test(u)?u.replace(ui,Uv):u}var qG=qs(function(u,h,x){return u+(x?" ":"")+h.toUpperCase()}),Xx=ep("toUpperCase");function sk(u,h,x){return u=vn(u),h=x?n:h,h===n?wh(u)?Id(u):c1(u):u.match(h)||[]}var lk=yt(function(u,h){try{return di(u,n,h)}catch(x){return qx(x)?x:new xt(x)}}),KG=Xn(function(u,h){return Hn(h,function(x){x=Ks(x),Ho(u,x,Gx(u[x],u))}),u});function ZG(u){var h=u==null?0:u.length,x=Pe();return u=h?On(u,function(A){if(typeof A[1]!="function")throw new fi(a);return[x(A[0]),A[1]]}):[],yt(function(A){for(var R=-1;++R<h;){var B=u[R];if(di(B[0],this,A))return di(B[1],this,A)}})}function YG(u){return Mh(ti(u,g))}function Qx(u){return function(){return u}}function XG(u,h){return u==null||u!==u?h:u}var QG=q1(),JG=q1(!0);function xo(u){return u}function Jx(u){return or(typeof u=="function"?u:ti(u,g))}function ej(u){return lc(ti(u,g))}function tj(u,h){return $s(u,ti(h,g))}var nj=yt(function(u,h){return function(x){return Ja(x,u,h)}}),rj=yt(function(u,h){return function(x){return Ja(u,x,h)}});function eb(u,h,x){var A=oi(h),R=Dh(h,A);x==null&&!(ar(h)&&(R.length||!A.length))&&(x=h,h=u,u=this,R=Dh(h,oi(h)));var B=!(ar(x)&&"chain"in x)||!!x.chain,G=Gl(u);return Hn(R,function(K){var oe=h[K];u[K]=oe,G&&(u.prototype[K]=function(){var we=this.__chain__;if(B||we){var Ce=u(this.__wrapped__),Te=Ce.__actions__=vi(this.__actions__);return Te.push({func:oe,args:arguments,thisArg:u}),Ce.__chain__=we,Ce}return oe.apply(u,va([this.value()],arguments))})}),u}function ij(){return dt._===this&&(dt._=g1),this}function tb(){}function oj(u){return u=Ot(u),yt(function(h){return uc(h,u)})}var aj=K1(On),sj=K1(Rn),lj=K1(zu);function uk(u){return Bx(u)?Rs(Ks(u)):es(u)}function uj(u){return function(h){return u==null?n:Fs(u,h)}}var cj=v(),dj=v(!0);function nb(){return[]}function rb(){return!1}function fj(){return{}}function hj(){return""}function pj(){return!0}function gj(u,h){if(u=Ot(u),u<1||u>U)return[];var x=X,A=Kr(u,X);h=Pe(h),u-=X;for(var R=Td(A,h);++x<u;)h(x);return R}function mj(u){return It(u)?On(u,Ks):jo(u)?[u]:vi(L_(vn(u)))}function vj(u){var h=++Rd;return vn(u)+h}var yj=tp(function(u,h){return u+h},0),xj=M("ceil"),bj=tp(function(u,h){return u/h},1),Sj=M("floor");function wj(u){return u&&u.length?vr(u,xo,zh):n}function Cj(u,h){return u&&u.length?vr(u,Pe(h,2),zh):n}function _j(u){return kd(u,xo)}function kj(u,h){return kd(u,Pe(h,2))}function Ej(u){return u&&u.length?vr(u,xo,Bs):n}function Pj(u,h){return u&&u.length?vr(u,Pe(h,2),Bs):n}var Tj=tp(function(u,h){return u*h},1),Lj=M("round"),Aj=tp(function(u,h){return u-h},0);function Ij(u){return u&&u.length?Pd(u,xo):0}function Mj(u,h){return u&&u.length?Pd(u,Pe(h,2)):0}return F.after=eU,F.ary=$_,F.assign=HU,F.assignIn=ek,F.assignInWith=w2,F.assignWith=WU,F.at=VU,F.before=H_,F.bind=Gx,F.bindAll=KG,F.bindKey=W_,F.castArray=fU,F.chain=z_,F.chunk=SW,F.compact
|
||
|
`),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,c=this.padding(),p=o-c*2,g=a-c*2,m=0,y=this.wrap(),b=y!==$A,S=y!==Obe&&b,T=this.ellipsis();this.textArr=[],WS().font=this._getContextFont();for(var E=T?this._getTextWidth(HS):0,k=0,L=t.length;k<L;++k){var I=t[k],O=this._getTextWidth(I);if(s&&O>p)for(;I.length>0;){for(var D=0,N=I.length,z="",W=0;D<N;){var V=D+N>>>1,q=I.slice(0,V+1),he=this._getTextWidth(q)+E;he<=p?(D=V+1,z=q,W=he):N=V}if(z){if(S){var de,ve=I[z.length],Ee=ve===Ey||ve===FA;Ee&&W<=p?de=z.length:de=Math.max(z.lastIndexOf(Ey),z.lastIndexOf(FA))+1,de>0&&(D=de,z=z.slice(0,D),W=this._getTextWidth(z))}z=z.trimRight(),this._addTextLine(z),r=Math.max(r,W),m+=i;var xe=this._shouldHandleEllipsis(m);if(xe){this._tryToAddEllipsisToLastLine();break}if(I=I.slice(D),I=I.trimLeft(),I.length>0&&(O=this._getTextWidth(I),O<=p)){this._addTextLine(I),m+=i,r=Math.max(r,O);break}}else break}else this._addTextLine(I),m+=i,r=Math.max(r,O),this._shouldHandleEllipsis(m)&&k<L-1&&this._tryToAddEllipsisToLastLine();if(l&&m+i>g)break;this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0)}this.textHeight=n,this.textWidth=r}_shouldHandleEllipsis(t){var n=+this.fontSize(),r=this.lineHeight()*n,i=this.attrs.height,o=i!==vp&&i!==void 0,a=this.padding(),s=i-a*2,l=this.wrap(),c=l!==$A;return!c||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+HS)<i;s||(a.text=a.text.slice(0,a.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+HS)}}getStrokeScaleEnabled(){return!0}}fr.prototype._fillFunc=zbe;fr.prototype._strokeFunc=Fbe;fr.prototype.className=Tbe;fr.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];hr(fr);j.overWriteSetter(fr,"width",a_());j.overWriteSetter(fr,"height",a_());j.addGetterSetter(fr,"fontFamily","Arial");j.addGetterSetter(fr,"fontSize",12,ze());j.addGetterSetter(fr,"fontStyle",J$);j.addGetterSetter(fr,"fontVariant",J$);j.addGetterSetter(fr,"padding",0,ze());j.addGetterSetter(fr,"align",Q$);j.addGetterSetter(fr,"verticalAlign",Lbe);j.addGetterSetter(fr,"lineHeight",1,ze());j.addGetterSetter(fr,"wrap",Rbe);j.addGetterSetter(fr,"ellipsis",!1,ws());j.addGetterSetter(fr,"letterSpacing",0,ze());j.addGetterSetter(fr,"text","",W0());j.addGetterSetter(fr,"textDecoration","");var $be="",tH="normal";function nH(e){e.fillText(this.partialText,0,0)}function rH(e){e.strokeText(this.partialText,0,0)}class Qr extends Ae{constructor(t){super(t),this.dummyCanvas=se.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 se.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height
|
||
|
* @license React
|
||
|
* react-reconciler.production.min.js
|
||
|
*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/var ESe=function(t){var n={},r=C.exports,i=Dp.exports,o=Object.assign;function a(d){for(var f="https://reactjs.org/docs/error-decoder.html?invariant="+d,v=1;v<arguments.length;v++)f+="&args[]="+encodeURIComponent(arguments[v]);return"Minified React error #"+d+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,l=Symbol.for("react.element"),c=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"),T=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),O=Symbol.iterator;function D(d){return d===null||typeof d!="object"?null:(d=O&&d[O]||d["@@iterator"],typeof d=="function"?d:null)}function N(d){if(d==null)return null;if(typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case p:return"Fragment";case c:return"Portal";case m:return"Profiler";case g:return"StrictMode";case T:return"Suspense";case E:return"SuspenseList"}if(typeof d=="object")switch(d.$$typeof){case b:return(d.displayName||"Context")+".Consumer";case y:return(d._context.displayName||"Context")+".Provider";case S:var f=d.render;return d=d.displayName,d||(d=f.displayName||f.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case k:return f=d.displayName||null,f!==null?f:N(d.type)||"Memo";case L:f=d._payload,d=d._init;try{return N(d(f))}catch{}}return null}function z(d){var f=d.type;switch(d.tag){case 24:return"Cache";case 9:return(f.displayName||"Context")+".Consumer";case 10:return(f._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return d=f.render,d=d.displayName||d.name||"",f.displayName||(d!==""?"ForwardRef("+d+")":"ForwardRef");case 7:return"Fragment";case 5:return f;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return N(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 W(d){var f=d,v=d;if(d.alternate)for(;f.return;)f=f.return;else{d=f;do f=d,(f.flags&4098)!==0&&(v=f.return),d=f.return;while(d)}return f.tag===3?v:null}function V(d){if(W(d)!==d)throw Error(a(188))}function q(d){var f=d.alternate;if(!f){if(f=W(d),f===null)throw Error(a(188));return f!==d?null:d}for(var v=d,_=f;;){var P=v.return;if(P===null)break;var M=P.alternate;if(M===null){if(_=P.return,_!==null){v=_;continue}break}if(P.child===M.child){for(M=P.child;M;){if(M===v)return V(P),d;if(M===_)return V(P),f;M=M.sibling}throw Error(a(188))}if(v.return!==_.return)v=P,_=M;else{for(var $=!1,te=P.child;te;){if(te===v){$=!0,v=P,_=M;break}if(te===_){$=!0,_=P,v=M;break}te=te.sibling}if(!$){for(te=M.child;te;){if(te===v){$=!0,v=M,_=P;break}if(te===_){$=!0,_=M,v=P;break}te=te.sibling}if(!$)throw Error(a(189))}}if(v.alternate!==_)throw Error(a(190))}if(v.tag!==3)throw Error(a(188));return v.stateNode.current===v?d:f}function he(d){return d=q(d),d!==null?de(d):null}function de(d){if(d.tag===5||d.tag===6)return d;for(d=d.child;d!==null;){var f=de(d);if(f!==null)return f;d=d.sibling}return null}function ve(d){if(d.tag===5||d.tag===6)return d;for(d=d.child;d!==null;){if(d.tag!==4){var f=ve(d);if(f!==null)return f}d=d.sibling}return null}var Ee=Array.isArray,xe=t.getPublicInstance,Z=t.getRootHostContext,U=t.getChildHostContext,ee=t.prepareForCommit,ae=t.resetAfterCommit,X=t.createInstance,me=t.appendInitialChild,ye=t.finalizeInitialChildren,Se=t.prepareUpdate,He=t.shouldSetTextContent,je=t.createTextInstance,ut=t.scheduleTimeout,qe=t.cancelTimeout,ot=t.noTimeout,tt=t.isPrimaryRenderer,at=t.supportsMutation,Rt=t.supp
|
||
|
`+Ll+d}var Ps=!1;function Il(d,f){if(!d||Ps)return"";Ps=!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(Ne){var _=Ne}Reflect.construct(d,[],f)}else{try{f.call()}catch(Ne){_=Ne}d.call(f.prototype)}else{try{throw Error()}catch(Ne){_=Ne}d()}}catch(Ne){if(Ne&&_&&typeof Ne.stack=="string"){for(var P=Ne.stack.split(`
|
||
|
`),M=_.stack.split(`
|
||
|
`),$=P.length-1,te=M.length-1;1<=$&&0<=te&&P[$]!==M[te];)te--;for(;1<=$&&0<=te;$--,te--)if(P[$]!==M[te]){if($!==1||te!==1)do if($--,te--,0>te||P[$]!==M[te]){var le=`
|
||
|
`+P[$].replace(" at new "," at ");return d.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",d.displayName)),le}while(1<=$&&0<=te);break}}}finally{Ps=!1,Error.prepareStackTrace=v}return(d=d?d.displayName||d.name:"")?Al(d):""}var dh=Object.prototype.hasOwnProperty,Iu=[],Ts=-1;function Mo(d){return{current:d}}function Cn(d){0>Ts||(d.current=Iu[Ts],Iu[Ts]=null,Ts--)}function gn(d,f){Ts++,Iu[Ts]=d.current,d.current=f}var Ro={},_r=Mo(Ro),Ur=Mo(!1),Oo=Ro;function Ls(d,f){var v=d.type.contextTypes;if(!v)return Ro;var _=d.stateNode;if(_&&_.__reactInternalMemoizedUnmaskedChildContext===f)return _.__reactInternalMemoizedMaskedChildContext;var P={},M;for(M in v)P[M]=f[M];return _&&(d=d.stateNode,d.__reactInternalMemoizedUnmaskedChildContext=f,d.__reactInternalMemoizedMaskedChildContext=P),P}function Gr(d){return d=d.childContextTypes,d!=null}function ja(){Cn(Ur),Cn(_r)}function md(d,f,v){if(_r.current!==Ro)throw Error(a(168));gn(_r,f),gn(Ur,v)}function Ml(d,f,v){var _=d.stateNode;if(f=f.childContextTypes,typeof _.getChildContext!="function")return v;_=_.getChildContext();for(var P in _)if(!(P in f))throw Error(a(108,z(d)||"Unknown",P));return o({},v,_)}function qa(d){return d=(d=d.stateNode)&&d.__reactInternalMemoizedMergedChildContext||Ro,Oo=_r.current,gn(_r,d),gn(Ur,Ur.current),!0}function vd(d,f,v){var _=d.stateNode;if(!_)throw Error(a(169));v?(d=Ml(d,f,Oo),_.__reactInternalMemoizedMergedChildContext=d,Cn(Ur),Cn(_r),gn(_r,d)):Cn(Ur),gn(Ur,v)}var ci=Math.clz32?Math.clz32:yd,fh=Math.log,hh=Math.LN2;function yd(d){return d>>>=0,d===0?32:31-(fh(d)/hh|0)|0}var As=64,so=4194304;function Is(d){switch(d&-d){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return d&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return d&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return d}}function Rl(d,f){var v=d.pendingLanes;if(v===0)return 0;var _=0,P=d.suspendedLanes,M=d.pingedLanes,$=v&268435455;if($!==0){var te=$&~P;te!==0?_=Is(te):(M&=$,M!==0&&(_=Is(M)))}else $=v&~P,$!==0?_=Is($):M!==0&&(_=Is(M));if(_===0)return 0;if(f!==0&&f!==_&&(f&P)===0&&(P=_&-_,M=f&-f,P>=M||P===16&&(M&4194240)!==0))return f;if((_&4)!==0&&(_|=v&16),f=d.entangledLanes,f!==0)for(d=d.entanglements,f&=_;0<f;)v=31-ci(f),P=1<<v,_|=d[v],f&=~P;return _}function a1(d,f){switch(d){case 1:case 2:case 4:return f+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return f+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Mu(d,f){for(var v=d.suspendedLanes,_=d.pingedLanes,P=d.expirationTimes,M=d.pendingLanes;0<M;){var $=31-ci(M),te=1<<$,le=P[$];le===-1?((te&v)===0||(te&_)!==0)&&(P[$]=a1(te,f)):le<=f&&(d.expiredLanes|=te),M&=~te}}function Ru(d){return d=d.pendingLanes&-1073741825,d!==0?d:d&1073741824?1073741824:0}function xd(){var d=As;return As<<=1,(As&4194240)===0&&(As=64),d}function Ou(d){for(var f=[],v=0;31>v;v++)f.push(d);return f}function ga(d,f,v){d.pendingLanes|=f,f!==536870912&&(d.suspendedLanes=0,d.pingedLanes=0),d=d.eventTimes,f=31-ci(f),d[f]=v}function bd(d,f){var v=d.pendingLanes&~f;d.pendingLanes=f,d.suspendedLanes=0,d.pingedLanes=0,d.expiredLanes&=f,d.mutableReadLanes&=f,d.entangledLanes&=f,f=d.entanglements;var _=d.eventTimes;for(d=d.expirationTimes;0<v;){var P=31-ci(v),M=1<<P;f[P]=0,_[P]=-1,d[P]=-1,v&=~M}}function Ol(d,f){var v=d.entangledLanes|=f;for(d=d.entanglements;v;){var _=31-ci(v),P=1<<_;P&f|d[_]&f&&(d[_]|=f),v&=~P}}var Bt=0;function ph(d){return d&=-d,1<d?4<d?(d&268435455)!==0?16:536870912:4:1}var Nu=i.unstable_scheduleCallback,Du
|
||
|
Error generating stack: `+M.message+`
|
||
|
`+M.stack}return{value:d,source:f,stack:P,digest:null}}function C1(d,f,v){return{value:d,source:null,stack:v??null,digest:f??null}}function tc(d,f){try{console.error(f.value)}catch(v){setTimeout(function(){throw v})}}var Bd=typeof WeakMap=="function"?WeakMap:Map;function _1(d,f,v){v=Za(-1,v),v.tag=3,v.payload={element:null};var _=f.value;return v.callback=function(){Vd||(Vd=!0,Ud=_),tc(d,f)},v}function F(d,f,v){v=Za(-1,v),v.tag=3;var _=d.type.getDerivedStateFromError;if(typeof _=="function"){var P=f.value;v.payload=function(){return _(P)},v.callback=function(){tc(d,f)}}var M=d.stateNode;return M!==null&&typeof M.componentDidCatch=="function"&&(v.callback=function(){tc(d,f),typeof _!="function"&&(Ws===null?Ws=new Set([this]):Ws.add(this));var $=f.stack;this.componentDidCatch(f.value,{componentStack:$!==null?$:""})}),v}function Bl(d,f,v){var _=d.pingCache;if(_===null){_=d.pingCache=new Bd;var P=new Set;_.set(f,P)}else P=_.get(f),P===void 0&&(P=new Set,_.set(f,P));P.has(v)||(P.add(v),d=d2.bind(null,d,f,v),f.then(d,d))}function $d(d){do{var f;if((f=d.tag===13)&&(f=d.memoizedState,f=f!==null?f.dehydrated!==null:!0),f)return d;d=d.return}while(d!==null);return null}function Ui(d,f,v,_,P){return(d.mode&1)===0?(d===f?d.flags|=65536:(d.flags|=128,v.flags|=131072,v.flags&=-52805,v.tag===1&&(v.alternate===null?v.tag=17:(f=Za(-1,1),f.tag=2,Os(v,f,1))),v.lanes|=1),d):(d.flags|=65536,d.lanes=P,d)}var Wt=s.ReactCurrentOwner,Ri=!1;function pi(d,f,v,_){f.child=d===null?Gv(f,null,v,_):Wu(f,d.child,v,_)}function Jv(d,f,v,_,P){v=v.render;var M=f.ref;return $u(f,P),_=m1(d,f,v,_,M,P),v=Gu(),d!==null&&!Ri?(f.updateQueue=d.updateQueue,f.flags&=-2053,d.lanes&=~P,Xa(d,f,P)):(Rn&&v&&di(f),f.flags|=1,pi(d,f,_,P),f.child)}function Ds(d,f,v,_,P){if(d===null){var M=v.type;return typeof M=="function"&&!G1(M)&&M.defaultProps===void 0&&v.compare===null&&v.defaultProps===void 0?(f.tag=15,f.type=M,e2(d,f,M,_,P)):(d=Kd(v.type,null,_,f,f.mode,P),d.ref=f.ref,d.return=f,f.child=d)}if(M=d.child,(d.lanes&P)===0){var $=M.memoizedProps;if(v=v.compare,v=v!==null?v:Nl,v($,_)&&d.ref===f.ref)return Xa(d,f,P)}return f.flags|=1,d=qi(M,_),d.ref=f.ref,d.return=f,f.child=d}function e2(d,f,v,_,P){if(d!==null){var M=d.memoizedProps;if(Nl(M,_)&&d.ref===f.ref)if(Ri=!1,f.pendingProps=_=M,(d.lanes&P)!==0)(d.flags&131072)!==0&&(Ri=!0);else return f.lanes=d.lanes,Xa(d,f,P)}return k1(d,f,v,_,P)}function t2(d,f,v){var _=f.pendingProps,P=_.children,M=d!==null?d.memoizedState:null;if(_.mode==="hidden")if((f.mode&1)===0)f.memoizedState={baseLanes:0,cachePool:null,transitions:null},gn(Bs,Gi),Gi|=v;else{if((v&1073741824)===0)return d=M!==null?M.baseLanes|v:v,f.lanes=f.childLanes=1073741824,f.memoizedState={baseLanes:d,cachePool:null,transitions:null},f.updateQueue=null,gn(Bs,Gi),Gi|=d,null;f.memoizedState={baseLanes:0,cachePool:null,transitions:null},_=M!==null?M.baseLanes:v,gn(Bs,Gi),Gi|=_}else M!==null?(_=M.baseLanes|v,f.memoizedState=null):_=v,gn(Bs,Gi),Gi|=_;return pi(d,f,P,v),f.child}function n2(d,f){var v=f.ref;(d===null&&v!==null||d!==null&&d.ref!==v)&&(f.flags|=512,f.flags|=2097152)}function k1(d,f,v,_,P){var M=Gr(v)?Oo:_r.current;return M=Ls(f,M),$u(f,P),v=m1(d,f,v,_,M,P),_=Gu(),d!==null&&!Ri?(f.updateQueue=d.updateQueue,f.flags&=-2053,d.lanes&=~P,Xa(d,f,P)):(Rn&&_&&di(f),f.flags|=1,pi(d,f,v,P),f.child)}function r2(d,f,v,_,P){if(Gr(v)){var M=!0;qa(f)}else M=!1;if($u(f,P),f.stateNode===null)ba(d,f),Wv(f,v,_),f1(f,v,_,P),_=!0;else if(d===null){var $=f.stateNode,te=f.memoizedProps;$.props=te;var le=$.context,Ne=v.contextType;typeof Ne=="object"&&Ne!==null?Ne=Vi(Ne):(Ne=Gr(v)?Oo:_r.current,Ne=Ls(f,Ne));var Ye=v.getDerivedStateFromProps,Et=typeof Ye=="function"||typeof $.getSnapshotBeforeUpdate=="function";Et||typeof $.UNSAFE_componentWillReceiveProps!="function"&&typeof $.componentWillReceiveProps!="function"||(te!==_||le!==Ne)&&Vv(f,$,_,Ne),Ka=!1;var Ue=f.memoizedState;$.state=Ue,wh(f,_,$,P),le=f.memoizedState,te!==_||Ue!==le||Ur.current||Ka?(typeof Ye=="function"&&(_h(f,v,Ye,_),le=f.memoizedState),(te=Ka||Ad(f,v,te,_,Ue,le,Ne))?(Et||typeof $.UNSAFE_componentWillMount!="function"&
|
||
|
`+(_.join(" > ")+`
|
||
|
|
||
|
No matching component was found for:
|
||
|
`)+d.join(" > ")}return null},n.getPublicRootInstance=function(d){if(d=d.current,!d.child)return null;switch(d.child.tag){case 5:return xe(d.child.stateNode);default:return d.child.stateNode}},n.injectIntoDevTools=function(d){if(d={bundleType:d.bundleType,version:d.version,rendererPackageName:d.rendererPackageName,rendererConfig:d.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:tp,findFiberByHostInstance:d.findFiberByHostInstance||K1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")d=!1;else{var f=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(f.isDisabled||!f.supportsFiber)d=!0;else{try{on=f.inject(d),$t=f}catch{}d=!!f.checkDCE}}return d},n.isAlreadyRendering=function(){return!1},n.observeVisibleRects=function(d,f,v,_){if(!wt)throw Error(a(363));d=D1(d,f);var P=Gt(d,v,_).disconnect;return{disconnect:function(){P()}}},n.registerMutableSourceForHydration=function(d,f){var v=f._getVersion;v=v(f._source),d.mutableSourceEagerHydrationData==null?d.mutableSourceEagerHydrationData=[f,v]:d.mutableSourceEagerHydrationData.push(f,v)},n.runWithPriority=function(d,f){var v=Bt;try{return Bt=d,f()}finally{Bt=v}},n.shouldError=function(){return null},n.shouldSuspend=function(){return!1},n.updateContainer=function(d,f,v,_){var P=f.current,M=ri(),$=Lr(P);return v=j1(v),f.context===null?f.context=v:f.pendingContext=v,f=Za(M,$),f.payload={element:d},_=_===void 0?null:_,_!==null&&(f.callback=_),d=Os(P,f,$),d!==null&&(go(d,P,$,M),Sh(d,P,$)),$},n};(function(e){e.exports=ESe})(aH);const PSe=G8(aH.exports);var d_={exports:{}},sh={};/**
|
||
|
* @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.
|
||
|
*/sh.ConcurrentRoot=1;sh.ContinuousEventPriority=4;sh.DefaultEventPriority=16;sh.DiscreteEventPriority=1;sh.IdleEventPriority=536870912;sh.LegacyRoot=0;(function(e){e.exports=sh})(d_);const UA={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let GA=!1,jA=!1;const f_=".react-konva-event",TSe=`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
|
||
|
`,LSe=`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
|
||
|
`,ASe={};function Cx(e,t,n=ASe){if(!GA&&"zIndex"in t&&(console.warn(LSe),GA=!0),!jA&&t.draggable){var r=t.x!==void 0||t.y!==void 0,i=t.onDragEnd||t.onDragMove;r&&!i&&(console.warn(TSe),jA=!0)}for(var o in n)if(!UA[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 c=!t.hasOwnProperty(o);c&&e.setAttr(o,void 0)}var p=t._useStrictMode,g={},m=!1;const y={};for(var o in t)if(!UA[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),hd(e));for(var l in y)e.on(l+f_,y[l])}function hd(e){if(!et.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const sH={},ISe={};Gf.Node.prototype._applyProps=Cx;function MSe(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),hd(e)}function RSe(e,t,n){let r=Gf[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=Gf.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 Cx(l,o),l}function OSe(e,t,n){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function NSe(e,t,n){return!1}function DSe(e){return e}function zSe(){return null}function FSe(){return null}function BSe(e,t,n,r){return ISe}function $Se(){}function HSe(e){}function WSe(e,t){return!1}function VSe(){return sH}function USe(){return sH}const GSe=setTimeout,jSe=clearTimeout,qSe=-1;function KSe(e,t){return!1}const ZSe=!1,YSe=!0,XSe=!0;function QSe(e,t){t.parent===e?t.moveToTop():e.add(t),hd(e)}function JSe(e,t){t.parent===e?t.moveToTop():e.add(t),hd(e)}function lH(e,t,n){t._remove(),e.add(t),t.setZIndex(n.getZIndex()),hd(e)}function ewe(e,t,n){lH(e,t,n)}function twe(e,t){t.destroy(),t.off(f_),hd(e)}function nwe(e,t){t.destroy(),t.off(f_),hd(e)}function rwe(e,t,n){console.error(`Text components are not yet supported in ReactKonva. You text is: "${n}"`)}function iwe(e,t,n){}function owe(e,t,n,r,i){Cx(e,i,r)}function awe(e){e.hide(),hd(e)}function swe(e){}function lwe(e,t){(t.visible==null||t.visible)&&e.show()}function uwe(e,t){}function cwe(e){}function dwe(){}const fwe=()=>d_.exports.DefaultEventPriority,hwe=Object.freeze(Object.defineProperty({__proto__:null,appendInitialChild:MSe,createInstance:RSe,createTextInstance:OSe,finalizeInitialChildren:NSe,getPublicInstance:DSe,prepareForCommit:zSe,preparePortalMount:FSe,prepareUpdate:BSe,resetAfterCommit:$Se,resetTextContent:HSe,shouldDeprioritizeSubtree:WSe,getRootHostContext:VSe,getChildHostContext:USe,scheduleTimeout:GSe,cancelTimeout:jSe,noTimeout:qSe,shouldSetTextContent:KSe,isPrimaryRenderer:ZSe,warnsIfNotActing:YSe,supportsMutation:XSe,appendChild:QSe,appendChildToContainer:JSe,insertBefore:lH,insertInContainerBefore:ewe,removeChild:twe,removeChildFromContainer:nwe,commitTextUpdate:rwe,commitMount:iwe,commitUpdate:owe,hideInstance:awe,hideTextInstance:swe,unhideInstance:lwe,unhideTextInstance:uwe,clearContainer:cwe,detachDeletedInstance:dwe,getCurrentEventPriority:fwe,now:Dp.exports.unstable_now,idlePriority:Dp.exports.unstable_IdlePriority,run:Dp.exports.unstable_runWithPriority},Symbol.toStringTag,{value:"Module"}));var pwe=Object.defineProperty,gwe=Object.defineProperties,mwe=Object.getOwnPropertyDescriptors,qA=Object.getOwnPropertySymbols,vwe=Object.prototype.hasOwnProperty,ywe=Object.prototype.propertyIsEnumerable,KA=(e,t,n)=>t in e?pwe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ZA=(e,t)=>{for(var n in t||(t={}))vwe.call(t,n)&&KA(e,n,t[n]);if(qA)
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function H9e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function W9e(e){if(Array.isArray(e))return H8(e)}function mI(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 vI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mI(Object(n),!0).forEach(function(r){YH(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function YH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function av(e,t){return G9e(e)||U9e(e,t)||XH(e,t)||V9e()}function V9e(){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 XH(e,t){if(!!e){if(typeof e=="string")return H8(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 H8(e,t)}}function H8(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 U9e(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 G9e(e){if(Array.isArray(e))return e}var j9e="file-invalid-type",q9e="file-too-large",K9e="file-too-small",Z9e="too-many-files",Y9e=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:j9e,message:"File type must be ".concat(n)}},yI=function(t){return{code:q9e,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},xI=function(t){return{code:K9e,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},X9e={code:Z9e,message:"Too many files"};function QH(e,t){var n=e.type==="application/x-moz-file"||B9e(e,t);return[n,n?null:Y9e(t)]}function JH(e,t,n){if(gf(e.size))if(gf(t)&&gf(n)){if(e.size>n)return[!1,yI(n)];if(e.size<t)return[!1,xI(t)]}else{if(gf(t)&&e.size<t)return[!1,xI(t)];if(gf(n)&&e.size>n)return[!1,yI(n)]}return[!0,null]}function gf(e){return e!=null}function Q9e(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 c=QH(l,n),p=av(c,1),g=p[0],m=JH(l,r,i),y=av(m,1),b=y[0],S=s?s(l):null;return g&&b&&!S})}function $4(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Ry(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 bI(e){e.preventDefault()}function J9e(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function eCe(e){return e.indexOf("Edge/")!==-1}function tCe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return J9e(e)||eCe(e)}function el(){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!$4(r)&&s&&s.apply(void 0,[r].concat(o)),$4(r)})}}function nCe(){return"showOpenFilePicker"in window}function rCe(e){if(gf(e)){var t=Object.entries(e).filter(function(n){var r=av(n,2),i=r[0],o=r[1],a=!0;return eW(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(tW))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,r){var i=av(r,2),o=i[0],a=i[1];return vI(vI({},n),{},YH({},o,a))},{});return[{description:"Files",accept:t}]}return e}function iCe(e){if(gf(e))return Object.entries(e).reduce(function(t,n){var r=av(n,2),i=r[0],o=r[1];return[].concat(gI(t),[i],gI(o))},[]).filter(function(t){return eW(t)||tW(t)}).join(",")}function oCe(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function aCe(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function eW(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function tW(e){return/^.*\.[\w]+$/.test(e)}var sCe=["children"],lCe=["open"],uCe=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","o
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hCe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pCe(e){if(Array.isArray(e))return W8(e)}function qS(e,t){return vCe(e)||mCe(e,t)||nW(e,t)||gCe()}function gCe(){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 nW(e,t){if(!!e){if(typeof e=="string")return W8(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 W8(e,t)}}function W8(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 mCe(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 vCe(e){if(Array.isArray(e))return e}function SI(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 sr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SI(Object(n),!0).forEach(function(r){V8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function V8(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H4(e,t){if(e==null)return{};var n=yCe(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 yCe(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 x_=C.exports.forwardRef(function(e,t){var n=e.children,r=H4(e,sCe),i=iW(r),o=i.open,a=H4(i,lCe);return C.exports.useImperativeHandle(t,function(){return{open:o}},[o]),w(C.exports.Fragment,{children:n(sr(sr({},a),{},{open:o}))})});x_.displayName="Dropzone";var rW={disabled:!1,getFilesFromEvent:A9e,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};x_.defaultProps=rW;x_.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 U8={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function iW(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=sr(sr({},rW),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,c=t.onDragEnter,p=t.onDragLeave,g=t.onDragOver,m=t.onDrop,y=t.onDropAccepted,b=t.onDropRejected,S=t.onFileDialogCancel,T=t.onFileDialogOpen,E=t.useFsAccessApi,k=t.autoFocus,L=t.preventDropOnDocument,I=t.noClick,O=t.noKeyboard,D=t.noDrag,N=t.noDragEventsBubbling,z=t.onError,W=t.validator,V=C.exports.useMemo(function(){return iCe(n)},[n]),q=C.exports.useMemo(function(){return rCe(n)},[n]),he=C.exports.useMemo(function(){return typeof T=="function"?T:wI},[T]),de=C.exports.useMemo(function(){return typeof S=="function"?S:wI},[S]),ve=C.exports.useRef(null),Ee=C.exports.useRef(null),xe=C.ex
|
||
|
`+I.message,"");i({title:"Upload failed",description:k,status:"error",isClosable:!0})},[i]),l=C.exports.useCallback(E=>{a(!0);const k={file:E};["img2img","inpainting"].includes(r)&&(k.destination=r),n(VL(k))},[n,r]),c=C.exports.useCallback((E,k)=>{k.forEach(L=>{s(L)}),E.forEach(L=>{l(L)})},[l,s]),{getRootProps:p,getInputProps:g,isDragAccept:m,isDragReject:y,isDragActive:b,open:S}=iW({accept:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg",".png"]},noClick:!0,onDrop:c,onDragOver:()=>a(!0),maxFiles:1});C.exports.useEffect(()=>{const E=k=>{const L=k.clipboardData?.items;if(!L)return;const I=[];for(const N of L)N.kind==="file"&&["image/png","image/jpg"].includes(N.type)&&I.push(N);if(!I.length)return;if(k.stopImmediatePropagation(),I.length>1){i({description:"Multiple images pasted, may only upload one image at a time",status:"error",isClosable:!0});return}const O=I[0].getAsFile();if(!O){i({description:"Unable to load file",status:"error",isClosable:!0});return}const D={file:O};["img2img","inpainting"].includes(r)&&(D.destination=r),n(VL(D))};return document.addEventListener("paste",E),()=>{document.removeEventListener("paste",E)}},[n,i,r]);const T=["img2img","inpainting"].includes(r)?` to ${pf[r].tooltip}`:"";return w(Y7.Provider,{value:S,children:ne("div",{...p({style:{}}),children:[w("input",{...g()}),t,b&&o&&w(bCe,{isDragAccept:m,isDragReject:y,overlaySecondaryText:T,setIsHandlingUpload:a})]})})},wCe=()=>{const e=Xe();return w(Ut,{tooltip:"Show Gallery (G)",tooltipProps:{placement:"top"},"aria-label":"Show Gallery",styleClass:"floating-show-hide-button right",onMouseOver:()=>{e(f3(!0))},children:w(bB,{})})};function CCe(e){return ft({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M32 384h272v32H32zM400 384h80v32h-80zM384 447.5c0 17.949-14.327 32.5-32 32.5-17.673 0-32-14.551-32-32.5v-95c0-17.949 14.327-32.5 32-32.5 17.673 0 32 14.551 32 32.5v95z"}},{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M32 240h80v32H32zM208 240h272v32H208zM192 303.5c0 17.949-14.327 32.5-32 32.5-17.673 0-32-14.551-32-32.5v-95c0-17.949 14.327-32.5 32-32.5 17.673 0 32 14.551 32 32.5v95z"}}]},{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M32 96h272v32H32zM400 96h80v32h-80zM384 159.5c0 17.949-14.327 32.5-32 32.5-17.673 0-32-14.551-32-32.5v-95c0-17.949 14.327-32.5 32-32.5 17.673 0 32 14.551 32 32.5v95z"}}]}]})(e)}const _Ce=St(e=>e.options,e=>{const{shouldPinOptionsPanel:t,shouldShowOptionsPanel:n}=e;return{shouldShowProcessButtons:!t||!n}},{memoizeOptions:{resultEqualityCheck:ht.isEqual}}),kCe=()=>{const e=Xe(),{shouldShowProcessButtons:t}=Me(_Ce);return ne("div",{className:"show-hide-button-options",children:[w(Ut,{tooltip:"Show Options Panel (O)",tooltipProps:{placement:"top"},"aria-label":"Show Options Panel",onClick:()=>{e(x3(!0))},children:w(CCe,{})}),t&&ne(Fn,{children:[w(EB,{iconButton:!0}),w(TB,{}),w(PB,{})]})]})};E9e();const ECe=St([e=>e.gallery,e=>e.options,e=>e.system,Cr],(e,t,n,r)=>{const{shouldShowGallery:i,shouldHoldGalleryOpen:o,shouldPinGallery:a}=e,{shouldShowOptionsPanel:s,shouldHoldOptionsPanelOpen:l,shouldPinOptionsPanel:c}=t,p=ht.reduce(n.model_list,(y,b,S)=>(b.status==="active"&&(y=S),y),""),g=!(i||o&&!a),m=!(s||l&&!c)&&["txt2img","img2img","inpainting"].includes(r);return{modelStatusText:p,shouldShowGalleryButton:g,shouldShowOptionsPanelButton:m}},{memoizeOptions:{resultEqualityCheck:ht.isEqual}}),PCe=()=>{const e=Xe(),{shouldShowGalleryButton:t,shouldShowOptionsPanelButton:n}=Me(ECe);return C.exports.useEffect(()=>{e(Sye())},[e]),w("div",{className:"App",children:ne(SCe,{children:[w(f9e,{}),ne("div",{className:"app-content",children:[w(w9e,{}),w(A6e,{})]}),w("div",{className:"app-console",children:w(k9e,{})}),t&&w(wCe,{}),n&&w(kCe,{})]})})};const oW=lve(jH);ZS.createRoot(document.getElementById("root")).render(w(re.StrictMode,{children:w(zme,{store:jH,children:w(qH,{loading:w(c9e,{}),persistor:oW,children:ne(Cge,{theme:fI,children:[w(cZ,{initialColorMode:fI.config.initialColorMode}),w(PCe,{})]})})})}));
|