mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
129 lines
1.3 MiB
JavaScript
129 lines
1.3 MiB
JavaScript
|
var OV=Object.defineProperty;var IV=(e,t,n)=>t in e?OV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ZS=(e,t,n)=>(IV(e,typeof t!="symbol"?t+"":t,n),n);function II(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 s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).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 ut=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Q1(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 MI={exports:{}},Y1={},NI={exports:{}},It={};/**
|
||
|
* @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 im=Symbol.for("react.element"),MV=Symbol.for("react.portal"),NV=Symbol.for("react.fragment"),DV=Symbol.for("react.strict_mode"),LV=Symbol.for("react.profiler"),$V=Symbol.for("react.provider"),FV=Symbol.for("react.context"),BV=Symbol.for("react.forward_ref"),zV=Symbol.for("react.suspense"),UV=Symbol.for("react.memo"),jV=Symbol.for("react.lazy"),M4=Symbol.iterator;function VV(e){return e===null||typeof e!="object"?null:(e=M4&&e[M4]||e["@@iterator"],typeof e=="function"?e:null)}var DI={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},LI=Object.assign,$I={};function Zf(e,t,n){this.props=e,this.context=t,this.refs=$I,this.updater=n||DI}Zf.prototype.isReactComponent={};Zf.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")};Zf.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function FI(){}FI.prototype=Zf.prototype;function Q3(e,t,n){this.props=e,this.context=t,this.refs=$I,this.updater=n||DI}var Y3=Q3.prototype=new FI;Y3.constructor=Q3;LI(Y3,Zf.prototype);Y3.isPureReactComponent=!0;var N4=Array.isArray,BI=Object.prototype.hasOwnProperty,Z3={current:null},zI={key:!0,ref:!0,__self:!0,__source:!0};function UI(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)BI.call(t,r)&&!zI.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:im,type:e,key:o,ref:s,props:i,_owner:Z3.current}}function GV(e,t){return{$$typeof:im,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function J3(e){return typeof e=="object"&&e!==null&&e.$$typeof===im}function HV(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var D4=/\/+/g;function JS(e,t){return typeof e=="object"&&e!==null&&e.key!=null?HV(""+e.key):t.toString(36)}function p0(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case im:case MV:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+JS(s,0):r,N4(i)?(n="",e!=null&&(n=e.replace(D4,"$&/")+"/"),p0(i,t,n,"",function(u){return u})):i!=null&&(J3(i)&&(i=GV(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(D4,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",N4(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+JS(o,a);s+=p0(o,t,n,l,i)}else if(l=VV(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+JS(o,a++),s+=p0(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 s}function Jm(e,t,n){if(e==null)return e;var r=[],i=0;return p0(e,r,"","",function(o){return t.call(n,o,i++)}),r}function qV(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 Qi={current:null},g0={transition:null},WV={ReactCurrentDispatcher:Qi,ReactCurrentBatchConfig:g0,ReactCurrentOwner:Z3};It.Children={map:Jm,forEach:function(e,t,n){Jm(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Jm(e,function(){t++}),t},toArray:function(e){return Jm(e,function(t){return t})||[]},only:function(e){if(!J3(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};It.Component=Zf;It.Fragment=NV;It.Profiler=LV;It
|
||
|
* @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 KV=M,XV=Symbol.for("react.element"),QV=Symbol.for("react.fragment"),YV=Object.prototype.hasOwnProperty,ZV=KV.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,JV={key:!0,ref:!0,__self:!0,__source:!0};function jI(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)YV.call(t,r)&&!JV.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:XV,type:e,key:o,ref:s,props:i,_owner:ZV.current}}Y1.Fragment=QV;Y1.jsx=jI;Y1.jsxs=jI;MI.exports=Y1;var Z=MI.exports,nx={},VI={exports:{}},Lo={},GI={exports:{}},HI={};/**
|
||
|
* @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(R,O){var I=R.length;R.push(O);e:for(;0<I;){var F=I-1>>>1,U=R[F];if(0<i(U,O))R[F]=O,R[I]=U,I=F;else break e}}function n(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var O=R[0],I=R.pop();if(I!==O){R[0]=I;e:for(var F=0,U=R.length,V=U>>>1;F<V;){var H=2*(F+1)-1,Y=R[H],Q=H+1,j=R[Q];if(0>i(Y,I))Q<U&&0>i(j,Y)?(R[F]=j,R[Q]=I,F=Q):(R[F]=Y,R[H]=I,F=H);else if(Q<U&&0>i(j,I))R[F]=j,R[Q]=I,F=Q;else break e}}return O}function i(R,O){var I=R.sortIndex-O.sortIndex;return I!==0?I:R.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,h=!1,p=!1,m=!1,b=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(R){for(var O=n(u);O!==null;){if(O.callback===null)r(u);else if(O.startTime<=R)r(u),O.sortIndex=O.expirationTime,t(l,O);else break;O=n(u)}}function v(R){if(m=!1,g(R),!p)if(n(l)!==null)p=!0,D(S);else{var O=n(u);O!==null&&B(v,O.startTime-R)}}function S(R,O){p=!1,m&&(m=!1,_(C),C=-1),h=!0;var I=f;try{for(g(O),d=n(l);d!==null&&(!(d.expirationTime>O)||R&&!k());){var F=d.callback;if(typeof F=="function"){d.callback=null,f=d.priorityLevel;var U=F(d.expirationTime<=O);O=e.unstable_now(),typeof U=="function"?d.callback=U:d===n(l)&&r(l),g(O)}else r(l);d=n(l)}if(d!==null)var V=!0;else{var H=n(u);H!==null&&B(v,H.startTime-O),V=!1}return V}finally{d=null,f=I,h=!1}}var w=!1,x=null,C=-1,A=5,T=-1;function k(){return!(e.unstable_now()-T<A)}function L(){if(x!==null){var R=e.unstable_now();T=R;var O=!0;try{O=x(!0,R)}finally{O?N():(w=!1,x=null)}}else w=!1}var N;if(typeof y=="function")N=function(){y(L)};else if(typeof MessageChannel<"u"){var E=new MessageChannel,P=E.port2;E.port1.onmessage=L,N=function(){P.postMessage(null)}}else N=function(){b(L,0)};function D(R){x=R,w||(w=!0,N())}function B(R,O){C=b(function(){R(e.unstable_now())},O)}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(R){R.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,D(S))},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(R){switch(f){case 1:case 2:case 3:var O=3;break;default:O=f}var I=f;f=O;try{return R()}finally{f=I}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(R,O){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var I=f;f=R;try{return O()}finally{f=I}},e.unstable_scheduleCallback=function(R,O,I){var F=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?F+I:F):I=F,R){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=I+U,R={id:c++,callback:O,priorityLevel:R,startTime:I,expirationTime:U,sortIndex:-1},I>F?(R.sortIndex=I,t(u,R),n(l)===null&&R===n(u)&&(m?(_(C),C=-1):m=!0,B(v,I-F))):(R.sortIndex=U,t(l,R),p||h||(p=!0,D(S))),R},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(R){var O=f;return function(){var I=f;f=O;try{return R.apply(this,arguments)}finally{f=I}}}})(HI);GI.exports=HI;var eG=GI.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 qI=M,Io=eG;function oe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var WI=new Set,Mp={};function Bc(e,t){Sf(e,t),Sf(e+"Capture",t)}function Sf(e,t){for(Mp[e]=t,e=0;e<t.length;e++)WI.add(t[e])}var el=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),rx=Object.prototype.hasOwnProperty,tG=/^[: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]*$/,$4={},F4={};function nG(e){return rx.call(F4,e)?!0:rx.call($4,e)?!1:tG.test(e)?F4[e]=!0:($4[e]=!0,!1)}function rG(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 iG(e,t,n,r){if(t===null||typeof t>"u"||rG(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 Yi(e,t,n,r,i,o,s){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=s}var Si={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Si[e]=new Yi(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Si[t]=new Yi(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Si[e]=new Yi(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Si[e]=new Yi(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){Si[e]=new Yi(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Si[e]=new Yi(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Si[e]=new Yi(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Si[e]=new Yi(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Si[e]=new Yi(e,5,!1,e.toLowerCase(),null,!1,!1)});var e5=/[\-:]([a-z])/g;function t5(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
|
||
|
`+e2+e}var t2=!1;function n2(e,t){if(!e||t2)return"";t2=!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(`
|
||
|
`),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||i[s]!==o[a]){var l=`
|
||
|
`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{t2=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Qh(e):""}function oG(e){switch(e.tag){case 5:return Qh(e.type);case 16:return Qh("Lazy");case 13:return Qh("Suspense");case 19:return Qh("SuspenseList");case 0:case 2:case 15:return e=n2(e.type,!1),e;case 11:return e=n2(e.type.render,!1),e;case 1:return e=n2(e.type,!0),e;default:return""}}function ax(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 Md:return"Fragment";case Id:return"Portal";case ix:return"Profiler";case r5:return"StrictMode";case ox:return"Suspense";case sx:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case XI:return(e.displayName||"Context")+".Consumer";case KI:return(e._context.displayName||"Context")+".Provider";case i5:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case o5:return t=e.displayName||null,t!==null?t:ax(e.type)||"Memo";case Al:t=e._payload,e=e._init;try{return ax(e(t))}catch{}}return null}function sG(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 ax(t);case 8:return t===r5?"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 au(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function YI(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function aG(e){var t=YI(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ty(e){e._valueTracker||(e._valueTracker=aG(e))}function ZI(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=YI(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function J0(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 lx(e,t){var n=t.checked;return ir({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function z4(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=au(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 JI(e,t){t=t.checked,t!=null&&n5(e,"checked",t,!1)}function ux(e,t){JI(e,t);var n=au(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")?cx(e,t.type,n):t.hasOwnProperty("defaultValue")&&cx(e,t.type,au(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function U4(e,t,n){if(t.hasOwnProperty("val
|
||
|
`).replace(yH,"")}function uy(e,t,n){if(t=cA(t),cA(e)!==t&&n)throw Error(oe(425))}function av(){}var Cx=null,Ex=null;function Tx(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 Ax=typeof setTimeout=="function"?setTimeout:void 0,vH=typeof clearTimeout=="function"?clearTimeout:void 0,dA=typeof Promise=="function"?Promise:void 0,_H=typeof queueMicrotask=="function"?queueMicrotask:typeof dA<"u"?function(e){return dA.resolve(null).then(e).catch(bH)}:Ax;function bH(e){setTimeout(function(){throw e})}function g2(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),Fp(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Fp(t)}function Kl(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 fA(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 eh=Math.random().toString(36).slice(2),Zs="__reactFiber$"+eh,Vp="__reactProps$"+eh,tl="__reactContainer$"+eh,kx="__reactEvents$"+eh,SH="__reactListeners$"+eh,wH="__reactHandles$"+eh;function tc(e){var t=e[Zs];if(t)return t;for(var n=e.parentNode;n;){if(t=n[tl]||n[Zs]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=fA(e);e!==null;){if(n=e[Zs])return n;e=fA(e)}return t}e=n,n=e.parentNode}return null}function am(e){return e=e[Zs]||e[tl],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function $d(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(oe(33))}function n_(e){return e[Vp]||null}var Px=[],Fd=-1;function Cu(e){return{current:e}}function Un(e){0>Fd||(e.current=Px[Fd],Px[Fd]=null,Fd--)}function En(e,t){Fd++,Px[Fd]=e.current,e.current=t}var lu={},Fi=Cu(lu),co=Cu(!1),bc=lu;function wf(e,t){var n=e.type.contextTypes;if(!n)return lu;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 fo(e){return e=e.childContextTypes,e!=null}function lv(){Un(co),Un(Fi)}function hA(e,t,n){if(Fi.current!==lu)throw Error(oe(168));En(Fi,t),En(co,n)}function U9(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(oe(108,sG(e)||"Unknown",i));return ir({},n,r)}function uv(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||lu,bc=Fi.current,En(Fi,e),En(co,co.current),!0}function pA(e,t,n){var r=e.stateNode;if(!r)throw Error(oe(169));n?(e=U9(e,t,bc),r.__reactInternalMemoizedMergedChildContext=e,Un(co),Un(Fi),En(Fi,e)):Un(co),En(co,n)}var Fa=null,r_=!1,m2=!1;function j9(e){Fa===null?Fa=[e]:Fa.push(e)}function xH(e){r_=!0,j9(e)}function Eu(){if(!m2&&Fa!==null){m2=!0;var e=0,t=an;try{var n=Fa;for(an=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Fa=null,r_=!1}catch(i){throw Fa!==null&&(Fa=Fa.slice(e+1)),h9(a5,Eu),i}finally{an=t,m2=!1}}return null}var Bd=[],zd=0,cv=null,dv=0,qo=[],Wo=0,Sc=null,Va=1,Ga="";function Wu(e,t){Bd[zd++]=dv,Bd[zd++]=cv,cv=e,dv=t}function V9(e,t,n){qo[Wo++]=Va,qo[Wo++]=Ga,qo[Wo++]=Sc,Sc=e;var r=Va;e=Ga;var i=32-As(r)-1;r&=~(1<<i),n+=1;var o=32-As(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,Va=1<<32-As(t)+i|n<<i|r,Ga=o+e}else Va=1<<o|n<<i|r,Ga=e}function m5(e){e.return!==null&&(Wu(e,1),V9(e,1,0))}function y5(e){for(;e===cv;)cv=Bd[--zd],Bd[zd]=null,dv=Bd[--zd],Bd[zd]=null;for(;e===Sc;)Sc=qo[--Wo],qo[Wo]=null,Ga=qo[--Wo],qo[Wo]=null,Va=qo[--Wo],qo[Wo]=null}var Ro=null,ko=null,Wn=!1,bs=null;function G9(e,t){var n=Qo(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 S2(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Dx(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var IH=typeof WeakMap=="function"?WeakMap:Map;function vM(e,t,n){n=Wa(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){_v||(_v=!0,Hx=r),Dx(e,t)},n}function _M(e,t,n){n=Wa(-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(){Dx(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Dx(e,t),typeof r!="function"&&(Ql===null?Ql=new Set([this]):Ql.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function CA(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new IH;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=qH.bind(null,e,t,n),t.then(e,e))}function EA(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 TA(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=Wa(-1,1),t.tag=2,Xl(n,t,1))),n.lanes|=1),e)}var MH=ul.ReactCurrentOwner,so=!1;function Hi(e,t,n,r){t.child=e===null?Y9(t,null,n,r):Cf(t,e.child,n,r)}function AA(e,t,n,r,i){n=n.render;var o=t.ref;return ef(t,i),r=k5(e,t,n,r,o,i),n=P5(),e!==null&&!so?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,rl(e,t,i)):(Wn&&n&&m5(t),t.flags|=1,Hi(e,t,r,i),t.child)}function kA(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!B5(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,bM(e,t,o,r,i)):(e=E0(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 s=o.memoizedProps;if(n=n.compare,n=n!==null?n:zp,n(s,r)&&e.ref===t.ref)return rl(e,t,i)}return t.flags|=1,e=Zl(o,r),e.ref=t.ref,e.return=t,t.child=e}function bM(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(zp(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,rl(e,t,i)}return Lx(e,t,n,r,i)}function SM(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},En(Vd,Eo),Eo|=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,En(Vd,Eo),Eo|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,En(Vd,Eo),Eo|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,En(Vd,Eo),Eo|=r;return Hi(e,t,i,n),t.child}function wM(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Lx(e,t,n,r,i){var o=fo(n)?bc:Fi.current;return o=wf(t,o),ef(t,i),n=k5(e,t,n,r,o,i),r=P5(),e!==null&&!so?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,rl(e,t,i)):(Wn&&r&&m5(t),t.flags|=1,Hi(e,t,n,i),t.child)}function PA(e,t,n,r,i){if(fo(n)){var o=!0;uv(t)}else o=!1;if(ef(t,i),t.stateNode===null)w0(e,t),X9(t,n,r),Nx(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=Jo(u):(u=fo(n)?bc:Fi.current,u=wf(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&bA(t,s,r,u),kl=!1;var f=t.memoizedState;s.state=f,pv(t,r,s,i),l=t.memoizedState,a!==r||f!==l||co.current||kl?(typeof c=="function"&&(Mx(t,n,c,r),l=t.memoizedState),(a=kl||_A(t,n,a,r,f,l,u))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.
|
||
|
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:ye,mutationThunk:We,api:W,serializeQueryArgs:De,context:te}),ro=jn.buildInitiateQuery,ps=jn.buildInitiateMutation;return ai(W.util,{getRunningOperationPromises:jn.getRunningOperationPromises,getRunningOperationPromise:jn.removalWarning,getRunningMutationThunk:jn.getRunningMutationThunk,getRunningMutationsThunk:jn.getRunningMutationsThunk,getRunningQueryThunk:jn.getRunningQueryThunk,getRunningQueriesThunk:jn.getRunningQueriesThunk}),{name:Bo,injectEndpoint:function(Je,nn){var Kt,Qn=W;(Kt=Qn.endpoints)[Je]!=null||(Kt[Je]={}),ee(nn)?ai(Qn.endpoints[Je],{name:Je,select:hr(Je,nn),initiate:ro(Je,nn)},_t(ye,Je)):nn.type===Q.mutation&&ai(Qn.endpoints[Je],{name:Je,select:li(),initiate:ps(Je)},_t(We,Je))}}}}},Ta=to(qr())})(xD);wD.exports=xD;var tre=wD.exports;const Xr=["general"],jl=["control","mask","user","other"],nre=100,Cy=20,CD=z.enum(["boolean","BooleanCollection","BooleanPolymorphic","ClipField","Collection","CollectionItem","ColorCollection","ColorField","ColorPolymorphic","ConditioningCollection","ConditioningField","ConditioningPolymorphic","ControlCollection","ControlField","ControlNetModelField","ControlPolymorphic","DenoiseMaskField","enum","float","FloatCollection","FloatPolymorphic","ImageCollection","ImageField","ImagePolymorphic","integer","IntegerCollection","IntegerPolymorphic","IPAdapterField","IPAdapterModelField","LatentsCollection","LatentsField","LatentsPolymorphic","LoRAModelField","MainModelField","ONNXModelField","Scheduler","SDXLMainModelField","SDXLRefinerModelField","string","StringCollection","StringPolymorphic","UNetField","VaeField","VaeModelField"]),rre=z.enum(["WorkflowField","IsIntermediate","MetadataField"]),Xk=e=>CD.safeParse(e).success||rre.safeParse(e).success;z.enum(["connection","direct","any"]);const ED=z.object({id:z.string().trim().min(1),name:z.string().trim().min(1),type:CD}),ire=ED.extend({fieldKind:z.literal("output")}),ht=ED.extend({fieldKind:z.literal("input"),label:z.string()}),Hc=z.object({model_name:z.string().trim().min(1),base_model:Gc}),Lf=z.object({image_name:z.string().trim().min(1)}),Vv=z.object({latents_name:z.string().trim().min(1),seed:z.number().int().optional()}),Gv=z.object({conditioning_name:z.string().trim().min(1)}),ore=z.object({mask_name:z.string().trim().min(1),masked_latents_name:z.string().trim().min(1).optional()}),sre=ht.extend({type:z.literal("integer"),value:z.number().int().optional()}),are=ht.extend({type:z.literal("IntegerCollection"),value:z.array(z.number().int()).optional()}),lre=ht.extend({type:z.literal("IntegerPolymorphic"),value:z.union([z.number().int(),z.array(z.number().int())]).optional()}),ure=ht.extend({type:z.literal("float"),value:z.number().optional()}),cre=ht.extend({type:z.literal("FloatCollection"),value:z.array(z.number()).optional()}),dre=ht.extend({type:z.literal("FloatPolymorphic"),value:z.union([z.number(),z.array(z.number())]).optional()}),fre=ht.extend({type:z.literal("string"),value:z.string().optional()}),hre=ht.extend({type:z.literal("StringCollection"),value:z.array(z.string()).optional()}),pre=ht.extend({type:z.literal("StringPolymorphic"),value:z.union([z.string(),z.array(z.string())]).optional()}),gre=ht.extend({type:z.literal("boolean"),value:z.boolean().optional()}),mre=ht.extend({type:z.literal("BooleanCollection"),value:z.array(z.boolean()).optional()}),yre=ht.extend({type:z.literal("BooleanPolymorphic"),value:z.union([z.boolean(),z.array(z.boolean())]).optional()}),vre=ht.extend({type:z.literal("enum"),value:z.string().optional()}),_re=ht.extend({type:z.literal("LatentsField"),value:Vv.optional()}),bre=ht.extend({type:z.literal("LatentsCollection"),value:z.array(Vv).optional()}),Sre=ht.extend({type:z.literal("LatentsPolymorphic"),value:z.union([Vv,z.array(Vv)]).optional()}),wre=ht.extend({type:z.literal("DenoiseMaskField"),value:ore.optional()}),xre=ht.extend({type:z.literal("ConditioningField"),value:Gv.optional()}),Cre=ht.extend({type:z.literal("ConditioningCollection"),value:z.array(Gv).optio
|
||
|
`&&(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(_,y){return b(this.line-f.length+y+1,m)+" "+_},this).join(`
|
||
|
`),c+=`
|
||
|
`+b("",m+p)+`^
|
||
|
`,c}else return c+" at index "+(this.index-1);function b(_,y){var g=String(_);return Array(y-g.length+1).join(" ")+g}};function s(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}s.fail={},s.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 b=d.text!==void 0?d.text:d.value,_=c.constructor===o?d.value:d,y=h.scannable,g=y.length;g--;){var v=y[g],S=v.rule.symbols[v.dot];if(S.test?S.test(_):S.type?S.type===d.type:S.literal===b){var w=v.nextState({data:_,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},s.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)},s.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)},s.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(b){var _=b.rule.symbols[b.dot];return _&&typeof _!="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(b){return this.buildFirstStateStack(b,[])||[b]},this);m.forEach(function(b){var _=b[0],y=_.rule.symbols[_.dot],g=this.getSymbolDisplay(y);d.push("A "+g+" based on:"),this.displayStateStack(b,d)},this)}return d.push(""),d.join(`
|
||
|
`)},s.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}},s.prototype.getSymbolDisplay=function(u){return a(u)},s.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)},s.prototype.save=function(){var u=this.table[this.current];return u.lexerState=this.lexerState,u},s.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()},s.prototype.rewind=function(u){if(!this.options.keepHistory)throw new Error("set option `keepHistory` to enable rewinding");this.restore(this.table[u])},s.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!==s.fail&&u.push(f)}),u.map(function(f){return f.data})};function a(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:s,Grammar:i,Rule:t}})})(ML);var hle=ML.exports,Oc={},NL={},Ru={};Ru.__esModule=void 0;Ru.__esModule=!0;var ple=typeof Object.setPrototypeOf=="function",gle=typeof Object.getPrototypeOf=="function",mle=typeof Object.defineProperty=="function",yle=typeof Object.create=="function",vle=typeof Object.prototype.hasOwnProperty=="function",_le=function(t,n){ple?Object.setPrototypeOf(t,n):t.__proto__=n};Ru.setPrototypeOf=_le;var ble=function(t){return gle?Object.getPrototypeOf(t):t.__proto__||t.prototype};Ru.getPrototypeOf=ble;var WP=!1,Sle=function e(t,n,r){if(mle&&!WP)try{Object.defineProperty(t,n,r)}catch{WP=!0,e(t,n,r)}else t[n]=r.value};Ru.defineProperty=Sle;var DL=function(t,n){return vle?t.hasOwnProperty(t,n):t[n]===void 0};Ru.hasOwnProperty=DL;var wle=function(t,n){if(yle)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)DL(n,o)&&(i[o]=n[o].value);return i};Ru.objectCreate=wle;(function(e){e.__esModule=void 0,e.__esModule=!0;var t=Ru,n=t.setPrototypeOf,r=t.getPrototypeOf,i=t.defineProperty,o=t.objectCreate,s=new Error().toString()==="[object Error]",a="";function l(u){var c=this.constructor,d=c.name||function(){var b=c.toString().match(/^function\s*([^\s(]+)/);return b===null?a||"Error":b[1]}(),f=d==="Error",h=f?a: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 s&&i(p,"toString",{configurable:!0,enumerable:!1,value:function(){return(this.name||"Error")+(typeof this.message>"u"?"":": "+this.message)},writable:!0}),p}a=l.name||"ExtendableError",l.prototype=o(Error.prototype,{constructor:{value:Error,enumerable:!1,writable:!0,configurable:!0}}),e.ExtendableError=l,e.default=e.ExtendableError})(NL);var LL=ut&&ut.__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(
|
||
|
${R}`,F=`,
|
||
|
${R}`);const K=Math.min(O.length,x);let ee=0;for(;ee<K-1;ee++){const ge=C(String(ee),O,P,D,B,R);I+=ge!==void 0?ge:"null",I+=F}const ie=C(String(ee),O,P,D,B,R);if(I+=ie!==void 0?ie:"null",O.length-1>x){const ge=O.length-x-1;I+=`${F}"... ${h(ge)} not stringified"`}return B!==""&&(I+=`
|
||
|
${U}`),P.pop(),`[${I}]`}let V=Object.keys(O);const H=V.length;if(H===0)return"{}";if(w<P.length+1)return'"[Object]"';let Y="",Q="";B!==""&&(R+=B,F=`,
|
||
|
${R}`,Y=" ");const j=Math.min(H,x);S&&!l(O)&&(V=s(V)),P.push(O);for(let K=0;K<j;K++){const ee=V[K],ie=C(ee,O,P,D,B,R);ie!==void 0&&(I+=`${Q}${o(ee)}:${Y}${ie}`,Q=F)}if(H>x){const K=H-x;I+=`${Q}"...":${Y}"${h(K)} not stringified"`,Q=F}return B!==""&&Q.length>1&&(I=`
|
||
|
${R}${I}
|
||
|
${U}`),P.pop(),`{${I}}`}case"number":return isFinite(O)?String(O):y?y(O):"null";case"boolean":return O===!0?"true":"false";case"undefined":return;case"bigint":if(v)return String(O);default:return y?y(O):void 0}}function A(N,E,P,D,B,R){switch(typeof E=="object"&&E!==null&&typeof E.toJSON=="function"&&(E=E.toJSON(N)),typeof E){case"string":return o(E);case"object":{if(E===null)return"null";if(P.indexOf(E)!==-1)return g;const O=R;let I="",F=",";if(Array.isArray(E)){if(E.length===0)return"[]";if(w<P.length+1)return'"[Array]"';P.push(E),B!==""&&(R+=B,I+=`
|
||
|
${R}`,F=`,
|
||
|
${R}`);const H=Math.min(E.length,x);let Y=0;for(;Y<H-1;Y++){const j=A(String(Y),E[Y],P,D,B,R);I+=j!==void 0?j:"null",I+=F}const Q=A(String(Y),E[Y],P,D,B,R);if(I+=Q!==void 0?Q:"null",E.length-1>x){const j=E.length-x-1;I+=`${F}"... ${h(j)} not stringified"`}return B!==""&&(I+=`
|
||
|
${O}`),P.pop(),`[${I}]`}P.push(E);let U="";B!==""&&(R+=B,F=`,
|
||
|
${R}`,U=" ");let V="";for(const H of D){const Y=A(H,E[H],P,D,B,R);Y!==void 0&&(I+=`${V}${o(H)}:${U}${Y}`,V=F)}return B!==""&&V.length>1&&(I=`
|
||
|
${R}${I}
|
||
|
${O}`),P.pop(),`{${I}}`}case"number":return isFinite(E)?String(E):y?y(E):"null";case"boolean":return E===!0?"true":"false";case"undefined":return;case"bigint":if(v)return String(E);default:return y?y(E):void 0}}function T(N,E,P,D,B){switch(typeof E){case"string":return o(E);case"object":{if(E===null)return"null";if(typeof E.toJSON=="function"){if(E=E.toJSON(N),typeof E!="object")return T(N,E,P,D,B);if(E===null)return"null"}if(P.indexOf(E)!==-1)return g;const R=B;if(Array.isArray(E)){if(E.length===0)return"[]";if(w<P.length+1)return'"[Array]"';P.push(E),B+=D;let Y=`
|
||
|
${B}`;const Q=`,
|
||
|
${B}`,j=Math.min(E.length,x);let K=0;for(;K<j-1;K++){const ie=T(String(K),E[K],P,D,B);Y+=ie!==void 0?ie:"null",Y+=Q}const ee=T(String(K),E[K],P,D,B);if(Y+=ee!==void 0?ee:"null",E.length-1>x){const ie=E.length-x-1;Y+=`${Q}"... ${h(ie)} not stringified"`}return Y+=`
|
||
|
${R}`,P.pop(),`[${Y}]`}let O=Object.keys(E);const I=O.length;if(I===0)return"{}";if(w<P.length+1)return'"[Object]"';B+=D;const F=`,
|
||
|
${B}`;let U="",V="",H=Math.min(I,x);l(E)&&(U+=u(E,F,x),O=O.slice(E.length),H-=E.length,V=F),S&&(O=s(O)),P.push(E);for(let Y=0;Y<H;Y++){const Q=O[Y],j=T(Q,E[Q],P,D,B);j!==void 0&&(U+=`${V}${o(Q)}: ${j}`,V=F)}if(I>x){const Y=I-x;U+=`${V}"...": "${h(Y)} not stringified"`,V=F}return V!==""&&(U=`
|
||
|
${B}${U}
|
||
|
${R}`),P.pop(),`{${U}}`}case"number":return isFinite(E)?String(E):y?y(E):"null";case"boolean":return E===!0?"true":"false";case"undefined":return;case"bigint":if(v)return String(E);default:return y?y(E):void 0}}function k(N,E,P){switch(typeof E){case"string":return o(E);case"object":{if(E===null)return"null";if(typeof E.toJSON=="function"){if(E=E.toJSON(N),typeof E!="object")return k(N,E,P);if(E===null)return"null"}if(P.indexOf(E)!==-1)return g;let D="";if(Array.isArray(E)){if(E.length===0)return"[]";if(w<P.length+1)return'"[Array]"';P.push(E);const F=Math.min(E.length,x);let U=0;for(;U<F-1;U++){const H=k(String(U),E[U],P);D+=H!==void 0?H:"null",D+=","}const V=k(String(U),E[U],P);if(D+=V!==void 0?V:"null",E.length-1>x){const H=E.length-x-1;D+=`,"... ${h(H)} not stringified"`}return P.pop(),`[${D}]`}let B=Object.keys(E);const R=B.length;if(R===0)return"{}";if(w<P.length+1)return'"[Object]"';let O="",I=Math.min(R,x);l(E)&&(D+=u(E,",",x),B=B.slice(E.length),I-=E.length,O=","),S&&(B=s(B)),P.push(E);for(let F=0;F<I;F++){const U=B[F],V=k(U,E[U],P);V!==void 0&&(D+=`${O}${o(U)}:${V}`,O=",")}if(R>x){const F=R-x;D+=`${O}"...":"${h(F)} not stringified"`}return P.pop(),`{${D}}`}case"number":return isFinite(E)?String(E):y?y(E):"null";case"boolean":return E===!0?"true":"false";case"undefined":return;case"bigint":if(v)return String(E);default:return y?y(E):void 0}}function L(N,E,P){if(arguments.length>1){let D="";if(typeof P=="number"?D=" ".repeat(Math.min(P,10)):typeof P=="string"&&(D=P.slice(0,10)),E!=null){if(typeof E=="function")return C("",{"":N},[],E,D,"");if(Array.isArray(E))return A("",N,[],p(E),D,"")}if(D.length!==0)return T("",N,[],D,"")}return k("",N,[])}return L}})(kC,kC.exports);var Hle=kC.exports;(function(e){var t=ut&&ut.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(e,"__esModule",{value:!0}),e.createLogger=void 0;const n=Ic,r=Mm,i=VL,o=GL,s=t(PE),a=t(Hle);let l=!1;const u=(0,s.default)(),c=()=>u.ROARR,d=()=>({messageContext:{},transforms:[]}),f=()=>{const g=c().asyncLocalStorage;if(!g)throw new Error("AsyncLocalContext is unavailable.");const v=g.getStore();return v||d()},h=()=>!!c().asyncLocalStorage,p=()=>{if(h()){const g=f();return(0,i.hasOwnProperty)(g,"sequenceRoot")&&(0,i.hasOwnProperty)(g,"sequence")&&typeof g.sequence=="number"?String(g.sequenceRoot)+"."+String(g.sequence++):String(c().sequence++)}return String(c().sequence++)},m=(g,v)=>(S,w,x,C,A,T,k,L,N,E)=>{g.child({logLevel:v})(S,w,x,C,A,T,k,L,N,E)},b=1e3,_=(g,v)=>(S,w,x,C,A,T,k,L,N,E)=>{const P=(0,a.default)({a:S,b:w,c:x,d:C,e:A,f:T,g:k,h:L,i:N,j:E,logLevel:v});if(!P)throw new Error("Expected key to be a string");const D=c().onceLog;D.has(P)||(D.add(P),D.size>b&&D.clear(),g.child({logLevel:v})(S,w,x,C,A,T,k,L,N,E))},y=(g,v={},S=[])=>{const w=(x,C,A,T,k,L,N,E,P,D)=>{const B=Date.now(),R=p();let O;h()?O=f():O=d();let I,F;if(typeof x=="string"?I={...O.messageContext,...v}:I={...O.messageContext,...v,...x},typeof x=="string"&&C===void 0)F=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.");F=(0,o.printf)(x,C,A,T,k,L,N,E,P,D)}else{let V=C;if(typeof C!="string")if(C===void 0)V="";else throw new TypeError("Message must be a string. Received "+typeof C+".");F=(0,o.printf)(V,A,T,k,L,N,E,P,D)}let U={context:I,message:F,sequence:R,time:B,version:n.ROARR_LOG_FORMAT_VERSION};for(const V of[...O.transforms,...S])if(U=V(U),typeof U!="object"||U===null)throw new Error("Message transform function must return a message object.");g(U)};return w.child=x=>{let C;return h()?C=f():C=d(),typeof x=="function"?(0,e.createLogger)(g,{...C.messageContext,...v,...x},[x,...S]):(0,e.createLogger)(g,{...C.messageContext,...v,...x},S)},w.getContext=()=>{let x;return h()?x=f():x=d(),{...x.messageContext,...v}},w.adopt=async(x,C)=>{if(!h())return l===!1&&(l=!
|
||
|
background-color: `.concat(p.backgroundColor,`;
|
||
|
color: `).concat(p.color,`;
|
||
|
font-weight: bold;
|
||
|
`),b=`
|
||
|
color: `.concat(rue[f].color,`;
|
||
|
`),_=`
|
||
|
color: inherit;
|
||
|
`;Object.keys(d).length>0?h("%c ".concat(f," %c").concat(c?" [".concat(String(c),"]:"):"","%c ").concat(a.message," %O"),m,b,_,d):h("%c ".concat(f," %c").concat(c?" [".concat(String(c),"]:"):"","%c ").concat(a.message),m,b,_)}}};B_.createLogWriter=oue;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createLogWriter=void 0;var t=B_;Object.defineProperty(e,"createLogWriter",{enumerable:!0,get:function(){return t.createLogWriter}})})(bL);Im.ROARR.write=bL.createLogWriter();const qL={};Im.Roarr.child(qL);const ib=ku(Im.Roarr.child(qL)),pe=e=>ib.get().child({namespace:e}),zRe=["trace","debug","info","warn","error","fatal"],URe={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},gn=e=>{try{return JSON.parse(JSON.stringify(e))}catch{return"Error parsing object"}},sue=async e=>{const t={},n=await e.arrayBuffer(),r=Zse(n).text,i=Iv(r,"invokeai_metadata");if(i){const s=PD.safeParse(JSON.parse(i));s.success?t.metadata=s.data:pe("system").error({error:gn(s.error)},"Problem reading metadata from image")}const o=Iv(r,"invokeai_workflow");if(o){const s=ND.safeParse(JSON.parse(o));s.success?t.workflow=s.data:pe("system").error({error:gn(s.error)},"Problem reading workflow from image")}return t};var Jv=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,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(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}}},e1=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},aue=Object.defineProperty,lue=Object.defineProperties,uue=Object.getOwnPropertyDescriptors,t1=Object.getOwnPropertySymbols,WL=Object.prototype.hasOwnProperty,KL=Object.prototype.propertyIsEnumerable,ZP=function(e,t,n){return t in e?aue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},mr=function(e,t){for(var n in t||(t={}))WL.call(t,n)&&ZP(e,n,t[n]);if(t1)for(var r=0,i=t1(t);r<i.length;r++){var n=i[r];KL.call(t,n)&&ZP(e,n,t[n])}return e},na=function(e,t){return lue(e,uue(t))},JP=function(e,t){var n={};for(var r in e)WL.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&t1)for(var i=0,o=t1(e);i<o.length;i++){var r=o[i];t.indexOf(r)<0&&KL.call(e,r)&&(n[r]=e[r])}return n},n1=function(e,t,n){return new Promise(function(r,i){var o=function(l){try{a(n.next(l))}catch(u){i(u)}},s=function(l){try{a(n.throw(l))}catch(u){i(u)}},a=function(l){return l.done?r(l.value):Promise.resolve(l.value).then(o,s)};a((n=n.apply(e,t)).next())})},qn;(function(e){e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected"})(qn||(qn={}));function cue(e){return{status:e,isUninitialized:e===qn.uninitialized,isLoading:e===qn.pending,isSuccess:e===qn.fulfilled,isError:e===qn.rejected}}function due(e){return new RegExp("(^|:)//").test(e)}var fue=function(e){return e.replace(/\/$/,"")},hue=function(e){return e.replace(/^\//,"")};function pue(e,t){if(!e)return t;if(!t)return e;if(due(t))return t;var n=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=fue(e),t=hue(t),""+e+n+t}var e6=function(e){return[].concat.apply([],e)};function gue(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigat
|
||
|
Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details.
|
||
|
See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.`)}function h(){typeof process<"u";var v=function(S){return Array.from(S.values()).flatMap(function(w){return w?Object.values(w):[]})};return e1(e1([],v(s)),v(a)).filter(rw)}function p(v,S){return function(w){var x,C=o.endpointDefinitions[v],A=t({queryArgs:S,endpointDefinition:C,endpointName:v});return(x=s.get(w))==null?void 0:x[A]}}function m(v,S){return function(w){var x;return(x=a.get(w))==null?void 0:x[S]}}function b(){return function(v){return Object.values(s.get(v)||{}).filter(rw)}}function _(){return function(v){return Object.values(a.get(v)||{}).filter(rw)}}function y(v,S){var w=function(x,C){var A=C===void 0?{}:C,T=A.subscribe,k=T===void 0?!0:T,L=A.forceRefetch,N=A.subscriptionOptions,E=Pg,P=A[E];return function(D,B){var R,O,I=t({queryArgs:x,endpointDefinition:S,endpointName:v}),F=n((R={type:"query",subscribe:k,forceRefetch:L,subscriptionOptions:N,endpointName:v,originalArgs:x,queryCacheKey:I},R[Pg]=P,R)),U=i.endpoints[v].select(x),V=D(F),H=U(B()),Y=V.requestId,Q=V.abort,j=H.requestId!==Y,K=(O=s.get(D))==null?void 0:O[I],ee=function(){return U(B())},ie=Object.assign(P?V.then(ee):j&&!K?Promise.resolve(H):Promise.all([K,V]).then(ee),{arg:x,requestId:Y,subscriptionOptions:N,queryCacheKey:I,abort:Q,unwrap:function(){return n1(this,null,function(){var ae;return Jv(this,function(dt){switch(dt.label){case 0:return[4,ie];case 1:if(ae=dt.sent(),ae.isError)throw ae.error;return[2,ae.data]}})})},refetch:function(){return D(w(x,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){k&&D(u({queryCacheKey:I,requestId:Y}))},updateSubscriptionOptions:function(ae){ie.subscriptionOptions=ae,D(d({endpointName:v,requestId:Y,queryCacheKey:I,options:ae}))}});if(!K&&!j&&!P){var ge=s.get(D)||{};ge[I]=ie,s.set(D,ge),ie.then(function(){delete ge[I],Object.keys(ge).length||s.delete(D)})}return ie}};return w}function g(v){return function(S,w){var x=w===void 0?{}:w,C=x.track,A=C===void 0?!0:C,T=x.fixedCacheKey;return function(k,L){var N=r({type:"mutation",endpointName:v,originalArgs:S,track:A,fixedCacheKey:T}),E=k(N),P=E.requestId,D=E.abort,B=E.unwrap,R=E.unwrap().then(function(U){return{data:U}}).catch(function(U){return{error:U}}),O=function(){k(c({requestId:P,fixedCacheKey:T}))},I=Object.assign(R,{arg:E.arg,requestId:P,abort:D,unwrap:B,unsubscribe:O,reset:O}),F=a.get(k)||{};return a.set(k,F),F[P]=I,I.then(function(){delete F[P],Object.keys(F).length||a.delete(k)}),T&&(F[T]=I,I.then(function(){F[T]===I&&(delete F[T],Object.keys(F).length||a.delete(k))})),I}}}}function o6(e){return e}function xue(e){var t=this,n=e.reducerPath,r=e.baseQuery,i=e.context.endpointDefinitions,o=e.serializeQueryArgs,s=e.api,a=function(g,v,S){return function(w){var x=i[g];w(s.internalActions.queryResultPatched({queryCacheKey:o({queryArgs:v,endpointDefinition:x,endpointName:g}),patches:S}))}},l=function(g,v,S){return function(w,x){var C,A,T=s.endpoints[g].select(v)(x()),k={patches:[],inversePatches:[],undo:function(){return w(s.util.patchQueryData(g,v,k.inversePatches))}};if(T.status===qn.uninitialized)return k;if("data"in T)if(po(T.data)){var L=Y5(T.data,S),N=L[1],E=L[2];(C=k.patches).push.apply(C,N),(A=k.inversePatches).push.apply(A,E)}else{var P=S(T.data);k.patches.push({op:"replace",path:[],value:P}),k.inversePatches.push({op:"replace",path:[],value:T.data})}return w(s.util.patchQueryData(g,v,k.patches)),k}},u=function(g,v,S){return function(w){var x;return w(s.endpoints[g].initiate(v,(x={subscribe:!1,forceRefetch:!0},x[Pg]=function(){return{data:S}},x)))}},c=function(g,v){return n1(t,[g,v],function(S,w){var x,C,A,T,k,L,N,E,P,D,B,R,O,I,F,U,V,H,Y=w.signal,Q=w.abort,j=w.rejectWithValue,K=w.fulfillWithValue,ee=w.dispatch,ie=w.getState,ge=w.extra;return Jv(this,function(ae){switch(ae.label){case 0:x=i[S.endpointName],ae.label=1;case 1:return ae.trys.push([1,8,,13]),C=o6,A=void 0,T={signal:Y,abort:Q,dispatch:ee,getState:ie,extra:ge,endpoint:S.endpointName,type:S.type,forced:S.type==="query"?d(S,ie()):void 0},k=S.type==="query"?S[Pg]:void 0,k?(A=k(),[3,6]):[3,2];
|
||
|
* @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 jf=M;function zue(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Uue=typeof Object.is=="function"?Object.is:zue,jue=jf.useState,Vue=jf.useEffect,Gue=jf.useLayoutEffect,Hue=jf.useDebugValue;function que(e,t){var n=t(),r=jue({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return Gue(function(){i.value=n,i.getSnapshot=t,iw(i)&&o({inst:i})},[e,n,t]),Vue(function(){return iw(i)&&o({inst:i}),e(function(){iw(i)&&o({inst:i})})},[e]),Hue(n),n}function iw(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Uue(e,n)}catch{return!0}}function Wue(e,t){return t()}var Kue=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Wue:que;r$.useSyncExternalStore=jf.useSyncExternalStore!==void 0?jf.useSyncExternalStore:Kue;n$.exports=r$;var Xue=n$.exports,i$={exports:{}},o$={};/**
|
||
|
* @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 ob=M,Que=Xue;function Yue(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Zue=typeof Object.is=="function"?Object.is:Yue,Jue=Que.useSyncExternalStore,ece=ob.useRef,tce=ob.useEffect,nce=ob.useMemo,rce=ob.useDebugValue;o$.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=ece(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=nce(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),i!==void 0&&s.hasValue){var p=s.value;if(i(p,h))return d=p}return d=h}if(p=d,Zue(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 a=Jue(e,o[0],o[1]);return tce(function(){s.hasValue=!0,s.value=a},[a]),rce(a),a};i$.exports=o$;var s$=i$.exports;const ice=Fc(s$);function oce(e){e()}let a$=oce;const sce=e=>a$=e,ace=()=>a$,h6=Symbol.for("react-redux-context"),p6=typeof globalThis<"u"?globalThis:{};function lce(){var e;if(!M.createContext)return{};const t=(e=p6[h6])!=null?e:p6[h6]=new Map;let n=t.get(M.createContext);return n||(n=M.createContext(null),t.set(M.createContext,n)),n}const mu=lce();function NE(e=mu){return function(){return M.useContext(e)}}const l$=NE(),uce=()=>{throw new Error("uSES not initialized!")};let u$=uce;const cce=e=>{u$=e},dce=(e,t)=>e===t;function fce(e=mu){const t=e===mu?l$:NE(e);return function(r,i={}){const{equalityFn:o=dce,stabilityCheck:s=void 0,noopCheck:a=void 0}=typeof i=="function"?{equalityFn:i}:i,{store:l,subscription:u,getServerState:c,stabilityCheck:d,noopCheck:f}=t();M.useRef(!0);const h=M.useCallback({[r.name](m){return r(m)}}[r.name],[r,d,s]),p=u$(u.addNestedSub,l.getState,c||l.getState,h,o);return M.useDebugValue(p),p}}const c$=fce();function r1(){return r1=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},r1.apply(this,arguments)}var d$={exports:{}},ln={};/** @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 ri=typeof Symbol=="function"&&Symbol.for,DE=ri?Symbol.for("react.element"):60103,LE=ri?Symbol.for("react.portal"):60106,sb=ri?Symbol.for("react.fragment"):60107,ab=ri?Symbol.for("react.strict_mode"):60108,lb=ri?Symbol.for("react.profiler"):60114,ub=ri?Symbol.for("react.provider"):60109,cb=ri?Symbol.for("react.context"):60110,$E=ri?Symbol.for("react.async_mode"):60111,db=ri?Symbol.for("react.concurrent_mode"):60111,fb=ri?Symbol.for("react.forward_ref"):60112,hb=ri?Symbol.for("react.suspense"):60113,hce=ri?Symbol.for("react.suspense_list"):60120,pb=ri?Symbol.for("react.memo"):60115,gb=ri?Symbol.for("react.lazy"):60116,pce=ri?Symbol.for("react.block"):60121,gce=ri?Symbol.for("react.fundamental"):60117,mce=ri?Symbol.for("react.responder"):60118,yce=ri?Symbol.for("react.scope"):60119;function Fo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case DE:switch(e=e.type,e){case $E:case db:case sb:case lb:case ab:case hb:return e;default:switch(e=e&&e.$$typeof,e){case cb:case fb:case gb:case pb:case ub:return e;default:return t}}case LE:return t}}}function f$(e){return Fo(e)===db}ln.AsyncMode=$E;ln.ConcurrentMode=db;ln.ContextConsumer=cb;ln.ContextProvider=ub;ln.Element=DE;ln.ForwardRef=fb;ln.Fragment=sb;ln.Lazy=gb;ln.Memo=pb;ln.Portal=LE;ln.Profiler=lb;ln.StrictMode=ab;ln.Suspense=hb;ln.isAsyncMode=function(e){return f$(e)||Fo(e)===$E};ln.isConcurrentMode=f$;ln.isContextConsumer=function(e){return Fo(e)===cb};ln.isContextProvider=function(e){return Fo(e)===ub};ln.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===DE};ln.isForwardRef=function(e){return Fo(e)===fb};ln.isFragment=function(e){return Fo(e)===sb};ln.isLazy=function(e){return Fo(e)===gb};ln.isMemo=function(e){return Fo(e)===pb};ln.isPortal=function(e){return Fo(e)===LE};ln.isProfiler=function(e){return Fo(e)===lb};ln.isStrictMode=function(e){return Fo(e)===ab};ln.isSuspense=function(e){return Fo(e)===hb};ln.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===sb||e===db||e===lb||e===ab||e===hb||e===hce||typeof e=="object"&&e!==null&&(e.$$typeof===gb||e.$$typeof===pb||e.$$typeof===ub||e.$$typeof===cb||e.$$typeof===fb||e.$$typeof===gce||e.$$typeof===mce||e.$$typeof===yce||e.$$typeof===pce)};ln.typeOf=Fo;d$.exports=ln;var vce=d$.exports,h$=vce,_ce={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},bce={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},p$={};p$[h$.ForwardRef]=_ce;p$[h$.Memo]=bce;var vn={};/**
|
||
|
* @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 FE=Symbol.for("react.element"),BE=Symbol.for("react.portal"),mb=Symbol.for("react.fragment"),yb=Symbol.for("react.strict_mode"),vb=Symbol.for("react.profiler"),_b=Symbol.for("react.provider"),bb=Symbol.for("react.context"),Sce=Symbol.for("react.server_context"),Sb=Symbol.for("react.forward_ref"),wb=Symbol.for("react.suspense"),xb=Symbol.for("react.suspense_list"),Cb=Symbol.for("react.memo"),Eb=Symbol.for("react.lazy"),wce=Symbol.for("react.offscreen"),g$;g$=Symbol.for("react.module.reference");function os(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case FE:switch(e=e.type,e){case mb:case vb:case yb:case wb:case xb:return e;default:switch(e=e&&e.$$typeof,e){case Sce:case bb:case Sb:case Eb:case Cb:case _b:return e;default:return t}}case BE:return t}}}vn.ContextConsumer=bb;vn.ContextProvider=_b;vn.Element=FE;vn.ForwardRef=Sb;vn.Fragment=mb;vn.Lazy=Eb;vn.Memo=Cb;vn.Portal=BE;vn.Profiler=vb;vn.StrictMode=yb;vn.Suspense=wb;vn.SuspenseList=xb;vn.isAsyncMode=function(){return!1};vn.isConcurrentMode=function(){return!1};vn.isContextConsumer=function(e){return os(e)===bb};vn.isContextProvider=function(e){return os(e)===_b};vn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===FE};vn.isForwardRef=function(e){return os(e)===Sb};vn.isFragment=function(e){return os(e)===mb};vn.isLazy=function(e){return os(e)===Eb};vn.isMemo=function(e){return os(e)===Cb};vn.isPortal=function(e){return os(e)===BE};vn.isProfiler=function(e){return os(e)===vb};vn.isStrictMode=function(e){return os(e)===yb};vn.isSuspense=function(e){return os(e)===wb};vn.isSuspenseList=function(e){return os(e)===xb};vn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===mb||e===vb||e===yb||e===wb||e===xb||e===wce||typeof e=="object"&&e!==null&&(e.$$typeof===Eb||e.$$typeof===Cb||e.$$typeof===_b||e.$$typeof===bb||e.$$typeof===Sb||e.$$typeof===g$||e.getModuleId!==void 0)};vn.typeOf=os;function xce(){const e=ace();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 g6={notify(){},get:()=>[]};function Cce(e,t){let n,r=g6;function i(d){return l(),r.subscribe(d)}function o(){r.notify()}function s(){c.onStateChange&&c.onStateChange()}function a(){return!!n}function l(){n||(n=t?t.addNestedSub(s):e.subscribe(s),r=xce())}function u(){n&&(n(),n=void 0,r.clear(),r=g6)}const c={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:s,isSubscribed:a,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>r};return c}const Ece=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Tce=Ece?M.useLayoutEffect:M.useEffect;function m6(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function i1(e,t){if(m6(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])||!m6(e[n[i]],t[n[i]]))return!1;return!0}function Ace({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",noopCheck:o="once"}){const s=M.useMemo(()=>{const u=Cce(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,noopCheck:o}},[e,r,i,o]),a=M.useMemo(()=>e.getState(),[e]);Tce(()=>{const{subscription:u}=s;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),a!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[s,a]);const l=t||mu;return M.createElement(l.Provider,{value:s},n)}function m$(e=mu){const t=e===mu?l$:NE(e);return function(){const{store:r}=t();return r}}const y$=m$();function kce(e=mu){const t=e===mu?y$:m$(e);return function(){return t().dispatch}}const v$=kce();cce(s$.useSyncExternalStoreWithSelector);sce(ws.unstable_batchedUpdates);var Pce=globalThis&&global
|
||
|
${u.loc.join(".")}`,{length:128}),duration:i}))});return}}else(s=n.payload)!=null&&s.error&&(r=(a=n.payload)==null?void 0:a.error);t.toastQueue.push(ia({title:Cp("toast.serverError"),status:"error",description:D2(Iv(r,"detail","Unknown Error"),{length:128}),duration:i}))}),e.addMatcher(Nye,(t,n)=>{t.isProcessing=!1,t.isCancelable=!0,t.currentStatusHasSteps=!1,t.currentStep=0,t.totalSteps=0,t.statusTranslationKey="common.statusError",t.progressImage=null,t.toastQueue.push(ia({title:Cp("toast.serverError"),status:"error",description:Yee(n.payload.data.error_type)}))})}}),{setIsProcessing:u9e,setShouldConfirmOnDelete:c9e,setCurrentStatus:d9e,setIsCancelable:f9e,setEnableImageDebugging:h9e,addToast:Bn,clearToastQueue:p9e,cancelScheduled:g9e,scheduledCancelAborted:m9e,cancelTypeChanged:y9e,subscribedNodeIdsSet:v9e,consoleLogLevelChanged:_9e,shouldLogToConsoleChanged:b9e,isPersistedChanged:S9e,shouldAntialiasProgressImageChanged:w9e,languageChanged:x9e,progressImageSet:Rye,shouldUseNSFWCheckerChanged:Oye,shouldUseWatermarkerChanged:Iye}=NB.actions,Mye=NB.reducer,Nye=is(Tb,V$,H$),Dye={searchFolder:null,advancedAddScanModel:null},DB=tr({name:"modelmanager",initialState:Dye,reducers:{setSearchFolder:(e,t)=>{e.searchFolder=t.payload},setAdvancedAddScanModel:(e,t)=>{e.advancedAddScanModel=t.payload}}}),{setSearchFolder:C9e,setAdvancedAddScanModel:E9e}=DB.actions,Lye=DB.reducer,LB={shift:!1,ctrl:!1,meta:!1},$B=tr({name:"hotkeys",initialState:LB,reducers:{shiftKeyPressed:(e,t)=>{e.shift=t.payload},ctrlKeyPressed:(e,t)=>{e.ctrl=t.payload},metaKeyPressed:(e,t)=>{e.meta=t.payload}}}),{shiftKeyPressed:T9e,ctrlKeyPressed:A9e,metaKeyPressed:k9e}=$B.actions,$ye=$B.reducer,FB=["txt2img","img2img","unifiedCanvas","nodes","modelManager","batch"],k8=(e,t)=>{typeof t=="number"?e.activeTab=t:e.activeTab=FB.indexOf(t)},BB={activeTab:0,shouldShowImageDetails:!1,shouldUseCanvasBetaLayout:!1,shouldShowExistingModelsInSearch:!1,shouldUseSliders:!1,shouldHidePreview:!1,shouldShowProgressInViewer:!0,shouldShowEmbeddingPicker:!1,shouldAutoChangeDimensions:!1,favoriteSchedulers:[],globalContextMenuCloseTrigger:0,panels:{}},zB=tr({name:"ui",initialState:BB,reducers:{setActiveTab:(e,t)=>{k8(e,t.payload)},setShouldShowImageDetails:(e,t)=>{e.shouldShowImageDetails=t.payload},setShouldUseCanvasBetaLayout:(e,t)=>{e.shouldUseCanvasBetaLayout=t.payload},setShouldHidePreview:(e,t)=>{e.shouldHidePreview=t.payload},setShouldShowExistingModelsInSearch:(e,t)=>{e.shouldShowExistingModelsInSearch=t.payload},setShouldUseSliders:(e,t)=>{e.shouldUseSliders=t.payload},setShouldShowProgressInViewer:(e,t)=>{e.shouldShowProgressInViewer=t.payload},favoriteSchedulersChanged:(e,t)=>{e.favoriteSchedulers=t.payload},toggleEmbeddingPicker:e=>{e.shouldShowEmbeddingPicker=!e.shouldShowEmbeddingPicker},setShouldAutoChangeDimensions:(e,t)=>{e.shouldAutoChangeDimensions=t.payload},contextMenusClosed:e=>{e.globalContextMenuCloseTrigger+=1},panelsChanged:(e,t)=>{e.panels[t.payload.name]=t.payload.value}},extraReducers(e){e.addCase(N_,t=>{k8(t,"img2img")})}}),{setActiveTab:UB,setShouldShowImageDetails:P9e,setShouldUseCanvasBetaLayout:R9e,setShouldShowExistingModelsInSearch:O9e,setShouldUseSliders:I9e,setShouldHidePreview:M9e,setShouldShowProgressInViewer:N9e,favoriteSchedulersChanged:D9e,toggleEmbeddingPicker:L9e,setShouldAutoChangeDimensions:$9e,contextMenusClosed:F9e,panelsChanged:B9e}=zB.actions,Fye=zB.reducer,Bye=Q1(xq);jB=YC=void 0;var zye=Bye,Uye=function(){var t=[],n=[],r=void 0,i=function(u){return r=u,function(c){return function(d){return zye.compose.apply(void 0,n)(c)(d)}}},o=function(){for(var u,c,d=arguments.length,f=Array(d),h=0;h<d;h++)f[h]=arguments[h];(u=n).push.apply(u,f.map(function(p){return p(r)})),(c=t).push.apply(c,f)},s=function(u){var c=t.findIndex(function(d){return d===u});if(c===-1){console.error("Middleware does not exist!",u);return}t=t.filter(function(d,f){return f!==c}),n=n.filter(function(d,f){return f!==c})},a=function(){n=[],t=[]};return{enhancer:i,addMiddleware:o,removeMiddleware:s,resetMiddlewares:a}},Db=Uye(),jye=Db.enhancer,Vye=Db.addM
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zye(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,a=[],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)&&(a.push(r.value),a.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}function Jye(e){if(Array.isArray(e))return e}function bw(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=GB(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,s=!1,a;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(s)throw a}}}}function GB(e,t){if(e){if(typeof e=="string")return R8(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 R8(e,t)}}function R8(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 x1(e){"@babel/helpers - typeof";return x1=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},x1(e)}var O8=function(t){var n;return(n=Object.prototype.toString.call(t).match(/\[object (.*)\]/))===null||n===void 0?void 0:n[1]},I8=function(t){return/^\[object (?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)Array\]$/.test(Object.prototype.toString.call(t))},e0e=function e(t,n){if(t===n)return!0;if(x1(t)!=="object"||x1(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(I8(t)&&I8(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=O8(t),s=O8(n);if(o==="DataView"&&s==="DataView")return t.byteLength!==n.byteLength||t.byteOffset!==n.byteOffset?!1:e(t.buffer,n.buffer);if(o==="ArrayBuffer"&&s==="ArrayBuffer")return t.byteLength!==n.byteLength?!1:e(new Uint8Array(t),new Uint8Array(n));if(o==="Map"&&s==="Map"){if(t.size!==n.size)return!1;var a=bw(t.entries()),l;try{for(a.s();!(l=a.n()).done;){var u=_w(l.value,1),c=u[0];if(!n.has(c))return!1}}catch(C){a.e(C)}finally{a.f()}var d=bw(t.entries()),f;try{for(d.s();!(f=d.n()).done;){var h=_w(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"&&s==="Set"){if(t.size!==n.size)return!1;var b=bw(t.entries()),_;try{for(b.s();!(_=b.n()).done;){var y=_w(_.value,1),g=y[0];if(!n.has(g))return!1}}catch(C){b.e(C)}finally{b.f()}return!0}if(o==="Date"&&s==="Date")return+t==+n;var v=Object.keys(t);if(v.length!==Object.keys(n).length)return!1;for(var S=v.length;S--!==0;)if(!Object.prototype.hasOwnProperty.call(n,v[S]))return!1;for(var w=v.length;w--!==0;){var x=v[w];if(!e(t[x],n[x]))return!1}return o!=="Object"&&s!=="Object"?t===n:!0};const gT=e0e;function M8(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(u){n(u);return}a.done?t(l):Promise.resolve(l).then(r,i)}function HB(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function s(l){M8(o,r,i,s,a,"next",l)}function a(l){M8(o,r,i,s,a,"throw",l)}s(void 0)})}}var t0e=function(){var e=HB(function*(t,n,r){var i=r.prefix,o=r.driver,s=r.serialize;if(!gT(t,n))return o.setItem("".concat(i,"rootState"),s(t,"rootState"))});return function(n,r,i){return e.apply(this,arguments)}}(),n0e=function(t,n,r){var i=r.prefix,o=r.driver,s=r.serialize;return Promise.all(Object.keys(t).map(function(a){return gT(t[a],n[a])?Promise.resolve():o.setItem("".concat(i).concat(a),s(t[a],a))}))},r0e=function(){var e=HB(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,s=r.persistWholeStore,a=r.serialize;try{var l=s?t0e:n0e;yield l(t,n,{prefix:i,driver:o,serialize:a})}catch(u){console.warn("redux-remember: persist error",u)}});return function(){return e.apply(this,arguments)}}();function N8(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(u){n(u);return}a.done?t(l):Promise.resolve(l).then(r,i)}
|
||
|
`),n=+this.fontSize(),r=0,i=this.lineHeight()*n,o=this.attrs.width,s=this.attrs.height,a=o!==wd&&o!==void 0,l=s!==wd&&s!==void 0,u=this.padding(),c=o-u*2,d=s-u*2,f=0,h=this.wrap(),p=h!==J8,m=h!==G1e&&p,b=this.ellipsis();this.textArr=[],kw().font=this._getContextFont();for(var _=b?this._getTextWidth(Aw):0,y=0,g=t.length;y<g;++y){var v=t[y],S=this._getTextWidth(v);if(a&&S>c)for(;v.length>0;){for(var w=0,x=v.length,C="",A=0;w<x;){var T=w+x>>>1,k=v.slice(0,T+1),L=this._getTextWidth(k)+_;L<=c?(w=T+1,C=k,A=L):x=T}if(C){if(m){var N,E=v[C.length],P=E===Qy||E===Y8;P&&A<=c?N=C.length:N=Math.max(C.lastIndexOf(Qy),C.lastIndexOf(Y8))+1,N>0&&(w=N,C=C.slice(0,w),A=this._getTextWidth(C))}C=C.trimRight(),this._addTextLine(C),r=Math.max(r,A),f+=i;var D=this._shouldHandleEllipsis(f);if(D){this._tryToAddEllipsisToLastLine();break}if(v=v.slice(w),v=v.trimLeft(),v.length>0&&(S=this._getTextWidth(v),S<=c)){this._addTextLine(v),f+=i,r=Math.max(r,S);break}}else break}else this._addTextLine(v),f+=i,r=Math.max(r,S),this._shouldHandleEllipsis(f)&&y<g-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),l&&f+i>d)break}this.textHeight=n,this.textWidth=r}_shouldHandleEllipsis(t){var n=+this.fontSize(),r=this.lineHeight()*n,i=this.attrs.height,o=i!==wd&&i!==void 0,s=this.padding(),a=i-s*2,l=this.wrap(),u=l!==J8;return!u||o&&t+r>a}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,n=t!==wd&&t!==void 0,r=this.padding(),i=t-r*2,o=this.ellipsis(),s=this.textArr[this.textArr.length-1];if(!(!s||!o)){if(n){var a=this._getTextWidth(s.text+Aw)<i;a||(s.text=s.text.slice(0,s.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(s.text+Aw)}}getStrokeScaleEnabled(){return!0}};Dc.Text=_r;_r.prototype._fillFunc=W1e;_r.prototype._strokeFunc=K1e;_r.prototype.className=F1e;_r.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];(0,M1e._registerNode)(_r);Zi.Factory.overWriteSetter(_r,"width",(0,Nu.getNumberOrAutoValidator)());Zi.Factory.overWriteSetter(_r,"height",(0,Nu.getNumberOrAutoValidator)());Zi.Factory.addGetterSetter(_r,"fontFamily","Arial");Zi.Factory.addGetterSetter(_r,"fontSize",12,(0,Nu.getNumberValidator)());Zi.Factory.addGetterSetter(_r,"fontStyle",wz);Zi.Factory.addGetterSetter(_r,"fontVariant",wz);Zi.Factory.addGetterSetter(_r,"padding",0,(0,Nu.getNumberValidator)());Zi.Factory.addGetterSetter(_r,"align",Sz);Zi.Factory.addGetterSetter(_r,"verticalAlign",B1e);Zi.Factory.addGetterSetter(_r,"lineHeight",1,(0,Nu.getNumberValidator)());Zi.Factory.addGetterSetter(_r,"wrap",V1e);Zi.Factory.addGetterSetter(_r,"ellipsis",!1,(0,Nu.getBooleanValidator)());Zi.Factory.addGetterSetter(_r,"letterSpacing",0,(0,Nu.getNumberValidator)());Zi.Factory.addGetterSetter(_r,"text","",(0,Nu.getStringValidator)());Zi.Factory.addGetterSetter(_r,"textDecoration","");var oS={};Object.defineProperty(oS,"__esModule",{value:!0});oS.TextPath=void 0;const Pw=or,zs=Ct,Q1e=Ur,jh=hh,Rw=Dc,Cz=He,Y1e=Tt;var Z1e="",Ez="normal";function Tz(e){e.fillText(this.partialText,0,0)}function Az(e){e.strokeText(this.partialText,0,0)}class jr extends Q1e.Shape{constructor(t){super(t),this.dummyCanvas=Pw.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 jh.Path.getPathLength(this.dataArray)}_getPointAtLength(t){if(!this.attrs.data)return null;const n=this.pathLength;return t-1>n?null:jh.Path.getPointAtLengthOfDataArray(t,this.dataArray)}_readDataAttribute(){this.dataArray=jh.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=
|
||
|
[data-motion-pop-id="${n}"] {
|
||
|
position: absolute !important;
|
||
|
width: ${o}px !important;
|
||
|
height: ${s}px !important;
|
||
|
top: ${a}px !important;
|
||
|
left: ${l}px !important;
|
||
|
}
|
||
|
`),()=>{document.head.removeChild(u)}},[t]),M.createElement(NAe,{isPresent:t,childRef:r,sizeRef:i},M.cloneElement(e,{ref:r}))}const Qw=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s})=>{const a=XU(LAe),l=M.useId(),u=M.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:c=>{a.set(c,!0);for(const d of a.values())if(!d)return;r&&r()},register:c=>(a.set(c,!1),()=>a.delete(c))}),o?void 0:[n]);return M.useMemo(()=>{a.forEach((c,d)=>a.set(d,!1))},[n]),M.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=M.createElement(DAe,{isPresent:n},e)),M.createElement(Gm.Provider,{value:u},e)};function LAe(){return new Map}function $Ae(e){return M.useEffect(()=>()=>e(),[])}const Od=e=>e.key||"";function FAe(e,t){e.forEach(n=>{const r=Od(n);t.set(r,n)})}function BAe(e){const t=[];return M.Children.forEach(e,n=>{M.isValidElement(n)&&t.push(n)}),t}const zAe=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:s="sync"})=>{const a=M.useContext(s4).forceRender||MAe()[0],l=Jj(),u=BAe(e);let c=u;const d=M.useRef(new Map).current,f=M.useRef(c),h=M.useRef(new Map).current,p=M.useRef(!0);if(r4(()=>{p.current=!1,FAe(u,h),f.current=c}),$Ae(()=>{p.current=!0,h.clear(),d.clear()}),p.current)return M.createElement(M.Fragment,null,c.map(y=>M.createElement(Qw,{key:Od(y),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:s},y)));c=[...c];const m=f.current.map(Od),b=u.map(Od),_=m.length;for(let y=0;y<_;y++){const g=m[y];b.indexOf(g)===-1&&!d.has(g)&&d.set(g,void 0)}return s==="wait"&&d.size&&(c=[]),d.forEach((y,g)=>{if(b.indexOf(g)!==-1)return;const v=h.get(g);if(!v)return;const S=m.indexOf(g);let w=y;if(!w){const x=()=>{h.delete(g),d.delete(g);const C=f.current.findIndex(A=>A.key===g);if(f.current.splice(C,1),!d.size){if(f.current=u,l.current===!1)return;a(),r&&r()}};w=M.createElement(Qw,{key:Od(v),isPresent:!1,onExitComplete:x,custom:t,presenceAffectsLayout:o,mode:s},v),d.set(g,w)}c.splice(S,0,w)}),c=c.map(y=>{const g=y.key;return d.has(g)?y:M.createElement(Qw,{key:Od(y),isPresent:!0,presenceAffectsLayout:o,mode:s},y)}),M.createElement(M.Fragment,null,d.size?c:c.map(y=>M.cloneElement(y)))};var UAe=kCe({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),eV=Fu((e,t)=>{const n=n4("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:s="transparent",className:a,...l}=t4(e),u=YT("chakra-spinner",a),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:s,borderLeftColor:s,animation:`${UAe} ${o} linear infinite`,...n};return Z.jsx(bu.div,{ref:t,__css:c,className:u,...l,children:r&&Z.jsx(bu.span,{srOnly:!0,children:r})})});eV.displayName="Spinner";var z3=Fu(function(t,n){const{htmlWidth:r,htmlHeight:i,alt:o,...s}=t;return Z.jsx("img",{width:r,height:i,ref:n,alt:o,...s})});z3.displayName="NativeImage";function jAe(e){const{loading:t,src:n,srcSet:r,onLoad:i,onError:o,crossOrigin:s,sizes:a,ignoreFallback:l}=e,[u,c]=M.useState("pending");M.useEffect(()=>{c(n?"loading":"pending")},[n]);const d=M.useRef(),f=M.useCallback(()=>{if(!n)return;h();const p=new Image;p.src=n,s&&(p.crossOrigin=s),r&&(p.srcset=r),a&&(p.sizes=a),t&&(p.loading=t),p.onload=m=>{h(),c("loaded"),i==null||i(m)},p.onerror=m=>{h(),c("failed"),o==null||o(m)},d.current=p},[n,s,r,a,i,o,t]),h=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)};return PCe(()=>{if(!l)return u==="loading"&&f(),()=>{h()}},[u,f,l]),l?"loaded":u}var VAe=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError";function GAe(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}var C4=Fu(function(t,n){const{fallbackSrc:r,fallback:i,src:o,srcSet:s,align:a,fit:l,loading:u,ignoreFallback:c,crossOrigin:d,fallbackStrategy:f="beforeLoadOrError",referrerPolicy:h,...p}=t,m=r!==void 0||i!==void 0,b=u!=null||c||!m,_=jAe({...t,crossOrigin:d,ignoreFallback:b}),y=VAe(_,f),g={ref:n,objectFit:l,objectPosition:a,...b?p:GAe(p,["
|
||
|
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.
|
||
|
`},Pke={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 Rke(e){let{announcements:t=Pke,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=kke}=e;const{announce:o,announcement:s}=Eke(),a=XS("DndLiveRegion"),[l,u]=M.useState(!1);if(M.useEffect(()=>{u(!0)},[]),Tke(M.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=yn.createElement(yn.Fragment,null,yn.createElement(wke,{id:r,value:i.draggable}),yn.createElement(Cke,{id:a,announcement:s}));return n?ws.createPortal(c,n):c}var $r;(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"})($r||($r={}));function K1(){}function vI(e,t){return M.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function Oke(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return M.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const Ls=Object.freeze({x:0,y:0});function Ike(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Mke(e,t){const n=tm(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 Nke(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Dke(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function Lke(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 $ke(e,t){if(!e||e.length===0)return null;const[n]=e;return t?n[t]:n}function Fke(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),s=i-r,a=o-n;if(r<i&&n<o){const l=t.width*t.height,u=e.width*e.height,c=s*a,d=c/(l+u-c);return Number(d.toFixed(4))}return 0}const Bke=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const o of r){const{id:s}=o,a=n.get(s);if(a){const l=Fke(a,t);l>0&&i.push({id:s,data:{droppableContainer:o,value:l}})}}return i.sort(Dke)};function zke(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 Uke=e=>{let{droppableContainers:t,droppableRects:n,pointerCoordinates:r}=e;if(!r)return[];const i=[];for(const o of t){const{id:s}=o,a=n.get(s);if(a&&zke(r,a)){const u=Lke(a).reduce((d,f)=>d+Ike(r,f),0),c=Number((u/4).toFixed(4));i.push({id:s,data:{droppableContainer:o,value:c}})}}return i.sort(Nke)};function jke(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function fV(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Ls}function Vke(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((s,a)=>({...s,top:s.top+e*a.y,bottom:s.bottom+e*a.y,left:s.left+e*a.x,right:s.right+e*a.x}),{...n})}}const Gke=Vke(1);function hV(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 Hke(e,t,n){const r=hV(t);if(!r)return e;const{scaleX:i,scaleY:o,x:s,y:a}=r,l=e.left-s-(1-i)*parseFloat
|