InvokeAI/frontend/dist/assets/index.5139e98d.js

624 lines
1.3 MiB
JavaScript
Raw Normal View History

2022-11-23 09:41:39 +00:00
function Yq(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 bs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function K7(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var C={exports:{}},Kt={};/**
* @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 Uv=Symbol.for("react.element"),qq=Symbol.for("react.portal"),Kq=Symbol.for("react.fragment"),Xq=Symbol.for("react.strict_mode"),Zq=Symbol.for("react.profiler"),Qq=Symbol.for("react.provider"),Jq=Symbol.for("react.context"),eK=Symbol.for("react.forward_ref"),tK=Symbol.for("react.suspense"),nK=Symbol.for("react.memo"),rK=Symbol.for("react.lazy"),EE=Symbol.iterator;function iK(e){return e===null||typeof e!="object"?null:(e=EE&&e[EE]||e["@@iterator"],typeof e=="function"?e:null)}var KI={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},XI=Object.assign,ZI={};function o1(e,t,n){this.props=e,this.context=t,this.refs=ZI,this.updater=n||KI}o1.prototype.isReactComponent={};o1.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")};o1.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function QI(){}QI.prototype=o1.prototype;function X7(e,t,n){this.props=e,this.context=t,this.refs=ZI,this.updater=n||KI}var Z7=X7.prototype=new QI;Z7.constructor=X7;XI(Z7,o1.prototype);Z7.isPureReactComponent=!0;var PE=Array.isArray,JI=Object.prototype.hasOwnProperty,Q7={current:null},eO={key:!0,ref:!0,__self:!0,__source:!0};function tO(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)JI.call(t,r)&&!eO.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:Uv,type:e,key:o,ref:a,props:i,_owner:Q7.current}}function oK(e,t){return{$$typeof:Uv,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function J7(e){return typeof e=="object"&&e!==null&&e.$$typeof===Uv}function aK(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var TE=/\/+/g;function JS(e,t){return typeof e=="object"&&e!==null&&e.key!=null?aK(""+e.key):t.toString(36)}function w3(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 Uv:case qq:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+JS(a,0):r,PE(i)?(n="",e!=null&&(n=e.replace(TE,"$&/")+"/"),w3(i,t,n,"",function(u){return u})):i!=null&&(J7(i)&&(i=oK(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(TE,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",PE(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+JS(o,s);a+=w3(o,t,n,l,i)}else if(l=iK(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+JS(o,s++),a+=w3(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 ly(e,t,n){if(e==null)return e;var r=[],i=0;return w3(e,r,"","",function(o){return t.call(n,o,i++)}),r}function sK(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var oo={current:null},C3={transition:null},lK={ReactCurrentDispatcher:oo,ReactCurrentBatchConfig:C3,ReactCurrentOwner:Q7};Kt.Children={map:ly,forEach:function(e,t,n){ly(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ly(e,function(){t++}),t},toArray:function(e){return ly(e,function(t){return t})||[]},only:function(e){if(!J7(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Kt.Component=o1;Kt.Fragment=Kq;Kt.Profiler=Zq;Kt
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(G,X){var ce=G.length;G.push(X);e:for(;0<ce;){var me=ce-1>>>1,Me=G[me];if(0<i(Me,X))G[me]=X,G[ce]=Me,ce=me;else break e}}function n(G){return G.length===0?null:G[0]}function r(G){if(G.length===0)return null;var X=G[0],ce=G.pop();if(ce!==X){G[0]=ce;e:for(var me=0,Me=G.length,xe=Me>>>1;me<xe;){var be=2*(me+1)-1,Ie=G[be],We=be+1,De=G[We];if(0>i(Ie,ce))We<Me&&0>i(De,Ie)?(G[me]=De,G[We]=ce,me=We):(G[me]=Ie,G[be]=ce,me=be);else if(We<Me&&0>i(De,ce))G[me]=De,G[We]=ce,me=We;else break e}}return X}function i(G,X){var ce=G.sortIndex-X.sortIndex;return ce!==0?ce:G.id-X.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],h=1,g=null,m=3,v=!1,b=!1,w=!1,E=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function T(G){for(var X=n(u);X!==null;){if(X.callback===null)r(u);else if(X.startTime<=G)r(u),X.sortIndex=X.expirationTime,t(l,X);else break;X=n(u)}}function M(G){if(w=!1,T(G),!b)if(n(l)!==null)b=!0,ee(O);else{var X=n(u);X!==null&&K(M,X.startTime-G)}}function O(G,X){b=!1,w&&(w=!1,P(z),z=-1),v=!0;var ce=m;try{for(T(X),g=n(l);g!==null&&(!(g.expirationTime>X)||G&&!j());){var me=g.callback;if(typeof me=="function"){g.callback=null,m=g.priorityLevel;var Me=me(g.expirationTime<=X);X=e.unstable_now(),typeof Me=="function"?g.callback=Me:g===n(l)&&r(l),T(X)}else r(l);g=n(l)}if(g!==null)var xe=!0;else{var be=n(u);be!==null&&K(M,be.startTime-X),xe=!1}return xe}finally{g=null,m=ce,v=!1}}var R=!1,N=null,z=-1,V=5,$=-1;function j(){return!(e.unstable_now()-$<V)}function ue(){if(N!==null){var G=e.unstable_now();$=G;var X=!0;try{X=N(!0,G)}finally{X?W():(R=!1,N=null)}}else R=!1}var W;if(typeof k=="function")W=function(){k(ue)};else if(typeof MessageChannel<"u"){var Q=new MessageChannel,ne=Q.port2;Q.port1.onmessage=ue,W=function(){ne.postMessage(null)}}else W=function(){E(ue,0)};function ee(G){N=G,R||(R=!0,W())}function K(G,X){z=E(function(){G(e.unstable_now())},X)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(G){G.callback=null},e.unstable_continueExecution=function(){b||v||(b=!0,ee(O))},e.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<G?Math.floor(1e3/G):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(G){switch(m){case 1:case 2:case 3:var X=3;break;default:X=m}var ce=m;m=X;try{return G()}finally{m=ce}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(G,X){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var ce=m;m=G;try{return X()}finally{m=ce}},e.unstable_scheduleCallback=function(G,X,ce){var me=e.unstable_now();switch(typeof ce=="object"&&ce!==null?(ce=ce.delay,ce=typeof ce=="number"&&0<ce?me+ce:me):ce=me,G){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=ce+Me,G={id:h++,callback:X,priorityLevel:G,startTime:ce,expirationTime:Me,sortIndex:-1},ce>me?(G.sortIndex=ce,t(u,G),n(l)===null&&G===n(u)&&(w?(P(z),z=-1):w=!0,K(M,ce-me))):(G.sortIndex=Me,t(l,G),b||v||(b=!0,ee(O))),G},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(G){var X=m;return function(){var ce=m;m=X;try{return G.apply(this,arguments)}finally{m=ce}}}})(nO);(function(e){e.exports=nO})(u0);/**
* @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 rO=C.exports,da=u0.exports;function Re(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 iO=new Set,Jm={};function hh(e,t){z0(e,t),z0(e+"Capture",t)}function z0(e,t){for(Jm[e]=t,e=0;e<t.length;e++)iO.add(t[e])}var Su=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),e6=Object.prototype.hasOwnProperty,uK=/^[: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]*$/,LE={},AE={};function cK(e){return e6.call(AE,e)?!0:e6.call(LE,e)?!1:uK.test(e)?AE[e]=!0:(LE[e]=!0,!1)}function dK(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 fK(e,t,n,r){if(t===null||typeof t>"u"||dK(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ao(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Ii={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ii[e]=new ao(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ii[t]=new ao(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ii[e]=new ao(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ii[e]=new ao(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ii[e]=new ao(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ii[e]=new ao(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ii[e]=new ao(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ii[e]=new ao(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ii[e]=new ao(e,5,!1,e.toLowerCase(),null,!1,!1)});var e9=/[\-:]([a-z])/g;function t9(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
`+ex+e}var tx=!1;function nx(e,t){if(!e||tx)return"";tx=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
`),o=r.stack.split(`
`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s]){var l=`
`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{tx=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?im(e):""}function hK(e){switch(e.tag){case 5:return im(e.type);case 16:return im("Lazy");case 13:return im("Suspense");case 19:return im("SuspenseList");case 0:case 2:case 15:return e=nx(e.type,!1),e;case 11:return e=nx(e.type.render,!1),e;case 1:return e=nx(e.type,!0),e;default:return""}}function i6(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 Up:return"Fragment";case Vp:return"Portal";case t6:return"Profiler";case r9:return"StrictMode";case n6:return"Suspense";case r6:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case aO:return(e.displayName||"Context")+".Consumer";case oO:return(e._context.displayName||"Context")+".Provider";case i9:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case o9:return t=e.displayName||null,t!==null?t:i6(e.type)||"Memo";case Oc:t=e._payload,e=e._init;try{return i6(e(t))}catch{}}return null}function pK(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 i6(t);case 8:return t===r9?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ld(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function lO(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function gK(e){var t=lO(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 cy(e){e._valueTracker||(e._valueTracker=gK(e))}function uO(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=lO(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function d5(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 o6(e,t){var n=t.checked;return hr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function IE(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ld(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function cO(e,t){t=t.checked,t!=null&&n9(e,"checked",t,!1)}function a6(e,t){cO(e,t);var n=ld(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?s6(e,t.type,n):t.hasOwnProperty("defaultValue")&&s6(e,t.type,ld(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function OE(e,t,n){if(t.hasOwnProperty("val
`).replace(kX,"")}function yy(e,t,n){if(t=nP(t),nP(e)!==t&&n)throw Error(Re(425))}function b5(){}var x6=null,w6=null;function C6(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 _6=typeof setTimeout=="function"?setTimeout:void 0,EX=typeof clearTimeout=="function"?clearTimeout:void 0,rP=typeof Promise=="function"?Promise:void 0,PX=typeof queueMicrotask=="function"?queueMicrotask:typeof rP<"u"?function(e){return rP.resolve(null).then(e).catch(TX)}:_6;function TX(e){setTimeout(function(){throw e})}function gx(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),iv(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);iv(t)}function Zc(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 iP(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 s1=Math.random().toString(36).slice(2),ml="__reactFiber$"+s1,uv="__reactProps$"+s1,xu="__reactContainer$"+s1,k6="__reactEvents$"+s1,LX="__reactListeners$"+s1,AX="__reactHandles$"+s1;function Nf(e){var t=e[ml];if(t)return t;for(var n=e.parentNode;n;){if(t=n[xu]||n[ml]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=iP(e);e!==null;){if(n=e[ml])return n;e=iP(e)}return t}e=n,n=e.parentNode}return null}function Yv(e){return e=e[ml]||e[xu],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function qp(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Re(33))}function I4(e){return e[uv]||null}var E6=[],Kp=-1;function yd(e){return{current:e}}function Qn(e){0>Kp||(e.current=E6[Kp],E6[Kp]=null,Kp--)}function qn(e,t){Kp++,E6[Kp]=e.current,e.current=t}var ud={},Wi=yd(ud),Ao=yd(!1),nh=ud;function B0(e,t){var n=e.type.contextTypes;if(!n)return ud;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Mo(e){return e=e.childContextTypes,e!=null}function S5(){Qn(Ao),Qn(Wi)}function oP(e,t,n){if(Wi.current!==ud)throw Error(Re(168));qn(Wi,t),qn(Ao,n)}function QO(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(Re(108,pK(e)||"Unknown",i));return hr({},n,r)}function x5(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ud,nh=Wi.current,qn(Wi,e),qn(Ao,Ao.current),!0}function aP(e,t,n){var r=e.stateNode;if(!r)throw Error(Re(169));n?(e=QO(e,t,nh),r.__reactInternalMemoizedMergedChildContext=e,Qn(Ao),Qn(Wi),qn(Wi,e)):Qn(Ao),qn(Ao,n)}var fu=null,O4=!1,mx=!1;function JO(e){fu===null?fu=[e]:fu.push(e)}function MX(e){O4=!0,JO(e)}function bd(){if(!mx&&fu!==null){mx=!0;var e=0,t=Tn;try{var n=fu;for(Tn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}fu=null,O4=!1}catch(i){throw fu!==null&&(fu=fu.slice(e+1)),_O(s9,bd),i}finally{Tn=t,mx=!1}}return null}var Xp=[],Zp=0,w5=null,C5=0,Ma=[],Ia=0,rh=null,pu=1,gu="";function _f(e,t){Xp[Zp++]=C5,Xp[Zp++]=w5,w5=e,C5=t}function eR(e,t,n){Ma[Ia++]=pu,Ma[Ia++]=gu,Ma[Ia++]=rh,rh=e;var r=pu;e=gu;var i=32-Cs(r)-1;r&=~(1<<i),n+=1;var o=32-Cs(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,pu=1<<32-Cs(t)+i|n<<i|r,gu=o+e}else pu=1<<o|n<<i|r,gu=e}function m9(e){e.return!==null&&(_f(e,1),eR(e,1,0))}function v9(e){for(;e===w5;)w5=Xp[--Zp],Xp[Zp]=null,C5=Xp[--Zp],Xp[Zp]=null;for(;e===rh;)rh=Ma[--Ia],Ma[Ia]=null,gu=Ma[--Ia],Ma[Ia]=null,pu=Ma[--Ia],Ma[Ia]=null}var sa=null,aa=null,ir=!1,ys=null;function tR(e,t){var n=Na(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 xx(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function I6(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var $X=typeof WeakMap=="function"?WeakMap:Map;function LR(e,t,n){n=vu(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){M5||(M5=!0,W6=r),I6(e,t)},n}function AR(e,t,n){n=vu(-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(){I6(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){I6(e,t),typeof r!="function"&&(Jc===null?Jc=new Set([this]):Jc.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function mP(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new $X;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=eZ.bind(null,e,t,n),t.then(e,e))}function vP(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 yP(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=vu(-1,1),t.tag=2,Qc(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var HX=Mu.ReactCurrentOwner,Lo=!1;function Ji(e,t,n,r){t.child=e===null?lR(t,null,n,r):$0(t,e.child,n,r)}function bP(e,t,n,r,i){n=n.render;var o=t.ref;return p0(t,i),r=T9(e,t,n,r,o,i),n=L9(),e!==null&&!Lo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Cu(e,t,i)):(ir&&n&&m9(t),t.flags|=1,Ji(e,t,r,i),t.child)}function SP(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!F9(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,MR(e,t,o,r,i)):(e=O3(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:av,n(a,r)&&e.ref===t.ref)return Cu(e,t,i)}return t.flags|=1,e=td(o,r),e.ref=t.ref,e.return=t,t.child=e}function MR(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(av(o,r)&&e.ref===t.ref)if(Lo=!1,t.pendingProps=r=o,(e.lanes&i)!==0)(e.flags&131072)!==0&&(Lo=!0);else return t.lanes=e.lanes,Cu(e,t,i)}return O6(e,t,n,r,i)}function IR(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},qn(e0,na),na|=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,qn(e0,na),na|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,qn(e0,na),na|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,qn(e0,na),na|=r;return Ji(e,t,i,n),t.child}function OR(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function O6(e,t,n,r,i){var o=Mo(n)?nh:Wi.current;return o=B0(t,o),p0(t,i),n=T9(e,t,n,r,o,i),r=L9(),e!==null&&!Lo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Cu(e,t,i)):(ir&&r&&m9(t),t.flags|=1,Ji(e,t,n,i),t.child)}function xP(e,t,n,r,i){if(Mo(n)){var o=!0;x5(t)}else o=!1;if(p0(t,i),t.stateNode===null)A3(e,t),aR(t,n,r),M6(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=$a(u):(u=Mo(n)?nh:Wi.current,u=B0(t,u));var h=n.getDerivedStateFromProps,g=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function";g||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==u)&&fP(t,a,r,u),Rc=!1;var m=t.memoizedState;a.state=m,E5(t,r,a,i),l=t.memoizedState,s!==r||m!==l||Ao.current||Rc?(typeof h=="function"&&(A6(t,n,h,r),l=t.memoizedState),(s=Rc||dP(t,n,s,r,m,l,u))?(g||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="f
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var dZ=C.exports,fZ=Symbol.for("react.element"),hZ=Symbol.for("react.fragment"),pZ=Object.prototype.hasOwnProperty,gZ=dZ.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,mZ={key:!0,ref:!0,__self:!0,__source:!0};function nN(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)pZ.call(t,r)&&!mZ.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:fZ,type:e,key:o,ref:a,props:i,_owner:gZ.current}}U4.Fragment=hZ;U4.jsx=nN;U4.jsxs=nN;(function(e){e.exports=U4})(V4);const Ln=V4.exports.Fragment,x=V4.exports.jsx,J=V4.exports.jsxs;var U9=C.exports.createContext({});U9.displayName="ColorModeContext";function Kv(){const e=C.exports.useContext(U9);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var Ey={light:"chakra-ui-light",dark:"chakra-ui-dark"};function vZ(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?Ey.dark:Ey.light),document.body.classList.remove(r?Ey.light:Ey.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 yZ="chakra-ui-color-mode";function bZ(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 SZ=bZ(yZ),NP=()=>{};function DP(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function rN(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:i,disableTransitionOnChange:o}={},colorModeManager:a=SZ}=e,s=i==="dark"?"dark":"light",[l,u]=C.exports.useState(()=>DP(a,s)),[h,g]=C.exports.useState(()=>DP(a)),{getSystemTheme:m,setClassName:v,setDataset:b,addListener:w}=C.exports.useMemo(()=>vZ({preventTransition:o}),[o]),E=i==="system"&&!l?h:l,P=C.exports.useCallback(M=>{const O=M==="system"?m():M;u(O),v(O==="dark"),b(O),a.set(O)},[a,m,v,b]);ks(()=>{i==="system"&&g(m())},[]),C.exports.useEffect(()=>{const M=a.get();if(M){P(M);return}if(i==="system"){P("system");return}P(s)},[a,s,i,P]);const k=C.exports.useCallback(()=>{P(E==="dark"?"light":"dark")},[E,P]);C.exports.useEffect(()=>{if(!!r)return w(P)},[r,w,P]);const T=C.exports.useMemo(()=>({colorMode:t??E,toggleColorMode:t?NP:k,setColorMode:t?NP:P,forced:t!==void 0}),[E,k,P,t]);return x(U9.Provider,{value:T,children:n})}rN.displayName="ColorModeProvider";var j6={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=800,o=16,a=9007199254740991,s="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",h="[object Boolean]",g="[object Date]",m="[object Error]",v="[object Function]",b="[object GeneratorFunction]",w="[object Map]",E="[object Number]",P="[object Null]",k="[object Object]",T="[object Proxy]",M="[object RegExp]",O="[object Set]",R="[object String]",N="[object Undefined]",z="[object WeakMap]",V="[object ArrayBuffer]",$="[object DataView]",j="[object Float32Array]",ue="[object Float64Array]",W="[object Int8Array]",Q="[object Int16Array]",ne="[object Int32Array]",ee="[object Uint8Array]",K="[object Uint8ClampedArray]",G="[object Uint16Array]",X="
* 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 gi=typeof Symbol=="function"&&Symbol.for,X9=gi?Symbol.for("react.element"):60103,Z9=gi?Symbol.for("react.portal"):60106,X4=gi?Symbol.for("react.fragment"):60107,Z4=gi?Symbol.for("react.strict_mode"):60108,Q4=gi?Symbol.for("react.profiler"):60114,J4=gi?Symbol.for("react.provider"):60109,eb=gi?Symbol.for("react.context"):60110,Q9=gi?Symbol.for("react.async_mode"):60111,tb=gi?Symbol.for("react.concurrent_mode"):60111,nb=gi?Symbol.for("react.forward_ref"):60112,rb=gi?Symbol.for("react.suspense"):60113,dJ=gi?Symbol.for("react.suspense_list"):60120,ib=gi?Symbol.for("react.memo"):60115,ob=gi?Symbol.for("react.lazy"):60116,fJ=gi?Symbol.for("react.block"):60121,hJ=gi?Symbol.for("react.fundamental"):60117,pJ=gi?Symbol.for("react.responder"):60118,gJ=gi?Symbol.for("react.scope"):60119;function ma(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case X9:switch(e=e.type,e){case Q9:case tb:case X4:case Q4:case Z4:case rb:return e;default:switch(e=e&&e.$$typeof,e){case eb:case nb:case ob:case ib:case J4:return e;default:return t}}case Z9:return t}}}function CN(e){return ma(e)===tb}Mn.AsyncMode=Q9;Mn.ConcurrentMode=tb;Mn.ContextConsumer=eb;Mn.ContextProvider=J4;Mn.Element=X9;Mn.ForwardRef=nb;Mn.Fragment=X4;Mn.Lazy=ob;Mn.Memo=ib;Mn.Portal=Z9;Mn.Profiler=Q4;Mn.StrictMode=Z4;Mn.Suspense=rb;Mn.isAsyncMode=function(e){return CN(e)||ma(e)===Q9};Mn.isConcurrentMode=CN;Mn.isContextConsumer=function(e){return ma(e)===eb};Mn.isContextProvider=function(e){return ma(e)===J4};Mn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===X9};Mn.isForwardRef=function(e){return ma(e)===nb};Mn.isFragment=function(e){return ma(e)===X4};Mn.isLazy=function(e){return ma(e)===ob};Mn.isMemo=function(e){return ma(e)===ib};Mn.isPortal=function(e){return ma(e)===Z9};Mn.isProfiler=function(e){return ma(e)===Q4};Mn.isStrictMode=function(e){return ma(e)===Z4};Mn.isSuspense=function(e){return ma(e)===rb};Mn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===X4||e===tb||e===Q4||e===Z4||e===rb||e===dJ||typeof e=="object"&&e!==null&&(e.$$typeof===ob||e.$$typeof===ib||e.$$typeof===J4||e.$$typeof===eb||e.$$typeof===nb||e.$$typeof===hJ||e.$$typeof===pJ||e.$$typeof===gJ||e.$$typeof===fJ)};Mn.typeOf=ma;(function(e){e.exports=Mn})(wN);var _N=wN.exports,mJ={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},vJ={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},kN={};kN[_N.ForwardRef]=mJ;kN[_N.Memo]=vJ;var yJ=!0;function bJ(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var EN=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||yJ===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},PN=function(t,n,r){EN(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 SJ(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 xJ={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 jee(e){const t=$N().toHexString();return!e||Vee(e)?t:e.string&&e.colors?qee(e.string,e.colors):e.string&&!e.colors?Yee(e.string):e.colors&&!e.string?Kee(e.colors):t}function Yee(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 qee(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 Kee(e){return e[Math.floor(Math.random()*e.length)]}function bt(e,t){return n=>n.colorMode==="dark"?t:e}function t8(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function Xee(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function UN(e){return Xee(e)&&e.reference?e.reference:String(e)}var lb=(e,...t)=>t.map(UN).join(` ${e} `).replace(/calc/g,""),sT=(...e)=>`calc(${lb("+",...e)})`,lT=(...e)=>`calc(${lb("-",...e)})`,oC=(...e)=>`calc(${lb("*",...e)})`,uT=(...e)=>`calc(${lb("/",...e)})`,cT=e=>{const t=UN(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:oC(t,-1)},hu=Object.assign(e=>({add:(...t)=>hu(sT(e,...t)),subtract:(...t)=>hu(lT(e,...t)),multiply:(...t)=>hu(oC(e,...t)),divide:(...t)=>hu(uT(e,...t)),negate:()=>hu(cT(e)),toString:()=>e.toString()}),{add:sT,subtract:lT,multiply:oC,divide:uT,negate:cT});function Zee(e){return!Number.isInteger(parseFloat(e.toString()))}function Qee(e,t="-"){return e.replace(/\s+/g,t)}function GN(e){const t=Qee(e.toString());return t.includes("\\.")?e:Zee(e)?t.replace(".","\\."):e}function Jee(e,t=""){return[t,GN(e)].filter(Boolean).join("-")}function ete(e,t){return`var(${GN(e)}${t?`, ${t}`:""})`}function tte(e,t=""){return`--${Jee(e,t)}`}function ni(e,t){const n=tte(e,t?.prefix);return{variable:n,reference:ete(n,nte(t?.fallback))}}function nte(e){return typeof e=="string"?e:e?.reference}var{definePartsStyle:rte,defineMultiStyleConfig:ite}=Jn(eee.keys),ote={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},ate={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},ste={pt:"2",px:"4",pb:"5"},lte={fontSize:"1.25em"},ute=rte({container:ote,button:ate,panel:ste,icon:lte}),cte=ite({baseStyle:ute}),{definePartsStyle:Qv,defineMultiStyleConfig:dte}=Jn(tee.keys),ua=Dn("alert-fg"),_u=Dn("alert-bg"),fte=Qv({container:{bg:_u.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:ua.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:ua.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function n8(e){const{theme:t,colorScheme:n}=e,r=G0(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}var hte=Qv(e=>{const{colorScheme:t}=e,n=n8(e);return{container:{[ua.variable]:`colors.${t}.500`,[_u.variable]:n.light,_dark:{[ua.variable]:`colors.${t}.200`,[_u.variable]:n.dark}}}}),pte=Qv(e=>{const{colorScheme:t}=e,n=n8(e);return{container:{[ua.variable]:`colors.${t}.500`,[_u.variable]:n.light,_dark:{[ua.variable]:`colors.${t}.200`,[_u.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:ua.reference}}}),gte=Qv(e=>{const{colorScheme:t}=e,n=n8(e);return{container:{[ua.variable]:`colors.${t}.500`,[_u.variable]:n.light,_dark:{[ua.variable]:`colors.${t}.200`,[_u.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:ua.reference}}}),mte=Qv(e=>{const{colorScheme:t}=e;return{container:{[ua.variable]:"colors.white",[_u.variable]:`colors.${t}.500`,_dark:{[ua.variable]:"colors.gray.900",[_u.variable]:`colors.${t}.200`},color:ua.reference}}}),vte={subtle:hte,"left-accent":pte,"top-accent":gte,solid:mte},yte=dte({baseStyle:fte,variants:vte,defaultProps:{variant:"subtle",colorScheme:"blue"}}),jN={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:
to right,
transparent 0%,
${to(n,a)} 50%,
transparent 100%
)`;return{...!r&&i&&o,...r?{bgImage:s}:{bgColor:a}}},hie={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},pie=e=>({bg:bt("gray.100","whiteAlpha.300")(e)}),gie=e=>({transitionProperty:"common",transitionDuration:"slow",...fie(e)}),mie=um(e=>({label:hie,filledTrack:gie(e),track:pie(e)})),vie={xs:um({track:{h:"1"}}),sm:um({track:{h:"2"}}),md:um({track:{h:"3"}}),lg:um({track:{h:"4"}})},yie=die({sizes:vie,baseStyle:mie,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:bie,definePartsStyle:F3}=Jn(mee.keys),Sie=e=>{var t;const n=(t=io(F5.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"}}}},xie=F3(e=>{var t,n,r,i;return{label:(n=(t=F5).baseStyle)==null?void 0:n.call(t,e).label,container:(i=(r=F5).baseStyle)==null?void 0:i.call(r,e).container,control:Sie(e)}}),wie={md:F3({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:F3({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:F3({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},Cie=bie({baseStyle:xie,sizes:wie,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:_ie,definePartsStyle:kie}=Jn(vee.keys),Oy=Dn("select-bg"),gT,Eie={...(gT=mn.baseStyle)==null?void 0:gT.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Oy.reference,[Oy.variable]:"colors.white",_dark:{[Oy.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Oy.reference}},Pie={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},Tie=kie({field:Eie,icon:Pie}),Ry={paddingInlineEnd:"8"},mT,vT,yT,bT,ST,xT,wT,CT,Lie={lg:{...(mT=mn.sizes)==null?void 0:mT.lg,field:{...(vT=mn.sizes)==null?void 0:vT.lg.field,...Ry}},md:{...(yT=mn.sizes)==null?void 0:yT.md,field:{...(bT=mn.sizes)==null?void 0:bT.md.field,...Ry}},sm:{...(ST=mn.sizes)==null?void 0:ST.sm,field:{...(xT=mn.sizes)==null?void 0:xT.sm.field,...Ry}},xs:{...(wT=mn.sizes)==null?void 0:wT.xs,field:{...(CT=mn.sizes)==null?void 0:CT.xs.field,...Ry},icon:{insetEnd:"1"}}},Aie=_ie({baseStyle:Tie,sizes:Lie,variants:mn.variants,defaultProps:mn.defaultProps}),Bx=Dn("skeleton-start-color"),Fx=Dn("skeleton-end-color"),Mie={[Bx.variable]:"colors.gray.100",[Fx.variable]:"colors.gray.400",_dark:{[Bx.variable]:"colors.gray.800",[Fx.variable]:"colors.gray.600"},background:Bx.reference,borderColor:Fx.reference,opacity:.7,borderRadius:"sm"},Iie={baseStyle:Mie},$x=Dn("skip-link-bg"),Oie={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[$x.variable]:"colors.white",_dark:{[$x.variable]:"colors.gray.700"},bg:$x.reference}},Rie={baseStyle:Oie},{defineMultiStyleConfig:Nie,definePartsStyle:ub}=Jn(yee.keys),wv=Dn("slider-thumb-size"),Cv=Dn("slider-track-size"),Bc=Dn("slider-bg"),Die=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...t8({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},zie=e=>({...t8({orientation:e.orientation,horizontal:{h:Cv.reference},vertical:{w:Cv.reference}}),overflow:"hidden",borderRadius:"sm",[Bc.variable]:"colors.gray.200",_dark:{[Bc.variable]:"colors.whiteAlpha.200"},_disabled:{[Bc.variable]:"colors.gray.300",_dark:{[Bc.variable]:"colors.whiteAlpha.300"}},bg:Bc.reference}),Bie=e=>{const{orientation:t}=e;return{...t8({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:wv.reference,h:wv.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"}}},Fie=e=>{const{
[data-motion-pop-id="${n}"] {
position: absolute !important;
width: ${o}px !important;
height: ${a}px !important;
top: ${s}px !important;
left: ${l}px !important;
}
`),()=>{document.head.removeChild(u)}},[t]),x(Ede,{isPresent:t,childRef:r,sizeRef:i,children:C.exports.cloneElement(e,{ref:r})})}const ew=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const s=pb(Tde),l=C.exports.useId(),u=C.exports.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:h=>{s.set(h,!0);for(const g of s.values())if(!g)return;r&&r()},register:h=>(s.set(h,!1),()=>s.delete(h))}),o?void 0:[n]);return C.exports.useMemo(()=>{s.forEach((h,g)=>s.set(g,!1))},[n]),C.exports.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=x(Pde,{isPresent:n,children:e})),x(c1.Provider,{value:u,children:e})};function Tde(){return new Map}const $p=e=>e.key||"";function Lde(e,t){e.forEach(n=>{const r=$p(n);t.set(r,n)})}function Ade(e){const t=[];return C.exports.Children.forEach(e,n=>{C.exports.isValidElement(n)&&t.push(n)}),t}const xd=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait",nz(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=kde();const l=C.exports.useContext(a8).forceRender;l&&(s=l);const u=Az(),h=Ade(e);let g=h;const m=new Set,v=C.exports.useRef(g),b=C.exports.useRef(new Map).current,w=C.exports.useRef(!0);if(W5(()=>{w.current=!1,Lde(h,b),v.current=g}),g8(()=>{w.current=!0,b.clear(),m.clear()}),w.current)return x(Ln,{children:g.map(T=>x(ew,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:a,children:T},$p(T)))});g=[...g];const E=v.current.map($p),P=h.map($p),k=E.length;for(let T=0;T<k;T++){const M=E[T];P.indexOf(M)===-1&&m.add(M)}return a==="wait"&&m.size&&(g=[]),m.forEach(T=>{if(P.indexOf(T)!==-1)return;const M=b.get(T);if(!M)return;const O=E.indexOf(T),R=()=>{b.delete(T),m.delete(T);const N=v.current.findIndex(z=>z.key===T);if(v.current.splice(N,1),!m.size){if(v.current=h,u.current===!1)return;s(),r&&r()}};g.splice(O,0,x(ew,{isPresent:!1,onExitComplete:R,custom:t,presenceAffectsLayout:o,mode:a,children:M},$p(M)))}),g=g.map(T=>{const M=T.key;return m.has(M)?T:x(ew,{isPresent:!0,presenceAffectsLayout:o,mode:a,children:T},$p(T))}),tz!=="production"&&a==="wait"&&g.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),x(Ln,{children:m.size?g:g.map(T=>C.exports.cloneElement(T))})};var vl=function(){return vl=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},vl.apply(this,arguments)};function Mz(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 f1(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(h){try{u(r.next(h))}catch(g){a(g)}}function l(h){try{u(r.throw(h))}catch(g){a(g)}}function u(h){h.done?o(h.value):i(h.value).then(s,l)}u((r=r.apply(e,t||[])).next())})}function h1(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(h){return l([u,h])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[
`})}function efe(e){xb({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function Vf(e){const{isOpen:t,isDisabled:n}=M8(),{reduceMotion:r}=I8(),i=i2("chakra-accordion__icon",e.className),o=wb(),a={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:r?void 0:"transform 0.2s",transformOrigin:"center",...o.icon};return x(va,{viewBox:"0 0 24 24","aria-hidden":!0,className:i,__css:a,...e,children:x("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}Vf.displayName="AccordionIcon";var Uf=ke(function(t,n){const{children:r,className:i}=t,{htmlProps:o,...a}=Xde(t),l={...wb().container,overflowAnchor:"none"},u=C.exports.useMemo(()=>a,[a]);return ae.createElement(Ude,{value:u},ae.createElement(Se.div,{ref:n,...o,className:i2("chakra-accordion__item",i),__css:l},typeof r=="function"?r({isExpanded:!!a.isOpen,isDisabled:!!a.isDisabled}):r))});Uf.displayName="AccordionItem";var Gf=ke(function(t,n){const{className:r,motionProps:i,...o}=t,{reduceMotion:a}=I8(),{getPanelProps:s,isOpen:l}=M8(),u=s(o,n),h=i2("chakra-accordion__panel",r),g=wb();a||delete u.hidden;const m=ae.createElement(Se.div,{...u,__css:g.panel,className:h});return a?m:x(Iz,{in:l,...i,children:m})});Gf.displayName="AccordionPanel";var Cb=ke(function({children:t,reduceMotion:n,...r},i){const o=Oi("Accordion",r),a=vn(r),{htmlProps:s,descendants:l,...u}=qde(a),h=C.exports.useMemo(()=>({...u,reduceMotion:!!n}),[u,n]);return ae.createElement(Gde,{value:l},ae.createElement(Kde,{value:h},ae.createElement(Vde,{value:o},ae.createElement(Se.div,{ref:i,...s,className:i2("chakra-accordion",r.className),__css:o.root},t))))});Cb.displayName="Accordion";var tfe=(...e)=>e.filter(Boolean).join(" "),nfe=Sd({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),o2=ke((e,t)=>{const n=so("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:a="transparent",className:s,...l}=vn(e),u=tfe("chakra-spinner",s),h={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:a,borderLeftColor:a,animation:`${nfe} ${o} linear infinite`,...n};return ae.createElement(Se.div,{ref:t,__css:h,className:u,...l},r&&ae.createElement(Se.span,{srOnly:!0},r))});o2.displayName="Spinner";var _b=(...e)=>e.filter(Boolean).join(" ");function rfe(e){return x(va,{viewBox:"0 0 24 24",...e,children:x("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function ife(e){return x(va,{viewBox:"0 0 24 24",...e,children:x("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function VL(e){return x(va,{viewBox:"0 0 24 24",...e,children:x("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var[ofe,afe]=_n({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[sfe,O8]=_n({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),Dz={info:{icon:ife,colorScheme:"blue"},warning:{icon:VL,colorScheme:"orange"},success:{icon:rfe,colorScheme:"green"},error:{icon:VL,colorScheme:"red"},loading:{icon:o2,colorScheme:"blue"}};function lfe(e){return Dz[e].colorScheme}function ufe(e){return Dz[e].icon}var zz=ke(function(t,n){const{status:r="info",addRole:i=!0,...o}=vn(t),a=t.colorScheme??lfe(r),s=Oi("Alert",{...t,colorScheme:a}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",over
:root {
--chakra-vh: 100vh;
}
@supports (height: -webkit-fill-available) {
:root {
--chakra-vh: -webkit-fill-available;
}
}
@supports (height: -moz-fill-available) {
:root {
--chakra-vh: -moz-fill-available;
}
}
@supports (height: 100dvh) {
:root {
--chakra-vh: 100dvh;
}
}
`,Yfe=()=>x(ab,{styles:Yz}),qfe=()=>x(ab,{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;
}
${Yz}
`});function Qf(e,t,n,r){const i=dr(n);return C.exports.useEffect(()=>{const o=typeof e=="function"?e():e??document;if(!(!n||!o))return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[t,e,r,i,n]),()=>{const o=typeof e=="function"?e():e??document;o?.removeEventListener(t,i,r)}}function Kfe(e){return"current"in e}var qz=()=>typeof window<"u";function Xfe(){const e=navigator.userAgentData;return e?.platform??navigator.platform}var Zfe=e=>qz()&&e.test(navigator.vendor),Qfe=e=>qz()&&e.test(Xfe()),Jfe=()=>Qfe(/mac|iphone|ipad|ipod/i),ehe=()=>Jfe()&&Zfe(/apple/i);function the(e){const{ref:t,elements:n,enabled:r}=e,i=()=>{var o;return((o=t.current)==null?void 0:o.ownerDocument)??document};Qf(i,"pointerdown",o=>{if(!ehe()||!r)return;const a=o.target,l=(n??[t]).some(u=>{const h=Kfe(u)?u.current:u;return h?.contains(a)||h===a});i().activeElement!==a&&l&&(o.preventDefault(),a.focus())})}var nhe=UJ?C.exports.useLayoutEffect:C.exports.useEffect;function ZL(e,t=[]){const n=C.exports.useRef(e);return nhe(()=>{n.current=e}),C.exports.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function rhe(e,t){const n=e!==void 0;return[n,n&&typeof e<"u"?e:t]}function ihe(e,t){const n=C.exports.useId();return C.exports.useMemo(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}function Mv(e={}){const{onClose:t,onOpen:n,isOpen:r,id:i}=e,o=ZL(n),a=ZL(t),[s,l]=C.exports.useState(e.defaultIsOpen||!1),[u,h]=rhe(r,s),g=ihe(i,"disclosure"),m=C.exports.useCallback(()=>{u||l(!1),a?.()},[u,a]),v=C.exports.useCallback(()=>{u||l(!0),o?.()},[u,o]),b=C.exports.useCallback(()=>{(h?m:v)()},[h,v,m]);return{isOpen:!!h,onOpen:v,onClose:m,onToggle:b,isControlled:u,getButtonProps:(w={})=>({...w,"aria-expanded":h,"aria-controls":g,onClick:GJ(w.onClick,b)}),getDisclosureProps:(w={})=>({...w,hidden:!h,id:g})}}function F8(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var $8=ke(function(t,n){const{htmlSize:r,...i}=t,o=Oi("Input",i),a=vn(i),s=R8(a),l=Nr("chakra-input",t.className);return ae.createElement(Se.input,{size:r,...s,__css:o.field,ref:n,className:l})});$8.displayName="Input";$8.id="Input";var[ohe,Kz]=_n({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "<InputGroup />" `}),ahe=ke(function(t,n){const r=Oi("Input",t),{children:i,className:o,...a}=vn(t),s=Nr("chakra-input__group",o),l={},u=Eb(i),h=r.field;u.forEach(m=>{!r||(h&&m.type.id==="InputLeftElement"&&(l.paddingStart=h.height??h.h),h&&m.type.id==="InputRightElement"&&(l.paddingEnd=h.height??h.h),m.type.id==="InputRightAddon"&&(l.borderEndRadius=0),m.type.id==="InputLeftAddon"&&(l.borderStartRadius=0))});const g=u.map(m=>{var v,b;const w=F8({size:((v=m.props)==null?void 0:v.size)||t.size,variant:((b=m.props)==null?void 0:b.variant)||t.variant});return m.type.id!=="Input"?C.exports.cloneElement(m,w):C.exports.cloneElement(m,Object.assign(w,l,m.props))});return ae.createElement(Se.div,{className:s,ref:n,__css:{width:"100%",display:"flex",position:"relative"},...a},x(ohe,{value:r,children:g}))});ahe.displayName="InputGroup";var she={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},lhe=Se("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),H8=ke(function(t,n){const{placement:r="left",...i}=t,o=she[r]??{},a=Kz();return x(lhe,{ref:n,...i,__css:{...a.addon,...o}})});H8.displayName="InputAddon";var Xz=ke(function(t,n){return x(H8,{ref:n,placement:"left",...t,className:Nr("chakra-input__left-addon",t.className)})});Xz.displayName="InputLeftAddon";Xz.id="InputLeftAddon";var Zz=ke(function(t,n){return x(H8,{ref:n,placement:"right",...t,className:Nr("chakra-input__right-addon",t.className)})});Zz.displayName="InputRightAddon";Zz.id="InputRightAddon";var uhe=Se("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),Ab=ke(function(t,n){const{placement:
.`.concat(N1e,` {
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(j3,` {
right: `).concat(s,"px ").concat(r,`;
}
.`).concat(Y3,` {
margin-right: `).concat(s,"px ").concat(r,`;
}
.`).concat(j3," .").concat(j3,` {
right: 0 `).concat(r,`;
}
.`).concat(Y3," .").concat(Y3,` {
margin-right: 0 `).concat(r,`;
}
body {
`).concat(D1e,": ").concat(s,`px;
}
`)},q1e=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r,o=C.exports.useMemo(function(){return G1e(i)},[i]);return x(j1e,{styles:Y1e(o,!t,i,n?"":"!important")})},jC=!1;if(typeof window<"u")try{var jy=Object.defineProperty({},"passive",{get:function(){return jC=!0,!0}});window.addEventListener("test",jy,jy),window.removeEventListener("test",jy,jy)}catch{jC=!1}var Mp=jC?{passive:!1}:!1,K1e=function(e){return e.tagName==="TEXTAREA"},vF=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!K1e(e)&&n[t]==="visible")},X1e=function(e){return vF(e,"overflowY")},Z1e=function(e){return vF(e,"overflowX")},vA=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=yF(e,n);if(r){var i=bF(e,n),o=i[1],a=i[2];if(o>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Q1e=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},J1e=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},yF=function(e,t){return e==="v"?X1e(t):Z1e(t)},bF=function(e,t){return e==="v"?Q1e(t):J1e(t)},ege=function(e,t){return e==="h"&&t==="rtl"?-1:1},tge=function(e,t,n,r,i){var o=ege(e,window.getComputedStyle(t).direction),a=o*r,s=n.target,l=t.contains(s),u=!1,h=a>0,g=0,m=0;do{var v=bF(e,s),b=v[0],w=v[1],E=v[2],P=w-E-o*b;(b||P)&&yF(e,s)&&(g+=P,m+=b),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(h&&(i&&g===0||!i&&a>g)||!h&&(i&&m===0||!i&&-a>m))&&(u=!0),u},Yy=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},yA=function(e){return[e.deltaX,e.deltaY]},bA=function(e){return e&&"current"in e?e.current:e},nge=function(e,t){return e[0]===t[0]&&e[1]===t[1]},rge=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},ige=0,Ip=[];function oge(e){var t=C.exports.useRef([]),n=C.exports.useRef([0,0]),r=C.exports.useRef(),i=C.exports.useState(ige++)[0],o=C.exports.useState(function(){return mF()})[0],a=C.exports.useRef(e);C.exports.useEffect(function(){a.current=e},[e]),C.exports.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var w=AC([e.lockRef.current],(e.shards||[]).map(bA),!0).filter(Boolean);return w.forEach(function(E){return E.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),w.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=C.exports.useCallback(function(w,E){if("touches"in w&&w.touches.length===2)return!a.current.allowPinchZoom;var P=Yy(w),k=n.current,T="deltaX"in w?w.deltaX:k[0]-P[0],M="deltaY"in w?w.deltaY:k[1]-P[1],O,R=w.target,N=Math.abs(T)>Math.abs(M)?"h":"v";if("touches"in w&&N==="h"&&R.type==="range")return!1;var z=vA(N,R);if(!z)return!0;if(z?O=N:(O=N==="v"?"h":"v",z=vA(N,R)),!z)return!1;if(!r.current&&"changedTouches"in w&&(T||M)&&(r.current=O),!O)return!0;var V=r.current||O;return tge(V,E,w,V==="h"?T:M,!0)},[]),l=C.exports.useCallback(function(w){var E=w;if(!(!Ip.length||Ip[Ip.length-1]!==o)){var P="deltaY"in E?yA(E):Yy(E),k=t.current.filter(function(O){return O.name===E.type&&O.target===E.target&&nge(O.delta,P)})[0];if(k&&k.should){E.cancelable&&E.preventDefault();return}if(!k){var T=(a.current.shards||[]).map(bA).filter(Boolean).filter(function(O){return O.contains(E.target)}),M=T.length>0?s(E,T[0]):!a.current.noIsolation;M&&E.cancelable&&E.preventDefault()}}},[]),u=C.exports.useCallback(function(w,E,P,k){var T={name:w,delta:E,target:P,should:k};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(M){return M!==T})},1)},[]),h=C.exports.useCallback(function(w){n.current=Yy(w),r.current=void 0},[]),g=C.exports.useCallback(function(w){u(w.type,yA(w),w.target,s(w,e.lockRef.current))},[]),m=C.exports.useCallback(function(w){u(w.type,Yy(w),w.target,s(w,e.lockRef.current))},[]);C.exports.useEffect(function(){return Ip.push(o),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:m}),document.addEventListener("wheel",l,Mp),document.addEventListener("touchmove",l,Mp),document.addEventListener("touchstart",h,Mp),function(){Ip=Ip.filter(function(w){return w!==o}),document.removeEventListener("wheel",l,Mp),document.removeEventListener("touchmove",l,Mp),document.removeEventListener("touchstart",h,Mp)}},[]);var v=e.removeScrollBar,b=e.inert;return J(Ln,{children:[b?x(o,{styles:rge(i)}):null,v?x(q1e,{gapMode:"margin"}):null]})}const age=F0e(gF,oge);var SF=C.exports.forwardRef(function(e,t){return x(Ib,{...vl({},e,{ref:t,sideCar:age})})});SF.classNames=Ib.classNames;const xF=SF;var bh=(...e)=>e.filter(Boolean).join(" ");function cm(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var sge=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}},YC=new sge;function lge(e,t){C.exports.useEffect(()=>(t&&YC.add(e),()=>{YC.remove(e)}),[t,e])}function uge(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:i=!0,closeOnEsc:o=!0,useInert:a=!0,onOverlayClick:s,onEsc:l}=e,u=C.exports.useRef(null),h=C.exports.useRef(null),[g,m,v]=dge(r,"chakra-modal","chakra-modal--header","chakra-modal--body");cge(u,t&&a),lge(u,t);const b=C.exports.useRef(null),w=C.exports.useCallback(z=>{b.current=z.target},[]),E=C.exports.useCallback(z=>{z.key==="Escape"&&(z.stopPropagation(),o&&n?.(),l?.())},[o,n,l]),[P,k]=C.exports.useState(!1),[T,M]=C.exports.useState(!1),O=C.exports.useCallback((z={},V=null)=>({role:"dialog",...z,ref:Wn(V,u),id:g,tabIndex:-1,"aria-modal":!0,"aria-labelledby":P?m:void 0,"aria-describedby":T?v:void 0,onClick:cm(z.onClick,$=>$.stopPropagation())}),[v,T,g,m,P]),R=C.exports.useCallback(z=>{z.stopPropagation(),b.current===z.target&&(!YC.isTopModal(u)||(i&&n?.(),
* @license React
* use-sync-external-store-shim.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var e1=C.exports;function m2e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var v2e=typeof Object.is=="function"?Object.is:m2e,y2e=e1.useState,b2e=e1.useEffect,S2e=e1.useLayoutEffect,x2e=e1.useDebugValue;function w2e(e,t){var n=t(),r=y2e({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return S2e(function(){i.value=n,i.getSnapshot=t,_w(i)&&o({inst:i})},[e,n,t]),b2e(function(){return _w(i)&&o({inst:i}),e(function(){_w(i)&&o({inst:i})})},[e]),x2e(n),n}function _w(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!v2e(e,n)}catch{return!0}}function C2e(e,t){return t()}var _2e=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?C2e:w2e;p$.useSyncExternalStore=e1.useSyncExternalStore!==void 0?e1.useSyncExternalStore:_2e;(function(e){e.exports=p$})(h$);var g$={exports:{}},m$={};/**
* @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 $b=C.exports,k2e=h$.exports;function E2e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var P2e=typeof Object.is=="function"?Object.is:E2e,T2e=k2e.useSyncExternalStore,L2e=$b.useRef,A2e=$b.useEffect,M2e=$b.useMemo,I2e=$b.useDebugValue;m$.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=L2e(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=M2e(function(){function l(v){if(!u){if(u=!0,h=v,v=r(v),i!==void 0&&a.hasValue){var b=a.value;if(i(b,v))return g=b}return g=v}if(b=g,P2e(h,v))return b;var w=r(v);return i!==void 0&&i(b,w)?b:(h=v,g=w)}var u=!1,h,g,m=n===void 0?null:n;return[function(){return l(t())},m===null?void 0:function(){return l(m())}]},[t,n,r,i]);var s=T2e(e,o[0],o[1]);return A2e(function(){a.hasValue=!0,a.value=s},[s]),I2e(s),s};(function(e){e.exports=m$})(g$);function O2e(e){e()}let v$=O2e;const R2e=e=>v$=e,N2e=()=>v$,pd=C.exports.createContext(null);function y$(){return C.exports.useContext(pd)}const D2e=()=>{throw new Error("uSES not initialized!")};let b$=D2e;const z2e=e=>{b$=e},B2e=(e,t)=>e===t;function F2e(e=pd){const t=e===pd?y$:()=>C.exports.useContext(e);return function(r,i=B2e){const{store:o,subscription:a,getServerState:s}=t(),l=b$(a.addNestedSub,o.getState,s||o.getState,r,i);return C.exports.useDebugValue(l),l}}const $2e=F2e();var H2e={exports:{}},In={};/**
* @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 M_=Symbol.for("react.element"),I_=Symbol.for("react.portal"),Hb=Symbol.for("react.fragment"),Wb=Symbol.for("react.strict_mode"),Vb=Symbol.for("react.profiler"),Ub=Symbol.for("react.provider"),Gb=Symbol.for("react.context"),W2e=Symbol.for("react.server_context"),jb=Symbol.for("react.forward_ref"),Yb=Symbol.for("react.suspense"),qb=Symbol.for("react.suspense_list"),Kb=Symbol.for("react.memo"),Xb=Symbol.for("react.lazy"),V2e=Symbol.for("react.offscreen"),S$;S$=Symbol.for("react.module.reference");function qa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case M_:switch(e=e.type,e){case Hb:case Vb:case Wb:case Yb:case qb:return e;default:switch(e=e&&e.$$typeof,e){case W2e:case Gb:case jb:case Xb:case Kb:case Ub:return e;default:return t}}case I_:return t}}}In.ContextConsumer=Gb;In.ContextProvider=Ub;In.Element=M_;In.ForwardRef=jb;In.Fragment=Hb;In.Lazy=Xb;In.Memo=Kb;In.Portal=I_;In.Profiler=Vb;In.StrictMode=Wb;In.Suspense=Yb;In.SuspenseList=qb;In.isAsyncMode=function(){return!1};In.isConcurrentMode=function(){return!1};In.isContextConsumer=function(e){return qa(e)===Gb};In.isContextProvider=function(e){return qa(e)===Ub};In.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===M_};In.isForwardRef=function(e){return qa(e)===jb};In.isFragment=function(e){return qa(e)===Hb};In.isLazy=function(e){return qa(e)===Xb};In.isMemo=function(e){return qa(e)===Kb};In.isPortal=function(e){return qa(e)===I_};In.isProfiler=function(e){return qa(e)===Vb};In.isStrictMode=function(e){return qa(e)===Wb};In.isSuspense=function(e){return qa(e)===Yb};In.isSuspenseList=function(e){return qa(e)===qb};In.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Hb||e===Vb||e===Wb||e===Yb||e===qb||e===V2e||typeof e=="object"&&e!==null&&(e.$$typeof===Xb||e.$$typeof===Kb||e.$$typeof===Ub||e.$$typeof===Gb||e.$$typeof===jb||e.$$typeof===S$||e.getModuleId!==void 0)};In.typeOf=qa;(function(e){e.exports=In})(H2e);function U2e(){const e=N2e();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 VA={notify(){},get:()=>[]};function G2e(e,t){let n,r=VA;function i(g){return l(),r.subscribe(g)}function o(){r.notify()}function a(){h.onStateChange&&h.onStateChange()}function s(){return Boolean(n)}function l(){n||(n=t?t.addNestedSub(a):e.subscribe(a),r=U2e())}function u(){n&&(n(),n=void 0,r.clear(),r=VA)}const h={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:s,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>r};return h}const j2e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Y2e=j2e?C.exports.useLayoutEffect:C.exports.useEffect;function q2e({store:e,context:t,children:n,serverState:r}){const i=C.exports.useMemo(()=>{const s=G2e(e);return{store:e,subscription:s,getServerState:r?()=>r:void 0}},[e,r]),o=C.exports.useMemo(()=>e.getState(),[e]);return Y2e(()=>{const{subscription:s}=i;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),o!==e.getState()&&s.notifyNestedSubs(),()=>{s.tryUnsubscribe(),s.onStateChange=void 0}},[i,o]),x((t||pd).Provider,{value:i,children:n})}function x$(e=pd){const t=e===pd?y$:()=>C.exports.useContext(e);return function(){const{store:r}=t();return r}}const K2e=x$();function X2e(e=pd){const t=e===pd?K2e:x$(e);return function(){return t().dispatch}}const Z2e=X2e();z2e(g$.exports.useSyncExternalStoreWithSelector);R2e(Dl.exports.unstable_batchedUpdates);var O_="persist:",w$="persist/FLUSH",R_="persist/REHYDRATE",C$="persist/PAUSE",_$="persist/PERSIST",k$="persist/PURGE",E$="persist/REGISTER",Q2e=-1;function X3(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?X3=function(n){return typeof n}:X3=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symb
`;if(!(0,e.isString)(Q)||Q.length<1)throw new Error(`${K} Name (key) of reducer is required. ${G}`);if(!W||!W.length)return;const{duplicates:X,subsets:ce}=(0,e.findDuplicatesAndSubsets)(W);if(X.length>1)throw new Error(`${K} Duplicated paths.
${JSON.stringify(X)}
${G}`);if(ce.length>1)throw new Error(`${K} You are trying to persist an entire property and also some of its subset.
${JSON.stringify(ce)}
${G}`)};e.singleTransformValidator=z;const V=function(W){if(!(0,e.isArray)(W))return;const Q=W?.map(ne=>ne.deepPersistKey).filter(ne=>ne)||[];if(Q.length){const ne=Q.filter((ee,K)=>Q.indexOf(ee)!==K);if(ne.length)throw new Error(`${t.PACKAGE_NAME}: found duplicated keys in transforms creators. You can createWhitelist or createBlacklist for a specific root reducer key only once. Duplicated keys among createWhitelist and createBlacklist transforms are not allowed.
Duplicates: ${JSON.stringify(ne)}`)}};e.transformsValidator=V;const $=function({whitelist:W,blacklist:Q}){if(W&&W.length&&Q&&Q.length)throw new Error(`${t.PACKAGE_NAME}: you should not define a whitelist and blacklist in parallel. It is allowed to use only one of these lists per config.`);if(W){const{duplicates:ne,subsets:ee}=(0,e.findDuplicatesAndSubsets)(W);(0,e.throwError)({duplicates:ne,subsets:ee},"whitelist")}if(Q){const{duplicates:ne,subsets:ee}=(0,e.findDuplicatesAndSubsets)(Q);(0,e.throwError)({duplicates:ne,subsets:ee},"blacklist")}};e.configValidator=$;const j=function({duplicates:W,subsets:Q},ne){if(W.length)throw new Error(`${t.PACKAGE_NAME}: duplicates of paths found in your ${ne}.
${JSON.stringify(W)}`);if(Q.length)throw new Error(`${t.PACKAGE_NAME}: subsets of some parent keys found in your ${ne}. You must decide if you want to persist an entire path or its specific subset.
${JSON.stringify(Q)}`)};e.throwError=j;const ue=function(W){return(0,e.isArray)(W)?W.filter(e.unique).reduce((Q,ne)=>{const ee=ne.split("."),K=ee[0],G=ee.slice(1).join(".")||void 0,X=Q.filter(me=>Object.keys(me)[0]===K)[0],ce=X?Object.values(X)[0]:void 0;return X||Q.push({[K]:G?[G]:void 0}),X&&!ce&&G&&(X[K]=[G]),X&&ce&&G&&ce.push(G),Q},[]):[]};e.getRootKeysGroup=ue})(A$);(function(e){var t=bs&&bs.__rest||function(g,m){var v={};for(var b in g)Object.prototype.hasOwnProperty.call(g,b)&&m.indexOf(b)<0&&(v[b]=g[b]);if(g!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,b=Object.getOwnPropertySymbols(g);w<b.length;w++)m.indexOf(b[w])<0&&Object.prototype.propertyIsEnumerable.call(g,b[w])&&(v[b[w]]=g[b[w]]);return v};Object.defineProperty(e,"__esModule",{value:!0}),e.getPersistConfig=e.getTransforms=e.createBlacklist=e.createWhitelist=e.autoMergeDeep=void 0;const n=A$,r=ch,i=z_,o=function(g,m,v={}){const b=v.whitelist||null,w=v.blacklist||null;function E(P){return!!(b&&b.indexOf(P)===-1||w&&w.indexOf(P)!==-1)}return{in:(P,k,T)=>!E(k)&&g?g(P,k,T):P,out:(P,k,T)=>!E(k)&&m?m(P,k,T):P,deepPersistKey:b&&b[0]}},a=(g,m,v,{debug:b,whitelist:w,blacklist:E,transforms:P})=>{if(w||E)throw new Error("State reconciler autoMergeDeep uses custom transforms instead of old whitelist or blacklist config properties. Please use createWhitelist or createBlacklist transforms.");(0,n.transformsValidator)(P);const k=(0,n.cloneDeep)(v);let T=g;if(T&&(0,n.isObjectLike)(T)){const M=(0,n.difference)(m,v);(0,n.isEmpty)(M)||(T=(0,n.mergeDeep)(g,M,{preserveUndefined:!0}),b&&console.log(`${r.PACKAGE_NAME}/autoMergeDeep: sub state of your state was modified by reducer during rehydration. Values from reducer will be kept: ${JSON.stringify(M)}`)),Object.keys(T).forEach(O=>{if(O!=="_persist"){if((0,n.isObjectLike)(k[O])){k[O]=(0,n.mergeDeep)(k[O],T[O]);return}k[O]=T[O]}})}return b&&T&&(0,n.isObjectLike)(T)&&console.log(`${r.PACKAGE_NAME}/autoMergeDeep: rehydrated keys ${JSON.stringify(T)}`),k};e.autoMergeDeep=a;const s=(g,m)=>((0,n.singleTransformValidator)(m,g,i.ConfigType.WHITELIST),o(v=>{if(!m||!m.length)return v;let b=null,w;return m.forEach(E=>{const P=E.split(".");w=(0,n.path)(v,P),typeof w>"u"&&(0,n.isIntegerString)(P[P.length-1])&&(w=r.PLACEHOLDER_UNDEFINED);const k=(0,n.assocPath)(P,w),T=(0,n.isArray)(k)?[]:{};b=(0,n.mergeDeep)(b||T,k,{preservePlaceholder:!0})}),b||v},v=>(0,n.preserveUndefined)(v,m,i.ConfigType.WHITELIST),{whitelist:[g]}));e.createWhitelist=s;const l=(g,m)=>((0,n.singleTransformValidator)(m,g,i.ConfigType.BLACKLIST),o(v=>{if(!m||!m.length)return;const b=(0,n.preserveUndefined)(v,m,i.ConfigType.BLACKLIST,!0);return m.map(E=>E.split(".")).reduce((E,P)=>(0,n.dissocPath)(E,P),b)},v=>(0,n.preserveUndefined)(v,m,i.ConfigType.BLACKLIST),{whitelist:[g]}));e.createBlacklist=l;const u=function(g,m){return m.map(v=>{const b=Object.keys(v)[0],w=v[b];return g===i.ConfigType.WHITELIST?(0,e.createWhitelist)(b,w):(0,e.createBlacklist)(b,w)})};e.getTransforms=u;const h=g=>{var{key:m,whitelist:v,blacklist:b,storage:w,transforms:E,rootReducer:P}=g,k=t(g,["key","whitelist","blacklist","storage","transforms","rootReducer"]);(0,n.configValidator)({whitelist:v,blacklist:b});const T=(0,n.getRootKeysGroup)(v),M=(0,n.getRootKeysGroup)(b),O=Object.keys(P(void 0,{type:""})),R=T.map(ue=>Object.keys(ue)[0]),N=M.map(ue=>Object.keys(ue)[0]),z=O.filter(ue=>R.indexOf(ue)===-1&&N.indexOf(ue)===-1),V=(0,e.getTransforms)(i.ConfigType.WHITELIST,T),$=(0,e.getTransforms)(i.ConfigType.BLACKLIST,M),j=(0,n.isArray)(v)?z.map(ue=>(0,e.createBlacklist)(ue)):[];return Object.assign(Object.assign({},k),{key:m,storage:w,transforms:[...V,...$,...j,...E||[]],stateReconciler:e.autoMergeDeep})};e.getPersistConfig=h})(L$);const Q3=e=>e.length===1?e[0].prompt:e.map(t=>`${t.prompt}:${t.weight}`).join(" "),Tye=e=>{const r=e.split(",").map(i=>i.split(":")).map(i=>({seed:Number(i[0]),weight:Number(i[1])}));return B_(r)?r:!1},B_=e=>Boolean(typeof e=="string"?Tye(e):e.length&&!e.some(t=>{const{seed:n,weight:r}=t,i=!isNaN(parseInt(n.toString(),10)),o=!isNaN(parseInt(r.toString(),10
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,h="__lodash_placeholder__",g=1,m=2,v=4,b=1,w=2,E=1,P=2,k=4,T=8,M=16,O=32,R=64,N=128,z=256,V=512,$=30,j="...",ue=800,W=16,Q=1,ne=2,ee=3,K=1/0,G=9007199254740991,X=17976931348623157e292,ce=0/0,me=4294967295,Me=me-1,xe=me>>>1,be=[["ary",N],["bind",E],["bindKey",P],["curry",T],["curryRight",M],["flip",V],["partial",O],["partialRight",R],["rearg",z]],Ie="[object Arguments]",We="[object Array]",De="[object AsyncFunction]",Qe="[object Boolean]",st="[object Date]",Ct="[object DOMException]",ht="[object Error]",ut="[object Function]",vt="[object GeneratorFunction]",Ee="[object Map]",Je="[object Number]",Lt="[object Null]",it="[object Object]",gt="[object Promise]",an="[object Proxy]",_t="[object RegExp]",Ut="[object Set]",sn="[object String]",yn="[object Symbol]",Oe="[object Undefined]",Xe="[object WeakMap]",Xt="[object WeakSet]",Yt="[object ArrayBuffer]",_e="[object DataView]",It="[object Float32Array]",ze="[object Float64Array]",ot="[object Int8Array]",ln="[object Int16Array]",Bn="[object Int32Array]",He="[object Uint8Array]",ct="[object Uint8ClampedArray]",tt="[object Uint16Array]",Nt="[object Uint32Array]",Zt=/\b__p \+= '';/g,er=/\b(__p \+=) '' \+/g,lo=/(__e\(.*?\)|\b__t\)) \+\n'';/g,mi=/&(?:amp|lt|gt|quot|#39);/g,Os=/[&<>"']/g,k1=RegExp(mi.source),ya=RegExp(Os.source),Lh=/<%-([\s\S]+?)%>/g,E1=/<%([\s\S]+?)%>/g,$u=/<%=([\s\S]+?)%>/g,Ah=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Mh=/^\w*$/,Do=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Id=/[\\^$.*+?()[\]{}|]/g,P1=RegExp(Id.source),Hu=/^\s+/,Od=/\s/,T1=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Rs=/\{\n\/\* \[wrapped with (.+)\] \*/,Wu=/,? & /,L1=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,A1=/[()=,{}\[\]\/\s]/,M1=/\\(\\)?/g,I1=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ka=/\w*$/,O1=/^[-+]0x[0-9a-f]+$/i,R1=/^0b[01]+$/i,N1=/^\[object .+?Constructor\]$/,D1=/^0o[0-7]+$/i,z1=/^(?:0|[1-9]\d*)$/,B1=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ns=/($^)/,F1=/['\n\r\u2028\u2029\\]/g,Xa="\\ud800-\\udfff",Hl="\\u0300-\\u036f",Wl="\\ufe20-\\ufe2f",Ds="\\u20d0-\\u20ff",Vl=Hl+Wl+Ds,Ih="\\u2700-\\u27bf",Vu="a-z\\xdf-\\xf6\\xf8-\\xff",zs="\\xac\\xb1\\xd7\\xf7",zo="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",En="\\u2000-\\u206f",bn=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Bo="A-Z\\xc0-\\xd6\\xd8-\\xde",kr="\\ufe0e\\ufe0f",Gr=zs+zo+En+bn,Fo="['\u2019]",Bs="["+Xa+"]",jr="["+Gr+"]",Za="["+Vl+"]",Rd="\\d+",Ul="["+Ih+"]",Qa="["+Vu+"]",Nd="[^"+Xa+Gr+Rd+Ih+Vu+Bo+"]",vi="\\ud83c[\\udffb-\\udfff]",Oh="(?:"+Za+"|"+vi+")",Rh="[^"+Xa+"]",Dd="(?:\\ud83c[\\udde6-\\uddff]){2}",Fs="[\\ud800-\\udbff][\\udc00-\\udfff]",uo="["+Bo+"]",$s="\\u200d",Gl="(?:"+Qa+"|"+Nd+")",$1="(?:"+uo+"|"+Nd+")",Uu="(?:"+Fo+"(?:d|ll|m|re|s|t|ve))?",Gu="(?:"+Fo+"(?:D|LL|M|RE|S|T|VE))?",zd=Oh+"?",ju="["+kr+"]?",ba="(?:"+$s+"(?:"+[Rh,Dd,Fs].join("|")+")"+ju+zd+")*",Bd="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",jl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ht=ju+zd+ba,Nh="(?:"+[Ul,Dd,Fs].join("|")+")"+Ht,Yu="(?:"+[Rh+Za+"?",Za,Dd,Fs,Bs].join("|")+")",qu=RegExp(Fo,"g"),Dh=RegExp(Za,"g"),$o=RegExp(vi+"(?="+vi+")|"+Yu+Ht,"g"),Un=RegExp([uo+"?"+Qa+"+"+Uu+"(?="+[jr,uo,"$"].join("|")+")",$1+"+"+Gu+"(?="+[jr,uo+Gl,"$"].join("|")+")",uo+"?"+Gl+"+"+Uu,uo+"+"+Gu,jl,Bd,Rd,Nh].join("|"),"g"),Fd=RegExp("["+$s+Xa+Vl+kr+"]"),zh=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$d=["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"],Bh=-1,un={};
/* [wrapped with `+p+`] */
`)}function kU(c){return Rt(c)||yf(c)||!!(Q1&&c&&c[Q1])}function nu(c,p){var S=typeof c;return p=p??G,!!p&&(S=="number"||S!="symbol"&&z1.test(c))&&c>-1&&c%1==0&&c<p}function Ki(c,p,S){if(!lr(S))return!1;var A=typeof p;return(A=="number"?bo(S)&&nu(p,S.length):A=="string"&&p in S)?ls(S[p],c):!1}function RS(c,p){if(Rt(c))return!1;var S=typeof c;return S=="number"||S=="symbol"||S=="boolean"||c==null||Zo(c)?!0:Mh.test(c)||!Ah.test(c)||p!=null&&c in cn(p)}function EU(c){var p=typeof c;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?c!=="__proto__":c===null}function NS(c){var p=ve(c),S=B[p];if(typeof S!="function"||!(p in Gt.prototype))return!1;if(c===S)return!0;var A=se(S);return!!A&&c===A[0]}function PU(c){return!!nc&&nc in c}var TU=tr?ru:QS;function Lg(c){var p=c&&c.constructor,S=typeof p=="function"&&p.prototype||Sn;return c===S}function zk(c){return c===c&&!lr(c)}function Bk(c,p){return function(S){return S==null?!1:S[c]===p&&(p!==n||c in cn(S))}}function LU(c){var p=ry(c,function(A){return S.size===u&&S.clear(),A}),S=p.cache;return p}function AU(c,p){var S=c[1],A=p[1],D=S|A,F=D<(E|P|N),Y=A==N&&S==T||A==N&&S==z&&c[7].length<=p[8]||A==(N|z)&&p[7].length<=p[8]&&S==T;if(!(F||Y))return c;A&E&&(c[2]=p[2],D|=S&E?0:k);var Z=p[3];if(Z){var le=c[3];c[3]=le?Z2(le,Z,p[4]):Z,c[4]=le?Vo(c[3],h):p[4]}return Z=p[5],Z&&(le=c[5],c[5]=le?_g(le,Z,p[6]):Z,c[6]=le?Vo(c[5],h):p[6]),Z=p[7],Z&&(c[7]=Z),A&N&&(c[8]=c[8]==null?p[8]:Kr(c[8],p[8])),c[9]==null&&(c[9]=p[9]),c[0]=p[0],c[1]=D,c}function MU(c){var p=[];if(c!=null)for(var S in cn(c))p.push(S);return p}function IU(c){return jh.call(c)}function Fk(c,p,S){return p=vr(p===n?c.length-1:p,0),function(){for(var A=arguments,D=-1,F=vr(A.length-p,0),Y=ge(F);++D<F;)Y[D]=A[p+D];D=-1;for(var Z=ge(p+1);++D<p;)Z[D]=A[D];return Z[p]=S(Y),yi(c,this,Z)}}function $k(c,p){return p.length<2?c:Ys(c,Ar(p,0,-1))}function OU(c,p){for(var S=c.length,A=Kr(p.length,S),D=_i(c);A--;){var F=p[A];c[A]=nu(F,S)?D[F]:n}return c}function DS(c,p){if(!(p==="constructor"&&typeof c[p]=="function")&&p!="__proto__")return c[p]}var Hk=Vk(df),Ag=ef||function(c,p){return yt.setTimeout(c,p)},zS=Vk(hp);function Wk(c,p,S){var A=p+"";return zS(c,_U(A,RU(xU(A),S)))}function Vk(c){var p=0,S=0;return function(){var A=J1(),D=W-(A-S);if(S=A,D>0){if(++p>=ue)return arguments[0]}else p=0;return c.apply(n,arguments)}}function J2(c,p){var S=-1,A=c.length,D=A-1;for(p=p===n?A:p;++S<p;){var F=uf(S,D),Y=c[F];c[F]=c[S],c[S]=Y}return c.length=p,c}var Uk=LU(function(c){var p=[];return c.charCodeAt(0)===46&&p.push(""),c.replace(Do,function(S,A,D,F){p.push(D?F.replace(M1,"$1"):A||S)}),p});function rl(c){if(typeof c=="string"||Zo(c))return c;var p=c+"";return p=="0"&&1/c==-K?"-0":p}function vf(c){if(c!=null){try{return or.call(c)}catch{}try{return c+""}catch{}}return""}function RU(c,p){return Gn(be,function(S){var A="_."+S[0];p&S[1]&&!Ri(c,A)&&c.push(A)}),c.sort()}function Gk(c){if(c instanceof Gt)return c.clone();var p=new Gi(c.__wrapped__,c.__chain__);return p.__actions__=_i(c.__actions__),p.__index__=c.__index__,p.__values__=c.__values__,p}function NU(c,p,S){(S?Ki(c,p,S):p===n)?p=1:p=vr(Dt(p),0);var A=c==null?0:c.length;if(!A||p<1)return[];for(var D=0,F=0,Y=ge(tf(A/p));D<A;)Y[F++]=Ar(c,D,D+=p);return Y}function DU(c){for(var p=-1,S=c==null?0:c.length,A=0,D=[];++p<S;){var F=c[p];F&&(D[A++]=F)}return D}function zU(){var c=arguments.length;if(!c)return[];for(var p=ge(c-1),S=arguments[0],A=c;A--;)p[A-1]=arguments[A];return xa(Rt(S)?_i(S):[S],Tr(p,1))}var BU=kt(function(c,p){return Mr(c)?mc(c,Tr(p,1,Mr,!0)):[]}),FU=kt(function(c,p){var S=Ea(p);return Mr(S)&&(S=n),Mr(c)?mc(c,Tr(p,1,Mr,!0),Pe(S,2)):[]}),$U=kt(function(c,p){var S=Ea(p);return Mr(S)&&(S=n),Mr(c)?mc(c,Tr(p,1,Mr,!0),n,S):[]});function HU(c,p,S){var A=c==null?0:c.length;return A?(p=S||p===n?1:Dt(p),Ar(c,p<0?0:p,A)):[]}function WU(c,p,S){var A=c==null?0:c.length;return A?(p=S||p===n?1:Dt(p),p=A-p,Ar(c,0,p<0?0:p)):[]}function VU(c,p){return c&&c.length?Cc(c,Pe(p,3),!0,!0):[]}function UU(c,p){return c&&c.length?Cc(c,Pe(p,3),!0):[]}function GU(c,p,S,A){var D=c==null?0:c.length;return D?(S&&ty
`;c.replace(Ue,function(xt,jt,Jt,Qo,Xi,Jo){return Jt||(Jt=Qo),Te+=c.slice(we,Jo).replace(F1,Vs),jt&&(Z=!0,Te+=`' +
__e(`+jt+`) +
'`),Xi&&(le=!0,Te+=`';
`+Xi+`;
__p += '`),Jt&&(Te+=`' +
((__t = (`+Jt+`)) == null ? '' : __t) +
'`),we=Jo+xt.length,xt}),Te+=`';
`;var St=tn.call(p,"variable")&&p.variable;if(!St)Te=`with (obj) {
`+Te+`
}
`;else if(A1.test(St))throw new Et(s);Te=(le?Te.replace(Zt,""):Te).replace(er,"$1").replace(lo,"$1;"),Te="function("+(St||"obj")+`) {
`+(St?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(Z?", __e = _.escape":"")+(le?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+Te+`return __p
}`;var $t=CE(function(){return Qt(F,lt+"return "+Te).apply(n,Y)});if($t.source=Te,WS($t))throw $t;return $t}function eq(c){return xn(c).toLowerCase()}function tq(c){return xn(c).toUpperCase()}function nq(c,p,S){if(c=xn(c),c&&(S||p===n))return Ui(c);if(!c||!(p=Yi(p)))return c;var A=Ni(c),D=Ni(p),F=Wo(A,D),Y=Ja(A,D)+1;return as(A,F,Y).join("")}function rq(c,p,S){if(c=xn(c),c&&(S||p===n))return c.slice(0,Y1(c)+1);if(!c||!(p=Yi(p)))return c;var A=Ni(c),D=Ja(A,Ni(p))+1;return as(A,0,D).join("")}function iq(c,p,S){if(c=xn(c),c&&(S||p===n))return c.replace(Hu,"");if(!c||!(p=Yi(p)))return c;var A=Ni(c),D=Wo(A,Ni(p));return as(A,D).join("")}function oq(c,p){var S=$,A=j;if(lr(p)){var D="separator"in p?p.separator:D;S="length"in p?Dt(p.length):S,A="omission"in p?Yi(p.omission):A}c=xn(c);var F=c.length;if(ql(c)){var Y=Ni(c);F=Y.length}if(S>=F)return c;var Z=S-wa(A);if(Z<1)return A;var le=Y?as(Y,0,Z).join(""):c.slice(0,Z);if(D===n)return le+A;if(Y&&(Z+=le.length-Z),VS(D)){if(c.slice(Z).search(D)){var we,Ce=le;for(D.global||(D=Xd(D.source,xn(Ka.exec(D))+"g")),D.lastIndex=0;we=D.exec(Ce);)var Te=we.index;le=le.slice(0,Te===n?Z:Te)}}else if(c.indexOf(Yi(D),Z)!=Z){var Ue=le.lastIndexOf(D);Ue>-1&&(le=le.slice(0,Ue))}return le+A}function aq(c){return c=xn(c),c&&k1.test(c)?c.replace(mi,L2):c}var sq=nl(function(c,p,S){return c+(S?" ":"")+p.toUpperCase()}),jS=xp("toUpperCase");function wE(c,p,S){return c=xn(c),p=S?n:p,p===n?Vh(c)?Kd(c):U1(c):c.match(p)||[]}var CE=kt(function(c,p){try{return yi(c,n,p)}catch(S){return WS(S)?S:new Et(S)}}),lq=nr(function(c,p){return Gn(p,function(S){S=rl(S),jo(c,S,$S(c[S],c))}),c});function uq(c){var p=c==null?0:c.length,S=Pe();return c=p?$n(c,function(A){if(typeof A[1]!="function")throw new bi(a);return[S(A[0]),A[1]]}):[],kt(function(A){for(var D=-1;++D<p;){var F=c[D];if(yi(F[0],this,A))return yi(F[1],this,A)}})}function cq(c){return Jh(ai(c,g))}function YS(c){return function(){return c}}function dq(c,p){return c==null||c!==c?p:c}var fq=Pg(),hq=Pg(!0);function xo(c){return c}function qS(c){return sr(typeof c=="function"?c:ai(c,g))}function pq(c){return Sc(ai(c,g))}function gq(c,p){return Ks(c,ai(p,g))}var mq=kt(function(c,p){return function(S){return is(S,c,p)}}),vq=kt(function(c,p){return function(S){return is(c,S,p)}});function KS(c,p,S){var A=ci(p),D=rp(p,A);S==null&&!(lr(p)&&(D.length||!A.length))&&(S=p,p=c,c=this,D=rp(p,ci(p)));var F=!(lr(S)&&"chain"in S)||!!S.chain,Y=ru(c);return Gn(D,function(Z){var le=p[Z];c[Z]=le,Y&&(c.prototype[Z]=function(){var we=this.__chain__;if(F||we){var Ce=c(this.__wrapped__),Te=Ce.__actions__=_i(this.__actions__);return Te.push({func:le,args:arguments,thisArg:c}),Ce.__chain__=we,Ce}return le.apply(c,xa([this.value()],arguments))})}),c}function yq(){return yt._===this&&(yt._=K1),this}function XS(){}function bq(c){return c=Dt(c),kt(function(p){return xc(p,c)})}var Sq=Tg($n),xq=Tg(Fn),wq=Tg(Ku);function _E(c){return RS(c)?Ws(rl(c)):os(c)}function Cq(c){return function(p){return c==null?n:Ys(c,p)}}var _q=y(),kq=y(!0);function ZS(){return[]}function QS(){return!1}function Eq(){return{}}function Pq(){return""}function Tq(){return!0}function Lq(c,p){if(c=Dt(c),c<1||c>G)return[];var S=me,A=Kr(c,me);p=Pe(p),c-=me;for(var D=jd(A,p);++S<c;)p(S);return D}function Aq(c){return Rt(c)?$n(c,rl):Zo(c)?[c]:_i(Uk(xn(c)))}function Mq(c){var p=++Zd;return xn(c)+p}var Iq=wp(function(c,p){return c+p},0),Oq=I("ceil"),Rq=wp(function(c,p){return c/p},1),Nq=I("floor");function Dq(c){return c&&c.length?br(c,xo,ip):n}function zq(c,p){return c&&c.length?br(c,Pe(p,2),ip):n}function Bq(c){return Vd(c,xo)}function Fq(c,p){return Vd(c,Pe(p,2))}function $q(c){return c&&c.length?br(c,xo,qs):n}function Hq(c,p){return c&&c.length?br(c,Pe(p,2),qs):n}var Wq=wp(function(c,p){return c*p},1),Vq=I("round"),Uq=wp(function(c,p){return c-p},0);function Gq(c){return c&&c.length?Gd(c,xo):0}function jq(c,p){return c&&c.length?Gd(c,Pe(p,2)):0}return B.after=pj,B.ary=tE,B.assign=tY,B.assignIn=gE,B.assignInWith=sy,B.assignWith=nY,B.at=rY,B.before=nE,B.bind=$S,B.bindAll=lq,B.bindKey=rE,B.castArray=Ej,B.chain=Qk,B.chunk=NU,B.comp
position: relative;
width: -moz-fit-content;
width: fit-content;
height: -moz-fit-content;
height: fit-content;
overflow: hidden;
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Safari */
-khtml-user-select: none; /* Konqueror HTML */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none;
margin: 0;
padding: 0;
}
.transform-component-module_content__2jYgh {
display: flex;
flex-wrap: wrap;
width: -moz-fit-content;
width: fit-content;
height: -moz-fit-content;
height: fit-content;
margin: 0;
padding: 0;
transform-origin: 0% 0%;
}
.transform-component-module_content__2jYgh img {
pointer-events: none;
}
`,$M={wrapper:"transform-component-module_wrapper__1_Fgj",content:"transform-component-module_content__2jYgh"};SCe(xCe);var wCe=function(e){var t=e.children,n=e.wrapperClass,r=n===void 0?"":n,i=e.contentClass,o=i===void 0?"":i,a=e.wrapperStyle,s=e.contentStyle,l=C.exports.useContext(LW).setComponents,u=C.exports.useRef(null),h=C.exports.useRef(null);return C.exports.useEffect(function(){var g=u.current,m=h.current;g!==null&&m!==null&&l&&l(g,m)},[]),x("div",{ref:u,className:"react-transform-wrapper "+$M.wrapper+" "+r,style:a,children:x("div",{ref:h,className:"react-transform-component "+$M.content+" "+o,style:s,children:t})})};function CCe({image:e,alt:t,ref:n,styleClass:r}){const[i,o]=C.exports.useState(0),[a,s]=C.exports.useState(!1),l=()=>{o(i===-3?0:i-1)},u=()=>{o(i===3?0:i+1)},h=()=>{s(!a)};return x(bCe,{centerOnInit:!0,minScale:.1,children:({zoomIn:g,zoomOut:m,resetTransform:v,centerView:b})=>J(Ln,{children:[J("div",{className:"lightbox-image-options",children:[x(mt,{icon:x(M5e,{}),"aria-label":"Zoom In",tooltip:"Zoom In",onClick:()=>g(),fontSize:20}),x(mt,{icon:x(I5e,{}),"aria-label":"Zoom Out",tooltip:"Zoom Out",onClick:()=>m(),fontSize:20}),x(mt,{icon:x(L5e,{}),"aria-label":"Rotate Left",tooltip:"Rotate Left",onClick:l,fontSize:20}),x(mt,{icon:x(A5e,{}),"aria-label":"Rotate Right",tooltip:"Rotate Right",onClick:u,fontSize:20}),x(mt,{icon:x(g4e,{}),"aria-label":"Flip Image",tooltip:"Flip Image",onClick:h,fontSize:20}),x(mt,{icon:x(G_,{}),"aria-label":"Reset",tooltip:"Reset",onClick:()=>{v(),o(0),s(!1)},fontSize:20})]}),x(wCe,{wrapperStyle:{width:"100%",height:"100%"},children:x("img",{style:{transform:`rotate(${i*90}deg) scaleX(${a?-1:1})`,width:"100%"},src:e,alt:t,ref:n,className:r||"",onLoad:()=>b()})})]})})}function _Ce(){const e=qe(),t=Le(m=>m.options.isLightBoxOpen),{viewerImageToDisplay:n,shouldShowImageDetails:r,isOnFirstImage:i,isOnLastImage:o}=Le(zH),[a,s]=C.exports.useState(!1),l=()=>{s(!0)},u=()=>{s(!1)},h=()=>{e(dk())},g=()=>{e(ck())};return pt("Esc",()=>{t&&e(md(!1))},[t]),J("div",{className:"lightbox-container",children:[x(mt,{icon:x(T5e,{}),"aria-label":"Exit Viewer",className:"lightbox-close-btn",onClick:()=>{e(md(!1))},fontSize:20}),J("div",{className:"lightbox-display-container",children:[J("div",{className:"lightbox-preview-wrapper",children:[x(MH,{}),!r&&J("div",{className:"current-image-next-prev-buttons",children:[x("div",{className:"next-prev-button-trigger-area prev-button-trigger-area",onMouseOver:l,onMouseOut:u,children:a&&!i&&x(Va,{"aria-label":"Previous image",icon:x(iH,{className:"next-prev-button"}),variant:"unstyled",onClick:h})}),x("div",{className:"next-prev-button-trigger-area next-button-trigger-area",onMouseOver:l,onMouseOut:u,children:a&&!o&&x(Va,{"aria-label":"Next image",icon:x(oH,{className:"next-prev-button"}),variant:"unstyled",onClick:g})})]}),n&&J(Ln,{children:[x(CCe,{image:n.url,styleClass:"lightbox-image"}),r&&x(DH,{image:n})]})]}),x(mW,{})]})]})}const kCe=dt(zn,e=>{const{boundingBoxDimensions:t}=e;return{boundingBoxDimensions:t}},{memoizeOptions:{resultEqualityCheck:Ze.isEqual}}),ECe=()=>{const e=qe(),{boundingBoxDimensions:t}=Le(kCe),n=a=>{e(mm({...t,width:Math.floor(a)}))},r=a=>{e(mm({...t,height:Math.floor(a)}))},i=()=>{e(mm({...t,width:Math.floor(512)}))},o=()=>{e(mm({...t,height:Math.floor(512)}))};return J(en,{direction:"column",gap:"1rem",children:[x(ws,{label:"Width",min:64,max:1024,step:64,value:t.width,onChange:n,handleReset:i,sliderNumberInputProps:{max:4096},withSliderMarks:!0,withInput:!0,withReset:!0}),x(ws,{label:"Height",min:64,max:1024,step:64,value:t.height,onChange:r,handleReset:o,sliderNumberInputProps:{max:4096},withSliderMarks:!0,withInput:!0,withReset:!0})]})},PCe=()=>x(Bl,{flex:"1",textAlign:"left",children:"Bounding Box"}),m2=e=>e.system,TCe=e=>e.system.toastQueue,LCe=dt(zn,e=>{const{inpaintReplace:t,shouldUseInpaintReplace:n}=e;return{inpaintReplace:t,shouldUseInpaintReplace:n}},{memoizeOptions:{resultEqualityCheck:Ze.isEqual}});function ACe(){const{inpaintReplace:e,shouldUseInpaintReplace:t}=Le(LCe),n=qe();return J(en,{alignItems:"center",c
`),n=+this.fontSize(),r=0,i=this.lineHeight()*n,o=this.attrs.width,a=this.attrs.height,s=o!==Fp&&o!==void 0,l=a!==Fp&&a!==void 0,u=this.padding(),h=o-u*2,g=a-u*2,m=0,v=this.wrap(),b=v!==oI,w=v!==t9e&&b,E=this.ellipsis();this.textArr=[],qw().font=this._getContextFont();for(var P=E?this._getTextWidth(Yw):0,k=0,T=t.length;k<T;++k){var M=t[k],O=this._getTextWidth(M);if(s&&O>h)for(;M.length>0;){for(var R=0,N=M.length,z="",V=0;R<N;){var $=R+N>>>1,j=M.slice(0,$+1),ue=this._getTextWidth(j)+P;ue<=h?(R=$+1,z=j,V=ue):N=$}if(z){if(w){var W,Q=M[z.length],ne=Q===f3||Q===rI;ne&&V<=h?W=z.length:W=Math.max(z.lastIndexOf(f3),z.lastIndexOf(rI))+1,W>0&&(R=W,z=z.slice(0,R),V=this._getTextWidth(z))}z=z.trimRight(),this._addTextLine(z),r=Math.max(r,V),m+=i;var ee=this._shouldHandleEllipsis(m);if(ee){this._tryToAddEllipsisToLastLine();break}if(M=M.slice(R),M=M.trimLeft(),M.length>0&&(O=this._getTextWidth(M),O<=h)){this._addTextLine(M),m+=i,r=Math.max(r,O);break}}else break}else this._addTextLine(M),m+=i,r=Math.max(r,O),this._shouldHandleEllipsis(m)&&k<T-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!==Fp&&i!==void 0,a=this.padding(),s=i-a*2,l=this.wrap(),u=l!==oI;return!u||o&&t+r>s}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,n=t!==Fp&&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+Yw)<i;s||(a.text=a.text.slice(0,a.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+Yw)}}getStrokeScaleEnabled(){return!0}}pr.prototype._fillFunc=i9e;pr.prototype._strokeFunc=o9e;pr.prototype.className=K7e;pr.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];gr(pr);q.overWriteSetter(pr,"width",xk());q.overWriteSetter(pr,"height",xk());q.addGetterSetter(pr,"fontFamily","Arial");q.addGetterSetter(pr,"fontSize",12,Fe());q.addGetterSetter(pr,"fontStyle",tV);q.addGetterSetter(pr,"fontVariant",tV);q.addGetterSetter(pr,"padding",0,Fe());q.addGetterSetter(pr,"align",eV);q.addGetterSetter(pr,"verticalAlign",X7e);q.addGetterSetter(pr,"lineHeight",1,Fe());q.addGetterSetter(pr,"wrap",e9e);q.addGetterSetter(pr,"ellipsis",!1,Ms());q.addGetterSetter(pr,"letterSpacing",0,Fe());q.addGetterSetter(pr,"text","",w1());q.addGetterSetter(pr,"textDecoration","");var s9e="",rV="normal";function iV(e){e.fillText(this.partialText,0,0)}function oV(e){e.strokeText(this.partialText,0,0)}class ri extends Ae{constructor(t){super(t),this.dummyCanvas=de.createCanvasElement(),this.dataArray=[],this.dataArray=Nn.parsePathData(this.attrs.data),this.on("dataChange.konva",function(){this.dataArray=Nn.parsePathData(this.attrs.data),this._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_sceneFunc(t){t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",this.textBaseline()),t.setAttr("textAlign","left"),t.save();var n=this.textDecoration(),r=this.fill(),i=this.fontSize(),o=this.glyphInfo;n==="underline"&&t.beginPath();for(var a=0;a<o.length;a++){t.save();var s=o[a].p0;t.translate(s.x,s.y),t.rotate(o[a].rotation),this.partialText=o[a].text,t.fillStrokeShape(this),n==="underline"&&(a===0&&t.moveTo(0,i/2+1),t.lineTo(i,i/2+1)),t.restore()}n==="underline"&&(t.strokeStyle=r,t.lineWidth=i/20,t.stroke()),t.restore()}_hitFunc(t){t.beginPath();var n=this.glyphInfo;if(n.length>=1){var r=n[0].p0;t.moveTo(r.x,r.y)}for(var i=0;i<n.length;i++){var o=n[i].p1;t.lineTo(o.x,o.y)}t.setAttr("lineWidth",this.fontSize()),t.setAttr("strokeStyle",this.colorKey),t.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return de.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this
* @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 Y9e=function(t){var n={},r=C.exports,i=u0.exports,o=Object.assign;function a(d){for(var f="https://reactjs.org/docs/error-decoder.html?invariant="+d,y=1;y<arguments.length;y++)f+="&args[]="+encodeURIComponent(arguments[y]);return"Minified React error #"+d+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,l=Symbol.for("react.element"),u=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),v=Symbol.for("react.provider"),b=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),M=Symbol.for("react.offscreen"),O=Symbol.iterator;function R(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 h:return"Fragment";case u:return"Portal";case m:return"Profiler";case g:return"StrictMode";case E:return"Suspense";case P:return"SuspenseList"}if(typeof d=="object")switch(d.$$typeof){case b:return(d.displayName||"Context")+".Consumer";case v:return(d._context.displayName||"Context")+".Provider";case w:var f=d.render;return d=d.displayName,d||(d=f.displayName||f.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case k:return f=d.displayName||null,f!==null?f:N(d.type)||"Memo";case T: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 V(d){var f=d,y=d;if(d.alternate)for(;f.return;)f=f.return;else{d=f;do f=d,(f.flags&4098)!==0&&(y=f.return),d=f.return;while(d)}return f.tag===3?y:null}function $(d){if(V(d)!==d)throw Error(a(188))}function j(d){var f=d.alternate;if(!f){if(f=V(d),f===null)throw Error(a(188));return f!==d?null:d}for(var y=d,_=f;;){var L=y.return;if(L===null)break;var I=L.alternate;if(I===null){if(_=L.return,_!==null){y=_;continue}break}if(L.child===I.child){for(I=L.child;I;){if(I===y)return $(L),d;if(I===_)return $(L),f;I=I.sibling}throw Error(a(188))}if(y.return!==_.return)y=L,_=I;else{for(var H=!1,oe=L.child;oe;){if(oe===y){H=!0,y=L,_=I;break}if(oe===_){H=!0,_=L,y=I;break}oe=oe.sibling}if(!H){for(oe=I.child;oe;){if(oe===y){H=!0,y=I,_=L;break}if(oe===_){H=!0,_=I,y=L;break}oe=oe.sibling}if(!H)throw Error(a(189))}}if(y.alternate!==_)throw Error(a(190))}if(y.tag!==3)throw Error(a(188));return y.stateNode.current===y?d:f}function ue(d){return d=j(d),d!==null?W(d):null}function W(d){if(d.tag===5||d.tag===6)return d;for(d=d.child;d!==null;){var f=W(d);if(f!==null)return f;d=d.sibling}return null}function Q(d){if(d.tag===5||d.tag===6)return d;for(d=d.child;d!==null;){if(d.tag!==4){var f=Q(d);if(f!==null)return f}d=d.sibling}return null}var ne=Array.isArray,ee=t.getPublicInstance,K=t.getRootHostContext,G=t.getChildHostContext,X=t.prepareForCommit,ce=t.resetAfterCommit,me=t.createInstance,Me=t.appendInitialChild,xe=t.finalizeInitialChildren,be=t.prepareUpdate,Ie=t.shouldSetTextContent,We=t.createTextInstance,De=t.scheduleTimeout,Qe=t.cancelTimeout,st=t.noTimeout,Ct=t.isPrimaryRenderer,ht=t.supportsMutation,ut=t.supportsP
`+Hl+d}var Ds=!1;function Vl(d,f){if(!d||Ds)return"";Ds=!0;var y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(f)if(f=function(){throw Error()},Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(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 L=Ne.stack.split(`
`),I=_.stack.split(`
`),H=L.length-1,oe=I.length-1;1<=H&&0<=oe&&L[H]!==I[oe];)oe--;for(;1<=H&&0<=oe;H--,oe--)if(L[H]!==I[oe]){if(H!==1||oe!==1)do if(H--,oe--,0>oe||L[H]!==I[oe]){var fe=`
`+L[H].replace(" at new "," at ");return d.displayName&&fe.includes("<anonymous>")&&(fe=fe.replace("<anonymous>",d.displayName)),fe}while(1<=H&&0<=oe);break}}}finally{Ds=!1,Error.prepareStackTrace=y}return(d=d?d.displayName||d.name:"")?Wl(d):""}var Ih=Object.prototype.hasOwnProperty,Vu=[],zs=-1;function zo(d){return{current:d}}function En(d){0>zs||(d.current=Vu[zs],Vu[zs]=null,zs--)}function bn(d,f){zs++,Vu[zs]=d.current,d.current=f}var Bo={},kr=zo(Bo),Gr=zo(!1),Fo=Bo;function Bs(d,f){var y=d.type.contextTypes;if(!y)return Bo;var _=d.stateNode;if(_&&_.__reactInternalMemoizedUnmaskedChildContext===f)return _.__reactInternalMemoizedMaskedChildContext;var L={},I;for(I in y)L[I]=f[I];return _&&(d=d.stateNode,d.__reactInternalMemoizedUnmaskedChildContext=f,d.__reactInternalMemoizedMaskedChildContext=L),L}function jr(d){return d=d.childContextTypes,d!=null}function Za(){En(Gr),En(kr)}function Rd(d,f,y){if(kr.current!==Bo)throw Error(a(168));bn(kr,f),bn(Gr,y)}function Ul(d,f,y){var _=d.stateNode;if(f=f.childContextTypes,typeof _.getChildContext!="function")return y;_=_.getChildContext();for(var L in _)if(!(L in f))throw Error(a(108,z(d)||"Unknown",L));return o({},y,_)}function Qa(d){return d=(d=d.stateNode)&&d.__reactInternalMemoizedMergedChildContext||Bo,Fo=kr.current,bn(kr,d),bn(Gr,Gr.current),!0}function Nd(d,f,y){var _=d.stateNode;if(!_)throw Error(a(169));y?(d=Ul(d,f,Fo),_.__reactInternalMemoizedMergedChildContext=d,En(Gr),En(kr),bn(kr,d)):En(Gr),bn(Gr,y)}var vi=Math.clz32?Math.clz32:Dd,Oh=Math.log,Rh=Math.LN2;function Dd(d){return d>>>=0,d===0?32:31-(Oh(d)/Rh|0)|0}var Fs=64,uo=4194304;function $s(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 Gl(d,f){var y=d.pendingLanes;if(y===0)return 0;var _=0,L=d.suspendedLanes,I=d.pingedLanes,H=y&268435455;if(H!==0){var oe=H&~L;oe!==0?_=$s(oe):(I&=H,I!==0&&(_=$s(I)))}else H=y&~L,H!==0?_=$s(H):I!==0&&(_=$s(I));if(_===0)return 0;if(f!==0&&f!==_&&(f&L)===0&&(L=_&-_,I=f&-f,L>=I||L===16&&(I&4194240)!==0))return f;if((_&4)!==0&&(_|=y&16),f=d.entangledLanes,f!==0)for(d=d.entanglements,f&=_;0<f;)y=31-vi(f),L=1<<y,_|=d[y],f&=~L;return _}function $1(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 Uu(d,f){for(var y=d.suspendedLanes,_=d.pingedLanes,L=d.expirationTimes,I=d.pendingLanes;0<I;){var H=31-vi(I),oe=1<<H,fe=L[H];fe===-1?((oe&y)===0||(oe&_)!==0)&&(L[H]=$1(oe,f)):fe<=f&&(d.expiredLanes|=oe),I&=~oe}}function Gu(d){return d=d.pendingLanes&-1073741825,d!==0?d:d&1073741824?1073741824:0}function zd(){var d=Fs;return Fs<<=1,(Fs&4194240)===0&&(Fs=64),d}function ju(d){for(var f=[],y=0;31>y;y++)f.push(d);return f}function ba(d,f,y){d.pendingLanes|=f,f!==536870912&&(d.suspendedLanes=0,d.pingedLanes=0),d=d.eventTimes,f=31-vi(f),d[f]=y}function Bd(d,f){var y=d.pendingLanes&~f;d.pendingLanes=f,d.suspendedLanes=0,d.pingedLanes=0,d.expiredLanes&=f,d.mutableReadLanes&=f,d.entangledLanes&=f,f=d.entanglements;var _=d.eventTimes;for(d=d.expirationTimes;0<y;){var L=31-vi(y),I=1<<L;f[L]=0,_[L]=-1,d[L]=-1,y&=~I}}function jl(d,f){var y=d.entangledLanes|=f;for(d=d.entanglements;y;){var _=31-vi(y),L=1<<_;L&f|d[_]&f&&(d[_]|=f),y&=~L}}var Ht=0;function Nh(d){return d&=-d,1<d?4<d?(d&268435455)!==0?16:536870912:4:1}var Yu=i.unstable_scheduleCallback,qu
Error generating stack: `+I.message+`
`+I.stack}return{value:d,source:f,stack:L,digest:null}}function rg(d,f,y){return{value:d,source:null,stack:y??null,digest:f??null}}function hc(d,f){try{console.error(f.value)}catch(y){setTimeout(function(){throw y})}}var rf=typeof WeakMap=="function"?WeakMap:Map;function ig(d,f,y){y=es(-1,y),y.tag=3,y.payload={element:null};var _=f.value;return y.callback=function(){lf||(lf=!0,uf=_),hc(d,f)},y}function B(d,f,y){y=es(-1,y),y.tag=3;var _=d.type.getDerivedStateFromError;if(typeof _=="function"){var L=f.value;y.payload=function(){return _(L)},y.callback=function(){hc(d,f)}}var I=d.stateNode;return I!==null&&typeof I.componentDidCatch=="function"&&(y.callback=function(){hc(d,f),typeof _!="function"&&(Zs===null?Zs=new Set([this]):Zs.add(this));var H=f.stack;this.componentDidCatch(f.value,{componentStack:H!==null?H:""})}),y}function Zl(d,f,y){var _=d.pingCache;if(_===null){_=d.pingCache=new rf;var L=new Set;_.set(f,L)}else L=_.get(f),L===void 0&&(L=new Set,_.set(f,L));L.has(y)||(L.add(y),d=X2.bind(null,d,f,y),f.then(d,d))}function of(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 Gi(d,f,y,_,L){return(d.mode&1)===0?(d===f?d.flags|=65536:(d.flags|=128,y.flags|=131072,y.flags&=-52805,y.tag===1&&(y.alternate===null?y.tag=17:(f=es(-1,1),f.tag=2,Vs(y,f,1))),y.lanes|=1),d):(d.flags|=65536,d.lanes=L,d)}var Gt=s.ReactCurrentOwner,Di=!1;function xi(d,f,y,_){f.child=d===null?A2(f,null,y,_):ec(f,d.child,y,_)}function B2(d,f,y,_,L){y=y.render;var I=f.ref;return Qu(f,L),_=X1(d,f,y,_,I,L),y=rc(),d!==null&&!Di?(f.updateQueue=d.updateQueue,f.flags&=-2053,d.lanes&=~L,ns(d,f,L)):(Fn&&y&&yi(f),f.flags|=1,xi(d,f,_,L),f.child)}function Gs(d,f,y,_,L){if(d===null){var I=y.type;return typeof I=="function"&&!kg(I)&&I.defaultProps===void 0&&y.compare===null&&y.defaultProps===void 0?(f.tag=15,f.type=I,F2(d,f,I,_,L)):(d=hf(y.type,null,_,f,f.mode,L),d.ref=f.ref,d.return=f,f.child=d)}if(I=d.child,(d.lanes&L)===0){var H=I.memoizedProps;if(y=y.compare,y=y!==null?y:Yl,y(H,_)&&d.ref===f.ref)return ns(d,f,L)}return f.flags|=1,d=qi(I,_),d.ref=f.ref,d.return=f,f.child=d}function F2(d,f,y,_,L){if(d!==null){var I=d.memoizedProps;if(Yl(I,_)&&d.ref===f.ref)if(Di=!1,f.pendingProps=_=I,(d.lanes&L)!==0)(d.flags&131072)!==0&&(Di=!0);else return f.lanes=d.lanes,ns(d,f,L)}return og(d,f,y,_,L)}function $2(d,f,y){var _=f.pendingProps,L=_.children,I=d!==null?d.memoizedState:null;if(_.mode==="hidden")if((f.mode&1)===0)f.memoizedState={baseLanes:0,cachePool:null,transitions:null},bn(qs,ji),ji|=y;else{if((y&1073741824)===0)return d=I!==null?I.baseLanes|y:y,f.lanes=f.childLanes=1073741824,f.memoizedState={baseLanes:d,cachePool:null,transitions:null},f.updateQueue=null,bn(qs,ji),ji|=d,null;f.memoizedState={baseLanes:0,cachePool:null,transitions:null},_=I!==null?I.baseLanes:y,bn(qs,ji),ji|=_}else I!==null?(_=I.baseLanes|y,f.memoizedState=null):_=y,bn(qs,ji),ji|=_;return xi(d,f,L,y),f.child}function H2(d,f){var y=f.ref;(d===null&&y!==null||d!==null&&d.ref!==y)&&(f.flags|=512,f.flags|=2097152)}function og(d,f,y,_,L){var I=jr(y)?Fo:kr.current;return I=Bs(f,I),Qu(f,L),y=X1(d,f,y,_,I,L),_=rc(),d!==null&&!Di?(f.updateQueue=d.updateQueue,f.flags&=-2053,d.lanes&=~L,ns(d,f,L)):(Fn&&_&&yi(f),f.flags|=1,xi(d,f,y,L),f.child)}function W2(d,f,y,_,L){if(jr(y)){var I=!0;Qa(f)}else I=!1;if(Qu(f,L),f.stateNode===null)_a(d,f),P2(f,y,_),j1(f,y,_,L),_=!0;else if(d===null){var H=f.stateNode,oe=f.memoizedProps;H.props=oe;var fe=H.context,Ne=y.contextType;typeof Ne=="object"&&Ne!==null?Ne=Ui(Ne):(Ne=jr(y)?Fo:kr.current,Ne=Bs(f,Ne));var et=y.getDerivedStateFromProps,At=typeof et=="function"||typeof H.getSnapshotBeforeUpdate=="function";At||typeof H.UNSAFE_componentWillReceiveProps!="function"&&typeof H.componentWillReceiveProps!="function"||(oe!==_||fe!==Ne)&&T2(f,H,_,Ne),Ja=!1;var je=f.memoizedState;H.state=je,Vh(f,_,H,L),fe=f.memoizedState,oe!==_||je!==fe||Gr.current||Ja?(typeof et=="function"&&(Gh(f,y,et,_),fe=f.memoizedState),(oe=Ja||qd(f,y,oe,_,je,fe,Ne))?(At||typeof H.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 ee(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:wp,findFiberByHostInstance:d.findFiberByHostInstance||Tg,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")d=!1;else{var f=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(f.isDisabled||!f.supportsFiber)d=!0;else{try{un=f.inject(d),Wt=f}catch{}d=!!f.checkDCE}}return d},n.isAlreadyRendering=function(){return!1},n.observeVisibleRects=function(d,f,y,_){if(!_t)throw Error(a(363));d=mg(d,f);var L=Yt(d,y,_).disconnect;return{disconnect:function(){L()}}},n.registerMutableSourceForHydration=function(d,f){var y=f._getVersion;y=y(f._source),d.mutableSourceEagerHydrationData==null?d.mutableSourceEagerHydrationData=[f,y]:d.mutableSourceEagerHydrationData.push(f,y)},n.runWithPriority=function(d,f){var y=Ht;try{return Ht=d,f()}finally{Ht=y}},n.shouldError=function(){return null},n.shouldSuspend=function(){return!1},n.updateContainer=function(d,f,y,_){var L=f.current,I=li(),H=Ar(L);return y=Eg(y),f.context===null?f.context=y:f.pendingContext=y,f=es(I,H),f.payload={element:d},_=_===void 0?null:_,_!==null&&(f.callback=_),d=Vs(L,f,H),d!==null&&(vo(d,L,H,I),Wh(d,L,H)),H},n};(function(e){e.exports=Y9e})(lV);const q9e=K7(lV.exports);var Ek={exports:{}},Th={};/**
* @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.
*/Th.ConcurrentRoot=1;Th.ContinuousEventPriority=4;Th.DefaultEventPriority=16;Th.DiscreteEventPriority=1;Th.IdleEventPriority=536870912;Th.LegacyRoot=0;(function(e){e.exports=Th})(Ek);const uI={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let cI=!1,dI=!1;const Pk=".react-konva-event",K9e=`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
`,X9e=`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
`,Z9e={};function vS(e,t,n=Z9e){if(!cI&&"zIndex"in t&&(console.warn(X9e),cI=!0),!dI&&t.draggable){var r=t.x!==void 0||t.y!==void 0,i=t.onDragEnd||t.onDragMove;r&&!i&&(console.warn(K9e),dI=!0)}for(var o in n)if(!uI[o]){var a=o.slice(0,2)==="on",s=n[o]!==t[o];if(a&&s){var l=o.substr(2).toLowerCase();l.substr(0,7)==="content"&&(l="content"+l.substr(7,1).toUpperCase()+l.substr(8)),e.off(l,n[o])}var u=!t.hasOwnProperty(o);u&&e.setAttr(o,void 0)}var h=t._useStrictMode,g={},m=!1;const v={};for(var o in t)if(!uI[o]){var a=o.slice(0,2)==="on",b=n[o]!==t[o];if(a&&b){var l=o.substr(2).toLowerCase();l.substr(0,7)==="content"&&(l="content"+l.substr(7,1).toUpperCase()+l.substr(8)),t[o]&&(v[l]=t[o])}!a&&(t[o]!==n[o]||h&&t[o]!==e.getAttr(o))&&(m=!0,g[o]=t[o])}m&&(e.setAttrs(g),Md(e));for(var l in v)e.on(l+Pk,v[l])}function Md(e){if(!rt.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const uV={},Q9e={};dh.Node.prototype._applyProps=vS;function J9e(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),Md(e)}function e8e(e,t,n){let r=dh[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=dh.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 vS(l,o),l}function t8e(e,t,n){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function n8e(e,t,n){return!1}function r8e(e){return e}function i8e(){return null}function o8e(){return null}function a8e(e,t,n,r){return Q9e}function s8e(){}function l8e(e){}function u8e(e,t){return!1}function c8e(){return uV}function d8e(){return uV}const f8e=setTimeout,h8e=clearTimeout,p8e=-1;function g8e(e,t){return!1}const m8e=!1,v8e=!0,y8e=!0;function b8e(e,t){t.parent===e?t.moveToTop():e.add(t),Md(e)}function S8e(e,t){t.parent===e?t.moveToTop():e.add(t),Md(e)}function cV(e,t,n){t._remove(),e.add(t),t.setZIndex(n.getZIndex()),Md(e)}function x8e(e,t,n){cV(e,t,n)}function w8e(e,t){t.destroy(),t.off(Pk),Md(e)}function C8e(e,t){t.destroy(),t.off(Pk),Md(e)}function _8e(e,t,n){console.error(`Text components are not yet supported in ReactKonva. You text is: "${n}"`)}function k8e(e,t,n){}function E8e(e,t,n,r,i){vS(e,i,r)}function P8e(e){e.hide(),Md(e)}function T8e(e){}function L8e(e,t){(t.visible==null||t.visible)&&e.show()}function A8e(e,t){}function M8e(e){}function I8e(){}const O8e=()=>Ek.exports.DefaultEventPriority,R8e=Object.freeze(Object.defineProperty({__proto__:null,appendInitialChild:J9e,createInstance:e8e,createTextInstance:t8e,finalizeInitialChildren:n8e,getPublicInstance:r8e,prepareForCommit:i8e,preparePortalMount:o8e,prepareUpdate:a8e,resetAfterCommit:s8e,resetTextContent:l8e,shouldDeprioritizeSubtree:u8e,getRootHostContext:c8e,getChildHostContext:d8e,scheduleTimeout:f8e,cancelTimeout:h8e,noTimeout:p8e,shouldSetTextContent:g8e,isPrimaryRenderer:m8e,warnsIfNotActing:v8e,supportsMutation:y8e,appendChild:b8e,appendChildToContainer:S8e,insertBefore:cV,insertInContainerBefore:x8e,removeChild:w8e,removeChildFromContainer:C8e,commitTextUpdate:_8e,commitMount:k8e,commitUpdate:E8e,hideInstance:P8e,hideTextInstance:T8e,unhideInstance:L8e,unhideTextInstance:A8e,clearContainer:M8e,detachDeletedInstance:I8e,getCurrentEventPriority:O8e,now:u0.exports.unstable_now,idlePriority:u0.exports.unstable_IdlePriority,run:u0.exports.unstable_runWithPriority},Symbol.toStringTag,{value:"Module"}));var N8e=Object.defineProperty,D8e=Object.defineProperties,z8e=Object.getOwnPropertyDescriptors,fI=Object.getOwnPropertySymbols,B8e=Object.prototype.hasOwnProperty,F8e=Object.prototype.propertyIsEnumerable,hI=(e,t,n)=>t in e?N8e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pI=(e,t)=>{for(var n in t||(t={}))B8e.call(t,n)&&hI(e,n,t[n]);if(fI)
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="60px" height="60px" viewBox="0 0 30 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;">
<g transform="matrix(0.5,0,0,0.5,0,0)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,2.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,7.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,10)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,12.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,15)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,17.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,20)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,22.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,25)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,27.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,30)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-2.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-7.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-10)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-12.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-15)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-17.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-20)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-22.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-25)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-27.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-30)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
</svg>`.replaceAll("black",e),a_e=e=>{const{...t}=e,{maskColorString:n,stageCoordinates:r,stageDimensions:i,stageScale:o}=Le(o_e),[a,s]=C.exports.useState(null),[l,u]=C.exports.useState(0),h=C.exports.useRef(null),g=C.exports.useCallback(()=>{u(l+1),setTimeout(g,500)},[l]);return C.exports.useEffect(()=>{if(a)return;const m=new Image;m.onload=()=>{s(m)},m.src=mI(n)},[a,n]),C.exports.useEffect(()=>{!a||(a.src=mI(n))},[a,n]),C.exports.useEffect(()=>{const m=setInterval(()=>u(v=>(v+1)%5),50);return()=>clearInterval(m)},[]),!a||!Jr.exports.isNumber(r.x)||!Jr.exports.isNumber(r.y)||!Jr.exports.isNumber(o)||!Jr.exports.isNumber(i.width)||!Jr.exports.isNumber(i.height)?null:x(bu,{ref:h,offsetX:r.x/o,offsetY:r.y/o,height:i.height/o,width:i.width/o,fillPatternImage:a,fillPatternOffsetY:Jr.exports.isNumber(l)?l:0,fillPatternRepeat:"repeat",fillPatternScale:{x:1/o,y:1/o},listening:!0,globalCompositeOperation:"source-in",...t})},s_e=dt([zn],e=>{const{isMoveStageKeyHeld:t,stageScale:n}=e;return{isMoveStageKeyHeld:t,stageScale:n}},{memoizeOptions:{resultEqualityCheck:Ze.isEqual}}),l_e=e=>{const t=qe(),{isMoveStageKeyHeld:n,stageScale:r}=Le(s_e);return C.exports.useCallback(i=>{if(!e.current||n)return;i.evt.preventDefault();const o=e.current.getPointerPosition();if(!o)return;const a={x:(o.x-e.current.x())/r,y:(o.y-e.current.y())/r};let s=i.evt.deltaY;i.evt.ctrlKey&&(s=-s);const l=Ze.clamp(r*bbe**s,Sbe,xbe),u={x:o.x-a.x*l,y:o.y-a.y*l};t(Xbe(l)),t(LH(u))},[e,n,r,t])},yS=e=>{const t=e.getPointerPosition(),n=e.getAbsoluteTransform().copy();if(!t||!n)return;const r=n.invert().point(t);return{x:Math.floor(r.x),y:Math.floor(r.y)}},vV=()=>{const e=qe(),t=Wv(),n=mV();return{updateColorUnderCursor:()=>{if(!n||!t)return;const r=n.getPointerPosition();if(!r)return;const i=Wp.pixelRatio,[o,a,s,l]=t.getContext().getImageData(r.x*i,r.y*i,1,1).data;e(Ebe({r:o,g:a,b:s,a:l}))},commitColorUnderCursor:()=>{e(kbe())}}},u_e=dt([_r,zn,Ru],(e,t,n)=>{const{tool:r}=t;return{tool:r,activeTabName:e,isStaging:n}},{memoizeOptions:{resultEqualityCheck:Ze.isEqual}}),c_e=e=>{const t=qe(),{tool:n,isStaging:r}=Le(u_e),{commitColorUnderCursor:i}=vV();return C.exports.useCallback(o=>{if(!e.current)return;if(e.current.container().focus(),n==="move"||r){t(g4(!0));return}if(n==="colorPicker"){i();return}const a=yS(e.current);!a||(o.evt.preventDefault(),t(iS(!0)),t(xH([a.x,a.y])))},[e,n,r,t,i])},d_e=dt([_r,zn,Ru],(e,t,n)=>{const{tool:r,isDrawing:i}=t;return{tool:r,isDrawing:i,activeTabName:e,isStaging:n}},{memoizeOptions:{resultEqualityCheck:Ze.isEqual}}),f_e=(e,t)=>{const n=qe(),{tool:r,isDrawing:i,isStaging:o}=Le(d_e);return C.exports.useCallback(()=>{if(r==="move"||o){n(g4(!1));return}if(!t.current&&i&&e.current){const a=yS(e.current);if(!a)return;n(wH([a.x,a.y]))}else t.current=!1;n(iS(!1))},[t,n,i,o,e,r])},h_e=dt([_r,zn,Ru],(e,t,n)=>{const{tool:r,isDrawing:i}=t;return{tool:r,isDrawing:i,activeTabName:e,isStaging:n}},{memoizeOptions:{resultEqualityCheck:Ze.isEqual}}),p_e=(e,t,n)=>{const r=qe(),{isDrawing:i,tool:o,isStaging:a}=Le(h_e),{updateColorUnderCursor:s}=vV();return C.exports.useCallback(()=>{if(!e.current)return;const l=yS(e.current);if(!!l){if(r(EH(l)),n.current=l,o==="colorPicker"){s();return}!i||o==="move"||a||(t.current=!0,r(wH([l.x,l.y])))}},[t,r,i,a,n,e,o,s])},g_e=dt([_r,zn,Ru],(e,t,n)=>{const{tool:r}=t;return{tool:r,activeTabName:e,isStaging:n}},{memoizeOptions:{resultEqualityCheck:Ze.isEqual}}),m_e=e=>{const t=qe(),{tool:n,isStaging:r}=Le(g_e);return C.exports.useCallback(i=>{if(i.evt.buttons!==1||!e.current)return;const o=yS(e.current);!o||n==="move"||r||(t(iS(!0)),t(xH([o.x,o.y])))},[e,n,r,t])},v_e=()=>{const e=qe();return C.exports.useCallback(()=>{e(EH(null)),e(iS(!1))},[e])},y_e=dt([zn,Ru],(e,t)=>{const{tool:n}=e;return{tool:n,isStaging:t}},{memoizeOptions:{resultEqualityCheck:Ze.isEqual}}),b_e=()=>{const e=qe(),{tool:t,isStaging:n}=Le(y_e);return{handleDragStart:C.exports.useCallback(()=>{!(t==="move"||n)||e(g4(!0))},[e,n,t]),handleDragMove:C.exports.useCallback(r=>{if(!(t==="move"||n))return;const i={x:r.target.x(),y:r.target.y()};e(LH(i))},[e,n,t])
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IPe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function OPe(e){if(Array.isArray(e))return G7(e)}function HI(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 WI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HI(Object(n),!0).forEach(function(r){uU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vv(e,t){return DPe(e)||NPe(e,t)||cU(e,t)||RPe()}function RPe(){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 cU(e,t){if(!!e){if(typeof e=="string")return G7(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 G7(e,t)}}function G7(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 NPe(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 DPe(e){if(Array.isArray(e))return e}var zPe="file-invalid-type",BPe="file-too-large",FPe="file-too-small",$Pe="too-many-files",HPe=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:zPe,message:"File type must be ".concat(n)}},VI=function(t){return{code:BPe,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},UI=function(t){return{code:FPe,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},WPe={code:$Pe,message:"Too many files"};function dU(e,t){var n=e.type==="application/x-moz-file"||APe(e,t);return[n,n?null:HPe(t)]}function fU(e,t,n){if(Rf(e.size))if(Rf(t)&&Rf(n)){if(e.size>n)return[!1,VI(n)];if(e.size<t)return[!1,UI(t)]}else{if(Rf(t)&&e.size<t)return[!1,UI(t)];if(Rf(n)&&e.size>n)return[!1,VI(n)]}return[!0,null]}function Rf(e){return e!=null}function VPe(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,o=e.multiple,a=e.maxFiles,s=e.validator;return!o&&t.length>1||o&&a>=1&&t.length>a?!1:t.every(function(l){var u=dU(l,n),h=Vv(u,1),g=h[0],m=fU(l,r,i),v=Vv(m,1),b=v[0],w=s?s(l):null;return g&&b&&!w})}function E4(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function x3(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 GI(e){e.preventDefault()}function UPe(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function GPe(e){return e.indexOf("Edge/")!==-1}function jPe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return UPe(e)||GPe(e)}function ll(){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!E4(r)&&s&&s.apply(void 0,[r].concat(o)),E4(r)})}}function YPe(){return"showOpenFilePicker"in window}function qPe(e){if(Rf(e)){var t=Object.entries(e).filter(function(n){var r=Vv(n,2),i=r[0],o=r[1],a=!0;return hU(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(pU))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,r){var i=Vv(r,2),o=i[0],a=i[1];return WI(WI({},n),{},uU({},o,a))},{});return[{description:"Files",accept:t}]}return e}function KPe(e){if(Rf(e))return Object.entries(e).reduce(function(t,n){var r=Vv(n,2),i=r[0],o=r[1];return[].concat($I(t),[i],$I(o))},[]).filter(function(t){return hU(t)||pU(t)}).join(",")}function XPe(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function ZPe(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function hU(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function pU(e){return/^.*\.[\w]+$/.test(e)}var QPe=["children"],JPe=["open"],eTe=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","o
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iTe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oTe(e){if(Array.isArray(e))return j7(e)}function Zw(e,t){return lTe(e)||sTe(e,t)||gU(e,t)||aTe()}function aTe(){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 gU(e,t){if(!!e){if(typeof e=="string")return j7(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 j7(e,t)}}function j7(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 sTe(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 lTe(e){if(Array.isArray(e))return e}function jI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ur(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jI(Object(n),!0).forEach(function(r){Y7(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Y7(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P4(e,t){if(e==null)return{};var n=uTe(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 uTe(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 Rk=C.exports.forwardRef(function(e,t){var n=e.children,r=P4(e,QPe),i=vU(r),o=i.open,a=P4(i,JPe);return C.exports.useImperativeHandle(t,function(){return{open:o}},[o]),x(C.exports.Fragment,{children:n(ur(ur({},a),{},{open:o}))})});Rk.displayName="Dropzone";var mU={disabled:!1,getFilesFromEvent:xPe,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};Rk.defaultProps=mU;Rk.propTypes={children:Rn.exports.func,accept:Rn.exports.objectOf(Rn.exports.arrayOf(Rn.exports.string)),multiple:Rn.exports.bool,preventDropOnDocument:Rn.exports.bool,noClick:Rn.exports.bool,noKeyboard:Rn.exports.bool,noDrag:Rn.exports.bool,noDragEventsBubbling:Rn.exports.bool,minSize:Rn.exports.number,maxSize:Rn.exports.number,maxFiles:Rn.exports.number,disabled:Rn.exports.bool,getFilesFromEvent:Rn.exports.func,onFileDialogCancel:Rn.exports.func,onFileDialogOpen:Rn.exports.func,useFsAccessApi:Rn.exports.bool,autoFocus:Rn.exports.bool,onDragEnter:Rn.exports.func,onDragLeave:Rn.exports.func,onDragOver:Rn.exports.func,onDrop:Rn.exports.func,onDropAccepted:Rn.exports.func,onDropRejected:Rn.exports.func,onError:Rn.exports.func,validator:Rn.exports.func};var q7={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function vU(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=ur(ur({},mU),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,u=t.onDragEnter,h=t.onDragLeave,g=t.onDragOver,m=t.onDrop,v=t.onDropAccepted,b=t.onDropRejected,w=t.onFileDialogCancel,E=t.onFileDialogOpen,P=t.useFsAccessApi,k=t.autoFocus,T=t.preventDropOnDocument,M=t.noClick,O=t.noKeyboard,R=t.noDrag,N=t.noDragEventsBubbling,z=t.onError,V=t.validator,$=C.exports.useMemo(function(){return KPe(n)},[n]),j=C.exports.useMemo(function(){return qPe(n)},[n]),ue=C.exports.useMemo(function(){return typeof E=="function"?E:YI},[E]),W=C.exports.useMemo(function(){return typeof w=="function"?w:YI},[w]),Q=C.exports.useRef(null),ne=C.exports.useRef(null),ee=C.expo
`+O.message,"");i({title:"Upload failed",description:T,status:"error",isClosable:!0})},[i]),u=C.exports.useCallback(async k=>{n(qI({imageFile:k}))},[n]),h=C.exports.useCallback((k,T)=>{T.forEach(M=>{l(M)}),k.forEach(M=>{u(M)})},[u,l]),{getRootProps:g,getInputProps:m,isDragAccept:v,isDragReject:b,isDragActive:w,open:E}=vU({accept:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg",".png"]},noClick:!0,onDrop:h,onDragOver:()=>a(!0),maxFiles:1});s(E),C.exports.useEffect(()=>{const k=T=>{const M=T.clipboardData?.items;if(!M)return;const O=[];for(const N of M)N.kind==="file"&&["image/png","image/jpg"].includes(N.type)&&O.push(N);if(!O.length)return;if(T.stopImmediatePropagation(),O.length>1){i({description:"Multiple images pasted, may only upload one image at a time",status:"error",isClosable:!0});return}const R=O[0].getAsFile();if(!R){i({description:"Unable to load file",status:"error",isClosable:!0});return}n(qI({imageFile:R}))};return document.addEventListener("paste",k),()=>{document.removeEventListener("paste",k)}},[n,i,r]);const P=["img2img","unifiedCanvas"].includes(r)?` to ${Of[r].tooltip}`:"";return x(uk.Provider,{value:E,children:J("div",{...g({style:{}}),onKeyDown:k=>{k.key},children:[x("input",{...m()}),t,w&&o&&x(dTe,{isDragAccept:v,isDragReject:b,overlaySecondaryText:P,setIsHandlingUpload:a})]})})},hTe=()=>{const e=qe(),t=Le(TCe),n=f2();C.exports.useEffect(()=>{t.forEach(r=>{n(r)}),t.length>0&&e(d4e())},[e,n,t])},yU=dt([e=>e.options,e=>e.gallery,_r],(e,t,n)=>{const{shouldPinOptionsPanel:r,shouldShowOptionsPanel:i,shouldHoldOptionsPanelOpen:o}=e,{shouldShowGallery:a,shouldPinGallery:s,shouldHoldGalleryOpen:l}=t,u=!(i||o&&!r)&&["txt2img","img2img","unifiedCanvas"].includes(n),h=!(a||l&&!s)&&["txt2img","img2img","unifiedCanvas"].includes(n);return{shouldPinOptionsPanel:r,shouldShowProcessButtons:!r||!i,shouldShowOptionsPanelButton:u,shouldShowOptionsPanel:i,shouldShowGallery:a,shouldPinGallery:s,shouldShowGalleryButton:h}},{memoizeOptions:{resultEqualityCheck:Ze.isEqual}}),pTe=()=>{const e=qe(),{shouldShowOptionsPanel:t,shouldShowOptionsPanelButton:n,shouldShowProcessButtons:r,shouldPinOptionsPanel:i,shouldShowGallery:o,shouldPinGallery:a}=Le(yU),s=()=>{e(sd(!0)),i&&setTimeout(()=>e(Li(!0)),400)};return pt("f",()=>{o||t?(e(sd(!1)),e(od(!1))):(e(sd(!0)),e(od(!0))),(a||i)&&setTimeout(()=>e(Li(!0)),400)},[o,t]),n?J("div",{className:"show-hide-button-options",children:[x(mt,{tooltip:"Show Options Panel (O)",tooltipProps:{placement:"top"},"aria-label":"Show Options Panel",onClick:s,children:x(uH,{})}),r&&J(Ln,{children:[x(hH,{iconButton:!0}),x(pH,{})]})]}):null},gTe=()=>{const e=qe(),{shouldShowGallery:t,shouldShowGalleryButton:n,shouldPinGallery:r,shouldShowOptionsPanel:i,shouldPinOptionsPanel:o}=Le(yU),a=()=>{e(od(!0)),r&&e(Li(!0))};return pt("f",()=>{t||i?(e(sd(!1)),e(od(!1))):(e(sd(!0)),e(od(!0))),(r||o)&&setTimeout(()=>e(Li(!0)),400)},[t,i]),n?x(mt,{tooltip:"Show Gallery (G)",tooltipProps:{placement:"top"},"aria-label":"Show Gallery",styleClass:"floating-show-hide-button right show-hide-button-gallery",onClick:a,children:x(rH,{})}):null};vPe();const mTe=()=>(hTe(),J("div",{className:"App",children:[J(fTe,{children:[x(JEe,{}),J("div",{className:"app-content",children:[x(hPe,{}),x(_ke,{})]}),x("div",{className:"app-console",children:x(mPe,{})})]}),x(pTe,{}),x(gTe,{})]}));const bU=yye(oU),vTe=xN({key:"invokeai-style-cache",prepend:!0});Jw.createRoot(document.getElementById("root")).render(x(ae.StrictMode,{children:x(q2e,{store:oU,children:x(aU,{loading:x(ZEe,{}),persistor:bU,children:x(PJ,{value:vTe,children:x(_ve,{children:x(mTe,{})})})})})}));