mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
159 lines
1.4 MiB
JavaScript
159 lines
1.4 MiB
JavaScript
|
var UK=Object.defineProperty;var VK=(e,t,n)=>t in e?UK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var _w=(e,t,n)=>(VK(e,typeof t!="symbol"?t+"":t,n),n),Sw=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var ae=(e,t,n)=>(Sw(e,t,"read from private field"),n?n.call(e):t.get(e)),Yn=(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)},oa=(e,t,n,r)=>(Sw(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var Op=(e,t,n,r)=>({set _(i){oa(e,t,i,n)},get _(){return ae(e,t,r)}}),ps=(e,t,n)=>(Sw(e,t,"access private method"),n);function FN(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 mt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function dS(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 BN={exports:{}},fS={},zN={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 U0=Symbol.for("react.element"),GK=Symbol.for("react.portal"),HK=Symbol.for("react.fragment"),qK=Symbol.for("react.strict_mode"),WK=Symbol.for("react.profiler"),KK=Symbol.for("react.provider"),QK=Symbol.for("react.context"),XK=Symbol.for("react.forward_ref"),YK=Symbol.for("react.suspense"),ZK=Symbol.for("react.memo"),JK=Symbol.for("react.lazy"),LP=Symbol.iterator;function eQ(e){return e===null||typeof e!="object"?null:(e=LP&&e[LP]||e["@@iterator"],typeof e=="function"?e:null)}var jN={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},UN=Object.assign,VN={};function cp(e,t,n){this.props=e,this.context=t,this.refs=VN,this.updater=n||jN}cp.prototype.isReactComponent={};cp.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")};cp.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function GN(){}GN.prototype=cp.prototype;function G4(e,t,n){this.props=e,this.context=t,this.refs=VN,this.updater=n||jN}var H4=G4.prototype=new GN;H4.constructor=G4;UN(H4,cp.prototype);H4.isPureReactComponent=!0;var FP=Array.isArray,HN=Object.prototype.hasOwnProperty,q4={current:null},qN={key:!0,ref:!0,__self:!0,__source:!0};function WN(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)HN.call(t,r)&&!qN.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:U0,type:e,key:o,ref:a,props:i,_owner:q4.current}}function tQ(e,t){return{$$typeof:U0,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function W4(e){return typeof e=="object"&&e!==null&&e.$$typeof===U0}function nQ(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var BP=/\/+/g;function xw(e,t){return typeof e=="object"&&e!==null&&e.key!=null?nQ(""+e.key):t.toString(36)}function v1(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 U0:case GK:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+xw(a,0):r,FP(i)?(n="",e!=null&&(n=e.replace(BP,"$&/")+"/"),v1(i,t,n,"",function(u){return u})):i!=null&&(W4(i)&&(i=tQ(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(BP,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",FP(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+xw(o,s);a+=v1(o,t,n,l,i)}else if(l=eQ(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+xw(o,s++),a+=v1(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 Vy(e,t,n){if(e==null)return e;var r=[],i=0;return v1(e,r,"","",function(o){return t.call(n,o,i++)}),r}function rQ(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 ao={current:null},b1={transition:null},iQ={ReactCurrentDispatcher:ao,ReactCurrentBatchConfig:b1,ReactCurrentOwner:q4};Lt.Children={map:Vy,forEach:function(e,t,n){Vy(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Vy(e,function(){t++}),t},toArray:function(e){return Vy(e,function(t){return t})||[]},only:function(e){if(!W4(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Lt.Component=cp;Lt.Fragment=HK;Lt.Profiler=WK;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 oQ=I,aQ=Symbol.for("react.element"),sQ=Symbol.for("react.fragment"),lQ=Object.prototype.hasOwnProperty,uQ=oQ.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,cQ={key:!0,ref:!0,__self:!0,__source:!0};function KN(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)lQ.call(t,r)&&!cQ.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:aQ,type:e,key:o,ref:a,props:i,_owner:uQ.current}}fS.Fragment=sQ;fS.jsx=KN;fS.jsxs=KN;BN.exports=fS;var W=BN.exports,V5={},QN={exports:{}},ea={},XN={exports:{}},YN={};/**
|
||
|
* @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 Y=2*(B+1)-1,ee=M[Y],J=Y+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[Y]=N,B=Y);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,v=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 y(M){if(m=!1,g(M),!p)if(n(l)!==null)p=!0,D(S);else{var R=n(u);R!==null&&L(y,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 Y=n(u);Y!==null&&L(y,Y.startTime-R),G=!1}return G}finally{d=null,f=N,h=!1}}var w=!1,x=null,C=-1,T=5,k=-1;function P(){return!(e.unstable_now()-k<T)}function $(){if(x!==null){var M=e.unstable_now();k=M;var R=!0;try{R=x(!0,M)}finally{R?O():(w=!1,x=null)}}else w=!1}var O;if(typeof v=="function")O=function(){v($)};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"):T=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(y,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}}}})(YN);XN.exports=YN;var dQ=XN.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 ZN=I,Xo=dQ;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 JN=new Set,lm={};function Ld(e,t){Oh(e,t),Oh(e+"Capture",t)}function Oh(e,t){for(lm[e]=t,e=0;e<t.length;e++)JN.add(t[e])}var Bl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),G5=Object.prototype.hasOwnProperty,fQ=/^[: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]*$/,jP={},UP={};function hQ(e){return G5.call(UP,e)?!0:G5.call(jP,e)?!1:fQ.test(e)?UP[e]=!0:(jP[e]=!0,!1)}function pQ(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 gQ(e,t,n,r){if(t===null||typeof t>"u"||pQ(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function so(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Ri={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ri[e]=new so(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ri[t]=new so(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ri[e]=new so(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ri[e]=new so(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ri[e]=new so(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ri[e]=new so(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ri[e]=new so(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ri[e]=new so(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ri[e]=new so(e,5,!1,e.toLowerCase(),null,!1,!1)});var K4=/[\-:]([a-z])/g;function Q4(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
|
||
|
`+ww+e}var Cw=!1;function Ew(e,t){if(!e||Cw)return"";Cw=!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{Cw=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?dg(e):""}function mQ(e){switch(e.tag){case 5:return dg(e.type);case 16:return dg("Lazy");case 13:return dg("Suspense");case 19:return dg("SuspenseList");case 0:case 2:case 15:return e=Ew(e.type,!1),e;case 11:return e=Ew(e.type.render,!1),e;case 1:return e=Ew(e.type,!0),e;default:return""}}function K5(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 H5:return"Profiler";case Y4:return"StrictMode";case q5:return"Suspense";case W5:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case t$:return(e.displayName||"Context")+".Consumer";case e$:return(e._context.displayName||"Context")+".Provider";case Z4:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case J4:return t=e.displayName||null,t!==null?t:K5(e.type)||"Memo";case pu:t=e._payload,e=e._init;try{return K5(e(t))}catch{}}return null}function yQ(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 K5(t);case 8:return t===Y4?"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 Zu(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function r$(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vQ(e){var t=r$(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=vQ(e))}function i$(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=r$(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function db(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 Q5(e,t){var n=t.checked;return cr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function GP(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Zu(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 o$(e,t){t=t.checked,t!=null&&X4(e,"checked",t,!1)}function X5(e,t){o$(e,t);var n=Zu(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")?Y5(e,t.type,n):t.hasOwnProperty("defaultValue")&&Y5(e,t.type,Zu(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function HP(e,t,n){if(t.hasOwnProperty("val
|
||
|
`).replace(AX,"")}function Jy(e,t,n){if(t=p6(t),p6(e)!==t&&n)throw Error(le(425))}function bb(){}var d3=null,f3=null;function h3(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 p3=typeof setTimeout=="function"?setTimeout:void 0,PX=typeof clearTimeout=="function"?clearTimeout:void 0,g6=typeof Promise=="function"?Promise:void 0,IX=typeof queueMicrotask=="function"?queueMicrotask:typeof g6<"u"?function(e){return g6.resolve(null).then(e).catch(RX)}:p3;function RX(e){setTimeout(function(){throw e})}function Fw(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),hm(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);hm(t)}function Bu(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 m6(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 fp=Math.random().toString(36).slice(2),As="__reactFiber$"+fp,vm="__reactProps$"+fp,zl="__reactContainer$"+fp,g3="__reactEvents$"+fp,OX="__reactListeners$"+fp,MX="__reactHandles$"+fp;function Xc(e){var t=e[As];if(t)return t;for(var n=e.parentNode;n;){if(t=n[zl]||n[As]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=m6(e);e!==null;){if(n=e[As])return n;e=m6(e)}return t}e=n,n=e.parentNode}return null}function H0(e){return e=e[As]||e[zl],!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 yS(e){return e[vm]||null}var m3=[],Nf=-1;function mc(e){return{current:e}}function Kn(e){0>Nf||(e.current=m3[Nf],m3[Nf]=null,Nf--)}function Nn(e,t){Nf++,m3[Nf]=e.current,e.current=t}var Ju={},Wi=mc(Ju),Eo=mc(!1),_d=Ju;function Mh(e,t){var n=e.type.contextTypes;if(!n)return Ju;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 _b(){Kn(Eo),Kn(Wi)}function y6(e,t,n){if(Wi.current!==Ju)throw Error(le(168));Nn(Wi,t),Nn(Eo,n)}function W$(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,yQ(e)||"Unknown",i));return cr({},n,r)}function Sb(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ju,_d=Wi.current,Nn(Wi,e),Nn(Eo,Eo.current),!0}function v6(e,t,n){var r=e.stateNode;if(!r)throw Error(le(169));n?(e=W$(e,t,_d),r.__reactInternalMemoizedMergedChildContext=e,Kn(Eo),Kn(Wi),Nn(Wi,e)):Kn(Eo),Nn(Eo,n)}var yl=null,vS=!1,Bw=!1;function K$(e){yl===null?yl=[e]:yl.push(e)}function NX(e){vS=!0,K$(e)}function yc(){if(!Bw&&yl!==null){Bw=!0;var e=0,t=mn;try{var n=yl;for(mn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}yl=null,vS=!1}catch(i){throw yl!==null&&(yl=yl.slice(e+1)),b$(tk,yc),i}finally{mn=t,Bw=!1}}return null}var $f=[],Df=0,xb=null,wb=0,pa=[],ga=0,Sd=null,Tl=1,Al="";function Fc(e,t){$f[Df++]=wb,$f[Df++]=xb,xb=e,wb=t}function Q$(e,t,n){pa[ga++]=Tl,pa[ga++]=Al,pa[ga++]=Sd,Sd=e;var r=Tl;e=Al;var i=32-Ja(r)-1;r&=~(1<<i),n+=1;var o=32-Ja(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Tl=1<<32-Ja(t)+i|n<<i|r,Al=o+e}else Tl=1<<o|n<<i|r,Al=e}function ck(e){e.return!==null&&(Fc(e,1),Q$(e,1,0))}function dk(e){for(;e===xb;)xb=$f[--Df],$f[Df]=null,wb=$f[--Df],$f[Df]=null;for(;e===Sd;)Sd=pa[--ga],pa[ga]=null,Al=pa[--ga],pa[ga]=null,Tl=pa[--ga],pa[ga]=null}var Wo=null,Ho=null,tr=!1,Ha=null;function X$(e,t){var n=va(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 Gw(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function x3(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var VX=typeof WeakMap=="function"?WeakMap:Map;function CD(e,t,n){n=Ol(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Rb||(Rb=!0,O3=r),x3(e,t)},n}function ED(e,t,n){n=Ol(-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(){x3(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){x3(e,t),typeof r!="function"&&(ju===null?ju=new Set([this]):ju.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function A6(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new VX;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=rY.bind(null,e,t,n),t.then(e,e))}function P6(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 I6(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=Ol(-1,1),t.tag=2,zu(n,t,1))),n.lanes|=1),e)}var GX=Ql.ReactCurrentOwner,So=!1;function Ji(e,t,n,r){t.child=e===null?rD(t,null,n,r):$h(t,e.child,n,r)}function R6(e,t,n,r,i){n=n.render;var o=t.ref;return th(t,i),r=xk(e,t,n,r,o,i),n=wk(),e!==null&&!So?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ul(e,t,i)):(tr&&n&&ck(t),t.flags|=1,Ji(e,t,r,i),t.child)}function O6(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Mk(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,kD(e,t,o,r,i)):(e=P1(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:gm,n(a,r)&&e.ref===t.ref)return Ul(e,t,i)}return t.flags|=1,e=Vu(o,r),e.ref=t.ref,e.return=t,t.child=e}function kD(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(gm(o,r)&&e.ref===t.ref)if(So=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(So=!0);else return t.lanes=e.lanes,Ul(e,t,i)}return w3(e,t,n,r,i)}function TD(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},Nn(Bf,jo),jo|=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,Nn(Bf,jo),jo|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Nn(Bf,jo),jo|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Nn(Bf,jo),jo|=r;return Ji(e,t,i,n),t.child}function AD(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function w3(e,t,n,r,i){var o=ko(n)?_d:Wi.current;return o=Mh(t,o),th(t,i),n=xk(e,t,n,r,o,i),r=wk(),e!==null&&!So?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ul(e,t,i)):(tr&&r&&ck(t),t.flags|=1,Ji(e,t,n,i),t.child)}function M6(e,t,n,r,i){if(ko(n)){var o=!0;Sb(t)}else o=!1;if(th(t,i),t.stateNode===null)k1(e,t),tD(t,n,r),S3(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=Sa(u):(u=ko(n)?_d:Wi.current,u=Mh(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)&&C6(t,a,r,u),gu=!1;var f=t.memoizedState;a.state=f,kb(t,r,a,i),l=t.memoizedState,s!==r||f!==l||Eo.current||gu?(typeof c=="function"&&(_3(t,n,c,r),l=t.memoizedState),(s=gu||w6(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:_e,mutationThunk:Ye,api:q,serializeQueryArgs:je,context:re}),po=Qn.buildInitiateQuery,La=Qn.buildInitiateMutation;return mi(q.util,{getRunningOperationPromises:Qn.getRunningOperationPromises,getRunningOperationPromise:Qn.removalWarning,getRunningMutationThunk:Qn.getRunningMutationThunk,getRunningMutationsThunk:Qn.getRunningMutationsThunk,getRunningQueryThunk:Qn.getRunningQueryThunk,getRunningQueriesThunk:Qn.getRunningQueriesThunk}),{name:ia,injectEndpoint:function(it,fn){var nn,ir=q;(nn=ir.endpoints)[it]!=null||(nn[it]={}),ne(fn)?mi(ir.endpoints[it],{name:it,select:_r(it,fn),initiate:po(it,fn)},wt(_e,it)):fn.type===J.mutation&&mi(ir.endpoints[it],{name:it,select:yi(),initiate:La(it)},wt(Ye,it))}}}}},sl=fo(ni())})(AB);TB.exports=AB;var gle=TB.exports;const ii=["general"],Mu=["control","mask","user","other"],mle=100,fv=20;let Yi=[],tl=(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 yle=5,hv=6,pv=10;let vle=(e,t,n,r)=>(e.events=e.events||{},e.events[n+pv]||(e.events[n+pv]=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+pv](),delete e.events[n+pv])}),ble=1e3,_le=(e,t)=>vle(e,r=>{let i=t(r);i&&e.events[hv].push(i)},yle,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[hv]=[],e.off=()=>{o(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let a of e.events[hv])a();e.events[hv]=[]}},ble)},()=>{e.listen=i,e.off=o}}),Sle=(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=tl(void 0,Math.max(...e.map(o=>o.l))+1);return _le(i,()=>{let o=e.map(a=>a.listen(r,i.l));return r(),()=>{for(let a of o)a()}}),i};const PB=tl(),xle={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 t_{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||xle,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 t_(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new t_(this.logger,t)}}var Ms=new t_;class YS{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,v){return _(this.line-f.length+v+1,m)+" "+b},this).join(`
|
||
|
`),c+=`
|
||
|
`+_("",m+p)+`^
|
||
|
`,c}else return c+" at index "+(this.index-1);function _(b,v){var g=String(b);return Array(v-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,v=h.scannable,g=v.length;g--;){var y=v[g],S=y.rule.symbols[y.dot];if(S.test?S.test(b):S.type?S.type===d.type:S.literal===_){var w=y.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],v=b.rule.symbols[b.dot],g=this.getSymbolDisplay(v);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}})})(Uz);var rpe=Uz.exports,Rd={},Vz={},_c={};_c.__esModule=void 0;_c.__esModule=!0;var ipe=typeof Object.setPrototypeOf=="function",ope=typeof Object.getPrototypeOf=="function",ape=typeof Object.defineProperty=="function",spe=typeof Object.create=="function",lpe=typeof Object.prototype.hasOwnProperty=="function",upe=function(t,n){ipe?Object.setPrototypeOf(t,n):t.__proto__=n};_c.setPrototypeOf=upe;var cpe=function(t){return ope?Object.getPrototypeOf(t):t.__proto__||t.prototype};_c.getPrototypeOf=cpe;var uR=!1,dpe=function e(t,n,r){if(ape&&!uR)try{Object.defineProperty(t,n,r)}catch{uR=!0,e(t,n,r)}else t[n]=r.value};_c.defineProperty=dpe;var Gz=function(t,n){return lpe?t.hasOwnProperty(t,n):t[n]===void 0};_c.hasOwnProperty=Gz;var fpe=function(t,n){if(spe)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)Gz(n,o)&&(i[o]=n[o].value);return i};_c.objectCreate=fpe;(function(e){e.__esModule=void 0,e.__esModule=!0;var t=_c,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})(Vz);var Hz=mt&&mt.__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 ve=C(String(ne),R,A,D,L,M);N+=ve!==void 0?ve:"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 ve=R.length-x-1;N+=`${B}"... ${h(ve)} not stringified"`}return L!==""&&(N+=`
|
||
|
${U}`),A.pop(),`[${N}]`}let G=Object.keys(R);const Y=G.length;if(Y===0)return"{}";if(w<A.length+1)return'"[Object]"';let ee="",J="";L!==""&&(M+=L,B=`,
|
||
|
${M}`,ee=" ");const j=Math.min(Y,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(Y>x){const Q=Y-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):v?v(R):"null";case"boolean":return R===!0?"true":"false";case"undefined":return;case"bigint":if(y)return String(R);default:return v?v(R):void 0}}function T(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 Y=Math.min(E.length,x);let ee=0;for(;ee<Y-1;ee++){const j=T(String(ee),E[ee],A,D,L,M);N+=j!==void 0?j:"null",N+=B}const J=T(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 Y of D){const ee=T(Y,E[Y],A,D,L,M);ee!==void 0&&(N+=`${G}${o(Y)}:${U}${ee}`,G=B)}return L!==""&&G.length>1&&(N=`
|
||
|
${M}${N}
|
||
|
${R}`),A.pop(),`{${N}}`}case"number":return isFinite(E)?String(E):v?v(E):"null";case"boolean":return E===!0?"true":"false";case"undefined":return;case"bigint":if(y)return String(E);default:return v?v(E):void 0}}function k(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 k(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=k(String(Q),E[Q],A,D,L);ee+=se!==void 0?se:"null",ee+=J}const ne=k(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="",Y=Math.min(N,x);l(E)&&(U+=u(E,B,x),R=R.slice(E.length),Y-=E.length,G=B),S&&(R=a(R)),A.push(E);for(let ee=0;ee<Y;ee++){const J=R[ee],j=k(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):v?v(E):"null";case"boolean":return E===!0?"true":"false";case"undefined":return;case"bigint":if(y)return String(E);default:return v?v(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 Y=P(String(U),E[U],A);D+=Y!==void 0?Y:"null",D+=","}const G=P(String(U),E[U],A);if(D+=G!==void 0?G:"null",E.length-1>x){const Y=E.length-x-1;D+=`,"... ${h(Y)} 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):v?v(E):"null";case"boolean":return E===!0?"true":"false";case"undefined":return;case"bigint":if(y)return String(E);default:return v?v(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 T("",O,[],p(E),D,"")}if(D.length!==0)return k("",O,[],D,"")}return P("",O,[])}return $}})(gE,gE.exports);var $pe=gE.exports;(function(e){var t=mt&&mt.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(e,"__esModule",{value:!0}),e.createLogger=void 0;const n=Od,r=by,i=Zz,o=Jz,a=t(kT),s=t($pe);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 y=g.getStore();return y||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,y)=>(S,w,x,C,T,k,P,$,O,E)=>{g.child({logLevel:y})(S,w,x,C,T,k,P,$,O,E)},_=1e3,b=(g,y)=>(S,w,x,C,T,k,P,$,O,E)=>{const A=(0,s.default)({a:S,b:w,c:x,d:C,e:T,f:k,g:P,h:$,i:O,j:E,logLevel:y});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:y})(S,w,x,C,T,k,P,$,O,E))},v=(g,y={},S=[])=>{const w=(x,C,T,k,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,...y}:N={...R.messageContext,...y,...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,T,k,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,T,k,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,...y,...x},[x,...S]):(0,e.createLogger)(g,{...C.messageContext,...y,...x},S)},w.getContext=()=>{let x;return h()?x=f():x=d(),{...x.messageContext,...y}},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(Wpe[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)}}};t2.createLogWriter=Qpe;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createLogWriter=void 0;var t=t2;Object.defineProperty(e,"createLogWriter",{enumerable:!0,get:function(){return t.createLogWriter}})})(Pz);vy.ROARR.write=Pz.createLogWriter();const tj={};vy.Roarr.child(tj);const _2=tl(vy.Roarr.child(tj)),Ce=e=>_2.get().child({namespace:e}),hGe=["trace","debug","info","warn","error","fatal"],pGe={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},Qt=e=>{try{return JSON.parse(JSON.stringify(e))}catch{return"Error parsing object"}},Xpe=async e=>{const t={},n=await e.arrayBuffer(),r=Ufe(n).text,i=uh(r,"invokeai_metadata");if(i){const a=FB.safeParse(JSON.parse(i));a.success?t.metadata=a.data:Ce("system").error({error:Qt(a.error)},"Problem reading metadata from image")}const o=uh(r,"invokeai_workflow");if(o){const a=VB.safeParse(JSON.parse(o));a.success?t.workflow=a.data:Ce("system").error({error:Qt(a.error)},"Problem reading workflow from image")}return t};var m_=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}}},y_=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},Ype=Object.defineProperty,Zpe=Object.defineProperties,Jpe=Object.getOwnPropertyDescriptors,v_=Object.getOwnPropertySymbols,nj=Object.prototype.hasOwnProperty,rj=Object.prototype.propertyIsEnumerable,pR=function(e,t,n){return t in e?Ype(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},wr=function(e,t){for(var n in t||(t={}))nj.call(t,n)&&pR(e,n,t[n]);if(v_)for(var r=0,i=v_(t);r<i.length;r++){var n=i[r];rj.call(t,n)&&pR(e,n,t[n])}return e},Ns=function(e,t){return Zpe(e,Jpe(t))},gR=function(e,t){var n={};for(var r in e)nj.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&v_)for(var i=0,o=v_(e);i<o.length;i++){var r=o[i];t.indexOf(r)<0&&rj.call(e,r)&&(n[r]=e[r])}return n},b_=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())})},er;(function(e){e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected"})(er||(er={}));function ege(e){return{status:e,isUninitialized:e===er.uninitialized,isLoading:e===er.pending,isSuccess:e===er.fulfilled,isError:e===er.rejected}}function tge(e){return new RegExp("(^|:)//").test(e)}var nge=function(e){return e.replace(/\/$/,"")},rge=function(e){return e.replace(/^\//,"")};function ige(e,t){if(!e)return t;if(!t)return e;if(tge(t))return t;var n=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=nge(e),t=rge(t),""+e+n+t}var mR=function(e){return[].concat.apply([],e)};function oge(){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 y=function(S){return Array.from(S.values()).flatMap(function(w){return w?Object.values(w):[]})};return y_(y_([],y(a)),y(s)).filter(kC)}function p(y,S){return function(w){var x,C=o.endpointDefinitions[y],T=t({queryArgs:S,endpointDefinition:C,endpointName:y});return(x=a.get(w))==null?void 0:x[T]}}function m(y,S){return function(w){var x;return(x=s.get(w))==null?void 0:x[S]}}function _(){return function(y){return Object.values(a.get(y)||{}).filter(kC)}}function b(){return function(y){return Object.values(s.get(y)||{}).filter(kC)}}function v(y,S){var w=function(x,C){var T=C===void 0?{}:C,k=T.subscribe,P=k===void 0?!0:k,$=T.forceRefetch,O=T.subscriptionOptions,E=r0,A=T[E];return function(D,L){var M,R,N=t({queryArgs:x,endpointDefinition:S,endpointName:y}),B=n((M={type:"query",subscribe:P,forceRefetch:$,subscriptionOptions:O,endpointName:y,originalArgs:x,queryCacheKey:N},M[r0]=A,M)),U=i.endpoints[y].select(x),G=D(B),Y=U(L()),ee=G.requestId,J=G.abort,j=Y.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(Y):Promise.all([Q,G]).then(ne),{arg:x,requestId:ee,subscriptionOptions:O,queryCacheKey:N,abort:J,unwrap:function(){return b_(this,null,function(){var ce;return m_(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:y,requestId:ee,queryCacheKey:N,options:ce}))}});if(!Q&&!j&&!A){var ve=a.get(D)||{};ve[N]=se,a.set(D,ve),se.then(function(){delete ve[N],Object.keys(ve).length||a.delete(D)})}return se}};return w}function g(y){return function(S,w){var x=w===void 0?{}:w,C=x.track,T=C===void 0?!0:C,k=x.fixedCacheKey;return function(P,$){var O=r({type:"mutation",endpointName:y,originalArgs:S,track:T,fixedCacheKey:k}),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:k}))},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)}),k&&(B[k]=N,N.then(function(){B[k]===N&&(delete B[k],Object.keys(B).length||s.delete(P))})),N}}}}function SR(e){return e}function hge(e){var t=this,n=e.reducerPath,r=e.baseQuery,i=e.context.endpointDefinitions,o=e.serializeQueryArgs,a=e.api,s=function(g,y,S){return function(w){var x=i[g];w(a.internalActions.queryResultPatched({queryCacheKey:o({queryArgs:y,endpointDefinition:x,endpointName:g}),patches:S}))}},l=function(g,y,S){return function(w,x){var C,T,k=a.endpoints[g].select(y)(x()),P={patches:[],inversePatches:[],undo:function(){return w(a.util.patchQueryData(g,y,P.inversePatches))}};if(k.status===er.uninitialized)return P;if("data"in k)if(Ao(k.data)){var $=Hk(k.data,S),O=$[1],E=$[2];(C=P.patches).push.apply(C,O),(T=P.inversePatches).push.apply(T,E)}else{var A=S(k.data);P.patches.push({op:"replace",path:[],value:A}),P.inversePatches.push({op:"replace",path:[],value:k.data})}return w(a.util.patchQueryData(g,y,P.patches)),P}},u=function(g,y,S){return function(w){var x;return w(a.endpoints[g].initiate(y,(x={subscribe:!1,forceRefetch:!0},x[r0]=function(){return{data:S}},x)))}},c=function(g,y){return b_(t,[g,y],function(S,w){var x,C,T,k,P,$,O,E,A,D,L,M,R,N,B,U,G,Y,ee=w.signal,J=w.abort,j=w.rejectWithValue,Q=w.fulfillWithValue,ne=w.dispatch,se=w.getState,ve=w.extra;return m_(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=SR,T=void 0,k={signal:ee,abort:J,dispatch:ne,getState:se,extra:ve,endpoint:S.endpointName,type:S.type,forced:S.type==="query"?d(S,se()):void 0},P=S.type==="query"?S[r0]:void 0,P?(T=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 Yh=I;function Ige(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Rge=typeof Object.is=="function"?Object.is:Ige,Oge=Yh.useState,Mge=Yh.useEffect,Nge=Yh.useLayoutEffect,$ge=Yh.useDebugValue;function Dge(e,t){var n=t(),r=Oge({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return Nge(function(){i.value=n,i.getSnapshot=t,TC(i)&&o({inst:i})},[e,n,t]),Mge(function(){return TC(i)&&o({inst:i}),e(function(){TC(i)&&o({inst:i})})},[e]),$ge(n),n}function TC(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Rge(e,n)}catch{return!0}}function Lge(e,t){return t()}var Fge=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Lge:Dge;fj.useSyncExternalStore=Yh.useSyncExternalStore!==void 0?Yh.useSyncExternalStore:Fge;dj.exports=fj;var Bge=dj.exports,hj={exports:{}},pj={};/**
|
||
|
* @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 S2=I,zge=Bge;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=zge.useSyncExternalStore,Gge=S2.useRef,Hge=S2.useEffect,qge=S2.useMemo,Wge=S2.useDebugValue;pj.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=Gge(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=qge(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,Uge(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=Vge(e,o[0],o[1]);return Hge(function(){a.hasValue=!0,a.value=s},[s]),Wge(s),s};hj.exports=pj;var gj=hj.exports;const Kge=pc(gj);function Qge(e){e()}let mj=Qge;const Xge=e=>mj=e,Yge=()=>mj,PR=Symbol.for("react-redux-context"),IR=typeof globalThis<"u"?globalThis:{};function Zge(){var e;if(!I.createContext)return{};const t=(e=IR[PR])!=null?e:IR[PR]=new Map;let n=t.get(I.createContext);return n||(n=I.createContext(null),t.set(I.createContext,n)),n}const ac=Zge();function RT(e=ac){return function(){return I.useContext(e)}}const yj=RT(),Jge=()=>{throw new Error("uSES not initialized!")};let vj=Jge;const eme=e=>{vj=e},tme=(e,t)=>e===t;function nme(e=ac){const t=e===ac?yj:RT(e);return function(r,i={}){const{equalityFn:o=tme,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=vj(u.addNestedSub,l.getState,c||l.getState,h,o);return I.useDebugValue(p),p}}const bj=nme();function __(){return __=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},__.apply(this,arguments)}var _j={exports:{}},yn={};/** @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 fi=typeof Symbol=="function"&&Symbol.for,OT=fi?Symbol.for("react.element"):60103,MT=fi?Symbol.for("react.portal"):60106,x2=fi?Symbol.for("react.fragment"):60107,w2=fi?Symbol.for("react.strict_mode"):60108,C2=fi?Symbol.for("react.profiler"):60114,E2=fi?Symbol.for("react.provider"):60109,k2=fi?Symbol.for("react.context"):60110,NT=fi?Symbol.for("react.async_mode"):60111,T2=fi?Symbol.for("react.concurrent_mode"):60111,A2=fi?Symbol.for("react.forward_ref"):60112,P2=fi?Symbol.for("react.suspense"):60113,rme=fi?Symbol.for("react.suspense_list"):60120,I2=fi?Symbol.for("react.memo"):60115,R2=fi?Symbol.for("react.lazy"):60116,ime=fi?Symbol.for("react.block"):60121,ome=fi?Symbol.for("react.fundamental"):60117,ame=fi?Symbol.for("react.responder"):60118,sme=fi?Symbol.for("react.scope"):60119;function na(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case OT:switch(e=e.type,e){case NT:case T2:case x2:case C2:case w2:case P2:return e;default:switch(e=e&&e.$$typeof,e){case k2:case A2:case R2:case I2:case E2:return e;default:return t}}case MT:return t}}}function Sj(e){return na(e)===T2}yn.AsyncMode=NT;yn.ConcurrentMode=T2;yn.ContextConsumer=k2;yn.ContextProvider=E2;yn.Element=OT;yn.ForwardRef=A2;yn.Fragment=x2;yn.Lazy=R2;yn.Memo=I2;yn.Portal=MT;yn.Profiler=C2;yn.StrictMode=w2;yn.Suspense=P2;yn.isAsyncMode=function(e){return Sj(e)||na(e)===NT};yn.isConcurrentMode=Sj;yn.isContextConsumer=function(e){return na(e)===k2};yn.isContextProvider=function(e){return na(e)===E2};yn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===OT};yn.isForwardRef=function(e){return na(e)===A2};yn.isFragment=function(e){return na(e)===x2};yn.isLazy=function(e){return na(e)===R2};yn.isMemo=function(e){return na(e)===I2};yn.isPortal=function(e){return na(e)===MT};yn.isProfiler=function(e){return na(e)===C2};yn.isStrictMode=function(e){return na(e)===w2};yn.isSuspense=function(e){return na(e)===P2};yn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===x2||e===T2||e===C2||e===w2||e===P2||e===rme||typeof e=="object"&&e!==null&&(e.$$typeof===R2||e.$$typeof===I2||e.$$typeof===E2||e.$$typeof===k2||e.$$typeof===A2||e.$$typeof===ome||e.$$typeof===ame||e.$$typeof===sme||e.$$typeof===ime)};yn.typeOf=na;_j.exports=yn;var lme=_j.exports,xj=lme,ume={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},cme={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},wj={};wj[xj.ForwardRef]=ume;wj[xj.Memo]=cme;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 $T=Symbol.for("react.element"),DT=Symbol.for("react.portal"),O2=Symbol.for("react.fragment"),M2=Symbol.for("react.strict_mode"),N2=Symbol.for("react.profiler"),$2=Symbol.for("react.provider"),D2=Symbol.for("react.context"),dme=Symbol.for("react.server_context"),L2=Symbol.for("react.forward_ref"),F2=Symbol.for("react.suspense"),B2=Symbol.for("react.suspense_list"),z2=Symbol.for("react.memo"),j2=Symbol.for("react.lazy"),fme=Symbol.for("react.offscreen"),Cj;Cj=Symbol.for("react.module.reference");function ka(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case $T:switch(e=e.type,e){case O2:case N2:case M2:case F2:case B2:return e;default:switch(e=e&&e.$$typeof,e){case dme:case D2:case L2:case j2:case z2:case $2:return e;default:return t}}case DT:return t}}}kn.ContextConsumer=D2;kn.ContextProvider=$2;kn.Element=$T;kn.ForwardRef=L2;kn.Fragment=O2;kn.Lazy=j2;kn.Memo=z2;kn.Portal=DT;kn.Profiler=N2;kn.StrictMode=M2;kn.Suspense=F2;kn.SuspenseList=B2;kn.isAsyncMode=function(){return!1};kn.isConcurrentMode=function(){return!1};kn.isContextConsumer=function(e){return ka(e)===D2};kn.isContextProvider=function(e){return ka(e)===$2};kn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===$T};kn.isForwardRef=function(e){return ka(e)===L2};kn.isFragment=function(e){return ka(e)===O2};kn.isLazy=function(e){return ka(e)===j2};kn.isMemo=function(e){return ka(e)===z2};kn.isPortal=function(e){return ka(e)===DT};kn.isProfiler=function(e){return ka(e)===N2};kn.isStrictMode=function(e){return ka(e)===M2};kn.isSuspense=function(e){return ka(e)===F2};kn.isSuspenseList=function(e){return ka(e)===B2};kn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===O2||e===N2||e===M2||e===F2||e===B2||e===fme||typeof e=="object"&&e!==null&&(e.$$typeof===j2||e.$$typeof===z2||e.$$typeof===$2||e.$$typeof===D2||e.$$typeof===L2||e.$$typeof===Cj||e.getModuleId!==void 0)};kn.typeOf=ka;function hme(){const e=Yge();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 RR={notify(){},get:()=>[]};function pme(e,t){let n,r=RR;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=hme())}function u(){n&&(n(),n=void 0,r.clear(),r=RR)}const c={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:s,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>r};return c}const gme=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",mme=gme?I.useLayoutEffect:I.useEffect;function OR(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function S_(e,t){if(OR(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])||!OR(e[n[i]],t[n[i]]))return!1;return!0}function yme({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",noopCheck:o="once"}){const a=I.useMemo(()=>{const u=pme(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]);mme(()=>{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||ac;return I.createElement(l.Provider,{value:a},n)}function Ej(e=ac){const t=e===ac?yj:RT(e);return function(){const{store:r}=t();return r}}const kj=Ej();function vme(e=ac){const t=e===ac?kj:Ej(e);return function(){return t().dispatch}}const Tj=vme();eme(gj.useSyncExternalStoreWithSelector);Xge(Uo.unstable_batchedUpdates);var bme=globalThis&&global
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O2e(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 M2e(e){if(Array.isArray(e))return e}function GC(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=aG(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 aG(e,t){if(e){if(typeof e=="string")return q9(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 q9(e,t)}}function q9(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 N_(e){"@babel/helpers - typeof";return N_=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},N_(e)}var W9=function(t){var n;return(n=Object.prototype.toString.call(t).match(/\[object (.*)\]/))===null||n===void 0?void 0:n[1]},K9=function(t){return/^\[object (?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)Array\]$/.test(Object.prototype.toString.call(t))},N2e=function e(t,n){if(t===n)return!0;if(N_(t)!=="object"||N_(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(K9(t)&&K9(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=W9(t),a=W9(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=GC(t.entries()),l;try{for(s.s();!(l=s.n()).done;){var u=VC(l.value,1),c=u[0];if(!n.has(c))return!1}}catch(C){s.e(C)}finally{s.f()}var d=GC(t.entries()),f;try{for(d.s();!(f=d.n()).done;){var h=VC(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 _=GC(t.entries()),b;try{for(_.s();!(b=_.n()).done;){var v=VC(b.value,1),g=v[0];if(!n.has(g))return!1}}catch(C){_.e(C)}finally{_.f()}return!0}if(o==="Date"&&a==="Date")return+t==+n;var y=Object.keys(t);if(y.length!==Object.keys(n).length)return!1;for(var S=y.length;S--!==0;)if(!Object.prototype.hasOwnProperty.call(n,y[S]))return!1;for(var w=y.length;w--!==0;){var x=y[w];if(!e(t[x],n[x]))return!1}return o!=="Object"&&a!=="Object"?t===n:!0};const gA=N2e;function Q9(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 sG(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(l){Q9(o,r,i,a,s,"next",l)}function s(l){Q9(o,r,i,a,s,"throw",l)}a(void 0)})}}var $2e=function(){var e=sG(function*(t,n,r){var i=r.prefix,o=r.driver,a=r.serialize;if(!gA(t,n))return o.setItem("".concat(i,"rootState"),a(t,"rootState"))});return function(n,r,i){return e.apply(this,arguments)}}(),D2e=function(t,n,r){var i=r.prefix,o=r.driver,a=r.serialize;return Promise.all(Object.keys(t).map(function(s){return gA(t[s],n[s])?Promise.resolve():o.setItem("".concat(i).concat(s),a(t[s],s))}))},L2e=function(){var e=sG(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?$2e:D2e;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 X9(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!==gO,m=h!==OCe&&p,_=this.ellipsis();this.textArr=[],ZC().font=this._getContextFont();for(var b=_?this._getTextWidth(YC):0,v=0,g=t.length;v<g;++v){var y=t[v],S=this._getTextWidth(y);if(s&&S>c)for(;y.length>0;){for(var w=0,x=y.length,C="",T=0;w<x;){var k=w+x>>>1,P=y.slice(0,k+1),$=this._getTextWidth(P)+b;$<=c?(w=k+1,C=P,T=$):x=k}if(C){if(m){var O,E=y[C.length],A=E===jv||E===hO;A&&T<=c?O=C.length:O=Math.max(C.lastIndexOf(jv),C.lastIndexOf(hO))+1,O>0&&(w=O,C=C.slice(0,w),T=this._getTextWidth(C))}C=C.trimRight(),this._addTextLine(C),r=Math.max(r,T),f+=i;var D=this._shouldHandleEllipsis(f);if(D){this._tryToAddEllipsisToLastLine();break}if(y=y.slice(w),y=y.trimLeft(),y.length>0&&(S=this._getTextWidth(y),S<=c)){this._addTextLine(y),f+=i,r=Math.max(r,S);break}}else break}else this._addTextLine(y),f+=i,r=Math.max(r,S),this._shouldHandleEllipsis(f)&&v<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!==gO;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+YC)<i;s||(a.text=a.text.slice(0,a.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+YC)}}getStrokeScaleEnabled(){return!0}};Dd.Text=Tr;Tr.prototype._fillFunc=$Ce;Tr.prototype._strokeFunc=DCe;Tr.prototype.className=kCe;Tr.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];(0,SCe._registerNode)(Tr);lo.Factory.overWriteSetter(Tr,"width",(0,Ec.getNumberOrAutoValidator)());lo.Factory.overWriteSetter(Tr,"height",(0,Ec.getNumberOrAutoValidator)());lo.Factory.addGetterSetter(Tr,"fontFamily","Arial");lo.Factory.addGetterSetter(Tr,"fontSize",12,(0,Ec.getNumberValidator)());lo.Factory.addGetterSetter(Tr,"fontStyle",LG);lo.Factory.addGetterSetter(Tr,"fontVariant",LG);lo.Factory.addGetterSetter(Tr,"padding",0,(0,Ec.getNumberValidator)());lo.Factory.addGetterSetter(Tr,"align",DG);lo.Factory.addGetterSetter(Tr,"verticalAlign",TCe);lo.Factory.addGetterSetter(Tr,"lineHeight",1,(0,Ec.getNumberValidator)());lo.Factory.addGetterSetter(Tr,"wrap",RCe);lo.Factory.addGetterSetter(Tr,"ellipsis",!1,(0,Ec.getBooleanValidator)());lo.Factory.addGetterSetter(Tr,"letterSpacing",0,(0,Ec.getNumberValidator)());lo.Factory.addGetterSetter(Tr,"text","",(0,Ec.getStringValidator)());lo.Factory.addGetterSetter(Tr,"textDecoration","");var xx={};Object.defineProperty(xx,"__esModule",{value:!0});xx.TextPath=void 0;const JC=dr,fs=At,FCe=Yr,eg=wp,e5=Dd,BG=Xe,BCe=Rt;var zCe="",zG="normal";function jG(e){e.fillText(this.partialText,0,0)}function UG(e){e.strokeText(this.partialText,0,0)}class Zr extends FCe.Shape{constructor(t){super(t),this.dummyCanvas=JC.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 eg.Path.getPathLength(this.dataArray)}_getPointAtLength(t){if(!this.attrs.data)return null;const n=this.pathLength;return t-1>n?null:eg.Path.getPointAtLengthOfDataArray(t,this.dataArray)}_readDataAttribute(){this.dataArray=eg.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 h6e=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function p6e(e){const t=h6e();return!e||u6e(e)?t:e.string&&e.colors?m6e(e.string,e.colors):e.string&&!e.colors?g6e(e.string):e.colors&&!e.string?y6e(e.colors):t}function g6e(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 y6e(e){return e[Math.floor(Math.random()*e.length)]}function K(e,t){return n=>n.colorMode==="dark"?t:e}function KA(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function ZH(e){return Hs(e)&&e.reference?e.reference:String(e)}var iw=(e,...t)=>t.map(ZH).join(` ${e} `).replace(/calc/g,""),gM=(...e)=>`calc(${iw("+",...e)})`,mM=(...e)=>`calc(${iw("-",...e)})`,f4=(...e)=>`calc(${iw("*",...e)})`,yM=(...e)=>`calc(${iw("/",...e)})`,vM=e=>{const t=ZH(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:f4(t,-1)},kl=Object.assign(e=>({add:(...t)=>kl(gM(e,...t)),subtract:(...t)=>kl(mM(e,...t)),multiply:(...t)=>kl(f4(e,...t)),divide:(...t)=>kl(yM(e,...t)),negate:()=>kl(vM(e)),toString:()=>e.toString()}),{add:gM,subtract:mM,multiply:f4,divide:yM,negate:vM});function v6e(e){return!Number.isInteger(parseFloat(e.toString()))}function b6e(e,t="-"){return e.replace(/\s+/g,t)}function JH(e){const t=b6e(e.toString());return t.includes("\\.")?e:v6e(e)?t.replace(".","\\."):e}function _6e(e,t=""){return[t,JH(e)].filter(Boolean).join("-")}function S6e(e,t){return`var(${JH(e)}${t?`, ${t}`:""})`}function x6e(e,t=""){return`--${_6e(e,t)}`}function fr(e,t){const n=x6e(e,t==null?void 0:t.prefix);return{variable:n,reference:S6e(n,w6e(t==null?void 0:t.fallback))}}function w6e(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:C6e,definePartsStyle:Q1}=Pt(XH.keys),Xg=fr("switch-track-width"),yd=fr("switch-track-height"),a5=fr("switch-track-diff"),E6e=kl.subtract(Xg,yd),h4=fr("switch-thumb-x"),og=fr("switch-bg"),k6e=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Xg.reference],height:[yd.reference],transitionProperty:"common",transitionDuration:"fast",[og.variable]:"colors.gray.300",_dark:{[og.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[og.variable]:`colors.${t}.500`,_dark:{[og.variable]:`colors.${t}.200`}},bg:og.reference}},T6e={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[yd.reference],height:[yd.reference],_checked:{transform:`translateX(${h4.reference})`}},A6e=Q1(e=>({container:{[a5.variable]:E6e,[h4.variable]:a5.reference,_rtl:{[h4.variable]:kl(a5).negate().toString()}},track:k6e(e),thumb:T6e})),P6e={sm:Q1({container:{[Xg.variable]:"1.375rem",[yd.variable]:"sizes.3"}}),md:Q1({container:{[Xg.variable]:"1.875rem",[yd.variable]:"sizes.4"}}),lg:Q1({container:{[Xg.variable]:"2.875rem",[yd.variable]:"sizes.6"}})},I6e=C6e({baseStyle:A6e,sizes:P6e,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:R6e,definePartsStyle:Sh}=Pt(qPe.keys),O6e=Sh({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"}}),H_={"&[data-is-numeric=true]":{textAlign:"end"}},M6e=Sh(e=>{const{colorScheme:t}=e;return{th:{color:K("gray.600","gray.400")(e),borderBottom:"1px",borderColor:K(`${t}.100`,`${t}.700`)(e),...H_},td:{borderBottom:"1px",borderColor:K(`${t}.100`,`${t}.700`)(e),...H_},caption:{color:K("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),N6e=Sh(e=>{const{c
|
||
|
to right,
|
||
|
transparent 0%,
|
||
|
${to(n,a)} 50%,
|
||
|
transparent 100%
|
||
|
)`;return{...!r&&i&&o,...r?{bgImage:s}:{bgColor:a}}},P8e={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},I8e=e=>({bg:K("gray.100","whiteAlpha.300")(e)}),R8e=e=>({transitionProperty:"common",transitionDuration:"slow",...A8e(e)}),O8e=Ag(e=>({label:P8e,filledTrack:R8e(e),track:I8e(e)})),M8e={xs:Ag({track:{h:"1"}}),sm:Ag({track:{h:"2"}}),md:Ag({track:{h:"3"}}),lg:Ag({track:{h:"4"}})},N8e=T8e({sizes:M8e,baseStyle:O8e,defaultProps:{size:"md",colorScheme:"blue"}}),$8e=e=>typeof e=="function";function ro(e,...t){return $8e(e)?e(...t):e}var{definePartsStyle:eb,defineMultiStyleConfig:D8e}=Pt(zH.keys),Zg=nt("checkbox-size"),L8e=e=>{const{colorScheme:t}=e;return{w:Zg.reference,h:Zg.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)}}},F8e={_disabled:{cursor:"not-allowed"}},B8e={userSelect:"none",_disabled:{opacity:.4}},z8e={transitionProperty:"transform",transitionDuration:"normal"},j8e=eb(e=>({icon:z8e,container:F8e,control:ro(L8e,e),label:B8e})),U8e={sm:eb({control:{[Zg.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:eb({control:{[Zg.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:eb({control:{[Zg.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},q_=D8e({baseStyle:j8e,sizes:U8e,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:V8e,definePartsStyle:tb}=Pt(GPe.keys),G8e=e=>{var t;const n=(t=ro(q_.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"}}}},H8e=tb(e=>{var t,n,r,i;return{label:(n=(t=q_).baseStyle)==null?void 0:n.call(t,e).label,container:(i=(r=q_).baseStyle)==null?void 0:i.call(r,e).container,control:G8e(e)}}),q8e={md:tb({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:tb({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:tb({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},W8e=V8e({baseStyle:H8e,sizes:q8e,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:K8e,definePartsStyle:Q8e}=Pt(KH.keys),Yv=nt("select-bg"),OM,X8e={...(OM=un.baseStyle)==null?void 0:OM.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Yv.reference,[Yv.variable]:"colors.white",_dark:{[Yv.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Yv.reference}},Y8e={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},Z8e=Q8e({field:X8e,icon:Y8e}),Zv={paddingInlineEnd:"8"},MM,NM,$M,DM,LM,FM,BM,zM,J8e={lg:{...(MM=un.sizes)==null?void 0:MM.lg,field:{...(NM=un.sizes)==null?void 0:NM.lg.field,...Zv}},md:{...($M=un.sizes)==null?void 0:$M.md,field:{...(DM=un.sizes)==null?void 0:DM.md.field,...Zv}},sm:{...(LM=un.sizes)==null?void 0:LM.sm,field:{...(FM=un.sizes)==null?void 0:FM.sm.field,...Zv}},xs:{...(BM=un.sizes)==null?void 0:BM.xs,field:{...(zM=un.sizes)==null?void 0:zM.xs.field,...Zv},icon:{insetEnd:"1"}}},eIe=K8e({baseStyle:Z8e,sizes:J8e,variants:un.variants,defaultProps:un.defaultProps}),u5=nt("skeleton-start-color"),c5=nt("skeleton-end-color"),tIe={[u5.variable]:"colors.gray.100",[c5.variable]:"colors.gray.400",_dark:{[u5.variable]:"colors.gray.800",[c5.variable]:"colors.gray.600"},background:u5.reference,borderColor:c5.reference,opacity:.7,borderRadius:"sm"},nIe={baseStyle:tIe},d5=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(uDe,{isPresent:t,childRef:r,sizeRef:i},I.cloneElement(e,{ref:r}))}const $5=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const s=Iq(dDe),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(cDe,{isPresent:n},e)),I.createElement(My.Provider,{value:u},e)};function dDe(){return new Map}function fDe(e){return I.useEffect(()=>()=>e(),[])}const kf=e=>e.key||"";function hDe(e,t){e.forEach(n=>{const r=kf(n);t.set(r,n)})}function pDe(e){const t=[];return I.Children.forEach(e,n=>{I.isValidElement(n)&&t.push(n)}),t}const DW=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{const s=I.useContext(tP).forceRender||lDe()[0],l=$W(),u=pDe(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(ZA(()=>{p.current=!1,hDe(u,h),f.current=c}),fDe(()=>{p.current=!0,h.clear(),d.clear()}),p.current)return I.createElement(I.Fragment,null,c.map(v=>I.createElement($5,{key:kf(v),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:a},v)));c=[...c];const m=f.current.map(kf),_=u.map(kf),b=m.length;for(let v=0;v<b;v++){const g=m[v];_.indexOf(g)===-1&&!d.has(g)&&d.set(g,void 0)}return a==="wait"&&d.size&&(c=[]),d.forEach((v,g)=>{if(_.indexOf(g)!==-1)return;const y=h.get(g);if(!y)return;const S=m.indexOf(g);let w=v;if(!w){const x=()=>{h.delete(g),d.delete(g);const C=f.current.findIndex(T=>T.key===g);if(f.current.splice(C,1),!d.size){if(f.current=u,l.current===!1)return;s(),r&&r()}};w=I.createElement($5,{key:kf(y),isPresent:!1,onExitComplete:x,custom:t,presenceAffectsLayout:o,mode:a},y),d.set(g,w)}c.splice(S,0,w)}),c=c.map(v=>{const g=v.key;return d.has(g)?v:I.createElement($5,{key:kf(v),isPresent:!0,presenceAffectsLayout:o,mode:a},v)}),I.createElement(I.Fragment,null,d.size?c:c.map(v=>I.cloneElement(v)))};var gDe={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]}}},LW=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=gDe,toastSpacing:c="0.5rem"}=e,[d,f]=I.useState(s),h=t$e();QM(()=>{h||r==null||r()},[h]),QM(()=>{f(s)},[s]);const p=()=>f(null),m=()=>f(s),_=()=>{h&&i()};I.useEffect(()=>{h&&o&&i()},[h,o,i]),ZOe(_,d);const b=I.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),v=I.useMemo(()=>QOe(a),[a]);return W.jsx(NW.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:p,onHoverEnd:m,custom:{position:a},style:v,children:W.jsx(Oi.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:b,children:$s(n,{id:t,onClose:_})})})});LW.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 J7={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"},Fy=ra((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}),PFe={variants:{invokeAI:AFe},defaultProps:{size:"md",variant:"invokeAI"}},IFe=fr("popper-arrow-bg"),RFe=e=>({borderRadius:"base",shadow:"dark-lg",bg:K("base.700","base.200")(e),[IFe.variable]:K("colors.base.700","colors.base.200")(e),pb:1.5}),OFe={baseStyle:RFe},iN={backgroundColor:"accentAlpha.150 !important",borderColor:"accentAlpha.700 !important",borderRadius:"base !important",borderStyle:"dashed !important",_dark:{borderColor:"accent.400 !important"}},MFe={".react-flow__nodesselection-rect":{...iN,padding:"1rem !important",boxSizing:"content-box !important",transform:"translate(-1rem, -1rem) !important"},".react-flow__selection":iN},NFe={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","*":{...QLe},...MFe})},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:FDe,components:{Button:QDe,Input:hLe,Editable:sLe,Textarea:PFe,Tabs:EFe,Progress:KLe,Accordion:qDe,FormLabel:uLe,Switch:yFe,NumberInput:DLe,Select:tFe,Skeleton:rFe,Slider:dFe,Popover:ULe,Modal:ALe,Checkbox:eLe,Menu:yLe,Text:TFe,Tooltip:OFe}},$Fe={defaultOptions:{isClosable:!0}},{toast:ug}=ODe({theme:NFe,defaultOptions:$Fe.defaultOptions}),DFe=()=>{Be({matcher:Qr.endpoints.enqueueBatch.matchFulfilled,effect:async e=>{const t=e.payload,n=e.meta.arg.originalArgs;Ce("queue").debug({enqueueResult:Qt(t)},"Batch enqueued"),ug.isActive("batch-queued")||ug({id:"batch-queued",title:Z("queue.batchQueued"),description:Z("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=uh(t,"body.detail","Unknown Error"):t.status===403&&"error"in t?i=uh(t,"error.detail","Unknown Error"):t.status===403&&"data"in t&&(i=uh(t,"data.detail","Unknown Error"),o=15e3),ug({title:Z("queue.batchFailedToQueue"),status:"error",description:i,...o?{duration:o}:{}})}Ce("queue").error({batchConfig:Qt(n),error:Qt(t)},Z("queue.batchFailedToQueue"))}})},ZW=FL(),Be=ZW.startListening;DEe();LEe();UEe();TEe();AEe();PEe();IEe();REe();wxe();$Ee();FEe();BEe();cEe();CEe();gEe();vxe();DFe();G3e();z3e();Bxe();j3e();Fxe();Dxe();V3e();dke();gxe();J4e();eke();nke();rke();oke();Y4e();Z4e();uke();cke();ake();lke();ike();ske();K3e();q3e();EEe();kEe();MEe();NEe();Cxe();X4e();Vke();OEe();VEe();Sxe();HEe();bxe();mxe();Dke();hke();KEe();const LFe={canvas:dle,gallery:_0e,generation:Jse,nodes:t2e,postprocessing:n2e,system:u2e,config:Rae,ui:v2e,hotkeys:y2e,controlNet:u0e,dynamicPrompts:b0e,deleteImageModal:f0e,changeBoardModal:hle,lora:w0e,modelmanager:m2e,sdxl:i2e,queue:p2e,[ls.reducerPath]:ls.reducer},FFe=hp(LFe),BFe=V2e(FFe),zFe=["canvas","gallery","generation","sdxl","nodes","postprocessing","system","ui","controlNet","dynamicPrompts","lora","modelmanager"],JW=vL({reducer:BFe,enhancers:e=>e.concat(G2e(window.localStorage,zFe,{persistDebounce:300,serialize:nxe,unserialize:ixe,prefix:H2e})).concat(zL()),middleware:e=>e({serializableCheck:!1,immutableCheck:!1}).concat(ls.middleware).concat(x2e).prepend(ZW.middleware),devTools:{actionSanitizer:cxe,stateSanitizer:fxe,trace:!0,predicate:(e,t)=>!dxe.includes(t.type)}}),eK=e=>e;PB.set(JW);const jFe=e=>{const{socket:t,storeApi:n}=e,{dispatch:r}=n;t.on("connect",()=>{Ce("socketio").debug("Connected"),r(Lj());const o=Ur.get();t.emit("subscribe_queue",{queue_id:o})}),t.on("connect_error",i=>{i&&i.message&&i.data==="ERR_UNAUTHENTICATED"&&r(Gt($d({title:i.message,status:"error",duration:1e4})))}),t.on("disconnect",()=>{r(Fj())}),t.on("invocation_started",i=>{r(zj({data:i}))}),t.on("generator_progress",i=>{r(Gj({data:i}))}),t.on("invocation_error",i=>{r(jj({data:i}))}),t.on("invocation_complete",i=>{r(jT({data:i}))}),t.on("graph_execution_state_complete",i=>{r(Uj({data:i}))}),t.on("model_load_started",i=>{r(Hj({data:i}))}),t.on("model_load_completed",i=>{r(Wj({data:i}))}),t.on("session_retrieval_error",i=>{r(Qj({data:i}))}),t.on("invocation_retrieval_error",i=>{r(Yj({data:i}))}),t.on("queue_item_status_changed",i=>{r(Jj({data:i}))})},Ys=Object.create(null);Ys.open="0";Ys.close="1";Ys.ping="2";Ys.pong="3";Ys.message="4";Ys.upgrade="5";Ys.noop="6";const ab=Object.create(null);Object.keys(Ys).forEach(e=>{ab[Ys[e]]=e});const R4={type:"error",data:"parser error"},tK=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",nK=typeof ArrayBuffer=="function",rK=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,CP=({type:e,data:t},n,r)=>tK&&t instanceof Blob?n?r(t):oN(t,r):nK&&(t instanceof ArrayBuffer||rK(t))?n?r(t):oN(new Blob([t]),r):r(Ys[e]+(t||"")),oN=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function aN(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let D5;function UFe(e,t){if(tK&&e.data instanceof Blob)return e.data.arrayBuffer().then(aN).then(t);if(nK&&(e.data instanceof ArrayBuffer||rK(e.data)))return t(aN(e.data));CP(e,!1,n=>{D5||(D5=new TextEncoder),t(D5.encode(n))})}const sN="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ig=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<sN.length;e++)Ig[sN.charCodeAt(e)]=e;const VFe=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=Ig[e.charCodeAt(r)],a=Ig[e.charCodeAt(r+1)],s=Ig[e.charCodeAt(r+2)],l=Ig[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.
|
||
|
`},sze={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 lze(e){let{announcements:t=sze,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=aze}=e;const{announce:o,announcement:a}=rze(),s=yw("DndLiveRegion"),[l,u]=I.useState(!1);if(I.useEffect(()=>{u(!0)},[]),ize(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=En.createElement(En.Fragment,null,En.createElement(eze,{id:r,value:i.draggable}),En.createElement(nze,{id:s,announcement:a}));return n?Uo.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 uS(){}function xN(e,t){return I.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function uze(){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 us=Object.freeze({x:0,y:0});function cze(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function dze(e,t){const n=$0(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 fze(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function hze(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function pze(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 gze(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 yze=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(hze)};function vze(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 bze=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&&vze(r,s)){const u=pze(s).reduce((d,f)=>d+cze(r,f),0),c=Number((u/4).toFixed(4));i.push({id:a,data:{droppableContainer:o,value:c}})}}return i.sort(fze)};function _ze(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function wK(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:us}function Sze(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 xze=Sze(1);function CK(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 wze(e,t,n){const r=CK(t);if(!r)return e;const{scaleX:i,scaleY:o,x:a,y:s}=r,l=e.left-a-(1-i)*parseFloat
|