InvokeAI/invokeai/frontend/web/dist/assets/index-bb725c64.js

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

126 lines
1.2 MiB
JavaScript
Raw Normal View History

function M8(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 Ee=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ll(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function iF(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:{}},Sy={},N8={exports:{}},Re={};/**
2023-07-26 16:25:46 +00:00
* @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 Jf=Symbol.for("react.element"),oF=Symbol.for("react.portal"),sF=Symbol.for("react.fragment"),aF=Symbol.for("react.strict_mode"),lF=Symbol.for("react.profiler"),uF=Symbol.for("react.provider"),cF=Symbol.for("react.context"),dF=Symbol.for("react.forward_ref"),fF=Symbol.for("react.suspense"),hF=Symbol.for("react.memo"),pF=Symbol.for("react.lazy"),D3=Symbol.iterator;function gF(e){return e===null||typeof e!="object"?null:(e=D3&&e[D3]||e["@@iterator"],typeof e=="function"?e:null)}var D8={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L8=Object.assign,$8={};function fc(e,t,n){this.props=e,this.context=t,this.refs=$8,this.updater=n||D8}fc.prototype.isReactComponent={};fc.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")};fc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function F8(){}F8.prototype=fc.prototype;function uw(e,t,n){this.props=e,this.context=t,this.refs=$8,this.updater=n||D8}var cw=uw.prototype=new F8;cw.constructor=uw;L8(cw,fc.prototype);cw.isPureReactComponent=!0;var L3=Array.isArray,B8=Object.prototype.hasOwnProperty,dw={current:null},j8={key:!0,ref:!0,__self:!0,__source:!0};function V8(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)B8.call(t,r)&&!j8.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:Jf,type:e,key:o,ref:s,props:i,_owner:dw.current}}function mF(e,t){return{$$typeof:Jf,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function fw(e){return typeof e=="object"&&e!==null&&e.$$typeof===Jf}function yF(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var $3=/\/+/g;function D1(e,t){return typeof e=="object"&&e!==null&&e.key!=null?yF(""+e.key):t.toString(36)}function Qp(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 Jf:case oF:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+D1(s,0):r,L3(i)?(n="",e!=null&&(n=e.replace($3,"$&/")+"/"),Qp(i,t,n,"",function(u){return u})):i!=null&&(fw(i)&&(i=mF(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace($3,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",L3(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+D1(o,a);s+=Qp(o,t,n,l,i)}else if(l=gF(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+D1(o,a++),s+=Qp(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 Xh(e,t,n){if(e==null)return e;var r=[],i=0;return Qp(e,r,"","",function(o){return t.call(n,o,i++)}),r}function vF(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 nr={current:null},Zp={transition:null},bF={ReactCurrentDispatcher:nr,ReactCurrentBatchConfig:Zp,ReactCurrentOwner:dw};Re.Children={map:Xh,forEach:function(e,t,n){Xh(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Xh(e,function(){t++}),t},toArray:function(e){return Xh(e,function(t){return t})||[]},only:function(e){if(!fw(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Re.Component=fc;Re.Fragment=sF;Re.Profiler=lF;Re
2023-07-26 16:25:46 +00:00
* @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 _F=k,SF=Symbol.for("react.element"),wF=Symbol.for("react.fragment"),xF=Object.prototype.hasOwnProperty,CF=_F.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,TF={key:!0,ref:!0,__self:!0,__source:!0};function z8(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)xF.call(t,r)&&!TF.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:SF,type:e,key:o,ref:s,props:i,_owner:CF.current}}Sy.Fragment=wF;Sy.jsx=z8;Sy.jsxs=z8;I8.exports=Sy;var K=I8.exports,T_={},U8={exports:{}},Ir={},G8={exports:{}},H8={};/**
2023-07-26 16:25:46 +00:00
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(R,D){var L=R.length;R.push(D);e:for(;0<L;){var j=L-1>>>1,U=R[j];if(0<i(U,D))R[j]=D,R[L]=U,L=j;else break e}}function n(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var D=R[0],L=R.pop();if(L!==D){R[0]=L;e:for(var j=0,U=R.length,G=U>>>1;j<G;){var W=2*(j+1)-1,X=R[W],Y=W+1,B=R[Y];if(0>i(X,L))Y<U&&0>i(B,X)?(R[j]=B,R[Y]=L,j=Y):(R[j]=X,R[W]=L,j=W);else if(Y<U&&0>i(B,L))R[j]=B,R[Y]=L,j=Y;else break e}}return D}function i(R,D){var L=R.sortIndex-D.sortIndex;return L!==0?L:R.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,_=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(R){for(var D=n(u);D!==null;){if(D.callback===null)r(u);else if(D.startTime<=R)r(u),D.sortIndex=D.expirationTime,t(l,D);else break;D=n(u)}}function b(R){if(m=!1,g(R),!p)if(n(l)!==null)p=!0,M(S);else{var D=n(u);D!==null&&N(b,D.startTime-R)}}function S(R,D){p=!1,m&&(m=!1,y(T),T=-1),h=!0;var L=f;try{for(g(D),d=n(l);d!==null&&(!(d.expirationTime>D)||R&&!A());){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 W=n(u);W!==null&&N(b,W.startTime-D),G=!1}return G}finally{d=null,f=L,h=!1}}var w=!1,x=null,T=-1,P=5,E=-1;function A(){return!(e.unstable_now()-E<P)}function $(){if(x!==null){var R=e.unstable_now();E=R;var D=!0;try{D=x(!0,R)}finally{D?I():(w=!1,x=null)}}else w=!1}var I;if(typeof v=="function")I=function(){v($)};else if(typeof MessageChannel<"u"){var C=new MessageChannel,O=C.port2;C.port1.onmessage=$,I=function(){O.postMessage(null)}}else I=function(){_($,0)};function M(R){x=R,w||(w=!0,I())}function N(R,D){T=_(function(){R(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(R){R.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,M(S))},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(R){switch(f){case 1:case 2:case 3:var D=3;break;default:D=f}var L=f;f=D;try{return R()}finally{f=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(R,D){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var L=f;f=R;try{return D()}finally{f=L}},e.unstable_scheduleCallback=function(R,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,R){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=L+U,R={id:c++,callback:D,priorityLevel:R,startTime:L,expirationTime:U,sortIndex:-1},L>j?(R.sortIndex=L,t(u,R),n(l)===null&&R===n(u)&&(m?(y(T),T=-1):m=!0,N(b,L-j))):(R.sortIndex=U,t(l,R),p||h||(p=!0,M(S))),R},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(R){var D=f;return function(){var L=f;f=D;try{return R.apply(this,arguments)}finally{f=L}}}})(H8);G8.exports=H8;var EF=G8.exports;/**
2023-07-26 16:25:46 +00:00
* @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 q8=k,kr=EF;function Z(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 W8=new Set,Fd={};function ul(e,t){ju(e,t),ju(e+"Capture",t)}function ju(e,t){for(Fd[e]=t,e=0;e<t.length;e++)W8.add(t[e])}var Lo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),E_=Object.prototype.hasOwnProperty,PF=/^[: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]*$/,B3={},j3={};function AF(e){return E_.call(j3,e)?!0:E_.call(B3,e)?!1:PF.test(e)?j3[e]=!0:(B3[e]=!0,!1)}function kF(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 OF(e,t,n,r){if(t===null||typeof t>"u"||kF(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 rr(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 kn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){kn[e]=new rr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];kn[t]=new rr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){kn[e]=new rr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){kn[e]=new rr(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){kn[e]=new rr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){kn[e]=new rr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){kn[e]=new rr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){kn[e]=new rr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){kn[e]=new rr(e,5,!1,e.toLowerCase(),null,!1,!1)});var hw=/[\-:]([a-z])/g;function pw(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-
2023-07-26 16:25:46 +00:00
`+L1+e}var $1=!1;function F1(e,t){if(!e||$1)return"";$1=!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{$1=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ad(e):""}function RF(e){switch(e.tag){case 5:return ad(e.type);case 16:return ad("Lazy");case 13:return ad("Suspense");case 19:return ad("SuspenseList");case 0:case 2:case 15:return e=F1(e.type,!1),e;case 11:return e=F1(e.type.render,!1),e;case 1:return e=F1(e.type,!0),e;default:return""}}function O_(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 tu:return"Fragment";case eu:return"Portal";case P_:return"Profiler";case mw:return"StrictMode";case A_:return"Suspense";case k_:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case X8:return(e.displayName||"Context")+".Consumer";case K8:return(e._context.displayName||"Context")+".Provider";case yw:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case vw:return t=e.displayName||null,t!==null?t:O_(e.type)||"Memo";case ls:t=e._payload,e=e._init;try{return O_(e(t))}catch{}}return null}function MF(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 O_(t);case 8:return t===mw?"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 Ls(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Q8(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function IF(e){var t=Q8(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 Qh(e){e._valueTracker||(e._valueTracker=IF(e))}function Z8(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Q8(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ng(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 R_(e,t){var n=t.checked;return kt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function z3(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ls(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&&gw(e,"checked",t,!1)}function M_(e,t){J8(e,t);var n=Ls(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")?I_(e,t.type,n):t.hasOwnProperty("defaultValue")&&I_(e,t.type,Ls(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function U3(e,t,n){if(t.hasOwnProperty("val
`).replace(UB,"")}function op(e,t,n){if(t=f5(t),f5(e)!==t&&n)throw Error(Z(425))}function zg(){}var W_=null,K_=null;function X_(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 Y_=typeof setTimeout=="function"?setTimeout:void 0,GB=typeof clearTimeout=="function"?clearTimeout:void 0,h5=typeof Promise=="function"?Promise:void 0,HB=typeof queueMicrotask=="function"?queueMicrotask:typeof h5<"u"?function(e){return h5.resolve(null).then(e).catch(qB)}:Y_;function qB(e){setTimeout(function(){throw e})}function Q1(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),Ud(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Ud(t)}function Ts(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 p5(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 pc=Math.random().toString(36).slice(2),Vi="__reactFiber$"+pc,Kd="__reactProps$"+pc,$o="__reactContainer$"+pc,Q_="__reactEvents$"+pc,WB="__reactListeners$"+pc,KB="__reactHandles$"+pc;function ka(e){var t=e[Vi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[$o]||n[Vi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=p5(e);e!==null;){if(n=e[Vi])return n;e=p5(e)}return t}e=n,n=e.parentNode}return null}function nh(e){return e=e[Vi]||e[$o],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ou(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Z(33))}function Ey(e){return e[Kd]||null}var Z_=[],su=-1;function Qs(e){return{current:e}}function ht(e){0>su||(e.current=Z_[su],Z_[su]=null,su--)}function lt(e,t){su++,Z_[su]=e.current,e.current=t}var $s={},Bn=Qs($s),pr=Qs(!1),qa=$s;function Vu(e,t){var n=e.type.contextTypes;if(!n)return $s;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 gr(e){return e=e.childContextTypes,e!=null}function Ug(){ht(pr),ht(Bn)}function g5(e,t,n){if(Bn.current!==$s)throw Error(Z(168));lt(Bn,t),lt(pr,n)}function VA(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(Z(108,MF(e)||"Unknown",i));return kt({},n,r)}function Gg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||$s,qa=Bn.current,lt(Bn,e),lt(pr,pr.current),!0}function m5(e,t,n){var r=e.stateNode;if(!r)throw Error(Z(169));n?(e=VA(e,t,qa),r.__reactInternalMemoizedMergedChildContext=e,ht(pr),ht(Bn),lt(Bn,e)):ht(pr),lt(pr,n)}var So=null,Py=!1,Z1=!1;function zA(e){So===null?So=[e]:So.push(e)}function XB(e){Py=!0,zA(e)}function Zs(){if(!Z1&&So!==null){Z1=!0;var e=0,t=Ye;try{var n=So;for(Ye=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}So=null,Py=!1}catch(i){throw So!==null&&(So=So.slice(e+1)),hA(_w,Zs),i}finally{Ye=t,Z1=!1}}return null}var au=[],lu=0,Hg=null,qg=0,Gr=[],Hr=0,Wa=null,To=1,Eo="";function Sa(e,t){au[lu++]=qg,au[lu++]=Hg,Hg=e,qg=t}function UA(e,t,n){Gr[Hr++]=To,Gr[Hr++]=Eo,Gr[Hr++]=Wa,Wa=e;var r=To;e=Eo;var i=32-mi(r)-1;r&=~(1<<i),n+=1;var o=32-mi(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,To=1<<32-mi(t)+i|n<<i|r,Eo=o+e}else To=1<<o|n<<i|r,Eo=e}function kw(e){e.return!==null&&(Sa(e,1),UA(e,1,0))}function Ow(e){for(;e===Hg;)Hg=au[--lu],au[lu]=null,qg=au[--lu],au[lu]=null;for(;e===Wa;)Wa=Gr[--Hr],Gr[Hr]=null,Eo=Gr[--Hr],Gr[Hr]=null,To=Gr[--Hr],Gr[Hr]=null}var Pr=null,Er=null,bt=!1,ci=null;function GA(e,t){var n=Wr(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletio
2023-07-26 16:25:46 +00:00
Error generating stack: `+o.message+`
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function rb(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function iS(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var ij=typeof WeakMap=="function"?WeakMap:Map;function v9(e,t,n){n=ko(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){em||(em=!0,pS=r),iS(e,t)},n}function b9(e,t,n){n=ko(-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(){iS(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){iS(e,t),typeof r!="function"&&(Ps===null?Ps=new Set([this]):Ps.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function E5(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ij;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=vj.bind(null,e,t,n),t.then(e,e))}function P5(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 A5(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=ko(-1,1),t.tag=2,Es(n,t,1))),n.lanes|=1),e)}var oj=Go.ReactCurrentOwner,dr=!1;function Yn(e,t,n,r){t.child=e===null?QA(t,null,n,r):Uu(t,e.child,n,r)}function k5(e,t,n,r,i){n=n.render;var o=t.ref;return wu(t,i),r=Vw(e,t,n,r,o,i),n=zw(),e!==null&&!dr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Bo(e,t,i)):(bt&&n&&kw(t),t.flags|=1,Yn(e,t,r,i),t.child)}function O5(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Zw(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,_9(e,t,o,r,i)):(e=lg(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:Hd,n(s,r)&&e.ref===t.ref)return Bo(e,t,i)}return t.flags|=1,e=ks(o,r),e.ref=t.ref,e.return=t,t.child=e}function _9(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Hd(o,r)&&e.ref===t.ref)if(dr=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(dr=!0);else return t.lanes=e.lanes,Bo(e,t,i)}return oS(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},lt(du,Cr),Cr|=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,lt(du,Cr),Cr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,lt(du,Cr),Cr|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,lt(du,Cr),Cr|=r;return Yn(e,t,i,n),t.child}function w9(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function oS(e,t,n,r,i){var o=gr(n)?qa:Bn.current;return o=Vu(t,o),wu(t,i),n=Vw(e,t,n,r,o,i),r=zw(),e!==null&&!dr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Bo(e,t,i)):(bt&&r&&kw(t),t.flags|=1,Yn(e,t,n,i),t.child)}function R5(e,t,n,r,i){if(gr(n)){var o=!0;Gg(t)}else o=!1;if(wu(t,i),t.stateNode===null)og(e,t),XA(t,n,r),rS(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=Yr(u):(u=gr(n)?qa:Bn.current,u=Vu(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)&&w5(t,s,r,u),us=!1;var f=t.memoizedState;s.state=f,Xg(t,r,s,i),l=t.memoizedState,a!==r||f!==l||pr.current||us?(typeof c=="function"&&(nS(t,n,c,r),l=t.memoizedState),(a=us||S5(t,n,a,r,f,l,u))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.
2023-07-26 16:25:46 +00:00
* @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 Wu=k;function Rj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Mj=typeof Object.is=="function"?Object.is:Rj,Ij=Wu.useState,Nj=Wu.useEffect,Dj=Wu.useLayoutEffect,Lj=Wu.useDebugValue;function $j(e,t){var n=t(),r=Ij({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return Dj(function(){i.value=n,i.getSnapshot=t,ab(i)&&o({inst:i})},[e,n,t]),Nj(function(){return ab(i)&&o({inst:i}),e(function(){ab(i)&&o({inst:i})})},[e]),Lj(n),n}function ab(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Mj(e,n)}catch{return!0}}function Fj(e,t){return t()}var Bj=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Fj:$j;K9.useSyncExternalStore=Wu.useSyncExternalStore!==void 0?Wu.useSyncExternalStore:Bj;W9.exports=K9;var jj=W9.exports,X9={exports:{}},Y9={};/**
2023-07-26 16:25:46 +00:00
* @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 $y=k,Vj=jj;function zj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Uj=typeof Object.is=="function"?Object.is:zj,Gj=Vj.useSyncExternalStore,Hj=$y.useRef,qj=$y.useEffect,Wj=$y.useMemo,Kj=$y.useDebugValue;Y9.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=Hj(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=Wj(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,Uj(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=Gj(e,o[0],o[1]);return qj(function(){s.hasValue=!0,s.value=a},[a]),Kj(a),a};X9.exports=Y9;var Q9=X9.exports;const Xj=ll(Q9);function Yj(e){e()}let Z9=Yj;const Qj=e=>Z9=e,Zj=()=>Z9,q5=Symbol.for(`react-redux-context-${k.version}`),W5=globalThis;function Jj(){let e=W5[q5];return e||(e=k.createContext(null),W5[q5]=e),e}const Fs=new Proxy({},new Proxy({},{get(e,t){const n=Jj();return(r,...i)=>Reflect[t](n,...i)}}));function rx(e=Fs){return function(){return k.useContext(e)}}const J9=rx(),eV=()=>{throw new Error("uSES not initialized!")};let ek=eV;const tV=e=>{ek=e},nV=(e,t)=>e===t;function rV(e=Fs){const t=e===Fs?J9:rx(e);return function(r,i={}){const{equalityFn:o=nV,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();k.useRef(!0);const h=k.useCallback({[r.name](m){return r(m)}}[r.name],[r,d,s]),p=ek(u.addNestedSub,l.getState,c||l.getState,h,o);return k.useDebugValue(p),p}}const tk=rV();function im(){return im=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},im.apply(this,arguments)}var nk={exports:{}},Qe={};/** @license React v16.13.1
2023-07-26 16:25:46 +00:00
* 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 mn=typeof Symbol=="function"&&Symbol.for,ix=mn?Symbol.for("react.element"):60103,ox=mn?Symbol.for("react.portal"):60106,Fy=mn?Symbol.for("react.fragment"):60107,By=mn?Symbol.for("react.strict_mode"):60108,jy=mn?Symbol.for("react.profiler"):60114,Vy=mn?Symbol.for("react.provider"):60109,zy=mn?Symbol.for("react.context"):60110,sx=mn?Symbol.for("react.async_mode"):60111,Uy=mn?Symbol.for("react.concurrent_mode"):60111,Gy=mn?Symbol.for("react.forward_ref"):60112,Hy=mn?Symbol.for("react.suspense"):60113,iV=mn?Symbol.for("react.suspense_list"):60120,qy=mn?Symbol.for("react.memo"):60115,Wy=mn?Symbol.for("react.lazy"):60116,oV=mn?Symbol.for("react.block"):60121,sV=mn?Symbol.for("react.fundamental"):60117,aV=mn?Symbol.for("react.responder"):60118,lV=mn?Symbol.for("react.scope"):60119;function Dr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ix:switch(e=e.type,e){case sx:case Uy:case Fy:case jy:case By:case Hy:return e;default:switch(e=e&&e.$$typeof,e){case zy:case Gy:case Wy:case qy:case Vy:return e;default:return t}}case ox:return t}}}function rk(e){return Dr(e)===Uy}Qe.AsyncMode=sx;Qe.ConcurrentMode=Uy;Qe.ContextConsumer=zy;Qe.ContextProvider=Vy;Qe.Element=ix;Qe.ForwardRef=Gy;Qe.Fragment=Fy;Qe.Lazy=Wy;Qe.Memo=qy;Qe.Portal=ox;Qe.Profiler=jy;Qe.StrictMode=By;Qe.Suspense=Hy;Qe.isAsyncMode=function(e){return rk(e)||Dr(e)===sx};Qe.isConcurrentMode=rk;Qe.isContextConsumer=function(e){return Dr(e)===zy};Qe.isContextProvider=function(e){return Dr(e)===Vy};Qe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ix};Qe.isForwardRef=function(e){return Dr(e)===Gy};Qe.isFragment=function(e){return Dr(e)===Fy};Qe.isLazy=function(e){return Dr(e)===Wy};Qe.isMemo=function(e){return Dr(e)===qy};Qe.isPortal=function(e){return Dr(e)===ox};Qe.isProfiler=function(e){return Dr(e)===jy};Qe.isStrictMode=function(e){return Dr(e)===By};Qe.isSuspense=function(e){return Dr(e)===Hy};Qe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Fy||e===Uy||e===jy||e===By||e===Hy||e===iV||typeof e=="object"&&e!==null&&(e.$$typeof===Wy||e.$$typeof===qy||e.$$typeof===Vy||e.$$typeof===zy||e.$$typeof===Gy||e.$$typeof===sV||e.$$typeof===aV||e.$$typeof===lV||e.$$typeof===oV)};Qe.typeOf=Dr;nk.exports=Qe;var uV=nk.exports,ik=uV,cV={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},dV={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ok={};ok[ik.ForwardRef]=cV;ok[ik.Memo]=dV;var et={};/**
2023-07-26 16:25:46 +00:00
* @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-07-28 18:00:32 +00:00
*/var ax=Symbol.for("react.element"),lx=Symbol.for("react.portal"),Ky=Symbol.for("react.fragment"),Xy=Symbol.for("react.strict_mode"),Yy=Symbol.for("react.profiler"),Qy=Symbol.for("react.provider"),Zy=Symbol.for("react.context"),fV=Symbol.for("react.server_context"),Jy=Symbol.for("react.forward_ref"),e0=Symbol.for("react.suspense"),t0=Symbol.for("react.suspense_list"),n0=Symbol.for("react.memo"),r0=Symbol.for("react.lazy"),hV=Symbol.for("react.offscreen"),sk;sk=Symbol.for("react.module.reference");function Jr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ax:switch(e=e.type,e){case Ky:case Yy:case Xy:case e0:case t0:return e;default:switch(e=e&&e.$$typeof,e){case fV:case Zy:case Jy:case r0:case n0:case Qy:return e;default:return t}}case lx:return t}}}et.ContextConsumer=Zy;et.ContextProvider=Qy;et.Element=ax;et.ForwardRef=Jy;et.Fragment=Ky;et.Lazy=r0;et.Memo=n0;et.Portal=lx;et.Profiler=Yy;et.StrictMode=Xy;et.Suspense=e0;et.SuspenseList=t0;et.isAsyncMode=function(){return!1};et.isConcurrentMode=function(){return!1};et.isContextConsumer=function(e){return Jr(e)===Zy};et.isContextProvider=function(e){return Jr(e)===Qy};et.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ax};et.isForwardRef=function(e){return Jr(e)===Jy};et.isFragment=function(e){return Jr(e)===Ky};et.isLazy=function(e){return Jr(e)===r0};et.isMemo=function(e){return Jr(e)===n0};et.isPortal=function(e){return Jr(e)===lx};et.isProfiler=function(e){return Jr(e)===Yy};et.isStrictMode=function(e){return Jr(e)===Xy};et.isSuspense=function(e){return Jr(e)===e0};et.isSuspenseList=function(e){return Jr(e)===t0};et.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ky||e===Yy||e===Xy||e===e0||e===t0||e===hV||typeof e=="object"&&e!==null&&(e.$$typeof===r0||e.$$typeof===n0||e.$$typeof===Qy||e.$$typeof===Zy||e.$$typeof===Jy||e.$$typeof===sk||e.getModuleId!==void 0)};et.typeOf=Jr;function pV(){const e=Zj();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 K5={notify(){},get:()=>[]};function gV(e,t){let n,r=K5;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=pV())}function u(){n&&(n(),n=void 0,r.clear(),r=K5)}const c={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:s,isSubscribed:a,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>r};return c}const mV=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",yV=mV?k.useLayoutEffect:k.useEffect;function X5(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function om(e,t){if(X5(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])||!X5(e[n[i]],t[n[i]]))return!1;return!0}function vV({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",noopCheck:o="once"}){const s=k.useMemo(()=>{const u=gV(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,noopCheck:o}},[e,r,i,o]),a=k.useMemo(()=>e.getState(),[e]);yV(()=>{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||Fs;return Xe.createElement(l.Provider,{value:s},n)}function ak(e=Fs){const t=e===Fs?J9:rx(e);return function(){const{store:r}=t();return r}}const lk=ak();function bV(e=Fs){const t=e===Fs?lk:ak(e);return function(){return t().dispatch}}const uk=bV();tV(Q9.useSyncExternalStoreWithSelector);Qj(zi.unstable_batchedUpdates);function hn(e){for(var t=arguments.length,n
2023-07-26 16:25:46 +00:00
Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details.
2023-07-28 18:00:32 +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 b=function(S){return Array.from(S.values()).flatMap(function(w){return w?Object.values(w):[]})};return Tm(Tm([],b(s)),b(a)).filter(bb)}function p(b,S){return function(w){var x,T=o.endpointDefinitions[b],P=t({queryArgs:S,endpointDefinition:T,endpointName:b});return(x=s.get(w))==null?void 0:x[P]}}function m(b,S){return function(w){var x;return(x=a.get(w))==null?void 0:x[S]}}function _(){return function(b){return Object.values(s.get(b)||{}).filter(bb)}}function y(){return function(b){return Object.values(a.get(b)||{}).filter(bb)}}function v(b,S){var w=function(x,T){var P=T===void 0?{}:T,E=P.subscribe,A=E===void 0?!0:E,$=P.forceRefetch,I=P.subscriptionOptions,C=Ef,O=P[C];return function(M,N){var R,D,L=t({queryArgs:x,endpointDefinition:S,endpointName:b}),j=n((R={type:"query",subscribe:A,forceRefetch:$,subscriptionOptions:I,endpointName:b,originalArgs:x,queryCacheKey:L},R[Ef]=O,R)),U=i.endpoints[b].select(x),G=M(j),W=U(N()),X=G.requestId,Y=G.abort,B=W.requestId!==X,H=(D=s.get(M))==null?void 0:D[L],Q=function(){return U(N())},J=Object.assign(O?G.then(Q):B&&!H?Promise.resolve(W):Promise.all([H,G]).then(Q),{arg:x,requestId:X,subscriptionOptions:I,queryCacheKey:L,abort:Y,unwrap:function(){return Pm(this,null,function(){var te;return Cm(this,function(xe){switch(xe.label){case 0:return[4,J];case 1:if(te=xe.sent(),te.isError)throw te.error;return[2,te.data]}})})},refetch:function(){return M(w(x,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){A&&M(u({queryCacheKey:L,requestId:X}))},updateSubscriptionOptions:function(te){J.subscriptionOptions=te,M(d({endpointName:b,requestId:X,queryCacheKey:L,options:te}))}});if(!H&&!B&&!O){var ne=s.get(M)||{};ne[L]=J,s.set(M,ne),J.then(function(){delete ne[L],Object.keys(ne).length||s.delete(M)})}return J}};return w}function g(b){return function(S,w){var x=w===void 0?{}:w,T=x.track,P=T===void 0?!0:T,E=x.fixedCacheKey;return function(A,$){var I=r({type:"mutation",endpointName:b,originalArgs:S,track:P,fixedCacheKey:E}),C=A(I),O=C.requestId,M=C.abort,N=C.unwrap,R=C.unwrap().then(function(U){return{data:U}}).catch(function(U){return{error:U}}),D=function(){A(c({requestId:O,fixedCacheKey:E}))},L=Object.assign(R,{arg:C.arg,requestId:O,abort:M,unwrap:N,unsubscribe:D,reset:D}),j=a.get(A)||{};return a.set(A,j),j[O]=L,L.then(function(){delete j[O],Object.keys(j).length||a.delete(A)}),E&&(j[E]=L,L.then(function(){j[E]===L&&(delete j[E],Object.keys(j).length||a.delete(A))})),L}}}}function lT(e){return e}function _Z(e){var t=this,n=e.reducerPath,r=e.baseQuery,i=e.context.endpointDefinitions,o=e.serializeQueryArgs,s=e.api,a=function(g,b,S){return function(w){var x=i[g];w(s.internalActions.queryResultPatched({queryCacheKey:o({queryArgs:b,endpointDefinition:x,endpointName:g}),patches:S}))}},l=function(g,b,S){return function(w,x){var T,P,E=s.endpoints[g].select(b)(x()),A={patches:[],inversePatches:[],undo:function(){return w(s.util.patchQueryData(g,b,A.inversePatches))}};if(E.status===yt.uninitialized)return A;if("data"in E)if(yr(E.data)){var $=mx(E.data,S),I=$[1],C=$[2];(T=A.patches).push.apply(T,I),(P=A.inversePatches).push.apply(P,C)}else{var O=S(E.data);A.patches.push({op:"replace",path:[],value:O}),A.inversePatches.push({op:"replace",path:[],value:E.data})}return w(s.util.patchQueryData(g,b,A.patches)),A}},u=function(g,b,S){return function(w){var x;return w(s.endpoints[g].initiate(b,(x={subscribe:!1,forceRefetch:!0},x[Ef]=function(){return{data:S}},x)))}},c=function(g,b){return Pm(t,[g,b],function(S,w){var x,T,P,E,A,$,I,C,O,M,N,R,D,L,j,U,G,W,X=w.signal,Y=w.abort,B=w.rejectWithValue,H=w.fulfillWithValue,Q=w.dispatch,J=w.getState,ne=w.extra;return Cm(this,function(te){switch(te.label){case 0:x=i[S.endpointName],te.label=1;case 1:return te.trys.push([1,8,,13]),T=lT,P=void 0,E={signal:X,abort:Y,dispatch:Q,getState:J,extra:ne,endpoint:S.endpointName,type:S.type,forced:S.type==="query"?d(S,J()):void 0},A=S.type==="query"?S[Ef]:void 0,A?(P=A(),[3,6]):[3,2];case 2:return x
2023-07-26 16:25:46 +00:00
`&&(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,v){return _(this.line-f.length+v+1,m)+" "+y},this).join(`
`),c+=`
`+_("",m+p)+`^
`,c}else return c+" at index "+(this.index-1);function _(y,v){var g=String(y);return Array(v-g.length+1).join(" ")+g}};function s(u,c,d){if(u instanceof i)var f=u,d=c;else var f=i.fromCompiled(u,c);this.grammar=f,this.options={keepHistory:!1,lexer:f.lexer||new o};for(var h in d||{})this.options[h]=d[h];this.lexer=this.options.lexer,this.lexerState=void 0;var p=new r(f,0);this.table=[p],p.wants[f.start]=[],p.predict(f.start),p.process(),this.current=0}s.fail={},s.prototype.feed=function(u){var c=this.lexer;c.reset(u,this.lexerState);for(var d;;){try{if(d=c.next(),!d)break}catch(x){var m=new r(this.grammar,this.current+1);this.table.push(m);var f=new Error(this.reportLexerError(x));throw f.offset=this.current,f.token=x.token,f}var h=this.table[this.current];this.options.keepHistory||delete this.table[this.current-1];var p=this.current+1,m=new r(this.grammar,p);this.table.push(m);for(var _=d.text!==void 0?d.text:d.value,y=c.constructor===o?d.value:d,v=h.scannable,g=v.length;g--;){var b=v[g],S=b.rule.symbols[b.dot];if(S.test?S.test(y):S.type?S.type===d.type:S.literal===_){var w=b.nextState({data:y,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(_){var y=_.rule.symbols[_.dot];return y&&typeof y!="string"});if(p.length===0)d.push("Unexpected "+c+`. I did not expect any more input. Here is the state of my parse table:
`),this.displayStateStack(h.states,d);else{d.push("Unexpected "+c+`. Instead, I was expecting to see one of the following:
`);var m=p.map(function(_){return this.buildFirstStateStack(_,[])||[_]},this);m.forEach(function(_){var y=_[0],v=y.rule.symbols[y.dot],g=this.getSymbolDisplay(v);d.push("A "+g+" based on:"),this.displayStateStack(_,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}})})(yI);var tse=yI.exports,il={},vI={},ra={};ra.__esModule=void 0;ra.__esModule=!0;var nse=typeof Object.setPrototypeOf=="function",rse=typeof Object.getPrototypeOf=="function",ise=typeof Object.defineProperty=="function",ose=typeof Object.create=="function",sse=typeof Object.prototype.hasOwnProperty=="function",ase=function(t,n){nse?Object.setPrototypeOf(t,n):t.__proto__=n};ra.setPrototypeOf=ase;var lse=function(t){return rse?Object.getPrototypeOf(t):t.__proto__||t.prototype};ra.getPrototypeOf=lse;var vE=!1,use=function e(t,n,r){if(ise&&!vE)try{Object.defineProperty(t,n,r)}catch{vE=!0,e(t,n,r)}else t[n]=r.value};ra.defineProperty=use;var bI=function(t,n){return sse?t.hasOwnProperty(t,n):t[n]===void 0};ra.hasOwnProperty=bI;var cse=function(t,n){if(ose)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)bI(n,o)&&(i[o]=n[o].value);return i};ra.objectCreate=cse;(function(e){e.__esModule=void 0,e.__esModule=!0;var t=ra,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 _=c.toString().match(/^function\s*([^\s(]+)/);return _===null?a||"Error":_[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})(vI);var _I=Ee&&Ee.__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(
2023-07-26 16:25:46 +00:00
${R}`,j=`,
${R}`);const H=Math.min(D.length,x);let Q=0;for(;Q<H-1;Q++){const ne=T(String(Q),D,O,M,N,R);L+=ne!==void 0?ne:"null",L+=j}const J=T(String(Q),D,O,M,N,R);if(L+=J!==void 0?J:"null",D.length-1>x){const ne=D.length-x-1;L+=`${j}"... ${h(ne)} not stringified"`}return N!==""&&(L+=`
2023-07-26 16:25:46 +00:00
${U}`),O.pop(),`[${L}]`}let G=Object.keys(D);const W=G.length;if(W===0)return"{}";if(w<O.length+1)return'"[Object]"';let X="",Y="";N!==""&&(R+=N,j=`,
${R}`,X=" ");const B=Math.min(W,x);S&&!l(D)&&(G=s(G)),O.push(D);for(let H=0;H<B;H++){const Q=G[H],J=T(Q,D,O,M,N,R);J!==void 0&&(L+=`${Y}${o(Q)}:${X}${J}`,Y=j)}if(W>x){const H=W-x;L+=`${Y}"...":${X}"${h(H)} not stringified"`,Y=j}return N!==""&&Y.length>1&&(L=`
2023-07-26 16:25:46 +00:00
${R}${L}
${U}`),O.pop(),`{${L}}`}case"number":return isFinite(D)?String(D):v?v(D):"null";case"boolean":return D===!0?"true":"false";case"undefined":return;case"bigint":if(b)return String(D);default:return v?v(D):void 0}}function P(I,C,O,M,N,R){switch(typeof C=="object"&&C!==null&&typeof C.toJSON=="function"&&(C=C.toJSON(I)),typeof C){case"string":return o(C);case"object":{if(C===null)return"null";if(O.indexOf(C)!==-1)return g;const D=R;let L="",j=",";if(Array.isArray(C)){if(C.length===0)return"[]";if(w<O.length+1)return'"[Array]"';O.push(C),N!==""&&(R+=N,L+=`
2023-07-26 16:25:46 +00:00
${R}`,j=`,
${R}`);const W=Math.min(C.length,x);let X=0;for(;X<W-1;X++){const B=P(String(X),C[X],O,M,N,R);L+=B!==void 0?B:"null",L+=j}const Y=P(String(X),C[X],O,M,N,R);if(L+=Y!==void 0?Y:"null",C.length-1>x){const B=C.length-x-1;L+=`${j}"... ${h(B)} not stringified"`}return N!==""&&(L+=`
2023-07-26 16:25:46 +00:00
${D}`),O.pop(),`[${L}]`}O.push(C);let U="";N!==""&&(R+=N,j=`,
${R}`,U=" ");let G="";for(const W of M){const X=P(W,C[W],O,M,N,R);X!==void 0&&(L+=`${G}${o(W)}:${U}${X}`,G=j)}return N!==""&&G.length>1&&(L=`
2023-07-26 16:25:46 +00:00
${R}${L}
${D}`),O.pop(),`{${L}}`}case"number":return isFinite(C)?String(C):v?v(C):"null";case"boolean":return C===!0?"true":"false";case"undefined":return;case"bigint":if(b)return String(C);default:return v?v(C):void 0}}function E(I,C,O,M,N){switch(typeof C){case"string":return o(C);case"object":{if(C===null)return"null";if(typeof C.toJSON=="function"){if(C=C.toJSON(I),typeof C!="object")return E(I,C,O,M,N);if(C===null)return"null"}if(O.indexOf(C)!==-1)return g;const R=N;if(Array.isArray(C)){if(C.length===0)return"[]";if(w<O.length+1)return'"[Array]"';O.push(C),N+=M;let X=`
2023-07-26 16:25:46 +00:00
${N}`;const Y=`,
${N}`,B=Math.min(C.length,x);let H=0;for(;H<B-1;H++){const J=E(String(H),C[H],O,M,N);X+=J!==void 0?J:"null",X+=Y}const Q=E(String(H),C[H],O,M,N);if(X+=Q!==void 0?Q:"null",C.length-1>x){const J=C.length-x-1;X+=`${Y}"... ${h(J)} not stringified"`}return X+=`
${R}`,O.pop(),`[${X}]`}let D=Object.keys(C);const L=D.length;if(L===0)return"{}";if(w<O.length+1)return'"[Object]"';N+=M;const j=`,
${N}`;let U="",G="",W=Math.min(L,x);l(C)&&(U+=u(C,j,x),D=D.slice(C.length),W-=C.length,G=j),S&&(D=s(D)),O.push(C);for(let X=0;X<W;X++){const Y=D[X],B=E(Y,C[Y],O,M,N);B!==void 0&&(U+=`${G}${o(Y)}: ${B}`,G=j)}if(L>x){const X=L-x;U+=`${G}"...": "${h(X)} not stringified"`,G=j}return G!==""&&(U=`
2023-07-26 16:25:46 +00:00
${N}${U}
${R}`),O.pop(),`{${U}}`}case"number":return isFinite(C)?String(C):v?v(C):"null";case"boolean":return C===!0?"true":"false";case"undefined":return;case"bigint":if(b)return String(C);default:return v?v(C):void 0}}function A(I,C,O){switch(typeof C){case"string":return o(C);case"object":{if(C===null)return"null";if(typeof C.toJSON=="function"){if(C=C.toJSON(I),typeof C!="object")return A(I,C,O);if(C===null)return"null"}if(O.indexOf(C)!==-1)return g;let M="";if(Array.isArray(C)){if(C.length===0)return"[]";if(w<O.length+1)return'"[Array]"';O.push(C);const j=Math.min(C.length,x);let U=0;for(;U<j-1;U++){const W=A(String(U),C[U],O);M+=W!==void 0?W:"null",M+=","}const G=A(String(U),C[U],O);if(M+=G!==void 0?G:"null",C.length-1>x){const W=C.length-x-1;M+=`,"... ${h(W)} not stringified"`}return O.pop(),`[${M}]`}let N=Object.keys(C);const R=N.length;if(R===0)return"{}";if(w<O.length+1)return'"[Object]"';let D="",L=Math.min(R,x);l(C)&&(M+=u(C,",",x),N=N.slice(C.length),L-=C.length,D=","),S&&(N=s(N)),O.push(C);for(let j=0;j<L;j++){const U=N[j],G=A(U,C[U],O);G!==void 0&&(M+=`${D}${o(U)}:${G}`,D=",")}if(R>x){const j=R-x;M+=`${D}"...":"${h(j)} not stringified"`}return O.pop(),`{${M}}`}case"number":return isFinite(C)?String(C):v?v(C):"null";case"boolean":return C===!0?"true":"false";case"undefined":return;case"bigint":if(b)return String(C);default:return v?v(C):void 0}}function $(I,C,O){if(arguments.length>1){let M="";if(typeof O=="number"?M=" ".repeat(Math.min(O,10)):typeof O=="string"&&(M=O.slice(0,10)),C!=null){if(typeof C=="function")return T("",{"":I},[],C,M,"");if(Array.isArray(C))return P("",I,[],p(C),M,"")}if(M.length!==0)return E("",I,[],M,"")}return A("",I,[])}return $}})(u2,u2.exports);var Ise=u2.exports;(function(e){var t=Ee&&Ee.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(e,"__esModule",{value:!0}),e.createLogger=void 0;const n=ol,r=Eh,i=PI,o=AI,s=t(uC),a=t(Ise);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)=>(S,w,x,T,P,E,A,$,I,C)=>{g.child({logLevel:b})(S,w,x,T,P,E,A,$,I,C)},_=1e3,y=(g,b)=>(S,w,x,T,P,E,A,$,I,C)=>{const O=(0,a.default)({a:S,b:w,c:x,d:T,e:P,f:E,g:A,h:$,i:I,j:C,logLevel:b});if(!O)throw new Error("Expected key to be a string");const M=c().onceLog;M.has(O)||(M.add(O),M.size>_&&M.clear(),g.child({logLevel:b})(S,w,x,T,P,E,A,$,I,C))},v=(g,b={},S=[])=>{const w=(x,T,P,E,A,$,I,C,O,M)=>{const N=Date.now(),R=p();let D;h()?D=f():D=d();let L,j;if(typeof x=="string"?L={...D.messageContext,...b}:L={...D.messageContext,...b,...x},typeof x=="string"&&T===void 0)j=x;else if(typeof x=="string"){if(!x.includes("%"))throw new Error("When a string parameter is followed by other arguments, then it is assumed that you are attempting to format a message using printf syntax. You either forgot to add printf bindings or if you meant to add context to the log message, pass them in an object as the first parameter.");j=(0,o.printf)(x,T,P,E,A,$,I,C,O,M)}else{let G=T;if(typeof T!="string")if(T===void 0)G="";else throw new TypeError("Message must be a string. Received "+typeof T+".");j=(0,o.printf)(G,P,E,A,$,I,C,O,M)}let U={context:L,message:j,sequence:R,time:N,version:n.ROARR_LOG_FORMAT_VERSION};for(const G of[...D.transforms,...S])if(U=G(U),typeof U!="object"||U===null)throw new Error("Message transform function must return a message object.");g(U)};return w.child=x=>{let T;return h()?T=f():T=d(),typeof x=="function"?(0,e.createLogger)(g,{...T.messageContext,...b,...x},[x,...S]):(0,e.createLogger)(g,{...T.messageContext,...b,...x},S)},w.getContext=()=>{let x;return h()?x=f():x=d(),{...x.messageContext,...b}},w.adopt=async(x,T)=>{if(!h())return l===!1&&(l=!
2023-07-26 16:25:46 +00:00
background-color: `.concat(p.backgroundColor,`;
color: `).concat(p.color,`;
font-weight: bold;
`),_=`
color: `.concat(Hse[f].color,`;
`),y=`
color: inherit;
2023-07-28 18:00:32 +00:00
`;Object.keys(d).length>0?h("%c ".concat(f," %c").concat(c?" [".concat(String(c),"]:"):"","%c ").concat(a.message," %O"),m,_,y,d):h("%c ".concat(f," %c").concat(c?" [".concat(String(c),"]:"):"","%c ").concat(a.message),m,_,y)}}};N0.createLogWriter=Wse;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createLogWriter=void 0;var t=N0;Object.defineProperty(e,"createLogWriter",{enumerable:!0,get:function(){return t.createLogWriter}})})(iI);Th.ROARR.write=iI.createLogWriter();const OI={};Th.Roarr.child(OI);const J0=E0(Th.Roarr.child(OI)),fe=e=>J0.get().child({namespace:e}),U3e=["trace","debug","info","warn","error","fatal"],G3e={trace:10,debug:20,info:30,warn:40,error:50,fatal:60};function Kse(){const e=[];return function(t,n){if(typeof n!="object"||n===null)return n;for(;e.length>0&&e.at(-1)!==this;)e.pop();return e.includes(n)?"[Circular]":(e.push(n),n)}}const Df=Vs("nodes/receivedOpenAPISchema",async(e,{dispatch:t,rejectWithValue:n})=>{const r=fe("system");try{const o=await(await fetch("openapi.json")).json();return r.info({openAPISchema:o},"Received OpenAPI schema"),JSON.parse(JSON.stringify(o,Kse()))}catch(i){return n({error:i})}}),RI={nodes:[],edges:[],schema:null,invocationTemplates:{},connectionStartParams:null,shouldShowGraphOverlay:!1,shouldShowFieldTypeLegend:!1,shouldShowMinimapPanel:!0,editorInstance:void 0,progressNodeSize:{width:512,height:512}},MI=Et({name:"nodes",initialState:RI,reducers:{nodesChanged:(e,t)=>{e.nodes=KM(t.payload,e.nodes)},nodeAdded:(e,t)=>{e.nodes.push(t.payload)},edgesChanged:(e,t)=>{e.edges=oie(t.payload,e.edges)},connectionStarted:(e,t)=>{e.connectionStartParams=t.payload},connectionMade:(e,t)=>{e.edges=SM(t.payload,e.edges)},connectionEnded:e=>{e.connectionStartParams=null},fieldValueChanged:(e,t)=>{const{nodeId:n,fieldName:r,value:i}=t.payload,o=e.nodes.findIndex(s=>s.id===n);o>-1&&(e.nodes[o].data.inputs[r].value=i)},imageCollectionFieldValueChanged:(e,t)=>{const{nodeId:n,fieldName:r,value:i}=t.payload,o=e.nodes.findIndex(a=>a.id===n);if(o===-1)return;const s=Ln(e.nodes[o].data.inputs[r].value);if(!s){e.nodes[o].data.inputs[r].value=i;return}e.nodes[o].data.inputs[r].value=iY(s.concat(i),"image_name")},shouldShowGraphOverlayChanged:(e,t)=>{e.shouldShowGraphOverlay=t.payload},shouldShowFieldTypeLegendChanged:(e,t)=>{e.shouldShowFieldTypeLegend=t.payload},shouldShowMinimapPanelChanged:(e,t)=>{e.shouldShowMinimapPanel=t.payload},nodeTemplatesBuilt:(e,t)=>{e.invocationTemplates=t.payload},nodeEditorReset:e=>{e.nodes=[],e.edges=[]},setEditorInstance:(e,t)=>{e.editorInstance=t.payload},loadFileNodes:(e,t)=>{e.nodes=t.payload},loadFileEdges:(e,t)=>{e.edges=t.payload},setProgressNodeSize:(e,t)=>{e.progressNodeSize=t.payload}},extraReducers:e=>{e.addCase(Df.fulfilled,(t,n)=>{t.schema=n.payload})}}),{nodesChanged:H3e,edgesChanged:q3e,nodeAdded:W3e,fieldValueChanged:c2,connectionMade:K3e,connectionStarted:X3e,connectionEnded:Y3e,shouldShowGraphOverlayChanged:Q3e,shouldShowFieldTypeLegendChanged:Z3e,shouldShowMinimapPanelChanged:J3e,nodeTemplatesBuilt:fC,nodeEditorReset:II,imageCollectionFieldValueChanged:e5e,setEditorInstance:t5e,loadFileNodes:n5e,loadFileEdges:r5e,setProgressNodeSize:i5e}=MI.actions,Xse=MI.reducer,NI={esrganModelName:"RealESRGAN_x4plus.pth"},DI=Et({name:"postprocessing",initialState:NI,reducers:{esrganModelNameChanged:(e,t)=>{e.esrganModelName=t.payload}}}),{esrganModelNameChanged:o5e}=DI.actions,Yse=DI.reducer,Qse={positiveStylePrompt:"",negativeStylePrompt:"",shouldConcatSDXLStylePrompt:!0,shouldUseSDXLRefiner:!1,sdxlImg2ImgDenoisingStrength:.7,refinerModel:null,refinerSteps:20,refinerCFGScale:7.5,refinerScheduler:"euler",refinerAestheticScore:6,refinerStart:.7},LI=Et({name:"sdxl",initialState:Qse,reducers:{setPositiveStylePromptSDXL:(e,t)=>{e.positiveStylePrompt=t.payload},setNegativeStylePromptSDXL:(e,t)=>{e.negativeStylePrompt=t.payload},setShouldConcatSDXLStylePrompt:(e,t)=>{e.shouldConcatSDXLStylePrompt=t.payload},setShouldUseSDXLRefiner:(e,t)=>{e.shouldUseSDXLRefiner=t.payload},setSDXLImg2ImgDenoisingStrength:(e,t)=>{e.sdxlImg2ImgDenoisingStrength=t.pa
2023-07-26 16:25:46 +00:00
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vae(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 zae(e){if(Array.isArray(e))return e}function Vb(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=qI(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.
2023-07-28 18:00:32 +00:00
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 qI(e,t){if(e){if(typeof e=="string")return NE(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 NE(e,t)}}function NE(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 Km(e){"@babel/helpers - typeof";return Km=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},Km(e)}var DE=function(t){var n;return(n=Object.prototype.toString.call(t).match(/\[object (.*)\]/))===null||n===void 0?void 0:n[1]},LE=function(t){return/^\[object (?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)Array\]$/.test(Object.prototype.toString.call(t))},Uae=function e(t,n){if(t===n)return!0;if(Km(t)!=="object"||Km(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(LE(t)&&LE(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=DE(t),s=DE(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=Vb(t.entries()),l;try{for(a.s();!(l=a.n()).done;){var u=jb(l.value,1),c=u[0];if(!n.has(c))return!1}}catch(T){a.e(T)}finally{a.f()}var d=Vb(t.entries()),f;try{for(d.s();!(f=d.n()).done;){var h=jb(f.value,2),p=h[0],m=h[1];if(!e(m,n.get(p)))return!1}}catch(T){d.e(T)}finally{d.f()}return!0}if(o==="Set"&&s==="Set"){if(t.size!==n.size)return!1;var _=Vb(t.entries()),y;try{for(_.s();!(y=_.n()).done;){var v=jb(y.value,1),g=v[0];if(!n.has(g))return!1}}catch(T){_.e(T)}finally{_.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 S=b.length;S--!==0;)if(!Object.prototype.hasOwnProperty.call(n,b[S]))return!1;for(var w=b.length;w--!==0;){var x=b[w];if(!e(t[x],n[x]))return!1}return o!=="Object"&&s!=="Object"?t===n:!0};const gC=Uae;function $E(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 WI(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function s(l){$E(o,r,i,s,a,"next",l)}function a(l){$E(o,r,i,s,a,"throw",l)}s(void 0)})}}var Gae=function(){var e=WI(function*(t,n,r){var i=r.prefix,o=r.driver,s=r.serialize;if(!gC(t,n))return o.setItem("".concat(i,"rootState"),s(t,"rootState"))});return function(n,r,i){return e.apply(this,arguments)}}(),Hae=function(t,n,r){var i=r.prefix,o=r.driver,s=r.serialize;return Promise.all(Object.keys(t).map(function(a){return gC(t[a],n[a])?Promise.resolve():o.setItem("".concat(i).concat(a),s(t[a],a))}))},qae=function(){var e=WI(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?Gae:Hae;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 FE(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(u){n(u);return}a.done?t(l):Promise.resolve(l).then(r,i)}
`),n=+this.fontSize(),r=0,i=this.lineHeight()*n,o=this.attrs.width,s=this.attrs.height,a=o!==ql&&o!==void 0,l=s!==ql&&s!==void 0,u=this.padding(),c=o-u*2,d=s-u*2,f=0,h=this.wrap(),p=h!==p6,m=h!==dfe&&p,_=this.ellipsis();this.textArr=[],Qb().font=this._getContextFont();for(var y=_?this._getTextWidth(Yb):0,v=0,g=t.length;v<g;++v){var b=t[v],S=this._getTextWidth(b);if(a&&S>c)for(;b.length>0;){for(var w=0,x=b.length,T="",P=0;w<x;){var E=w+x>>>1,A=b.slice(0,E+1),$=this._getTextWidth(A)+y;$<=c?(w=E+1,T=A,P=$):x=E}if(T){if(m){var I,C=b[T.length],O=C===$p||C===f6;O&&P<=c?I=T.length:I=Math.max(T.lastIndexOf($p),T.lastIndexOf(f6))+1,I>0&&(w=I,T=T.slice(0,w),P=this._getTextWidth(T))}T=T.trimRight(),this._addTextLine(T),r=Math.max(r,P),f+=i;var M=this._shouldHandleEllipsis(f);if(M){this._tryToAddEllipsisToLastLine();break}if(b=b.slice(w),b=b.trimLeft(),b.length>0&&(S=this._getTextWidth(b),S<=c)){this._addTextLine(b),f+=i,r=Math.max(r,S);break}}else break}else this._addTextLine(b),f+=i,r=Math.max(r,S),this._shouldHandleEllipsis(f)&&v<g-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),l&&f+i>d)break}this.textHeight=n,this.textWidth=r}_shouldHandleEllipsis(t){var n=+this.fontSize(),r=this.lineHeight()*n,i=this.attrs.height,o=i!==ql&&i!==void 0,s=this.padding(),a=i-s*2,l=this.wrap(),u=l!==p6;return!u||o&&t+r>a}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,n=t!==ql&&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+Yb)<i;a||(s.text=s.text.slice(0,s.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(s.text+Yb)}}getStrokeScaleEnabled(){return!0}}sl.Text=zt;zt.prototype._fillFunc=pfe;zt.prototype._strokeFunc=gfe;zt.prototype.className=ofe;zt.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];(0,efe._registerNode)(zt);ir.Factory.overWriteSetter(zt,"width",(0,la.getNumberOrAutoValidator)());ir.Factory.overWriteSetter(zt,"height",(0,la.getNumberOrAutoValidator)());ir.Factory.addGetterSetter(zt,"fontFamily","Arial");ir.Factory.addGetterSetter(zt,"fontSize",12,(0,la.getNumberValidator)());ir.Factory.addGetterSetter(zt,"fontStyle",ON);ir.Factory.addGetterSetter(zt,"fontVariant",ON);ir.Factory.addGetterSetter(zt,"padding",0,(0,la.getNumberValidator)());ir.Factory.addGetterSetter(zt,"align",kN);ir.Factory.addGetterSetter(zt,"verticalAlign",sfe);ir.Factory.addGetterSetter(zt,"lineHeight",1,(0,la.getNumberValidator)());ir.Factory.addGetterSetter(zt,"wrap",cfe);ir.Factory.addGetterSetter(zt,"ellipsis",!1,(0,la.getBooleanValidator)());ir.Factory.addGetterSetter(zt,"letterSpacing",0,(0,la.getNumberValidator)());ir.Factory.addGetterSetter(zt,"text","",(0,la.getStringValidator)());ir.Factory.addGetterSetter(zt,"textDecoration","");var Tv={};Object.defineProperty(Tv,"__esModule",{value:!0});Tv.TextPath=void 0;const Zb=Ot,Ai=Te,yfe=on,ed=wc,Jb=sl,MN=de,vfe=Pe;var bfe="",IN="normal";function NN(e){e.fillText(this.partialText,0,0)}function DN(e){e.strokeText(this.partialText,0,0)}class sn extends yfe.Shape{constructor(t){super(t),this.dummyCanvas=Zb.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 ed.Path.getPathLength(this.dataArray)}_getPointAtLength(t){if(!this.attrs.data)return null;const n=this.pathLength;return t-1>n?null:ed.Path.getPointAtLengthOfDataArray(t,this.dataArray)}_readDataAttribute(){this.dataArray=ed.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
2023-07-26 16:25:46 +00:00
[data-motion-pop-id="${n}"] {
position: absolute !important;
width: ${o}px !important;
height: ${s}px !important;
top: ${a}px !important;
left: ${l}px !important;
}
2023-07-28 18:00:32 +00:00
`),()=>{document.head.removeChild(u)}},[t]),k.createElement(zbe,{isPresent:t,childRef:r,sizeRef:i},k.cloneElement(e,{ref:r}))}const y_=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s})=>{const a=DD(Gbe),l=k.useId(),u=k.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 k.useMemo(()=>{a.forEach((c,d)=>a.set(d,!1))},[n]),k.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=k.createElement(Ube,{isPresent:n},e)),k.createElement(Lh.Provider,{value:u},e)};function Gbe(){return new Map}function Hbe(e){return k.useEffect(()=>()=>e(),[])}const Zl=e=>e.key||"";function qbe(e,t){e.forEach(n=>{const r=Zl(n);t.set(r,n)})}function Wbe(e){const t=[];return k.Children.forEach(e,n=>{k.isValidElement(n)&&t.push(n)}),t}const Kbe=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:s="sync"})=>{const a=k.useContext(qC).forceRender||Vbe()[0],l=FL(),u=Wbe(e);let c=u;const d=k.useRef(new Map).current,f=k.useRef(c),h=k.useRef(new Map).current,p=k.useRef(!0);if(oy(()=>{p.current=!1,qbe(u,h),f.current=c}),Hbe(()=>{p.current=!0,h.clear(),d.clear()}),p.current)return k.createElement(k.Fragment,null,c.map(v=>k.createElement(y_,{key:Zl(v),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:s},v)));c=[...c];const m=f.current.map(Zl),_=u.map(Zl),y=m.length;for(let v=0;v<y;v++){const g=m[v];_.indexOf(g)===-1&&!d.has(g)&&d.set(g,void 0)}return s==="wait"&&d.size&&(c=[]),d.forEach((v,g)=>{if(_.indexOf(g)!==-1)return;const b=h.get(g);if(!b)return;const S=m.indexOf(g);let w=v;if(!w){const x=()=>{h.delete(g),d.delete(g);const T=f.current.findIndex(P=>P.key===g);if(f.current.splice(T,1),!d.size){if(f.current=u,l.current===!1)return;a(),r&&r()}};w=k.createElement(y_,{key:Zl(b),isPresent:!1,onExitComplete:x,custom:t,presenceAffectsLayout:o,mode:s},b),d.set(g,w)}c.splice(S,0,w)}),c=c.map(v=>{const g=v.key;return d.has(g)?v:k.createElement(y_,{key:Zl(v),isPresent:!0,presenceAffectsLayout:o,mode:s},v)}),k.createElement(k.Fragment,null,d.size?c:c.map(v=>k.cloneElement(v)))};var Xbe=Dge({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),BL=Tl((e,t)=>{const n=vD("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:s="transparent",className:a,...l}=pD(e),u=aD("chakra-spinner",a),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:s,borderLeftColor:s,animation:`${Xbe} ${o} linear infinite`,...n};return K.jsx(al.div,{ref:t,__css:c,className:u,...l,children:r&&K.jsx(al.span,{srOnly:!0,children:r})})});BL.displayName="Spinner";var K2=Tl(function(t,n){const{htmlWidth:r,htmlHeight:i,alt:o,...s}=t;return K.jsx("img",{width:r,height:i,ref:n,alt:o,...s})});K2.displayName="NativeImage";function Ybe(e){const{loading:t,src:n,srcSet:r,onLoad:i,onError:o,crossOrigin:s,sizes:a,ignoreFallback:l}=e,[u,c]=k.useState("pending");k.useEffect(()=>{c(n?"loading":"pending")},[n]);const d=k.useRef(),f=k.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 Lge(()=>{if(!l)return u==="loading"&&f(),()=>{h()}},[u,f,l]),l?"loaded":u}var Qbe=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError";function Zbe(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}var c3=Tl(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,_=u!=null||c||!m,y=Ybe({...t,crossOrigin:d,ignoreFallback:_}),v=Qbe(y,f),g={ref:n,objectFit:l,objectPosition:a,..._?p:Zbe(p,["
2023-07-26 16:25:46 +00:00
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-07-28 18:00:32 +00:00
`},MSe={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 ISe(e){let{announcements:t=MSe,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=RSe}=e;const{announce:o,announcement:s}=ASe(),a=f1("DndLiveRegion"),[l,u]=k.useState(!1);if(k.useEffect(()=>{u(!0)},[]),kSe(k.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=Xe.createElement(Xe.Fragment,null,Xe.createElement(TSe,{id:r,value:i.draggable}),Xe.createElement(PSe,{id:a,announcement:s}));return n?zi.createPortal(c,n):c}var tn;(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"})(tn||(tn={}));function by(){}function _8(e,t){return k.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function NSe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return k.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const Ei=Object.freeze({x:0,y:0});function DSe(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function LSe(e,t){const n=Yf(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 $Se(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function FSe(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function BSe(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 jSe(e,t){if(!e||e.length===0)return null;const[n]=e;return t?n[t]:n}function VSe(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 zSe=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=VSe(a,t);l>0&&i.push({id:s,data:{droppableContainer:o,value:l}})}}return i.sort(FSe)};function USe(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 GSe=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&&USe(r,a)){const u=BSe(a).reduce((d,f)=>d+DSe(r,f),0),c=Number((u/4).toFixed(4));i.push({id:s,data:{droppableContainer:o,value:c}})}}return i.sort($Se)};function HSe(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function c$(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Ei}function qSe(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 WSe=qSe(1);function d$(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 KSe(e,t,n){const r=d$(t);if(!r)return e;const{scaleX:i,scaleY:o,x:s,y:a}=r,l=e.left-s-(1-i)*parseFloat