InvokeAI/invokeai/frontend/web/dist/assets/index-08cda350.js

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

127 lines
1.3 MiB
JavaScript
Raw Normal View History

var Kj=Object.defineProperty;var Xj=(e,t,n)=>t in e?Kj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Kb=(e,t,n)=>(Xj(e,typeof t!="symbol"?t+"":t,n),n);function PR(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 De=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Yj(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 OR={exports:{}},Ov={},RR={exports:{}},Ue={};/**
* @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 Bp=Symbol.for("react.element"),Zj=Symbol.for("react.portal"),Qj=Symbol.for("react.fragment"),Jj=Symbol.for("react.strict_mode"),eV=Symbol.for("react.profiler"),tV=Symbol.for("react.provider"),nV=Symbol.for("react.context"),rV=Symbol.for("react.forward_ref"),iV=Symbol.for("react.suspense"),oV=Symbol.for("react.memo"),sV=Symbol.for("react.lazy"),z4=Symbol.iterator;function aV(e){return e===null||typeof e!="object"?null:(e=z4&&e[z4]||e["@@iterator"],typeof e=="function"?e:null)}var IR={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},MR=Object.assign,NR={};function Od(e,t,n){this.props=e,this.context=t,this.refs=NR,this.updater=n||IR}Od.prototype.isReactComponent={};Od.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")};Od.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function DR(){}DR.prototype=Od.prototype;function WC(e,t,n){this.props=e,this.context=t,this.refs=NR,this.updater=n||IR}var qC=WC.prototype=new DR;qC.constructor=WC;MR(qC,Od.prototype);qC.isPureReactComponent=!0;var U4=Array.isArray,LR=Object.prototype.hasOwnProperty,KC={current:null},$R={key:!0,ref:!0,__self:!0,__source:!0};function FR(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)LR.call(t,r)&&!$R.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:Bp,type:e,key:o,ref:s,props:i,_owner:KC.current}}function lV(e,t){return{$$typeof:Bp,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function XC(e){return typeof e=="object"&&e!==null&&e.$$typeof===Bp}function uV(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var j4=/\/+/g;function Xb(e,t){return typeof e=="object"&&e!==null&&e.key!=null?uV(""+e.key):t.toString(36)}function Qm(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 Bp:case Zj:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Xb(s,0):r,U4(i)?(n="",e!=null&&(n=e.replace(j4,"$&/")+"/"),Qm(i,t,n,"",function(u){return u})):i!=null&&(XC(i)&&(i=lV(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(j4,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",U4(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+Xb(o,a);s+=Qm(o,t,n,l,i)}else if(l=aV(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+Xb(o,a++),s+=Qm(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 Fg(e,t,n){if(e==null)return e;var r=[],i=0;return Qm(e,r,"","",function(o){return t.call(n,o,i++)}),r}function cV(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 Pr={current:null},Jm={transition:null},dV={ReactCurrentDispatcher:Pr,ReactCurrentBatchConfig:Jm,ReactCurrentOwner:KC};Ue.Children={map:Fg,forEach:function(e,t,n){Fg(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Fg(e,function(){t++}),t},toArray:function(e){return Fg(e,function(t){return t})||[]},only:function(e){if(!XC(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ue.Component=Od;Ue.Fragment=Qj;Ue.Profiler=eV;Ue
* @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=I,hV=Symbol.for("react.element"),pV=Symbol.for("react.fragment"),gV=Object.prototype.hasOwnProperty,mV=fV.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,yV={key:!0,ref:!0,__self:!0,__source:!0};function BR(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)gV.call(t,r)&&!yV.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:hV,type:e,key:o,ref:s,props:i,_owner:mV.current}}Ov.Fragment=pV;Ov.jsx=BR;Ov.jsxs=BR;OR.exports=Ov;var Y=OR.exports,J2={},zR={exports:{}},ui={},UR={exports:{}},jR={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(M,O){var D=M.length;M.push(O);e:for(;0<D;){var F=D-1>>>1,U=M[F];if(0<i(U,O))M[F]=O,M[D]=U,D=F;else break e}}function n(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var O=M[0],D=M.pop();if(D!==O){M[0]=D;e:for(var F=0,U=M.length,V=U>>>1;F<V;){var q=2*(F+1)-1,X=M[q],Z=q+1,z=M[Z];if(0>i(X,D))Z<U&&0>i(z,X)?(M[F]=z,M[Z]=D,F=Z):(M[F]=X,M[q]=D,F=q);else if(Z<U&&0>i(z,D))M[F]=z,M[Z]=D,F=Z;else break e}}return O}function i(M,O){var D=M.sortIndex-O.sortIndex;return D!==0?D:M.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(M){for(var O=n(u);O!==null;){if(O.callback===null)r(u);else if(O.startTime<=M)r(u),O.sortIndex=O.expirationTime,t(l,O);else break;O=n(u)}}function v(M){if(m=!1,g(M),!p)if(n(l)!==null)p=!0,N(S);else{var O=n(u);O!==null&&$(v,O.startTime-M)}}function S(M,O){p=!1,m&&(m=!1,_(x),x=-1),h=!0;var D=f;try{for(g(O),d=n(l);d!==null&&(!(d.expirationTime>O)||M&&!P());){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 q=n(u);q!==null&&$(v,q.startTime-O),V=!1}return V}finally{d=null,f=D,h=!1}}var w=!1,C=null,x=-1,A=5,T=-1;function P(){return!(e.unstable_now()-T<A)}function L(){if(C!==null){var M=e.unstable_now();T=M;var O=!0;try{O=C(!0,M)}finally{O?R():(w=!1,C=null)}}else w=!1}var R;if(typeof y=="function")R=function(){y(L)};else if(typeof MessageChannel<"u"){var E=new MessageChannel,k=E.port2;E.port1.onmessage=L,R=function(){k.postMessage(null)}}else R=function(){b(L,0)};function N(M){C=M,w||(w=!0,R())}function $(M,O){x=b(function(){M(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(M){M.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,N(S))},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(M){switch(f){case 1:case 2:case 3:var O=3;break;default:O=f}var D=f;f=O;try{return M()}finally{f=D}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(M,O){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var D=f;f=M;try{return O()}finally{f=D}},e.unstable_scheduleCallback=function(M,O,D){var F=e.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?F+D:F):D=F,M){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=D+U,M={id:c++,callback:O,priorityLevel:M,startTime:D,expirationTime:U,sortIndex:-1},D>F?(M.sortIndex=D,t(u,M),n(l)===null&&M===n(u)&&(m?(_(x),x=-1):m=!0,$(v,D-F))):(M.sortIndex=U,t(l,M),p||h||(p=!0,N(S))),M},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(M){var O=f;return function(){var D=f;f=O;try{return M.apply(this,arguments)}finally{f=D}}}})(jR);UR.exports=jR;var vV=UR.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 VR=I,oi=vV;function ee(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 GR=new Set,gh={};function _u(e,t){td(e,t),td(e+"Capture",t)}function td(e,t){for(gh[e]=t,e=0;e<t.length;e++)GR.add(t[e])}var Is=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ew=Object.prototype.hasOwnProperty,_V=/^[: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]*$/,G4={},H4={};function bV(e){return ew.call(H4,e)?!0:ew.call(G4,e)?!1:_V.test(e)?H4[e]=!0:(G4[e]=!0,!1)}function SV(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 wV(e,t,n,r){if(t===null||typeof t>"u"||SV(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 Or(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 Jn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Jn[e]=new Or(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Jn[t]=new Or(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Jn[e]=new Or(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Jn[e]=new Or(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){Jn[e]=new Or(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Jn[e]=new Or(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Jn[e]=new Or(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Jn[e]=new Or(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Jn[e]=new Or(e,5,!1,e.toLowerCase(),null,!1,!1)});var YC=/[\-:]([a-z])/g;function ZC(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
`+Yb+e}var Zb=!1;function Qb(e,t){if(!e||Zb)return"";Zb=!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{Zb=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?If(e):""}function xV(e){switch(e.tag){case 5:return If(e.type);case 16:return If("Lazy");case 13:return If("Suspense");case 19:return If("SuspenseList");case 0:case 2:case 15:return e=Qb(e.type,!1),e;case 11:return e=Qb(e.type.render,!1),e;case 1:return e=Qb(e.type,!0),e;default:return""}}function iw(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 pc:return"Fragment";case hc:return"Portal";case tw:return"Profiler";case JC:return"StrictMode";case nw:return"Suspense";case rw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case WR:return(e.displayName||"Context")+".Consumer";case HR:return(e._context.displayName||"Context")+".Provider";case e3:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case t3:return t=e.displayName||null,t!==null?t:iw(e.type)||"Memo";case ia:t=e._payload,e=e._init;try{return iw(e(t))}catch{}}return null}function CV(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 iw(t);case 8:return t===JC?"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 Ba(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function KR(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function EV(e){var t=KR(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 zg(e){e._valueTracker||(e._valueTracker=EV(e))}function XR(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=KR(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function L0(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 ow(e,t){var n=t.checked;return Xt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function q4(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ba(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 YR(e,t){t=t.checked,t!=null&&QC(e,"checked",t,!1)}function sw(e,t){YR(e,t);var n=Ba(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")?aw(e,t.type,n):t.hasOwnProperty("defaultValue")&&aw(e,t.type,Ba(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function K4(e,t,n){if(t.hasOwnProperty("val
2023-08-31 14:35:17 +00:00
`).replace(DG,"")}function Kg(e,t,n){if(t=yT(t),yT(e)!==t&&n)throw Error(ee(425))}function G0(){}var Sw=null,ww=null;function xw(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 Cw=typeof setTimeout=="function"?setTimeout:void 0,LG=typeof clearTimeout=="function"?clearTimeout:void 0,vT=typeof Promise=="function"?Promise:void 0,$G=typeof queueMicrotask=="function"?queueMicrotask:typeof vT<"u"?function(e){return vT.resolve(null).then(e).catch(FG)}:Cw;function FG(e){setTimeout(function(){throw e})}function dS(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),bh(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);bh(t)}function Ta(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 _T(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 Id=Math.random().toString(36).slice(2),ko="__reactFiber$"+Id,Eh="__reactProps$"+Id,Ms="__reactContainer$"+Id,Ew="__reactEvents$"+Id,BG="__reactListeners$"+Id,zG="__reactHandles$"+Id;function Dl(e){var t=e[ko];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ms]||n[ko]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=_T(e);e!==null;){if(n=e[ko])return n;e=_T(e)}return t}e=n,n=e.parentNode}return null}function jp(e){return e=e[ko]||e[Ms],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function vc(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(ee(33))}function Dv(e){return e[Eh]||null}var Tw=[],_c=-1;function tl(e){return{current:e}}function Rt(e){0>_c||(e.current=Tw[_c],Tw[_c]=null,_c--)}function bt(e,t){_c++,Tw[_c]=e.current,e.current=t}var za={},hr=tl(za),Ur=tl(!1),eu=za;function nd(e,t){var n=e.type.contextTypes;if(!n)return za;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 jr(e){return e=e.childContextTypes,e!=null}function H0(){Rt(Ur),Rt(hr)}function bT(e,t,n){if(hr.current!==za)throw Error(ee(168));bt(hr,t),bt(Ur,n)}function F9(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(ee(108,CV(e)||"Unknown",i));return Xt({},n,r)}function W0(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||za,eu=hr.current,bt(hr,e),bt(Ur,Ur.current),!0}function ST(e,t,n){var r=e.stateNode;if(!r)throw Error(ee(169));n?(e=F9(e,t,eu),r.__reactInternalMemoizedMergedChildContext=e,Rt(Ur),Rt(hr),bt(hr,e)):Rt(Ur),bt(Ur,n)}var ms=null,Lv=!1,fS=!1;function B9(e){ms===null?ms=[e]:ms.push(e)}function UG(e){Lv=!0,B9(e)}function nl(){if(!fS&&ms!==null){fS=!0;var e=0,t=ot;try{var n=ms;for(ot=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ms=null,Lv=!1}catch(i){throw ms!==null&&(ms=ms.slice(e+1)),c9(r3,nl),i}finally{ot=t,fS=!1}}return null}var bc=[],Sc=0,q0=null,K0=0,wi=[],xi=0,tu=null,Ss=1,ws="";function kl(e,t){bc[Sc++]=K0,bc[Sc++]=q0,q0=e,K0=t}function z9(e,t,n){wi[xi++]=Ss,wi[xi++]=ws,wi[xi++]=tu,tu=e;var r=Ss;e=ws;var i=32-no(r)-1;r&=~(1<<i),n+=1;var o=32-no(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,Ss=1<<32-no(t)+i|n<<i|r,ws=o+e}else Ss=1<<o|n<<i|r,ws=e}function f3(e){e.return!==null&&(kl(e,1),z9(e,1,0))}function h3(e){for(;e===q0;)q0=bc[--Sc],bc[Sc]=null,K0=bc[--Sc],bc[Sc]=null;for(;e===tu;)tu=wi[--xi],wi[xi]=null,ws=wi[--xi],wi[xi]=null,Ss=wi[--xi],wi[xi]=null}var ri=null,ti=null,Ft=!1,Yi=null;function U9(e,t){var n=Ti(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.de
Error generating stack: `+o.message+`
2023-08-31 14:35:17 +00:00
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function yS(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Iw(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var YG=typeof WeakMap=="function"?WeakMap:Map;function gI(e,t,n){n=Es(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ny||(ny=!0,jw=r),Iw(e,t)},n}function mI(e,t,n){n=Es(-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(){Iw(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Iw(e,t),typeof r!="function"&&(ka===null?ka=new Set([this]):ka.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function RT(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new YG;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=cH.bind(null,e,t,n),t.then(e,e))}function IT(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 MT(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=Es(-1,1),t.tag=2,Aa(n,t,1))),n.lanes|=1),e)}var ZG=Us.ReactCurrentOwner,$r=!1;function wr(e,t,n,r){t.child=e===null?K9(t,null,n,r):id(t,e.child,n,r)}function NT(e,t,n,r,i){n=n.render;var o=t.ref;return Dc(t,i),r=C3(e,t,n,r,o,i),n=E3(),e!==null&&!$r?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ds(e,t,i)):(Ft&&n&&f3(t),t.flags|=1,wr(e,t,r,i),t.child)}function DT(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!D3(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,yI(e,t,o,r,i)):(e=u0(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:wh,n(s,r)&&e.ref===t.ref)return Ds(e,t,i)}return t.flags|=1,e=Oa(o,r),e.ref=t.ref,e.return=t,t.child=e}function yI(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(wh(o,r)&&e.ref===t.ref)if($r=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&($r=!0);else return t.lanes=e.lanes,Ds(e,t,i)}return Mw(e,t,n,r,i)}function vI(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},bt(Cc,Qr),Qr|=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,bt(Cc,Qr),Qr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,bt(Cc,Qr),Qr|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,bt(Cc,Qr),Qr|=r;return wr(e,t,i,n),t.child}function _I(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Mw(e,t,n,r,i){var o=jr(n)?eu:hr.current;return o=nd(t,o),Dc(t,i),n=C3(e,t,n,r,o,i),r=E3(),e!==null&&!$r?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ds(e,t,i)):(Ft&&r&&f3(t),t.flags|=1,wr(e,t,n,i),t.child)}function LT(e,t,n,r,i){if(jr(n)){var o=!0;W0(t)}else o=!1;if(Dc(t,i),t.stateNode===null)s0(e,t),W9(t,n,r),Rw(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=Pi(u):(u=jr(n)?eu:hr.current,u=nd(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)&&AT(t,s,r,u),oa=!1;var f=t.memoizedState;s.state=f,Z0(t,r,s,i),l=t.memoizedState,a!==r||f!==l||Ur.current||oa?(typeof c=="function"&&(Ow(t,n,c,r),l=t.memoizedState),(a=oa||TT(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.
2023-08-31 14:35:17 +00:00
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 Ry(Ry([],v(s)),v(a)).filter(KS)}function p(v,S){return function(w){var C,x=o.endpointDefinitions[v],A=t({queryArgs:S,endpointDefinition:x,endpointName:v});return(C=s.get(w))==null?void 0:C[A]}}function m(v,S){return function(w){var C;return(C=a.get(w))==null?void 0:C[S]}}function b(){return function(v){return Object.values(s.get(v)||{}).filter(KS)}}function _(){return function(v){return Object.values(a.get(v)||{}).filter(KS)}}function y(v,S){var w=function(C,x){var A=x===void 0?{}:x,T=A.subscribe,P=T===void 0?!0:T,L=A.forceRefetch,R=A.subscriptionOptions,E=cp,k=A[E];return function(N,$){var M,O,D=t({queryArgs:C,endpointDefinition:S,endpointName:v}),F=n((M={type:"query",subscribe:P,forceRefetch:L,subscriptionOptions:R,endpointName:v,originalArgs:C,queryCacheKey:D},M[cp]=k,M)),U=i.endpoints[v].select(C),V=N(F),q=U($()),X=V.requestId,Z=V.abort,z=q.requestId!==X,W=(O=s.get(N))==null?void 0:O[D],Q=function(){return U($())},J=Object.assign(k?V.then(Q):z&&!W?Promise.resolve(q):Promise.all([W,V]).then(Q),{arg:C,requestId:X,subscriptionOptions:R,queryCacheKey:D,abort:Z,unwrap:function(){return My(this,null,function(){var oe;return Oy(this,function(Me){switch(Me.label){case 0:return[4,J];case 1:if(oe=Me.sent(),oe.isError)throw oe.error;return[2,oe.data]}})})},refetch:function(){return N(w(C,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){P&&N(u({queryCacheKey:D,requestId:X}))},updateSubscriptionOptions:function(oe){J.subscriptionOptions=oe,N(d({endpointName:v,requestId:X,queryCacheKey:D,options:oe}))}});if(!W&&!z&&!k){var se=s.get(N)||{};se[D]=J,s.set(N,se),J.then(function(){delete se[D],Object.keys(se).length||s.delete(N)})}return J}};return w}function g(v){return function(S,w){var C=w===void 0?{}:w,x=C.track,A=x===void 0?!0:x,T=C.fixedCacheKey;return function(P,L){var R=r({type:"mutation",endpointName:v,originalArgs:S,track:A,fixedCacheKey:T}),E=P(R),k=E.requestId,N=E.abort,$=E.unwrap,M=E.unwrap().then(function(U){return{data:U}}).catch(function(U){return{error:U}}),O=function(){P(c({requestId:k,fixedCacheKey:T}))},D=Object.assign(M,{arg:E.arg,requestId:k,abort:N,unwrap:$,unsubscribe:O,reset:O}),F=a.get(P)||{};return a.set(P,F),F[k]=D,D.then(function(){delete F[k],Object.keys(F).length||a.delete(P)}),T&&(F[T]=D,D.then(function(){F[T]===D&&(delete F[T],Object.keys(F).length||a.delete(P))})),D}}}}function YA(e){return e}function ise(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 C=i[g];w(s.internalActions.queryResultPatched({queryCacheKey:o({queryArgs:v,endpointDefinition:C,endpointName:g}),patches:S}))}},l=function(g,v,S){return function(w,C){var x,A,T=s.endpoints[g].select(v)(C()),P={patches:[],inversePatches:[],undo:function(){return w(s.util.patchQueryData(g,v,P.inversePatches))}};if(T.status===$t.uninitialized)return P;if("data"in T)if(Gr(T.data)){var L=q3(T.data,S),R=L[1],E=L[2];(x=P.patches).push.apply(x,R),(A=P.inversePatches).push.apply(A,E)}else{var k=S(T.data);P.patches.push({op:"replace",path:[],value:k}),P.inversePatches.push({op:"replace",path:[],value:T.data})}return w(s.util.patchQueryData(g,v,P.patches)),P}},u=function(g,v,S){return function(w){var C;return w(s.endpoints[g].initiate(v,(C={subscribe:!1,forceRefetch:!0},C[cp]=function(){return{data:S}},C)))}},c=function(g,v){return My(t,[g,v],function(S,w){var C,x,A,T,P,L,R,E,k,N,$,M,O,D,F,U,V,q,X=w.signal,Z=w.abort,z=w.rejectWithValue,W=w.fulfillWithValue,Q=w.dispatch,J=w.getState,se=w.extra;return Oy(this,function(oe){switch(oe.label){case 0:C=i[S.endpointName],oe.label=1;case 1:return oe.trys.push([1,8,,13]),x=YA,A=void 0,T={signal:X,abort:Z,dispatch:Q,getState:J,extra:se,endpoint:S.endpointName,type:S.type,forced:S.type==="query"?d(S,J()):void 0},P=S.type==="query"?S[cp]:void 0,P?(A=P(),[3,6]):[3,2];case 2:return
* @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 _d=I;function Sse(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wse=typeof Object.is=="function"?Object.is:Sse,xse=_d.useState,Cse=_d.useEffect,Ese=_d.useLayoutEffect,Tse=_d.useDebugValue;function Ase(e,t){var n=t(),r=xse({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return Ese(function(){i.value=n,i.getSnapshot=t,XS(i)&&o({inst:i})},[e,n,t]),Cse(function(){return XS(i)&&o({inst:i}),e(function(){XS(i)&&o({inst:i})})},[e]),Tse(n),n}function XS(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!wse(e,n)}catch{return!0}}function kse(e,t){return t()}var Pse=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?kse:Ase;bD.useSyncExternalStore=_d.useSyncExternalStore!==void 0?_d.useSyncExternalStore:Pse;_D.exports=bD;var Ose=_D.exports,SD={exports:{}},wD={};/**
* @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 m1=I,Rse=Ose;function Ise(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Mse=typeof Object.is=="function"?Object.is:Ise,Nse=Rse.useSyncExternalStore,Dse=m1.useRef,Lse=m1.useEffect,$se=m1.useMemo,Fse=m1.useDebugValue;wD.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=Dse(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=$se(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,Mse(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=Nse(e,o[0],o[1]);return Lse(function(){s.hasValue=!0,s.value=a},[a]),Fse(a),a};SD.exports=wD;var xD=SD.exports;const Bse=vu(xD);function zse(e){e()}let CD=zse;const Use=e=>CD=e,jse=()=>CD,ik=Symbol.for("react-redux-context"),ok=typeof globalThis<"u"?globalThis:{};function Vse(){var e;if(!I.createContext)return{};const t=(e=ok[ik])!=null?e:ok[ik]=new Map;let n=t.get(I.createContext);return n||(n=I.createContext(null),t.set(I.createContext,n)),n}const qa=Vse();function k5(e=qa){return function(){return I.useContext(e)}}const ED=k5(),Gse=()=>{throw new Error("uSES not initialized!")};let TD=Gse;const Hse=e=>{TD=e},Wse=(e,t)=>e===t;function qse(e=qa){const t=e===qa?ED:k5(e);return function(r,i={}){const{equalityFn:o=Wse,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();I.useRef(!0);const h=I.useCallback({[r.name](m){return r(m)}}[r.name],[r,d,s]),p=TD(u.addNestedSub,l.getState,c||l.getState,h,o);return I.useDebugValue(p),p}}const AD=qse();function Ny(){return Ny=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},Ny.apply(this,arguments)}var kD={exports:{}},st={};/** @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 $n=typeof Symbol=="function"&&Symbol.for,P5=$n?Symbol.for("react.element"):60103,O5=$n?Symbol.for("react.portal"):60106,y1=$n?Symbol.for("react.fragment"):60107,v1=$n?Symbol.for("react.strict_mode"):60108,_1=$n?Symbol.for("react.profiler"):60114,b1=$n?Symbol.for("react.provider"):60109,S1=$n?Symbol.for("react.context"):60110,R5=$n?Symbol.for("react.async_mode"):60111,w1=$n?Symbol.for("react.concurrent_mode"):60111,x1=$n?Symbol.for("react.forward_ref"):60112,C1=$n?Symbol.for("react.suspense"):60113,Kse=$n?Symbol.for("react.suspense_list"):60120,E1=$n?Symbol.for("react.memo"):60115,T1=$n?Symbol.for("react.lazy"):60116,Xse=$n?Symbol.for("react.block"):60121,Yse=$n?Symbol.for("react.fundamental"):60117,Zse=$n?Symbol.for("react.responder"):60118,Qse=$n?Symbol.for("react.scope"):60119;function di(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case P5:switch(e=e.type,e){case R5:case w1:case y1:case _1:case v1:case C1:return e;default:switch(e=e&&e.$$typeof,e){case S1:case x1:case T1:case E1:case b1:return e;default:return t}}case O5:return t}}}function PD(e){return di(e)===w1}st.AsyncMode=R5;st.ConcurrentMode=w1;st.ContextConsumer=S1;st.ContextProvider=b1;st.Element=P5;st.ForwardRef=x1;st.Fragment=y1;st.Lazy=T1;st.Memo=E1;st.Portal=O5;st.Profiler=_1;st.StrictMode=v1;st.Suspense=C1;st.isAsyncMode=function(e){return PD(e)||di(e)===R5};st.isConcurrentMode=PD;st.isContextConsumer=function(e){return di(e)===S1};st.isContextProvider=function(e){return di(e)===b1};st.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===P5};st.isForwardRef=function(e){return di(e)===x1};st.isFragment=function(e){return di(e)===y1};st.isLazy=function(e){return di(e)===T1};st.isMemo=function(e){return di(e)===E1};st.isPortal=function(e){return di(e)===O5};st.isProfiler=function(e){return di(e)===_1};st.isStrictMode=function(e){return di(e)===v1};st.isSuspense=function(e){return di(e)===C1};st.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===y1||e===w1||e===_1||e===v1||e===C1||e===Kse||typeof e=="object"&&e!==null&&(e.$$typeof===T1||e.$$typeof===E1||e.$$typeof===b1||e.$$typeof===S1||e.$$typeof===x1||e.$$typeof===Yse||e.$$typeof===Zse||e.$$typeof===Qse||e.$$typeof===Xse)};st.typeOf=di;kD.exports=st;var Jse=kD.exports,OD=Jse,eae={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},tae={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},RD={};RD[OD.ForwardRef]=eae;RD[OD.Memo]=tae;var ft={};/**
* @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.
2023-08-31 14:35:17 +00:00
*/var I5=Symbol.for("react.element"),M5=Symbol.for("react.portal"),A1=Symbol.for("react.fragment"),k1=Symbol.for("react.strict_mode"),P1=Symbol.for("react.profiler"),O1=Symbol.for("react.provider"),R1=Symbol.for("react.context"),nae=Symbol.for("react.server_context"),I1=Symbol.for("react.forward_ref"),M1=Symbol.for("react.suspense"),N1=Symbol.for("react.suspense_list"),D1=Symbol.for("react.memo"),L1=Symbol.for("react.lazy"),rae=Symbol.for("react.offscreen"),ID;ID=Symbol.for("react.module.reference");function Di(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case I5:switch(e=e.type,e){case A1:case P1:case k1:case M1:case N1:return e;default:switch(e=e&&e.$$typeof,e){case nae:case R1:case I1:case L1:case D1:case O1:return e;default:return t}}case M5:return t}}}ft.ContextConsumer=R1;ft.ContextProvider=O1;ft.Element=I5;ft.ForwardRef=I1;ft.Fragment=A1;ft.Lazy=L1;ft.Memo=D1;ft.Portal=M5;ft.Profiler=P1;ft.StrictMode=k1;ft.Suspense=M1;ft.SuspenseList=N1;ft.isAsyncMode=function(){return!1};ft.isConcurrentMode=function(){return!1};ft.isContextConsumer=function(e){return Di(e)===R1};ft.isContextProvider=function(e){return Di(e)===O1};ft.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===I5};ft.isForwardRef=function(e){return Di(e)===I1};ft.isFragment=function(e){return Di(e)===A1};ft.isLazy=function(e){return Di(e)===L1};ft.isMemo=function(e){return Di(e)===D1};ft.isPortal=function(e){return Di(e)===M5};ft.isProfiler=function(e){return Di(e)===P1};ft.isStrictMode=function(e){return Di(e)===k1};ft.isSuspense=function(e){return Di(e)===M1};ft.isSuspenseList=function(e){return Di(e)===N1};ft.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===A1||e===P1||e===k1||e===M1||e===N1||e===rae||typeof e=="object"&&e!==null&&(e.$$typeof===L1||e.$$typeof===D1||e.$$typeof===O1||e.$$typeof===R1||e.$$typeof===I1||e.$$typeof===ID||e.getModuleId!==void 0)};ft.typeOf=Di;function iae(){const e=jse();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 sk={notify(){},get:()=>[]};function oae(e,t){let n,r=sk;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=iae())}function u(){n&&(n(),n=void 0,r.clear(),r=sk)}const c={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:s,isSubscribed:a,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>r};return c}const sae=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",aae=sae?I.useLayoutEffect:I.useEffect;function ak(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Dy(e,t){if(ak(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])||!ak(e[n[i]],t[n[i]]))return!1;return!0}function lae({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",noopCheck:o="once"}){const s=I.useMemo(()=>{const u=oae(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,noopCheck:o}},[e,r,i,o]),a=I.useMemo(()=>e.getState(),[e]);aae(()=>{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||qa;return I.createElement(l.Provider,{value:s},n)}function MD(e=qa){const t=e===qa?ED:k5(e);return function(){const{store:r}=t();return r}}const ND=MD();function uae(e=qa){const t=e===qa?ND:MD(e);return function(){return t().dispatch}}const DD=uae();Hse(xD.useSyncExternalStoreWithSelector);Use(Zi.unstable_batchedUpdates);var cae=globalThis&&global
${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(Sa({title:sh("toast.serverError"),status:"error",description:py(r,"detail","Unknown Error"),duration:i}))}),e.addMatcher(dpe,(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(Sa({title:sh("toast.serverError"),status:"error",description:see(n.payload.data.error_type)}))})}}),{setIsProcessing:gRe,setShouldConfirmOnDelete:mRe,setCurrentStatus:yRe,setIsCancelable:vRe,setEnableImageDebugging:_Re,addToast:Wt,clearToastQueue:bRe,cancelScheduled:SRe,scheduledCancelAborted:wRe,cancelTypeChanged:xRe,subscribedNodeIdsSet:CRe,consoleLogLevelChanged:ERe,shouldLogToConsoleChanged:TRe,isPersistedChanged:ARe,shouldAntialiasProgressImageChanged:kRe,languageChanged:PRe,progressImageSet:ape,shouldUseNSFWCheckerChanged:lpe,shouldUseWatermarkerChanged:upe}=X$.actions,cpe=X$.reducer,dpe=Ni($1,sL,lL),fpe={searchFolder:null,advancedAddScanModel:null},Y$=Ht({name:"modelmanager",initialState:fpe,reducers:{setSearchFolder:(e,t)=>{e.searchFolder=t.payload},setAdvancedAddScanModel:(e,t)=>{e.advancedAddScanModel=t.payload}}}),{setSearchFolder:ORe,setAdvancedAddScanModel:RRe}=Y$.actions,hpe=Y$.reducer,Z$={shift:!1,ctrl:!1,meta:!1},Q$=Ht({name:"hotkeys",initialState:Z$,reducers:{shiftKeyPressed:(e,t)=>{e.shift=t.payload},ctrlKeyPressed:(e,t)=>{e.ctrl=t.payload},metaKeyPressed:(e,t)=>{e.meta=t.payload}}}),{shiftKeyPressed:IRe,ctrlKeyPressed:MRe,metaKeyPressed:NRe}=Q$.actions,ppe=Q$.reducer,J$=["txt2img","img2img","unifiedCanvas","nodes","modelManager","batch"],_8=(e,t)=>{typeof t=="number"?e.activeTab=t:e.activeTab=J$.indexOf(t)},eF={activeTab:0,shouldShowImageDetails:!1,shouldUseCanvasBetaLayout:!1,shouldShowExistingModelsInSearch:!1,shouldUseSliders:!1,shouldHidePreview:!1,shouldShowProgressInViewer:!0,shouldShowEmbeddingPicker:!1,shouldAutoChangeDimensions:!1,favoriteSchedulers:[],globalContextMenuCloseTrigger:0,panels:{}},tF=Ht({name:"ui",initialState:eF,reducers:{setActiveTab:(e,t)=>{_8(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(d1,t=>{_8(t,"img2img")})}}),{setActiveTab:gpe,setShouldShowImageDetails:DRe,setShouldUseCanvasBetaLayout:LRe,setShouldShowExistingModelsInSearch:$Re,setShouldUseSliders:FRe,setShouldHidePreview:BRe,setShouldShowProgressInViewer:zRe,favoriteSchedulersChanged:URe,toggleEmbeddingPicker:jRe,setShouldAutoChangeDimensions:VRe,contextMenusClosed:GRe,panelsChanged:HRe}=tF.actions,mpe=tF.reducer,ype=Yj(zH);nF=Gx=void 0;var vpe=ype,_pe=function(){var t=[],n=[],r=void 0,i=function(u){return r=u,function(c){return function(d){return vpe.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}},W1=_pe(),bpe=W1.enhancer,Spe=W1.addMiddleware;W1.removeMi
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ope(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 Rpe(e){if(Array.isArray(e))return e}function d2(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=iF(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 iF(e,t){if(e){if(typeof e=="string")return S8(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 S8(e,t)}}function S8(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 ev(e){"@babel/helpers - typeof";return ev=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},ev(e)}var w8=function(t){var n;return(n=Object.prototype.toString.call(t).match(/\[object (.*)\]/))===null||n===void 0?void 0:n[1]},x8=function(t){return/^\[object (?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)Array\]$/.test(Object.prototype.toString.call(t))},Ipe=function e(t,n){if(t===n)return!0;if(ev(t)!=="object"||ev(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(x8(t)&&x8(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=w8(t),s=w8(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=d2(t.entries()),l;try{for(a.s();!(l=a.n()).done;){var u=c2(l.value,1),c=u[0];if(!n.has(c))return!1}}catch(x){a.e(x)}finally{a.f()}var d=d2(t.entries()),f;try{for(d.s();!(f=d.n()).done;){var h=c2(f.value,2),p=h[0],m=h[1];if(!e(m,n.get(p)))return!1}}catch(x){d.e(x)}finally{d.f()}return!0}if(o==="Set"&&s==="Set"){if(t.size!==n.size)return!1;var b=d2(t.entries()),_;try{for(b.s();!(_=b.n()).done;){var y=c2(_.value,1),g=y[0];if(!n.has(g))return!1}}catch(x){b.e(x)}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 C=v[w];if(!e(t[C],n[C]))return!1}return o!=="Object"&&s!=="Object"?t===n:!0};const uE=Ipe;function C8(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 oF(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function s(l){C8(o,r,i,s,a,"next",l)}function a(l){C8(o,r,i,s,a,"throw",l)}s(void 0)})}}var Mpe=function(){var e=oF(function*(t,n,r){var i=r.prefix,o=r.driver,s=r.serialize;if(!uE(t,n))return o.setItem("".concat(i,"rootState"),s(t,"rootState"))});return function(n,r,i){return e.apply(this,arguments)}}(),Npe=function(t,n,r){var i=r.prefix,o=r.driver,s=r.serialize;return Promise.all(Object.keys(t).map(function(a){return uE(t[a],n[a])?Promise.resolve():o.setItem("".concat(i).concat(a),s(t[a],a))}))},Dpe=function(){var e=oF(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?Mpe:Npe;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 E8(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)}
`&&(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(C){var m=new r(this.grammar,this.current+1);this.table.push(m);var f=new Error(this.reportLexerError(C));throw f.offset=this.current,f.token=C.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}})})(xF);var bme=xF.exports,hu={},CF={},ll={};ll.__esModule=void 0;ll.__esModule=!0;var Sme=typeof Object.setPrototypeOf=="function",wme=typeof Object.getPrototypeOf=="function",xme=typeof Object.defineProperty=="function",Cme=typeof Object.create=="function",Eme=typeof Object.prototype.hasOwnProperty=="function",Tme=function(t,n){Sme?Object.setPrototypeOf(t,n):t.__proto__=n};ll.setPrototypeOf=Tme;var Ame=function(t){return wme?Object.getPrototypeOf(t):t.__proto__||t.prototype};ll.getPrototypeOf=Ame;var L8=!1,kme=function e(t,n,r){if(xme&&!L8)try{Object.defineProperty(t,n,r)}catch{L8=!0,e(t,n,r)}else t[n]=r.value};ll.defineProperty=kme;var EF=function(t,n){return Eme?t.hasOwnProperty(t,n):t[n]===void 0};ll.hasOwnProperty=EF;var Pme=function(t,n){if(Cme)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)EF(n,o)&&(i[o]=n[o].value);return i};ll.objectCreate=Pme;(function(e){e.__esModule=void 0,e.__esModule=!0;var t=ll,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})(CF);var TF=De&&De.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(
${M}`,F=`,
${M}`);const W=Math.min(O.length,C);let Q=0;for(;Q<W-1;Q++){const se=x(String(Q),O,k,N,$,M);D+=se!==void 0?se:"null",D+=F}const J=x(String(Q),O,k,N,$,M);if(D+=J!==void 0?J:"null",O.length-1>C){const se=O.length-C-1;D+=`${F}"... ${h(se)} not stringified"`}return $!==""&&(D+=`
${U}`),k.pop(),`[${D}]`}let V=Object.keys(O);const q=V.length;if(q===0)return"{}";if(w<k.length+1)return'"[Object]"';let X="",Z="";$!==""&&(M+=$,F=`,
${M}`,X=" ");const z=Math.min(q,C);S&&!l(O)&&(V=s(V)),k.push(O);for(let W=0;W<z;W++){const Q=V[W],J=x(Q,O,k,N,$,M);J!==void 0&&(D+=`${Z}${o(Q)}:${X}${J}`,Z=F)}if(q>C){const W=q-C;D+=`${Z}"...":${X}"${h(W)} not stringified"`,Z=F}return $!==""&&Z.length>1&&(D=`
${M}${D}
${U}`),k.pop(),`{${D}}`}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(R,E,k,N,$,M){switch(typeof E=="object"&&E!==null&&typeof E.toJSON=="function"&&(E=E.toJSON(R)),typeof E){case"string":return o(E);case"object":{if(E===null)return"null";if(k.indexOf(E)!==-1)return g;const O=M;let D="",F=",";if(Array.isArray(E)){if(E.length===0)return"[]";if(w<k.length+1)return'"[Array]"';k.push(E),$!==""&&(M+=$,D+=`
${M}`,F=`,
${M}`);const q=Math.min(E.length,C);let X=0;for(;X<q-1;X++){const z=A(String(X),E[X],k,N,$,M);D+=z!==void 0?z:"null",D+=F}const Z=A(String(X),E[X],k,N,$,M);if(D+=Z!==void 0?Z:"null",E.length-1>C){const z=E.length-C-1;D+=`${F}"... ${h(z)} not stringified"`}return $!==""&&(D+=`
${O}`),k.pop(),`[${D}]`}k.push(E);let U="";$!==""&&(M+=$,F=`,
${M}`,U=" ");let V="";for(const q of N){const X=A(q,E[q],k,N,$,M);X!==void 0&&(D+=`${V}${o(q)}:${U}${X}`,V=F)}return $!==""&&V.length>1&&(D=`
${M}${D}
${O}`),k.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 T(R,E,k,N,$){switch(typeof E){case"string":return o(E);case"object":{if(E===null)return"null";if(typeof E.toJSON=="function"){if(E=E.toJSON(R),typeof E!="object")return T(R,E,k,N,$);if(E===null)return"null"}if(k.indexOf(E)!==-1)return g;const M=$;if(Array.isArray(E)){if(E.length===0)return"[]";if(w<k.length+1)return'"[Array]"';k.push(E),$+=N;let X=`
${$}`;const Z=`,
${$}`,z=Math.min(E.length,C);let W=0;for(;W<z-1;W++){const J=T(String(W),E[W],k,N,$);X+=J!==void 0?J:"null",X+=Z}const Q=T(String(W),E[W],k,N,$);if(X+=Q!==void 0?Q:"null",E.length-1>C){const J=E.length-C-1;X+=`${Z}"... ${h(J)} not stringified"`}return X+=`
${M}`,k.pop(),`[${X}]`}let O=Object.keys(E);const D=O.length;if(D===0)return"{}";if(w<k.length+1)return'"[Object]"';$+=N;const F=`,
${$}`;let U="",V="",q=Math.min(D,C);l(E)&&(U+=u(E,F,C),O=O.slice(E.length),q-=E.length,V=F),S&&(O=s(O)),k.push(E);for(let X=0;X<q;X++){const Z=O[X],z=T(Z,E[Z],k,N,$);z!==void 0&&(U+=`${V}${o(Z)}: ${z}`,V=F)}if(D>C){const X=D-C;U+=`${V}"...": "${h(X)} not stringified"`,V=F}return V!==""&&(U=`
${$}${U}
${M}`),k.pop(),`{${U}}`}case"number":return isFinite(E)?String(E):y?y(E):"null";case"boolean":return E===!0?"true":"false";case"undefined":return;case"bigint":if(v)return String(E);default:return y?y(E):void 0}}function P(R,E,k){switch(typeof E){case"string":return o(E);case"object":{if(E===null)return"null";if(typeof E.toJSON=="function"){if(E=E.toJSON(R),typeof E!="object")return P(R,E,k);if(E===null)return"null"}if(k.indexOf(E)!==-1)return g;let N="";if(Array.isArray(E)){if(E.length===0)return"[]";if(w<k.length+1)return'"[Array]"';k.push(E);const F=Math.min(E.length,C);let U=0;for(;U<F-1;U++){const q=P(String(U),E[U],k);N+=q!==void 0?q:"null",N+=","}const V=P(String(U),E[U],k);if(N+=V!==void 0?V:"null",E.length-1>C){const q=E.length-C-1;N+=`,"... ${h(q)} not stringified"`}return k.pop(),`[${N}]`}let $=Object.keys(E);const M=$.length;if(M===0)return"{}";if(w<k.length+1)return'"[Object]"';let O="",D=Math.min(M,C);l(E)&&(N+=u(E,",",C),$=$.slice(E.length),D-=E.length,O=","),S&&($=s($)),k.push(E);for(let F=0;F<D;F++){const U=$[F],V=P(U,E[U],k);V!==void 0&&(N+=`${O}${o(U)}:${V}`,O=",")}if(M>C){const F=M-C;N+=`${O}"...":"${h(F)} not stringified"`}return k.pop(),`{${N}}`}case"number":return isFinite(E)?String(E):y?y(E):"null";case"boolean":return E===!0?"true":"false";case"undefined":return;case"bigint":if(v)return String(E);default:return y?y(E):void 0}}function L(R,E,k){if(arguments.length>1){let N="";if(typeof k=="number"?N=" ".repeat(Math.min(k,10)):typeof k=="string"&&(N=k.slice(0,10)),E!=null){if(typeof E=="function")return x("",{"":R},[],E,N,"");if(Array.isArray(E))return A("",R,[],p(E),N,"")}if(N.length!==0)return T("",R,[],N,"")}return P("",R,[])}return L}})(Xx,Xx.exports);var Qme=Xx.exports;(function(e){var t=De&&De.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(e,"__esModule",{value:!0}),e.createLogger=void 0;const n=pu,r=_g,i=MF,o=NF,s=t(dE),a=t(Qme);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,C,x,A,T,P,L,R,E)=>{g.child({logLevel:v})(S,w,C,x,A,T,P,L,R,E)},b=1e3,_=(g,v)=>(S,w,C,x,A,T,P,L,R,E)=>{const k=(0,a.default)({a:S,b:w,c:C,d:x,e:A,f:T,g:P,h:L,i:R,j:E,logLevel:v});if(!k)throw new Error("Expected key to be a string");const N=c().onceLog;N.has(k)||(N.add(k),N.size>b&&N.clear(),g.child({logLevel:v})(S,w,C,x,A,T,P,L,R,E))},y=(g,v={},S=[])=>{const w=(C,x,A,T,P,L,R,E,k,N)=>{const $=Date.now(),M=p();let O;h()?O=f():O=d();let D,F;if(typeof C=="string"?D={...O.messageContext,...v}:D={...O.messageContext,...v,...C},typeof C=="string"&&x===void 0)F=C;else if(typeof C=="string"){if(!C.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)(C,x,A,T,P,L,R,E,k,N)}else{let V=x;if(typeof x!="string")if(x===void 0)V="";else throw new TypeError("Message must be a string. Received "+typeof x+".");F=(0,o.printf)(V,A,T,P,L,R,E,k,N)}let U={context:D,message:F,sequence:M,time:$,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=C=>{let x;return h()?x=f():x=d(),typeof C=="function"?(0,e.createLogger)(g,{...x.messageContext,...v,...C},[C,...S]):(0,e.createLogger)(g,{...x.messageContext,...v,...C},S)},w.getContext=()=>{let C;return h()?C=f():C=d(),{...C.messageContext,...v}},w.adopt=async(C,x)=>{if(!h())return l===!1&&(l=!
background-color: `.concat(p.backgroundColor,`;
color: `).concat(p.color,`;
font-weight: bold;
`),b=`
color: `.concat(c0e[f].color,`;
`),_=`
color: inherit;
2023-08-31 14:35:17 +00:00
`;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,_)}}};q1.createLogWriter=f0e;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createLogWriter=void 0;var t=q1;Object.defineProperty(e,"createLogWriter",{enumerable:!0,get:function(){return t.createLogWriter}})})(cF);vg.ROARR.write=cF.createLogWriter();const LF={};vg.Roarr.child(LF);const f_=ig(vg.Roarr.child(LF)),re=e=>f_.get().child({namespace:e}),qRe=["trace","debug","info","warn","error","fatal"],KRe={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},h0e=()=>{le({actionCreator:ene,effect:async(e,{dispatch:t,getState:n})=>{const r=re("canvas"),i=n(),{sessionId:o,isProcessing:s}=i.system,a=e.payload;if(s){if(!a){r.debug("No canvas session, skipping cancel");return}if(a!==o){r.debug({canvasSessionId:a,session_id:o},"Canvas session does not match global session, skipping cancel");return}t(al({session_id:o}))}}})};me("app/appStarted");const p0e=()=>{le({matcher:ne.endpoints.listImages.matchFulfilled,effect:async(e,{dispatch:t,unsubscribe:n,cancelActiveListeners:r})=>{if(e.meta.arg.queryCacheKey!==Zr({board_id:"none",categories:Pn}))return;r(),n();const i=e.payload;if(i.ids.length>0){const o=Tt.getSelectors().selectAll(i)[0];t(jo(o??null))}}})},pE=Ka.injectEndpoints({endpoints:e=>({getAppVersion:e.query({query:()=>({url:"app/version",method:"GET"}),providesTags:["AppVersion"],keepUnusedDataFor:864e5}),getAppConfig:e.query({query:()=>({url:"app/config",method:"GET"}),providesTags:["AppConfig"],keepUnusedDataFor:864e5})})}),{useGetAppVersionQuery:XRe,useGetAppConfigQuery:YRe}=pE,g0e=()=>{le({matcher:pE.endpoints.getAppConfig.matchFulfilled,effect:async(e,{getState:t,dispatch:n})=>{const{infill_methods:r=[],nsfw_methods:i=[],watermarking_methods:o=[]}=e.payload,s=t().generation.infillMethod;r.includes(s)||n(Rte(r[0])),i.includes("nsfw_checker")||n(lpe(!1)),o.includes("invisible_watermark")||n(upe(!1))}})},m0e=me("app/appStarted"),y0e=()=>{le({actionCreator:m0e,effect:async(e,{unsubscribe:t,cancelActiveListeners:n})=>{n(),t()}})},gE={memoizeOptions:{resultEqualityCheck:ng}},$F=(e,t)=>{var d;const{generation:n,canvas:r,nodes:i,controlNet:o}=e,s=((d=n.initialImage)==null?void 0:d.imageName)===t,a=r.layerState.objects.some(f=>f.kind==="image"&&f.imageName===t),l=i.nodes.filter(An).some(f=>nh(f.data.inputs,h=>{var p;return h.type==="ImageField"&&((p=h.value)==null?void 0:p.image_name)===t})),u=nh(o.controlNets,f=>f.controlImage===t||f.processedControlImage===t);return{isInitialImage:s,isCanvasImage:a,isNodesImage:l,isControlNetImage:u}},v0e=fr([e=>e],e=>{const{imagesToDelete:t}=e.deleteImageModal;return t.length?t.map(r=>$F(e,r.image_name)):[]},gE),_0e=()=>{le({matcher:ne.endpoints.deleteBoardAndImages.matchFulfilled,effect:async(e,{dispatch:t,getState:n})=>{const{deleted_images:r}=e.payload;let i=!1,o=!1,s=!1,a=!1;const l=n();r.forEach(u=>{const c=$F(l,u);c.isInitialImage&&!i&&(t(m5()),i=!0),c.isCanvasImage&&!o&&(t(y5()),o=!0),c.isNodesImage&&!s&&(t(Mhe()),s=!0),c.isControlNetImage&&!a&&(t(Vae()),a=!0)})}})},b0e=()=>{le({matcher:Ni(Ax,Fy),effect:async(e,{getState:t,dispatch:n,condition:r,cancelActiveListeners:i})=>{i();const o=t(),s=Ax.match(e)?e.payload:o.gallery.selectedBoardId,l=(Fy.match(e)?e.payload:o.gallery.galleryView)==="images"?Pn:_a,u={board_id:s??"none",categories:l};if(await r(()=>ne.endpoints.listImages.select(u)(t()).isSuccess,5e3)){const{data:d}=ne.endpoints.listImages.select(u)(t());if(d){const f=$y.selectAll(d)[0];n(jo(f??null))}else n(jo(null))}else n(jo(null))}})},S0e=me("canvas/canvasSavedToGallery"),w0e=me("canvas/canvasMaskSavedToGallery"),x0e=me("canvas/canvasCopiedToClipboard"),C0e=me("canvas/canvasDownloadedAsImage"),E0e=me("canvas/canvasMerged"),T0e=me("canvas/stagingAreaImageSaved"),A0e=me("canvas/canvasMaskToControlNet"),k0e=me("canvas/canvasImageToControlNet");let FF=null,BF=null;const ZRe=e=>{FF=e},h_=()=>FF,QRe=e=>{BF=e},P0e=()=>BF,O0e=async e=>new Promise((
`),n=+this.fontSize(),r=0,i=this.lineHeight()*n,o=this.attrs.width,s=this.attrs.height,a=o!==nc&&o!==void 0,l=s!==nc&&s!==void 0,u=this.padding(),c=o-u*2,d=s-u*2,f=0,h=this.wrap(),p=h!==rP,m=h!==kve&&p,b=this.ellipsis();this.textArr=[],C2().font=this._getContextFont();for(var _=b?this._getTextWidth(x2):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,C=v.length,x="",A=0;w<C;){var T=w+C>>>1,P=v.slice(0,T+1),L=this._getTextWidth(P)+_;L<=c?(w=T+1,x=P,A=L):C=T}if(x){if(m){var R,E=v[x.length],k=E===Nm||E===tP;k&&A<=c?R=x.length:R=Math.max(x.lastIndexOf(Nm),x.lastIndexOf(tP))+1,R>0&&(w=R,x=x.slice(0,w),A=this._getTextWidth(x))}x=x.trimRight(),this._addTextLine(x),r=Math.max(r,A),f+=i;var N=this._shouldHandleEllipsis(f);if(N){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!==nc&&i!==void 0,s=this.padding(),a=i-s*2,l=this.wrap(),u=l!==rP;return!u||o&&t+r>a}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,n=t!==nc&&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+x2)<i;a||(s.text=s.text.slice(0,s.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(s.text+x2)}}getStrokeScaleEnabled(){return!0}};gu.Text=un;un.prototype._fillFunc=Rve;un.prototype._strokeFunc=Ive;un.prototype.className=wve;un.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];(0,yve._registerNode)(un);Rr.Factory.overWriteSetter(un,"width",(0,fl.getNumberOrAutoValidator)());Rr.Factory.overWriteSetter(un,"height",(0,fl.getNumberOrAutoValidator)());Rr.Factory.addGetterSetter(un,"fontFamily","Arial");Rr.Factory.addGetterSetter(un,"fontSize",12,(0,fl.getNumberValidator)());Rr.Factory.addGetterSetter(un,"fontStyle",uB);Rr.Factory.addGetterSetter(un,"fontVariant",uB);Rr.Factory.addGetterSetter(un,"padding",0,(0,fl.getNumberValidator)());Rr.Factory.addGetterSetter(un,"align",lB);Rr.Factory.addGetterSetter(un,"verticalAlign",xve);Rr.Factory.addGetterSetter(un,"lineHeight",1,(0,fl.getNumberValidator)());Rr.Factory.addGetterSetter(un,"wrap",Ave);Rr.Factory.addGetterSetter(un,"ellipsis",!1,(0,fl.getBooleanValidator)());Rr.Factory.addGetterSetter(un,"letterSpacing",0,(0,fl.getNumberValidator)());Rr.Factory.addGetterSetter(un,"text","",(0,fl.getStringValidator)());Rr.Factory.addGetterSetter(un,"textDecoration","");var L_={};Object.defineProperty(L_,"__esModule",{value:!0});L_.TextPath=void 0;const E2=Yt,mo=Ne,Nve=Cn,Cf=qd,T2=gu,dB=be,Dve=Le;var Lve="",fB="normal";function hB(e){e.fillText(this.partialText,0,0)}function pB(e){e.strokeText(this.partialText,0,0)}class En extends Nve.Shape{constructor(t){super(t),this.dummyCanvas=E2.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 Cf.Path.getPathLength(this.dataArray)}_getPointAtLength(t){if(!this.attrs.data)return null;const n=this.pathLength;return t-1>n?null:Cf.Path.getPointAtLengthOfDataArray(t,this.dataArray)}_readDataAttribute(){this.dataArray=Cf.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]),I.createElement(G4e,{isPresent:t,childRef:r,sizeRef:i},I.cloneElement(e,{ref:r}))}const q2=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s})=>{const a=Lz(W4e),l=I.useId(),u=I.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 I.useMemo(()=>{a.forEach((c,d)=>a.set(d,!1))},[n]),I.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=I.createElement(H4e,{isPresent:n},e)),I.createElement(Tg.Provider,{value:u},e)};function W4e(){return new Map}function q4e(e){return I.useEffect(()=>()=>e(),[])}const fc=e=>e.key||"";function K4e(e,t){e.forEach(n=>{const r=fc(n);t.set(r,n)})}function X4e(e){const t=[];return I.Children.forEach(e,n=>{I.isValidElement(n)&&t.push(n)}),t}const Y4e=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:s="sync"})=>{const a=I.useContext(i4).forceRender||V4e()[0],l=zU(),u=X4e(e);let c=u;const d=I.useRef(new Map).current,f=I.useRef(c),h=I.useRef(new Map).current,p=I.useRef(!0);if(t4(()=>{p.current=!1,K4e(u,h),f.current=c}),q4e(()=>{p.current=!0,h.clear(),d.clear()}),p.current)return I.createElement(I.Fragment,null,c.map(y=>I.createElement(q2,{key:fc(y),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:s},y)));c=[...c];const m=f.current.map(fc),b=u.map(fc),_=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 C=()=>{h.delete(g),d.delete(g);const x=f.current.findIndex(A=>A.key===g);if(f.current.splice(x,1),!d.size){if(f.current=u,l.current===!1)return;a(),r&&r()}};w=I.createElement(q2,{key:fc(v),isPresent:!1,onExitComplete:C,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:I.createElement(q2,{key:fc(y),isPresent:!0,presenceAffectsLayout:o,mode:s},y)}),I.createElement(I.Fragment,null,d.size?c:c.map(y=>I.cloneElement(y)))};var Z4e=Fwe({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),UU=ml((e,t)=>{const n=e4("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:s="transparent",className:a,...l}=JE(e),u=XE("chakra-spinner",a),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:s,borderLeftColor:s,animation:`${Z4e} ${o} linear infinite`,...n};return Y.jsx(Za.div,{ref:t,__css:c,className:u,...l,children:r&&Y.jsx(Za.span,{srOnly:!0,children:r})})});UU.displayName="Spinner";var LC=ml(function(t,n){const{htmlWidth:r,htmlHeight:i,alt:o,...s}=t;return Y.jsx("img",{width:r,height:i,ref:n,alt:o,...s})});LC.displayName="NativeImage";function Q4e(e){const{loading:t,src:n,srcSet:r,onLoad:i,onError:o,crossOrigin:s,sizes:a,ignoreFallback:l}=e,[u,c]=I.useState("pending");I.useEffect(()=>{c(n?"loading":"pending")},[n]);const d=I.useRef(),f=I.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 Bwe(()=>{if(!l)return u==="loading"&&f(),()=>{h()}},[u,f,l]),l?"loaded":u}var J4e=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError";function eTe(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}var w4=ml(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,_=Q4e({...t,crossOrigin:d,ignoreFallback:b}),y=J4e(_,f),g={ref:n,objectFit:l,objectPosition:a,...b?p:eTe(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.
2023-08-31 14:35:17 +00:00
`},BTe={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 zTe(e){let{announcements:t=BTe,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=FTe}=e;const{announce:o,announcement:s}=DTe(),a=Tb("DndLiveRegion"),[l,u]=I.useState(!1);if(I.useEffect(()=>{u(!0)},[]),LTe(I.useMemo(()=>({onDragStart(d){let{active:f}=d;o(t.onDragStart({active:f}))},onDragMove(d){let{active:f,over:h}=d;t.onDragMove&&o(t.onDragMove({active:f,over:h}))},onDragOver(d){let{active:f,over:h}=d;o(t.onDragOver({active:f,over:h}))},onDragEnd(d){let{active:f,over:h}=d;o(t.onDragEnd({active:f,over:h}))},onDragCancel(d){let{active:f,over:h}=d;o(t.onDragCancel({active:f,over:h}))}}),[o,t])),!l)return null;const c=dt.createElement(dt.Fragment,null,dt.createElement(ITe,{id:r,value:i.draggable}),dt.createElement(NTe,{id:a,announcement:s}));return n?Zi.createPortal(c,n):c}var bn;(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"})(bn||(bn={}));function kv(){}function yR(e,t){return I.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function UTe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return I.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const ho=Object.freeze({x:0,y:0});function jTe(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function VTe(e,t){const n=Lp(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 GTe(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function HTe(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function WTe(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 qTe(e,t){if(!e||e.length===0)return null;const[n]=e;return t?n[t]:n}function KTe(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 XTe=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=KTe(a,t);l>0&&i.push({id:s,data:{droppableContainer:o,value:l}})}}return i.sort(HTe)};function YTe(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 ZTe=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&&YTe(r,a)){const u=WTe(a).reduce((d,f)=>d+jTe(r,f),0),c=Number((u/4).toFixed(4));i.push({id:s,data:{droppableContainer:o,value:c}})}}return i.sort(GTe)};function QTe(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function JU(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:ho}function JTe(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 e6e=JTe(1);function ej(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 t6e(e,t,n){const r=ej(t);if(!r)return e;const{scaleX:i,scaleY:o,x:s,y:a}=r,l=e.left-s-(1-i)*parseFloat