InvokeAI/invokeai/frontend/web/dist/assets/index-221b61a5.js

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

129 lines
1.3 MiB
JavaScript
Raw Normal View History

2023-09-06 21:16:01 +00:00
var SV=Object.defineProperty;var wV=(e,t,n)=>t in e?SV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var XS=(e,t,n)=>(wV(e,typeof t!="symbol"?t+"":t,n),n);function TI(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 Dc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function K1(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 AI={exports:{}},X1={},kI={exports:{}},Ot={};/**
* @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 nm=Symbol.for("react.element"),xV=Symbol.for("react.portal"),CV=Symbol.for("react.fragment"),EV=Symbol.for("react.strict_mode"),TV=Symbol.for("react.profiler"),AV=Symbol.for("react.provider"),kV=Symbol.for("react.context"),PV=Symbol.for("react.forward_ref"),RV=Symbol.for("react.suspense"),OV=Symbol.for("react.memo"),IV=Symbol.for("react.lazy"),O4=Symbol.iterator;function MV(e){return e===null||typeof e!="object"?null:(e=O4&&e[O4]||e["@@iterator"],typeof e=="function"?e:null)}var PI={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},RI=Object.assign,OI={};function Kf(e,t,n){this.props=e,this.context=t,this.refs=OI,this.updater=n||PI}Kf.prototype.isReactComponent={};Kf.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")};Kf.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function II(){}II.prototype=Kf.prototype;function q3(e,t,n){this.props=e,this.context=t,this.refs=OI,this.updater=n||PI}var W3=q3.prototype=new II;W3.constructor=q3;RI(W3,Kf.prototype);W3.isPureReactComponent=!0;var I4=Array.isArray,MI=Object.prototype.hasOwnProperty,K3={current:null},NI={key:!0,ref:!0,__self:!0,__source:!0};function DI(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)MI.call(t,r)&&!NI.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:nm,type:e,key:o,ref:s,props:i,_owner:K3.current}}function NV(e,t){return{$$typeof:nm,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function X3(e){return typeof e=="object"&&e!==null&&e.$$typeof===nm}function DV(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var M4=/\/+/g;function QS(e,t){return typeof e=="object"&&e!==null&&e.key!=null?DV(""+e.key):t.toString(36)}function h0(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 nm:case xV:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+QS(s,0):r,I4(i)?(n="",e!=null&&(n=e.replace(M4,"$&/")+"/"),h0(i,t,n,"",function(u){return u})):i!=null&&(X3(i)&&(i=NV(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(M4,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",I4(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+QS(o,a);s+=h0(o,t,n,l,i)}else if(l=MV(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+QS(o,a++),s+=h0(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 Zm(e,t,n){if(e==null)return e;var r=[],i=0;return h0(e,r,"","",function(o){return t.call(n,o,i++)}),r}function LV(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},p0={transition:null},$V={ReactCurrentDispatcher:Qi,ReactCurrentBatchConfig:p0,ReactCurrentOwner:K3};Ot.Children={map:Zm,forEach:function(e,t,n){Zm(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Zm(e,function(){t++}),t},toArray:function(e){return Zm(e,function(t){return t})||[]},only:function(e){if(!X3(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ot.Component=Kf;Ot.Fragment=CV;Ot.Profiler=TV;Ot
* @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 FV=M,BV=Symbol.for("react.element"),zV=Symbol.for("react.fragment"),UV=Object.prototype.hasOwnProperty,jV=FV.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,VV={key:!0,ref:!0,__self:!0,__source:!0};function LI(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)UV.call(t,r)&&!VV.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:BV,type:e,key:o,ref:s,props:i,_owner:jV.current}}X1.Fragment=zV;X1.jsx=LI;X1.jsxs=LI;AI.exports=X1;var Z=AI.exports,Zw={},$I={exports:{}},Do={},FI={exports:{}},BI={};/**
* @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,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(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 y(R){if(m=!1,g(R),!p)if(n(l)!==null)p=!0,D(S);else{var O=n(u);O!==null&&B(y,O.startTime-R)}}function S(R,O){p=!1,m&&(m=!1,_(E),E=-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(y,H.startTime-O),V=!1}return V}finally{d=null,f=I,h=!1}}var w=!1,x=null,E=-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 v=="function")N=function(){v(L)};else if(typeof MessageChannel<"u"){var C=new MessageChannel,P=C.port2;C.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){E=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?(_(E),E=-1):m=!0,B(y,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}}}})(BI);FI.exports=BI;var GV=FI.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 zI=M,Ro=GV;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 UI=new Set,Op={};function Lc(e,t){yf(e,t),yf(e+"Capture",t)}function yf(e,t){for(Op[e]=t,e=0;e<t.length;e++)UI.add(t[e])}var el=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Jw=Object.prototype.hasOwnProperty,HV=/^[: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]*$/,D4={},L4={};function qV(e){return Jw.call(L4,e)?!0:Jw.call(D4,e)?!1:HV.test(e)?L4[e]=!0:(D4[e]=!0,!1)}function WV(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 KV(e,t,n,r){if(t===null||typeof t>"u"||WV(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 bi={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){bi[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];bi[t]=new Yi(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){bi[e]=new Yi(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){bi[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){bi[e]=new Yi(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){bi[e]=new Yi(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){bi[e]=new Yi(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){bi[e]=new Yi(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){bi[e]=new Yi(e,5,!1,e.toLowerCase(),null,!1,!1)});var Q3=/[\-:]([a-z])/g;function Y3(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
`+YS+e}var ZS=!1;function JS(e,t){if(!e||ZS)return"";ZS=!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{ZS=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Kh(e):""}function XV(e){switch(e.tag){case 5:return Kh(e.type);case 16:return Kh("Lazy");case 13:return Kh("Suspense");case 19:return Kh("SuspenseList");case 0:case 2:case 15:return e=JS(e.type,!1),e;case 11:return e=JS(e.type.render,!1),e;case 1:return e=JS(e.type,!0),e;default:return""}}function rx(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 Pd:return"Fragment";case kd:return"Portal";case ex:return"Profiler";case J3:return"StrictMode";case tx:return"Suspense";case nx:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case VI:return(e.displayName||"Context")+".Consumer";case jI:return(e._context.displayName||"Context")+".Provider";case e5:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case t5:return t=e.displayName||null,t!==null?t:rx(e.type)||"Memo";case Tl:t=e._payload,e=e._init;try{return rx(e(t))}catch{}}return null}function QV(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 rx(t);case 8:return t===J3?"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 su(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function HI(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function YV(e){var t=HI(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 ey(e){e._valueTracker||(e._valueTracker=YV(e))}function qI(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=HI(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Z0(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 ix(e,t){var n=t.checked;return rr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function F4(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=su(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 WI(e,t){t=t.checked,t!=null&&Z3(e,"checked",t,!1)}function ox(e,t){WI(e,t);var n=su(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")?sx(e,t.type,n):t.hasOwnProperty("defaultValue")&&sx(e,t.type,su(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function B4(e,t,n){if(t.hasOwnProperty("val
`).replace(aH,"")}function ly(e,t,n){if(t=lA(t),lA(e)!==t&&n)throw Error(oe(425))}function sv(){}var bx=null,Sx=null;function wx(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 xx=typeof setTimeout=="function"?setTimeout:void 0,lH=typeof clearTimeout=="function"?clearTimeout:void 0,uA=typeof Promise=="function"?Promise:void 0,uH=typeof queueMicrotask=="function"?queueMicrotask:typeof uA<"u"?function(e){return uA.resolve(null).then(e).catch(cH)}:xx;function cH(e){setTimeout(function(){throw e})}function f2(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),Lp(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Lp(t)}function Wl(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 cA(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 Qf=Math.random().toString(36).slice(2),Qs="__reactFiber$"+Qf,Up="__reactProps$"+Qf,tl="__reactContainer$"+Qf,Cx="__reactEvents$"+Qf,dH="__reactListeners$"+Qf,fH="__reactHandles$"+Qf;function Zu(e){var t=e[Qs];if(t)return t;for(var n=e.parentNode;n;){if(t=n[tl]||n[Qs]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=cA(e);e!==null;){if(n=e[Qs])return n;e=cA(e)}return t}e=n,n=e.parentNode}return null}function om(e){return e=e[Qs]||e[tl],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Md(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(oe(33))}function e_(e){return e[Up]||null}var Ex=[],Nd=-1;function wu(e){return{current:e}}function zn(e){0>Nd||(e.current=Ex[Nd],Ex[Nd]=null,Nd--)}function Cn(e,t){Nd++,Ex[Nd]=e.current,e.current=t}var au={},$i=wu(au),co=wu(!1),yc=au;function vf(e,t){var n=e.type.contextTypes;if(!n)return au;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 av(){zn(co),zn($i)}function dA(e,t,n){if($i.current!==au)throw Error(oe(168));Cn($i,t),Cn(co,n)}function D9(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,QV(e)||"Unknown",i));return rr({},n,r)}function lv(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||au,yc=$i.current,Cn($i,e),Cn(co,co.current),!0}function fA(e,t,n){var r=e.stateNode;if(!r)throw Error(oe(169));n?(e=D9(e,t,yc),r.__reactInternalMemoizedMergedChildContext=e,zn(co),zn($i),Cn($i,e)):zn(co),Cn(co,n)}var Fa=null,t_=!1,h2=!1;function L9(e){Fa===null?Fa=[e]:Fa.push(e)}function hH(e){t_=!0,L9(e)}function xu(){if(!h2&&Fa!==null){h2=!0;var e=0,t=sn;try{var n=Fa;for(sn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Fa=null,t_=!1}catch(i){throw Fa!==null&&(Fa=Fa.slice(e+1)),a9(r5,xu),i}finally{sn=t,h2=!1}}return null}var Dd=[],Ld=0,uv=null,cv=0,qo=[],Wo=0,vc=null,Va=1,Ga="";function Gu(e,t){Dd[Ld++]=cv,Dd[Ld++]=uv,uv=e,cv=t}function $9(e,t,n){qo[Wo++]=Va,qo[Wo++]=Ga,qo[Wo++]=vc,vc=e;var r=Va;e=Ga;var i=32-Ts(r)-1;r&=~(1<<i),n+=1;var o=32-Ts(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,Va=1<<32-Ts(t)+i|n<<i|r,Ga=o+e}else Va=1<<o|n<<i|r,Ga=e}function f5(e){e.return!==null&&(Gu(e,1),$9(e,1,0))}function h5(e){for(;e===uv;)uv=Dd[--Ld],Dd[Ld]=null,cv=Dd[--Ld],Dd[Ld]=null;for(;e===vc;)vc=qo[--Wo],qo[Wo]=null,Ga=qo[--Wo],qo[Wo]=null,Va=qo[--Wo],qo[Wo]=null}var ko=null,To=null,qn=!1,bs=null;function F9(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 v2(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ox(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var wH=typeof WeakMap=="function"?WeakMap:Map;function fM(e,t,n){n=Wa(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){vv||(vv=!0,Ux=r),Ox(e,t)},n}function hM(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(){Ox(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Ox(e,t),typeof r!="function"&&(Xl===null?Xl=new Set([this]):Xl.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function wA(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new wH;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=LH.bind(null,e,t,n),t.then(e,e))}function xA(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 CA(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,Kl(n,t,1))),n.lanes|=1),e)}var xH=ul.ReactCurrentOwner,so=!1;function Gi(e,t,n,r){t.child=e===null?H9(t,null,n,r):bf(t,e.child,n,r)}function EA(e,t,n,r,i){n=n.render;var o=t.ref;return Qd(t,i),r=C5(e,t,n,r,o,i),n=E5(),e!==null&&!so?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,rl(e,t,i)):(qn&&n&&f5(t),t.flags|=1,Gi(e,t,r,i),t.child)}function TA(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!D5(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,pM(e,t,o,r,i)):(e=C0(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:Fp,n(s,r)&&e.ref===t.ref)return rl(e,t,i)}return t.flags|=1,e=Yl(o,r),e.ref=t.ref,e.return=t,t.child=e}function pM(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Fp(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 Ix(e,t,n,r,i)}function gM(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},Cn(Bd,xo),xo|=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,Cn(Bd,xo),xo|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Cn(Bd,xo),xo|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Cn(Bd,xo),xo|=r;return Gi(e,t,i,n),t.child}function mM(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ix(e,t,n,r,i){var o=fo(n)?yc:$i.current;return o=vf(t,o),Qd(t,i),n=C5(e,t,n,r,o,i),r=E5(),e!==null&&!so?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,rl(e,t,i)):(qn&&r&&f5(t),t.flags|=1,Gi(e,t,n,i),t.child)}function AA(e,t,n,r,i){if(fo(n)){var o=!0;lv(t)}else o=!1;if(Qd(t,i),t.stateNode===null)S0(e,t),V9(t,n,r),Rx(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)?yc:$i.current,u=vf(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)&&vA(t,s,r,u),Al=!1;var f=t.memoizedState;s.state=f,hv(t,r,s,i),l=t.memoizedState,a!==r||f!==l||co.current||Al?(typeof c=="function"&&(Px(t,n,c,r),l=t.memoizedState),(a=Al||yA(t,n,a,r,f,l,u))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.
`&&(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(_,v){return b(this.line-f.length+v+1,m)+" "+_},this).join(`
`),c+=`
`+b("",m+p)+`^
`,c}else return c+" at index "+(this.index-1);function b(_,v){var g=String(_);return Array(v-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,v=h.scannable,g=v.length;g--;){var y=v[g],S=y.rule.symbols[y.dot];if(S.test?S.test(_):S.type?S.type===d.type:S.literal===b){var w=y.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],v=_.rule.symbols[_.dot],g=this.getSymbolDisplay(v);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}})})(dL);var zse=dL.exports,kc={},fL={},ku={};ku.__esModule=void 0;ku.__esModule=!0;var Use=typeof Object.setPrototypeOf=="function",jse=typeof Object.getPrototypeOf=="function",Vse=typeof Object.defineProperty=="function",Gse=typeof Object.create=="function",Hse=typeof Object.prototype.hasOwnProperty=="function",qse=function(t,n){Use?Object.setPrototypeOf(t,n):t.__proto__=n};ku.setPrototypeOf=qse;var Wse=function(t){return jse?Object.getPrototypeOf(t):t.__proto__||t.prototype};ku.getPrototypeOf=Wse;var zP=!1,Kse=function e(t,n,r){if(Vse&&!zP)try{Object.defineProperty(t,n,r)}catch{zP=!0,e(t,n,r)}else t[n]=r.value};ku.defineProperty=Kse;var hL=function(t,n){return Hse?t.hasOwnProperty(t,n):t[n]===void 0};ku.hasOwnProperty=hL;var Xse=function(t,n){if(Gse)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)hL(n,o)&&(i[o]=n[o].value);return i};ku.objectCreate=Xse;(function(e){e.__esModule=void 0,e.__esModule=!0;var t=ku,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})(fL);var pL=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=E(String(ee),O,P,D,B,R);I+=ge!==void 0?ge:"null",I+=F}const ie=E(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=E(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):v?v(O):"null";case"boolean":return O===!0?"true":"false";case"undefined":return;case"bigint":if(y)return String(O);default:return v?v(O):void 0}}function A(N,C,P,D,B,R){switch(typeof C=="object"&&C!==null&&typeof C.toJSON=="function"&&(C=C.toJSON(N)),typeof C){case"string":return o(C);case"object":{if(C===null)return"null";if(P.indexOf(C)!==-1)return g;const O=R;let I="",F=",";if(Array.isArray(C)){if(C.length===0)return"[]";if(w<P.length+1)return'"[Array]"';P.push(C),B!==""&&(R+=B,I+=`
${R}`,F=`,
${R}`);const H=Math.min(C.length,x);let Y=0;for(;Y<H-1;Y++){const j=A(String(Y),C[Y],P,D,B,R);I+=j!==void 0?j:"null",I+=F}const Q=A(String(Y),C[Y],P,D,B,R);if(I+=Q!==void 0?Q:"null",C.length-1>x){const j=C.length-x-1;I+=`${F}"... ${h(j)} not stringified"`}return B!==""&&(I+=`
${O}`),P.pop(),`[${I}]`}P.push(C);let U="";B!==""&&(R+=B,F=`,
${R}`,U=" ");let V="";for(const H of D){const Y=A(H,C[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(C)?String(C):v?v(C):"null";case"boolean":return C===!0?"true":"false";case"undefined":return;case"bigint":if(y)return String(C);default:return v?v(C):void 0}}function T(N,C,P,D,B){switch(typeof C){case"string":return o(C);case"object":{if(C===null)return"null";if(typeof C.toJSON=="function"){if(C=C.toJSON(N),typeof C!="object")return T(N,C,P,D,B);if(C===null)return"null"}if(P.indexOf(C)!==-1)return g;const R=B;if(Array.isArray(C)){if(C.length===0)return"[]";if(w<P.length+1)return'"[Array]"';P.push(C),B+=D;let Y=`
${B}`;const Q=`,
${B}`,j=Math.min(C.length,x);let K=0;for(;K<j-1;K++){const ie=T(String(K),C[K],P,D,B);Y+=ie!==void 0?ie:"null",Y+=Q}const ee=T(String(K),C[K],P,D,B);if(Y+=ee!==void 0?ee:"null",C.length-1>x){const ie=C.length-x-1;Y+=`${Q}"... ${h(ie)} not stringified"`}return Y+=`
${R}`,P.pop(),`[${Y}]`}let O=Object.keys(C);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(C)&&(U+=u(C,F,x),O=O.slice(C.length),H-=C.length,V=F),S&&(O=s(O)),P.push(C);for(let Y=0;Y<H;Y++){const Q=O[Y],j=T(Q,C[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(C)?String(C):v?v(C):"null";case"boolean":return C===!0?"true":"false";case"undefined":return;case"bigint":if(y)return String(C);default:return v?v(C):void 0}}function k(N,C,P){switch(typeof C){case"string":return o(C);case"object":{if(C===null)return"null";if(typeof C.toJSON=="function"){if(C=C.toJSON(N),typeof C!="object")return k(N,C,P);if(C===null)return"null"}if(P.indexOf(C)!==-1)return g;let D="";if(Array.isArray(C)){if(C.length===0)return"[]";if(w<P.length+1)return'"[Array]"';P.push(C);const F=Math.min(C.length,x);let U=0;for(;U<F-1;U++){const H=k(String(U),C[U],P);D+=H!==void 0?H:"null",D+=","}const V=k(String(U),C[U],P);if(D+=V!==void 0?V:"null",C.length-1>x){const H=C.length-x-1;D+=`,"... ${h(H)} not stringified"`}return P.pop(),`[${D}]`}let B=Object.keys(C);const R=B.length;if(R===0)return"{}";if(w<P.length+1)return'"[Object]"';let O="",I=Math.min(R,x);l(C)&&(D+=u(C,",",x),B=B.slice(C.length),I-=C.length,O=","),S&&(B=s(B)),P.push(C);for(let F=0;F<I;F++){const U=B[F],V=k(U,C[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(C)?String(C):v?v(C):"null";case"boolean":return C===!0?"true":"false";case"undefined":return;case"bigint":if(y)return String(C);default:return v?v(C):void 0}}function L(N,C,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)),C!=null){if(typeof C=="function")return E("",{"":N},[],C,D,"");if(Array.isArray(C))return A("",N,[],p(C),D,"")}if(D.length!==0)return T("",N,[],D,"")}return k("",N,[])}return L}})(xC,xC.exports);var vae=xC.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=Pc,r=Om,i=SL,o=wL,s=t(TE),a=t(vae);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 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,E,A,T,k,L,N,C)=>{g.child({logLevel:y})(S,w,x,E,A,T,k,L,N,C)},b=1e3,_=(g,y)=>(S,w,x,E,A,T,k,L,N,C)=>{const P=(0,a.default)({a:S,b:w,c:x,d:E,e:A,f:T,g:k,h:L,i:N,j:C,logLevel:y});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:y})(S,w,x,E,A,T,k,L,N,C))},v=(g,y={},S=[])=>{const w=(x,E,A,T,k,L,N,C,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,...y}:I={...O.messageContext,...y,...x},typeof x=="string"&&E===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,E,A,T,k,L,N,C,P,D)}else{let V=E;if(typeof E!="string")if(E===void 0)V="";else throw new TypeError("Message must be a string. Received "+typeof E+".");F=(0,o.printf)(V,A,T,k,L,N,C,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 E;return h()?E=f():E=d(),typeof x=="function"?(0,e.createLogger)(g,{...E.messageContext,...y,...x},[x,...S]):(0,e.createLogger)(g,{...E.messageContext,...y,...x},S)},w.getContext=()=>{let x;return h()?x=f():x=d(),{...x.messageContext,...y}},w.adopt=async(x,E)=>{if(!h())return l===!1&&(l=!
background-color: `.concat(p.backgroundColor,`;
color: `).concat(p.color,`;
font-weight: bold;
`),b=`
color: `.concat(Rae[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,_)}}};L_.createLogWriter=Iae;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createLogWriter=void 0;var t=L_;Object.defineProperty(e,"createLogWriter",{enumerable:!0,get:function(){return t.createLogWriter}})})(ZD);Rm.ROARR.write=ZD.createLogWriter();const CL={};Rm.Roarr.child(CL);const tb=nh(Rm.Roarr.child(CL)),pe=e=>tb.get().child({namespace:e}),bRe=["trace","debug","info","warn","error","fatal"],SRe={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},pn=e=>{try{return JSON.parse(JSON.stringify(e))}catch{return"Error parsing object"}},EL=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","LatentsCollection","LatentsField","LatentsPolymorphic","LoRAModelField","MainModelField","ONNXModelField","Scheduler","SDXLMainModelField","SDXLRefinerModelField","string","StringCollection","StringPolymorphic","UNetField","VaeField","VaeModelField"]),Mae=z.enum(["WorkflowField","IsIntermediate","MetadataField"]),HP=e=>EL.safeParse(e).success||Mae.safeParse(e).success;z.enum(["connection","direct","any"]);const TL=z.object({id:z.string().trim().min(1),name:z.string().trim().min(1),type:EL}),Nae=TL.extend({fieldKind:z.literal("output")}),mt=TL.extend({fieldKind:z.literal("input"),label:z.string()}),Im=z.object({model_name:z.string().trim().min(1),base_model:th}),Lf=z.object({image_name:z.string().trim().min(1)}),Wv=z.object({latents_name:z.string().trim().min(1),seed:z.number().int().optional()}),Kv=z.object({conditioning_name:z.string().trim().min(1)}),Dae=z.object({mask_name:z.string().trim().min(1),masked_latents_name:z.string().trim().min(1).optional()}),Lae=mt.extend({type:z.literal("integer"),value:z.number().int().optional()}),$ae=mt.extend({type:z.literal("IntegerCollection"),value:z.array(z.number().int()).optional()}),Fae=mt.extend({type:z.literal("IntegerPolymorphic"),value:z.union([z.number().int(),z.array(z.number().int())]).optional()}),Bae=mt.extend({type:z.literal("float"),value:z.number().optional()}),zae=mt.extend({type:z.literal("FloatCollection"),value:z.array(z.number()).optional()}),Uae=mt.extend({type:z.literal("FloatPolymorphic"),value:z.union([z.number(),z.array(z.number())]).optional()}),jae=mt.extend({type:z.literal("string"),value:z.string().optional()}),Vae=mt.extend({type:z.literal("StringCollection"),value:z.array(z.string()).optional()}),Gae=mt.extend({type:z.literal("StringPolymorphic"),value:z.union([z.string(),z.array(z.string())]).optional()}),Hae=mt.extend({type:z.literal("boolean"),value:z.boolean().optional()}),qae=mt.extend({type:z.literal("BooleanCollection"),value:z.array(z.boolean()).optional()}),Wae=mt.extend({type:z.literal("BooleanPolymorphic"),value:z.union([z.boolean(),z.array(z.boolean())]).optional()}),Kae=mt.extend({type:z.literal("enum"),value:z.union([z.string(),z.number()]).optional()}),Xae=mt.extend({type:z.literal("LatentsField"),value:Wv.optional()}),Qae=mt.extend({type:z.literal("LatentsCollection"),value:z.array(Wv).optional()}),Yae=mt.extend({type:z.literal("LatentsPolymorphic"),value:z.union([Wv,z.array(Wv)]).optional()}),Zae=mt.extend({type:z.literal("DenoiseMaskField"),value:Dae.optional()}),Jae=mt.extend({type:z.literal("ConditioningField"),value:Kv.optional()}),ele=mt.extend({type:z.literal("ConditioningCollection"),value:z.array(Kv).optional()}),tle=mt.extend({type:z.literal("ConditioningPolymorphic"),value:z.union([Kv,z.array(Kv)]).optional()}),nle=Im,Tg=z.object({image:Lf,control_model:nle,control
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 Zv(Zv([],y(s)),y(a)).filter(J2)}function p(y,S){return function(w){var x,E=o.endpointDefinitions[y],A=t({queryArgs:S,endpointDefinition:E,endpointName:y});return(x=s.get(w))==null?void 0:x[A]}}function m(y,S){return function(w){var x;return(x=a.get(w))==null?void 0:x[S]}}function b(){return function(y){return Object.values(s.get(y)||{}).filter(J2)}}function _(){return function(y){return Object.values(a.get(y)||{}).filter(J2)}}function v(y,S){var w=function(x,E){var A=E===void 0?{}:E,T=A.subscribe,k=T===void 0?!0:T,L=A.forceRefetch,N=A.subscriptionOptions,C=Ag,P=A[C];return function(D,B){var R,O,I=t({queryArgs:x,endpointDefinition:S,endpointName:y}),F=n((R={type:"query",subscribe:k,forceRefetch:L,subscriptionOptions:N,endpointName:y,originalArgs:x,queryCacheKey:I},R[Ag]=P,R)),U=i.endpoints[y].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 e1(this,null,function(){var ae;return Yv(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:y,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(y){return function(S,w){var x=w===void 0?{}:w,E=x.track,A=E===void 0?!0:E,T=x.fixedCacheKey;return function(k,L){var N=r({type:"mutation",endpointName:y,originalArgs:S,track:A,fixedCacheKey:T}),C=k(N),P=C.requestId,D=C.abort,B=C.unwrap,R=C.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:C.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 n6(e){return e}function sue(e){var t=this,n=e.reducerPath,r=e.baseQuery,i=e.context.endpointDefinitions,o=e.serializeQueryArgs,s=e.api,a=function(g,y,S){return function(w){var x=i[g];w(s.internalActions.queryResultPatched({queryCacheKey:o({queryArgs:y,endpointDefinition:x,endpointName:g}),patches:S}))}},l=function(g,y,S){return function(w,x){var E,A,T=s.endpoints[g].select(y)(x()),k={patches:[],inversePatches:[],undo:function(){return w(s.util.patchQueryData(g,y,k.inversePatches))}};if(T.status===Hn.uninitialized)return k;if("data"in T)if(po(T.data)){var L=W5(T.data,S),N=L[1],C=L[2];(E=k.patches).push.apply(E,N),(A=k.inversePatches).push.apply(A,C)}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,y,k.patches)),k}},u=function(g,y,S){return function(w){var x;return w(s.endpoints[g].initiate(y,(x={subscribe:!1,forceRefetch:!0},x[Ag]=function(){return{data:S}},x)))}},c=function(g,y){return e1(t,[g,y],function(S,w){var x,E,A,T,k,L,N,C,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 Yv(this,function(ae){switch(ae.label){case 0:x=i[S.endpointName],ae.label=1;case 1:return ae.trys.push([1,8,,13]),E=n6,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[Ag]: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 Ff=M;function xue(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Cue=typeof Object.is=="function"?Object.is:xue,Eue=Ff.useState,Tue=Ff.useEffect,Aue=Ff.useLayoutEffect,kue=Ff.useDebugValue;function Pue(e,t){var n=t(),r=Eue({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return Aue(function(){i.value=n,i.getSnapshot=t,ew(i)&&o({inst:i})},[e,n,t]),Tue(function(){return ew(i)&&o({inst:i}),e(function(){ew(i)&&o({inst:i})})},[e]),kue(n),n}function ew(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Cue(e,n)}catch{return!0}}function Rue(e,t){return t()}var Oue=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Rue:Pue;HL.useSyncExternalStore=Ff.useSyncExternalStore!==void 0?Ff.useSyncExternalStore:Oue;GL.exports=HL;var Iue=GL.exports,qL={exports:{}},WL={};/**
* @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 nb=M,Mue=Iue;function Nue(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Due=typeof Object.is=="function"?Object.is:Nue,Lue=Mue.useSyncExternalStore,$ue=nb.useRef,Fue=nb.useEffect,Bue=nb.useMemo,zue=nb.useDebugValue;WL.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=$ue(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=Bue(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,Due(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=Lue(e,o[0],o[1]);return Fue(function(){s.hasValue=!0,s.value=a},[a]),zue(a),a};qL.exports=WL;var KL=qL.exports;const Uue=Dc(KL);function jue(e){e()}let XL=jue;const Vue=e=>XL=e,Gue=()=>XL,c6=Symbol.for("react-redux-context"),d6=typeof globalThis<"u"?globalThis:{};function Hue(){var e;if(!M.createContext)return{};const t=(e=d6[c6])!=null?e:d6[c6]=new Map;let n=t.get(M.createContext);return n||(n=M.createContext(null),t.set(M.createContext,n)),n}const pu=Hue();function IE(e=pu){return function(){return M.useContext(e)}}const QL=IE(),que=()=>{throw new Error("uSES not initialized!")};let YL=que;const Wue=e=>{YL=e},Kue=(e,t)=>e===t;function Xue(e=pu){const t=e===pu?QL:IE(e);return function(r,i={}){const{equalityFn:o=Kue,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=YL(u.addNestedSub,l.getState,c||l.getState,h,o);return M.useDebugValue(p),p}}const ZL=Xue();function t1(){return t1=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},t1.apply(this,arguments)}var JL={exports:{}},an={};/** @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 ni=typeof Symbol=="function"&&Symbol.for,ME=ni?Symbol.for("react.element"):60103,NE=ni?Symbol.for("react.portal"):60106,rb=ni?Symbol.for("react.fragment"):60107,ib=ni?Symbol.for("react.strict_mode"):60108,ob=ni?Symbol.for("react.profiler"):60114,sb=ni?Symbol.for("react.provider"):60109,ab=ni?Symbol.for("react.context"):60110,DE=ni?Symbol.for("react.async_mode"):60111,lb=ni?Symbol.for("react.concurrent_mode"):60111,ub=ni?Symbol.for("react.forward_ref"):60112,cb=ni?Symbol.for("react.suspense"):60113,Que=ni?Symbol.for("react.suspense_list"):60120,db=ni?Symbol.for("react.memo"):60115,fb=ni?Symbol.for("react.lazy"):60116,Yue=ni?Symbol.for("react.block"):60121,Zue=ni?Symbol.for("react.fundamental"):60117,Jue=ni?Symbol.for("react.responder"):60118,ece=ni?Symbol.for("react.scope"):60119;function $o(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ME:switch(e=e.type,e){case DE:case lb:case rb:case ob:case ib:case cb:return e;default:switch(e=e&&e.$$typeof,e){case ab:case ub:case fb:case db:case sb:return e;default:return t}}case NE:return t}}}function e$(e){return $o(e)===lb}an.AsyncMode=DE;an.ConcurrentMode=lb;an.ContextConsumer=ab;an.ContextProvider=sb;an.Element=ME;an.ForwardRef=ub;an.Fragment=rb;an.Lazy=fb;an.Memo=db;an.Portal=NE;an.Profiler=ob;an.StrictMode=ib;an.Suspense=cb;an.isAsyncMode=function(e){return e$(e)||$o(e)===DE};an.isConcurrentMode=e$;an.isContextConsumer=function(e){return $o(e)===ab};an.isContextProvider=function(e){return $o(e)===sb};an.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ME};an.isForwardRef=function(e){return $o(e)===ub};an.isFragment=function(e){return $o(e)===rb};an.isLazy=function(e){return $o(e)===fb};an.isMemo=function(e){return $o(e)===db};an.isPortal=function(e){return $o(e)===NE};an.isProfiler=function(e){return $o(e)===ob};an.isStrictMode=function(e){return $o(e)===ib};an.isSuspense=function(e){return $o(e)===cb};an.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===rb||e===lb||e===ob||e===ib||e===cb||e===Que||typeof e=="object"&&e!==null&&(e.$$typeof===fb||e.$$typeof===db||e.$$typeof===sb||e.$$typeof===ab||e.$$typeof===ub||e.$$typeof===Zue||e.$$typeof===Jue||e.$$typeof===ece||e.$$typeof===Yue)};an.typeOf=$o;JL.exports=an;var tce=JL.exports,t$=tce,nce={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},rce={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},n$={};n$[t$.ForwardRef]=nce;n$[t$.Memo]=rce;var yn={};/**
* @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 LE=Symbol.for("react.element"),$E=Symbol.for("react.portal"),hb=Symbol.for("react.fragment"),pb=Symbol.for("react.strict_mode"),gb=Symbol.for("react.profiler"),mb=Symbol.for("react.provider"),yb=Symbol.for("react.context"),ice=Symbol.for("react.server_context"),vb=Symbol.for("react.forward_ref"),_b=Symbol.for("react.suspense"),bb=Symbol.for("react.suspense_list"),Sb=Symbol.for("react.memo"),wb=Symbol.for("react.lazy"),oce=Symbol.for("react.offscreen"),r$;r$=Symbol.for("react.module.reference");function os(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case LE:switch(e=e.type,e){case hb:case gb:case pb:case _b:case bb:return e;default:switch(e=e&&e.$$typeof,e){case ice:case yb:case vb:case wb:case Sb:case mb:return e;default:return t}}case $E:return t}}}yn.ContextConsumer=yb;yn.ContextProvider=mb;yn.Element=LE;yn.ForwardRef=vb;yn.Fragment=hb;yn.Lazy=wb;yn.Memo=Sb;yn.Portal=$E;yn.Profiler=gb;yn.StrictMode=pb;yn.Suspense=_b;yn.SuspenseList=bb;yn.isAsyncMode=function(){return!1};yn.isConcurrentMode=function(){return!1};yn.isContextConsumer=function(e){return os(e)===yb};yn.isContextProvider=function(e){return os(e)===mb};yn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===LE};yn.isForwardRef=function(e){return os(e)===vb};yn.isFragment=function(e){return os(e)===hb};yn.isLazy=function(e){return os(e)===wb};yn.isMemo=function(e){return os(e)===Sb};yn.isPortal=function(e){return os(e)===$E};yn.isProfiler=function(e){return os(e)===gb};yn.isStrictMode=function(e){return os(e)===pb};yn.isSuspense=function(e){return os(e)===_b};yn.isSuspenseList=function(e){return os(e)===bb};yn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===hb||e===gb||e===pb||e===_b||e===bb||e===oce||typeof e=="object"&&e!==null&&(e.$$typeof===wb||e.$$typeof===Sb||e.$$typeof===mb||e.$$typeof===yb||e.$$typeof===vb||e.$$typeof===r$||e.getModuleId!==void 0)};yn.typeOf=os;function sce(){const e=Gue();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 f6={notify(){},get:()=>[]};function ace(e,t){let n,r=f6;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=sce())}function u(){n&&(n(),n=void 0,r.clear(),r=f6)}const c={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:s,isSubscribed:a,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>r};return c}const lce=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",uce=lce?M.useLayoutEffect:M.useEffect;function h6(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function n1(e,t){if(h6(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])||!h6(e[n[i]],t[n[i]]))return!1;return!0}function cce({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",noopCheck:o="once"}){const s=M.useMemo(()=>{const u=ace(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]);uce(()=>{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||pu;return M.createElement(l.Provider,{value:s},n)}function i$(e=pu){const t=e===pu?QL:IE(e);return function(){const{store:r}=t();return r}}const o$=i$();function dce(e=pu){const t=e===pu?o$:i$(e);return function(){return t().dispatch}}const s$=dce();Wue(KL.useSyncExternalStoreWithSelector);Vue(Ss.unstable_batchedUpdates);var fce=globalThis&&global
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=Un.buildInitiateQuery,ps=Un.buildInitiateMutation;return si(W.util,{getRunningOperationPromises:Un.getRunningOperationPromises,getRunningOperationPromise:Un.removalWarning,getRunningMutationThunk:Un.getRunningMutationThunk,getRunningMutationsThunk:Un.getRunningMutationsThunk,getRunningQueryThunk:Un.getRunningQueryThunk,getRunningQueriesThunk:Un.getRunningQueriesThunk}),{name:Fo,injectEndpoint:function(Je,tn){var Wt,Xn=W;(Wt=Xn.endpoints)[Je]!=null||(Wt[Je]={}),ee(tn)?si(Xn.endpoints[Je],{name:Je,select:fr(Je,tn),initiate:ro(Je,tn)},vt(ye,Je)):tn.type===Q.mutation&&si(Xn.endpoints[Je],{name:Je,select:ai(),initiate:ps(Je)},vt(We,Je))}}}}},Ta=to(Hr())})(y$);m$.exports=y$;var jce=m$.exports;const he=gu.injectEndpoints({endpoints:e=>({listImages:e.query({query:t=>({url:wo(t),method:"GET"}),providesTags:(t,n,{board_id:r,categories:i})=>[{type:"ImageList",id:wo({board_id:r,categories:i})}],serializeQueryArgs:({queryArgs:t})=>{const{board_id:n,categories:r}=t;return wo({board_id:n,categories:r})},transformResponse(t){const{items:n}=t;return Mn.addMany(Mn.getInitialState(),n)},merge:(t,n)=>{Mn.addMany(t,i1.selectAll(n))},forceRefetch({currentArg:t,previousArg:n}){return(t==null?void 0:t.offset)!==(n==null?void 0:n.offset)},async onQueryStarted(t,{dispatch:n,queryFulfilled:r}){try{const{data:i}=await r;i1.selectAll(i).forEach(o=>{n(he.util.upsertQueryData("getImageDTO",o.image_name,o))})}catch{}},keepUnusedDataFor:86400}),getIntermediatesCount:e.query({query:()=>({url:wo({is_intermediate:!0})}),providesTags:["IntermediatesCount"],transformResponse:t=>t.total}),getImageDTO:e.query({query:t=>({url:`images/i/${t}`}),providesTags:(t,n,r)=>[{type:"Image",id:r}],keepUnusedDataFor:86400}),getImageMetadata:e.query({query:t=>({url:`images/i/${t}/metadata`}),providesTags:(t,n,r)=>[{type:"ImageMetadata",id:r}],keepUnusedDataFor:86400}),getImageMetadataFromFile:e.query({queryFn:async(t,n,r)=>{const i=Of.get(),o=yg.get(),a=await jce.fetchBaseQuery({baseUrl:"",prepareHeaders:u=>(i&&u.set("Authorization",`Bearer ${i}`),o&&u.set("project-id",o),u),responseHandler:async u=>await u.blob()})(t.image_url,n,r);return{data:await Vle(a.data)}},providesTags:(t,n,r)=>[{type:"ImageMetadataFromFile",id:r.image_name}],keepUnusedDataFor:86400}),clearIntermediates:e.mutation({query:()=>({url:"images/clear-intermediates",method:"POST"}),invalidatesTags:["IntermediatesCount"]}),deleteImage:e.mutation({query:({image_name:t})=>({url:`images/i/${t}`,method:"DELETE"}),invalidatesTags:(t,n,{board_id:r})=>[{type:"BoardImagesTotal",id:r??"none"},{type:"BoardAssetsTotal",id:r??"none"}],async onQueryStarted(t,{dispatch:n,queryFulfilled:r}){const{image_name:i,board_id:o}=t,s={board_id:o??"none",categories:Bo(t)},a=n(he.util.updateQueryData("listImages",s,l=>{Mn.removeOne(l,i)}));try{await r}catch{a.undo()}}}),deleteImages:e.mutation({query:({imageDTOs:t})=>({url:"images/delete",method:"POST",body:{image_names:t.map(r=>r.image_name)}}),invalidatesTags:(t,n,{imageDTOs:r})=>{var o;const i=(o=r[0])==null?void 0:o.board_id;return[{type:"BoardImagesTotal",id:i??"none"},{type:"BoardAssetsTotal",id:i??"none"}]},async onQueryStarted({imageDTOs:t},{dispatch:n,queryFulfilled:r}){try{const{data:i}=await r,o=pE(t,"image_name");i.deleted_images.forEach(s=>{const a=o[s];if(a){const l={board_id:a.board_id??"none",categories:Bo(a)};n(he.util.updateQueryData("listImages",l,u=>{Mn.removeOne(u,s)}))}})}catch{}}}),changeImageIsIntermediate:e.mutation({query:({imageDTO:t,is_intermediate:n})=>({url:`images/i/${t.image_name}`,method:"PATCH",body:{is_intermediate:n}}),invalidatesTags:(t,n,{imageDTO:r})=>[{type:"BoardImagesTotal",id:r.board_id??"none"},{type:"BoardAssetsTotal",id:r.board_id??"none"}],async onQueryStarted({imageDTO:t,is_intermediate:n},{dispatch:r,queryFulfilled:i,getState:o}){const s=[];s.push(r(he.util.updateQueryData("getImageDTO",t.image_name,l=>{Object.assign(l,{is_intermediate:n})})));const a=B
${u.loc.slice(3).join(".")}`,duration:i}))});return}}else(s=n.payload)!=null&&s.error&&(r=(a=n.payload)==null?void 0:a.error);t.toastQueue.push(ra({title:wp("toast.serverError"),status:"error",description:Rv(r,"detail","Unknown Error"),duration:i}))}),e.addMatcher(_ye,(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(ra({title:wp("toast.serverError"),status:"error",description:Uee(n.payload.data.error_type)}))})}}),{setIsProcessing:HIe,setShouldConfirmOnDelete:qIe,setCurrentStatus:WIe,setIsCancelable:KIe,setEnableImageDebugging:XIe,addToast:Fn,clearToastQueue:QIe,cancelScheduled:YIe,scheduledCancelAborted:ZIe,cancelTypeChanged:JIe,subscribedNodeIdsSet:e9e,consoleLogLevelChanged:t9e,shouldLogToConsoleChanged:n9e,isPersistedChanged:r9e,shouldAntialiasProgressImageChanged:i9e,languageChanged:o9e,progressImageSet:gye,shouldUseNSFWCheckerChanged:mye,shouldUseWatermarkerChanged:yye}=CB.actions,vye=CB.reducer,_ye=is(xb,M$,D$),bye={searchFolder:null,advancedAddScanModel:null},EB=er({name:"modelmanager",initialState:bye,reducers:{setSearchFolder:(e,t)=>{e.searchFolder=t.payload},setAdvancedAddScanModel:(e,t)=>{e.advancedAddScanModel=t.payload}}}),{setSearchFolder:s9e,setAdvancedAddScanModel:a9e}=EB.actions,Sye=EB.reducer,TB={shift:!1,ctrl:!1,meta:!1},AB=er({name:"hotkeys",initialState:TB,reducers:{shiftKeyPressed:(e,t)=>{e.shift=t.payload},ctrlKeyPressed:(e,t)=>{e.ctrl=t.payload},metaKeyPressed:(e,t)=>{e.meta=t.payload}}}),{shiftKeyPressed:l9e,ctrlKeyPressed:u9e,metaKeyPressed:c9e}=AB.actions,wye=AB.reducer,kB=["txt2img","img2img","unifiedCanvas","nodes","modelManager","batch"],E8=(e,t)=>{typeof t=="number"?e.activeTab=t:e.activeTab=kB.indexOf(t)},PB={activeTab:0,shouldShowImageDetails:!1,shouldUseCanvasBetaLayout:!1,shouldShowExistingModelsInSearch:!1,shouldUseSliders:!1,shouldHidePreview:!1,shouldShowProgressInViewer:!0,shouldShowEmbeddingPicker:!1,shouldAutoChangeDimensions:!1,favoriteSchedulers:[],globalContextMenuCloseTrigger:0,panels:{}},RB=er({name:"ui",initialState:PB,reducers:{setActiveTab:(e,t)=>{E8(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(O_,t=>{E8(t,"img2img")})}}),{setActiveTab:OB,setShouldShowImageDetails:d9e,setShouldUseCanvasBetaLayout:f9e,setShouldShowExistingModelsInSearch:h9e,setShouldUseSliders:p9e,setShouldHidePreview:g9e,setShouldShowProgressInViewer:m9e,favoriteSchedulersChanged:y9e,toggleEmbeddingPicker:v9e,setShouldAutoChangeDimensions:_9e,contextMenusClosed:b9e,panelsChanged:S9e}=RB.actions,xye=RB.reducer,Cye=K1(hq);IB=WC=void 0;var Eye=Cye,Tye=function(){var t=[],n=[],r=void 0,i=function(u){return r=u,function(c){return function(d){return Eye.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}},Ib=Tye(),Aye=Ib.enhancer,kye=Ib.addMiddleware;Ib.removeMid
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $ye(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 Fye(e){if(Array.isArray(e))return e}function mw(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=NB(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 NB(e,t){if(e){if(typeof e=="string")return A8(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 A8(e,t)}}function A8(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 S1(e){"@babel/helpers - typeof";return S1=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},S1(e)}var k8=function(t){var n;return(n=Object.prototype.toString.call(t).match(/\[object (.*)\]/))===null||n===void 0?void 0:n[1]},P8=function(t){return/^\[object (?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)Array\]$/.test(Object.prototype.toString.call(t))},Bye=function e(t,n){if(t===n)return!0;if(S1(t)!=="object"||S1(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(P8(t)&&P8(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=k8(t),s=k8(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=mw(t.entries()),l;try{for(a.s();!(l=a.n()).done;){var u=gw(l.value,1),c=u[0];if(!n.has(c))return!1}}catch(E){a.e(E)}finally{a.f()}var d=mw(t.entries()),f;try{for(d.s();!(f=d.n()).done;){var h=gw(f.value,2),p=h[0],m=h[1];if(!e(m,n.get(p)))return!1}}catch(E){d.e(E)}finally{d.f()}return!0}if(o==="Set"&&s==="Set"){if(t.size!==n.size)return!1;var b=mw(t.entries()),_;try{for(b.s();!(_=b.n()).done;){var v=gw(_.value,1),g=v[0];if(!n.has(g))return!1}}catch(E){b.e(E)}finally{b.f()}return!0}if(o==="Date"&&s==="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"&&s!=="Object"?t===n:!0};const hT=Bye;function R8(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 DB(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function s(l){R8(o,r,i,s,a,"next",l)}function a(l){R8(o,r,i,s,a,"throw",l)}s(void 0)})}}var zye=function(){var e=DB(function*(t,n,r){var i=r.prefix,o=r.driver,s=r.serialize;if(!hT(t,n))return o.setItem("".concat(i,"rootState"),s(t,"rootState"))});return function(n,r,i){return e.apply(this,arguments)}}(),Uye=function(t,n,r){var i=r.prefix,o=r.driver,s=r.serialize;return Promise.all(Object.keys(t).map(function(a){return hT(t[a],n[a])?Promise.resolve():o.setItem("".concat(i).concat(a),s(t[a],a))}))},jye=function(){var e=DB(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?zye:Uye;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 O8(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!==yd&&o!==void 0,l=s!==yd&&s!==void 0,u=this.padding(),c=o-u*2,d=s-u*2,f=0,h=this.wrap(),p=h!==Q8,m=h!==P1e&&p,b=this.ellipsis();this.textArr=[],Cw().font=this._getContextFont();for(var _=b?this._getTextWidth(xw):0,v=0,g=t.length;v<g;++v){var y=t[v],S=this._getTextWidth(y);if(a&&S>c)for(;y.length>0;){for(var w=0,x=y.length,E="",A=0;w<x;){var T=w+x>>>1,k=y.slice(0,T+1),L=this._getTextWidth(k)+_;L<=c?(w=T+1,E=k,A=L):x=T}if(E){if(m){var N,C=y[E.length],P=C===Xy||C===K8;P&&A<=c?N=E.length:N=Math.max(E.lastIndexOf(Xy),E.lastIndexOf(K8))+1,N>0&&(w=N,E=E.slice(0,w),A=this._getTextWidth(E))}E=E.trimRight(),this._addTextLine(E),r=Math.max(r,A),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!==yd&&i!==void 0,s=this.padding(),a=i-s*2,l=this.wrap(),u=l!==Q8;return!u||o&&t+r>a}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,n=t!==yd&&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+xw)<i;a||(s.text=s.text.slice(0,s.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(s.text+xw)}}getStrokeScaleEnabled(){return!0}};Ic.Text=vr;vr.prototype._fillFunc=I1e;vr.prototype._strokeFunc=M1e;vr.prototype.className=x1e;vr.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];(0,v1e._registerNode)(vr);Zi.Factory.overWriteSetter(vr,"width",(0,Iu.getNumberOrAutoValidator)());Zi.Factory.overWriteSetter(vr,"height",(0,Iu.getNumberOrAutoValidator)());Zi.Factory.addGetterSetter(vr,"fontFamily","Arial");Zi.Factory.addGetterSetter(vr,"fontSize",12,(0,Iu.getNumberValidator)());Zi.Factory.addGetterSetter(vr,"fontStyle",fz);Zi.Factory.addGetterSetter(vr,"fontVariant",fz);Zi.Factory.addGetterSetter(vr,"padding",0,(0,Iu.getNumberValidator)());Zi.Factory.addGetterSetter(vr,"align",dz);Zi.Factory.addGetterSetter(vr,"verticalAlign",C1e);Zi.Factory.addGetterSetter(vr,"lineHeight",1,(0,Iu.getNumberValidator)());Zi.Factory.addGetterSetter(vr,"wrap",k1e);Zi.Factory.addGetterSetter(vr,"ellipsis",!1,(0,Iu.getBooleanValidator)());Zi.Factory.addGetterSetter(vr,"letterSpacing",0,(0,Iu.getNumberValidator)());Zi.Factory.addGetterSetter(vr,"text","",(0,Iu.getStringValidator)());Zi.Factory.addGetterSetter(vr,"textDecoration","");var nS={};Object.defineProperty(nS,"__esModule",{value:!0});nS.TextPath=void 0;const Ew=ir,Fs=xt,D1e=zr,zh=dh,Tw=Ic,pz=He,L1e=Et;var $1e="",gz="normal";function mz(e){e.fillText(this.partialText,0,0)}function yz(e){e.strokeText(this.partialText,0,0)}class Ur extends D1e.Shape{constructor(t){super(t),this.dummyCanvas=Ew.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 zh.Path.getPathLength(this.dataArray)}_getPointAtLength(t){if(!this.attrs.data)return null;const n=this.pathLength;return t-1>n?null:zh.Path.getPointAtLengthOfDataArray(t,this.dataArray)}_readDataAttribute(){this.dataArray=zh.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(vAe,{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=BU(bAe),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(_Ae,{isPresent:n},e)),M.createElement(Vm.Provider,{value:u},e)};function bAe(){return new Map}function SAe(e){return M.useEffect(()=>()=>e(),[])}const Ad=e=>e.key||"";function wAe(e,t){e.forEach(n=>{const r=Ad(n);t.set(r,n)})}function xAe(e){const t=[];return M.Children.forEach(e,n=>{M.isValidElement(n)&&t.push(n)}),t}const CAe=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:s="sync"})=>{const a=M.useContext(i4).forceRender||yAe()[0],l=Vj(),u=xAe(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(t4(()=>{p.current=!1,wAe(u,h),f.current=c}),SAe(()=>{p.current=!0,h.clear(),d.clear()}),p.current)return M.createElement(M.Fragment,null,c.map(v=>M.createElement(qw,{key:Ad(v),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:s},v)));c=[...c];const m=f.current.map(Ad),b=u.map(Ad),_=m.length;for(let v=0;v<_;v++){const g=m[v];b.indexOf(g)===-1&&!d.has(g)&&d.set(g,void 0)}return s==="wait"&&d.size&&(c=[]),d.forEach((v,g)=>{if(b.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 E=f.current.findIndex(A=>A.key===g);if(f.current.splice(E,1),!d.size){if(f.current=u,l.current===!1)return;a(),r&&r()}};w=M.createElement(qw,{key:Ad(y),isPresent:!1,onExitComplete:x,custom:t,presenceAffectsLayout:o,mode:s},y),d.set(g,w)}c.splice(S,0,w)}),c=c.map(v=>{const g=v.key;return d.has(g)?v:M.createElement(qw,{key:Ad(v),isPresent:!0,presenceAffectsLayout:o,mode:s},v)}),M.createElement(M.Fragment,null,d.size?c:c.map(v=>M.cloneElement(v)))};var EAe=fCe({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Gj=Lu((e,t)=>{const n=e4("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:s="transparent",className:a,...l}=JT(e),u=XT("chakra-spinner",a),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:s,borderLeftColor:s,animation:`${EAe} ${o} linear infinite`,...n};return Z.jsx(vu.div,{ref:t,__css:c,className:u,...l,children:r&&Z.jsx(vu.span,{srOnly:!0,children:r})})});Gj.displayName="Spinner";var L3=Lu(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})});L3.displayName="NativeImage";function TAe(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 hCe(()=>{if(!l)return u==="loading"&&f(),()=>{h()}},[u,f,l]),l?"loaded":u}var AAe=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError";function kAe(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}var w4=Lu(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,_=TAe({...t,crossOrigin:d,ignoreFallback:b}),v=AAe(_,f),g={ref:n,objectFit:l,objectPosition:a,...b?p:kAe(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.
`},hke={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 pke(e){let{announcements:t=hke,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=fke}=e;const{announce:o,announcement:s}=uke(),a=qS("DndLiveRegion"),[l,u]=M.useState(!1);if(M.useEffect(()=>{u(!0)},[]),cke(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=mn.createElement(mn.Fragment,null,mn.createElement(ske,{id:r,value:i.draggable}),mn.createElement(lke,{id:a,announcement:s}));return n?Ss.createPortal(c,n):c}var Lr;(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"})(Lr||(Lr={}));function q1(){}function pI(e,t){return M.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function gke(){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 Ds=Object.freeze({x:0,y:0});function mke(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function yke(e,t){const n=Jg(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 vke(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function _ke(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function bke(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 Ske(e,t){if(!e||e.length===0)return null;const[n]=e;return t?n[t]:n}function wke(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 xke=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=wke(a,t);l>0&&i.push({id:s,data:{droppableContainer:o,value:l}})}}return i.sort(_ke)};function Cke(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 Eke=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&&Cke(r,a)){const u=bke(a).reduce((d,f)=>d+mke(r,f),0),c=Number((u/4).toFixed(4));i.push({id:s,data:{droppableContainer:o,value:c}})}}return i.sort(vke)};function Tke(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function nV(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Ds}function Ake(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 kke=Ake(1);function rV(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 Pke(e,t,n){const r=rV(t);if(!r)return e;const{scaleX:i,scaleY:o,x:s,y:a}=r,l=e.left-s-(1-i)*parseFloat