InvokeAI/invokeai/frontend/dist/assets/index-c33fa9da.js

625 lines
1.5 MiB
JavaScript
Raw Normal View History

2023-02-25 00:56:56 +00:00
function Cj(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 a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).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 So=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function S7(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var g={},ZQ={get exports(){return g},set exports(e){g=e}},V3={},S={},QQ={get exports(){return S},set exports(e){S=e}},Jt={};/**
2023-02-19 11:24:10 +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.
2023-02-25 00:56:56 +00:00
*/var Vy=Symbol.for("react.element"),JQ=Symbol.for("react.portal"),eJ=Symbol.for("react.fragment"),tJ=Symbol.for("react.strict_mode"),nJ=Symbol.for("react.profiler"),rJ=Symbol.for("react.provider"),iJ=Symbol.for("react.context"),oJ=Symbol.for("react.forward_ref"),aJ=Symbol.for("react.suspense"),sJ=Symbol.for("react.memo"),lJ=Symbol.for("react.lazy"),ST=Symbol.iterator;function uJ(e){return e===null||typeof e!="object"?null:(e=ST&&e[ST]||e["@@iterator"],typeof e=="function"?e:null)}var _j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},kj=Object.assign,Ej={};function a0(e,t,n){this.props=e,this.context=t,this.refs=Ej,this.updater=n||_j}a0.prototype.isReactComponent={};a0.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")};a0.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Pj(){}Pj.prototype=a0.prototype;function w7(e,t,n){this.props=e,this.context=t,this.refs=Ej,this.updater=n||_j}var C7=w7.prototype=new Pj;C7.constructor=w7;kj(C7,a0.prototype);C7.isPureReactComponent=!0;var wT=Array.isArray,Tj=Object.prototype.hasOwnProperty,_7={current:null},Mj={key:!0,ref:!0,__self:!0,__source:!0};function Lj(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)Tj.call(t,r)&&!Mj.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:Vy,type:e,key:o,ref:a,props:i,_owner:_7.current}}function cJ(e,t){return{$$typeof:Vy,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function k7(e){return typeof e=="object"&&e!==null&&e.$$typeof===Vy}function dJ(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var CT=/\/+/g;function a5(e,t){return typeof e=="object"&&e!==null&&e.key!=null?dJ(""+e.key):t.toString(36)}function Mx(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Vy:case JQ:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+a5(a,0):r,wT(i)?(n="",e!=null&&(n=e.replace(CT,"$&/")+"/"),Mx(i,t,n,"",function(u){return u})):i!=null&&(k7(i)&&(i=cJ(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(CT,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",wT(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+a5(o,s);a+=Mx(o,t,n,l,i)}else if(l=uJ(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+a5(o,s++),a+=Mx(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 a}function pb(e,t,n){if(e==null)return e;var r=[],i=0;return Mx(e,r,"","",function(o){return t.call(n,o,i++)}),r}function fJ(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 Po={current:null},Lx={transition:null},hJ={ReactCurrentDispatcher:Po,ReactCurrentBatchConfig:Lx,ReactCurrentOwner:_7};Jt.Children={map:pb,forEach:function(e,t,n){pb(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return pb(e,function(){t++}),t},toArray:function(e){return pb(e,function(t){return t})||[]},only:function(e){if(!k7(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Jt.Component=a0;Jt.Fragment=eJ;Jt.Profiler=nJ;Jt
2023-02-19 11:24:10 +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.
2023-02-25 00:56:56 +00:00
*/var pJ=S,gJ=Symbol.for("react.element"),mJ=Symbol.for("react.fragment"),vJ=Object.prototype.hasOwnProperty,yJ=pJ.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,bJ={key:!0,ref:!0,__self:!0,__source:!0};function Aj(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)vJ.call(t,r)&&!bJ.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:gJ,type:e,key:o,ref:a,props:i,_owner:yJ.current}}V3.Fragment=mJ;V3.jsx=Aj;V3.jsxs=Aj;(function(e){e.exports=V3})(ZQ);function xJ(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function SJ(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var wJ=function(){function e(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(SJ(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=xJ(i);try{o.insertRule(r,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0},e}(),no="-ms-",yS="-moz-",bn="-webkit-",Oj="comm",E7="rule",P7="decl",CJ="@import",Rj="@keyframes",_J=Math.abs,G3=String.fromCharCode,kJ=Object.assign;function EJ(e,t){return Vi(e,0)^45?(((t<<2^Vi(e,0))<<2^Vi(e,1))<<2^Vi(e,2))<<2^Vi(e,3):0}function Ij(e){return e.trim()}function PJ(e,t){return(e=t.exec(e))?e[0]:e}function kn(e,t,n){return e.replace(t,n)}function g6(e,t){return e.indexOf(t)}function Vi(e,t){return e.charCodeAt(t)|0}function J1(e,t,n){return e.slice(t,n)}function Il(e){return e.length}function T7(e){return e.length}function gb(e,t){return t.push(e),e}function TJ(e,t){return e.map(t).join("")}var q3=1,jm=1,Dj=0,ea=0,ri=0,s0="";function K3(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:q3,column:jm,length:a,return:""}}function Av(e,t){return kJ(K3("",null,null,"",null,null,0),e,{length:-e.length},t)}function MJ(){return ri}function LJ(){return ri=ea>0?Vi(s0,--ea):0,jm--,ri===10&&(jm=1,q3--),ri}function Ea(){return ri=ea<Dj?Vi(s0,ea++):0,jm++,ri===10&&(jm=1,q3++),ri}function Ul(){return Vi(s0,ea)}function Ax(){return ea}function Gy(e,t){return J1(s0,e,t)}function ey(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function jj(e){return q3=jm=1,Dj=Il(s0=e),ea=0,[]}function Nj(e){return s0="",e}function Ox(e){return Ij(Gy(ea-1,m6(e===91?e+2:e===40?e+1:e)))}function AJ(e){for(;(ri=Ul())&&ri<33;)Ea();return ey(e)>2||ey(ri)>3?"":" "}function OJ(e,t){for(;--t&&Ea()&&!(ri<48||ri>102||ri>57&&ri<65||ri>70&&ri<97););return Gy(e,Ax()+(t<6&&Ul()==32&&Ea()==32))}function m6(e){for(;Ea();)switch(ri){case e:return ea;case 34:case 39:e!==34&&e!==39&&m6(ri);break;case 40:e===41&&m6(e);break;case 92:Ea();break}return ea}function RJ(e,t){for(;Ea()&&e+ri!==47+10;)if(e+ri===42+42&&Ul()===47)break;return"/*"+Gy(t,ea-1)+"*"+G3(e===47?e:Ea())}function IJ(e){for(;!ey(Ul());)Ea();return Gy(e,ea)}function DJ(e){return Nj(Rx("",null,null,null,[""],e=jj(e),0,[0],e))}function Rx(e,t,n,r,i,o,a,s,l){for(var u=0,d=0,p=a,m=0,y=0,b
2023-02-19 11:24:10 +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.
2023-02-25 00:56:56 +00:00
*/var Oi=typeof Symbol=="function"&&Symbol.for,M7=Oi?Symbol.for("react.element"):60103,L7=Oi?Symbol.for("react.portal"):60106,Y3=Oi?Symbol.for("react.fragment"):60107,X3=Oi?Symbol.for("react.strict_mode"):60108,Z3=Oi?Symbol.for("react.profiler"):60114,Q3=Oi?Symbol.for("react.provider"):60109,J3=Oi?Symbol.for("react.context"):60110,A7=Oi?Symbol.for("react.async_mode"):60111,ew=Oi?Symbol.for("react.concurrent_mode"):60111,tw=Oi?Symbol.for("react.forward_ref"):60112,nw=Oi?Symbol.for("react.suspense"):60113,KJ=Oi?Symbol.for("react.suspense_list"):60120,rw=Oi?Symbol.for("react.memo"):60115,iw=Oi?Symbol.for("react.lazy"):60116,YJ=Oi?Symbol.for("react.block"):60121,XJ=Oi?Symbol.for("react.fundamental"):60117,ZJ=Oi?Symbol.for("react.responder"):60118,QJ=Oi?Symbol.for("react.scope"):60119;function Ra(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case M7:switch(e=e.type,e){case A7:case ew:case Y3:case Z3:case X3:case nw:return e;default:switch(e=e&&e.$$typeof,e){case J3:case tw:case iw:case rw:case Q3:return e;default:return t}}case L7:return t}}}function zj(e){return Ra(e)===ew}jn.AsyncMode=A7;jn.ConcurrentMode=ew;jn.ContextConsumer=J3;jn.ContextProvider=Q3;jn.Element=M7;jn.ForwardRef=tw;jn.Fragment=Y3;jn.Lazy=iw;jn.Memo=rw;jn.Portal=L7;jn.Profiler=Z3;jn.StrictMode=X3;jn.Suspense=nw;jn.isAsyncMode=function(e){return zj(e)||Ra(e)===A7};jn.isConcurrentMode=zj;jn.isContextConsumer=function(e){return Ra(e)===J3};jn.isContextProvider=function(e){return Ra(e)===Q3};jn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===M7};jn.isForwardRef=function(e){return Ra(e)===tw};jn.isFragment=function(e){return Ra(e)===Y3};jn.isLazy=function(e){return Ra(e)===iw};jn.isMemo=function(e){return Ra(e)===rw};jn.isPortal=function(e){return Ra(e)===L7};jn.isProfiler=function(e){return Ra(e)===Z3};jn.isStrictMode=function(e){return Ra(e)===X3};jn.isSuspense=function(e){return Ra(e)===nw};jn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Y3||e===ew||e===Z3||e===X3||e===nw||e===KJ||typeof e=="object"&&e!==null&&(e.$$typeof===iw||e.$$typeof===rw||e.$$typeof===Q3||e.$$typeof===J3||e.$$typeof===tw||e.$$typeof===XJ||e.$$typeof===ZJ||e.$$typeof===QJ||e.$$typeof===YJ)};jn.typeOf=Ra;(function(e){e.exports=jn})(qJ);var Hj=v6,JJ={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},eee={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Wj={};Wj[Hj.ForwardRef]=JJ;Wj[Hj.Memo]=eee;var tee=!0;function nee(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var Uj=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||tee===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},Vj=function(t,n,r){Uj(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function ree(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var iee={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidt
2023-02-19 11:24:10 +00:00
:root {
--chakra-vh: 100vh;
}
@supports (height: -webkit-fill-available) {
:root {
--chakra-vh: -webkit-fill-available;
}
}
@supports (height: -moz-fill-available) {
:root {
--chakra-vh: -moz-fill-available;
}
}
@supports (height: 100dvh) {
:root {
--chakra-vh: 100dvh;
}
}
2023-02-25 00:56:56 +00:00
`,gee=()=>g.jsx(ow,{styles:Xj}),mee=()=>g.jsx(ow,{styles:`
2023-02-19 11:24:10 +00:00
html {
line-height: 1.5;
-webkit-text-size-adjust: 100%;
font-family: system-ui, sans-serif;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
-moz-osx-font-smoothing: grayscale;
touch-action: manipulation;
}
body {
position: relative;
min-height: 100%;
font-feature-settings: 'kern';
}
*,
*::before,
*::after {
border-width: 0;
border-style: solid;
box-sizing: border-box;
}
main {
display: block;
}
hr {
border-top-width: 1px;
box-sizing: content-box;
height: 0;
overflow: visible;
}
pre,
code,
kbd,
samp {
font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-size: 1em;
}
a {
background-color: transparent;
color: inherit;
text-decoration: inherit;
}
abbr[title] {
border-bottom: none;
text-decoration: underline;
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted;
}
b,
strong {
font-weight: bold;
}
small {
font-size: 80%;
}
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
img {
border-style: none;
}
button,
input,
optgroup,
select,
textarea {
font-family: inherit;
font-size: 100%;
line-height: 1.15;
margin: 0;
}
button,
input {
overflow: visible;
}
button,
select {
text-transform: none;
}
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0;
}
fieldset {
padding: 0.35em 0.75em 0.625em;
}
legend {
box-sizing: border-box;
color: inherit;
display: table;
max-width: 100%;
padding: 0;
white-space: normal;
}
progress {
vertical-align: baseline;
}
textarea {
overflow: auto;
}
[type="checkbox"],
[type="radio"] {
box-sizing: border-box;
padding: 0;
}
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none !important;
}
input[type="number"] {
-moz-appearance: textfield;
}
[type="search"] {
-webkit-appearance: textfield;
outline-offset: -2px;
}
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none !important;
}
::-webkit-file-upload-button {
-webkit-appearance: button;
font: inherit;
}
details {
display: block;
}
summary {
display: list-item;
}
template {
display: none;
}
[hidden] {
display: none !important;
}
body,
blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
margin: 0;
}
button {
background: transparent;
padding: 0;
}
fieldset {
margin: 0;
padding: 0;
}
ol,
ul {
margin: 0;
padding: 0;
}
textarea {
resize: vertical;
}
button,
[role="button"] {
cursor: pointer;
}
button::-moz-focus-inner {
border: 0 !important;
}
table {
border-collapse: collapse;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: inherit;
font-weight: inherit;
}
button,
input,
optgroup,
select,
textarea {
padding: 0;
line-height: inherit;
color: inherit;
}
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
display: block;
}
img,
video {
max-width: 100%;
height: auto;
}
[data-js-focus-visible] :focus:not([data-focus-visible-added]):not([data-focus-visible-disabled]) {
outline: none;
box-shadow: none;
}
select::-ms-expand {
display: none;
}
2023-02-22 09:36:55 +00:00
${Xj}
2023-02-25 00:56:56 +00:00
`});function vee(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Pn(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:i="Provider",errorMessage:o}=e,a=S.createContext(void 0);a.displayName=t;function s(){var l;const u=S.useContext(a);if(!u&&n){const d=new Error(o??vee(r,i));throw d.name="ContextError",(l=Error.captureStackTrace)==null||l.call(Error,d,s),d}return u}return[a.Provider,s,a]}var[yee,bee]=Pn({strict:!1,name:"PortalManagerContext"});function Zj(e){const{children:t,zIndex:n}=e;return g.jsx(yee,{value:{zIndex:n},children:t})}Zj.displayName="PortalManager";var Vl=Boolean(globalThis==null?void 0:globalThis.document)?S.useLayoutEffect:S.useEffect,Xs={},xee={get exports(){return Xs},set exports(e){Xs=e}},Ia={},Th={},See={get exports(){return Th},set exports(e){Th=e}},Qj={};/**
2023-02-19 11:24:10 +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.
2023-02-25 00:56:56 +00:00
*/(function(e){function t(G,Y){var ee=G.length;G.push(Y);e:for(;0<ee;){var fe=ee-1>>>1,_e=G[fe];if(0<i(_e,Y))G[fe]=Y,G[ee]=_e,ee=fe;else break e}}function n(G){return G.length===0?null:G[0]}function r(G){if(G.length===0)return null;var Y=G[0],ee=G.pop();if(ee!==Y){G[0]=ee;e:for(var fe=0,_e=G.length,we=_e>>>1;fe<we;){var xe=2*(fe+1)-1,Le=G[xe],Se=xe+1,Je=G[Se];if(0>i(Le,ee))Se<_e&&0>i(Je,Le)?(G[fe]=Je,G[Se]=ee,fe=Se):(G[fe]=Le,G[xe]=ee,fe=xe);else if(Se<_e&&0>i(Je,ee))G[fe]=Je,G[Se]=ee,fe=Se;else break e}}return Y}function i(G,Y){var ee=G.sortIndex-Y.sortIndex;return ee!==0?ee:G.id-Y.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],d=1,p=null,m=3,y=!1,b=!1,w=!1,E=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function T(G){for(var Y=n(u);Y!==null;){if(Y.callback===null)r(u);else if(Y.startTime<=G)r(u),Y.sortIndex=Y.expirationTime,t(l,Y);else break;Y=n(u)}}function L(G){if(w=!1,T(G),!b)if(n(l)!==null)b=!0,X(O);else{var Y=n(u);Y!==null&&Q(L,Y.startTime-G)}}function O(G,Y){b=!1,w&&(w=!1,_(N),N=-1),y=!0;var ee=m;try{for(T(Y),p=n(l);p!==null&&(!(p.expirationTime>Y)||G&&!K());){var fe=p.callback;if(typeof fe=="function"){p.callback=null,m=p.priorityLevel;var _e=fe(p.expirationTime<=Y);Y=e.unstable_now(),typeof _e=="function"?p.callback=_e:p===n(l)&&r(l),T(Y)}else r(l);p=n(l)}if(p!==null)var we=!0;else{var xe=n(u);xe!==null&&Q(L,xe.startTime-Y),we=!1}return we}finally{p=null,m=ee,y=!1}}var D=!1,I=null,N=-1,W=5,B=-1;function K(){return!(e.unstable_now()-B<W)}function ne(){if(I!==null){var G=e.unstable_now();B=G;var Y=!0;try{Y=I(!0,G)}finally{Y?z():(D=!1,I=null)}}else D=!1}var z;if(typeof k=="function")z=function(){k(ne)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,V=$.port2;$.port1.onmessage=ne,z=function(){V.postMessage(null)}}else z=function(){E(ne,0)};function X(G){I=G,D||(D=!0,z())}function Q(G,Y){N=E(function(){G(e.unstable_now())},Y)}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(G){G.callback=null},e.unstable_continueExecution=function(){b||y||(b=!0,X(O))},e.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<G?Math.floor(1e3/G):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(G){switch(m){case 1:case 2:case 3:var Y=3;break;default:Y=m}var ee=m;m=Y;try{return G()}finally{m=ee}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(G,Y){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var ee=m;m=G;try{return Y()}finally{m=ee}},e.unstable_scheduleCallback=function(G,Y,ee){var fe=e.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?fe+ee:fe):ee=fe,G){case 1:var _e=-1;break;case 2:_e=250;break;case 5:_e=1073741823;break;case 4:_e=1e4;break;default:_e=5e3}return _e=ee+_e,G={id:d++,callback:Y,priorityLevel:G,startTime:ee,expirationTime:_e,sortIndex:-1},ee>fe?(G.sortIndex=ee,t(u,G),n(l)===null&&G===n(u)&&(w?(_(N),N=-1):w=!0,Q(L,ee-fe))):(G.sortIndex=_e,t(l,G),b||y||(b=!0,X(O))),G},e.unstable_shouldYield=K,e.unstable_wrapCallback=function(G){var Y=m;return function(){var ee=m;m=Y;try{return G.apply(this,arguments)}finally{m=ee}}}})(Qj);(function(e){e.exports=Qj})(See);/**
2023-02-19 11:24:10 +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.
2023-02-25 00:56:56 +00:00
*/var Jj=S,La=Th;function ze(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 eN=new Set,ry={};function ep(e,t){Nm(e,t),Nm(e+"Capture",t)}function Nm(e,t){for(ry[e]=t,e=0;e<t.length;e++)eN.add(t[e])}var Qu=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),y6=Object.prototype.hasOwnProperty,wee=/^[: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]*$/,OT={},RT={};function Cee(e){return y6.call(RT,e)?!0:y6.call(OT,e)?!1:wee.test(e)?RT[e]=!0:(OT[e]=!0,!1)}function _ee(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 kee(e,t,n,r){if(t===null||typeof t>"u"||_ee(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 To(e,t,n,r,i,o,a){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=a}var Ki={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ki[e]=new To(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ki[t]=new To(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ki[e]=new To(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ki[e]=new To(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){Ki[e]=new To(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ki[e]=new To(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ki[e]=new To(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ki[e]=new To(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ki[e]=new To(e,5,!1,e.toLowerCase(),null,!1,!1)});var R7=/[\-:]([a-z])/g;function I7(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-
2023-02-22 09:36:55 +00:00
`+l5+e}var u5=!1;function c5(e,t){if(!e||u5)return"";u5=!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(`
2023-02-19 11:24:10 +00:00
`),o=r.stack.split(`
`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s]){var l=`
2023-02-25 00:56:56 +00:00
`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{u5=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?i1(e):""}function Eee(e){switch(e.tag){case 5:return i1(e.type);case 16:return i1("Lazy");case 13:return i1("Suspense");case 19:return i1("SuspenseList");case 0:case 2:case 15:return e=c5(e.type,!1),e;case 11:return e=c5(e.type.render,!1),e;case 1:return e=c5(e.type,!0),e;default:return""}}function w6(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 zg:return"Fragment";case Bg:return"Portal";case b6:return"Profiler";case j7:return"StrictMode";case x6:return"Suspense";case S6:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case nN:return(e.displayName||"Context")+".Consumer";case tN:return(e._context.displayName||"Context")+".Provider";case N7:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $7:return t=e.displayName||null,t!==null?t:w6(e.type)||"Memo";case hd:t=e._payload,e=e._init;try{return w6(e(t))}catch{}}return null}function Pee(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 w6(t);case 8:return t===j7?"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 Ud(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function iN(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Tee(e){var t=iN(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(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vb(e){e._valueTracker||(e._valueTracker=Tee(e))}function oN(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=iN(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function bS(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 C6(e,t){var n=t.checked;return Pr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function DT(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ud(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 aN(e,t){t=t.checked,t!=null&&D7(e,"checked",t,!1)}function _6(e,t){aN(e,t);var n=Ud(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")?k6(e,t.type,n):t.hasOwnProperty("defaultValue")&&k6(e,t.type,Ud(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function jT(e,t,n){if(t.hasOwnProperty(
`).replace($te,"")}function kb(e,t,n){if(t=oM(t),oM(e)!==t&&n)throw Error(ze(425))}function PS(){}var F6=null,B6=null;function z6(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 H6=typeof setTimeout=="function"?setTimeout:void 0,Fte=typeof clearTimeout=="function"?clearTimeout:void 0,aM=typeof Promise=="function"?Promise:void 0,Bte=typeof queueMicrotask=="function"?queueMicrotask:typeof aM<"u"?function(e){return aM.resolve(null).then(e).catch(zte)}:H6;function zte(e){setTimeout(function(){throw e})}function C5(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),ly(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);ly(t)}function Od(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 sM(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 u0=Math.random().toString(36).slice(2),jl="__reactFiber$"+u0,hy="__reactProps$"+u0,Ju="__reactContainer$"+u0,W6="__reactEvents$"+u0,Hte="__reactListeners$"+u0,Wte="__reactHandles$"+u0;function wh(e){var t=e[jl];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ju]||n[jl]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=sM(e);e!==null;){if(n=e[jl])return n;e=sM(e)}return t}e=n,n=e.parentNode}return null}function Yy(e){return e=e[jl]||e[Ju],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Vg(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(ze(33))}function cw(e){return e[hy]||null}var U6=[],Gg=-1;function of(e){return{current:e}}function cr(e){0>Gg||(e.current=U6[Gg],U6[Gg]=null,Gg--)}function nr(e,t){Gg++,U6[Gg]=e.current,e.current=t}var Vd={},lo=of(Vd),Ko=of(!1),Hh=Vd;function $m(e,t){var n=e.type.contextTypes;if(!n)return Vd;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 Yo(e){return e=e.childContextTypes,e!=null}function TS(){cr(Ko),cr(lo)}function lM(e,t,n){if(lo.current!==Vd)throw Error(ze(168));nr(lo,t),nr(Ko,n)}function KN(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(ze(108,Pee(e)||"Unknown",i));return Pr({},n,r)}function MS(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Vd,Hh=lo.current,nr(lo,e),nr(Ko,Ko.current),!0}function uM(e,t,n){var r=e.stateNode;if(!r)throw Error(ze(169));n?(e=KN(e,t,Hh),r.__reactInternalMemoizedMergedChildContext=e,cr(Ko),cr(lo),nr(lo,e)):cr(Ko),nr(Ko,n)}var ju=null,dw=!1,_5=!1;function YN(e){ju===null?ju=[e]:ju.push(e)}function Ute(e){dw=!0,YN(e)}function af(){if(!_5&&ju!==null){_5=!0;var e=0,t=In;try{var n=ju;for(In=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ju=null,dw=!1}catch(i){throw ju!==null&&(ju=ju.slice(e+1)),xN(B7,af),i}finally{In=t,_5=!1}}return null}var qg=[],Kg=0,LS=null,AS=0,Ya=[],Xa=0,Wh=null,Fu=1,Bu="";function uh(e,t){qg[Kg++]=AS,qg[Kg++]=LS,LS=e,AS=t}function XN(e,t,n){Ya[Xa++]=Fu,Ya[Xa++]=Bu,Ya[Xa++]=Wh,Wh=e;var r=Fu;e=Bu;var i=32-Gs(r)-1;r&=~(1<<i),n+=1;var o=32-Gs(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Fu=1<<32-Gs(t)+i|n<<i|r,Bu=o+e}else Fu=1<<o|n<<i|r,Bu=e}function Y7(e){e.return!==null&&(uh(e,1),XN(e,1,0))}function X7(e){for(;e===LS;)LS=qg[--Kg],qg[Kg]=null,AS=qg[--Kg],qg[Kg]=null;for(;e===Wh;)Wh=Ya[--Xa],Ya[Xa]=null,Bu=Ya[--Xa],Ya[Xa]=null,Fu=Ya[--Xa],Ya[Xa]=null}var Pa=null,ka=null,yr=!1,Ws=null;function ZN(e,t){var n=es(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return
2023-02-19 11:24:10 +00:00
Error generating stack: `+o.message+`
2023-02-25 00:56:56 +00:00
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function M5(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function X6(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Jte=typeof WeakMap=="function"?WeakMap:Map;function k$(e,t,n){n=Wu(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){FS||(FS=!0,a_=r),X6(e,t)},n}function E$(e,t,n){n=Wu(-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(){X6(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){X6(e,t),typeof r!="function"&&(Id===null?Id=new Set([this]):Id.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function bM(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Jte;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=hne.bind(null,e,t,n),t.then(e,e))}function xM(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 SM(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=Wu(-1,1),t.tag=2,Rd(n,t,1))),n.lanes|=1),e)}var ene=dc.ReactCurrentOwner,qo=!1;function xo(e,t,n,r){t.child=e===null?i$(t,null,n,r):Bm(t,e.child,n,r)}function wM(e,t,n,r,i){n=n.render;var o=t.ref;return mm(t,i),r=s9(e,t,n,r,o,i),n=l9(),e!==null&&!qo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,tc(e,t,i)):(yr&&n&&Y7(t),t.flags|=1,xo(e,t,r,i),t.child)}function CM(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!y9(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,P$(e,t,o,r,i)):(e=Wx(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 a=o.memoizedProps;if(n=n.compare,n=n!==null?n:cy,n(a,r)&&e.ref===t.ref)return tc(e,t,i)}return t.flags|=1,e=jd(o,r),e.ref=t.ref,e.return=t,t.child=e}function P$(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(cy(o,r)&&e.ref===t.ref)if(qo=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(qo=!0);else return t.lanes=e.lanes,tc(e,t,i)}return Z6(e,t,n,r,i)}function T$(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},nr(Zg,Sa),Sa|=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,nr(Zg,Sa),Sa|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,nr(Zg,Sa),Sa|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,nr(Zg,Sa),Sa|=r;return xo(e,t,i,n),t.child}function M$(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Z6(e,t,n,r,i){var o=Yo(n)?Hh:lo.current;return o=$m(t,o),mm(t,i),n=s9(e,t,n,r,o,i),r=l9(),e!==null&&!qo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,tc(e,t,i)):(yr&&r&&Y7(t),t.flags|=1,xo(e,t,n,i),t.child)}function _M(e,t,n,r,i){if(Yo(n)){var o=!0;MS(t)}else o=!1;if(mm(t,i),t.stateNode===null)Bx(e,t),n$(t,n,r),Y6(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=os(u):(u=Yo(n)?Hh:lo.current,u=$m(t,u));var d=n.getDerivedStateFromProps,p=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";p||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==u)&&gM(t,a,r,u),pd=!1;var m=t.memoizedState;a.state=m,IS(t,r,a,i),l=t.memoizedState,s!==r||m!==l||Ko.current||pd?(typeof d=="function"&&(K6(t,n,d,r),l=t.memoizedState),(s=pd||pM(t,n,s,r,m,l,u))?(p||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeo
2023-02-19 11:24:10 +00:00
45deg,
${t} 25%,
transparent 25%,
transparent 50%,
${t} 50%,
${t} 75%,
transparent 75%,
transparent
2023-02-25 00:56:56 +00:00
)`,backgroundSize:`${e} ${e}`}}var uoe=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function coe(e){const t=uoe();return!e||ooe(e)?t:e.string&&e.colors?foe(e.string,e.colors):e.string&&!e.colors?doe(e.string):e.colors&&!e.string?hoe(e.colors):t}function doe(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r<e.length;r+=1)t=e.charCodeAt(r)+((t<<5)-t),t=t&t;let n="#";for(let r=0;r<3;r+=1){const i=t>>r*8&255;n+=`00${i.toString(16)}`.substr(-2)}return n}function foe(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;r<e.length;r+=1)n=e.charCodeAt(r)+((n<<5)-n),n=n&n;return n=(n%t.length+t.length)%t.length,t[n]}function hoe(e){return e[Math.floor(Math.random()*e.length)]}function wt(e,t){return n=>n.colorMode==="dark"?t:e}function M9(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function hF(e){return ko(e)&&e.reference?e.reference:String(e)}var _w=(e,...t)=>t.map(hF).join(` ${e} `).replace(/calc/g,""),XM=(...e)=>`calc(${_w("+",...e)})`,ZM=(...e)=>`calc(${_w("-",...e)})`,g_=(...e)=>`calc(${_w("*",...e)})`,QM=(...e)=>`calc(${_w("/",...e)})`,JM=e=>{const t=hF(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:g_(t,-1)},Nu=Object.assign(e=>({add:(...t)=>Nu(XM(e,...t)),subtract:(...t)=>Nu(ZM(e,...t)),multiply:(...t)=>Nu(g_(e,...t)),divide:(...t)=>Nu(QM(e,...t)),negate:()=>Nu(JM(e)),toString:()=>e.toString()}),{add:XM,subtract:ZM,multiply:g_,divide:QM,negate:JM});function poe(e){return!Number.isInteger(parseFloat(e.toString()))}function goe(e,t="-"){return e.replace(/\s+/g,t)}function pF(e){const t=goe(e.toString());return t.includes("\\.")?e:poe(e)?t.replace(".","\\."):e}function moe(e,t=""){return[t,pF(e)].filter(Boolean).join("-")}function voe(e,t){return`var(${pF(e)}${t?`, ${t}`:""})`}function yoe(e,t=""){return`--${moe(e,t)}`}function yi(e,t){const n=yoe(e,t==null?void 0:t.prefix);return{variable:n,reference:voe(n,boe(t==null?void 0:t.fallback))}}function boe(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:xoe,definePartsStyle:Vx}=dr(Bie.keys),R1=yi("switch-track-width"),Ah=yi("switch-track-height"),I5=yi("switch-track-diff"),Soe=Nu.subtract(R1,Ah),m_=yi("switch-thumb-x"),Bv=yi("switch-bg"),woe=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[R1.reference],height:[Ah.reference],transitionProperty:"common",transitionDuration:"fast",[Bv.variable]:"colors.gray.300",_dark:{[Bv.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Bv.variable]:`colors.${t}.500`,_dark:{[Bv.variable]:`colors.${t}.200`}},bg:Bv.reference}},Coe={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Ah.reference],height:[Ah.reference],_checked:{transform:`translateX(${m_.reference})`}},_oe=Vx(e=>({container:{[I5.variable]:Soe,[m_.variable]:I5.reference,_rtl:{[m_.variable]:Nu(I5).negate().toString()}},track:woe(e),thumb:Coe})),koe={sm:Vx({container:{[R1.variable]:"1.375rem",[Ah.variable]:"sizes.3"}}),md:Vx({container:{[R1.variable]:"1.875rem",[Ah.variable]:"sizes.4"}}),lg:Vx({container:{[R1.variable]:"2.875rem",[Ah.variable]:"sizes.6"}})},Eoe=xoe({baseStyle:_oe,sizes:koe,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Poe,definePartsStyle:ym}=dr(zie.keys),Toe=ym({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),VS={"&[data-is-numeric=true]":{textAlign:"end"}},Moe=ym(e=>{const{colorScheme:t}=e;return{th:{color:wt("gray.600","gray.400")(e),borderBottom:"1px",borderColor:wt(`${t}.100`,`${t}.700`)(e),...VS},td:{borderBottom:"1px",borderColor:wt(`${t}.100`,`${t}.700`)(e),...VS},caption:{color:wt("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),Loe=ym(e=>{c
2023-02-19 11:24:10 +00:00
to right,
transparent 0%,
${wo(n,a)} 50%,
transparent 100%
2023-02-25 00:56:56 +00:00
)`;return{...!r&&i&&o,...r?{bgImage:s}:{bgColor:a}}},kae={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},Eae=e=>({bg:wt("gray.100","whiteAlpha.300")(e)}),Pae=e=>({transitionProperty:"common",transitionDuration:"slow",..._ae(e)}),Tae=c1(e=>({label:kae,filledTrack:Pae(e),track:Eae(e)})),Mae={xs:c1({track:{h:"1"}}),sm:c1({track:{h:"2"}}),md:c1({track:{h:"3"}}),lg:c1({track:{h:"4"}})},Lae=Cae({sizes:Mae,baseStyle:Tae,defaultProps:{size:"md",colorScheme:"blue"}}),Aae=e=>typeof e=="function";function Eo(e,...t){return Aae(e)?e(...t):e}var{definePartsStyle:Gx,defineMultiStyleConfig:Oae}=dr(_ie.keys),D1=gn("checkbox-size"),Rae=e=>{const{colorScheme:t}=e;return{w:D1.reference,h:D1.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:wt(`${t}.500`,`${t}.200`)(e),borderColor:wt(`${t}.500`,`${t}.200`)(e),color:wt("white","gray.900")(e),_hover:{bg:wt(`${t}.600`,`${t}.300`)(e),borderColor:wt(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:wt("gray.200","transparent")(e),bg:wt("gray.200","whiteAlpha.300")(e),color:wt("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:wt(`${t}.500`,`${t}.200`)(e),borderColor:wt(`${t}.500`,`${t}.200`)(e),color:wt("white","gray.900")(e)},_disabled:{bg:wt("gray.100","whiteAlpha.100")(e),borderColor:wt("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:wt("red.500","red.300")(e)}}},Iae={_disabled:{cursor:"not-allowed"}},Dae={userSelect:"none",_disabled:{opacity:.4}},jae={transitionProperty:"transform",transitionDuration:"normal"},Nae=Gx(e=>({icon:jae,container:Iae,control:Eo(Rae,e),label:Dae})),$ae={sm:Gx({control:{[D1.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Gx({control:{[D1.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Gx({control:{[D1.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},GS=Oae({baseStyle:Nae,sizes:$ae,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Fae,definePartsStyle:qx}=dr(jie.keys),Bae=e=>{var t;const n=(t=Eo(GS.baseStyle,e))==null?void 0:t.control;return{...n,borderRadius:"full",_checked:{...n==null?void 0:n._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},zae=qx(e=>{var t,n,r,i;return{label:(n=(t=GS).baseStyle)==null?void 0:n.call(t,e).label,container:(i=(r=GS).baseStyle)==null?void 0:i.call(r,e).container,control:Bae(e)}}),Hae={md:qx({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:qx({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:qx({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},Wae=Fae({baseStyle:zae,sizes:Hae,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Uae,definePartsStyle:Vae}=dr(Nie.keys),Nb=gn("select-bg"),dL,Gae={...(dL=xn.baseStyle)==null?void 0:dL.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Nb.reference,[Nb.variable]:"colors.white",_dark:{[Nb.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Nb.reference}},qae={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},Kae=Vae({field:Gae,icon:qae}),$b={paddingInlineEnd:"8"},fL,hL,pL,gL,mL,vL,yL,bL,Yae={lg:{...(fL=xn.sizes)==null?void 0:fL.lg,field:{...(hL=xn.sizes)==null?void 0:hL.lg.field,...$b}},md:{...(pL=xn.sizes)==null?void 0:pL.md,field:{...(gL=xn.sizes)==null?void 0:gL.md.field,...$b}},sm:{...(mL=xn.sizes)==null?void 0:mL.sm,field:{...(vL=xn.sizes)==null?void 0:vL.sm.field,...$b}},xs:{...(yL=xn.sizes)==null?void 0:yL.xs,field:{...(bL=xn.sizes)==null?void 0:bL.xs.field,...$b},icon:{insetEnd:"1"}}},Xae=Uae({baseStyle:Kae,sizes:Yae,variants:xn.variants,defaultProps:xn.defaultProps}),j5=gn("skeleton-start-color"),N5=gn("skeleton-end-color"),Zae={[j5.variable]:"colors.gray.100",[N5.variable]:"colors.gray.400",_dark:{[j5.variable]:"colors.gray.800",[N5.variable]:"colors.gray.600"},background:j5.reference,borderColor:N5.reference,opacity:.7,borderRadius:"sm"},Qae={baseSty
2023-02-19 11:24:10 +00:00
[data-motion-pop-id="${n}"] {
position: absolute !important;
width: ${o}px !important;
height: ${a}px !important;
top: ${s}px !important;
left: ${l}px !important;
}
2023-02-25 00:56:56 +00:00
`),()=>{document.head.removeChild(u)}},[t]),S.createElement(lge,{isPresent:t,childRef:r,sizeRef:i},S.cloneElement(e,{ref:r}))}const sC=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const s=R9(cge),l=S.useId(),u=S.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:d=>{s.set(d,!0);for(const p of s.values())if(!p)return;r&&r()},register:d=>(s.set(d,!1),()=>s.delete(d))}),o?void 0:[n]);return S.useMemo(()=>{s.forEach((d,p)=>s.set(p,!1))},[n]),S.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=S.createElement(uge,{isPresent:n},e)),S.createElement(n2.Provider,{value:u},e)};function cge(){return new Map}function dge(e){return S.useEffect(()=>()=>e(),[])}const jg=e=>e.key||"";function fge(e,t){e.forEach(n=>{const r=jg(n);t.set(r,n)})}function hge(e){const t=[];return S.Children.forEach(e,n=>{S.isValidElement(n)&&t.push(n)}),t}const rp=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait");let[s]=sge();const l=S.useContext(I9).forceRender;l&&(s=l);const u=KB(),d=hge(e);let p=d;const m=new Set,y=S.useRef(p),b=S.useRef(new Map).current,w=S.useRef(!0);if(YS(()=>{w.current=!1,fge(d,b),y.current=p}),dge(()=>{w.current=!0,b.clear(),m.clear()}),w.current)return S.createElement(S.Fragment,null,p.map(T=>S.createElement(sC,{key:jg(T),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:a},T)));p=[...p];const E=y.current.map(jg),_=d.map(jg),k=E.length;for(let T=0;T<k;T++){const L=E[T];_.indexOf(L)===-1&&m.add(L)}return a==="wait"&&m.size&&(p=[]),m.forEach(T=>{if(_.indexOf(T)!==-1)return;const L=b.get(T);if(!L)return;const O=E.indexOf(T),D=()=>{b.delete(T),m.delete(T);const I=y.current.findIndex(N=>N.key===T);if(y.current.splice(I,1),!m.size){if(y.current=d,u.current===!1)return;s(),r&&r()}};p.splice(O,0,S.createElement(sC,{key:jg(L),isPresent:!1,onExitComplete:D,custom:t,presenceAffectsLayout:o,mode:a},L))}),p=p.map(T=>{const L=T.key;return m.has(L)?T:S.createElement(sC,{key:jg(T),isPresent:!0,presenceAffectsLayout:o,mode:a},T)}),S.createElement(S.Fragment,null,m.size?p:p.map(T=>S.cloneElement(T)))};var Nl=function(){return Nl=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Nl.apply(this,arguments)};function YB(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function f0(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(d){try{u(r.next(d))}catch(p){a(p)}}function l(d){try{u(r.throw(d))}catch(p){a(p)}}function u(d){d.done?o(d.value):i(d.value).then(s,l)}u((r=r.apply(e,t||[])).next())})}function h0(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(d){return l([u,d])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(d){u=[6,d],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:
`})}function tme(e){Jy({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function nm(e){const{isOpen:t,isDisabled:n}=s8(),{reduceMotion:r}=u8(),i=xt("chakra-accordion__icon",e.className),o=Dw(),a={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:r?void 0:"transform 0.2s",transformOrigin:"center",...o.icon};return g.jsx(ja,{viewBox:"0 0 24 24","aria-hidden":!0,className:i,__css:a,...e,children:g.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}nm.displayName="AccordionIcon";var rm=Ze(function(t,n){const{children:r,className:i}=t,{htmlProps:o,...a}=Zge(t),l={...Dw().container,overflowAnchor:"none"},u=S.useMemo(()=>a,[a]);return g.jsx(Vge,{value:u,children:g.jsx(Ne.div,{ref:n,...o,className:xt("chakra-accordion__item",i),__css:l,children:typeof r=="function"?r({isExpanded:!!a.isOpen,isDisabled:!!a.isDisabled}):r})})});rm.displayName="AccordionItem";var im={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Ih={enter:{duration:.2,ease:im.easeOut},exit:{duration:.1,ease:im.easeIn}},Ku={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.exit})},nme=e=>e!=null&&parseInt(e.toString(),10)>0,BA={exit:{height:{duration:.2,ease:im.ease},opacity:{duration:.3,ease:im.ease}},enter:{height:{duration:.3,ease:im.ease},opacity:{duration:.4,ease:im.ease}}},rme={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:i})=>{var o;return{...e&&{opacity:nme(t)?1:0},height:t,transitionEnd:r==null?void 0:r.exit,transition:(o=n==null?void 0:n.exit)!=null?o:Ku.exit(BA.exit,i)}},enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:r,delay:i})=>{var o;return{...e&&{opacity:1},height:t,transitionEnd:r==null?void 0:r.enter,transition:(o=n==null?void 0:n.enter)!=null?o:Ku.enter(BA.enter,i)}}},iz=S.forwardRef((e,t)=>{const{in:n,unmountOnExit:r,animateOpacity:i=!0,startingHeight:o=0,endingHeight:a="auto",style:s,className:l,transition:u,transitionEnd:d,...p}=e,[m,y]=S.useState(!1);S.useEffect(()=>{const k=setTimeout(()=>{y(!0)});return()=>clearTimeout(k)},[]),Jy({condition:Boolean(o>0&&r),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const b=parseFloat(o.toString())>0,w={startingHeight:o,endingHeight:a,animateOpacity:i,transition:m?u:{enter:{duration:0}},transitionEnd:{enter:d==null?void 0:d.enter,exit:r?d==null?void 0:d.exit:{...d==null?void 0:d.exit,display:b?"block":"none"}}},E=r?n:!0,_=n||r?"enter":"exit";return g.jsx(rp,{initial:!1,custom:w,children:E&&g.jsx(su.div,{ref:t,...p,className:xt("chakra-collapse",l),style:{overflow:"hidden",display:"block",...s},custom:w,variants:rme,initial:r?"exit":!1,animate:_,exit:"exit"})})});iz.displayName="Collapse";var ime={enter:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:1,transition:(r=e==null?void 0:e.enter)!=null?r:Ku.enter(Ih.enter,n),transitionEnd:t==null?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:0,transition:(r=e==null?void 0:e.exit)!=null?r:Ku.exit(Ih.exit,n),transitionEnd:t==null?void 0:t.exit}}},oz={initial:"exit",animate:"enter",exit:"exit",variants:ime},ome=S.forwardRef(function(t,n){const{unmountOnExit:r,in:i,className:o,transition:a,transitionEnd:s,delay:l,...u}=t,d=i||r?"enter":"exit",p=r?i&&r:!0,m={transition:a,transitionEnd:s,delay:l};return g.jsx(rp,{custom:m,children:p&&g.jsx(su.div,{ref:n,className:xt("chakra-fade",o),custom:m,...oz,animate:d,...u})})});ome.displayName="Fade";var ame={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:i})=>{var o;return{opacity:0,...e?{scale:t,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{scale:t,...r==null?void 0:r.exit}},transition:(o=n==null?void 0:n.exit)!=null?o:Ku.exit(Ih.exit,i)}},enter:({transitionEnd:e,transition:t,delay:n})=>{var r;return{opacity:1,scale:1,transition:(r=t==null?void 0:t.enter)!=null?r:Ku.enter(Ih.enter,n),transitionEnd:e==null?void 0:e.enter}}},az={initial:"ex
.`.concat(Iye,` {
2023-02-19 11:24:10 +00:00
overflow: hidden `).concat(r,`;
padding-right: `).concat(s,"px ").concat(r,`;
}
body {
overflow: hidden `).concat(r,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
padding-left: `.concat(i,`px;
padding-top: `).concat(o,`px;
padding-right: `).concat(a,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(s,"px ").concat(r,`;
`),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
}
2023-02-22 09:36:55 +00:00
.`).concat(eS,` {
2023-02-19 11:24:10 +00:00
right: `).concat(s,"px ").concat(r,`;
}
2023-02-22 09:36:55 +00:00
.`).concat(tS,` {
2023-02-19 11:24:10 +00:00
margin-right: `).concat(s,"px ").concat(r,`;
}
2023-02-22 09:36:55 +00:00
.`).concat(eS," .").concat(eS,` {
2023-02-19 11:24:10 +00:00
right: 0 `).concat(r,`;
}
2023-02-22 09:36:55 +00:00
.`).concat(tS," .").concat(tS,` {
2023-02-19 11:24:10 +00:00
margin-right: 0 `).concat(r,`;
}
body {
2023-02-25 00:56:56 +00:00
`).concat(Dye,": ").concat(s,`px;
2023-02-19 11:24:10 +00:00
}
2023-02-25 00:56:56 +00:00
`)},qye=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r,o=S.useMemo(function(){return Uye(i)},[i]);return S.createElement(Vye,{styles:Gye(o,!t,i,n?"":"!important")})},ek=!1;if(typeof window<"u")try{var Kb=Object.defineProperty({},"passive",{get:function(){return ek=!0,!0}});window.addEventListener("test",Kb,Kb),window.removeEventListener("test",Kb,Kb)}catch{ek=!1}var Cg=ek?{passive:!1}:!1,Kye=function(e){return e.tagName==="TEXTAREA"},RH=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Kye(e)&&n[t]==="visible")},Yye=function(e){return RH(e,"overflowY")},Xye=function(e){return RH(e,"overflowX")},mO=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=IH(e,n);if(r){var i=DH(e,n),o=i[1],a=i[2];if(o>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Zye=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Qye=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},IH=function(e,t){return e==="v"?Yye(t):Xye(t)},DH=function(e,t){return e==="v"?Zye(t):Qye(t)},Jye=function(e,t){return e==="h"&&t==="rtl"?-1:1},e2e=function(e,t,n,r,i){var o=Jye(e,window.getComputedStyle(t).direction),a=o*r,s=n.target,l=t.contains(s),u=!1,d=a>0,p=0,m=0;do{var y=DH(e,s),b=y[0],w=y[1],E=y[2],_=w-E-o*b;(b||_)&&IH(e,s)&&(p+=_,m+=b),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(d&&(i&&p===0||!i&&a>p)||!d&&(i&&m===0||!i&&-a>m))&&(u=!0),u},Yb=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},vO=function(e){return[e.deltaX,e.deltaY]},yO=function(e){return e&&"current"in e?e.current:e},t2e=function(e,t){return e[0]===t[0]&&e[1]===t[1]},n2e=function(e){return`
2023-02-19 11:24:10 +00:00
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
2023-02-25 00:56:56 +00:00
`)},r2e=0,_g=[];function i2e(e){var t=S.useRef([]),n=S.useRef([0,0]),r=S.useRef(),i=S.useState(r2e++)[0],o=S.useState(function(){return OH()})[0],a=S.useRef(e);S.useEffect(function(){a.current=e},[e]),S.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var w=$_([e.lockRef.current],(e.shards||[]).map(yO),!0).filter(Boolean);return w.forEach(function(E){return E.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),w.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=S.useCallback(function(w,E){if("touches"in w&&w.touches.length===2)return!a.current.allowPinchZoom;var _=Yb(w),k=n.current,T="deltaX"in w?w.deltaX:k[0]-_[0],L="deltaY"in w?w.deltaY:k[1]-_[1],O,D=w.target,I=Math.abs(T)>Math.abs(L)?"h":"v";if("touches"in w&&I==="h"&&D.type==="range")return!1;var N=mO(I,D);if(!N)return!0;if(N?O=I:(O=I==="v"?"h":"v",N=mO(I,D)),!N)return!1;if(!r.current&&"changedTouches"in w&&(T||L)&&(r.current=O),!O)return!0;var W=r.current||O;return e2e(W,E,w,W==="h"?T:L,!0)},[]),l=S.useCallback(function(w){var E=w;if(!(!_g.length||_g[_g.length-1]!==o)){var _="deltaY"in E?vO(E):Yb(E),k=t.current.filter(function(O){return O.name===E.type&&O.target===E.target&&t2e(O.delta,_)})[0];if(k&&k.should){E.cancelable&&E.preventDefault();return}if(!k){var T=(a.current.shards||[]).map(yO).filter(Boolean).filter(function(O){return O.contains(E.target)}),L=T.length>0?s(E,T[0]):!a.current.noIsolation;L&&E.cancelable&&E.preventDefault()}}},[]),u=S.useCallback(function(w,E,_,k){var T={name:w,delta:E,target:_,should:k};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(L){return L!==T})},1)},[]),d=S.useCallback(function(w){n.current=Yb(w),r.current=void 0},[]),p=S.useCallback(function(w){u(w.type,vO(w),w.target,s(w,e.lockRef.current))},[]),m=S.useCallback(function(w){u(w.type,Yb(w),w.target,s(w,e.lockRef.current))},[]);S.useEffect(function(){return _g.push(o),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",l,Cg),document.addEventListener("touchmove",l,Cg),document.addEventListener("touchstart",d,Cg),function(){_g=_g.filter(function(w){return w!==o}),document.removeEventListener("wheel",l,Cg),document.removeEventListener("touchmove",l,Cg),document.removeEventListener("touchstart",d,Cg)}},[]);var y=e.removeScrollBar,b=e.inert;return S.createElement(S.Fragment,null,b?S.createElement(o,{styles:n2e(i)}):null,y?S.createElement(qye,{gapMode:"margin"}):null)}const o2e=l0e(AH,i2e);var jH=S.forwardRef(function(e,t){return S.createElement(Bw,Nl({},e,{ref:t,sideCar:o2e}))});jH.classNames=Bw.classNames;const NH=jH;function a2e(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:i,blockScrollOnMount:o,allowPinchZoom:a,finalFocusRef:s,returnFocusOnClose:l,preserveScrollBarGap:u,lockFocusAcrossFrames:d,isOpen:p}=Yh(),[m,y]=RB();S.useEffect(()=>{!m&&y&&setTimeout(y)},[m,y]);const b=TH(r,p);return g.jsx(Jz,{autoFocus:t,isDisabled:!n,initialFocusRef:i,finalFocusRef:s,restoreFocus:l,contentRef:r,lockFocusAcrossFrames:d,children:g.jsx(NH,{removeScrollBar:!u,allowPinchZoom:a,enabled:b===1&&o,forwardProps:!0,children:e.children})})}var Xd=Ze((e,t)=>{const{className:n,children:r,containerProps:i,motionProps:o,...a}=e,{getDialogProps:s,getDialogContainerProps:l}=Yh(),u=s(a,t),d=l(i),p=xt("chakra-modal__content",n),m=g0(),y={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...m.dialog},b={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...m.dialogContainer},{motionPreset:w}=Yh();return g.jsx(a2e,{children:g.jsx(Ne.div,{...d,className:"chakra-modal__content-container",tabIndex:-1,__css:b,children:g.jsx(PH,{preset:w,motionProps:o,className:p,...u,__css:y,children:r})})})});Xd.displayName="ModalContent";function $H(e){const{leastDestructiveRef:t,...n}=e;return g.jsx(Yd,{...n,initialFocusRef:t})}var FH=Ze((e,t)=>g.jsx(Xd,{ref:t,role:"alertdialog",...e}
2023-02-19 11:24:10 +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.
2023-02-25 00:56:56 +00:00
*/var Qm=S;function jbe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Nbe=typeof Object.is=="function"?Object.is:jbe,$be=Qm.useState,Fbe=Qm.useEffect,Bbe=Qm.useLayoutEffect,zbe=Qm.useDebugValue;function Hbe(e,t){var n=t(),r=$be({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return Bbe(function(){i.value=n,i.getSnapshot=t,_C(i)&&o({inst:i})},[e,n,t]),Fbe(function(){return _C(i)&&o({inst:i}),e(function(){_C(i)&&o({inst:i})})},[e]),zbe(n),n}function _C(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Nbe(e,n)}catch{return!0}}function Wbe(e,t){return t()}var Ube=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Wbe:Hbe;lW.useSyncExternalStore=Qm.useSyncExternalStore!==void 0?Qm.useSyncExternalStore:Ube;(function(e){e.exports=lW})(Dbe);var ok={},Vbe={get exports(){return ok},set exports(e){ok=e}},uW={};/**
2023-02-19 11:24:10 +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.
2023-02-25 00:56:56 +00:00
*/var Gw=S,Gbe=ik;function qbe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Kbe=typeof Object.is=="function"?Object.is:qbe,Ybe=Gbe.useSyncExternalStore,Xbe=Gw.useRef,Zbe=Gw.useEffect,Qbe=Gw.useMemo,Jbe=Gw.useDebugValue;uW.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=Xbe(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=Qbe(function(){function l(y){if(!u){if(u=!0,d=y,y=r(y),i!==void 0&&a.hasValue){var b=a.value;if(i(b,y))return p=b}return p=y}if(b=p,Kbe(d,y))return b;var w=r(y);return i!==void 0&&i(b,w)?b:(d=y,p=w)}var u=!1,d,p,m=n===void 0?null:n;return[function(){return l(t())},m===null?void 0:function(){return l(m())}]},[t,n,r,i]);var s=Ybe(e,o[0],o[1]);return Zbe(function(){a.hasValue=!0,a.value=s},[s]),Jbe(s),s};(function(e){e.exports=uW})(Vbe);function exe(e){e()}let cW=exe;const txe=e=>cW=e,nxe=()=>cW,Zd=S.createContext(null);function dW(){return S.useContext(Zd)}const rxe=()=>{throw new Error("uSES not initialized!")};let fW=rxe;const ixe=e=>{fW=e},oxe=(e,t)=>e===t;function axe(e=Zd){const t=e===Zd?dW:()=>S.useContext(e);return function(r,i=oxe){const{store:o,subscription:a,getServerState:s}=t(),l=fW(a.addNestedSub,o.getState,s||o.getState,r,i);return S.useDebugValue(l),l}}const sxe=axe();var EO={},lxe={get exports(){return EO},set exports(e){EO=e}},Nn={};/**
2023-02-19 11:24:10 +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-02-25 00:56:56 +00:00
*/var Q8=Symbol.for("react.element"),J8=Symbol.for("react.portal"),qw=Symbol.for("react.fragment"),Kw=Symbol.for("react.strict_mode"),Yw=Symbol.for("react.profiler"),Xw=Symbol.for("react.provider"),Zw=Symbol.for("react.context"),uxe=Symbol.for("react.server_context"),Qw=Symbol.for("react.forward_ref"),Jw=Symbol.for("react.suspense"),e4=Symbol.for("react.suspense_list"),t4=Symbol.for("react.memo"),n4=Symbol.for("react.lazy"),cxe=Symbol.for("react.offscreen"),hW;hW=Symbol.for("react.module.reference");function ps(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Q8:switch(e=e.type,e){case qw:case Yw:case Kw:case Jw:case e4:return e;default:switch(e=e&&e.$$typeof,e){case uxe:case Zw:case Qw:case n4:case t4:case Xw:return e;default:return t}}case J8:return t}}}Nn.ContextConsumer=Zw;Nn.ContextProvider=Xw;Nn.Element=Q8;Nn.ForwardRef=Qw;Nn.Fragment=qw;Nn.Lazy=n4;Nn.Memo=t4;Nn.Portal=J8;Nn.Profiler=Yw;Nn.StrictMode=Kw;Nn.Suspense=Jw;Nn.SuspenseList=e4;Nn.isAsyncMode=function(){return!1};Nn.isConcurrentMode=function(){return!1};Nn.isContextConsumer=function(e){return ps(e)===Zw};Nn.isContextProvider=function(e){return ps(e)===Xw};Nn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Q8};Nn.isForwardRef=function(e){return ps(e)===Qw};Nn.isFragment=function(e){return ps(e)===qw};Nn.isLazy=function(e){return ps(e)===n4};Nn.isMemo=function(e){return ps(e)===t4};Nn.isPortal=function(e){return ps(e)===J8};Nn.isProfiler=function(e){return ps(e)===Yw};Nn.isStrictMode=function(e){return ps(e)===Kw};Nn.isSuspense=function(e){return ps(e)===Jw};Nn.isSuspenseList=function(e){return ps(e)===e4};Nn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===qw||e===Yw||e===Kw||e===Jw||e===e4||e===cxe||typeof e=="object"&&e!==null&&(e.$$typeof===n4||e.$$typeof===t4||e.$$typeof===Xw||e.$$typeof===Zw||e.$$typeof===Qw||e.$$typeof===hW||e.getModuleId!==void 0)};Nn.typeOf=ps;(function(e){e.exports=Nn})(lxe);function dxe(){const e=nxe();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 PO={notify(){},get:()=>[]};function fxe(e,t){let n,r=PO;function i(p){return l(),r.subscribe(p)}function o(){r.notify()}function a(){d.onStateChange&&d.onStateChange()}function s(){return Boolean(n)}function l(){n||(n=t?t.addNestedSub(a):e.subscribe(a),r=dxe())}function u(){n&&(n(),n=void 0,r.clear(),r=PO)}const d={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:s,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>r};return d}const hxe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",pxe=hxe?S.useLayoutEffect:S.useEffect;function gxe({store:e,context:t,children:n,serverState:r}){const i=S.useMemo(()=>{const s=fxe(e);return{store:e,subscription:s,getServerState:r?()=>r:void 0}},[e,r]),o=S.useMemo(()=>e.getState(),[e]);pxe(()=>{const{subscription:s}=i;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),o!==e.getState()&&s.notifyNestedSubs(),()=>{s.tryUnsubscribe(),s.onStateChange=void 0}},[i,o]);const a=t||Zd;return Ke.createElement(a.Provider,{value:i},n)}function pW(e=Zd){const t=e===Zd?dW:()=>S.useContext(e);return function(){const{store:r}=t();return r}}const mxe=pW();function vxe(e=Zd){const t=e===Zd?mxe:pW(e);return function(){return t().dispatch}}const yxe=vxe();ixe(ok.useSyncExternalStoreWithSelector);txe(Xs.unstable_batchedUpdates);function iS(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?iS=function(n){return typeof n}:iS=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},iS(e)}function bxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enu
2023-02-19 11:24:10 +00:00
2023-02-22 09:36:55 +00:00
`;if(!(0,e.isString)($)||$.length<1)throw new Error(`${Q} Name (key) of reducer is required. ${G}`);if(!z||!z.length)return;const{duplicates:Y,subsets:ee}=(0,e.findDuplicatesAndSubsets)(z);if(Y.length>1)throw new Error(`${Q} Duplicated paths.
2023-02-19 11:24:10 +00:00
2023-02-22 09:36:55 +00:00
${JSON.stringify(Y)}
2023-02-19 11:24:10 +00:00
2023-02-22 09:36:55 +00:00
${G}`);if(ee.length>1)throw new Error(`${Q} You are trying to persist an entire property and also some of its subset.
2023-02-19 11:24:10 +00:00
${JSON.stringify(ee)}
2023-02-22 09:36:55 +00:00
${G}`)};e.singleTransformValidator=N;const W=function(z){if(!(0,e.isArray)(z))return;const $=(z==null?void 0:z.map(V=>V.deepPersistKey).filter(V=>V))||[];if($.length){const V=$.filter((X,Q)=>$.indexOf(X)!==Q);if(V.length)throw new Error(`${t.PACKAGE_NAME}: found duplicated keys in transforms creators. You can createWhitelist or createBlacklist for a specific root reducer key only once. Duplicated keys among createWhitelist and createBlacklist transforms are not allowed.
2023-02-19 11:24:10 +00:00
2023-02-22 09:36:55 +00:00
Duplicates: ${JSON.stringify(V)}`)}};e.transformsValidator=W;const B=function({whitelist:z,blacklist:$}){if(z&&z.length&&$&&$.length)throw new Error(`${t.PACKAGE_NAME}: you should not define a whitelist and blacklist in parallel. It is allowed to use only one of these lists per config.`);if(z){const{duplicates:V,subsets:X}=(0,e.findDuplicatesAndSubsets)(z);(0,e.throwError)({duplicates:V,subsets:X},"whitelist")}if($){const{duplicates:V,subsets:X}=(0,e.findDuplicatesAndSubsets)($);(0,e.throwError)({duplicates:V,subsets:X},"blacklist")}};e.configValidator=B;const K=function({duplicates:z,subsets:$},V){if(z.length)throw new Error(`${t.PACKAGE_NAME}: duplicates of paths found in your ${V}.
2023-02-19 11:24:10 +00:00
2023-02-22 09:36:55 +00:00
${JSON.stringify(z)}`);if($.length)throw new Error(`${t.PACKAGE_NAME}: subsets of some parent keys found in your ${V}. You must decide if you want to persist an entire path or its specific subset.
2023-02-19 11:24:10 +00:00
2023-02-25 00:56:56 +00:00
${JSON.stringify($)}`)};e.throwError=K;const ne=function(z){return(0,e.isArray)(z)?z.filter(e.unique).reduce(($,V)=>{const X=V.split("."),Q=X[0],G=X.slice(1).join(".")||void 0,Y=$.filter(fe=>Object.keys(fe)[0]===Q)[0],ee=Y?Object.values(Y)[0]:void 0;return Y||$.push({[Q]:G?[G]:void 0}),Y&&!ee&&G&&(Y[Q]=[G]),Y&&ee&&G&&ee.push(G),$},[]):[]};e.getRootKeysGroup=ne})(RW);(function(e){var t=So&&So.__rest||function(p,m){var y={};for(var b in p)Object.prototype.hasOwnProperty.call(p,b)&&m.indexOf(b)<0&&(y[b]=p[b]);if(p!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,b=Object.getOwnPropertySymbols(p);w<b.length;w++)m.indexOf(b[w])<0&&Object.prototype.propertyIsEnumerable.call(p,b[w])&&(y[b[w]]=p[b[w]]);return y};Object.defineProperty(e,"__esModule",{value:!0}),e.getPersistConfig=e.getTransforms=e.createBlacklist=e.createWhitelist=e.autoMergeDeep=void 0;const n=RW,r=Zh,i=fE,o=function(p,m,y={}){const b=y.whitelist||null,w=y.blacklist||null;function E(_){return!!(b&&b.indexOf(_)===-1||w&&w.indexOf(_)!==-1)}return{in:(_,k,T)=>!E(k)&&p?p(_,k,T):_,out:(_,k,T)=>!E(k)&&m?m(_,k,T):_,deepPersistKey:b&&b[0]}},a=(p,m,y,{debug:b,whitelist:w,blacklist:E,transforms:_})=>{if(w||E)throw new Error("State reconciler autoMergeDeep uses custom transforms instead of old whitelist or blacklist config properties. Please use createWhitelist or createBlacklist transforms.");(0,n.transformsValidator)(_);const k=(0,n.cloneDeep)(y);let T=p;if(T&&(0,n.isObjectLike)(T)){const L=(0,n.difference)(m,y);(0,n.isEmpty)(L)||(T=(0,n.mergeDeep)(p,L,{preserveUndefined:!0}),b&&console.log(`${r.PACKAGE_NAME}/autoMergeDeep: sub state of your state was modified by reducer during rehydration. Values from reducer will be kept: ${JSON.stringify(L)}`)),Object.keys(T).forEach(O=>{if(O!=="_persist"){if((0,n.isObjectLike)(k[O])){k[O]=(0,n.mergeDeep)(k[O],T[O]);return}k[O]=T[O]}})}return b&&T&&(0,n.isObjectLike)(T)&&console.log(`${r.PACKAGE_NAME}/autoMergeDeep: rehydrated keys ${JSON.stringify(T)}`),k};e.autoMergeDeep=a;const s=(p,m)=>((0,n.singleTransformValidator)(m,p,i.ConfigType.WHITELIST),o(y=>{if(!m||!m.length)return y;let b=null,w;return m.forEach(E=>{const _=E.split(".");w=(0,n.path)(y,_),typeof w>"u"&&(0,n.isIntegerString)(_[_.length-1])&&(w=r.PLACEHOLDER_UNDEFINED);const k=(0,n.assocPath)(_,w),T=(0,n.isArray)(k)?[]:{};b=(0,n.mergeDeep)(b||T,k,{preservePlaceholder:!0})}),b||y},y=>(0,n.preserveUndefined)(y,m,i.ConfigType.WHITELIST),{whitelist:[p]}));e.createWhitelist=s;const l=(p,m)=>((0,n.singleTransformValidator)(m,p,i.ConfigType.BLACKLIST),o(y=>{if(!m||!m.length)return;const b=(0,n.preserveUndefined)(y,m,i.ConfigType.BLACKLIST,!0);return m.map(E=>E.split(".")).reduce((E,_)=>(0,n.dissocPath)(E,_),b)},y=>(0,n.preserveUndefined)(y,m,i.ConfigType.BLACKLIST),{whitelist:[p]}));e.createBlacklist=l;const u=function(p,m){return m.map(y=>{const b=Object.keys(y)[0],w=y[b];return p===i.ConfigType.WHITELIST?(0,e.createWhitelist)(b,w):(0,e.createBlacklist)(b,w)})};e.getTransforms=u;const d=p=>{var{key:m,whitelist:y,blacklist:b,storage:w,transforms:E,rootReducer:_}=p,k=t(p,["key","whitelist","blacklist","storage","transforms","rootReducer"]);(0,n.configValidator)({whitelist:y,blacklist:b});const T=(0,n.getRootKeysGroup)(y),L=(0,n.getRootKeysGroup)(b),O=Object.keys(_(void 0,{type:""})),D=T.map(ne=>Object.keys(ne)[0]),I=L.map(ne=>Object.keys(ne)[0]),N=O.filter(ne=>D.indexOf(ne)===-1&&I.indexOf(ne)===-1),W=(0,e.getTransforms)(i.ConfigType.WHITELIST,T),B=(0,e.getTransforms)(i.ConfigType.BLACKLIST,L),K=(0,n.isArray)(y)?N.map(ne=>(0,e.createBlacklist)(ne)):[];return Object.assign(Object.assign({},k),{key:m,storage:w,transforms:[...W,...B,...K,...E||[]],stateReconciler:e.autoMergeDeep})};e.getPersistConfig=d})(OW);const Cd=(e,t)=>Math.floor(e/t)*t,Hl=(e,t)=>Math.round(e/t)*t;var Ce={},USe={get exports(){return Ce},set exports(e){Ce=e}};/**
2023-02-19 11:24:10 +00:00
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
2023-02-25 00:56:56 +00:00
*/(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,d="__lodash_placeholder__",p=1,m=2,y=4,b=1,w=2,E=1,_=2,k=4,T=8,L=16,O=32,D=64,I=128,N=256,W=512,B=30,K="...",ne=800,z=16,$=1,V=2,X=3,Q=1/0,G=9007199254740991,Y=17976931348623157e292,ee=0/0,fe=4294967295,_e=fe-1,we=fe>>>1,xe=[["ary",I],["bind",E],["bindKey",_],["curry",T],["curryRight",L],["flip",W],["partial",O],["partialRight",D],["rearg",N]],Le="[object Arguments]",Se="[object Array]",Je="[object AsyncFunction]",Xe="[object Boolean]",tt="[object Date]",yt="[object DOMException]",Be="[object Error]",Ae="[object Function]",bt="[object GeneratorFunction]",Fe="[object Map]",at="[object Number]",jt="[object Null]",mt="[object Object]",Zt="[object Promise]",on="[object Proxy]",se="[object RegExp]",Ie="[object Set]",He="[object String]",Ue="[object Symbol]",ye="[object Undefined]",je="[object WeakMap]",vt="[object WeakSet]",Mt="[object ArrayBuffer]",Me="[object DataView]",Ct="[object Float32Array]",zt="[object Float64Array]",$n="[object Int8Array]",qe="[object Int16Array]",pt="[object Int32Array]",zr="[object Uint8Array]",rr="[object Uint8ClampedArray]",Bn="[object Uint16Array]",li="[object Uint32Array]",vs=/\b__p \+= '';/g,tl=/\b(__p \+=) '' \+/g,gf=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ys=/&(?:amp|lt|gt|quot|#39);/g,Xi=/[&<>"']/g,_0=RegExp(ys.source),Na=RegExp(Xi.source),wp=/<%-([\s\S]+?)%>/g,k0=/<%([\s\S]+?)%>/g,bc=/<%=([\s\S]+?)%>/g,Cp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_p=/^\w*$/,na=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mf=/[\\^$.*+?()[\]{}|]/g,E0=RegExp(mf.source),xc=/^\s+/,vf=/\s/,P0=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,nl=/\{\n\/\* \[wrapped with (.+)\] \*/,Sc=/,? & /,T0=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,M0=/[()=,{}\[\]\/\s]/,L0=/\\(\\)?/g,A0=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,bs=/\w*$/,O0=/^[-+]0x[0-9a-f]+$/i,R0=/^0b[01]+$/i,I0=/^\[object .+?Constructor\]$/,D0=/^0o[0-7]+$/i,j0=/^(?:0|[1-9]\d*)$/,N0=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rl=/($^)/,$0=/['\n\r\u2028\u2029\\]/g,xs="\\ud800-\\udfff",fu="\\u0300-\\u036f",hu="\\ufe20-\\ufe2f",il="\\u20d0-\\u20ff",pu=fu+hu+il,kp="\\u2700-\\u27bf",wc="a-z\\xdf-\\xf6\\xf8-\\xff",ol="\\xac\\xb1\\xd7\\xf7",ra="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Mn="\\u2000-\\u206f",wn=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ia="A-Z\\xc0-\\xd6\\xd8-\\xde",Hr="\\ufe0e\\ufe0f",ui=ol+ra+Mn+wn,oa="[']",al="["+xs+"]",ci="["+ui+"]",Ss="["+pu+"]",yf="\\d+",gu="["+kp+"]",ws="["+wc+"]",bf="[^"+xs+ui+yf+kp+wc+ia+"]",Ri="\\ud83c[\\udffb-\\udfff]",Ep="(?:"+Ss+"|"+Ri+")",Pp="[^"+xs+"]",xf="(?:\\ud83c[\\udde6-\\uddff]){2}",sl="[\\ud800-\\udbff][\\udc00-\\udfff]",Mo="["+ia+"]",ll="\\u200d",mu="(?:"+ws+"|"+bf+")",F0="(?:"+Mo+"|"+bf+")",Cc="(?:"+oa+"(?:d|ll|m|re|s|t|ve))?",_c="(?:"+oa+"(?:D|LL|M|RE|S|T|VE))?",Sf=Ep+"?",kc="["+Hr+"]?",$a="(?:"+ll+"(?:"+[Pp,xf,sl].join("|")+")"+kc+Sf+")*",wf="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",vu="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Gt=kc+Sf+$a,Tp="(?:"+[gu,xf,sl].join("|")+")"+Gt,Ec="(?:"+[Pp+Ss+"?",Ss,xf,sl,al].join("|")+")",Pc=RegExp(oa,"g"),Mp=RegExp(Ss,"g"),aa=RegExp(Ri+"(?="+Ri+")|"+Ec+Gt,"g"),Xn=RegExp([Mo+"?"+ws+"+"+Cc+"(?="+[ci,Mo,"$"].join("|")+")",F0+"+"+_c+"(?="+[ci,Mo+mu,"$"].join("|")+")",Mo+"?"+mu+"+"+Cc,Mo+"+"+_c,vu,wf,yf,Tp].join("|"),"g"),Cf=RegExp("["+ll+xs+pu+Hr+"]"),Lp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,_f=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ap=-1,cn={};cn[Ct
2023-02-19 16:28:52 +00:00
/* [wrapped with `+v+`] */
2023-02-25 00:56:56 +00:00
`)}function MK(c){return $t(c)||th(c)||!!(Z0&&c&&c[Z0])}function Pu(c,v){var C=typeof c;return v=v??G,!!v&&(C=="number"||C!="symbol"&&j0.test(c))&&c>-1&&c%1==0&&c<v}function mo(c,v,C){if(!Cr(C))return!1;var A=typeof v;return(A=="number"?$o(C)&&Pu(v,C.length):A=="string"&&v in C)?Os(C[v],c):!1}function z4(c,v){if($t(c))return!1;var C=typeof c;return C=="number"||C=="symbol"||C=="boolean"||c==null||va(c)?!0:_p.test(c)||!Cp.test(c)||v!=null&&c in dn(v)}function LK(c){var v=typeof c;return v=="string"||v=="number"||v=="symbol"||v=="boolean"?c!=="__proto__":c===null}function H4(c){var v=ve(c),C=F[v];if(typeof C!="function"||!(v in Yt.prototype))return!1;if(c===C)return!0;var A=ue(C);return!!A&&c===A[0]}function AK(c){return!!Dc&&Dc in c}var OK=pr?Tu:o5;function Tv(c){var v=c&&c.constructor,C=typeof v=="function"&&v.prototype||Cn;return c===C}function OP(c){return c===c&&!Cr(c)}function RP(c,v){return function(C){return C==null?!1:C[c]===v&&(v!==n||c in dn(C))}}function RK(c){var v=ub(c,function(A){return C.size===u&&C.clear(),A}),C=v.cache;return v}function IK(c,v){var C=c[1],A=v[1],j=C|A,H=j<(E|_|I),Z=A==I&&C==T||A==I&&C==N&&c[7].length<=v[8]||A==(I|N)&&v[7].length<=v[8]&&C==T;if(!(H||Z))return c;A&E&&(c[2]=v[2],j|=C&E?0:k);var te=v[3];if(te){var ce=c[3];c[3]=ce?rb(ce,te,v[4]):te,c[4]=ce?ua(c[3],d):v[4]}return te=v[5],te&&(ce=c[5],c[5]=ce?Cv(ce,te,v[6]):te,c[6]=ce?ua(c[5],d):v[6]),te=v[7],te&&(c[7]=te),A&I&&(c[8]=c[8]==null?v[8]:hi(c[8],v[8])),c[9]==null&&(c[9]=v[9]),c[0]=v[0],c[1]=j,c}function DK(c){var v=[];if(c!=null)for(var C in dn(c))v.push(C);return v}function jK(c){return Fp.call(c)}function IP(c,v,C){return v=Or(v===n?c.length-1:v,0),function(){for(var A=arguments,j=-1,H=Or(A.length-v,0),Z=me(H);++j<H;)Z[j]=A[v+j];j=-1;for(var te=me(v+1);++j<v;)te[j]=A[j];return te[v]=C(Z),Ii(c,this,te)}}function DP(c,v){return v.length<2?c:gl(c,qr(v,0,-1))}function NK(c,v){for(var C=c.length,A=hi(v.length,C),j=Bi(c);A--;){var H=v[A];c[A]=Pu(H,C)?j[H]:n}return c}function W4(c,v){if(!(v==="constructor"&&typeof c[v]=="function")&&v!="__proto__")return c[v]}var jP=$P(Kf),Mv=$f||function(c,v){return St.setTimeout(c,v)},U4=$P(ag);function NP(c,v,C){var A=v+"";return U4(c,TK(A,$K(kK(A),C)))}function $P(c){var v=0,C=0;return function(){var A=Q0(),j=z-(A-C);if(C=A,j>0){if(++v>=ne)return arguments[0]}else v=0;return c.apply(n,arguments)}}function ob(c,v){var C=-1,A=c.length,j=A-1;for(v=v===n?A:v;++C<v;){var H=Gf(C,j),Z=c[H];c[H]=c[C],c[C]=Z}return c.length=v,c}var FP=RK(function(c){var v=[];return c.charCodeAt(0)===46&&v.push(""),c.replace(na,function(C,A,j,H){v.push(j?H.replace(L0,"$1"):A||C)}),v});function kl(c){if(typeof c=="string"||va(c))return c;var v=c+"";return v=="0"&&1/c==-Q?"-0":v}function eh(c){if(c!=null){try{return xr.call(c)}catch{}try{return c+""}catch{}}return""}function $K(c,v){return Zn(xe,function(C){var A="_."+C[0];v&C[1]&&!Zi(c,A)&&c.push(A)}),c.sort()}function BP(c){if(c instanceof Yt)return c.clone();var v=new fo(c.__wrapped__,c.__chain__);return v.__actions__=Bi(c.__actions__),v.__index__=c.__index__,v.__values__=c.__values__,v}function FK(c,v,C){(C?mo(c,v,C):v===n)?v=1:v=Or(Ft(v),0);var A=c==null?0:c.length;if(!A||v<1)return[];for(var j=0,H=0,Z=me(Ff(A/v));j<A;)Z[H++]=qr(c,j,j+=v);return Z}function BK(c){for(var v=-1,C=c==null?0:c.length,A=0,j=[];++v<C;){var H=c[v];H&&(j[A++]=H)}return j}function zK(){var c=arguments.length;if(!c)return[];for(var v=me(c-1),C=arguments[0],A=c;A--;)v[A-1]=arguments[A];return Ba($t(C)?Bi(C):[C],Vr(v,1))}var HK=Tt(function(c,v){return Kr(c)?Yc(c,Vr(v,1,Kr,!0)):[]}),WK=Tt(function(c,v){var C=Va(v);return Kr(C)&&(C=n),Kr(c)?Yc(c,Vr(v,1,Kr,!0),Oe(C,2)):[]}),UK=Tt(function(c,v){var C=Va(v);return Kr(C)&&(C=n),Kr(c)?Yc(c,Vr(v,1,Kr,!0),n,C):[]});function VK(c,v,C){var A=c==null?0:c.length;return A?(v=C||v===n?1:Ft(v),qr(c,v<0?0:v,A)):[]}function GK(c,v,C){var A=c==null?0:c.length;return A?(v=C||v===n?1:Ft(v),v=A-v,qr(c,0,v<0?0:v)):[]}function qK(c,v){return c&&c.length?nd(c,Oe(v,3),!0,!0):[]}function KK(c,v){return c&&c.length?nd(c,Oe(v,3),!0):[]}function YK(c,v,C,A){var j=c==null?0:c.length;
`;c.replace(nt,function(kt,Xt,tn,ya,vo,ba){return tn||(tn=ya),Re+=c.slice(ke,ba).replace($0,dl),Xt&&(te=!0,Re+=`' +
2023-02-19 11:24:10 +00:00
__e(`+Xt+`) +
'`),vo&&(ce=!0,Re+=`';
`+vo+`;
2023-02-20 13:41:26 +00:00
__p += '`),tn&&(Re+=`' +
((__t = (`+tn+`)) == null ? '' : __t) +
2023-02-25 00:56:56 +00:00
'`),ke=ba+kt.length,kt}),Re+=`';
2023-02-19 16:28:52 +00:00
`;var _t=an.call(v,"variable")&&v.variable;if(!_t)Re=`with (obj) {
2023-02-19 11:24:10 +00:00
`+Re+`
}
2023-02-22 09:36:55 +00:00
`;else if(M0.test(_t))throw new Lt(s);Re=(ce?Re.replace(vs,""):Re).replace(tl,"$1").replace(gf,"$1;"),Re="function("+(_t||"obj")+`) {
2023-02-19 11:24:10 +00:00
`+(_t?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(te?", __e = _.escape":"")+(ce?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+Re+`return __p
2023-02-25 00:56:56 +00:00
}`;var Vt=yT(function(){return en(H,gt+"return "+Re).apply(n,Z)});if(Vt.source=Re,Y4(Vt))throw Vt;return Vt}function iQ(c){return _n(c).toLowerCase()}function oQ(c){return _n(c).toUpperCase()}function aQ(c,v,C){if(c=_n(c),c&&(C||v===n))return co(c);if(!c||!(v=po(v)))return c;var A=Qi(c),j=Qi(v),H=la(A,j),Z=Cs(A,j)+1;return Ls(A,H,Z).join("")}function sQ(c,v,C){if(c=_n(c),c&&(C||v===n))return c.slice(0,G0(c)+1);if(!c||!(v=po(v)))return c;var A=Qi(c),j=Cs(A,Qi(v))+1;return Ls(A,0,j).join("")}function lQ(c,v,C){if(c=_n(c),c&&(C||v===n))return c.replace(xc,"");if(!c||!(v=po(v)))return c;var A=Qi(c),j=la(A,Qi(v));return Ls(A,j).join("")}function uQ(c,v){var C=B,A=K;if(Cr(v)){var j="separator"in v?v.separator:j;C="length"in v?Ft(v.length):C,A="omission"in v?po(v.omission):A}c=_n(c);var H=c.length;if(bu(c)){var Z=Qi(c);H=Z.length}if(C>=H)return c;var te=C-za(A);if(te<1)return A;var ce=Z?Ls(Z,0,te).join(""):c.slice(0,te);if(j===n)return ce+A;if(Z&&(te+=ce.length-te),X4(j)){if(c.slice(te).search(j)){var ke,Pe=ce;for(j.global||(j=If(j.source,_n(bs.exec(j))+"g")),j.lastIndex=0;ke=j.exec(Pe);)var Re=ke.index;ce=ce.slice(0,Re===n?te:Re)}}else if(c.indexOf(po(j),te)!=te){var nt=ce.lastIndexOf(j);nt>-1&&(ce=ce.slice(0,nt))}return ce+A}function cQ(c){return c=_n(c),c&&_0.test(c)?c.replace(ys,D2):c}var dQ=_l(function(c,v,C){return c+(C?" ":"")+v.toUpperCase()}),J4=pg("toUpperCase");function vT(c,v,C){return c=_n(c),v=C?n:v,v===n?jp(c)?Rf(c):W0(c):c.match(v)||[]}var yT=Tt(function(c,v){try{return Ii(c,n,v)}catch(C){return Y4(C)?C:new Lt(C)}}),fQ=gr(function(c,v){return Zn(v,function(C){C=kl(C),fa(c,C,q4(c[C],c))}),c});function hQ(c){var v=c==null?0:c.length,C=Oe();return c=v?Hn(c,function(A){if(typeof A[1]!="function")throw new Di(a);return[C(A[0]),A[1]]}):[],Tt(function(A){for(var j=-1;++j<v;){var H=c[j];if(Ii(H[0],this,A))return Ii(H[1],this,A)}})}function pQ(c){return Gp(wi(c,p))}function e5(c){return function(){return c}}function gQ(c,v){return c==null||c!==c?v:c}var mQ=Ev(),vQ=Ev(!0);function Bo(c){return c}function t5(c){return wr(typeof c=="function"?c:wi(c,p))}function yQ(c){return Jc(wi(c,p))}function bQ(c,v){return vl(c,wi(v,p))}var xQ=Tt(function(c,v){return function(C){return Ts(C,c,v)}}),SQ=Tt(function(c,v){return function(C){return Ts(c,C,v)}});function n5(c,v,C){var A=Ei(v),j=Xp(v,A);C==null&&!(Cr(v)&&(j.length||!A.length))&&(C=v,v=c,c=this,j=Xp(v,Ei(v)));var H=!(Cr(C)&&"chain"in C)||!!C.chain,Z=Tu(c);return Zn(j,function(te){var ce=v[te];c[te]=ce,Z&&(c.prototype[te]=function(){var ke=this.__chain__;if(H||ke){var Pe=c(this.__wrapped__),Re=Pe.__actions__=Bi(this.__actions__);return Re.push({func:ce,args:arguments,thisArg:c}),Pe.__chain__=ke,Pe}return ce.apply(c,Ba([this.value()],arguments))})}),c}function wQ(){return St._===this&&(St._=K0),this}function r5(){}function CQ(c){return c=Ft(c),Tt(function(v){return ed(v,c)})}var _Q=Pv(Hn),kQ=Pv(zn),EQ=Pv(Tc);function bT(c){return z4(c)?cl(kl(c)):Ms(c)}function PQ(c){return function(v){return c==null?n:gl(c,v)}}var TQ=x(),MQ=x(!0);function i5(){return[]}function o5(){return!1}function LQ(){return{}}function AQ(){return""}function OQ(){return!0}function RQ(c,v){if(c=Ft(c),c<1||c>G)return[];var C=fe,A=hi(c,fe);v=Oe(v),c-=fe;for(var j=Lf(A,v);++C<c;)v(C);return j}function IQ(c){return $t(c)?Hn(c,kl):va(c)?[c]:Bi(FP(_n(c)))}function DQ(c){var v=++Df;return _n(c)+v}var jQ=gg(function(c,v){return c+v},0),NQ=R("ceil"),$Q=gg(function(c,v){return c/v},1),FQ=R("floor");function BQ(c){return c&&c.length?Ir(c,Bo,Zp):n}function zQ(c,v){return c&&c.length?Ir(c,Oe(v,2),Zp):n}function HQ(c){return Pf(c,Bo)}function WQ(c,v){return Pf(c,Oe(v,2))}function UQ(c){return c&&c.length?Ir(c,Bo,ml):n}function VQ(c,v){return c&&c.length?Ir(c,Oe(v,2),ml):n}var GQ=gg(function(c,v){return c*v},1),qQ=R("round"),KQ=gg(function(c,v){return c-v},0);function YQ(c){return c&&c.length?Mf(c,Bo):0}function XQ(c,v){return c&&c.length?Mf(c,Oe(v,2)):0}return F.after=yX,F.ary=XP,F.assign=oZ,F.assignIn=cT,F.assignInWith=hb,F.assignWith=aZ,F.at=sZ,F.before=ZP,F.bind=q4,F.bindAll=fQ,F.bindKey=QP,F.castArray=LX,F.chain=qP,F.c
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y3e(e){return xU(e)||K3e(e)||SU(e)||wU()}function cR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function dR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cR(Object(n),!0).forEach(function(r){fs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var X3e={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,n){console&&console[t]&&console[t].apply(console,n)}},Z3e=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};gs(this,e),this.init(t,n)}return ms(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||X3e,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(n,r,i,o){return o&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(i).concat(this.prefix," ").concat(n[0])),this.logger[r](n))}},{key:"create",value:function(n){return new e(this.logger,dR(dR({},{prefix:"".concat(this.prefix,":").concat(n,":")}),this.options))}},{key:"clone",value:function(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new e(this.logger,n)}}]),e}(),Wl=new Z3e,Jd=function(){function e(){gs(this,e),this.observers={}}return ms(e,[{key:"on",value:function(n,r){var i=this;return n.split(" ").forEach(function(o){i.observers[o]=i.observers[o]||[],i.observers[o].push(r)}),this}},{key:"off",value:function(n,r){if(this.observers[n]){if(!r){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(i){return i!==r})}}},{key:"emit",value: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];if(this.observers[n]){var a=[].concat(this.observers[n]);a.forEach(function(l){l.apply(void 0,i)})}if(this.observers["*"]){var s=[].concat(this.observers["*"]);s.forEach(function(l){l.apply(l,[n].concat(i))})}}}]),e}();function qv(){var e,t,n=new Promise(function(r,i){e=r,t=i});return n.resolve=e,n.reject=t,n}function fR(e){return e==null?"":""+e}function Q3e(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function bE(e,t,n){function r(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function i(){return!e||typeof e=="string"}for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={}}return i()?{}:{obj:e,k:r(o.shift())}}function hR(e,t,n){var r=bE(e,t,Object),i=r.obj,o=r.k;i[o]=n}function J3e(e,t,n,r){var i=bE(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],r&&(o[a]=o[a].concat(n)),r||o[a].push(n)}function E3(e,t){var n=bE(e,t),r=n.obj,i=n.k;if(r)return r[i]}function pR(e,t,n){var r=E3(e,n);return r!==void 0?r:E3(t,n)}function CU(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):CU(e[r],t[r],n):e[r]=t[r]);return e}function Mg(e){return e.replace(/[
`),n=+this.fontSize(),r=0,i=this.lineHeight()*n,o=this.attrs.width,a=this.attrs.height,s=o!==Rg&&o!==void 0,l=a!==Rg&&a!==void 0,u=this.padding(),d=o-u*2,p=a-u*2,m=0,y=this.wrap(),b=y!==yI,w=y!==t6e&&b,E=this.ellipsis();this.textArr=[],KC().font=this._getContextFont();for(var _=E?this._getTextWidth(qC):0,k=0,T=t.length;k<T;++k){var L=t[k],O=this._getTextWidth(L);if(s&&O>d)for(;L.length>0;){for(var D=0,I=L.length,N="",W=0;D<I;){var B=D+I>>>1,K=L.slice(0,B+1),ne=this._getTextWidth(K)+_;ne<=d?(D=B+1,N=K,W=ne):I=B}if(N){if(w){var z,$=L[N.length],V=$===hx||$===mI;V&&W<=d?z=N.length:z=Math.max(N.lastIndexOf(hx),N.lastIndexOf(mI))+1,z>0&&(D=z,N=N.slice(0,D),W=this._getTextWidth(N))}N=N.trimRight(),this._addTextLine(N),r=Math.max(r,W),m+=i;var X=this._shouldHandleEllipsis(m);if(X){this._tryToAddEllipsisToLastLine();break}if(L=L.slice(D),L=L.trimLeft(),L.length>0&&(O=this._getTextWidth(L),O<=d)){this._addTextLine(L),m+=i,r=Math.max(r,O);break}}else break}else this._addTextLine(L),m+=i,r=Math.max(r,O),this._shouldHandleEllipsis(m)&&k<T-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),l&&m+i>p)break}this.textHeight=n,this.textWidth=r}_shouldHandleEllipsis(t){var n=+this.fontSize(),r=this.lineHeight()*n,i=this.attrs.height,o=i!==Rg&&i!==void 0,a=this.padding(),s=i-a*2,l=this.wrap(),u=l!==yI;return!u||o&&t+r>s}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,n=t!==Rg&&t!==void 0,r=this.padding(),i=t-r*2,o=this.ellipsis(),a=this.textArr[this.textArr.length-1];if(!(!a||!o)){if(n){var s=this._getTextWidth(a.text+qC)<i;s||(a.text=a.text.slice(0,a.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+qC)}}getStrokeScaleEnabled(){return!0}}Tr.prototype._fillFunc=i6e;Tr.prototype._strokeFunc=o6e;Tr.prototype.className=YCe;Tr.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];Mr(Tr);J.overWriteSetter(Tr,"width",EE());J.overWriteSetter(Tr,"height",EE());J.addGetterSetter(Tr,"fontFamily","Arial");J.addGetterSetter(Tr,"fontSize",12,Ve());J.addGetterSetter(Tr,"fontStyle",TV);J.addGetterSetter(Tr,"fontVariant",TV);J.addGetterSetter(Tr,"padding",0,Ve());J.addGetterSetter(Tr,"align",PV);J.addGetterSetter(Tr,"verticalAlign",XCe);J.addGetterSetter(Tr,"lineHeight",1,Ve());J.addGetterSetter(Tr,"wrap",e6e);J.addGetterSetter(Tr,"ellipsis",!1,el());J.addGetterSetter(Tr,"letterSpacing",0,Ve());J.addGetterSetter(Tr,"text","",x0());J.addGetterSetter(Tr,"textDecoration","");var s6e="",LV="normal";function AV(e){e.fillText(this.partialText,0,0)}function OV(e){e.strokeText(this.partialText,0,0)}class bi extends $e{constructor(t){super(t),this.dummyCanvas=de.createCanvasElement(),this.dataArray=[],this.dataArray=Fn.parsePathData(this.attrs.data),this.on("dataChange.konva",function(){this.dataArray=Fn.parsePathData(this.attrs.data),this._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_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=this.glyphInfo;n==="underline"&&t.beginPath();for(var a=0;a<o.length;a++){t.save();var s=o[a].p0;t.translate(s.x,s.y),t.rotate(o[a].rotation),this.partialText=o[a].text,t.fillStrokeShape(this),n==="underline"&&(a===0&&t.moveTo(0,i/2+1),t.lineTo(i,i/2+1)),t.restore()}n==="underline"&&(t.strokeStyle=r,t.lineWidth=i/20,t.stroke()),t.restore()}_hitFunc(t){t.beginPath();var n=this.glyphInfo;if(n.length>=1){var r=n[0].p0;t.moveTo(r.x,r.y)}for(var i=0;i<n.length;i++){var o=n[i].p1;t.lineTo(o.x,o.y)}t.setAttr("lineWidth",this.fontSize()),t.setAttr("strokeStyle",this.colorKey),t.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return de.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.tex
2023-02-19 11:24:10 +00:00
position: relative;
width: -moz-fit-content;
width: fit-content;
height: -moz-fit-content;
height: fit-content;
overflow: hidden;
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Safari */
-khtml-user-select: none; /* Konqueror HTML */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none;
margin: 0;
padding: 0;
}
.transform-component-module_content__uCDPE {
display: flex;
flex-wrap: wrap;
width: -moz-fit-content;
width: fit-content;
height: -moz-fit-content;
height: fit-content;
margin: 0;
padding: 0;
transform-origin: 0% 0%;
}
.transform-component-module_content__uCDPE img {
pointer-events: none;
}
2023-02-25 00:56:56 +00:00
`,fD={wrapper:"transform-component-module_wrapper__7HFJe",content:"transform-component-module_content__uCDPE"};zEe(HEe);var WEe=function(e){var t=e.children,n=e.wrapperClass,r=n===void 0?"":n,i=e.contentClass,o=i===void 0?"":i,a=e.wrapperStyle,s=e.contentStyle,l=e.wrapperProps,u=l===void 0?{}:l,d=e.contentProps,p=d===void 0?{}:d,m=S.useContext(QE).init,y=S.useRef(null),b=S.useRef(null);return S.useEffect(function(){var w=y.current,E=b.current;w!==null&&E!==null&&m&&m(w,E)},[]),Ke.createElement("div",Wd({},u,{ref:y,className:"react-transform-wrapper ".concat(fD.wrapper," ").concat(r),style:a}),Ke.createElement("div",Wd({},p,{ref:b,className:"react-transform-component ".concat(fD.content," ").concat(o),style:s}),t))};Ke.forwardRef(function(e,t){var n=S.useRef(null),r=S.useContext(QE);return S.useEffect(function(){return r.onChange(function(i){if(n.current){var o=0,a=0;n.current.style.transform=r.handleTransformStyles(o,a,1/i.state.scale)}})},[r]),Ke.createElement("div",Wd({},e,{ref:vEe([n,t])}))});function UEe({image:e,alt:t,ref:n,styleClass:r}){const[i,o]=S.useState(0),[a,s]=S.useState(!1),l=()=>{o(i===-3?0:i-1)},u=()=>{o(i===3?0:i+1)},d=()=>{s(!a)};return g.jsx(BEe,{centerOnInit:!0,minScale:.1,initialPositionX:50,initialPositionY:50,children:({zoomIn:p,zoomOut:m,resetTransform:y,centerView:b})=>g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"lightbox-image-options",children:[g.jsx(Ye,{icon:g.jsx(W_e,{}),"aria-label":"Zoom In",tooltip:"Zoom In",onClick:()=>p(),fontSize:20}),g.jsx(Ye,{icon:g.jsx(U_e,{}),"aria-label":"Zoom Out",tooltip:"Zoom Out",onClick:()=>m(),fontSize:20}),g.jsx(Ye,{icon:g.jsx(z_e,{}),"aria-label":"Rotate Left",tooltip:"Rotate Left",onClick:l,fontSize:20}),g.jsx(Ye,{icon:g.jsx(H_e,{}),"aria-label":"Rotate Right",tooltip:"Rotate Right",onClick:u,fontSize:20}),g.jsx(Ye,{icon:g.jsx(s7e,{}),"aria-label":"Flip Image",tooltip:"Flip Image",onClick:d,fontSize:20}),g.jsx(Ye,{icon:g.jsx(f4,{}),"aria-label":"Reset",tooltip:"Reset",onClick:()=>{y(),o(0),s(!1)},fontSize:20})]}),g.jsx(WEe,{wrapperStyle:{width:"100%",height:"100%"},children:g.jsx("img",{style:{transform:`rotate(${i*90}deg) scaleX(${a?-1:1})`,width:"100%"},src:e,alt:t,ref:n,className:r||"",onLoad:()=>b(1,0,"easeOut")})})]})})}function VEe(){const e=Te(),t=le(m=>m.lightbox.isLightboxOpen),{viewerImageToDisplay:n,shouldShowImageDetails:r,isOnFirstImage:i,isOnLastImage:o}=le(dG),[a,s]=S.useState(!1),l=()=>{s(!0)},u=()=>{s(!1)},d=()=>{e(vE())},p=()=>{e(mE())};return Qe("Esc",()=>{t&&e(Om(!1))},[t]),g.jsxs("div",{className:"lightbox-container",children:[g.jsx(Ye,{icon:g.jsx(B_e,{}),"aria-label":"Exit Viewer",className:"lightbox-close-btn",onClick:()=>{e(Om(!1))},fontSize:20}),g.jsxs("div",{className:"lightbox-display-container",children:[g.jsxs("div",{className:"lightbox-preview-wrapper",children:[g.jsx(uG,{}),!r&&g.jsxs("div",{className:"current-image-next-prev-buttons",children:[g.jsx("div",{className:"next-prev-button-trigger-area prev-button-trigger-area",onMouseOver:l,onMouseOut:u,children:a&&!i&&g.jsx(ls,{"aria-label":"Previous image",icon:g.jsx(QV,{className:"next-prev-button"}),variant:"unstyled",onClick:d})}),g.jsx("div",{className:"next-prev-button-trigger-area next-button-trigger-area",onMouseOver:l,onMouseOut:u,children:a&&!o&&g.jsx(ls,{"aria-label":"Next image",icon:g.jsx(JV,{className:"next-prev-button"}),variant:"unstyled",onClick:p})})]}),n&&g.jsxs(g.Fragment,{children:[g.jsx(UEe,{image:n.url,styleClass:"lightbox-image"}),r&&g.jsx(HE,{image:n})]})]}),g.jsx(XG,{})]})]})}function GEe(e){const{menuType:t="icon",iconTooltip:n,buttonText:r,menuItems:i,menuProps:o,menuButtonProps:a,menuListProps:s,menuItemProps:l}=e,u=()=>{const d=[];return i.forEach((p,m)=>{d.push(g.jsx(_H,{onClick:p.onClick,fontSize:"0.9rem",color:"var(--text-color-secondary)",backgroundColor:"var(--background-color-secondary)",_focus:{color:"var(--text-color)",backgroundColor:"var(--border-color)"},...l,children:p.item},m))}),d};return g.jsx(SH,{...o,children:({isOpen:d})=>g.jsxs(g.Fragment,{children:[g.jsx(EH,{as:t==="icon"?Ye:On,tooltip:n,icon:d?g.jsx(c7e,{}):g.jsx(u7e,
2023-02-19 11:24:10 +00:00
* @license React
* react-reconciler.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-02-25 00:56:56 +00:00
*/var DPe=function(t){var n={},r=S,i=Th,o=Object.assign;function a(f){for(var h="https://reactjs.org/docs/error-decoder.html?invariant="+f,x=1;x<arguments.length;x++)h+="&args[]="+encodeURIComponent(arguments[x]);return"Minified React error #"+f+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,l=Symbol.for("react.element"),u=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),y=Symbol.for("react.provider"),b=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),O=Symbol.iterator;function D(f){return f===null||typeof f!="object"?null:(f=O&&f[O]||f["@@iterator"],typeof f=="function"?f:null)}function I(f){if(f==null)return null;if(typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case u:return"Portal";case m:return"Profiler";case p:return"StrictMode";case E:return"Suspense";case _:return"SuspenseList"}if(typeof f=="object")switch(f.$$typeof){case b:return(f.displayName||"Context")+".Consumer";case y:return(f._context.displayName||"Context")+".Provider";case w:var h=f.render;return f=f.displayName,f||(f=h.displayName||h.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case k:return h=f.displayName||null,h!==null?h:I(f.type)||"Memo";case T:h=f._payload,f=f._init;try{return I(f(h))}catch{}}return null}function N(f){var h=f.type;switch(f.tag){case 24:return"Cache";case 9:return(h.displayName||"Context")+".Consumer";case 10:return(h._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return f=h.render,f=f.displayName||f.name||"",h.displayName||(f!==""?"ForwardRef("+f+")":"ForwardRef");case 7:return"Fragment";case 5:return h;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return I(h);case 8:return h===p?"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 h=="function")return h.displayName||h.name||null;if(typeof h=="string")return h}return null}function W(f){var h=f,x=f;if(f.alternate)for(;h.return;)h=h.return;else{f=h;do h=f,h.flags&4098&&(x=h.return),f=h.return;while(f)}return h.tag===3?x:null}function B(f){if(W(f)!==f)throw Error(a(188))}function K(f){var h=f.alternate;if(!h){if(h=W(f),h===null)throw Error(a(188));return h!==f?null:f}for(var x=f,P=h;;){var M=x.return;if(M===null)break;var R=M.alternate;if(R===null){if(P=M.return,P!==null){x=P;continue}break}if(M.child===R.child){for(R=M.child;R;){if(R===x)return B(M),f;if(R===P)return B(M),h;R=R.sibling}throw Error(a(188))}if(x.return!==P.return)x=M,P=R;else{for(var U=!1,ae=M.child;ae;){if(ae===x){U=!0,x=M,P=R;break}if(ae===P){U=!0,P=M,x=R;break}ae=ae.sibling}if(!U){for(ae=R.child;ae;){if(ae===x){U=!0,x=R,P=M;break}if(ae===P){U=!0,P=R,x=M;break}ae=ae.sibling}if(!U)throw Error(a(189))}}if(x.alternate!==P)throw Error(a(190))}if(x.tag!==3)throw Error(a(188));return x.stateNode.current===x?f:h}function ne(f){return f=K(f),f!==null?z(f):null}function z(f){if(f.tag===5||f.tag===6)return f;for(f=f.child;f!==null;){var h=z(f);if(h!==null)return h;f=f.sibling}return null}function $(f){if(f.tag===5||f.tag===6)return f;for(f=f.child;f!==null;){if(f.tag!==4){var h=$(f);if(h!==null)return h}f=f.sibling}return null}var V=Array.isArray,X=t.getPublicInstance,Q=t.getRootHostContext,G=t.getChildHostContext,Y=t.prepareForCommit,ee=t.resetAfterCommit,fe=t.createInstance,_e=t.appendInitialChild,we=t.finalizeInitialChildren,xe=t.prepareUpdate,Le=t.shouldSetTextContent,Se=t.createTextInstance,Je=t.scheduleTimeout,Xe=t.cancelTimeout,tt=t.noTimeout,yt=t.isPrimaryRenderer,Be=t.supportsMutation,Ae=t.supportsPersistence,bt=t.supports
`+fu+f}var il=!1;function pu(f,h){if(!f||il)return"";il=!0;var x=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(h)if(h=function(){throw Error()},Object.defineProperty(h.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(h,[])}catch(We){var P=We}Reflect.construct(f,[],h)}else{try{h.call()}catch(We){P=We}f.call(h.prototype)}else{try{throw Error()}catch(We){P=We}f()}}catch(We){if(We&&P&&typeof We.stack=="string"){for(var M=We.stack.split(`
2023-02-19 11:24:10 +00:00
`),R=P.stack.split(`
2023-02-22 09:36:55 +00:00
`),U=M.length-1,ae=R.length-1;1<=U&&0<=ae&&M[U]!==R[ae];)ae--;for(;1<=U&&0<=ae;U--,ae--)if(M[U]!==R[ae]){if(U!==1||ae!==1)do if(U--,ae--,0>ae||M[U]!==R[ae]){var he=`
2023-02-25 00:56:56 +00:00
`+M[U].replace(" at new "," at ");return f.displayName&&he.includes("<anonymous>")&&(he=he.replace("<anonymous>",f.displayName)),he}while(1<=U&&0<=ae);break}}}finally{il=!1,Error.prepareStackTrace=x}return(f=f?f.displayName||f.name:"")?hu(f):""}var kp=Object.prototype.hasOwnProperty,wc=[],ol=-1;function ra(f){return{current:f}}function Mn(f){0>ol||(f.current=wc[ol],wc[ol]=null,ol--)}function wn(f,h){ol++,wc[ol]=f.current,f.current=h}var ia={},Hr=ra(ia),ui=ra(!1),oa=ia;function al(f,h){var x=f.type.contextTypes;if(!x)return ia;var P=f.stateNode;if(P&&P.__reactInternalMemoizedUnmaskedChildContext===h)return P.__reactInternalMemoizedMaskedChildContext;var M={},R;for(R in x)M[R]=h[R];return P&&(f=f.stateNode,f.__reactInternalMemoizedUnmaskedChildContext=h,f.__reactInternalMemoizedMaskedChildContext=M),M}function ci(f){return f=f.childContextTypes,f!=null}function Ss(){Mn(ui),Mn(Hr)}function yf(f,h,x){if(Hr.current!==ia)throw Error(a(168));wn(Hr,h),wn(ui,x)}function gu(f,h,x){var P=f.stateNode;if(h=h.childContextTypes,typeof P.getChildContext!="function")return x;P=P.getChildContext();for(var M in P)if(!(M in h))throw Error(a(108,N(f)||"Unknown",M));return o({},x,P)}function ws(f){return f=(f=f.stateNode)&&f.__reactInternalMemoizedMergedChildContext||ia,oa=Hr.current,wn(Hr,f),wn(ui,ui.current),!0}function bf(f,h,x){var P=f.stateNode;if(!P)throw Error(a(169));x?(f=gu(f,h,oa),P.__reactInternalMemoizedMergedChildContext=f,Mn(ui),Mn(Hr),wn(Hr,f)):Mn(ui),wn(ui,x)}var Ri=Math.clz32?Math.clz32:xf,Ep=Math.log,Pp=Math.LN2;function xf(f){return f>>>=0,f===0?32:31-(Ep(f)/Pp|0)|0}var sl=64,Mo=4194304;function ll(f){switch(f&-f){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return f&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return f&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return f}}function mu(f,h){var x=f.pendingLanes;if(x===0)return 0;var P=0,M=f.suspendedLanes,R=f.pingedLanes,U=x&268435455;if(U!==0){var ae=U&~M;ae!==0?P=ll(ae):(R&=U,R!==0&&(P=ll(R)))}else U=x&~M,U!==0?P=ll(U):R!==0&&(P=ll(R));if(P===0)return 0;if(h!==0&&h!==P&&!(h&M)&&(M=P&-P,R=h&-h,M>=R||M===16&&(R&4194240)!==0))return h;if(P&4&&(P|=x&16),h=f.entangledLanes,h!==0)for(f=f.entanglements,h&=P;0<h;)x=31-Ri(h),M=1<<x,P|=f[x],h&=~M;return P}function F0(f,h){switch(f){case 1:case 2:case 4:return h+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return h+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Cc(f,h){for(var x=f.suspendedLanes,P=f.pingedLanes,M=f.expirationTimes,R=f.pendingLanes;0<R;){var U=31-Ri(R),ae=1<<U,he=M[U];he===-1?(!(ae&x)||ae&P)&&(M[U]=F0(ae,h)):he<=h&&(f.expiredLanes|=ae),R&=~ae}}function _c(f){return f=f.pendingLanes&-1073741825,f!==0?f:f&1073741824?1073741824:0}function Sf(){var f=sl;return sl<<=1,!(sl&4194240)&&(sl=64),f}function kc(f){for(var h=[],x=0;31>x;x++)h.push(f);return h}function $a(f,h,x){f.pendingLanes|=h,h!==536870912&&(f.suspendedLanes=0,f.pingedLanes=0),f=f.eventTimes,h=31-Ri(h),f[h]=x}function wf(f,h){var x=f.pendingLanes&~h;f.pendingLanes=h,f.suspendedLanes=0,f.pingedLanes=0,f.expiredLanes&=h,f.mutableReadLanes&=h,f.entangledLanes&=h,h=f.entanglements;var P=f.eventTimes;for(f=f.expirationTimes;0<x;){var M=31-Ri(x),R=1<<M;h[M]=0,P[M]=-1,f[M]=-1,x&=~R}}function vu(f,h){var x=f.entangledLanes|=h;for(f=f.entanglements;x;){var P=31-Ri(x),M=1<<P;M&h|f[P]&h&&(f[P]|=h),x&=~M}}var Gt=0;function Tp(f){return f&=-f,1<f?4<f?f&268435455?16:536870912:4:1}var Ec=i.unstable_scheduleCallback,Pc=i.unstable_cancelCallback,
2023-02-19 11:24:10 +00:00
Error generating stack: `+R.message+`
2023-02-25 00:56:56 +00:00
`+R.stack}return{value:f,source:h,stack:M,digest:null}}function nv(f,h,x){return{value:f,source:null,stack:x??null,digest:h??null}}function Gc(f,h){try{console.error(h.value)}catch(x){setTimeout(function(){throw x})}}var zf=typeof WeakMap=="function"?WeakMap:Map;function rv(f,h,x){x=_s(-1,x),x.tag=3,x.payload={element:null};var P=h.value;return x.callback=function(){Vf||(Vf=!0,Gf=P),Gc(f,h)},x}function F(f,h,x){x=_s(-1,x),x.tag=3;var P=f.type.getDerivedStateFromError;if(typeof P=="function"){var M=h.value;x.payload=function(){return P(M)},x.callback=function(){Gc(f,h)}}var R=f.stateNode;return R!==null&&typeof R.componentDidCatch=="function"&&(x.callback=function(){Gc(f,h),typeof P!="function"&&(bl===null?bl=new Set([this]):bl.add(this));var U=h.stack;this.componentDidCatch(h.value,{componentStack:U!==null?U:""})}),x}function wu(f,h,x){var P=f.pingCache;if(P===null){P=f.pingCache=new zf;var M=new Set;P.set(h,M)}else M=P.get(h),M===void 0&&(M=new Set,P.set(h,M));M.has(x)||(M.add(x),f=nb.bind(null,f,h,x),h.then(f,f))}function Hf(f){do{var h;if((h=f.tag===13)&&(h=f.memoizedState,h=h!==null?h.dehydrated!==null:!0),h)return f;f=f.return}while(f!==null);return null}function fo(f,h,x,P,M){return f.mode&1?(f.flags|=65536,f.lanes=M,f):(f===h?f.flags|=65536:(f.flags|=128,x.flags|=131072,x.flags&=-52805,x.tag===1&&(x.alternate===null?x.tag=17:(h=_s(-1,1),h.tag=2,dl(x,h,1))),x.lanes|=1),f)}var Yt=s.ReactCurrentOwner,Ji=!1;function Ni(f,h,x,P){h.child=f===null?j2(h,null,x,P):Rc(h,f.child,x,P)}function U2(f,h,x,P,M){x=x.render;var R=h.ref;return Ac(h,M),P=Y0(f,h,x,P,R,M),x=jc(),f!==null&&!Ji?(h.updateQueue=f.updateQueue,h.flags&=-2053,f.lanes&=~M,Es(f,h,M)):(zn&&x&&Ii(h),h.flags|=1,Ni(f,h,P,M),h.child)}function hl(f,h,x,P,M){if(f===null){var R=x.type;return typeof R=="function"&&!_v(R)&&R.defaultProps===void 0&&x.compare===null&&x.defaultProps===void 0?(h.tag=15,h.type=R,V2(f,h,R,P,M)):(f=Xf(x.type,null,P,h,h.mode,M),f.ref=h.ref,f.return=h,h.child=f)}if(R=f.child,!(f.lanes&M)){var U=R.memoizedProps;if(x=x.compare,x=x!==null?x:yu,x(U,P)&&f.ref===h.ref)return Es(f,h,M)}return h.flags|=1,f=go(R,P),f.ref=h.ref,f.return=h,h.child=f}function V2(f,h,x,P,M){if(f!==null){var R=f.memoizedProps;if(yu(R,P)&&f.ref===h.ref)if(Ji=!1,h.pendingProps=P=R,(f.lanes&M)!==0)f.flags&131072&&(Ji=!0);else return h.lanes=f.lanes,Es(f,h,M)}return iv(f,h,x,P,M)}function G2(f,h,x){var P=h.pendingProps,M=P.children,R=f!==null?f.memoizedState:null;if(P.mode==="hidden")if(!(h.mode&1))h.memoizedState={baseLanes:0,cachePool:null,transitions:null},wn(ml,ho),ho|=x;else{if(!(x&1073741824))return f=R!==null?R.baseLanes|x:x,h.lanes=h.childLanes=1073741824,h.memoizedState={baseLanes:f,cachePool:null,transitions:null},h.updateQueue=null,wn(ml,ho),ho|=f,null;h.memoizedState={baseLanes:0,cachePool:null,transitions:null},P=R!==null?R.baseLanes:x,wn(ml,ho),ho|=P}else R!==null?(P=R.baseLanes|x,h.memoizedState=null):P=x,wn(ml,ho),ho|=P;return Ni(f,h,M,x),h.child}function q2(f,h){var x=h.ref;(f===null&&x!==null||f!==null&&f.ref!==x)&&(h.flags|=512,h.flags|=2097152)}function iv(f,h,x,P,M){var R=ci(x)?oa:Hr.current;return R=al(h,R),Ac(h,M),x=Y0(f,h,x,P,R,M),P=jc(),f!==null&&!Ji?(h.updateQueue=f.updateQueue,h.flags&=-2053,f.lanes&=~M,Es(f,h,M)):(zn&&P&&Ii(h),h.flags|=1,Ni(f,h,x,M),h.child)}function K2(f,h,x,P,M){if(ci(x)){var R=!0;ws(h)}else R=!1;if(Ac(h,M),h.stateNode===null)Wa(f,h),R2(h,x,P),V0(h,x,P,M),P=!0;else if(f===null){var U=h.stateNode,ae=h.memoizedProps;U.props=ae;var he=U.context,We=x.contextType;typeof We=="object"&&We!==null?We=co(We):(We=ci(x)?oa:Hr.current,We=al(h,We));var ct=x.getDerivedStateFromProps,Rt=typeof ct=="function"||typeof U.getSnapshotBeforeUpdate=="function";Rt||typeof U.UNSAFE_componentWillReceiveProps!="function"&&typeof U.componentWillReceiveProps!="function"||(ae!==P||he!==We)&&I2(h,U,P,We),Cs=!1;var it=h.memoizedState;U.state=it,jp(h,P,U,M),he=h.memoizedState,ae!==P||it!==he||ui.current||Cs?(typeof ct=="function"&&($p(h,x,ct,P),he=h.memoizedState),(ae=Cs||Of(h,x,ae,P,it,he,We))?(Rt||typeof U.UNSAFE_componentWillMount!="function"&&typeof U.componentW
2023-02-19 11:24:10 +00:00
`+(P.join(" > ")+`
No matching component was found for:
2023-02-25 00:56:56 +00:00
`)+f.join(" > ")}return null},n.getPublicRootInstance=function(f){if(f=f.current,!f.child)return null;switch(f.child.tag){case 5:return X(f.child.stateNode);default:return f.child.stateNode}},n.injectIntoDevTools=function(f){if(f={bundleType:f.bundleType,version:f.version,rendererPackageName:f.rendererPackageName,rendererConfig:f.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:gg,findFiberByHostInstance:f.findFiberByHostInstance||Pv,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")f=!1;else{var h=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(h.isDisabled||!h.supportsFiber)f=!0;else{try{cn=h.inject(f),qt=h}catch{}f=!!h.checkDCE}}return f},n.isAlreadyRendering=function(){return!1},n.observeVisibleRects=function(f,h,x,P){if(!se)throw Error(a(363));f=gv(f,h);var M=Mt(f,x,P).disconnect;return{disconnect:function(){M()}}},n.registerMutableSourceForHydration=function(f,h){var x=h._getVersion;x=x(h._source),f.mutableSourceEagerHydrationData==null?f.mutableSourceEagerHydrationData=[h,x]:f.mutableSourceEagerHydrationData.push(h,x)},n.runWithPriority=function(f,h){var x=Gt;try{return Gt=f,h()}finally{Gt=x}},n.shouldError=function(){return null},n.shouldSuspend=function(){return!1},n.updateContainer=function(f,h,x,P){var M=h.current,R=_i(),U=qr(M);return x=kv(x),h.context===null?h.context=x:h.pendingContext=x,h=_s(R,U),h.payload={element:f},P=P===void 0?null:P,P!==null&&(h.callback=P),f=dl(M,h,U),f!==null&&(jo(f,M,U,R),Dp(f,M,U)),U},n};(function(e){e.exports=DPe})(IPe);const jPe=S7(o7);var $3={},NPe={get exports(){return $3},set exports(e){$3=e}},vp={};/**
2023-02-19 11:24:10 +00:00
* @license React
* react-reconciler-constants.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-02-25 00:56:56 +00:00
*/vp.ConcurrentRoot=1;vp.ContinuousEventPriority=4;vp.DefaultEventPriority=16;vp.DiscreteEventPriority=1;vp.IdleEventPriority=536870912;vp.LegacyRoot=0;(function(e){e.exports=vp})(NPe);const xD={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let SD=!1,wD=!1;const pP=".react-konva-event",$Pe=`ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled.
2023-02-19 11:24:10 +00:00
Position of a node will be changed during drag&drop, so you should update state of the react app as well.
Consider to add onDragMove or onDragEnd events.
For more info see: https://github.com/konvajs/react-konva/issues/256
2023-02-25 00:56:56 +00:00
`,FPe=`ReactKonva: You are using "zIndex" attribute for a Konva node.
2023-02-19 11:24:10 +00:00
react-konva may get confused with ordering. Just define correct order of elements in your render function of a component.
For more info see: https://github.com/konvajs/react-konva/issues/194
2023-02-25 00:56:56 +00:00
`,BPe={};function w4(e,t,n=BPe){if(!SD&&"zIndex"in t&&(console.warn(FPe),SD=!0),!wD&&t.draggable){var r=t.x!==void 0||t.y!==void 0,i=t.onDragEnd||t.onDragMove;r&&!i&&(console.warn($Pe),wD=!0)}for(var o in n)if(!xD[o]){var a=o.slice(0,2)==="on",s=n[o]!==t[o];if(a&&s){var l=o.substr(2).toLowerCase();l.substr(0,7)==="content"&&(l="content"+l.substr(7,1).toUpperCase()+l.substr(8)),e.off(l,n[o])}var u=!t.hasOwnProperty(o);u&&e.setAttr(o,void 0)}var d=t._useStrictMode,p={},m=!1;const y={};for(var o in t)if(!xD[o]){var a=o.slice(0,2)==="on",b=n[o]!==t[o];if(a&&b){var l=o.substr(2).toLowerCase();l.substr(0,7)==="content"&&(l="content"+l.substr(7,1).toUpperCase()+l.substr(8)),t[o]&&(y[l]=t[o])}!a&&(t[o]!==n[o]||d&&t[o]!==e.getAttr(o))&&(m=!0,p[o]=t[o])}m&&(e.setAttrs(p),hf(e));for(var l in y)e.on(l+pP,y[l])}function hf(e){if(!ft.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const vq={},zPe={};Qh.Node.prototype._applyProps=w4;function HPe(e,t){if(typeof t=="string"){console.error(`Do not use plain text as child of Konva.Node. You are using text: ${t}`);return}e.add(t),hf(e)}function WPe(e,t,n){let r=Qh[e];r||(console.error(`Konva has no node with the type ${e}. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/${e}" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html`),r=Qh.Group);const i={},o={};for(var a in t){var s=a.slice(0,2)==="on";s?o[a]=t[a]:i[a]=t[a]}const l=new r(i);return w4(l,o),l}function UPe(e,t,n){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function VPe(e,t,n){return!1}function GPe(e){return e}function qPe(){return null}function KPe(){return null}function YPe(e,t,n,r){return zPe}function XPe(){}function ZPe(e){}function QPe(e,t){return!1}function JPe(){return vq}function eTe(){return vq}const tTe=setTimeout,nTe=clearTimeout,rTe=-1;function iTe(e,t){return!1}const oTe=!1,aTe=!0,sTe=!0;function lTe(e,t){t.parent===e?t.moveToTop():e.add(t),hf(e)}function uTe(e,t){t.parent===e?t.moveToTop():e.add(t),hf(e)}function yq(e,t,n){t._remove(),e.add(t),t.setZIndex(n.getZIndex()),hf(e)}function cTe(e,t,n){yq(e,t,n)}function dTe(e,t){t.destroy(),t.off(pP),hf(e)}function fTe(e,t){t.destroy(),t.off(pP),hf(e)}function hTe(e,t,n){console.error(`Text components are not yet supported in ReactKonva. You text is: "${n}"`)}function pTe(e,t,n){}function gTe(e,t,n,r,i){w4(e,i,r)}function mTe(e){e.hide(),hf(e)}function vTe(e){}function yTe(e,t){(t.visible==null||t.visible)&&e.show()}function bTe(e,t){}function xTe(e){}function STe(){}const wTe=()=>$3.DefaultEventPriority,CTe=Object.freeze(Object.defineProperty({__proto__:null,appendChild:lTe,appendChildToContainer:uTe,appendInitialChild:HPe,cancelTimeout:nTe,clearContainer:xTe,commitMount:pTe,commitTextUpdate:hTe,commitUpdate:gTe,createInstance:WPe,createTextInstance:UPe,detachDeletedInstance:STe,finalizeInitialChildren:VPe,getChildHostContext:eTe,getCurrentEventPriority:wTe,getPublicInstance:GPe,getRootHostContext:JPe,hideInstance:mTe,hideTextInstance:vTe,idlePriority:Th.unstable_IdlePriority,insertBefore:yq,insertInContainerBefore:cTe,isPrimaryRenderer:oTe,noTimeout:rTe,now:Th.unstable_now,prepareForCommit:qPe,preparePortalMount:KPe,prepareUpdate:YPe,removeChild:dTe,removeChildFromContainer:fTe,resetAfterCommit:XPe,resetTextContent:ZPe,run:Th.unstable_runWithPriority,scheduleTimeout:tTe,shouldDeprioritizeSubtree:QPe,shouldSetTextContent:iTe,supportsMutation:sTe,unhideInstance:yTe,unhideTextInstance:bTe,warnsIfNotActing:aTe},Symbol.toStringTag,{value:"Module"}));var _Te=Object.defineProperty,kTe=Object.defineProperties,ETe=Object.getOwnPropertyDescriptors,CD=Object.getOwnPropertySymbols,PTe=Object.prototype.hasOwnProperty,TTe=Object.prototype.propertyIsEnumerable,_D=(e,t,n)=>t in e?_Te(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kD=(e,t)=>{for(var n in t||(t={}))PTe.call(t,n)&&_D(e,n,t[n]);if(CD)for(var n of CD(t))TTe.call(t,n)
2023-02-19 11:24:10 +00:00
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="60px" height="60px" viewBox="0 0 30 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;">
<g transform="matrix(0.5,0,0,0.5,0,0)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,2.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,7.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,10)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,12.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,15)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,17.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,20)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,22.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,25)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,27.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,30)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-2.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-7.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-10)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-12.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-15)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-17.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-20)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-22.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-25)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-27.5)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
<g transform="matrix(0.5,0,0,0.5,0,-30)">
<path d="M-3.5,63.5L64,-4" style="fill:none;stroke:black;stroke-width:1px;"/>
</g>
2023-02-25 00:56:56 +00:00
</svg>`.replaceAll("black",e),oMe=e=>{const{...t}=e,{maskColorString:n,stageCoordinates:r,stageDimensions:i,stageScale:o}=le(iMe),[a,s]=S.useState(null),[l,u]=S.useState(0),d=S.useRef(null),p=S.useCallback(()=>{u(l+1),setTimeout(p,500)},[l]);return S.useEffect(()=>{if(a)return;const m=new Image;m.onload=()=>{s(m)},m.src=ED(n)},[a,n]),S.useEffect(()=>{a&&(a.src=ED(n))},[a,n]),S.useEffect(()=>{const m=setInterval(()=>u(y=>(y+1)%5),50);return()=>clearInterval(m)},[]),!a||!Ce.isNumber(r.x)||!Ce.isNumber(r.y)||!Ce.isNumber(o)||!Ce.isNumber(i.width)||!Ce.isNumber(i.height)?null:g.jsx(cc,{ref:d,offsetX:r.x/o,offsetY:r.y/o,height:i.height/o,width:i.width/o,fillPatternImage:a,fillPatternOffsetY:Ce.isNumber(l)?l:0,fillPatternRepeat:"repeat",fillPatternScale:{x:1/o,y:1/o},listening:!0,globalCompositeOperation:"source-in",...t})},aMe=lt([rn],e=>({objects:e.layerState.objects}),{memoizeOptions:{resultEqualityCheck:Ce.isEqual}}),sMe=e=>{const{...t}=e,{objects:n}=le(aMe);return g.jsx(uc,{listening:!1,...t,children:n.filter(hE).map((r,i)=>g.jsx(F3,{points:r.points,stroke:"rgb(0,0,0)",strokeWidth:r.strokeWidth*2,tension:0,lineCap:"round",lineJoin:"round",shadowForStrokeEnabled:!1,listening:!1,globalCompositeOperation:r.tool==="brush"?"source-over":"destination-out"},i))})};var sh=S,lMe=function(t,n,r){const i=sh.useRef("loading"),o=sh.useRef(),[a,s]=sh.useState(0),l=sh.useRef(),u=sh.useRef(),d=sh.useRef();return(l.current!==t||u.current!==n||d.current!==r)&&(i.current="loading",o.current=void 0,l.current=t,u.current=n,d.current=r),sh.useLayoutEffect(function(){if(!t)return;var p=document.createElement("img");function m(){i.current="loaded",o.current=p,s(Math.random())}function y(){i.current="failed",o.current=void 0,s(Math.random())}return p.addEventListener("load",m),p.addEventListener("error",y),n&&(p.crossOrigin=n),r&&(p.referrerpolicy=r),p.src=t,function(){p.removeEventListener("load",m),p.removeEventListener("error",y)}},[t,n,r]),[o.current,i.current]};const _q=e=>{const{url:t,x:n,y:r}=e,[i]=lMe(t);return g.jsx(wq,{x:n,y:r,image:i,listening:!1})},uMe=lt([rn],e=>{const{layerState:{objects:t}}=e;return{objects:t}},{memoizeOptions:{resultEqualityCheck:Ce.isEqual}}),cMe=()=>{const{objects:e}=le(uMe);return e?g.jsx(uc,{name:"outpainting-objects",listening:!1,children:e.map((t,n)=>{if(x3(t))return g.jsx(_q,{x:t.x,y:t.y,url:t.image.url},n);if(XSe(t)){const r=g.jsx(F3,{points:t.points,stroke:t.color?zh(t.color):"rgb(0,0,0)",strokeWidth:t.strokeWidth*2,tension:0,lineCap:"round",lineJoin:"round",shadowForStrokeEnabled:!1,listening:!1,globalCompositeOperation:t.tool==="brush"?"source-over":"destination-out"},n);return t.clip?g.jsx(uc,{clipX:t.clip.x,clipY:t.clip.y,clipWidth:t.clip.width,clipHeight:t.clip.height,children:r},n):r}else{if(ZSe(t))return g.jsx(cc,{x:t.x,y:t.y,width:t.width,height:t.height,fill:zh(t.color)},n);if(QSe(t))return g.jsx(cc,{x:t.x,y:t.y,width:t.width,height:t.height,fill:"rgb(255, 255, 255)",globalCompositeOperation:"destination-out"},n)}})}):null},dMe=lt([rn],e=>{const{layerState:{stagingArea:{images:t,selectedImageIndex:n}},shouldShowStagingImage:r,shouldShowStagingOutline:i,boundingBoxCoordinates:{x:o,y:a},boundingBoxDimensions:{width:s,height:l}}=e;return{currentStagingAreaImage:t.length>0?t[n]:void 0,isOnFirstImage:n===0,isOnLastImage:n===t.length-1,shouldShowStagingImage:r,shouldShowStagingOutline:i,x:o,y:a,width:s,height:l}},{memoizeOptions:{resultEqualityCheck:Ce.isEqual}}),fMe=e=>{const{...t}=e,{currentStagingAreaImage:n,shouldShowStagingImage:r,shouldShowStagingOutline:i,x:o,y:a,width:s,height:l}=le(dMe);return g.jsxs(uc,{...t,children:[r&&n&&g.jsx(_q,{url:n.image.url,x:o,y:a}),i&&g.jsxs(uc,{children:[g.jsx(cc,{x:o,y:a,width:s,height:l,strokeWidth:1,stroke:"white",strokeScaleEnabled:!1}),g.jsx(cc,{x:o,y:a,width:s,height:l,dash:[4,4],strokeWidth:1,stroke:"black",strokeScaleEnabled:!1})]})]})},hMe=lt([rn],e=>{const{layerState:{stagingArea:{images:t,selectedImageIndex:n}},shouldShowStagingOutline:r,shouldShowStagingImage:i}=e;return{currentStagingAreaImage:t.length>0?t[n]:void 0,isOnFirstImage:n===0,isOnLastImage
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oAe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aAe(e){if(Array.isArray(e))return c7(e)}function RD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ID(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RD(Object(n),!0).forEach(function(r){$q(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zy(e,t){return uAe(e)||lAe(e,t)||Fq(e,t)||sAe()}function sAe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fq(e,t){if(e){if(typeof e=="string")return c7(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 c7(e,t)}}function c7(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 lAe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function uAe(e){if(Array.isArray(e))return e}var cAe="file-invalid-type",dAe="file-too-large",fAe="file-too-small",hAe="too-many-files",pAe=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var n=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:cAe,message:"File type must be ".concat(n)}},DD=function(t){return{code:dAe,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},jD=function(t){return{code:fAe,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},gAe={code:hAe,message:"Too many files"};function Bq(e,t){var n=e.type==="application/x-moz-file"||rAe(e,t);return[n,n?null:pAe(t)]}function zq(e,t,n){if(Sh(e.size))if(Sh(t)&&Sh(n)){if(e.size>n)return[!1,DD(n)];if(e.size<t)return[!1,jD(t)]}else{if(Sh(t)&&e.size<t)return[!1,jD(t)];if(Sh(n)&&e.size>n)return[!1,DD(n)]}return[!0,null]}function Sh(e){return e!=null}function mAe(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,o=e.multiple,a=e.maxFiles,s=e.validator;return!o&&t.length>1||o&&a>=1&&t.length>a?!1:t.every(function(l){var u=Bq(l,n),d=zy(u,1),p=d[0],m=zq(l,r,i),y=zy(m,1),b=y[0],w=s?s(l):null;return p&&b&&!w})}function H3(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function kx(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function ND(e){e.preventDefault()}function vAe(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function yAe(e){return e.indexOf("Edge/")!==-1}function bAe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return vAe(e)||yAe(e)}function Ml(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return t.some(function(s){return!H3(r)&&s&&s.apply(void 0,[r].concat(o)),H3(r)})}}function xAe(){return"showOpenFilePicker"in window}function SAe(e){if(Sh(e)){var t=Object.entries(e).filter(function(n){var r=zy(n,2),i=r[0],o=r[1],a=!0;return Hq(i)||(console.warn('Skipped "'.concat(i,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),a=!1),(!Array.isArray(o)||!o.every(Wq))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,r){var i=zy(r,2),o=i[0],a=i[1];return ID(ID({},n),{},$q({},o,a))},{});return[{description:"Files",accept:t}]}return e}function wAe(e){if(Sh(e))return Object.entries(e).reduce(function(t,n){var r=zy(n,2),i=r[0],o=r[1];return[].concat(OD(t),[i],OD(o))},[]).filter(function(t){return Hq(t)||Wq(t)}).join(",")}function CAe(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function _Ae(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function Hq(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function Wq(e){return/^.*\.[\w]+$/.test(e)}var kAe=["children"],EAe=["open"],PAe=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onD
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AAe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function OAe(e){if(Array.isArray(e))return d7(e)}function s6(e,t){return DAe(e)||IAe(e,t)||Uq(e,t)||RAe()}function RAe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Uq(e,t){if(e){if(typeof e=="string")return d7(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 d7(e,t)}}function d7(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 IAe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function DAe(e){if(Array.isArray(e))return e}function $D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _r(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$D(Object(n),!0).forEach(function(r){f7(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$D(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function f7(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W3(e,t){if(e==null)return{};var n=jAe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jAe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var bP=S.forwardRef(function(e,t){var n=e.children,r=W3(e,kAe),i=Gq(r),o=i.open,a=W3(i,EAe);return S.useImperativeHandle(t,function(){return{open:o}},[o]),Ke.createElement(S.Fragment,null,n(_r(_r({},a),{},{open:o})))});bP.displayName="Dropzone";var Vq={disabled:!1,getFilesFromEvent:KLe,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};bP.defaultProps=Vq;bP.propTypes={children:An.func,accept:An.objectOf(An.arrayOf(An.string)),multiple:An.bool,preventDropOnDocument:An.bool,noClick:An.bool,noKeyboard:An.bool,noDrag:An.bool,noDragEventsBubbling:An.bool,minSize:An.number,maxSize:An.number,maxFiles:An.number,disabled:An.bool,getFilesFromEvent:An.func,onFileDialogCancel:An.func,onFileDialogOpen:An.func,useFsAccessApi:An.bool,autoFocus:An.bool,onDragEnter:An.func,onDragLeave:An.func,onDragOver:An.func,onDrop:An.func,onDropAccepted:An.func,onDropRejected:An.func,onError:An.func,validator:An.func};var h7={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Gq(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=_r(_r({},Vq),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,u=t.onDragEnter,d=t.onDragLeave,p=t.onDragOver,m=t.onDrop,y=t.onDropAccepted,b=t.onDropRejected,w=t.onFileDialogCancel,E=t.onFileDialogOpen,_=t.useFsAccessApi,k=t.autoFocus,T=t.preventDropOnDocument,L=t.noClick,O=t.noKeyboard,D=t.noDrag,I=t.noDragEventsBubbling,N=t.onError,W=t.validator,B=S.useMemo(function(){return wAe(n)},[n]),K=S.useMemo(function(){return SAe(n)},[n]),ne=S.useMemo(function(){return typeof E=="function"?E:FD},[E]),z=S.useMemo(function(){return typeof w=="function"?w:FD},[w]),$=S.useRef(null),V=S.useRef(null),X=S.useReducer(NAe,h7),Q=s6(X,2),G=Q[0],Y=Q[1],ee=G.isFocused,fe=G.isFileDialogActive,_e=S.useRef(typeof window<"u"&&window.isSecureContext&&_&&xAe()),we=function(){!_e.current&&fe&&setTimeout(function(){if(V.current){var je=V.current.files;je.length||(Y({type:"closeDialog"}),z())}},300)};S.us
${D.message}`,"");i({title:o("toast.uploadFailed"),description:L,status:"error",isClosable:!0})},[o,i]),d=S.useCallback(async T=>{n(TI({imageFile:T}))},[n]),p=S.useCallback((T,L)=>{L.forEach(O=>{u(O)}),T.forEach(O=>{d(O)})},[d,u]),{getRootProps:m,getInputProps:y,isDragAccept:b,isDragReject:w,isDragActive:E,open:_}=Gq({accept:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg",".png"]},noClick:!0,onDrop:p,onDragOver:()=>s(!0),maxFiles:1});l(_),S.useEffect(()=>{const T=L=>{var N;const O=(N=L.clipboardData)==null?void 0:N.items;if(!O)return;const D=[];for(const W of O)W.kind==="file"&&["image/png","image/jpg"].includes(W.type)&&D.push(W);if(!D.length)return;if(L.stopImmediatePropagation(),D.length>1){i({description:o("toast.uploadFailedMultipleImagesDesc"),status:"error",isClosable:!0});return}const I=D[0].getAsFile();if(!I){i({description:o("toast.uploadFailedUnableToLoadDesc"),status:"error",isClosable:!0});return}n(TI({imageFile:I}))};return document.addEventListener("paste",T),()=>{document.removeEventListener("paste",T)}},[o,n,i,r]);const k=["img2img","unifiedCanvas"].includes(r)?` to ${Qa[r].tooltip}`:"";return g.jsx(AE.Provider,{value:_,children:g.jsxs("div",{...m({style:{}}),onKeyDown:T=>{T.key},children:[g.jsx("input",{...y()}),t,E&&a&&g.jsx($Ae,{isDragAccept:b,isDragReject:w,overlaySecondaryText:k,setIsHandlingUpload:s})]})})},BAe=lt(hr,e=>e.log,{memoizeOptions:{resultEqualityCheck:(e,t)=>e.length===t.length}}),zAe=lt(hr,e=>({shouldShowLogViewer:e.shouldShowLogViewer,hasError:e.hasError,wasErrorSeen:e.wasErrorSeen}),{memoizeOptions:{resultEqualityCheck:Ce.isEqual}}),HAe=()=>{const e=Te(),t=le(BAe),{shouldShowLogViewer:n,hasError:r,wasErrorSeen:i}=le(zAe),[o,a]=S.useState(!0),s=S.useRef(null);S.useLayoutEffect(()=>{s.current!==null&&o&&(s.current.scrollTop=s.current.scrollHeight)},[o,t,n]);const l=()=>{e(jU()),e(FC(!n))};Qe("`",()=>{e(FC(!n))},[n]),Qe("esc",()=>{e(FC(!1))});const u=()=>{s.current&&o&&s.current.scrollTop<s.current.scrollHeight-s.current.clientHeight&&a(!1)};return g.jsxs(g.Fragment,{children:[n&&g.jsx(fG,{defaultSize:{width:"100%",height:200},style:{display:"flex",position:"fixed",left:0,bottom:0,zIndex:9999},maxHeight:"90vh",children:g.jsx("div",{className:"console",ref:s,onScroll:u,children:t.map((d,p)=>{const{timestamp:m,message:y,level:b}=d;return g.jsxs("div",{className:`console-entry console-${b}-color`,children:[g.jsxs("p",{className:"console-timestamp",children:[m,":"]}),g.jsx("p",{className:"console-message",children:y})]},p)})})}),n&&g.jsx(si,{hasArrow:!0,label:o?"Autoscroll On":"Autoscroll Off",children:g.jsx(ls,{className:"console-autoscroll-icon-button","data-autoscroll-enabled":o,size:"sm","aria-label":"Toggle autoscroll",variant:"solid",icon:g.jsx(pke,{}),onClick:()=>a(!o)})}),g.jsx(si,{hasArrow:!0,label:n?"Hide Console":"Show Console",children:g.jsx(ls,{className:"console-toggle-icon-button","data-error-seen":r||!i,size:"sm",position:"fixed",variant:"solid","aria-label":"Toggle Log Viewer",icon:n?g.jsx(Mke,{}):g.jsx(tG,{}),onClick:l})})]})},WAe=lt(hr,e=>({isProcessing:e.isProcessing,currentStep:e.currentStep,totalSteps:e.totalSteps,currentStatusHasSteps:e.currentStatusHasSteps}),{memoizeOptions:{resultEqualityCheck:Ce.isEqual}}),UAe=()=>{const{isProcessing:e,currentStep:t,totalSteps:n,currentStatusHasSteps:r}=le(WAe),i=t?Math.round(t*100/n):0;return g.jsx(UH,{value:i,isIndeterminate:e&&!r,className:"progress-bar"})};function VAe(e){const{title:t,hotkey:n,description:r}=e;return g.jsxs("div",{className:"hotkey-modal-item",children:[g.jsxs("div",{className:"hotkey-info",children:[g.jsx("p",{className:"hotkey-title",children:t}),r&&g.jsx("p",{className:"hotkey-description",children:r})]}),g.jsx("div",{className:"hotkey-key",children:n})]})}function GAe({children:e}){const{isOpen:t,onOpen:n,onClose:r}=Kd(),{t:i}=De(),o=[{title:i("hotkeys.invoke.title"),desc:i("hotkeys.invoke.desc"),hotkey:"Ctrl+Enter"},{title:i("hotkeys.cancel.title"),desc:i("hotkeys.cancel.desc"),hotkey:"Shift+X"},{title:i("hotkeys.focusPrompt.title"),desc:i("hotkeys.focusPrompt.desc"),hotkey:"Alt+A"},{title:i("hotkeys.