InvokeAI/invokeai/frontend/web/dist/assets/index-a24a7159.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

159 lines
1.4 MiB
JavaScript
Raw Normal View History

2023-10-06 22:14:56 +00:00
var HK=Object.defineProperty;var WK=(e,t,n)=>t in e?HK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var xw=(e,t,n)=>(WK(e,typeof t!="symbol"?t+"":t,n),n),ww=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var ae=(e,t,n)=>(ww(e,t,"read from private field"),n?n.call(e):t.get(e)),Zn=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},aa=(e,t,n,r)=>(ww(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var Np=(e,t,n,r)=>({set _(i){aa(e,t,i,n)},get _(){return ae(e,t,r)}}),ms=(e,t,n)=>(ww(e,t,"access private method"),n);function UN(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 yt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function hS(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var VN={exports:{}},pS={},GN={exports:{}},Lt={};/**
* @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 G0=Symbol.for("react.element"),KK=Symbol.for("react.portal"),QK=Symbol.for("react.fragment"),XK=Symbol.for("react.strict_mode"),YK=Symbol.for("react.profiler"),ZK=Symbol.for("react.provider"),JK=Symbol.for("react.context"),eQ=Symbol.for("react.forward_ref"),tQ=Symbol.for("react.suspense"),nQ=Symbol.for("react.memo"),rQ=Symbol.for("react.lazy"),jP=Symbol.iterator;function iQ(e){return e===null||typeof e!="object"?null:(e=jP&&e[jP]||e["@@iterator"],typeof e=="function"?e:null)}var qN={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},HN=Object.assign,WN={};function dp(e,t,n){this.props=e,this.context=t,this.refs=WN,this.updater=n||qN}dp.prototype.isReactComponent={};dp.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")};dp.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function KN(){}KN.prototype=dp.prototype;function KT(e,t,n){this.props=e,this.context=t,this.refs=WN,this.updater=n||qN}var QT=KT.prototype=new KN;QT.constructor=KT;HN(QT,dp.prototype);QT.isPureReactComponent=!0;var UP=Array.isArray,QN=Object.prototype.hasOwnProperty,XT={current:null},XN={key:!0,ref:!0,__self:!0,__source:!0};function YN(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)QN.call(t,r)&&!XN.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:G0,type:e,key:o,ref:a,props:i,_owner:XT.current}}function oQ(e,t){return{$$typeof:G0,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function YT(e){return typeof e=="object"&&e!==null&&e.$$typeof===G0}function aQ(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var VP=/\/+/g;function Cw(e,t){return typeof e=="object"&&e!==null&&e.key!=null?aQ(""+e.key):t.toString(36)}function b1(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 G0:case KK:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+Cw(a,0):r,UP(i)?(n="",e!=null&&(n=e.replace(VP,"$&/")+"/"),b1(i,t,n,"",function(u){return u})):i!=null&&(YT(i)&&(i=oQ(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(VP,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",UP(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+Cw(o,s);a+=b1(o,t,n,l,i)}else if(l=iQ(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+Cw(o,s++),a+=b1(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 Gy(e,t,n){if(e==null)return e;var r=[],i=0;return b1(e,r,"","",function(o){return t.call(n,o,i++)}),r}function sQ(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 lo={current:null},_1={transition:null},lQ={ReactCurrentDispatcher:lo,ReactCurrentBatchConfig:_1,ReactCurrentOwner:XT};Lt.Children={map:Gy,forEach:function(e,t,n){Gy(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Gy(e,function(){t++}),t},toArray:function(e){return Gy(e,function(t){return t})||[]},only:function(e){if(!YT(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Lt.Component=dp;Lt.Fragment=QK;Lt.Profiler=YK;Lt
* @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 uQ=I,cQ=Symbol.for("react.element"),dQ=Symbol.for("react.fragment"),fQ=Object.prototype.hasOwnProperty,hQ=uQ.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,pQ={key:!0,ref:!0,__self:!0,__source:!0};function ZN(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)fQ.call(t,r)&&!pQ.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:cQ,type:e,key:o,ref:a,props:i,_owner:hQ.current}}pS.Fragment=dQ;pS.jsx=ZN;pS.jsxs=ZN;VN.exports=pS;var W=VN.exports,q5={},JN={exports:{}},ta={},e$={exports:{}},t$={};/**
* @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(M,R){var N=M.length;M.push(R);e:for(;0<N;){var B=N-1>>>1,U=M[B];if(0<i(U,R))M[B]=R,M[N]=U,N=B;else break e}}function n(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var R=M[0],N=M.pop();if(N!==R){M[0]=N;e:for(var B=0,U=M.length,G=U>>>1;B<G;){var Z=2*(B+1)-1,ee=M[Z],J=Z+1,j=M[J];if(0>i(ee,N))J<U&&0>i(j,ee)?(M[B]=j,M[J]=N,B=J):(M[B]=ee,M[Z]=N,B=Z);else if(J<U&&0>i(j,N))M[B]=j,M[J]=N,B=J;else break e}}return R}function i(M,R){var N=M.sortIndex-R.sortIndex;return N!==0?N:M.id-R.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=[],c=1,d=null,f=3,h=!1,p=!1,m=!1,_=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(M){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=M)r(u),R.sortIndex=R.expirationTime,t(l,R);else break;R=n(u)}}function v(M){if(m=!1,g(M),!p)if(n(l)!==null)p=!0,D(S);else{var R=n(u);R!==null&&L(v,R.startTime-M)}}function S(M,R){p=!1,m&&(m=!1,b(C),C=-1),h=!0;var N=f;try{for(g(R),d=n(l);d!==null&&(!(d.expirationTime>R)||M&&!P());){var B=d.callback;if(typeof B=="function"){d.callback=null,f=d.priorityLevel;var U=B(d.expirationTime<=R);R=e.unstable_now(),typeof U=="function"?d.callback=U:d===n(l)&&r(l),g(R)}else r(l);d=n(l)}if(d!==null)var G=!0;else{var Z=n(u);Z!==null&&L(v,Z.startTime-R),G=!1}return G}finally{d=null,f=N,h=!1}}var w=!1,x=null,C=-1,k=5,T=-1;function P(){return!(e.unstable_now()-T<k)}function $(){if(x!==null){var M=e.unstable_now();T=M;var R=!0;try{R=x(!0,M)}finally{R?O():(w=!1,x=null)}}else w=!1}var O;if(typeof y=="function")O=function(){y($)};else if(typeof MessageChannel<"u"){var E=new MessageChannel,A=E.port2;E.port1.onmessage=$,O=function(){A.postMessage(null)}}else O=function(){_($,0)};function D(M){x=M,w||(w=!0,O())}function L(M,R){C=_(function(){M(e.unstable_now())},R)}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(M){M.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,D(S))},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(M){switch(f){case 1:case 2:case 3:var R=3;break;default:R=f}var N=f;f=R;try{return M()}finally{f=N}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(M,R){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var N=f;f=M;try{return R()}finally{f=N}},e.unstable_scheduleCallback=function(M,R,N){var B=e.unstable_now();switch(typeof N=="object"&&N!==null?(N=N.delay,N=typeof N=="number"&&0<N?B+N:B):N=B,M){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=N+U,M={id:c++,callback:R,priorityLevel:M,startTime:N,expirationTime:U,sortIndex:-1},N>B?(M.sortIndex=N,t(u,M),n(l)===null&&M===n(u)&&(m?(b(C),C=-1):m=!0,L(v,N-B))):(M.sortIndex=U,t(l,M),p||h||(p=!0,D(S))),M},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(M){var R=f;return function(){var N=f;f=R;try{return M.apply(this,arguments)}finally{f=N}}}})(t$);e$.exports=t$;var gQ=e$.exports;/**
* @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 n$=I,Yo=gQ;function le(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 r$=new Set,um={};function Bd(e,t){Mh(e,t),Mh(e+"Capture",t)}function Mh(e,t){for(um[e]=t,e=0;e<t.length;e++)r$.add(t[e])}var jl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),H5=Object.prototype.hasOwnProperty,mQ=/^[: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]*$/,qP={},HP={};function yQ(e){return H5.call(HP,e)?!0:H5.call(qP,e)?!1:mQ.test(e)?HP[e]=!0:(qP[e]=!0,!1)}function vQ(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 bQ(e,t,n,r){if(t===null||typeof t>"u"||vQ(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 uo(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 Ri={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ri[e]=new uo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ri[t]=new uo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ri[e]=new uo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ri[e]=new uo(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){Ri[e]=new uo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ri[e]=new uo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ri[e]=new uo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ri[e]=new uo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ri[e]=new uo(e,5,!1,e.toLowerCase(),null,!1,!1)});var ZT=/[\-:]([a-z])/g;function JT(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-adv-y vert-origin
`+Ew+e}var Tw=!1;function kw(e,t){if(!e||Tw)return"";Tw=!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{Tw=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?hg(e):""}function _Q(e){switch(e.tag){case 5:return hg(e.type);case 16:return hg("Lazy");case 13:return hg("Suspense");case 19:return hg("SuspenseList");case 0:case 2:case 15:return e=kw(e.type,!1),e;case 11:return e=kw(e.type.render,!1),e;case 1:return e=kw(e.type,!0),e;default:return""}}function X5(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 Pf:return"Fragment";case Af:return"Portal";case W5:return"Profiler";case t4:return"StrictMode";case K5:return"Suspense";case Q5:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case o$:return(e.displayName||"Context")+".Consumer";case i$:return(e._context.displayName||"Context")+".Provider";case n4:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case r4:return t=e.displayName||null,t!==null?t:X5(e.type)||"Memo";case vu:t=e._payload,e=e._init;try{return X5(e(t))}catch{}}return null}function SQ(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 X5(t);case 8:return t===t4?"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 ec(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function s$(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function xQ(e){var t=s$(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 Hy(e){e._valueTracker||(e._valueTracker=xQ(e))}function l$(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=s$(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function fb(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 Y5(e,t){var n=t.checked;return dr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function KP(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ec(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 u$(e,t){t=t.checked,t!=null&&e4(e,"checked",t,!1)}function Z5(e,t){u$(e,t);var n=ec(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")?J5(e,t.type,n):t.hasOwnProperty("defaultValue")&&J5(e,t.type,ec(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function QP(e,t,n){if(t.hasOwnProperty("val
`).replace(OX,"")}function ev(e,t,n){if(t=v6(t),v6(e)!==t&&n)throw Error(le(425))}function _b(){}var h3=null,p3=null;function g3(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 m3=typeof setTimeout=="function"?setTimeout:void 0,MX=typeof clearTimeout=="function"?clearTimeout:void 0,b6=typeof Promise=="function"?Promise:void 0,NX=typeof queueMicrotask=="function"?queueMicrotask:typeof b6<"u"?function(e){return b6.resolve(null).then(e).catch($X)}:m3;function $X(e){setTimeout(function(){throw e})}function zw(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),pm(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);pm(t)}function ju(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 _6(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 hp=Math.random().toString(36).slice(2),Is="__reactFiber$"+hp,bm="__reactProps$"+hp,Ul="__reactContainer$"+hp,y3="__reactEvents$"+hp,DX="__reactListeners$"+hp,LX="__reactHandles$"+hp;function Zc(e){var t=e[Is];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ul]||n[Is]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=_6(e);e!==null;){if(n=e[Is])return n;e=_6(e)}return t}e=n,n=e.parentNode}return null}function W0(e){return e=e[Is]||e[Ul],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Mf(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(le(33))}function bS(e){return e[bm]||null}var v3=[],Nf=-1;function vc(e){return{current:e}}function Qn(e){0>Nf||(e.current=v3[Nf],v3[Nf]=null,Nf--)}function $n(e,t){Nf++,v3[Nf]=e.current,e.current=t}var tc={},Wi=vc(tc),To=vc(!1),xd=tc;function Nh(e,t){var n=e.type.contextTypes;if(!n)return tc;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ko(e){return e=e.childContextTypes,e!=null}function Sb(){Qn(To),Qn(Wi)}function S6(e,t,n){if(Wi.current!==tc)throw Error(le(168));$n(Wi,t),$n(To,n)}function Y$(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(le(108,SQ(e)||"Unknown",i));return dr({},n,r)}function xb(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||tc,xd=Wi.current,$n(Wi,e),$n(To,To.current),!0}function x6(e,t,n){var r=e.stateNode;if(!r)throw Error(le(169));n?(e=Y$(e,t,xd),r.__reactInternalMemoizedMergedChildContext=e,Qn(To),Qn(Wi),$n(Wi,e)):Qn(To),$n(To,n)}var bl=null,_S=!1,jw=!1;function Z$(e){bl===null?bl=[e]:bl.push(e)}function FX(e){_S=!0,Z$(e)}function bc(){if(!jw&&bl!==null){jw=!0;var e=0,t=yn;try{var n=bl;for(yn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}bl=null,_S=!1}catch(i){throw bl!==null&&(bl=bl.slice(e+1)),w$(o4,bc),i}finally{yn=t,jw=!1}}return null}var $f=[],Df=0,wb=null,Cb=0,ga=[],ma=0,wd=null,Pl=1,Il="";function zc(e,t){$f[Df++]=Cb,$f[Df++]=wb,wb=e,Cb=t}function J$(e,t,n){ga[ma++]=Pl,ga[ma++]=Il,ga[ma++]=wd,wd=e;var r=Pl;e=Il;var i=32-es(r)-1;r&=~(1<<i),n+=1;var o=32-es(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Pl=1<<32-es(t)+i|n<<i|r,Il=o+e}else Pl=1<<o|n<<i|r,Il=e}function p4(e){e.return!==null&&(zc(e,1),J$(e,1,0))}function g4(e){for(;e===wb;)wb=$f[--Df],$f[Df]=null,Cb=$f[--Df],$f[Df]=null;for(;e===wd;)wd=ga[--ma],ga[ma]=null,Il=ga[--ma],ga[ma]=null,Pl=ga[--ma],ga[ma]=null}var Ko=null,Ho=null,nr=!1,Ha=null;function eD(e,t){var n=ba(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 Hw(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function C3(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var WX=typeof WeakMap=="function"?WeakMap:Map;function AD(e,t,n){n=Nl(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ob||(Ob=!0,N3=r),C3(e,t)},n}function PD(e,t,n){n=Nl(-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(){C3(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){C3(e,t),typeof r!="function"&&(Vu===null?Vu=new Set([this]):Vu.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function O6(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new WX;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=sY.bind(null,e,t,n),t.then(e,e))}function M6(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 N6(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Nl(-1,1),t.tag=2,Uu(n,t,1))),n.lanes|=1),e)}var KX=Yl.ReactCurrentOwner,xo=!1;function to(e,t,n,r){t.child=e===null?sD(t,null,n,r):Dh(t,e.child,n,r)}function $6(e,t,n,r,i){n=n.render;var o=t.ref;return nh(t,i),r=T4(e,t,n,r,o,i),n=k4(),e!==null&&!xo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Gl(e,t,i)):(nr&&n&&p4(t),t.flags|=1,to(e,t,r,i),t.child)}function D6(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!L4(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,ID(e,t,o,r,i)):(e=I1(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)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:mm,n(a,r)&&e.ref===t.ref)return Gl(e,t,i)}return t.flags|=1,e=qu(o,r),e.ref=t.ref,e.return=t,t.child=e}function ID(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(mm(o,r)&&e.ref===t.ref)if(xo=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(xo=!0);else return t.lanes=e.lanes,Gl(e,t,i)}return E3(e,t,n,r,i)}function RD(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},$n(Bf,Uo),Uo|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,$n(Bf,Uo),Uo|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,$n(Bf,Uo),Uo|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,$n(Bf,Uo),Uo|=r;return to(e,t,i,n),t.child}function OD(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function E3(e,t,n,r,i){var o=ko(n)?xd:Wi.current;return o=Nh(t,o),nh(t,i),n=T4(e,t,n,r,o,i),r=k4(),e!==null&&!xo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Gl(e,t,i)):(nr&&r&&p4(t),t.flags|=1,to(e,t,n,i),t.child)}function L6(e,t,n,r,i){if(ko(n)){var o=!0;xb(t)}else o=!1;if(nh(t,i),t.stateNode===null)k1(e,t),oD(t,n,r),w3(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=xa(u):(u=ko(n)?xd:Wi.current,u=Nh(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==u)&&A6(t,a,r,u),bu=!1;var f=t.memoizedState;a.state=f,kb(t,r,a,i),l=t.memoizedState,s!==r||f!==l||To.current||bu?(typeof c=="function"&&(x3(t,n,c,r),l=t.memoizedState),(s=bu||k6(t,n,s,r,f,l,u))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.
Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details.
See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.`)}}}({queryThunk:Se,mutationThunk:Ye,api:H,serializeQueryArgs:je,context:re}),mo=Xn.buildInitiateQuery,Fa=Xn.buildInitiateMutation;return yi(H.util,{getRunningOperationPromises:Xn.getRunningOperationPromises,getRunningOperationPromise:Xn.removalWarning,getRunningMutationThunk:Xn.getRunningMutationThunk,getRunningMutationsThunk:Xn.getRunningMutationsThunk,getRunningQueryThunk:Xn.getRunningQueryThunk,getRunningQueriesThunk:Xn.getRunningQueriesThunk}),{name:oa,injectEndpoint:function(it,hn){var rn,or=H;(rn=or.endpoints)[it]!=null||(rn[it]={}),ne(hn)?yi(or.endpoints[it],{name:it,select:Sr(it,hn),initiate:mo(it,hn)},wt(Se,it)):hn.type===J.mutation&&yi(or.endpoints[it],{name:it,select:vi(),initiate:Fa(it)},wt(Ye,it))}}}}},ll=po(ri())})(OB);RB.exports=OB;var ble=RB.exports;const oi=["general"],Ji=["control","mask","user","other"],_le=100,hv=20;let Yi=[],nl=(e,t)=>{let n=[],r={get(){return r.lc||r.listen(()=>{})(),r.value},l:t||0,lc:0,listen(i,o){return r.lc=n.push(i,o||r.l)/2,()=>{let a=n.indexOf(i);~a&&(n.splice(a,2),r.lc--,r.lc||r.off())}},notify(i){let o=!Yi.length;for(let a=0;a<n.length;a+=2)Yi.push(n[a],r.value,i,n[a+1]);if(o){for(let a=0;a<Yi.length;a+=4){let s=!1;for(let l=a+7;l<Yi.length;l+=4)if(Yi[l]<Yi[a+3]){s=!0;break}s?Yi.push(Yi[a],Yi[a+1],Yi[a+2],Yi[a+3]):Yi[a](Yi[a+1],Yi[a+2])}Yi.length=0}},off(){},set(i){r.value!==i&&(r.value=i,r.notify())},subscribe(i,o){let a=r.listen(i,o);return i(r.value),a},value:e};return r};const Sle=5,pv=6,gv=10;let xle=(e,t,n,r)=>(e.events=e.events||{},e.events[n+gv]||(e.events[n+gv]=r(i=>{e.events[n].reduceRight((o,a)=>(a(o),o),{shared:{},...i})})),e.events[n]=e.events[n]||[],e.events[n].push(t),()=>{let i=e.events[n],o=i.indexOf(t);i.splice(o,1),i.length||(delete e.events[n],e.events[n+gv](),delete e.events[n+gv])}),wle=1e3,Cle=(e,t)=>xle(e,r=>{let i=t(r);i&&e.events[pv].push(i)},Sle,r=>{let i=e.listen;e.listen=(...a)=>(!e.lc&&!e.active&&(e.active=!0,r()),i(...a));let o=e.off;return e.events[pv]=[],e.off=()=>{o(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let a of e.events[pv])a();e.events[pv]=[]}},wle)},()=>{e.listen=i,e.off=o}}),Ele=(e,t)=>{Array.isArray(e)||(e=[e]);let n,r=()=>{let o=e.map(a=>a.get());(n===void 0||o.some((a,s)=>a!==n[s]))&&(n=o,i.set(t(...o)))},i=nl(void 0,Math.max(...e.map(o=>o.l))+1);return Cle(i,()=>{let o=e.map(a=>a.listen(r,i.l));return r(),()=>{for(let a of o)a()}}),i};const MB=nl(),Tle={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class n_{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||Tle,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,i){return i&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new n_(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new n_(this.logger,t)}}var $s=new n_;class JS{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]=this.observers[r]||[],this.observers[r].push(n)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t]=this.observers[t].filter(r=>r!==n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];
`&&(this.line+=1,this.lastLineBreak=this.index),{value:u}}},o.prototype.save=function(){return{line:this.line,col:this.index-this.lastLineBreak}},o.prototype.formatError=function(u,c){var d=this.buffer;if(typeof d=="string"){var f=d.split(`
`).slice(Math.max(0,this.line-5),this.line),h=d.indexOf(`
`,this.index);h===-1&&(h=d.length);var p=this.index-this.lastLineBreak,m=String(this.line).length;return c+=" at line "+this.line+" col "+p+`:
`,c+=f.map(function(b,y){return _(this.line-f.length+y+1,m)+" "+b},this).join(`
`),c+=`
`+_("",m+p)+`^
`,c}else return c+" at index "+(this.index-1);function _(b,y){var g=String(b);return Array(y-g.length+1).join(" ")+g}};function a(u,c,d){if(u instanceof i)var f=u,d=c;else var f=i.fromCompiled(u,c);this.grammar=f,this.options={keepHistory:!1,lexer:f.lexer||new o};for(var h in d||{})this.options[h]=d[h];this.lexer=this.options.lexer,this.lexerState=void 0;var p=new r(f,0);this.table=[p],p.wants[f.start]=[],p.predict(f.start),p.process(),this.current=0}a.fail={},a.prototype.feed=function(u){var c=this.lexer;c.reset(u,this.lexerState);for(var d;;){try{if(d=c.next(),!d)break}catch(x){var m=new r(this.grammar,this.current+1);this.table.push(m);var f=new Error(this.reportLexerError(x));throw f.offset=this.current,f.token=x.token,f}var h=this.table[this.current];this.options.keepHistory||delete this.table[this.current-1];var p=this.current+1,m=new r(this.grammar,p);this.table.push(m);for(var _=d.text!==void 0?d.text:d.value,b=c.constructor===o?d.value:d,y=h.scannable,g=y.length;g--;){var v=y[g],S=v.rule.symbols[v.dot];if(S.test?S.test(b):S.type?S.type===d.type:S.literal===_){var w=v.nextState({data:b,token:d,isToken:!0,reference:p-1});m.states.push(w)}}if(m.process(),m.states.length===0){var f=new Error(this.reportError(d));throw f.offset=this.current,f.token=d,f}this.options.keepHistory&&(h.lexerState=c.save()),this.current++}return h&&(this.lexerState=c.save()),this.results=this.finish(),this},a.prototype.reportLexerError=function(u){var c,d,f=u.token;return f?(c="input "+JSON.stringify(f.text[0])+" (lexer error)",d=this.lexer.formatError(f,"Syntax error")):(c="input (lexer error)",d=u.message),this.reportErrorCommon(d,c)},a.prototype.reportError=function(u){var c=(u.type?u.type+" token: ":"")+JSON.stringify(u.value!==void 0?u.value:u),d=this.lexer.formatError(u,"Syntax error");return this.reportErrorCommon(d,c)},a.prototype.reportErrorCommon=function(u,c){var d=[];d.push(u);var f=this.table.length-2,h=this.table[f],p=h.states.filter(function(_){var b=_.rule.symbols[_.dot];return b&&typeof b!="string"});if(p.length===0)d.push("Unexpected "+c+`. I did not expect any more input. Here is the state of my parse table:
`),this.displayStateStack(h.states,d);else{d.push("Unexpected "+c+`. Instead, I was expecting to see one of the following:
`);var m=p.map(function(_){return this.buildFirstStateStack(_,[])||[_]},this);m.forEach(function(_){var b=_[0],y=b.rule.symbols[b.dot],g=this.getSymbolDisplay(y);d.push("A "+g+" based on:"),this.displayStateStack(_,d)},this)}return d.push(""),d.join(`
`)},a.prototype.displayStateStack=function(u,c){for(var d,f=0,h=0;h<u.length;h++){var p=u[h],m=p.rule.toString(p.dot);m===d?f++:(f>0&&c.push(" ^ "+f+" more lines identical to this"),f=0,c.push(" "+m)),d=m}},a.prototype.getSymbolDisplay=function(u){return s(u)},a.prototype.buildFirstStateStack=function(u,c){if(c.indexOf(u)!==-1)return null;if(u.wantedBy.length===0)return[u];var d=u.wantedBy[0],f=[u].concat(c),h=this.buildFirstStateStack(d,f);return h===null?null:[u].concat(h)},a.prototype.save=function(){var u=this.table[this.current];return u.lexerState=this.lexerState,u},a.prototype.restore=function(u){var c=u.index;this.current=c,this.table[c]=u,this.table.splice(c+1),this.lexerState=u.lexerState,this.results=this.finish()},a.prototype.rewind=function(u){if(!this.options.keepHistory)throw new Error("set option `keepHistory` to enable rewinding");this.restore(this.table[u])},a.prototype.finish=function(){var u=[],c=this.grammar.start,d=this.table[this.table.length-1];return d.states.forEach(function(f){f.rule.name===c&&f.dot===f.rule.symbols.length&&f.reference===0&&f.data!==a.fail&&u.push(f)}),u.map(function(f){return f.data})};function s(u){var c=typeof u;if(c==="string")return u;if(c==="object"){if(u.literal)return JSON.stringify(u.literal);if(u instanceof RegExp)return"character matching "+u;if(u.type)return u.type+" token";if(u.test)return"token matching "+String(u.test);throw new Error("Unknown symbol type: "+u)}}function l(u){var c=typeof u;if(c==="string")return u;if(c==="object"){if(u.literal)return JSON.stringify(u.literal);if(u instanceof RegExp)return u.toString();if(u.type)return"%"+u.type;if(u.test)return"<"+String(u.test)+">";throw new Error("Unknown symbol type: "+u)}}return{Parser:a,Grammar:i,Rule:t}})})(Hz);var ppe=Hz.exports,Md={},Wz={},wc={};wc.__esModule=void 0;wc.__esModule=!0;var gpe=typeof Object.setPrototypeOf=="function",mpe=typeof Object.getPrototypeOf=="function",ype=typeof Object.defineProperty=="function",vpe=typeof Object.create=="function",bpe=typeof Object.prototype.hasOwnProperty=="function",_pe=function(t,n){gpe?Object.setPrototypeOf(t,n):t.__proto__=n};wc.setPrototypeOf=_pe;var Spe=function(t){return mpe?Object.getPrototypeOf(t):t.__proto__||t.prototype};wc.getPrototypeOf=Spe;var fR=!1,xpe=function e(t,n,r){if(ype&&!fR)try{Object.defineProperty(t,n,r)}catch{fR=!0,e(t,n,r)}else t[n]=r.value};wc.defineProperty=xpe;var Kz=function(t,n){return bpe?t.hasOwnProperty(t,n):t[n]===void 0};wc.hasOwnProperty=Kz;var wpe=function(t,n){if(vpe)return Object.create(t,n);var r=function(){};r.prototype=t;var i=new r;if(typeof n>"u")return i;if(typeof n=="null")throw new Error("PropertyDescriptors must not be null.");if(typeof n=="object")for(var o in n)Kz(n,o)&&(i[o]=n[o].value);return i};wc.objectCreate=wpe;(function(e){e.__esModule=void 0,e.__esModule=!0;var t=wc,n=t.setPrototypeOf,r=t.getPrototypeOf,i=t.defineProperty,o=t.objectCreate,a=new Error().toString()==="[object Error]",s="";function l(u){var c=this.constructor,d=c.name||function(){var _=c.toString().match(/^function\s*([^\s(]+)/);return _===null?s||"Error":_[1]}(),f=d==="Error",h=f?s:d,p=Error.apply(this,arguments);if(n(p,r(this)),!(p instanceof c)||!(p instanceof l)){var p=this;Error.apply(this,arguments),i(p,"message",{configurable:!0,enumerable:!1,value:u,writable:!0})}if(i(p,"name",{configurable:!0,enumerable:!1,value:h,writable:!0}),Error.captureStackTrace&&Error.captureStackTrace(p,f?l:c),p.stack===void 0){var m=new Error(u);m.name=p.name,p.stack=m.stack}return a&&i(p,"toString",{configurable:!0,enumerable:!1,value:function(){return(this.name||"Error")+(typeof this.message>"u"?"":": "+this.message)},writable:!0}),p}s=l.name||"ExtendableError",l.prototype=o(Error.prototype,{constructor:{value:Error,enumerable:!1,writable:!0,configurable:!0}}),e.ExtendableError=l,e.default=e.ExtendableError})(Wz);var Qz=yt&&yt.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(
${M}`,B=`,
${M}`);const Q=Math.min(R.length,x);let ne=0;for(;ne<Q-1;ne++){const ye=C(String(ne),R,A,D,L,M);N+=ye!==void 0?ye:"null",N+=B}const se=C(String(ne),R,A,D,L,M);if(N+=se!==void 0?se:"null",R.length-1>x){const ye=R.length-x-1;N+=`${B}"... ${h(ye)} not stringified"`}return L!==""&&(N+=`
${U}`),A.pop(),`[${N}]`}let G=Object.keys(R);const Z=G.length;if(Z===0)return"{}";if(w<A.length+1)return'"[Object]"';let ee="",J="";L!==""&&(M+=L,B=`,
${M}`,ee=" ");const j=Math.min(Z,x);S&&!l(R)&&(G=a(G)),A.push(R);for(let Q=0;Q<j;Q++){const ne=G[Q],se=C(ne,R,A,D,L,M);se!==void 0&&(N+=`${J}${o(ne)}:${ee}${se}`,J=B)}if(Z>x){const Q=Z-x;N+=`${J}"...":${ee}"${h(Q)} not stringified"`,J=B}return L!==""&&J.length>1&&(N=`
${M}${N}
${U}`),A.pop(),`{${N}}`}case"number":return isFinite(R)?String(R):y?y(R):"null";case"boolean":return R===!0?"true":"false";case"undefined":return;case"bigint":if(v)return String(R);default:return y?y(R):void 0}}function k(O,E,A,D,L,M){switch(typeof E=="object"&&E!==null&&typeof E.toJSON=="function"&&(E=E.toJSON(O)),typeof E){case"string":return o(E);case"object":{if(E===null)return"null";if(A.indexOf(E)!==-1)return g;const R=M;let N="",B=",";if(Array.isArray(E)){if(E.length===0)return"[]";if(w<A.length+1)return'"[Array]"';A.push(E),L!==""&&(M+=L,N+=`
${M}`,B=`,
${M}`);const Z=Math.min(E.length,x);let ee=0;for(;ee<Z-1;ee++){const j=k(String(ee),E[ee],A,D,L,M);N+=j!==void 0?j:"null",N+=B}const J=k(String(ee),E[ee],A,D,L,M);if(N+=J!==void 0?J:"null",E.length-1>x){const j=E.length-x-1;N+=`${B}"... ${h(j)} not stringified"`}return L!==""&&(N+=`
${R}`),A.pop(),`[${N}]`}A.push(E);let U="";L!==""&&(M+=L,B=`,
${M}`,U=" ");let G="";for(const Z of D){const ee=k(Z,E[Z],A,D,L,M);ee!==void 0&&(N+=`${G}${o(Z)}:${U}${ee}`,G=B)}return L!==""&&G.length>1&&(N=`
${M}${N}
${R}`),A.pop(),`{${N}}`}case"number":return isFinite(E)?String(E):y?y(E):"null";case"boolean":return E===!0?"true":"false";case"undefined":return;case"bigint":if(v)return String(E);default:return y?y(E):void 0}}function T(O,E,A,D,L){switch(typeof E){case"string":return o(E);case"object":{if(E===null)return"null";if(typeof E.toJSON=="function"){if(E=E.toJSON(O),typeof E!="object")return T(O,E,A,D,L);if(E===null)return"null"}if(A.indexOf(E)!==-1)return g;const M=L;if(Array.isArray(E)){if(E.length===0)return"[]";if(w<A.length+1)return'"[Array]"';A.push(E),L+=D;let ee=`
${L}`;const J=`,
${L}`,j=Math.min(E.length,x);let Q=0;for(;Q<j-1;Q++){const se=T(String(Q),E[Q],A,D,L);ee+=se!==void 0?se:"null",ee+=J}const ne=T(String(Q),E[Q],A,D,L);if(ee+=ne!==void 0?ne:"null",E.length-1>x){const se=E.length-x-1;ee+=`${J}"... ${h(se)} not stringified"`}return ee+=`
${M}`,A.pop(),`[${ee}]`}let R=Object.keys(E);const N=R.length;if(N===0)return"{}";if(w<A.length+1)return'"[Object]"';L+=D;const B=`,
${L}`;let U="",G="",Z=Math.min(N,x);l(E)&&(U+=u(E,B,x),R=R.slice(E.length),Z-=E.length,G=B),S&&(R=a(R)),A.push(E);for(let ee=0;ee<Z;ee++){const J=R[ee],j=T(J,E[J],A,D,L);j!==void 0&&(U+=`${G}${o(J)}: ${j}`,G=B)}if(N>x){const ee=N-x;U+=`${G}"...": "${h(ee)} not stringified"`,G=B}return G!==""&&(U=`
${L}${U}
${M}`),A.pop(),`{${U}}`}case"number":return isFinite(E)?String(E):y?y(E):"null";case"boolean":return E===!0?"true":"false";case"undefined":return;case"bigint":if(v)return String(E);default:return y?y(E):void 0}}function P(O,E,A){switch(typeof E){case"string":return o(E);case"object":{if(E===null)return"null";if(typeof E.toJSON=="function"){if(E=E.toJSON(O),typeof E!="object")return P(O,E,A);if(E===null)return"null"}if(A.indexOf(E)!==-1)return g;let D="";if(Array.isArray(E)){if(E.length===0)return"[]";if(w<A.length+1)return'"[Array]"';A.push(E);const B=Math.min(E.length,x);let U=0;for(;U<B-1;U++){const Z=P(String(U),E[U],A);D+=Z!==void 0?Z:"null",D+=","}const G=P(String(U),E[U],A);if(D+=G!==void 0?G:"null",E.length-1>x){const Z=E.length-x-1;D+=`,"... ${h(Z)} not stringified"`}return A.pop(),`[${D}]`}let L=Object.keys(E);const M=L.length;if(M===0)return"{}";if(w<A.length+1)return'"[Object]"';let R="",N=Math.min(M,x);l(E)&&(D+=u(E,",",x),L=L.slice(E.length),N-=E.length,R=","),S&&(L=a(L)),A.push(E);for(let B=0;B<N;B++){const U=L[B],G=P(U,E[U],A);G!==void 0&&(D+=`${R}${o(U)}:${G}`,R=",")}if(M>x){const B=M-x;D+=`${R}"...":"${h(B)} not stringified"`}return A.pop(),`{${D}}`}case"number":return isFinite(E)?String(E):y?y(E):"null";case"boolean":return E===!0?"true":"false";case"undefined":return;case"bigint":if(v)return String(E);default:return y?y(E):void 0}}function $(O,E,A){if(arguments.length>1){let D="";if(typeof A=="number"?D=" ".repeat(Math.min(A,10)):typeof A=="string"&&(D=A.slice(0,10)),E!=null){if(typeof E=="function")return C("",{"":O},[],E,D,"");if(Array.isArray(E))return k("",O,[],p(E),D,"")}if(D.length!==0)return T("",O,[],D,"")}return P("",O,[])}return $}})(vE,vE.exports);var Hpe=vE.exports;(function(e){var t=yt&&yt.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(e,"__esModule",{value:!0}),e.createLogger=void 0;const n=Nd,r=_y,i=nj,o=rj,a=t(Ik),s=t(Hpe);let l=!1;const u=(0,a.default)(),c=()=>u.ROARR,d=()=>({messageContext:{},transforms:[]}),f=()=>{const g=c().asyncLocalStorage;if(!g)throw new Error("AsyncLocalContext is unavailable.");const v=g.getStore();return v||d()},h=()=>!!c().asyncLocalStorage,p=()=>{if(h()){const g=f();return(0,i.hasOwnProperty)(g,"sequenceRoot")&&(0,i.hasOwnProperty)(g,"sequence")&&typeof g.sequence=="number"?String(g.sequenceRoot)+"."+String(g.sequence++):String(c().sequence++)}return String(c().sequence++)},m=(g,v)=>(S,w,x,C,k,T,P,$,O,E)=>{g.child({logLevel:v})(S,w,x,C,k,T,P,$,O,E)},_=1e3,b=(g,v)=>(S,w,x,C,k,T,P,$,O,E)=>{const A=(0,s.default)({a:S,b:w,c:x,d:C,e:k,f:T,g:P,h:$,i:O,j:E,logLevel:v});if(!A)throw new Error("Expected key to be a string");const D=c().onceLog;D.has(A)||(D.add(A),D.size>_&&D.clear(),g.child({logLevel:v})(S,w,x,C,k,T,P,$,O,E))},y=(g,v={},S=[])=>{const w=(x,C,k,T,P,$,O,E,A,D)=>{const L=Date.now(),M=p();let R;h()?R=f():R=d();let N,B;if(typeof x=="string"?N={...R.messageContext,...v}:N={...R.messageContext,...v,...x},typeof x=="string"&&C===void 0)B=x;else if(typeof x=="string"){if(!x.includes("%"))throw new Error("When a string parameter is followed by other arguments, then it is assumed that you are attempting to format a message using printf syntax. You either forgot to add printf bindings or if you meant to add context to the log message, pass them in an object as the first parameter.");B=(0,o.printf)(x,C,k,T,P,$,O,E,A,D)}else{let G=C;if(typeof C!="string")if(C===void 0)G="";else throw new TypeError("Message must be a string. Received "+typeof C+".");B=(0,o.printf)(G,k,T,P,$,O,E,A,D)}let U={context:N,message:B,sequence:M,time:L,version:n.ROARR_LOG_FORMAT_VERSION};for(const G of[...R.transforms,...S])if(U=G(U),typeof U!="object"||U===null)throw new Error("Message transform function must return a message object.");g(U)};return w.child=x=>{let C;return h()?C=f():C=d(),typeof x=="function"?(0,e.createLogger)(g,{...C.messageContext,...v,...x},[x,...S]):(0,e.createLogger)(g,{...C.messageContext,...v,...x},S)},w.getContext=()=>{let x;return h()?x=f():x=d(),{...x.messageContext,...v}},w.adopt=async(x,C)=>{if(!h())return l===!1&&(l=!
background-color: `.concat(p.backgroundColor,`;
color: `).concat(p.color,`;
font-weight: bold;
`),_=`
color: `.concat(ige[f].color,`;
`),b=`
color: inherit;
`;Object.keys(d).length>0?h("%c ".concat(f," %c").concat(c?" [".concat(String(c),"]:"):"","%c ").concat(s.message," %O"),m,_,b,d):h("%c ".concat(f," %c").concat(c?" [".concat(String(c),"]:"):"","%c ").concat(s.message),m,_,b)}}};r2.createLogWriter=age;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createLogWriter=void 0;var t=r2;Object.defineProperty(e,"createLogWriter",{enumerable:!0,get:function(){return t.createLogWriter}})})(Mz);by.ROARR.write=Mz.createLogWriter();const oj={};by.Roarr.child(oj);const x2=nl(by.Roarr.child(oj)),_e=e=>x2.get().child({namespace:e}),RGe=["trace","debug","info","warn","error","fatal"],OGe={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},Xt=e=>{try{return JSON.parse(JSON.stringify(e))}catch{return"Error parsing object"}},sge=async e=>{const t={},n=await e.arrayBuffer(),r=Jfe(n).text,i=ch(r,"invokeai_metadata");if(i){const a=UB.safeParse(JSON.parse(i));a.success?t.metadata=a.data:_e("system").error({error:Xt(a.error)},"Problem reading metadata from image")}const o=ch(r,"invokeai_workflow");if(o){const a=WB.safeParse(JSON.parse(o));a.success?t.workflow=a.data:_e("system").error({error:Xt(a.error)},"Problem reading workflow from image")}return t};var v_=globalThis&&globalThis.__generator||function(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(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;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[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},b_=globalThis&&globalThis.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},lge=Object.defineProperty,uge=Object.defineProperties,cge=Object.getOwnPropertyDescriptors,__=Object.getOwnPropertySymbols,aj=Object.prototype.hasOwnProperty,sj=Object.prototype.propertyIsEnumerable,yR=function(e,t,n){return t in e?lge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Cr=function(e,t){for(var n in t||(t={}))aj.call(t,n)&&yR(e,n,t[n]);if(__)for(var r=0,i=__(t);r<i.length;r++){var n=i[r];sj.call(t,n)&&yR(e,n,t[n])}return e},Ds=function(e,t){return uge(e,cge(t))},vR=function(e,t){var n={};for(var r in e)aj.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&__)for(var i=0,o=__(e);i<o.length;i++){var r=o[i];t.indexOf(r)<0&&sj.call(e,r)&&(n[r]=e[r])}return n},S_=function(e,t,n){return new Promise(function(r,i){var o=function(l){try{s(n.next(l))}catch(u){i(u)}},a=function(l){try{s(n.throw(l))}catch(u){i(u)}},s=function(l){return l.done?r(l.value):Promise.resolve(l.value).then(o,a)};s((n=n.apply(e,t)).next())})},tr;(function(e){e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected"})(tr||(tr={}));function dge(e){return{status:e,isUninitialized:e===tr.uninitialized,isLoading:e===tr.pending,isSuccess:e===tr.fulfilled,isError:e===tr.rejected}}function fge(e){return new RegExp("(^|:)//").test(e)}var hge=function(e){return e.replace(/\/$/,"")},pge=function(e){return e.replace(/^\//,"")};function gge(e,t){if(!e)return t;if(!t)return e;if(fge(t))return t;var n=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=hge(e),t=pge(t),""+e+n+t}var bR=function(e){return[].concat.apply([],e)};function mge(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigat
Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details.
See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.`)}function h(){typeof process<"u";var v=function(S){return Array.from(S.values()).flatMap(function(w){return w?Object.values(w):[]})};return b_(b_([],v(a)),v(s)).filter(AC)}function p(v,S){return function(w){var x,C=o.endpointDefinitions[v],k=t({queryArgs:S,endpointDefinition:C,endpointName:v});return(x=a.get(w))==null?void 0:x[k]}}function m(v,S){return function(w){var x;return(x=s.get(w))==null?void 0:x[S]}}function _(){return function(v){return Object.values(a.get(v)||{}).filter(AC)}}function b(){return function(v){return Object.values(s.get(v)||{}).filter(AC)}}function y(v,S){var w=function(x,C){var k=C===void 0?{}:C,T=k.subscribe,P=T===void 0?!0:T,$=k.forceRefetch,O=k.subscriptionOptions,E=o0,A=k[E];return function(D,L){var M,R,N=t({queryArgs:x,endpointDefinition:S,endpointName:v}),B=n((M={type:"query",subscribe:P,forceRefetch:$,subscriptionOptions:O,endpointName:v,originalArgs:x,queryCacheKey:N},M[o0]=A,M)),U=i.endpoints[v].select(x),G=D(B),Z=U(L()),ee=G.requestId,J=G.abort,j=Z.requestId!==ee,Q=(R=a.get(D))==null?void 0:R[N],ne=function(){return U(L())},se=Object.assign(A?G.then(ne):j&&!Q?Promise.resolve(Z):Promise.all([Q,G]).then(ne),{arg:x,requestId:ee,subscriptionOptions:O,queryCacheKey:N,abort:J,unwrap:function(){return S_(this,null,function(){var ce;return v_(this,function(bt){switch(bt.label){case 0:return[4,se];case 1:if(ce=bt.sent(),ce.isError)throw ce.error;return[2,ce.data]}})})},refetch:function(){return D(w(x,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){P&&D(u({queryCacheKey:N,requestId:ee}))},updateSubscriptionOptions:function(ce){se.subscriptionOptions=ce,D(d({endpointName:v,requestId:ee,queryCacheKey:N,options:ce}))}});if(!Q&&!j&&!A){var ye=a.get(D)||{};ye[N]=se,a.set(D,ye),se.then(function(){delete ye[N],Object.keys(ye).length||a.delete(D)})}return se}};return w}function g(v){return function(S,w){var x=w===void 0?{}:w,C=x.track,k=C===void 0?!0:C,T=x.fixedCacheKey;return function(P,$){var O=r({type:"mutation",endpointName:v,originalArgs:S,track:k,fixedCacheKey:T}),E=P(O),A=E.requestId,D=E.abort,L=E.unwrap,M=E.unwrap().then(function(U){return{data:U}}).catch(function(U){return{error:U}}),R=function(){P(c({requestId:A,fixedCacheKey:T}))},N=Object.assign(M,{arg:E.arg,requestId:A,abort:D,unwrap:L,unsubscribe:R,reset:R}),B=s.get(P)||{};return s.set(P,B),B[A]=N,N.then(function(){delete B[A],Object.keys(B).length||s.delete(P)}),T&&(B[T]=N,N.then(function(){B[T]===N&&(delete B[T],Object.keys(B).length||s.delete(P))})),N}}}}function CR(e){return e}function Cge(e){var t=this,n=e.reducerPath,r=e.baseQuery,i=e.context.endpointDefinitions,o=e.serializeQueryArgs,a=e.api,s=function(g,v,S){return function(w){var x=i[g];w(a.internalActions.queryResultPatched({queryCacheKey:o({queryArgs:v,endpointDefinition:x,endpointName:g}),patches:S}))}},l=function(g,v,S){return function(w,x){var C,k,T=a.endpoints[g].select(v)(x()),P={patches:[],inversePatches:[],undo:function(){return w(a.util.patchQueryData(g,v,P.inversePatches))}};if(T.status===tr.uninitialized)return P;if("data"in T)if(Po(T.data)){var $=Q4(T.data,S),O=$[1],E=$[2];(C=P.patches).push.apply(C,O),(k=P.inversePatches).push.apply(k,E)}else{var A=S(T.data);P.patches.push({op:"replace",path:[],value:A}),P.inversePatches.push({op:"replace",path:[],value:T.data})}return w(a.util.patchQueryData(g,v,P.patches)),P}},u=function(g,v,S){return function(w){var x;return w(a.endpoints[g].initiate(v,(x={subscribe:!1,forceRefetch:!0},x[o0]=function(){return{data:S}},x)))}},c=function(g,v){return S_(t,[g,v],function(S,w){var x,C,k,T,P,$,O,E,A,D,L,M,R,N,B,U,G,Z,ee=w.signal,J=w.abort,j=w.rejectWithValue,Q=w.fulfillWithValue,ne=w.dispatch,se=w.getState,ye=w.extra;return v_(this,function(ce){switch(ce.label){case 0:x=i[S.endpointName],ce.label=1;case 1:return ce.trys.push([1,8,,13]),C=CR,k=void 0,T={signal:ee,abort:J,dispatch:ne,getState:se,extra:ye,endpoint:S.endpointName,type:S.type,forced:S.type==="query"?d(S,se()):void 0},P=S.type==="query"?S[o0]:void 0,P?(k=P(),[3,6])
* @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 Zh=I;function jge(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Uge=typeof Object.is=="function"?Object.is:jge,Vge=Zh.useState,Gge=Zh.useEffect,qge=Zh.useLayoutEffect,Hge=Zh.useDebugValue;function Wge(e,t){var n=t(),r=Vge({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return qge(function(){i.value=n,i.getSnapshot=t,PC(i)&&o({inst:i})},[e,n,t]),Gge(function(){return PC(i)&&o({inst:i}),e(function(){PC(i)&&o({inst:i})})},[e]),Hge(n),n}function PC(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Uge(e,n)}catch{return!0}}function Kge(e,t){return t()}var Qge=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Kge:Wge;mj.useSyncExternalStore=Zh.useSyncExternalStore!==void 0?Zh.useSyncExternalStore:Qge;gj.exports=mj;var Xge=gj.exports,yj={exports:{}},vj={};/**
* @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 w2=I,Yge=Xge;function Zge(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Jge=typeof Object.is=="function"?Object.is:Zge,eme=Yge.useSyncExternalStore,tme=w2.useRef,nme=w2.useEffect,rme=w2.useMemo,ime=w2.useDebugValue;vj.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=tme(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=rme(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),i!==void 0&&a.hasValue){var p=a.value;if(i(p,h))return d=p}return d=h}if(p=d,Jge(c,h))return p;var m=r(h);return i!==void 0&&i(p,m)?p:(c=h,d=m)}var u=!1,c,d,f=n===void 0?null:n;return[function(){return l(t())},f===null?void 0:function(){return l(f())}]},[t,n,r,i]);var s=eme(e,o[0],o[1]);return nme(function(){a.hasValue=!0,a.value=s},[s]),ime(s),s};yj.exports=vj;var bj=yj.exports;const ome=mc(bj);function ame(e){e()}let _j=ame;const sme=e=>_j=e,lme=()=>_j,OR=Symbol.for("react-redux-context"),MR=typeof globalThis<"u"?globalThis:{};function ume(){var e;if(!I.createContext)return{};const t=(e=MR[OR])!=null?e:MR[OR]=new Map;let n=t.get(I.createContext);return n||(n=I.createContext(null),t.set(I.createContext,n)),n}const lc=ume();function $k(e=lc){return function(){return I.useContext(e)}}const Sj=$k(),cme=()=>{throw new Error("uSES not initialized!")};let xj=cme;const dme=e=>{xj=e},fme=(e,t)=>e===t;function hme(e=lc){const t=e===lc?Sj:$k(e);return function(r,i={}){const{equalityFn:o=fme,stabilityCheck:a=void 0,noopCheck:s=void 0}=typeof i=="function"?{equalityFn:i}:i,{store:l,subscription:u,getServerState:c,stabilityCheck:d,noopCheck:f}=t();I.useRef(!0);const h=I.useCallback({[r.name](m){return r(m)}}[r.name],[r,d,a]),p=xj(u.addNestedSub,l.getState,c||l.getState,h,o);return I.useDebugValue(p),p}}const wj=hme();function x_(){return x_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x_.apply(this,arguments)}var Cj={exports:{}},vn={};/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var hi=typeof Symbol=="function"&&Symbol.for,Dk=hi?Symbol.for("react.element"):60103,Lk=hi?Symbol.for("react.portal"):60106,C2=hi?Symbol.for("react.fragment"):60107,E2=hi?Symbol.for("react.strict_mode"):60108,T2=hi?Symbol.for("react.profiler"):60114,k2=hi?Symbol.for("react.provider"):60109,A2=hi?Symbol.for("react.context"):60110,Fk=hi?Symbol.for("react.async_mode"):60111,P2=hi?Symbol.for("react.concurrent_mode"):60111,I2=hi?Symbol.for("react.forward_ref"):60112,R2=hi?Symbol.for("react.suspense"):60113,pme=hi?Symbol.for("react.suspense_list"):60120,O2=hi?Symbol.for("react.memo"):60115,M2=hi?Symbol.for("react.lazy"):60116,gme=hi?Symbol.for("react.block"):60121,mme=hi?Symbol.for("react.fundamental"):60117,yme=hi?Symbol.for("react.responder"):60118,vme=hi?Symbol.for("react.scope"):60119;function ra(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Dk:switch(e=e.type,e){case Fk:case P2:case C2:case T2:case E2:case R2:return e;default:switch(e=e&&e.$$typeof,e){case A2:case I2:case M2:case O2:case k2:return e;default:return t}}case Lk:return t}}}function Ej(e){return ra(e)===P2}vn.AsyncMode=Fk;vn.ConcurrentMode=P2;vn.ContextConsumer=A2;vn.ContextProvider=k2;vn.Element=Dk;vn.ForwardRef=I2;vn.Fragment=C2;vn.Lazy=M2;vn.Memo=O2;vn.Portal=Lk;vn.Profiler=T2;vn.StrictMode=E2;vn.Suspense=R2;vn.isAsyncMode=function(e){return Ej(e)||ra(e)===Fk};vn.isConcurrentMode=Ej;vn.isContextConsumer=function(e){return ra(e)===A2};vn.isContextProvider=function(e){return ra(e)===k2};vn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Dk};vn.isForwardRef=function(e){return ra(e)===I2};vn.isFragment=function(e){return ra(e)===C2};vn.isLazy=function(e){return ra(e)===M2};vn.isMemo=function(e){return ra(e)===O2};vn.isPortal=function(e){return ra(e)===Lk};vn.isProfiler=function(e){return ra(e)===T2};vn.isStrictMode=function(e){return ra(e)===E2};vn.isSuspense=function(e){return ra(e)===R2};vn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===C2||e===P2||e===T2||e===E2||e===R2||e===pme||typeof e=="object"&&e!==null&&(e.$$typeof===M2||e.$$typeof===O2||e.$$typeof===k2||e.$$typeof===A2||e.$$typeof===I2||e.$$typeof===mme||e.$$typeof===yme||e.$$typeof===vme||e.$$typeof===gme)};vn.typeOf=ra;Cj.exports=vn;var bme=Cj.exports,Tj=bme,_me={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Sme={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},kj={};kj[Tj.ForwardRef]=_me;kj[Tj.Memo]=Sme;var kn={};/**
* @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 Bk=Symbol.for("react.element"),zk=Symbol.for("react.portal"),N2=Symbol.for("react.fragment"),$2=Symbol.for("react.strict_mode"),D2=Symbol.for("react.profiler"),L2=Symbol.for("react.provider"),F2=Symbol.for("react.context"),xme=Symbol.for("react.server_context"),B2=Symbol.for("react.forward_ref"),z2=Symbol.for("react.suspense"),j2=Symbol.for("react.suspense_list"),U2=Symbol.for("react.memo"),V2=Symbol.for("react.lazy"),wme=Symbol.for("react.offscreen"),Aj;Aj=Symbol.for("react.module.reference");function ka(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Bk:switch(e=e.type,e){case N2:case D2:case $2:case z2:case j2:return e;default:switch(e=e&&e.$$typeof,e){case xme:case F2:case B2:case V2:case U2:case L2:return e;default:return t}}case zk:return t}}}kn.ContextConsumer=F2;kn.ContextProvider=L2;kn.Element=Bk;kn.ForwardRef=B2;kn.Fragment=N2;kn.Lazy=V2;kn.Memo=U2;kn.Portal=zk;kn.Profiler=D2;kn.StrictMode=$2;kn.Suspense=z2;kn.SuspenseList=j2;kn.isAsyncMode=function(){return!1};kn.isConcurrentMode=function(){return!1};kn.isContextConsumer=function(e){return ka(e)===F2};kn.isContextProvider=function(e){return ka(e)===L2};kn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Bk};kn.isForwardRef=function(e){return ka(e)===B2};kn.isFragment=function(e){return ka(e)===N2};kn.isLazy=function(e){return ka(e)===V2};kn.isMemo=function(e){return ka(e)===U2};kn.isPortal=function(e){return ka(e)===zk};kn.isProfiler=function(e){return ka(e)===D2};kn.isStrictMode=function(e){return ka(e)===$2};kn.isSuspense=function(e){return ka(e)===z2};kn.isSuspenseList=function(e){return ka(e)===j2};kn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===N2||e===D2||e===$2||e===z2||e===j2||e===wme||typeof e=="object"&&e!==null&&(e.$$typeof===V2||e.$$typeof===U2||e.$$typeof===L2||e.$$typeof===F2||e.$$typeof===B2||e.$$typeof===Aj||e.getModuleId!==void 0)};kn.typeOf=ka;function Cme(){const e=lme();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 NR={notify(){},get:()=>[]};function Eme(e,t){let n,r=NR;function i(d){return l(),r.subscribe(d)}function o(){r.notify()}function a(){c.onStateChange&&c.onStateChange()}function s(){return!!n}function l(){n||(n=t?t.addNestedSub(a):e.subscribe(a),r=Cme())}function u(){n&&(n(),n=void 0,r.clear(),r=NR)}const c={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:s,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>r};return c}const Tme=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",kme=Tme?I.useLayoutEffect:I.useEffect;function $R(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function w_(e,t){if($R(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!$R(e[n[i]],t[n[i]]))return!1;return!0}function Ame({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",noopCheck:o="once"}){const a=I.useMemo(()=>{const u=Eme(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,noopCheck:o}},[e,r,i,o]),s=I.useMemo(()=>e.getState(),[e]);kme(()=>{const{subscription:u}=a;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),s!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[a,s]);const l=t||lc;return I.createElement(l.Provider,{value:a},n)}function Pj(e=lc){const t=e===lc?Sj:$k(e);return function(){const{store:r}=t();return r}}const Ij=Pj();function Pme(e=lc){const t=e===lc?Ij:Pj(e);return function(){return t().dispatch}}const Rj=Pme();dme(bj.useSyncExternalStoreWithSelector);sme(Vo.unstable_batchedUpdates);var Ime=globalThis&&global
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function V2e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function G2e(e){if(Array.isArray(e))return e}function HC(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=cG(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return o=u.done,u},e:function(u){a=!0,s=u},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(a)throw s}}}}function cG(e,t){if(e){if(typeof e=="string")return X9(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 X9(e,t)}}function X9(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 D_(e){"@babel/helpers - typeof";return D_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},D_(e)}var Y9=function(t){var n;return(n=Object.prototype.toString.call(t).match(/\[object (.*)\]/))===null||n===void 0?void 0:n[1]},Z9=function(t){return/^\[object (?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)Array\]$/.test(Object.prototype.toString.call(t))},q2e=function e(t,n){if(t===n)return!0;if(D_(t)!=="object"||D_(n)!=="object"||t===null||t===void 0||n===null||n===void 0)return t!==t&&n!==n;if(t.constructor!==n.constructor)return!1;if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(Array.isArray(t)){if(t.length!==n.length)return!1;for(var r=t.length;r--!==0;)if(!e(t[r],n[r]))return!1;return!0}if(Z9(t)&&Z9(n)){if(t.byteLength!==n.byteLength)return!1;for(var i=t.byteLength;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}var o=Y9(t),a=Y9(n);if(o==="DataView"&&a==="DataView")return t.byteLength!==n.byteLength||t.byteOffset!==n.byteOffset?!1:e(t.buffer,n.buffer);if(o==="ArrayBuffer"&&a==="ArrayBuffer")return t.byteLength!==n.byteLength?!1:e(new Uint8Array(t),new Uint8Array(n));if(o==="Map"&&a==="Map"){if(t.size!==n.size)return!1;var s=HC(t.entries()),l;try{for(s.s();!(l=s.n()).done;){var u=qC(l.value,1),c=u[0];if(!n.has(c))return!1}}catch(C){s.e(C)}finally{s.f()}var d=HC(t.entries()),f;try{for(d.s();!(f=d.n()).done;){var h=qC(f.value,2),p=h[0],m=h[1];if(!e(m,n.get(p)))return!1}}catch(C){d.e(C)}finally{d.f()}return!0}if(o==="Set"&&a==="Set"){if(t.size!==n.size)return!1;var _=HC(t.entries()),b;try{for(_.s();!(b=_.n()).done;){var y=qC(b.value,1),g=y[0];if(!n.has(g))return!1}}catch(C){_.e(C)}finally{_.f()}return!0}if(o==="Date"&&a==="Date")return+t==+n;var v=Object.keys(t);if(v.length!==Object.keys(n).length)return!1;for(var S=v.length;S--!==0;)if(!Object.prototype.hasOwnProperty.call(n,v[S]))return!1;for(var w=v.length;w--!==0;){var x=v[w];if(!e(t[x],n[x]))return!1}return o!=="Object"&&a!=="Object"?t===n:!0};const bA=q2e;function J9(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(u){n(u);return}s.done?t(l):Promise.resolve(l).then(r,i)}function dG(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(l){J9(o,r,i,a,s,"next",l)}function s(l){J9(o,r,i,a,s,"throw",l)}a(void 0)})}}var H2e=function(){var e=dG(function*(t,n,r){var i=r.prefix,o=r.driver,a=r.serialize;if(!bA(t,n))return o.setItem("".concat(i,"rootState"),a(t,"rootState"))});return function(n,r,i){return e.apply(this,arguments)}}(),W2e=function(t,n,r){var i=r.prefix,o=r.driver,a=r.serialize;return Promise.all(Object.keys(t).map(function(s){return bA(t[s],n[s])?Promise.resolve():o.setItem("".concat(i).concat(s),a(t[s],s))}))},K2e=function(){var e=dG(function*(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,i=r.prefix,o=r.driver,a=r.persistWholeStore,s=r.serialize;try{var l=a?H2e:W2e;yield l(t,n,{prefix:i,driver:o,serialize:s})}catch(u){console.warn("redux-remember: persist error",u)}});return function(){return e.apply(this,arguments)}}();function eO(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(u){n(u);return}s.done?t(l):Promise.resolve(l).then(r,i)}
`),n=+this.fontSize(),r=0,i=this.lineHeight()*n,o=this.attrs.width,a=this.attrs.height,s=o!==vf&&o!==void 0,l=a!==vf&&a!==void 0,u=this.padding(),c=o-u*2,d=a-u*2,f=0,h=this.wrap(),p=h!==bO,m=h!==VCe&&p,_=this.ellipsis();this.textArr=[],e5().font=this._getContextFont();for(var b=_?this._getTextWidth(JC):0,y=0,g=t.length;y<g;++y){var v=t[y],S=this._getTextWidth(v);if(s&&S>c)for(;v.length>0;){for(var w=0,x=v.length,C="",k=0;w<x;){var T=w+x>>>1,P=v.slice(0,T+1),$=this._getTextWidth(P)+b;$<=c?(w=T+1,C=P,k=$):x=T}if(C){if(m){var O,E=v[C.length],A=E===Uv||E===yO;A&&k<=c?O=C.length:O=Math.max(C.lastIndexOf(Uv),C.lastIndexOf(yO))+1,O>0&&(w=O,C=C.slice(0,w),k=this._getTextWidth(C))}C=C.trimRight(),this._addTextLine(C),r=Math.max(r,k),f+=i;var D=this._shouldHandleEllipsis(f);if(D){this._tryToAddEllipsisToLastLine();break}if(v=v.slice(w),v=v.trimLeft(),v.length>0&&(S=this._getTextWidth(v),S<=c)){this._addTextLine(v),f+=i,r=Math.max(r,S);break}}else break}else this._addTextLine(v),f+=i,r=Math.max(r,S),this._shouldHandleEllipsis(f)&&y<g-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),l&&f+i>d)break}this.textHeight=n,this.textWidth=r}_shouldHandleEllipsis(t){var n=+this.fontSize(),r=this.lineHeight()*n,i=this.attrs.height,o=i!==vf&&i!==void 0,a=this.padding(),s=i-a*2,l=this.wrap(),u=l!==bO;return!u||o&&t+r>s}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,n=t!==vf&&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+JC)<i;s||(a.text=a.text.slice(0,a.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+JC)}}getStrokeScaleEnabled(){return!0}};Fd.Text=Ar;Ar.prototype._fillFunc=HCe;Ar.prototype._strokeFunc=WCe;Ar.prototype.className=LCe;Ar.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];(0,OCe._registerNode)(Ar);co.Factory.overWriteSetter(Ar,"width",(0,Ac.getNumberOrAutoValidator)());co.Factory.overWriteSetter(Ar,"height",(0,Ac.getNumberOrAutoValidator)());co.Factory.addGetterSetter(Ar,"fontFamily","Arial");co.Factory.addGetterSetter(Ar,"fontSize",12,(0,Ac.getNumberValidator)());co.Factory.addGetterSetter(Ar,"fontStyle",jG);co.Factory.addGetterSetter(Ar,"fontVariant",jG);co.Factory.addGetterSetter(Ar,"padding",0,(0,Ac.getNumberValidator)());co.Factory.addGetterSetter(Ar,"align",zG);co.Factory.addGetterSetter(Ar,"verticalAlign",FCe);co.Factory.addGetterSetter(Ar,"lineHeight",1,(0,Ac.getNumberValidator)());co.Factory.addGetterSetter(Ar,"wrap",UCe);co.Factory.addGetterSetter(Ar,"ellipsis",!1,(0,Ac.getBooleanValidator)());co.Factory.addGetterSetter(Ar,"letterSpacing",0,(0,Ac.getNumberValidator)());co.Factory.addGetterSetter(Ar,"text","",(0,Ac.getStringValidator)());co.Factory.addGetterSetter(Ar,"textDecoration","");var Cx={};Object.defineProperty(Cx,"__esModule",{value:!0});Cx.TextPath=void 0;const t5=fr,ps=At,QCe=Zr,ng=Ep,n5=Fd,VG=Xe,XCe=Rt;var YCe="",GG="normal";function qG(e){e.fillText(this.partialText,0,0)}function HG(e){e.strokeText(this.partialText,0,0)}class Jr extends QCe.Shape{constructor(t){super(t),this.dummyCanvas=t5.Util.createCanvasElement(),this.dataArray=[],this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute(),this._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_getTextPathLength(){return ng.Path.getPathLength(this.dataArray)}_getPointAtLength(t){if(!this.attrs.data)return null;const n=this.pathLength;return t-1>n?null:ng.Path.getPointAtLengthOfDataArray(t,this.dataArray)}_readDataAttribute(){this.dataArray=ng.Path.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_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=
45deg,
${t} 25%,
transparent 25%,
transparent 50%,
${t} 50%,
${t} 75%,
transparent 75%,
transparent
)`,backgroundSize:`${e} ${e}`}}var I6e=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function R6e(e){const t=I6e();return!e||T6e(e)?t:e.string&&e.colors?M6e(e.string,e.colors):e.string&&!e.colors?O6e(e.string):e.colors&&!e.string?N6e(e.colors):t}function O6e(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 M6e(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 N6e(e){return e[Math.floor(Math.random()*e.length)]}function K(e,t){return n=>n.colorMode==="dark"?t:e}function ZA(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function nH(e){return Ws(e)&&e.reference?e.reference:String(e)}var aw=(e,...t)=>t.map(nH).join(` ${e} `).replace(/calc/g,""),bM=(...e)=>`calc(${aw("+",...e)})`,_M=(...e)=>`calc(${aw("-",...e)})`,mT=(...e)=>`calc(${aw("*",...e)})`,SM=(...e)=>`calc(${aw("/",...e)})`,xM=e=>{const t=nH(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:mT(t,-1)},Al=Object.assign(e=>({add:(...t)=>Al(bM(e,...t)),subtract:(...t)=>Al(_M(e,...t)),multiply:(...t)=>Al(mT(e,...t)),divide:(...t)=>Al(SM(e,...t)),negate:()=>Al(xM(e)),toString:()=>e.toString()}),{add:bM,subtract:_M,multiply:mT,divide:SM,negate:xM});function $6e(e){return!Number.isInteger(parseFloat(e.toString()))}function D6e(e,t="-"){return e.replace(/\s+/g,t)}function rH(e){const t=D6e(e.toString());return t.includes("\\.")?e:$6e(e)?t.replace(".","\\."):e}function L6e(e,t=""){return[t,rH(e)].filter(Boolean).join("-")}function F6e(e,t){return`var(${rH(e)}${t?`, ${t}`:""})`}function B6e(e,t=""){return`--${L6e(e,t)}`}function hr(e,t){const n=B6e(e,t==null?void 0:t.prefix);return{variable:n,reference:F6e(n,z6e(t==null?void 0:t.fallback))}}function z6e(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:j6e,definePartsStyle:X1}=Pt(eH.keys),Yg=hr("switch-track-width"),bd=hr("switch-track-height"),l5=hr("switch-track-diff"),U6e=Al.subtract(Yg,bd),yT=hr("switch-thumb-x"),sg=hr("switch-bg"),V6e=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Yg.reference],height:[bd.reference],transitionProperty:"common",transitionDuration:"fast",[sg.variable]:"colors.gray.300",_dark:{[sg.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[sg.variable]:`colors.${t}.500`,_dark:{[sg.variable]:`colors.${t}.200`}},bg:sg.reference}},G6e={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[bd.reference],height:[bd.reference],_checked:{transform:`translateX(${yT.reference})`}},q6e=X1(e=>({container:{[l5.variable]:U6e,[yT.variable]:l5.reference,_rtl:{[yT.variable]:Al(l5).negate().toString()}},track:V6e(e),thumb:G6e})),H6e={sm:X1({container:{[Yg.variable]:"1.375rem",[bd.variable]:"sizes.3"}}),md:X1({container:{[Yg.variable]:"1.875rem",[bd.variable]:"sizes.4"}}),lg:X1({container:{[Yg.variable]:"2.875rem",[bd.variable]:"sizes.6"}})},W6e=j6e({baseStyle:q6e,sizes:H6e,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:K6e,definePartsStyle:xh}=Pt(u6e.keys),Q6e=xh({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),W_={"&[data-is-numeric=true]":{textAlign:"end"}},X6e=xh(e=>{const{colorScheme:t}=e;return{th:{color:K("gray.600","gray.400")(e),borderBottom:"1px",borderColor:K(`${t}.100`,`${t}.700`)(e),...W_},td:{borderBottom:"1px",borderColor:K(`${t}.100`,`${t}.700`)(e),...W_},caption:{color:K("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),Y6e=xh(e=>{const{c
to right,
transparent 0%,
${ro(n,a)} 50%,
transparent 100%
)`;return{...!r&&i&&o,...r?{bgImage:s}:{bgColor:a}}},H8e={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},W8e=e=>({bg:K("gray.100","whiteAlpha.300")(e)}),K8e=e=>({transitionProperty:"common",transitionDuration:"slow",...q8e(e)}),Q8e=Ig(e=>({label:H8e,filledTrack:K8e(e),track:W8e(e)})),X8e={xs:Ig({track:{h:"1"}}),sm:Ig({track:{h:"2"}}),md:Ig({track:{h:"3"}}),lg:Ig({track:{h:"4"}})},Y8e=G8e({sizes:X8e,baseStyle:Q8e,defaultProps:{size:"md",colorScheme:"blue"}}),Z8e=e=>typeof e=="function";function oo(e,...t){return Z8e(e)?e(...t):e}var{definePartsStyle:tb,defineMultiStyleConfig:J8e}=Pt(Gq.keys),Jg=nt("checkbox-size"),eIe=e=>{const{colorScheme:t}=e;return{w:Jg.reference,h:Jg.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:K(`${t}.500`,`${t}.200`)(e),borderColor:K(`${t}.500`,`${t}.200`)(e),color:K("white","gray.900")(e),_hover:{bg:K(`${t}.600`,`${t}.300`)(e),borderColor:K(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:K("gray.200","transparent")(e),bg:K("gray.200","whiteAlpha.300")(e),color:K("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:K(`${t}.500`,`${t}.200`)(e),borderColor:K(`${t}.500`,`${t}.200`)(e),color:K("white","gray.900")(e)},_disabled:{bg:K("gray.100","whiteAlpha.100")(e),borderColor:K("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:K("red.500","red.300")(e)}}},tIe={_disabled:{cursor:"not-allowed"}},nIe={userSelect:"none",_disabled:{opacity:.4}},rIe={transitionProperty:"transform",transitionDuration:"normal"},iIe=tb(e=>({icon:rIe,container:tIe,control:oo(eIe,e),label:nIe})),oIe={sm:tb({control:{[Jg.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:tb({control:{[Jg.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:tb({control:{[Jg.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},K_=J8e({baseStyle:iIe,sizes:oIe,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:aIe,definePartsStyle:nb}=Pt(s6e.keys),sIe=e=>{var t;const n=(t=oo(K_.baseStyle,e))==null?void 0:t.control;return{...n,borderRadius:"full",_checked:{...n==null?void 0:n._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},lIe=nb(e=>{var t,n,r,i;return{label:(n=(t=K_).baseStyle)==null?void 0:n.call(t,e).label,container:(i=(r=K_).baseStyle)==null?void 0:i.call(r,e).container,control:sIe(e)}}),uIe={md:nb({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:nb({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:nb({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},cIe=aIe({baseStyle:lIe,sizes:uIe,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:dIe,definePartsStyle:fIe}=Pt(Zq.keys),Zv=nt("select-bg"),DM,hIe={...(DM=cn.baseStyle)==null?void 0:DM.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Zv.reference,[Zv.variable]:"colors.white",_dark:{[Zv.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Zv.reference}},pIe={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},gIe=fIe({field:hIe,icon:pIe}),Jv={paddingInlineEnd:"8"},LM,FM,BM,zM,jM,UM,VM,GM,mIe={lg:{...(LM=cn.sizes)==null?void 0:LM.lg,field:{...(FM=cn.sizes)==null?void 0:FM.lg.field,...Jv}},md:{...(BM=cn.sizes)==null?void 0:BM.md,field:{...(zM=cn.sizes)==null?void 0:zM.md.field,...Jv}},sm:{...(jM=cn.sizes)==null?void 0:jM.sm,field:{...(UM=cn.sizes)==null?void 0:UM.sm.field,...Jv}},xs:{...(VM=cn.sizes)==null?void 0:VM.xs,field:{...(GM=cn.sizes)==null?void 0:GM.xs.field,...Jv},icon:{insetEnd:"1"}}},yIe=dIe({baseStyle:gIe,sizes:mIe,variants:cn.variants,defaultProps:cn.defaultProps}),d5=nt("skeleton-start-color"),f5=nt("skeleton-end-color"),vIe={[d5.variable]:"colors.gray.100",[f5.variable]:"colors.gray.400",_dark:{[d5.variable]:"colors.gray.800",[f5.variable]:"colors.gray.600"},background:d5.reference,borderColor:f5.reference,opacity:.7,borderRadius:"sm"},bIe={baseStyle:vIe},h5=nt("sk
[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]),I.createElement(TDe,{isPresent:t,childRef:r,sizeRef:i},I.cloneElement(e,{ref:r}))}const L5=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const s=NH(ADe),l=I.useId(),u=I.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:c=>{s.set(c,!0);for(const d of s.values())if(!d)return;r&&r()},register:c=>(s.set(c,!1),()=>s.delete(c))}),o?void 0:[n]);return I.useMemo(()=>{s.forEach((c,d)=>s.set(d,!1))},[n]),I.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=I.createElement(kDe,{isPresent:n},e)),I.createElement(Ny.Provider,{value:u},e)};function ADe(){return new Map}function PDe(e){return I.useEffect(()=>()=>e(),[])}const Tf=e=>e.key||"";function IDe(e,t){e.forEach(n=>{const r=Tf(n);t.set(r,n)})}function RDe(e){const t=[];return I.Children.forEach(e,n=>{I.isValidElement(n)&&t.push(n)}),t}const zW=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{const s=I.useContext(oP).forceRender||EDe()[0],l=BW(),u=RDe(e);let c=u;const d=I.useRef(new Map).current,f=I.useRef(c),h=I.useRef(new Map).current,p=I.useRef(!0);if(nP(()=>{p.current=!1,IDe(u,h),f.current=c}),PDe(()=>{p.current=!0,h.clear(),d.clear()}),p.current)return I.createElement(I.Fragment,null,c.map(y=>I.createElement(L5,{key:Tf(y),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:a},y)));c=[...c];const m=f.current.map(Tf),_=u.map(Tf),b=m.length;for(let y=0;y<b;y++){const g=m[y];_.indexOf(g)===-1&&!d.has(g)&&d.set(g,void 0)}return a==="wait"&&d.size&&(c=[]),d.forEach((y,g)=>{if(_.indexOf(g)!==-1)return;const v=h.get(g);if(!v)return;const S=m.indexOf(g);let w=y;if(!w){const x=()=>{h.delete(g),d.delete(g);const C=f.current.findIndex(k=>k.key===g);if(f.current.splice(C,1),!d.size){if(f.current=u,l.current===!1)return;s(),r&&r()}};w=I.createElement(L5,{key:Tf(v),isPresent:!1,onExitComplete:x,custom:t,presenceAffectsLayout:o,mode:a},v),d.set(g,w)}c.splice(S,0,w)}),c=c.map(y=>{const g=y.key;return d.has(g)?y:I.createElement(L5,{key:Tf(y),isPresent:!0,presenceAffectsLayout:o,mode:a},y)}),I.createElement(I.Fragment,null,d.size?c:c.map(y=>I.cloneElement(y)))};var ODe={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},jW=I.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:i,requestClose:o=!1,position:a="bottom",duration:s=5e3,containerStyle:l,motionVariants:u=ODe,toastSpacing:c="0.5rem"}=e,[d,f]=I.useState(s),h=v$e();JM(()=>{h||r==null||r()},[h]),JM(()=>{f(s)},[s]);const p=()=>f(null),m=()=>f(s),_=()=>{h&&i()};I.useEffect(()=>{h&&o&&i()},[h,o,i]),gMe(_,d);const b=I.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),y=I.useMemo(()=>fMe(a),[a]);return W.jsx(FW.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:p,onHoverEnd:m,custom:{position:a},style:y,children:W.jsx(Oi.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:b,children:Ls(n,{id:t,onClose:_})})})});jW.displayName="ToastComponent";function MDe(e,t){var n;const r=e??"bottom",o={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[r];return(n=o==null?void 0:o[t])!=null?n:r}var rN={path:W.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[W.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),W.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),W.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},By=ia((e,t)=>{const{as:n,viewBox:
var(--invokeai-colors-base-50) 0%,
var(--invokeai-colors-base-50) 70%,
var(--invokeai-colors-base-200) 70%,
var(--invokeai-colors-base-200) 100%)`},_disabled:{"::-webkit-resizer":{backgroundImage:`linear-gradient(135deg,
var(--invokeai-colors-base-50) 0%,
var(--invokeai-colors-base-50) 70%,
var(--invokeai-colors-base-200) 70%,
var(--invokeai-colors-base-200) 100%)`}},_dark:{"::-webkit-resizer":{backgroundImage:`linear-gradient(135deg,
var(--invokeai-colors-base-900) 0%,
var(--invokeai-colors-base-900) 70%,
var(--invokeai-colors-base-800) 70%,
var(--invokeai-colors-base-800) 100%)`},_disabled:{"::-webkit-resizer":{backgroundImage:`linear-gradient(135deg,
var(--invokeai-colors-base-900) 0%,
var(--invokeai-colors-base-900) 70%,
var(--invokeai-colors-base-800) 70%,
var(--invokeai-colors-base-800) 100%)`}}},p:2}),HFe={variants:{invokeAI:qFe},defaultProps:{size:"md",variant:"invokeAI"}},WFe=hr("popper-arrow-bg"),KFe=e=>({borderRadius:"base",shadow:"dark-lg",bg:K("base.700","base.200")(e),[WFe.variable]:K("colors.base.700","colors.base.200")(e),pb:1.5}),QFe={baseStyle:KFe},lN={backgroundColor:"accentAlpha.150 !important",borderColor:"accentAlpha.700 !important",borderRadius:"base !important",borderStyle:"dashed !important",_dark:{borderColor:"accent.400 !important"}},XFe={".react-flow__nodesselection-rect":{...lN,padding:"1rem !important",boxSizing:"content-box !important",transform:"translate(-1rem, -1rem) !important"},".react-flow__selection":lN},YFe={config:{cssVarPrefix:"invokeai",initialColorMode:"dark",useSystemColorMode:!1},layerStyles:{body:{bg:"base.50",color:"base.900",".chakra-ui-dark &":{bg:"base.900",color:"base.50"}},first:{bg:"base.100",color:"base.900",".chakra-ui-dark &":{bg:"base.850",color:"base.100"}},second:{bg:"base.200",color:"base.900",".chakra-ui-dark &":{bg:"base.800",color:"base.100"}},third:{bg:"base.300",color:"base.900",".chakra-ui-dark &":{bg:"base.750",color:"base.100"}},nodeBody:{bg:"base.100",color:"base.900",".chakra-ui-dark &":{bg:"base.800",color:"base.100"}},nodeHeader:{bg:"base.200",color:"base.900",".chakra-ui-dark &":{bg:"base.900",color:"base.100"}},nodeFooter:{bg:"base.200",color:"base.900",".chakra-ui-dark &":{bg:"base.900",color:"base.100"}}},styles:{global:()=>({layerStyle:"body","*":{...fFe},...XFe})},direction:"ltr",fonts:{body:"'Inter Variable', sans-serif",heading:"'Inter Variable', sans-serif"},shadows:{light:{accent:"0 0 10px 0 var(--invokeai-colors-accent-300)",accentHover:"0 0 10px 0 var(--invokeai-colors-accent-400)",ok:"0 0 7px var(--invokeai-colors-ok-600)",working:"0 0 7px var(--invokeai-colors-working-600)",error:"0 0 7px var(--invokeai-colors-error-600)"},dark:{accent:"0 0 10px 0 var(--invokeai-colors-accent-600)",accentHover:"0 0 10px 0 var(--invokeai-colors-accent-500)",ok:"0 0 7px var(--invokeai-colors-ok-400)",working:"0 0 7px var(--invokeai-colors-working-400)",error:"0 0 7px var(--invokeai-colors-error-400)"},selected:{light:"0px 0px 0px 1px var(--invokeai-colors-base-150), 0px 0px 0px 4px var(--invokeai-colors-accent-400)",dark:"0px 0px 0px 1px var(--invokeai-colors-base-900), 0px 0px 0px 4px var(--invokeai-colors-accent-500)"},hoverSelected:{light:"0px 0px 0px 1px var(--invokeai-colors-base-150), 0px 0px 0px 4px var(--invokeai-colors-accent-500)",dark:"0px 0px 0px 1px var(--invokeai-colors-base-900), 0px 0px 0px 4px var(--invokeai-colors-accent-400)"},hoverUnselected:{light:"0px 0px 0px 1px var(--invokeai-colors-base-150), 0px 0px 0px 3px var(--invokeai-colors-accent-500)",dark:"0px 0px 0px 1px var(--invokeai-colors-base-900), 0px 0px 0px 3px var(--invokeai-colors-accent-400)"},nodeSelected:{light:"0 0 0 3px var(--invokeai-colors-accent-400)",dark:"0 0 0 3px var(--invokeai-colors-accent-500)"},nodeHovered:{light:"0 0 0 2px var(--invokeai-colors-accent-500)",dark:"0 0 0 2px var(--invokeai-colors-accent-400)"},nodeHoveredSelected:{light:"0 0 0 3px var(--invokeai-colors-accent-500)",dark:"0 0 0 3px var(--invokeai-colors-accent-400)"},nodeInProgress:{light:"0 0 0 2px var(--invokeai-colors-accent-500), 0 0 10px 2px var(--invokeai-colors-accent-600)",dark:"0 0 0 2px var(--invokeai-colors-yellow-400), 0 0 20px 2px var(--invokeai-colors-orange-700)"}},colors:tLe,components:{Button:fLe,Input:ILe,Editable:CLe,Textarea:HFe,Tabs:UFe,Progress:dFe,Accordion:uLe,FormLabel:TLe,Switch:NFe,NumberInput:JLe,Select:vFe,Skeleton:_Fe,Slider:AFe,Popover:oFe,Modal:qLe,Checkbox:yLe,Menu:NLe,Text:GFe,Tooltip:QFe}},ZFe={defaultOptions:{isClosable:!0}},{toast:dg}=QDe({theme:YFe,defaultOptions:ZFe.defaultOptions}),JFe=()=>{Fe({matcher:Xr.endpoints.enqueueBatch.matchFulfilled,effect:async e=>{const t=e.payload,n=e.meta.arg.originalArgs;_e("queue").debug({enqueueResult:Xt(t)},"Batch enqueued"),dg.isActive("batch-queued")||dg({id:"batch-queued",title:Y("queue.batchQueued"),description:Y("queue.batchQueuedDesc",{item_count:t.enqueued,direct
${i.loc.join(".")}`,{length:128})})});else{let i="Unknown Error",o;t.status===403&&"body"in t?i=ch(t,"body.detail","Unknown Error"):t.status===403&&"error"in t?i=ch(t,"error.detail","Unknown Error"):t.status===403&&"data"in t&&(i=ch(t,"data.detail","Unknown Error"),o=15e3),dg({title:Y("queue.batchFailedToQueue"),status:"error",description:i,...o?{duration:o}:{}})}_e("queue").error({batchConfig:Xt(n),error:Xt(t)},Y("queue.batchFailedToQueue"))}})},nK=UL(),Fe=nK.startListening;WEe();KEe();JEe();FEe();BEe();zEe();jEe();UEe();Nxe();HEe();QEe();XEe();SEe();$Ee();TEe();Pxe();JFe();tEe();Y3e();Xxe();Z3e();Qxe();Wxe();eEe();A4e();Txe();m4e();y4e();b4e();_4e();x4e();p4e();g4e();T4e();k4e();w4e();E4e();S4e();C4e();oEe();rEe();DEe();LEe();GEe();qEe();$xe();h4e();ake();VEe();eTe();Oxe();nTe();Ixe();kxe();J4e();I4e();oTe();const eBe={canvas:gle,gallery:R0e,generation:rle,nodes:f2e,postprocessing:h2e,system:_2e,config:$ae,ui:P2e,hotkeys:A2e,controlNet:_0e,dynamicPrompts:I0e,deleteImageModal:w0e,changeBoardModal:yle,lora:N0e,modelmanager:k2e,sdxl:g2e,queue:E2e,[us.reducerPath]:us.reducer},tBe=pp(eBe),nBe=exe(tBe),rBe=["canvas","gallery","generation","sdxl","nodes","postprocessing","system","ui","controlNet","dynamicPrompts","lora","modelmanager"],rK=xL({reducer:nBe,enhancers:e=>e.concat(txe(window.localStorage,rBe,{persistDebounce:300,serialize:hxe,unserialize:gxe,prefix:nxe})).concat(GL()),middleware:e=>e({serializableCheck:!1,immutableCheck:!1}).concat(us.middleware).concat(M2e).prepend(nK.middleware),devTools:{actionSanitizer:Sxe,stateSanitizer:wxe,trace:!0,predicate:(e,t)=>!xxe.includes(t.type)}}),iK=e=>e;MB.set(rK);const iBe=e=>{const{socket:t,storeApi:n}=e,{dispatch:r}=n;t.on("connect",()=>{_e("socketio").debug("Connected"),r(jj());const o=Vr.get();t.emit("subscribe_queue",{queue_id:o})}),t.on("connect_error",i=>{i&&i.message&&i.data==="ERR_UNAUTHENTICATED"&&r(qt(Ld({title:i.message,status:"error",duration:1e4})))}),t.on("disconnect",()=>{r(Uj())}),t.on("invocation_started",i=>{r(Gj({data:i}))}),t.on("generator_progress",i=>{r(Kj({data:i}))}),t.on("invocation_error",i=>{r(qj({data:i}))}),t.on("invocation_complete",i=>{r(qk({data:i}))}),t.on("graph_execution_state_complete",i=>{r(Hj({data:i}))}),t.on("model_load_started",i=>{r(Qj({data:i}))}),t.on("model_load_completed",i=>{r(Yj({data:i}))}),t.on("session_retrieval_error",i=>{r(Jj({data:i}))}),t.on("invocation_retrieval_error",i=>{r(tU({data:i}))}),t.on("queue_item_status_changed",i=>{r(rU({data:i}))})},Js=Object.create(null);Js.open="0";Js.close="1";Js.ping="2";Js.pong="3";Js.message="4";Js.upgrade="5";Js.noop="6";const sb=Object.create(null);Object.keys(Js).forEach(e=>{sb[Js[e]]=e});const $T={type:"error",data:"parser error"},oK=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",aK=typeof ArrayBuffer=="function",sK=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,AP=({type:e,data:t},n,r)=>oK&&t instanceof Blob?n?r(t):uN(t,r):aK&&(t instanceof ArrayBuffer||sK(t))?n?r(t):uN(new Blob([t]),r):r(Js[e]+(t||"")),uN=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function cN(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let F5;function oBe(e,t){if(oK&&e.data instanceof Blob)return e.data.arrayBuffer().then(cN).then(t);if(aK&&(e.data instanceof ArrayBuffer||sK(e.data)))return t(cN(e.data));AP(e,!1,n=>{F5||(F5=new TextEncoder),t(F5.encode(n))})}const dN="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Og=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<dN.length;e++)Og[dN.charCodeAt(e)]=e;const aBe=e=>{let t=e.length*.75,n=e.length,r,i=0,o,a,s,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),c=new Uint8Array(u);for(r=0;r<n;r+=4)o=Og[e.charCodeAt(r)],a=Og[e.charCodeAt(r+1)],s=Og[e.charCodeAt(r+2)],l=Og[e.charCodeAt(r+3)],c[i++]=o<<2|a>>4,c[i++]=(a&15)<<4
To pick up a draggable item, press the space bar.
While dragging, use the arrow keys to move the item.
Press space again to drop the item in its new position, or press escape to cancel.
`},Cze={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Eze(e){let{announcements:t=Cze,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=wze}=e;const{announce:o,announcement:a}=_ze(),s=bw("DndLiveRegion"),[l,u]=I.useState(!1);if(I.useEffect(()=>{u(!0)},[]),Sze(I.useMemo(()=>({onDragStart(d){let{active:f}=d;o(t.onDragStart({active:f}))},onDragMove(d){let{active:f,over:h}=d;t.onDragMove&&o(t.onDragMove({active:f,over:h}))},onDragOver(d){let{active:f,over:h}=d;o(t.onDragOver({active:f,over:h}))},onDragEnd(d){let{active:f,over:h}=d;o(t.onDragEnd({active:f,over:h}))},onDragCancel(d){let{active:f,over:h}=d;o(t.onDragCancel({active:f,over:h}))}}),[o,t])),!l)return null;const c=Tn.createElement(Tn.Fragment,null,Tn.createElement(yze,{id:r,value:i.draggable}),Tn.createElement(bze,{id:s,announcement:a}));return n?Vo.createPortal(c,n):c}var Hr;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Hr||(Hr={}));function dS(){}function TN(e,t){return I.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function Tze(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return I.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const cs=Object.freeze({x:0,y:0});function kze(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Aze(e,t){const n=L0(e);if(!n)return"0 0";const r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}function Pze(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Ize(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function Rze(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function Oze(e,t){if(!e||e.length===0)return null;const[n]=e;return t?n[t]:n}function Mze(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),a=i-r,s=o-n;if(r<i&&n<o){const l=t.width*t.height,u=e.width*e.height,c=a*s,d=c/(l+u-c);return Number(d.toFixed(4))}return 0}const Nze=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const o of r){const{id:a}=o,s=n.get(a);if(s){const l=Mze(s,t);l>0&&i.push({id:a,data:{droppableContainer:o,value:l}})}}return i.sort(Ize)};function $ze(e,t){const{top:n,left:r,bottom:i,right:o}=t;return n<=e.y&&e.y<=i&&r<=e.x&&e.x<=o}const Dze=e=>{let{droppableContainers:t,droppableRects:n,pointerCoordinates:r}=e;if(!r)return[];const i=[];for(const o of t){const{id:a}=o,s=n.get(a);if(s&&$ze(r,s)){const u=Rze(s).reduce((d,f)=>d+kze(r,f),0),c=Number((u/4).toFixed(4));i.push({id:a,data:{droppableContainer:o,value:c}})}}return i.sort(Pze)};function Lze(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function kK(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:cs}function Fze(e){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return i.reduce((a,s)=>({...a,top:a.top+e*s.y,bottom:a.bottom+e*s.y,left:a.left+e*s.x,right:a.right+e*s.x}),{...n})}}const Bze=Fze(1);function AK(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function zze(e,t,n){const r=AK(t);if(!r)return e;const{scaleX:i,scaleY:o,x:a,y:s}=r,l=e.left-a-(1-i)*parseFloat