mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
126 lines
1.1 MiB
JavaScript
126 lines
1.1 MiB
JavaScript
|
function k8(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 ye=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ra(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function FL(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var i=[null];i.push.apply(i,arguments);var o=Function.bind.apply(t,i);return new o}return 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 I8={exports:{}},ym={},M8={exports:{}},we={};/**
|
||
|
* @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 sf=Symbol.for("react.element"),BL=Symbol.for("react.portal"),jL=Symbol.for("react.fragment"),VL=Symbol.for("react.strict_mode"),zL=Symbol.for("react.profiler"),UL=Symbol.for("react.provider"),GL=Symbol.for("react.context"),HL=Symbol.for("react.forward_ref"),qL=Symbol.for("react.suspense"),WL=Symbol.for("react.memo"),KL=Symbol.for("react.lazy"),$5=Symbol.iterator;function YL(e){return e===null||typeof e!="object"?null:(e=$5&&e[$5]||e["@@iterator"],typeof e=="function"?e:null)}var N8={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D8=Object.assign,L8={};function Cu(e,t,n){this.props=e,this.context=t,this.refs=L8,this.updater=n||N8}Cu.prototype.isReactComponent={};Cu.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")};Cu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function $8(){}$8.prototype=Cu.prototype;function s_(e,t,n){this.props=e,this.context=t,this.refs=L8,this.updater=n||N8}var a_=s_.prototype=new $8;a_.constructor=s_;D8(a_,Cu.prototype);a_.isPureReactComponent=!0;var F5=Array.isArray,F8=Object.prototype.hasOwnProperty,l_={current:null},B8={key:!0,ref:!0,__self:!0,__source:!0};function j8(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)F8.call(t,r)&&!B8.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:sf,type:e,key:o,ref:s,props:i,_owner:l_.current}}function XL(e,t){return{$$typeof:sf,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function u_(e){return typeof e=="object"&&e!==null&&e.$$typeof===sf}function QL(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var B5=/\/+/g;function Iv(e,t){return typeof e=="object"&&e!==null&&e.key!=null?QL(""+e.key):t.toString(36)}function np(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 sf:case BL:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Iv(s,0):r,F5(i)?(n="",e!=null&&(n=e.replace(B5,"$&/")+"/"),np(i,t,n,"",function(u){return u})):i!=null&&(u_(i)&&(i=XL(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(B5,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",F5(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+Iv(o,a);s+=np(o,t,n,l,i)}else if(l=YL(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+Iv(o,a++),s+=np(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 ih(e,t,n){if(e==null)return e;var r=[],i=0;return np(e,r,"","",function(o){return t.call(n,o,i++)}),r}function JL(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 Ln={current:null},rp={transition:null},ZL={ReactCurrentDispatcher:Ln,ReactCurrentBatchConfig:rp,ReactCurrentOwner:l_};we.Children={map:ih,forEach:function(e,t,n){ih(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ih(e,function(){t++}),t},toArray:function(e){return ih(e,function(t){return t})||[]},only:function(e){if(!u_(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};we.Component=Cu;we.Fragment=jL;we.Profiler=zL;we
|
||
|
* @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 e$=P,t$=Symbol.for("react.element"),n$=Symbol.for("react.fragment"),r$=Object.prototype.hasOwnProperty,i$=e$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o$={key:!0,ref:!0,__self:!0,__source:!0};function V8(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)r$.call(t,r)&&!o$.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:t$,type:e,key:o,ref:s,props:i,_owner:i$.current}}ym.Fragment=n$;ym.jsx=V8;ym.jsxs=V8;I8.exports=ym;var H=I8.exports,Cb={},z8={exports:{}},mr={},U8={exports:{}},G8={};/**
|
||
|
* @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(k,D){var L=k.length;k.push(D);e:for(;0<L;){var j=L-1>>>1,U=k[j];if(0<i(U,D))k[j]=D,k[L]=U,L=j;else break e}}function n(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var D=k[0],L=k.pop();if(L!==D){k[0]=L;e:for(var j=0,U=k.length,G=U>>>1;j<G;){var K=2*(j+1)-1,Y=k[K],X=K+1,B=k[X];if(0>i(Y,L))X<U&&0>i(B,Y)?(k[j]=B,k[X]=L,j=X):(k[j]=Y,k[K]=L,j=K);else if(X<U&&0>i(B,L))k[j]=B,k[X]=L,j=X;else break e}}return D}function i(k,D){var L=k.sortIndex-D.sortIndex;return L!==0?L:k.id-D.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,S=typeof setTimeout=="function"?setTimeout:null,v=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(k){for(var D=n(u);D!==null;){if(D.callback===null)r(u);else if(D.startTime<=k)r(u),D.sortIndex=D.expirationTime,t(l,D);else break;D=n(u)}}function b(k){if(m=!1,g(k),!p)if(n(l)!==null)p=!0,I(_);else{var D=n(u);D!==null&&N(b,D.startTime-k)}}function _(k,D){p=!1,m&&(m=!1,v(E),E=-1),h=!0;var L=f;try{for(g(D),d=n(l);d!==null&&(!(d.expirationTime>D)||k&&!R());){var j=d.callback;if(typeof j=="function"){d.callback=null,f=d.priorityLevel;var U=j(d.expirationTime<=D);D=e.unstable_now(),typeof U=="function"?d.callback=U:d===n(l)&&r(l),g(D)}else r(l);d=n(l)}if(d!==null)var G=!0;else{var K=n(u);K!==null&&N(b,K.startTime-D),G=!1}return G}finally{d=null,f=L,h=!1}}var w=!1,C=null,E=-1,A=5,T=-1;function R(){return!(e.unstable_now()-T<A)}function F(){if(C!==null){var k=e.unstable_now();T=k;var D=!0;try{D=C(!0,k)}finally{D?M():(w=!1,C=null)}}else w=!1}var M;if(typeof y=="function")M=function(){y(F)};else if(typeof MessageChannel<"u"){var x=new MessageChannel,O=x.port2;x.port1.onmessage=F,M=function(){O.postMessage(null)}}else M=function(){S(F,0)};function I(k){C=k,w||(w=!0,M())}function N(k,D){E=S(function(){k(e.unstable_now())},D)}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(k){k.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,I(_))},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(k){switch(f){case 1:case 2:case 3:var D=3;break;default:D=f}var L=f;f=D;try{return k()}finally{f=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(k,D){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var L=f;f=k;try{return D()}finally{f=L}},e.unstable_scheduleCallback=function(k,D,L){var j=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?j+L:j):L=j,k){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=L+U,k={id:c++,callback:D,priorityLevel:k,startTime:L,expirationTime:U,sortIndex:-1},L>j?(k.sortIndex=L,t(u,k),n(l)===null&&k===n(u)&&(m?(v(E),E=-1):m=!0,N(b,L-j))):(k.sortIndex=U,t(l,k),p||h||(p=!0,I(_))),k},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(k){var D=f;return function(){var L=f;f=D;try{return k.apply(this,arguments)}finally{f=L}}}})(G8);U8.exports=G8;var s$=U8.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 H8=P,fr=s$;function J(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 q8=new Set,Zc={};function ka(e,t){tu(e,t),tu(e+"Capture",t)}function tu(e,t){for(Zc[e]=t,e=0;e<t.length;e++)q8.add(t[e])}var mo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Eb=Object.prototype.hasOwnProperty,a$=/^[: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]*$/,V5={},z5={};function l$(e){return Eb.call(z5,e)?!0:Eb.call(V5,e)?!1:a$.test(e)?z5[e]=!0:(V5[e]=!0,!1)}function u$(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 c$(e,t,n,r){if(t===null||typeof t>"u"||u$(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 $n(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 gn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){gn[e]=new $n(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];gn[t]=new $n(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){gn[e]=new $n(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){gn[e]=new $n(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){gn[e]=new $n(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){gn[e]=new $n(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){gn[e]=new $n(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){gn[e]=new $n(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){gn[e]=new $n(e,5,!1,e.toLowerCase(),null,!1,!1)});var c_=/[\-:]([a-z])/g;function d_(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-
|
||
|
`+Mv+e}var Nv=!1;function Dv(e,t){if(!e||Nv)return"";Nv=!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{Nv=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?_c(e):""}function d$(e){switch(e.tag){case 5:return _c(e.type);case 16:return _c("Lazy");case 13:return _c("Suspense");case 19:return _c("SuspenseList");case 0:case 2:case 15:return e=Dv(e.type,!1),e;case 11:return e=Dv(e.type.render,!1),e;case 1:return e=Dv(e.type,!0),e;default:return""}}function Ob(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 yl:return"Fragment";case ml:return"Portal";case Tb:return"Profiler";case h_:return"StrictMode";case Pb:return"Suspense";case Ab:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case K8:return(e.displayName||"Context")+".Consumer";case W8:return(e._context.displayName||"Context")+".Provider";case p_:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case g_:return t=e.displayName||null,t!==null?t:Ob(e.type)||"Memo";case Vo:t=e._payload,e=e._init;try{return Ob(e(t))}catch{}}return null}function f$(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 Ob(t);case 8:return t===h_?"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 gs(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function X8(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function h$(e){var t=X8(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 sh(e){e._valueTracker||(e._valueTracker=h$(e))}function Q8(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=X8(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function $p(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 Rb(e,t){var n=t.checked;return gt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function G5(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=gs(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 J8(e,t){t=t.checked,t!=null&&f_(e,"checked",t,!1)}function kb(e,t){J8(e,t);var n=gs(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")?Ib(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ib(e,t.type,gs(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function H5(e,t,n){if(t.hasOwnProperty("val
|
||
|
`).replace(xF,"")}function ph(e,t,n){if(t=p3(t),p3(e)!==t&&n)throw Error(J(425))}function Hp(){}var qb=null,Wb=null;function Kb(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 Yb=typeof setTimeout=="function"?setTimeout:void 0,CF=typeof clearTimeout=="function"?clearTimeout:void 0,g3=typeof Promise=="function"?Promise:void 0,EF=typeof queueMicrotask=="function"?queueMicrotask:typeof g3<"u"?function(e){return g3.resolve(null).then(e).catch(TF)}:Yb;function TF(e){setTimeout(function(){throw e})}function Kv(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),id(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);id(t)}function is(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 m3(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 Tu=Math.random().toString(36).slice(2),vi="__reactFiber$"+Tu,ud="__reactProps$"+Tu,yo="__reactContainer$"+Tu,Xb="__reactEvents$"+Tu,PF="__reactListeners$"+Tu,AF="__reactHandles$"+Tu;function ta(e){var t=e[vi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yo]||n[vi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=m3(e);e!==null;){if(n=e[vi])return n;e=m3(e)}return t}e=n,n=e.parentNode}return null}function uf(e){return e=e[vi]||e[yo],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function _l(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(J(33))}function wm(e){return e[ud]||null}var Qb=[],wl=-1;function Ts(e){return{current:e}}function Qe(e){0>wl||(e.current=Qb[wl],Qb[wl]=null,wl--)}function qe(e,t){wl++,Qb[wl]=e.current,e.current=t}var ms={},wn=Ts(ms),Yn=Ts(!1),ya=ms;function nu(e,t){var n=e.type.contextTypes;if(!n)return ms;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 Xn(e){return e=e.childContextTypes,e!=null}function qp(){Qe(Yn),Qe(wn)}function y3(e,t,n){if(wn.current!==ms)throw Error(J(168));qe(wn,t),qe(Yn,n)}function jP(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(J(108,f$(e)||"Unknown",i));return gt({},n,r)}function Wp(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ms,ya=wn.current,qe(wn,e),qe(Yn,Yn.current),!0}function v3(e,t,n){var r=e.stateNode;if(!r)throw Error(J(169));n?(e=jP(e,t,ya),r.__reactInternalMemoizedMergedChildContext=e,Qe(Yn),Qe(wn),qe(wn,e)):Qe(Yn),qe(Yn,n)}var Zi=null,xm=!1,Yv=!1;function VP(e){Zi===null?Zi=[e]:Zi.push(e)}function OF(e){xm=!0,VP(e)}function Ps(){if(!Yv&&Zi!==null){Yv=!0;var e=0,t=De;try{var n=Zi;for(De=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Zi=null,xm=!1}catch(i){throw Zi!==null&&(Zi=Zi.slice(e+1)),fP(y_,Ps),i}finally{De=t,Yv=!1}}return null}var xl=[],Cl=0,Kp=null,Yp=0,Ar=[],Or=0,va=null,io=1,oo="";function Ws(e,t){xl[Cl++]=Yp,xl[Cl++]=Kp,Kp=e,Yp=t}function zP(e,t,n){Ar[Or++]=io,Ar[Or++]=oo,Ar[Or++]=va,va=e;var r=io;e=oo;var i=32-Jr(r)-1;r&=~(1<<i),n+=1;var o=32-Jr(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,io=1<<32-Jr(t)+i|n<<i|r,oo=o+e}else io=1<<o|n<<i|r,oo=e}function T_(e){e.return!==null&&(Ws(e,1),zP(e,1,0))}function P_(e){for(;e===Kp;)Kp=xl[--Cl],xl[Cl]=null,Yp=xl[--Cl],xl[Cl]=null;for(;e===va;)va=Ar[--Or],Ar[Or]=null,oo=Ar[--Or],Ar[Or]=null,io=Ar[--Or],Ar[Or]=null}var ur=null,ar=null,rt=!1,Yr=null;function UP(e,t){var n=Ir(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletio
|
||
|
Error generating stack: `+o.message+`
|
||
|
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function e1(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function rS(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var FF=typeof WeakMap=="function"?WeakMap:Map;function y9(e,t,n){n=uo(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){rg||(rg=!0,hS=r),rS(e,t)},n}function v9(e,t,n){n=uo(-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(){rS(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){rS(e,t),typeof r!="function"&&(ss===null?ss=new Set([this]):ss.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function A3(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new FF;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=JF.bind(null,e,t,n),t.then(e,e))}function O3(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 R3(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=uo(-1,1),t.tag=2,os(n,t,1))),n.lanes|=1),e)}var BF=xo.ReactCurrentOwner,qn=!1;function In(e,t,n,r){t.child=e===null?XP(t,null,n,r):iu(t,e.child,n,r)}function k3(e,t,n,r,i){n=n.render;var o=t.ref;return $l(t,i),r=F_(e,t,n,r,o,i),n=B_(),e!==null&&!qn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,bo(e,t,i)):(rt&&n&&T_(t),t.flags|=1,In(e,t,r,i),t.child)}function I3(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Y_(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,b9(e,t,o,r,i)):(e=hp(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:sd,n(s,r)&&e.ref===t.ref)return bo(e,t,i)}return t.flags|=1,e=ls(o,r),e.ref=t.ref,e.return=t,t.child=e}function b9(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(sd(o,r)&&e.ref===t.ref)if(qn=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(qn=!0);else return t.lanes=e.lanes,bo(e,t,i)}return iS(e,t,n,r,i)}function S9(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},qe(Pl,or),or|=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,qe(Pl,or),or|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,qe(Pl,or),or|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,qe(Pl,or),or|=r;return In(e,t,i,n),t.child}function _9(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function iS(e,t,n,r,i){var o=Xn(n)?ya:wn.current;return o=nu(t,o),$l(t,i),n=F_(e,t,n,r,o,i),r=B_(),e!==null&&!qn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,bo(e,t,i)):(rt&&r&&T_(t),t.flags|=1,In(e,t,n,i),t.child)}function M3(e,t,n,r,i){if(Xn(n)){var o=!0;Wp(t)}else o=!1;if($l(t,i),t.stateNode===null)cp(e,t),KP(t,n,r),nS(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=Dr(u):(u=Xn(n)?ya:wn.current,u=nu(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)&&C3(t,s,r,u),zo=!1;var f=t.memoizedState;s.state=f,Jp(t,r,s,i),l=t.memoizedState,a!==r||f!==l||Yn.current||zo?(typeof c=="function"&&(tS(t,n,c,r),l=t.memoizedState),(a=zo||x3(t,n,a,r,f,l,u))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.
|
||
|
* @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 lu=P;function dB(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var fB=typeof Object.is=="function"?Object.is:dB,hB=lu.useState,pB=lu.useEffect,gB=lu.useLayoutEffect,mB=lu.useDebugValue;function yB(e,t){var n=t(),r=hB({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return gB(function(){i.value=n,i.getSnapshot=t,i1(i)&&o({inst:i})},[e,n,t]),pB(function(){return i1(i)&&o({inst:i}),e(function(){i1(i)&&o({inst:i})})},[e]),mB(n),n}function i1(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!fB(e,n)}catch{return!0}}function vB(e,t){return t()}var bB=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?vB:yB;W9.useSyncExternalStore=lu.useSyncExternalStore!==void 0?lu.useSyncExternalStore:bB;q9.exports=W9;var SB=q9.exports,K9={exports:{}},Y9={};/**
|
||
|
* @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 Mm=P,_B=SB;function wB(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xB=typeof Object.is=="function"?Object.is:wB,CB=_B.useSyncExternalStore,EB=Mm.useRef,TB=Mm.useEffect,PB=Mm.useMemo,AB=Mm.useDebugValue;Y9.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=EB(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=PB(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,xB(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=CB(e,o[0],o[1]);return TB(function(){s.hasValue=!0,s.value=a},[a]),AB(a),a};K9.exports=Y9;var X9=K9.exports;const OB=Ra(X9);function RB(e){e()}let Q9=RB;const kB=e=>Q9=e,IB=()=>Q9,K3=Symbol.for(`react-redux-context-${P.version}`),Y3=globalThis;function MB(){let e=Y3[K3];return e||(e=P.createContext(null),Y3[K3]=e),e}const ys=new Proxy({},new Proxy({},{get(e,t){const n=MB();return(r,...i)=>Reflect[t](n,...i)}}));function ew(e=ys){return function(){return P.useContext(e)}}const J9=ew(),NB=()=>{throw new Error("uSES not initialized!")};let Z9=NB;const DB=e=>{Z9=e},LB=(e,t)=>e===t;function $B(e=ys){const t=e===ys?J9:ew(e);return function(r,i={}){const{equalityFn:o=LB,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();P.useRef(!0);const h=P.useCallback({[r.name](m){return r(m)}}[r.name],[r,d,s]),p=Z9(u.addNestedSub,l.getState,c||l.getState,h,o);return P.useDebugValue(p),p}}const eA=$B();function ag(){return ag=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},ag.apply(this,arguments)}var tA={exports:{}},Le={};/** @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 tn=typeof Symbol=="function"&&Symbol.for,tw=tn?Symbol.for("react.element"):60103,nw=tn?Symbol.for("react.portal"):60106,Nm=tn?Symbol.for("react.fragment"):60107,Dm=tn?Symbol.for("react.strict_mode"):60108,Lm=tn?Symbol.for("react.profiler"):60114,$m=tn?Symbol.for("react.provider"):60109,Fm=tn?Symbol.for("react.context"):60110,rw=tn?Symbol.for("react.async_mode"):60111,Bm=tn?Symbol.for("react.concurrent_mode"):60111,jm=tn?Symbol.for("react.forward_ref"):60112,Vm=tn?Symbol.for("react.suspense"):60113,FB=tn?Symbol.for("react.suspense_list"):60120,zm=tn?Symbol.for("react.memo"):60115,Um=tn?Symbol.for("react.lazy"):60116,BB=tn?Symbol.for("react.block"):60121,jB=tn?Symbol.for("react.fundamental"):60117,VB=tn?Symbol.for("react.responder"):60118,zB=tn?Symbol.for("react.scope"):60119;function vr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case tw:switch(e=e.type,e){case rw:case Bm:case Nm:case Lm:case Dm:case Vm:return e;default:switch(e=e&&e.$$typeof,e){case Fm:case jm:case Um:case zm:case $m:return e;default:return t}}case nw:return t}}}function nA(e){return vr(e)===Bm}Le.AsyncMode=rw;Le.ConcurrentMode=Bm;Le.ContextConsumer=Fm;Le.ContextProvider=$m;Le.Element=tw;Le.ForwardRef=jm;Le.Fragment=Nm;Le.Lazy=Um;Le.Memo=zm;Le.Portal=nw;Le.Profiler=Lm;Le.StrictMode=Dm;Le.Suspense=Vm;Le.isAsyncMode=function(e){return nA(e)||vr(e)===rw};Le.isConcurrentMode=nA;Le.isContextConsumer=function(e){return vr(e)===Fm};Le.isContextProvider=function(e){return vr(e)===$m};Le.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===tw};Le.isForwardRef=function(e){return vr(e)===jm};Le.isFragment=function(e){return vr(e)===Nm};Le.isLazy=function(e){return vr(e)===Um};Le.isMemo=function(e){return vr(e)===zm};Le.isPortal=function(e){return vr(e)===nw};Le.isProfiler=function(e){return vr(e)===Lm};Le.isStrictMode=function(e){return vr(e)===Dm};Le.isSuspense=function(e){return vr(e)===Vm};Le.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Nm||e===Bm||e===Lm||e===Dm||e===Vm||e===FB||typeof e=="object"&&e!==null&&(e.$$typeof===Um||e.$$typeof===zm||e.$$typeof===$m||e.$$typeof===Fm||e.$$typeof===jm||e.$$typeof===jB||e.$$typeof===VB||e.$$typeof===zB||e.$$typeof===BB)};Le.typeOf=vr;tA.exports=Le;var UB=tA.exports,rA=UB,GB={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},HB={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},iA={};iA[rA.ForwardRef]=GB;iA[rA.Memo]=HB;var Be={};/**
|
||
|
* @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 iw=Symbol.for("react.element"),ow=Symbol.for("react.portal"),Gm=Symbol.for("react.fragment"),Hm=Symbol.for("react.strict_mode"),qm=Symbol.for("react.profiler"),Wm=Symbol.for("react.provider"),Km=Symbol.for("react.context"),qB=Symbol.for("react.server_context"),Ym=Symbol.for("react.forward_ref"),Xm=Symbol.for("react.suspense"),Qm=Symbol.for("react.suspense_list"),Jm=Symbol.for("react.memo"),Zm=Symbol.for("react.lazy"),WB=Symbol.for("react.offscreen"),oA;oA=Symbol.for("react.module.reference");function Fr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case iw:switch(e=e.type,e){case Gm:case qm:case Hm:case Xm:case Qm:return e;default:switch(e=e&&e.$$typeof,e){case qB:case Km:case Ym:case Zm:case Jm:case Wm:return e;default:return t}}case ow:return t}}}Be.ContextConsumer=Km;Be.ContextProvider=Wm;Be.Element=iw;Be.ForwardRef=Ym;Be.Fragment=Gm;Be.Lazy=Zm;Be.Memo=Jm;Be.Portal=ow;Be.Profiler=qm;Be.StrictMode=Hm;Be.Suspense=Xm;Be.SuspenseList=Qm;Be.isAsyncMode=function(){return!1};Be.isConcurrentMode=function(){return!1};Be.isContextConsumer=function(e){return Fr(e)===Km};Be.isContextProvider=function(e){return Fr(e)===Wm};Be.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===iw};Be.isForwardRef=function(e){return Fr(e)===Ym};Be.isFragment=function(e){return Fr(e)===Gm};Be.isLazy=function(e){return Fr(e)===Zm};Be.isMemo=function(e){return Fr(e)===Jm};Be.isPortal=function(e){return Fr(e)===ow};Be.isProfiler=function(e){return Fr(e)===qm};Be.isStrictMode=function(e){return Fr(e)===Hm};Be.isSuspense=function(e){return Fr(e)===Xm};Be.isSuspenseList=function(e){return Fr(e)===Qm};Be.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Gm||e===qm||e===Hm||e===Xm||e===Qm||e===WB||typeof e=="object"&&e!==null&&(e.$$typeof===Zm||e.$$typeof===Jm||e.$$typeof===Wm||e.$$typeof===Km||e.$$typeof===Ym||e.$$typeof===oA||e.getModuleId!==void 0)};Be.typeOf=Fr;function KB(){const e=IB();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 X3={notify(){},get:()=>[]};function YB(e,t){let n,r=X3;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=KB())}function u(){n&&(n(),n=void 0,r.clear(),r=X3)}const c={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:s,isSubscribed:a,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>r};return c}const XB=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",QB=XB?P.useLayoutEffect:P.useEffect;function Q3(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function lg(e,t){if(Q3(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])||!Q3(e[n[i]],t[n[i]]))return!1;return!0}function JB({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",noopCheck:o="once"}){const s=P.useMemo(()=>{const u=YB(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,noopCheck:o}},[e,r,i,o]),a=P.useMemo(()=>e.getState(),[e]);QB(()=>{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||ys;return Ne.createElement(l.Provider,{value:s},n)}function sA(e=ys){const t=e===ys?J9:ew(e);return function(){const{store:r}=t();return r}}const aA=sA();function ZB(e=ys){const t=e===ys?aA:sA(e);return function(){return t().dispatch}}const lA=ZB();DB(X9.useSyncExternalStoreWithSelector);kB(kr.unstable_batchedUpdates);function Jt(e){for(var t=arguments.length,n
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _V(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 wV(e){if(Array.isArray(e))return e}function h1(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ZA(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 ZA(e,t){if(e){if(typeof e=="string")return mC(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 mC(e,t)}}function mC(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 mg(e){"@babel/helpers - typeof";return mg=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},mg(e)}var yC=function(t){var n;return(n=Object.prototype.toString.call(t).match(/\[object (.*)\]/))===null||n===void 0?void 0:n[1]},vC=function(t){return/^\[object (?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)Array\]$/.test(Object.prototype.toString.call(t))},xV=function e(t,n){if(t===n)return!0;if(mg(t)!=="object"||mg(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(vC(t)&&vC(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=yC(t),s=yC(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=h1(t.entries()),l;try{for(a.s();!(l=a.n()).done;){var u=f1(l.value,1),c=u[0];if(!n.has(c))return!1}}catch(E){a.e(E)}finally{a.f()}var d=h1(t.entries()),f;try{for(d.s();!(f=d.n()).done;){var h=f1(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 S=h1(t.entries()),v;try{for(S.s();!(v=S.n()).done;){var y=f1(v.value,1),g=y[0];if(!n.has(g))return!1}}catch(E){S.e(E)}finally{S.f()}return!0}if(o==="Date"&&s==="Date")return+t==+n;var b=Object.keys(t);if(b.length!==Object.keys(n).length)return!1;for(var _=b.length;_--!==0;)if(!Object.prototype.hasOwnProperty.call(n,b[_]))return!1;for(var w=b.length;w--!==0;){var C=b[w];if(!e(t[C],n[C]))return!1}return o!=="Object"&&s!=="Object"?t===n:!0};const bw=xV;function bC(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 eO(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function s(l){bC(o,r,i,s,a,"next",l)}function a(l){bC(o,r,i,s,a,"throw",l)}s(void 0)})}}var CV=function(){var e=eO(function*(t,n,r){var i=r.prefix,o=r.driver,s=r.serialize;if(!bw(t,n))return o.setItem("".concat(i,"rootState"),s(t,"rootState"))});return function(n,r,i){return e.apply(this,arguments)}}(),EV=function(t,n,r){var i=r.prefix,o=r.driver,s=r.serialize;return Promise.all(Object.keys(t).map(function(a){return bw(t[a],n[a])?Promise.resolve():o.setItem("".concat(i).concat(a),s(t[a],a))}))},TV=function(){var e=eO(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?CV:EV;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 SC(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)}functio
|
||
|
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 b=function(_){return Array.from(_.values()).flatMap(function(w){return w?Object.values(w):[]})};return _g(_g([],b(s)),b(a)).filter(b1)}function p(b,_){return function(w){var C,E=o.endpointDefinitions[b],A=t({queryArgs:_,endpointDefinition:E,endpointName:b});return(C=s.get(w))==null?void 0:C[A]}}function m(b,_){return function(w){var C;return(C=a.get(w))==null?void 0:C[_]}}function S(){return function(b){return Object.values(s.get(b)||{}).filter(b1)}}function v(){return function(b){return Object.values(a.get(b)||{}).filter(b1)}}function y(b,_){var w=function(C,E){var A=E===void 0?{}:E,T=A.subscribe,R=T===void 0?!0:T,F=A.forceRefetch,M=A.subscriptionOptions,x=Ad,O=A[x];return function(I,N){var k,D,L=t({queryArgs:C,endpointDefinition:_,endpointName:b}),j=n((k={type:"query",subscribe:R,forceRefetch:F,subscriptionOptions:M,endpointName:b,originalArgs:C,queryCacheKey:L},k[Ad]=O,k)),U=i.endpoints[b].select(C),G=I(j),K=U(N()),Y=G.requestId,X=G.abort,B=K.requestId!==Y,q=(D=s.get(I))==null?void 0:D[L],Q=function(){return U(N())},Z=Object.assign(O?G.then(Q):B&&!q?Promise.resolve(K):Promise.all([q,G]).then(Q),{arg:C,requestId:Y,subscriptionOptions:M,queryCacheKey:L,abort:X,unwrap:function(){return xg(this,null,function(){var ee;return Sg(this,function(ge){switch(ge.label){case 0:return[4,Z];case 1:if(ee=ge.sent(),ee.isError)throw ee.error;return[2,ee.data]}})})},refetch:function(){return I(w(C,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){R&&I(u({queryCacheKey:L,requestId:Y}))},updateSubscriptionOptions:function(ee){Z.subscriptionOptions=ee,I(d({endpointName:b,requestId:Y,queryCacheKey:L,options:ee}))}});if(!q&&!B&&!O){var te=s.get(I)||{};te[L]=Z,s.set(I,te),Z.then(function(){delete te[L],Object.keys(te).length||s.delete(I)})}return Z}};return w}function g(b){return function(_,w){var C=w===void 0?{}:w,E=C.track,A=E===void 0?!0:E,T=C.fixedCacheKey;return function(R,F){var M=r({type:"mutation",endpointName:b,originalArgs:_,track:A,fixedCacheKey:T}),x=R(M),O=x.requestId,I=x.abort,N=x.unwrap,k=x.unwrap().then(function(U){return{data:U}}).catch(function(U){return{error:U}}),D=function(){R(c({requestId:O,fixedCacheKey:T}))},L=Object.assign(k,{arg:x.arg,requestId:O,abort:I,unwrap:N,unsubscribe:D,reset:D}),j=a.get(R)||{};return a.set(R,j),j[O]=L,L.then(function(){delete j[O],Object.keys(j).length||a.delete(R)}),T&&(j[T]=L,L.then(function(){j[T]===L&&(delete j[T],Object.keys(j).length||a.delete(R))})),L}}}}function u4(e){return e}function jK(e){var t=this,n=e.reducerPath,r=e.baseQuery,i=e.context.endpointDefinitions,o=e.serializeQueryArgs,s=e.api,a=function(g,b,_){return function(w){var C=i[g];w(s.internalActions.queryResultPatched({queryCacheKey:o({queryArgs:b,endpointDefinition:C,endpointName:g}),patches:_}))}},l=function(g,b,_){return function(w,C){var E,A,T=s.endpoints[g].select(b)(C()),R={patches:[],inversePatches:[],undo:function(){return w(s.util.patchQueryData(g,b,R.inversePatches))}};if(T.status===nt.uninitialized)return R;if("data"in T)if(Jn(T.data)){var F=hw(T.data,_),M=F[1],x=F[2];(E=R.patches).push.apply(E,M),(A=R.inversePatches).push.apply(A,x)}else{var O=_(T.data);R.patches.push({op:"replace",path:[],value:O}),R.inversePatches.push({op:"replace",path:[],value:T.data})}return w(s.util.patchQueryData(g,b,R.patches)),R}},u=function(g,b,_){return function(w){var C;return w(s.endpoints[g].initiate(b,(C={subscribe:!1,forceRefetch:!0},C[Ad]=function(){return{data:_}},C)))}},c=function(g,b){return xg(t,[g,b],function(_,w){var C,E,A,T,R,F,M,x,O,I,N,k,D,L,j,U,G,K,Y=w.signal,X=w.abort,B=w.rejectWithValue,q=w.fulfillWithValue,Q=w.dispatch,Z=w.getState,te=w.extra;return Sg(this,function(ee){switch(ee.label){case 0:C=i[_.endpointName],ee.label=1;case 1:return ee.trys.push([1,8,,13]),E=u4,A=void 0,T={signal:Y,abort:X,dispatch:Q,getState:Z,extra:te,endpoint:_.endpointName,type:_.type,forced:_.type==="query"?d(_,Z()):void 0},R=_.type==="query"?_[Ad]:void 0,R?(A=R(),[3,6]):[3,2];case 2:return C
|
||
|
${k}`,j=`,
|
||
|
${k}`);const q=Math.min(D.length,C);let Q=0;for(;Q<q-1;Q++){const te=E(String(Q),D,O,I,N,k);L+=te!==void 0?te:"null",L+=j}const Z=E(String(Q),D,O,I,N,k);if(L+=Z!==void 0?Z:"null",D.length-1>C){const te=D.length-C-1;L+=`${j}"... ${h(te)} not stringified"`}return N!==""&&(L+=`
|
||
|
${U}`),O.pop(),`[${L}]`}let G=Object.keys(D);const K=G.length;if(K===0)return"{}";if(w<O.length+1)return'"[Object]"';let Y="",X="";N!==""&&(k+=N,j=`,
|
||
|
${k}`,Y=" ");const B=Math.min(K,C);_&&!l(D)&&(G=s(G)),O.push(D);for(let q=0;q<B;q++){const Q=G[q],Z=E(Q,D,O,I,N,k);Z!==void 0&&(L+=`${X}${o(Q)}:${Y}${Z}`,X=j)}if(K>C){const q=K-C;L+=`${X}"...":${Y}"${h(q)} not stringified"`,X=j}return N!==""&&X.length>1&&(L=`
|
||
|
${k}${L}
|
||
|
${U}`),O.pop(),`{${L}}`}case"number":return isFinite(D)?String(D):y?y(D):"null";case"boolean":return D===!0?"true":"false";case"undefined":return;case"bigint":if(b)return String(D);default:return y?y(D):void 0}}function A(M,x,O,I,N,k){switch(typeof x=="object"&&x!==null&&typeof x.toJSON=="function"&&(x=x.toJSON(M)),typeof x){case"string":return o(x);case"object":{if(x===null)return"null";if(O.indexOf(x)!==-1)return g;const D=k;let L="",j=",";if(Array.isArray(x)){if(x.length===0)return"[]";if(w<O.length+1)return'"[Array]"';O.push(x),N!==""&&(k+=N,L+=`
|
||
|
${k}`,j=`,
|
||
|
${k}`);const K=Math.min(x.length,C);let Y=0;for(;Y<K-1;Y++){const B=A(String(Y),x[Y],O,I,N,k);L+=B!==void 0?B:"null",L+=j}const X=A(String(Y),x[Y],O,I,N,k);if(L+=X!==void 0?X:"null",x.length-1>C){const B=x.length-C-1;L+=`${j}"... ${h(B)} not stringified"`}return N!==""&&(L+=`
|
||
|
${D}`),O.pop(),`[${L}]`}O.push(x);let U="";N!==""&&(k+=N,j=`,
|
||
|
${k}`,U=" ");let G="";for(const K of I){const Y=A(K,x[K],O,I,N,k);Y!==void 0&&(L+=`${G}${o(K)}:${U}${Y}`,G=j)}return N!==""&&G.length>1&&(L=`
|
||
|
${k}${L}
|
||
|
${D}`),O.pop(),`{${L}}`}case"number":return isFinite(x)?String(x):y?y(x):"null";case"boolean":return x===!0?"true":"false";case"undefined":return;case"bigint":if(b)return String(x);default:return y?y(x):void 0}}function T(M,x,O,I,N){switch(typeof x){case"string":return o(x);case"object":{if(x===null)return"null";if(typeof x.toJSON=="function"){if(x=x.toJSON(M),typeof x!="object")return T(M,x,O,I,N);if(x===null)return"null"}if(O.indexOf(x)!==-1)return g;const k=N;if(Array.isArray(x)){if(x.length===0)return"[]";if(w<O.length+1)return'"[Array]"';O.push(x),N+=I;let Y=`
|
||
|
${N}`;const X=`,
|
||
|
${N}`,B=Math.min(x.length,C);let q=0;for(;q<B-1;q++){const Z=T(String(q),x[q],O,I,N);Y+=Z!==void 0?Z:"null",Y+=X}const Q=T(String(q),x[q],O,I,N);if(Y+=Q!==void 0?Q:"null",x.length-1>C){const Z=x.length-C-1;Y+=`${X}"... ${h(Z)} not stringified"`}return Y+=`
|
||
|
${k}`,O.pop(),`[${Y}]`}let D=Object.keys(x);const L=D.length;if(L===0)return"{}";if(w<O.length+1)return'"[Object]"';N+=I;const j=`,
|
||
|
${N}`;let U="",G="",K=Math.min(L,C);l(x)&&(U+=u(x,j,C),D=D.slice(x.length),K-=x.length,G=j),_&&(D=s(D)),O.push(x);for(let Y=0;Y<K;Y++){const X=D[Y],B=T(X,x[X],O,I,N);B!==void 0&&(U+=`${G}${o(X)}: ${B}`,G=j)}if(L>C){const Y=L-C;U+=`${G}"...": "${h(Y)} not stringified"`,G=j}return G!==""&&(U=`
|
||
|
${N}${U}
|
||
|
${k}`),O.pop(),`{${U}}`}case"number":return isFinite(x)?String(x):y?y(x):"null";case"boolean":return x===!0?"true":"false";case"undefined":return;case"bigint":if(b)return String(x);default:return y?y(x):void 0}}function R(M,x,O){switch(typeof x){case"string":return o(x);case"object":{if(x===null)return"null";if(typeof x.toJSON=="function"){if(x=x.toJSON(M),typeof x!="object")return R(M,x,O);if(x===null)return"null"}if(O.indexOf(x)!==-1)return g;let I="";if(Array.isArray(x)){if(x.length===0)return"[]";if(w<O.length+1)return'"[Array]"';O.push(x);const j=Math.min(x.length,C);let U=0;for(;U<j-1;U++){const K=R(String(U),x[U],O);I+=K!==void 0?K:"null",I+=","}const G=R(String(U),x[U],O);if(I+=G!==void 0?G:"null",x.length-1>C){const K=x.length-C-1;I+=`,"... ${h(K)} not stringified"`}return O.pop(),`[${I}]`}let N=Object.keys(x);const k=N.length;if(k===0)return"{}";if(w<O.length+1)return'"[Object]"';let D="",L=Math.min(k,C);l(x)&&(I+=u(x,",",C),N=N.slice(x.length),L-=x.length,D=","),_&&(N=s(N)),O.push(x);for(let j=0;j<L;j++){const U=N[j],G=R(U,x[U],O);G!==void 0&&(I+=`${D}${o(U)}:${G}`,D=",")}if(k>C){const j=k-C;I+=`${D}"...":"${h(j)} not stringified"`}return O.pop(),`{${I}}`}case"number":return isFinite(x)?String(x):y?y(x):"null";case"boolean":return x===!0?"true":"false";case"undefined":return;case"bigint":if(b)return String(x);default:return y?y(x):void 0}}function F(M,x,O){if(arguments.length>1){let I="";if(typeof O=="number"?I=" ".repeat(Math.min(O,10)):typeof O=="string"&&(I=O.slice(0,10)),x!=null){if(typeof x=="function")return E("",{"":M},[],x,I,"");if(Array.isArray(x))return A("",M,[],p(x),I,"")}if(I.length!==0)return T("",M,[],I,"")}return R("",M,[])}return F}})(zS,zS.exports);var qX=zS.exports;(function(e){var t=ye&&ye.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(e,"__esModule",{value:!0}),e.createLogger=void 0;const n=Ea,r=Ef,i=x7,o=C7,s=t(Hw),a=t(qX);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 b=g.getStore();return b||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,b)=>(_,w,C,E,A,T,R,F,M,x)=>{g.child({logLevel:b})(_,w,C,E,A,T,R,F,M,x)},S=1e3,v=(g,b)=>(_,w,C,E,A,T,R,F,M,x)=>{const O=(0,a.default)({a:_,b:w,c:C,d:E,e:A,f:T,g:R,h:F,i:M,j:x,logLevel:b});if(!O)throw new Error("Expected key to be a string");const I=c().onceLog;I.has(O)||(I.add(O),I.size>S&&I.clear(),g.child({logLevel:b})(_,w,C,E,A,T,R,F,M,x))},y=(g,b={},_=[])=>{const w=(C,E,A,T,R,F,M,x,O,I)=>{const N=Date.now(),k=p();let D;h()?D=f():D=d();let L,j;if(typeof C=="string"?L={...D.messageContext,...b}:L={...D.messageContext,...b,...C},typeof C=="string"&&E===void 0)j=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.");j=(0,o.printf)(C,E,A,T,R,F,M,x,O,I)}else{let G=E;if(typeof E!="string")if(E===void 0)G="";else throw new TypeError("Message must be a string. Received "+typeof E+".");j=(0,o.printf)(G,A,T,R,F,M,x,O,I)}let U={context:L,message:j,sequence:k,time:N,version:n.ROARR_LOG_FORMAT_VERSION};for(const G of[...D.transforms,..._])if(U=G(U),typeof U!="object"||U===null)throw new Error("Message transform function must return a message object.");g(U)};return w.child=C=>{let E;return h()?E=f():E=d(),typeof C=="function"?(0,e.createLogger)(g,{...E.messageContext,...b,...C},[C,..._]):(0,e.createLogger)(g,{...E.messageContext,...b,...C},_)},w.getContext=()=>{let C;return h()?C=f():C=d(),{...C.messageContext,...b}},w.adopt=async(C,E)=>{if(!h())return l===!1&&(l=!0,
|
||
|
`&&(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,y){return S(this.line-f.length+y+1,m)+" "+v},this).join(`
|
||
|
`),c+=`
|
||
|
`+S("",m+p)+`^
|
||
|
`,c}else return c+" at index "+(this.index-1);function S(v,y){var g=String(v);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 S=d.text!==void 0?d.text:d.value,v=c.constructor===o?d.value:d,y=h.scannable,g=y.length;g--;){var b=y[g],_=b.rule.symbols[b.dot];if(_.test?_.test(v):_.type?_.type===d.type:_.literal===S){var w=b.nextState({data:v,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(S){var v=S.rule.symbols[S.dot];return v&&typeof v!="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(S){return this.buildFirstStateStack(S,[])||[S]},this);m.forEach(function(S){var v=S[0],y=v.rule.symbols[v.dot],g=this.getSymbolDisplay(y);d.push("A "+g+" based on:"),this.displayStateStack(S,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}})})($7);var yQ=$7.exports,Ta={},F7={},Is={};Is.__esModule=void 0;Is.__esModule=!0;var vQ=typeof Object.setPrototypeOf=="function",bQ=typeof Object.getPrototypeOf=="function",SQ=typeof Object.defineProperty=="function",_Q=typeof Object.create=="function",wQ=typeof Object.prototype.hasOwnProperty=="function",xQ=function(t,n){vQ?Object.setPrototypeOf(t,n):t.__proto__=n};Is.setPrototypeOf=xQ;var CQ=function(t){return bQ?Object.getPrototypeOf(t):t.__proto__||t.prototype};Is.getPrototypeOf=CQ;var M4=!1,EQ=function e(t,n,r){if(SQ&&!M4)try{Object.defineProperty(t,n,r)}catch{M4=!0,e(t,n,r)}else t[n]=r.value};Is.defineProperty=EQ;var B7=function(t,n){return wQ?t.hasOwnProperty(t,n):t[n]===void 0};Is.hasOwnProperty=B7;var TQ=function(t,n){if(_Q)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)B7(n,o)&&(i[o]=n[o].value);return i};Is.objectCreate=TQ;(function(e){e.__esModule=void 0,e.__esModule=!0;var t=Is,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 S=c.toString().match(/^function\s*([^\s(]+)/);return S===null?a||"Error":S[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})(F7);var j7=ye&&ye.__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(t,n)};return functi
|
||
|
background-color: `.concat(p.backgroundColor,`;
|
||
|
color: `).concat(p.color,`;
|
||
|
font-weight: bold;
|
||
|
`),S=`
|
||
|
color: `.concat(XQ[f].color,`;
|
||
|
`),v=`
|
||
|
color: inherit;
|
||
|
`;Object.keys(d).length>0?h("%c ".concat(f," %c").concat(c?" [".concat(String(c),"]:"):"","%c ").concat(a.message," %O"),m,S,v,d):h("%c ".concat(f," %c").concat(c?" [".concat(String(c),"]:"):"","%c ").concat(a.message),m,S,v)}}};Oy.createLogWriter=JQ;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createLogWriter=void 0;var t=Oy;Object.defineProperty(e,"createLogWriter",{enumerable:!0,get:function(){return t.createLogWriter}})})(qw);const W7={package:"@invoke-ai/invoke-ai-ui"};pu.ROARR.write=qw.createLogWriter();let de=pu.Roarr.child(W7);const ZQ={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},I2e=["trace","debug","info","warn","error","fatal"],eJ=Je(Cf,e=>{const{app_version:t,consoleLogLevel:n,shouldLogToConsole:r}=e;return{version:t,consoleLogLevel:n,shouldLogToConsole:r}},{memoizeOptions:{resultEqualityCheck:xf}}),M2e=()=>{const{version:e,consoleLogLevel:t,shouldLogToConsole:n}=_y(eJ);return P.useEffect(()=>{n?(localStorage.setItem("ROARR_LOG","true"),localStorage.setItem("ROARR_FILTER",`context.logLevel:>=${ZQ[t]}`)):localStorage.setItem("ROARR_LOG","false"),pu.ROARR.write=qw.createLogWriter()},[t,n]),P.useEffect(()=>{const r={...W7};e&&(r.version=e),de=pu.Roarr.child(r)},[e]),de};de.child({namespace:"session"});const Dn=$i("api/sessionCreated",async(e,{rejectWithValue:t})=>{const{graph:n}=e,{post:r}=Fi.get(),{data:i,error:o,response:s}=await r("/api/v1/sessions/",{body:n});return o?t({arg:e,error:o}):i}),tJ=e=>en(e)&&"status"in e,Rf=$i("api/sessionInvoked",async(e,{rejectWithValue:t})=>{const{session_id:n}=e,{put:r}=Fi.get(),{data:i,error:o,response:s}=await r("/api/v1/sessions/{session_id}/invoke",{params:{query:{all:!0},path:{session_id:n}}});if(o)return tJ(o)&&o.status===403?t({arg:e,error:o.body.detail}):t({arg:e,error:o})}),Da=$i("api/sessionCanceled",async(e,{rejectWithValue:t})=>{const{session_id:n}=e,{del:r}=Fi.get(),{data:i,error:o,response:s}=await r("/api/v1/sessions/{session_id}/invoke",{params:{path:{session_id:n}}});return o?t({arg:e,error:o}):i});$i("api/listSessions",async(e,{rejectWithValue:t})=>{const{params:n}=e,{get:r}=Fi.get(),{data:i,error:o,response:s}=await r("/api/v1/sessions/",{params:n});return o?t({arg:e,error:o}):i});const K7=Co(Dn.rejected,Rf.rejected),nJ=["euler","deis","ddim","ddpm","dpmpp_2s","dpmpp_2m","dpmpp_2m_sde","dpmpp_sde","heun","kdpm_2","lms","pndm","unipc","euler_k","dpmpp_2s_k","dpmpp_2m_k","dpmpp_2m_sde_k","dpmpp_sde_k","heun_k","lms_k","euler_a","kdpm_2_a"],rJ="euler",N2e=[...nJ],D2e={euler:"Euler",deis:"DEIS",ddim:"DDIM",ddpm:"DDPM",dpmpp_sde:"DPM++ SDE",dpmpp_2s:"DPM++ 2S",dpmpp_2m:"DPM++ 2M",dpmpp_2m_sde:"DPM++ 2M SDE",heun:"Heun",kdpm_2:"KDPM 2",lms:"LMS",pndm:"PNDM",unipc:"UniPC",euler_k:"Euler Karras",dpmpp_sde_k:"DPM++ SDE Karras",dpmpp_2s_k:"DPM++ 2S Karras",dpmpp_2m_k:"DPM++ 2M Karras",dpmpp_2m_sde_k:"DPM++ 2M SDE Karras",heun_k:"Heun Karras",lms_k:"LMS Karras",euler_a:"Euler Ancestral",kdpm_2_a:"KDPM 2 Ancestral"},L2e=[{label:"2x",value:"2"},{label:"4x",value:"4"}],$2e=0,F2e=2147483647,B2e=["gfpgan","codeformer"],j2e=250,Y7={shouldUpdateImagesOnConnect:!1,disabledTabs:[],disabledFeatures:[],disabledSDFeatures:[],canRestoreDeletedImagesFromBin:!0,sd:{disabledControlNetModels:[],disabledControlNetProcessors:[],iterations:{initial:1,min:1,sliderMax:20,inputMax:9999,fineStep:1,coarseStep:1},width:{initial:512,min:64,sliderMax:1536,inputMax:4096,fineStep:8,coarseStep:64},height:{initial:512,min:64,sliderMax:1536,inputMax:4096,fineStep:8,coarseStep:64},steps:{initial:30,min:1,sliderMax:100,inputMax:500,fineStep:1,coarseStep:1},guidance:{initial:7,min:1,sliderMax:20,inputMax:200,fineStep:.1,coarseStep:.5},img2imgStrength:{initial:.7,min:0,sliderMax:1,inputMax:1,fineStep:.01,coarseStep:.05},dynamicPrompts:{maxPrompts:{initial:100,min:1,sliderMax:1e3,inputMax:1e4}}}},X7=dt({name:"config",initialState:Y7,reducers:{configChanged:(e,t)=>{IW(e,t.payload)}}}),{configChanged:iJ}=X7.actions,oJ=X7.reducer,Yw={cfgScale:7.5,height:512,img2imgStrength:.75,infillMethod:"patchmatch",iterations:1,perlin:0,positivePrompt:"",negativePrompt:"",scheduler:rJ,sea
|
||
|
[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]),P.createElement(Bde,{isPresent:t,childRef:r,sizeRef:i},P.cloneElement(e,{ref:r}))}const eb=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s})=>{const a=KI(Vde),l=P.useId(),u=P.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 P.useMemo(()=>{a.forEach((c,d)=>a.set(d,!1))},[n]),P.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=P.createElement(jde,{isPresent:n},e)),P.createElement($f.Provider,{value:u},e)};function Vde(){return new Map}function zde(e){return P.useEffect(()=>()=>e(),[])}const pl=e=>e.key||"";function Ude(e,t){e.forEach(n=>{const r=pl(n);t.set(r,n)})}function Gde(e){const t=[];return P.Children.forEach(e,n=>{P.isValidElement(n)&&t.push(n)}),t}const eN=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:s="sync"})=>{const a=P.useContext(Ox).forceRender||Fde()[0],l=ZM(),u=Gde(e);let c=u;const d=P.useRef(new Map).current,f=P.useRef(c),h=P.useRef(new Map).current,p=P.useRef(!0);if(Wg(()=>{p.current=!1,Ude(u,h),f.current=c}),zde(()=>{p.current=!0,h.clear(),d.clear()}),p.current)return P.createElement(P.Fragment,null,c.map(y=>P.createElement(eb,{key:pl(y),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:s},y)));c=[...c];const m=f.current.map(pl),S=u.map(pl),v=m.length;for(let y=0;y<v;y++){const g=m[y];S.indexOf(g)===-1&&!d.has(g)&&d.set(g,void 0)}return s==="wait"&&d.size&&(c=[]),d.forEach((y,g)=>{if(S.indexOf(g)!==-1)return;const b=h.get(g);if(!b)return;const _=m.indexOf(g);let w=y;if(!w){const C=()=>{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=P.createElement(eb,{key:pl(b),isPresent:!1,onExitComplete:C,custom:t,presenceAffectsLayout:o,mode:s},b),d.set(g,w)}c.splice(_,0,w)}),c=c.map(y=>{const g=y.key;return d.has(g)?y:P.createElement(eb,{key:pl(y),isPresent:!0,presenceAffectsLayout:o,mode:s},y)}),P.createElement(P.Fragment,null,d.size?c:c.map(y=>P.cloneElement(y)))};var Hde={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},tN=P.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:i,requestClose:o=!1,position:s="bottom",duration:a=5e3,containerStyle:l,motionVariants:u=Hde,toastSpacing:c="0.5rem"}=e,[d,f]=P.useState(a),h=Ice();tE(()=>{h||r==null||r()},[h]),tE(()=>{f(a)},[a]);const p=()=>f(null),m=()=>f(a),S=()=>{h&&i()};P.useEffect(()=>{h&&o&&i()},[h,o,i]),Oae(S,d);const v=P.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),y=P.useMemo(()=>Tae(s),[s]);return H.jsx(JM.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:p,onHoverEnd:m,custom:{position:s},style:y,children:H.jsx(xn.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:v,children:Ei(n,{id:t,onClose:S})})})});tN.displayName="ToastComponent";function qde(e,t){var n;const r=e??"bottom",o={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[r];return(n=o==null?void 0:o[t])!=null?n:r}var oT={path:H.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[H.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),H.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),H.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},zf=jr((e,t)=>{const{as:n,viewBox:
|
||
|
`),n=+this.fontSize(),r=0,i=this.lineHeight()*n,o=this.attrs.width,s=this.attrs.height,a=o!==cl&&o!==void 0,l=s!==cl&&s!==void 0,u=this.padding(),c=o-u*2,d=s-u*2,f=0,h=this.wrap(),p=h!==TT,m=h!==Ope&&p,S=this.ellipsis();this.textArr=[],ub().font=this._getContextFont();for(var v=S?this._getTextWidth(lb):0,y=0,g=t.length;y<g;++y){var b=t[y],_=this._getTextWidth(b);if(a&&_>c)for(;b.length>0;){for(var w=0,C=b.length,E="",A=0;w<C;){var T=w+C>>>1,R=b.slice(0,T+1),F=this._getTextWidth(R)+v;F<=c?(w=T+1,E=R,A=F):C=T}if(E){if(m){var M,x=b[E.length],O=x===Kh||x===CT;O&&A<=c?M=E.length:M=Math.max(E.lastIndexOf(Kh),E.lastIndexOf(CT))+1,M>0&&(w=M,E=E.slice(0,w),A=this._getTextWidth(E))}E=E.trimRight(),this._addTextLine(E),r=Math.max(r,A),f+=i;var I=this._shouldHandleEllipsis(f);if(I){this._tryToAddEllipsisToLastLine();break}if(b=b.slice(w),b=b.trimLeft(),b.length>0&&(_=this._getTextWidth(b),_<=c)){this._addTextLine(b),f+=i,r=Math.max(r,_);break}}else break}else this._addTextLine(b),f+=i,r=Math.max(r,_),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!==cl&&i!==void 0,s=this.padding(),a=i-s*2,l=this.wrap(),u=l!==TT;return!u||o&&t+r>a}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,n=t!==cl&&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+lb)<i;a||(s.text=s.text.slice(0,s.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(s.text+lb)}}getStrokeScaleEnabled(){return!0}}Oa.Text=Tt;Tt.prototype._fillFunc=Ipe;Tt.prototype._strokeFunc=Mpe;Tt.prototype.className=xpe;Tt.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];(0,vpe._registerNode)(Tt);Fn.Factory.overWriteSetter(Tt,"width",(0,$s.getNumberOrAutoValidator)());Fn.Factory.overWriteSetter(Tt,"height",(0,$s.getNumberOrAutoValidator)());Fn.Factory.addGetterSetter(Tt,"fontFamily","Arial");Fn.Factory.addGetterSetter(Tt,"fontSize",12,(0,$s.getNumberValidator)());Fn.Factory.addGetterSetter(Tt,"fontStyle",XN);Fn.Factory.addGetterSetter(Tt,"fontVariant",XN);Fn.Factory.addGetterSetter(Tt,"padding",0,(0,$s.getNumberValidator)());Fn.Factory.addGetterSetter(Tt,"align",YN);Fn.Factory.addGetterSetter(Tt,"verticalAlign",Cpe);Fn.Factory.addGetterSetter(Tt,"lineHeight",1,(0,$s.getNumberValidator)());Fn.Factory.addGetterSetter(Tt,"wrap",Ape);Fn.Factory.addGetterSetter(Tt,"ellipsis",!1,(0,$s.getBooleanValidator)());Fn.Factory.addGetterSetter(Tt,"letterSpacing",0,(0,$s.getNumberValidator)());Fn.Factory.addGetterSetter(Tt,"text","",(0,$s.getStringValidator)());Fn.Factory.addGetterSetter(Tt,"textDecoration","");var N0={};Object.defineProperty(N0,"__esModule",{value:!0});N0.TextPath=void 0;const cb=mt,ai=me,Dpe=Gt,yc=Bu,db=Oa,JN=se,Lpe=ve;var $pe="",ZN="normal";function eD(e){e.fillText(this.partialText,0,0)}function tD(e){e.strokeText(this.partialText,0,0)}class Ht extends Dpe.Shape{constructor(t){super(t),this.dummyCanvas=cb.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 yc.Path.getPathLength(this.dataArray)}_getPointAtLength(t){if(!this.attrs.data)return null;const n=this.pathLength;return t-1>n?null:yc.Path.getPointAtLengthOfDataArray(t,this.dataArray)}_readDataAttribute(){this.dataArray=yc.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=t
|
||
|
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.
|
||
|
`},ibe={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 obe(e){let{announcements:t=ibe,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=rbe}=e;const{announce:o,announcement:s}=ebe(),a=uv("DndLiveRegion"),[l,u]=P.useState(!1);if(P.useEffect(()=>{u(!0)},[]),tbe(P.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=Ne.createElement(Ne.Fragment,null,Ne.createElement(Q1e,{id:r,value:i.draggable}),Ne.createElement(Z1e,{id:a,announcement:s}));return n?kr.createPortal(c,n):c}var Bt;(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"})(Bt||(Bt={}));function gm(){}function S8(e,t){return P.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function sbe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return P.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const oi=Object.freeze({x:0,y:0});function abe(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function lbe(e,t){const n=nf(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 ube(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function cbe(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function dbe(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 fbe(e,t){if(!e||e.length===0)return null;const[n]=e;return t?n[t]:n}function hbe(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 pbe=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=hbe(a,t);l>0&&i.push({id:s,data:{droppableContainer:o,value:l}})}}return i.sort(cbe)};function gbe(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 mbe=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&&gbe(r,a)){const u=dbe(a).reduce((d,f)=>d+abe(r,f),0),c=Number((u/4).toFixed(4));i.push({id:s,data:{droppableContainer:o,value:c}})}}return i.sort(ube)};function ybe(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function GD(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:oi}function vbe(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 bbe=vbe(1);function HD(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 Sbe(e,t,n){const r=HD(t);if(!r)return e;const{scaleX:i,scaleY:o,x:s,y:a}=r,l=e.left-s-(1-i)*parseFloat
|