mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
625 lines
1.5 MiB
JavaScript
625 lines
1.5 MiB
JavaScript
|
function xj(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 C7(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var g={},VQ={get exports(){return g},set exports(e){g=e}},G3={},S={},GQ={get exports(){return S},set exports(e){S=e}},Qt={};/**
|
|||
|
* @license React
|
|||
|
* react.production.min.js
|
|||
|
*
|
|||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|||
|
*
|
|||
|
* This source code is licensed under the MIT license found in the
|
|||
|
* LICENSE file in the root directory of this source tree.
|
|||
|
*/var Gy=Symbol.for("react.element"),qQ=Symbol.for("react.portal"),KQ=Symbol.for("react.fragment"),YQ=Symbol.for("react.strict_mode"),XQ=Symbol.for("react.profiler"),ZQ=Symbol.for("react.provider"),QQ=Symbol.for("react.context"),JQ=Symbol.for("react.forward_ref"),eJ=Symbol.for("react.suspense"),tJ=Symbol.for("react.memo"),nJ=Symbol.for("react.lazy"),xT=Symbol.iterator;function rJ(e){return e===null||typeof e!="object"?null:(e=xT&&e[xT]||e["@@iterator"],typeof e=="function"?e:null)}var Sj={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},wj=Object.assign,Cj={};function o0(e,t,n){this.props=e,this.context=t,this.refs=Cj,this.updater=n||Sj}o0.prototype.isReactComponent={};o0.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")};o0.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function _j(){}_j.prototype=o0.prototype;function _7(e,t,n){this.props=e,this.context=t,this.refs=Cj,this.updater=n||Sj}var k7=_7.prototype=new _j;k7.constructor=_7;wj(k7,o0.prototype);k7.isPureReactComponent=!0;var ST=Array.isArray,kj=Object.prototype.hasOwnProperty,E7={current:null},Ej={key:!0,ref:!0,__self:!0,__source:!0};function Pj(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)kj.call(t,r)&&!Ej.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:Gy,type:e,key:o,ref:a,props:i,_owner:E7.current}}function iJ(e,t){return{$$typeof:Gy,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function P7(e){return typeof e=="object"&&e!==null&&e.$$typeof===Gy}function oJ(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var wT=/\/+/g;function l5(e,t){return typeof e=="object"&&e!==null&&e.key!=null?oJ(""+e.key):t.toString(36)}function Lx(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 Gy:case qQ:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+l5(a,0):r,ST(i)?(n="",e!=null&&(n=e.replace(wT,"$&/")+"/"),Lx(i,t,n,"",function(u){return u})):i!=null&&(P7(i)&&(i=iJ(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(wT,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",ST(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+l5(o,s);a+=Lx(o,t,n,l,i)}else if(l=rJ(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+l5(o,s++),a+=Lx(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 gb(e,t,n){if(e==null)return e;var r=[],i=0;return Lx(e,r,"","",function(o){return t.call(n,o,i++)}),r}function aJ(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},Ax={transition:null},sJ={ReactCurrentDispatcher:Po,ReactCurrentBatchConfig:Ax,ReactCurrentOwner:E7};Qt.Children={map:gb,forEach:function(e,t,n){gb(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return gb(e,function(){t++}),t},toArray:function(e){return gb(e,function(t){return t})||[]},only:function(e){if(!P7(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Qt.Component=o0;Qt.Fragment=KQ;Qt.Profiler=XQ;Qt
|
|||
|
* @license React
|
|||
|
* react-jsx-runtime.production.min.js
|
|||
|
*
|
|||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|||
|
*
|
|||
|
* This source code is licensed under the MIT license found in the
|
|||
|
* LICENSE file in the root directory of this source tree.
|
|||
|
*/var lJ=S,uJ=Symbol.for("react.element"),cJ=Symbol.for("react.fragment"),dJ=Object.prototype.hasOwnProperty,fJ=lJ.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,hJ={key:!0,ref:!0,__self:!0,__source:!0};function Tj(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)dJ.call(t,r)&&!hJ.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:uJ,type:e,key:o,ref:a,props:i,_owner:fJ.current}}G3.Fragment=cJ;G3.jsx=Tj;G3.jsxs=Tj;(function(e){e.exports=G3})(VQ);function pJ(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 gJ(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 mJ=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(gJ(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=pJ(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-",bS="-moz-",bn="-webkit-",Mj="comm",T7="rule",M7="decl",vJ="@import",Lj="@keyframes",yJ=Math.abs,q3=String.fromCharCode,bJ=Object.assign;function xJ(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 Aj(e){return e.trim()}function SJ(e,t){return(e=t.exec(e))?e[0]:e}function kn(e,t,n){return e.replace(t,n)}function v6(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 L7(e){return e.length}function mb(e,t){return t.push(e),e}function wJ(e,t){return e.map(t).join("")}var K3=1,Dm=1,Oj=0,ea=0,ri=0,a0="";function Y3(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:K3,column:Dm,length:a,return:""}}function Lv(e,t){return bJ(Y3("",null,null,"",null,null,0),e,{length:-e.length},t)}function CJ(){return ri}function _J(){return ri=ea>0?Vi(a0,--ea):0,Dm--,ri===10&&(Dm=1,K3--),ri}function ka(){return ri=ea<Oj?Vi(a0,ea++):0,Dm++,ri===10&&(Dm=1,K3++),ri}function Ul(){return Vi(a0,ea)}function Ox(){return ea}function qy(e,t){return J1(a0,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 Rj(e){return K3=Dm=1,Oj=Il(a0=e),ea=0,[]}function Ij(e){return a0="",e}function Rx(e){return Aj(qy(ea-1,y6(e===91?e+2:e===40?e+1:e)))}function kJ(e){for(;(ri=Ul())&&ri<33;)ka();return ey(e)>2||ey(ri)>3?"":" "}function EJ(e,t){for(;--t&&ka()&&!(ri<48||ri>102||ri>57&&ri<65||ri>70&&ri<97););return qy(e,Ox()+(t<6&&Ul()==32&&ka()==32))}function y6(e){for(;ka();)switch(ri){case e:return ea;case 34:case 39:e!==34&&e!==39&&y6(ri);break;case 40:e===41&&y6(e);break;case 92:ka();break}return ea}function PJ(e,t){for(;ka()&&e+ri!==47+10;)if(e+ri===42+42&&Ul()===47)break;return"/*"+qy(t,ea-1)+"*"+q3(e===47?e:ka())}function TJ(e){for(;!ey(Ul());)ka();return qy(e,ea)}function MJ(e){return Ij(Ix("",null,null,null,[""],e=Rj(e),0,[0],e))}function Ix(e,t,n,r,i,o,a,s,l){for(var u=0,d=0,h=a,v=0,y=0,b
|
|||
|
* react-is.production.min.js
|
|||
|
*
|
|||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|||
|
*
|
|||
|
* This source code is licensed under the MIT license found in the
|
|||
|
* LICENSE file in the root directory of this source tree.
|
|||
|
*/var Oi=typeof Symbol=="function"&&Symbol.for,A7=Oi?Symbol.for("react.element"):60103,O7=Oi?Symbol.for("react.portal"):60106,X3=Oi?Symbol.for("react.fragment"):60107,Z3=Oi?Symbol.for("react.strict_mode"):60108,Q3=Oi?Symbol.for("react.profiler"):60114,J3=Oi?Symbol.for("react.provider"):60109,ew=Oi?Symbol.for("react.context"):60110,R7=Oi?Symbol.for("react.async_mode"):60111,tw=Oi?Symbol.for("react.concurrent_mode"):60111,nw=Oi?Symbol.for("react.forward_ref"):60112,rw=Oi?Symbol.for("react.suspense"):60113,HJ=Oi?Symbol.for("react.suspense_list"):60120,iw=Oi?Symbol.for("react.memo"):60115,ow=Oi?Symbol.for("react.lazy"):60116,WJ=Oi?Symbol.for("react.block"):60121,UJ=Oi?Symbol.for("react.fundamental"):60117,VJ=Oi?Symbol.for("react.responder"):60118,GJ=Oi?Symbol.for("react.scope"):60119;function Oa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case A7:switch(e=e.type,e){case R7:case tw:case X3:case Q3:case Z3:case rw:return e;default:switch(e=e&&e.$$typeof,e){case ew:case nw:case ow:case iw:case J3:return e;default:return t}}case O7:return t}}}function $j(e){return Oa(e)===tw}Dn.AsyncMode=R7;Dn.ConcurrentMode=tw;Dn.ContextConsumer=ew;Dn.ContextProvider=J3;Dn.Element=A7;Dn.ForwardRef=nw;Dn.Fragment=X3;Dn.Lazy=ow;Dn.Memo=iw;Dn.Portal=O7;Dn.Profiler=Q3;Dn.StrictMode=Z3;Dn.Suspense=rw;Dn.isAsyncMode=function(e){return $j(e)||Oa(e)===R7};Dn.isConcurrentMode=$j;Dn.isContextConsumer=function(e){return Oa(e)===ew};Dn.isContextProvider=function(e){return Oa(e)===J3};Dn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===A7};Dn.isForwardRef=function(e){return Oa(e)===nw};Dn.isFragment=function(e){return Oa(e)===X3};Dn.isLazy=function(e){return Oa(e)===ow};Dn.isMemo=function(e){return Oa(e)===iw};Dn.isPortal=function(e){return Oa(e)===O7};Dn.isProfiler=function(e){return Oa(e)===Q3};Dn.isStrictMode=function(e){return Oa(e)===Z3};Dn.isSuspense=function(e){return Oa(e)===rw};Dn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===X3||e===tw||e===Q3||e===Z3||e===rw||e===HJ||typeof e=="object"&&e!==null&&(e.$$typeof===ow||e.$$typeof===iw||e.$$typeof===J3||e.$$typeof===ew||e.$$typeof===nw||e.$$typeof===UJ||e.$$typeof===VJ||e.$$typeof===GJ||e.$$typeof===WJ)};Dn.typeOf=Oa;(function(e){e.exports=Dn})(zJ);var Fj=b6,qJ={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},KJ={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Bj={};Bj[Fj.ForwardRef]=qJ;Bj[Fj.Memo]=KJ;var YJ=!0;function XJ(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var zj=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||YJ===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},Hj=function(t,n,r){zj(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 ZJ(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 QJ={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,strokeWidth:1},JJ
|
|||
|
: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;
|
|||
|
}
|
|||
|
}
|
|||
|
`,uee=()=>g.jsx(aw,{styles:qj}),cee=()=>g.jsx(aw,{styles:`
|
|||
|
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;
|
|||
|
}
|
|||
|
|
|||
|
${qj}
|
|||
|
`});function dee(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??dee(r,i));throw d.name="ContextError",(l=Error.captureStackTrace)==null||l.call(Error,d,s),d}return u}return[a.Provider,s,a]}var[fee,hee]=Pn({strict:!1,name:"PortalManagerContext"});function Kj(e){const{children:t,zIndex:n}=e;return g.jsx(fee,{value:{zIndex:n},children:t})}Kj.displayName="PortalManager";var Vl=Boolean(globalThis==null?void 0:globalThis.document)?S.useLayoutEffect:S.useEffect,Xs={},pee={get exports(){return Xs},set exports(e){Xs=e}},Ra={},Lh={},gee={get exports(){return Lh},set exports(e){Lh=e}},Yj={};/**
|
|||
|
* @license React
|
|||
|
* scheduler.production.min.js
|
|||
|
*
|
|||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|||
|
*
|
|||
|
* This source code is licensed under the MIT license found in the
|
|||
|
* LICENSE file in the root directory of this source tree.
|
|||
|
*/(function(e){function t(q,X){var ee=q.length;q.push(X);e:for(;0<ee;){var fe=ee-1>>>1,Ce=q[fe];if(0<i(Ce,X))q[fe]=X,q[ee]=Ce,ee=fe;else break e}}function n(q){return q.length===0?null:q[0]}function r(q){if(q.length===0)return null;var X=q[0],ee=q.pop();if(ee!==X){q[0]=ee;e:for(var fe=0,Ce=q.length,we=Ce>>>1;fe<we;){var xe=2*(fe+1)-1,Me=q[xe],Se=xe+1,Je=q[Se];if(0>i(Me,ee))Se<Ce&&0>i(Je,Me)?(q[fe]=Je,q[Se]=ee,fe=Se):(q[fe]=Me,q[xe]=ee,fe=xe);else if(Se<Ce&&0>i(Je,ee))q[fe]=Je,q[Se]=ee,fe=Se;else break e}}return X}function i(q,X){var ee=q.sortIndex-X.sortIndex;return ee!==0?ee:q.id-X.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,h=null,v=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(q){for(var X=n(u);X!==null;){if(X.callback===null)r(u);else if(X.startTime<=q)r(u),X.sortIndex=X.expirationTime,t(l,X);else break;X=n(u)}}function L(q){if(w=!1,T(q),!b)if(n(l)!==null)b=!0,Y(O);else{var X=n(u);X!==null&&Q(L,X.startTime-q)}}function O(q,X){b=!1,w&&(w=!1,_(N),N=-1),y=!0;var ee=v;try{for(T(X),h=n(l);h!==null&&(!(h.expirationTime>X)||q&&!K());){var fe=h.callback;if(typeof fe=="function"){h.callback=null,v=h.priorityLevel;var Ce=fe(h.expirationTime<=X);X=e.unstable_now(),typeof Ce=="function"?h.callback=Ce:h===n(l)&&r(l),T(X)}else r(l);h=n(l)}if(h!==null)var we=!0;else{var xe=n(u);xe!==null&&Q(L,xe.startTime-X),we=!1}return we}finally{h=null,v=ee,y=!1}}var D=!1,I=null,N=-1,U=5,B=-1;function K(){return!(e.unstable_now()-B<U)}function ne(){if(I!==null){var q=e.unstable_now();B=q;var X=!0;try{X=I(!0,q)}finally{X?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,H=$.port2;$.port1.onmessage=ne,z=function(){H.postMessage(null)}}else z=function(){E(ne,0)};function Y(q){I=q,D||(D=!0,z())}function Q(q,X){N=E(function(){q(e.unstable_now())},X)}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(q){q.callback=null},e.unstable_continueExecution=function(){b||y||(b=!0,Y(O))},e.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<q?Math.floor(1e3/q):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(q){switch(v){case 1:case 2:case 3:var X=3;break;default:X=v}var ee=v;v=X;try{return q()}finally{v=ee}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(q,X){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var ee=v;v=q;try{return X()}finally{v=ee}},e.unstable_scheduleCallback=function(q,X,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,q){case 1:var Ce=-1;break;case 2:Ce=250;break;case 5:Ce=1073741823;break;case 4:Ce=1e4;break;default:Ce=5e3}return Ce=ee+Ce,q={id:d++,callback:X,priorityLevel:q,startTime:ee,expirationTime:Ce,sortIndex:-1},ee>fe?(q.sortIndex=ee,t(u,q),n(l)===null&&q===n(u)&&(w?(_(N),N=-1):w=!0,Q(L,ee-fe))):(q.sortIndex=Ce,t(l,q),b||y||(b=!0,Y(O))),q},e.unstable_shouldYield=K,e.unstable_wrapCallback=function(q){var X=v;return function(){var ee=v;v=X;try{return q.apply(this,arguments)}finally{v=ee}}}})(Yj);(function(e){e.exports=Yj})(gee);/**
|
|||
|
* @license React
|
|||
|
* react-dom.production.min.js
|
|||
|
*
|
|||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|||
|
*
|
|||
|
* This source code is licensed under the MIT license found in the
|
|||
|
* LICENSE file in the root directory of this source tree.
|
|||
|
*/var Xj=S,Ma=Lh;function Be(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 Zj=new Set,ry={};function tp(e,t){jm(e,t),jm(e+"Capture",t)}function jm(e,t){for(ry[e]=t,e=0;e<t.length;e++)Zj.add(t[e])}var Ju=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),x6=Object.prototype.hasOwnProperty,mee=/^[: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]*$/,AT={},OT={};function vee(e){return x6.call(OT,e)?!0:x6.call(AT,e)?!1:mee.test(e)?OT[e]=!0:(AT[e]=!0,!1)}function yee(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 bee(e,t,n,r){if(t===null||typeof t>"u"||yee(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 D7=/[\-:]([a-z])/g;function j7(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-
|
|||
|
`+c5+e}var d5=!1;function f5(e,t){if(!e||d5)return"";d5=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
|
|||
|
`),o=r.stack.split(`
|
|||
|
`),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=`
|
|||
|
`+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{d5=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?r1(e):""}function xee(e){switch(e.tag){case 5:return r1(e.type);case 16:return r1("Lazy");case 13:return r1("Suspense");case 19:return r1("SuspenseList");case 0:case 2:case 15:return e=f5(e.type,!1),e;case 11:return e=f5(e.type.render,!1),e;case 1:return e=f5(e.type,!0),e;default:return""}}function _6(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 Hg:return"Fragment";case zg:return"Portal";case S6:return"Profiler";case $7:return"StrictMode";case w6:return"Suspense";case C6:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Jj:return(e.displayName||"Context")+".Consumer";case Qj:return(e._context.displayName||"Context")+".Provider";case F7:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case B7:return t=e.displayName||null,t!==null?t:_6(e.type)||"Memo";case pd:t=e._payload,e=e._init;try{return _6(e(t))}catch{}}return null}function See(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 _6(t);case 8:return t===$7?"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 Gd(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function tN(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function wee(e){var t=tN(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 yb(e){e._valueTracker||(e._valueTracker=wee(e))}function nN(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=tN(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function xS(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 k6(e,t){var n=t.checked;return Pr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function IT(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Gd(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 rN(e,t){t=t.checked,t!=null&&N7(e,"checked",t,!1)}function E6(e,t){rN(e,t);var n=Gd(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")?P6(e,t.type,n):t.hasOwnProperty("defaultValue")&&P6(e,t.type,Gd(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function DT(e,t,n){if(t.hasOwnProperty(
|
|||
|
`).replace(Ote,"")}function Eb(e,t,n){if(t=iM(t),iM(e)!==t&&n)throw Error(Be(425))}function TS(){}var z6=null,H6=null;function W6(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 U6=typeof setTimeout=="function"?setTimeout:void 0,Rte=typeof clearTimeout=="function"?clearTimeout:void 0,oM=typeof Promise=="function"?Promise:void 0,Ite=typeof queueMicrotask=="function"?queueMicrotask:typeof oM<"u"?function(e){return oM.resolve(null).then(e).catch(Dte)}:U6;function Dte(e){setTimeout(function(){throw e})}function k5(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 Rd(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 aM(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 l0=Math.random().toString(36).slice(2),jl="__reactFiber$"+l0,hy="__reactProps$"+l0,ec="__reactContainer$"+l0,V6="__reactEvents$"+l0,jte="__reactListeners$"+l0,Nte="__reactHandles$"+l0;function _h(e){var t=e[jl];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ec]||n[jl]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=aM(e);e!==null;){if(n=e[jl])return n;e=aM(e)}return t}e=n,n=e.parentNode}return null}function Xy(e){return e=e[jl]||e[ec],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Gg(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Be(33))}function dw(e){return e[hy]||null}var G6=[],qg=-1;function sf(e){return{current:e}}function cr(e){0>qg||(e.current=G6[qg],G6[qg]=null,qg--)}function nr(e,t){qg++,G6[qg]=e.current,e.current=t}var qd={},lo=sf(qd),Ko=sf(!1),Wh=qd;function Nm(e,t){var n=e.type.contextTypes;if(!n)return qd;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 MS(){cr(Ko),cr(lo)}function sM(e,t,n){if(lo.current!==qd)throw Error(Be(168));nr(lo,t),nr(Ko,n)}function VN(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(Be(108,See(e)||"Unknown",i));return Pr({},n,r)}function LS(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||qd,Wh=lo.current,nr(lo,e),nr(Ko,Ko.current),!0}function lM(e,t,n){var r=e.stateNode;if(!r)throw Error(Be(169));n?(e=VN(e,t,Wh),r.__reactInternalMemoizedMergedChildContext=e,cr(Ko),cr(lo),nr(lo,e)):cr(Ko),nr(Ko,n)}var ju=null,fw=!1,E5=!1;function GN(e){ju===null?ju=[e]:ju.push(e)}function $te(e){fw=!0,GN(e)}function lf(){if(!E5&&ju!==null){E5=!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,fw=!1}catch(i){throw ju!==null&&(ju=ju.slice(e+1)),vN(H7,lf),i}finally{In=t,E5=!1}}return null}var Kg=[],Yg=0,AS=null,OS=0,Ka=[],Ya=0,Uh=null,Fu=1,Bu="";function dh(e,t){Kg[Yg++]=OS,Kg[Yg++]=AS,AS=e,OS=t}function qN(e,t,n){Ka[Ya++]=Fu,Ka[Ya++]=Bu,Ka[Ya++]=Uh,Uh=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 Z7(e){e.return!==null&&(dh(e,1),qN(e,1,0))}function Q7(e){for(;e===AS;)AS=Kg[--Yg],Kg[Yg]=null,OS=Kg[--Yg],Kg[Yg]=null;for(;e===Uh;)Uh=Ka[--Ya],Ka[Ya]=null,Bu=Ka[--Ya],Ka[Ya]=null,Fu=Ka[--Ya],Ka[Ya]=null}var Ea=null,_a=null,yr=!1,Ws=null;function KN(e,t){var n=es(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return
|
|||
|
Error generating stack: `+o.message+`
|
|||
|
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function A5(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Q6(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var qte=typeof WeakMap=="function"?WeakMap:Map;function w$(e,t,n){n=Wu(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){BS||(BS=!0,l_=r),Q6(e,t)},n}function C$(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(){Q6(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Q6(e,t),typeof r!="function"&&(Dd===null?Dd=new Set([this]):Dd.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function yM(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new qte;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=sne.bind(null,e,t,n),t.then(e,e))}function bM(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 xM(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,Id(n,t,1))),n.lanes|=1),e)}var Kte=fc.ReactCurrentOwner,qo=!1;function xo(e,t,n,r){t.child=e===null?t$(t,null,n,r):Fm(t,e.child,n,r)}function SM(e,t,n,r,i){n=n.render;var o=t.ref;return vm(t,i),r=u9(e,t,n,r,o,i),n=c9(),e!==null&&!qo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,nc(e,t,i)):(yr&&n&&Z7(t),t.flags|=1,xo(e,t,r,i),t.child)}function wM(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!x9(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,_$(e,t,o,r,i)):(e=Ux(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 nc(e,t,i)}return t.flags|=1,e=Nd(o,r),e.ref=t.ref,e.return=t,t.child=e}function _$(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,nc(e,t,i)}return J6(e,t,n,r,i)}function k$(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(Qg,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(Qg,Sa),Sa|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,nr(Qg,Sa),Sa|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,nr(Qg,Sa),Sa|=r;return xo(e,t,i,n),t.child}function E$(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function J6(e,t,n,r,i){var o=Yo(n)?Wh:lo.current;return o=Nm(t,o),vm(t,i),n=u9(e,t,n,r,o,i),r=c9(),e!==null&&!qo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,nc(e,t,i)):(yr&&r&&Z7(t),t.flags|=1,xo(e,t,n,i),t.child)}function CM(e,t,n,r,i){if(Yo(n)){var o=!0;LS(t)}else o=!1;if(vm(t,i),t.stateNode===null)zx(e,t),JN(t,n,r),Z6(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)?Wh:lo.current,u=Nm(t,u));var d=n.getDerivedStateFromProps,h=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";h||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==u)&&pM(t,a,r,u),gd=!1;var v=t.memoizedState;a.state=v,DS(t,r,a,i),l=t.memoizedState,s!==r||v!==l||Ko.current||gd?(typeof d=="function"&&(X6(t,n,d,r),l=t.memoizedState),(s=gd||hM(t,n,s,r,v,l,u))?(h||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeo
|
|||
|
45deg,
|
|||
|
${t} 25%,
|
|||
|
transparent 25%,
|
|||
|
transparent 50%,
|
|||
|
${t} 50%,
|
|||
|
${t} 75%,
|
|||
|
transparent 75%,
|
|||
|
transparent
|
|||
|
)`,backgroundSize:`${e} ${e}`}}var roe=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function ioe(e){const t=roe();return!e||Jie(e)?t:e.string&&e.colors?aoe(e.string,e.colors):e.string&&!e.colors?ooe(e.string):e.colors&&!e.string?soe(e.colors):t}function ooe(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 aoe(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 soe(e){return e[Math.floor(Math.random()*e.length)]}function St(e,t){return n=>n.colorMode==="dark"?t:e}function A9(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function cF(e){return ko(e)&&e.reference?e.reference:String(e)}var kw=(e,...t)=>t.map(cF).join(` ${e} `).replace(/calc/g,""),YM=(...e)=>`calc(${kw("+",...e)})`,XM=(...e)=>`calc(${kw("-",...e)})`,v_=(...e)=>`calc(${kw("*",...e)})`,ZM=(...e)=>`calc(${kw("/",...e)})`,QM=e=>{const t=cF(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:v_(t,-1)},Nu=Object.assign(e=>({add:(...t)=>Nu(YM(e,...t)),subtract:(...t)=>Nu(XM(e,...t)),multiply:(...t)=>Nu(v_(e,...t)),divide:(...t)=>Nu(ZM(e,...t)),negate:()=>Nu(QM(e)),toString:()=>e.toString()}),{add:YM,subtract:XM,multiply:v_,divide:ZM,negate:QM});function loe(e){return!Number.isInteger(parseFloat(e.toString()))}function uoe(e,t="-"){return e.replace(/\s+/g,t)}function dF(e){const t=uoe(e.toString());return t.includes("\\.")?e:loe(e)?t.replace(".","\\."):e}function coe(e,t=""){return[t,dF(e)].filter(Boolean).join("-")}function doe(e,t){return`var(${dF(e)}${t?`, ${t}`:""})`}function foe(e,t=""){return`--${coe(e,t)}`}function bi(e,t){const n=foe(e,t==null?void 0:t.prefix);return{variable:n,reference:doe(n,hoe(t==null?void 0:t.fallback))}}function hoe(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:poe,definePartsStyle:Gx}=dr(Iie.keys),O1=bi("switch-track-width"),Rh=bi("switch-track-height"),j5=bi("switch-track-diff"),goe=Nu.subtract(O1,Rh),y_=bi("switch-thumb-x"),Fv=bi("switch-bg"),moe=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[O1.reference],height:[Rh.reference],transitionProperty:"common",transitionDuration:"fast",[Fv.variable]:"colors.gray.300",_dark:{[Fv.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Fv.variable]:`colors.${t}.500`,_dark:{[Fv.variable]:`colors.${t}.200`}},bg:Fv.reference}},voe={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Rh.reference],height:[Rh.reference],_checked:{transform:`translateX(${y_.reference})`}},yoe=Gx(e=>({container:{[j5.variable]:goe,[y_.variable]:j5.reference,_rtl:{[y_.variable]:Nu(j5).negate().toString()}},track:moe(e),thumb:voe})),boe={sm:Gx({container:{[O1.variable]:"1.375rem",[Rh.variable]:"sizes.3"}}),md:Gx({container:{[O1.variable]:"1.875rem",[Rh.variable]:"sizes.4"}}),lg:Gx({container:{[O1.variable]:"2.875rem",[Rh.variable]:"sizes.6"}})},xoe=poe({baseStyle:yoe,sizes:boe,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Soe,definePartsStyle:bm}=dr(Die.keys),woe=bm({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"}}),GS={"&[data-is-numeric=true]":{textAlign:"end"}},Coe=bm(e=>{const{colorScheme:t}=e;return{th:{color:St("gray.600","gray.400")(e),borderBottom:"1px",borderColor:St(`${t}.100`,`${t}.700`)(e),...GS},td:{borderBottom:"1px",borderColor:St(`${t}.100`,`${t}.700`)(e),...GS},caption:{color:St("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),_oe=bm(e=>{c
|
|||
|
to right,
|
|||
|
transparent 0%,
|
|||
|
${wo(n,a)} 50%,
|
|||
|
transparent 100%
|
|||
|
)`;return{...!r&&i&&o,...r?{bgImage:s}:{bgColor:a}}},bae={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},xae=e=>({bg:St("gray.100","whiteAlpha.300")(e)}),Sae=e=>({transitionProperty:"common",transitionDuration:"slow",...yae(e)}),wae=u1(e=>({label:bae,filledTrack:Sae(e),track:xae(e)})),Cae={xs:u1({track:{h:"1"}}),sm:u1({track:{h:"2"}}),md:u1({track:{h:"3"}}),lg:u1({track:{h:"4"}})},_ae=vae({sizes:Cae,baseStyle:wae,defaultProps:{size:"md",colorScheme:"blue"}}),kae=e=>typeof e=="function";function Eo(e,...t){return kae(e)?e(...t):e}var{definePartsStyle:qx,defineMultiStyleConfig:Eae}=dr(yie.keys),I1=gn("checkbox-size"),Pae=e=>{const{colorScheme:t}=e;return{w:I1.reference,h:I1.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:St(`${t}.500`,`${t}.200`)(e),borderColor:St(`${t}.500`,`${t}.200`)(e),color:St("white","gray.900")(e),_hover:{bg:St(`${t}.600`,`${t}.300`)(e),borderColor:St(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:St("gray.200","transparent")(e),bg:St("gray.200","whiteAlpha.300")(e),color:St("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:St(`${t}.500`,`${t}.200`)(e),borderColor:St(`${t}.500`,`${t}.200`)(e),color:St("white","gray.900")(e)},_disabled:{bg:St("gray.100","whiteAlpha.100")(e),borderColor:St("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:St("red.500","red.300")(e)}}},Tae={_disabled:{cursor:"not-allowed"}},Mae={userSelect:"none",_disabled:{opacity:.4}},Lae={transitionProperty:"transform",transitionDuration:"normal"},Aae=qx(e=>({icon:Lae,container:Tae,control:Eo(Pae,e),label:Mae})),Oae={sm:qx({control:{[I1.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:qx({control:{[I1.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:qx({control:{[I1.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},qS=Eae({baseStyle:Aae,sizes:Oae,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Rae,definePartsStyle:Kx}=dr(Lie.keys),Iae=e=>{var t;const n=(t=Eo(qS.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"}}}},Dae=Kx(e=>{var t,n,r,i;return{label:(n=(t=qS).baseStyle)==null?void 0:n.call(t,e).label,container:(i=(r=qS).baseStyle)==null?void 0:i.call(r,e).container,control:Iae(e)}}),jae={md:Kx({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Kx({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Kx({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},Nae=Rae({baseStyle:Dae,sizes:jae,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:$ae,definePartsStyle:Fae}=dr(Aie.keys),$b=gn("select-bg"),cL,Bae={...(cL=xn.baseStyle)==null?void 0:cL.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:$b.reference,[$b.variable]:"colors.white",_dark:{[$b.variable]:"colors.gray.700"},"> option, > optgroup":{bg:$b.reference}},zae={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},Hae=Fae({field:Bae,icon:zae}),Fb={paddingInlineEnd:"8"},dL,fL,hL,pL,gL,mL,vL,yL,Wae={lg:{...(dL=xn.sizes)==null?void 0:dL.lg,field:{...(fL=xn.sizes)==null?void 0:fL.lg.field,...Fb}},md:{...(hL=xn.sizes)==null?void 0:hL.md,field:{...(pL=xn.sizes)==null?void 0:pL.md.field,...Fb}},sm:{...(gL=xn.sizes)==null?void 0:gL.sm,field:{...(mL=xn.sizes)==null?void 0:mL.sm.field,...Fb}},xs:{...(vL=xn.sizes)==null?void 0:vL.xs,field:{...(yL=xn.sizes)==null?void 0:yL.xs.field,...Fb},icon:{insetEnd:"1"}}},Uae=$ae({baseStyle:Hae,sizes:Wae,variants:xn.variants,defaultProps:xn.defaultProps}),$5=gn("skeleton-start-color"),F5=gn("skeleton-end-color"),Vae={[$5.variable]:"colors.gray.100",[F5.variable]:"colors.gray.400",_dark:{[$5.variable]:"colors.gray.800",[F5.variable]:"colors.gray.600"},background:$5.reference,borderColor:F5.reference,opacity:.7,borderRadius:"sm"},Gae={baseSty
|
|||
|
[data-motion-pop-id="${n}"] {
|
|||
|
position: absolute !important;
|
|||
|
width: ${o}px !important;
|
|||
|
height: ${a}px !important;
|
|||
|
top: ${s}px !important;
|
|||
|
left: ${l}px !important;
|
|||
|
}
|
|||
|
`),()=>{document.head.removeChild(u)}},[t]),S.createElement(nge,{isPresent:t,childRef:r,sizeRef:i},S.cloneElement(e,{ref:r}))}const uC=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const s=D9(ige),l=S.useId(),u=S.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:d=>{s.set(d,!0);for(const h of s.values())if(!h)return;r&&r()},register:d=>(s.set(d,!1),()=>s.delete(d))}),o?void 0:[n]);return S.useMemo(()=>{s.forEach((d,h)=>s.set(h,!1))},[n]),S.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=S.createElement(rge,{isPresent:n},e)),S.createElement(r2.Provider,{value:u},e)};function ige(){return new Map}function oge(e){return S.useEffect(()=>()=>e(),[])}const Ng=e=>e.key||"";function age(e,t){e.forEach(n=>{const r=Ng(n);t.set(r,n)})}function sge(e){const t=[];return S.Children.forEach(e,n=>{S.isValidElement(n)&&t.push(n)}),t}const ip=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait");let[s]=tge();const l=S.useContext(j9).forceRender;l&&(s=l);const u=VB(),d=sge(e);let h=d;const v=new Set,y=S.useRef(h),b=S.useRef(new Map).current,w=S.useRef(!0);if(XS(()=>{w.current=!1,age(d,b),y.current=h}),oge(()=>{w.current=!0,b.clear(),v.clear()}),w.current)return S.createElement(S.Fragment,null,h.map(T=>S.createElement(uC,{key:Ng(T),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:a},T)));h=[...h];const E=y.current.map(Ng),_=d.map(Ng),k=E.length;for(let T=0;T<k;T++){const L=E[T];_.indexOf(L)===-1&&v.add(L)}return a==="wait"&&v.size&&(h=[]),v.forEach(T=>{if(_.indexOf(T)!==-1)return;const L=b.get(T);if(!L)return;const O=E.indexOf(T),D=()=>{b.delete(T),v.delete(T);const I=y.current.findIndex(N=>N.key===T);if(y.current.splice(I,1),!v.size){if(y.current=d,u.current===!1)return;s(),r&&r()}};h.splice(O,0,S.createElement(uC,{key:Ng(L),isPresent:!1,onExitComplete:D,custom:t,presenceAffectsLayout:o,mode:a},L))}),h=h.map(T=>{const L=T.key;return v.has(L)?T:S.createElement(uC,{key:Ng(T),isPresent:!0,presenceAffectsLayout:o,mode:a},T)}),S.createElement(S.Fragment,null,v.size?h:h.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 GB(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 d0(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(h){a(h)}}function l(d){try{u(r.throw(d))}catch(h){a(h)}}function u(d){d.done?o(d.value):i(d.value).then(s,l)}u((r=r.apply(e,t||[])).next())})}function f0(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 Yge(e){e2({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function rm(e){const{isOpen:t,isDisabled:n}=u8(),{reduceMotion:r}=d8(),i=yt("chakra-accordion__icon",e.className),o=jw(),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(Da,{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"})})}rm.displayName="AccordionIcon";var im=Qe(function(t,n){const{children:r,className:i}=t,{htmlProps:o,...a}=Vge(t),l={...jw().container,overflowAnchor:"none"},u=S.useMemo(()=>a,[a]);return g.jsx(Fge,{value:u,children:g.jsx(Ne.div,{ref:n,...o,className:yt("chakra-accordion__item",i),__css:l,children:typeof r=="function"?r({isExpanded:!!a.isOpen,isDisabled:!!a.isDisabled}):r})})});im.displayName="AccordionItem";var om={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},jh={enter:{duration:.2,ease:om.easeOut},exit:{duration:.1,ease:om.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})},Xge=e=>e!=null&&parseInt(e.toString(),10)>0,FA={exit:{height:{duration:.2,ease:om.ease},opacity:{duration:.3,ease:om.ease}},enter:{height:{duration:.3,ease:om.ease},opacity:{duration:.4,ease:om.ease}}},Zge={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:i})=>{var o;return{...e&&{opacity:Xge(t)?1:0},height:t,transitionEnd:r==null?void 0:r.exit,transition:(o=n==null?void 0:n.exit)!=null?o:Ku.exit(FA.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(FA.enter,i)}}},tz=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,...h}=e,[v,y]=S.useState(!1);S.useEffect(()=>{const k=setTimeout(()=>{y(!0)});return()=>clearTimeout(k)},[]),e2({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:v?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(ip,{initial:!1,custom:w,children:E&&g.jsx(su.div,{ref:t,...h,className:yt("chakra-collapse",l),style:{overflow:"hidden",display:"block",...s},custom:w,variants:Zge,initial:r?"exit":!1,animate:_,exit:"exit"})})});tz.displayName="Collapse";var Qge={enter:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:1,transition:(r=e==null?void 0:e.enter)!=null?r:Ku.enter(jh.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(jh.exit,n),transitionEnd:t==null?void 0:t.exit}}},nz={initial:"exit",animate:"enter",exit:"exit",variants:Qge},Jge=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",h=r?i&&r:!0,v={transition:a,transitionEnd:s,delay:l};return g.jsx(ip,{custom:v,children:h&&g.jsx(su.div,{ref:n,className:yt("chakra-fade",o),custom:v,...nz,animate:d,...u})})});Jge.displayName="Fade";var eme={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(jh.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(jh.enter,n),transitionEnd:e==null?void 0:e.enter}}},rz={initial:"ex
|
|||
|
.`.concat(Tye,` {
|
|||
|
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(""),`
|
|||
|
}
|
|||
|
|
|||
|
.`).concat(tS,` {
|
|||
|
right: `).concat(s,"px ").concat(r,`;
|
|||
|
}
|
|||
|
|
|||
|
.`).concat(nS,` {
|
|||
|
margin-right: `).concat(s,"px ").concat(r,`;
|
|||
|
}
|
|||
|
|
|||
|
.`).concat(tS," .").concat(tS,` {
|
|||
|
right: 0 `).concat(r,`;
|
|||
|
}
|
|||
|
|
|||
|
.`).concat(nS," .").concat(nS,` {
|
|||
|
margin-right: 0 `).concat(r,`;
|
|||
|
}
|
|||
|
|
|||
|
body {
|
|||
|
`).concat(Mye,": ").concat(s,`px;
|
|||
|
}
|
|||
|
`)},zye=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r,o=S.useMemo(function(){return $ye(i)},[i]);return S.createElement(Fye,{styles:Bye(o,!t,i,n?"":"!important")})},nk=!1;if(typeof window<"u")try{var Yb=Object.defineProperty({},"passive",{get:function(){return nk=!0,!0}});window.addEventListener("test",Yb,Yb),window.removeEventListener("test",Yb,Yb)}catch{nk=!1}var _g=nk?{passive:!1}:!1,Hye=function(e){return e.tagName==="TEXTAREA"},LH=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Hye(e)&&n[t]==="visible")},Wye=function(e){return LH(e,"overflowY")},Uye=function(e){return LH(e,"overflowX")},gO=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=AH(e,n);if(r){var i=OH(e,n),o=i[1],a=i[2];if(o>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Vye=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Gye=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},AH=function(e,t){return e==="v"?Wye(t):Uye(t)},OH=function(e,t){return e==="v"?Vye(t):Gye(t)},qye=function(e,t){return e==="h"&&t==="rtl"?-1:1},Kye=function(e,t,n,r,i){var o=qye(e,window.getComputedStyle(t).direction),a=o*r,s=n.target,l=t.contains(s),u=!1,d=a>0,h=0,v=0;do{var y=OH(e,s),b=y[0],w=y[1],E=y[2],_=w-E-o*b;(b||_)&&AH(e,s)&&(h+=_,v+=b),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(d&&(i&&h===0||!i&&a>h)||!d&&(i&&v===0||!i&&-a>v))&&(u=!0),u},Xb=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},mO=function(e){return[e.deltaX,e.deltaY]},vO=function(e){return e&&"current"in e?e.current:e},Yye=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Xye=function(e){return`
|
|||
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|||
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|||
|
`)},Zye=0,kg=[];function Qye(e){var t=S.useRef([]),n=S.useRef([0,0]),r=S.useRef(),i=S.useState(Zye++)[0],o=S.useState(function(){return MH()})[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=B_([e.lockRef.current],(e.shards||[]).map(vO),!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 _=Xb(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=gO(I,D);if(!N)return!0;if(N?O=I:(O=I==="v"?"h":"v",N=gO(I,D)),!N)return!1;if(!r.current&&"changedTouches"in w&&(T||L)&&(r.current=O),!O)return!0;var U=r.current||O;return Kye(U,E,w,U==="h"?T:L,!0)},[]),l=S.useCallback(function(w){var E=w;if(!(!kg.length||kg[kg.length-1]!==o)){var _="deltaY"in E?mO(E):Xb(E),k=t.current.filter(function(O){return O.name===E.type&&O.target===E.target&&Yye(O.delta,_)})[0];if(k&&k.should){E.cancelable&&E.preventDefault();return}if(!k){var T=(a.current.shards||[]).map(vO).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=Xb(w),r.current=void 0},[]),h=S.useCallback(function(w){u(w.type,mO(w),w.target,s(w,e.lockRef.current))},[]),v=S.useCallback(function(w){u(w.type,Xb(w),w.target,s(w,e.lockRef.current))},[]);S.useEffect(function(){return kg.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:v}),document.addEventListener("wheel",l,_g),document.addEventListener("touchmove",l,_g),document.addEventListener("touchstart",d,_g),function(){kg=kg.filter(function(w){return w!==o}),document.removeEventListener("wheel",l,_g),document.removeEventListener("touchmove",l,_g),document.removeEventListener("touchstart",d,_g)}},[]);var y=e.removeScrollBar,b=e.inert;return S.createElement(S.Fragment,null,b?S.createElement(o,{styles:Xye(i)}):null,y?S.createElement(zye,{gapMode:"margin"}):null)}const Jye=n0e(TH,Qye);var RH=S.forwardRef(function(e,t){return S.createElement(zw,Nl({},e,{ref:t,sideCar:Jye}))});RH.classNames=zw.classNames;const IH=RH;function e2e(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:i,blockScrollOnMount:o,allowPinchZoom:a,finalFocusRef:s,returnFocusOnClose:l,preserveScrollBarGap:u,lockFocusAcrossFrames:d,isOpen:h}=Xh(),[v,y]=LB();S.useEffect(()=>{!v&&y&&setTimeout(y)},[v,y]);const b=kH(r,h);return g.jsx(Xz,{autoFocus:t,isDisabled:!n,initialFocusRef:i,finalFocusRef:s,restoreFocus:l,contentRef:r,lockFocusAcrossFrames:d,children:g.jsx(IH,{removeScrollBar:!u,allowPinchZoom:a,enabled:b===1&&o,forwardProps:!0,children:e.children})})}var Qd=Qe((e,t)=>{const{className:n,children:r,containerProps:i,motionProps:o,...a}=e,{getDialogProps:s,getDialogContainerProps:l}=Xh(),u=s(a,t),d=l(i),h=yt("chakra-modal__content",n),v=p0(),y={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...v.dialog},b={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...v.dialogContainer},{motionPreset:w}=Xh();return g.jsx(e2e,{children:g.jsx(Ne.div,{...d,className:"chakra-modal__content-container",tabIndex:-1,__css:b,children:g.jsx(_H,{preset:w,motionProps:o,className:h,...u,__css:y,children:r})})})});Qd.displayName="ModalContent";function DH(e){const{leastDestructiveRef:t,...n}=e;return g.jsx(Zd,{...n,initialFocusRef:t})}var jH=Qe((e,t)=>g.jsx(Qd,{ref:t,role:"alertdialog",...e}
|
|||
|
* @license React
|
|||
|
* use-sync-external-store-shim.production.min.js
|
|||
|
*
|
|||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|||
|
*
|
|||
|
* This source code is licensed under the MIT license found in the
|
|||
|
* LICENSE file in the root directory of this source tree.
|
|||
|
*/var Zm=S;function Lbe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Abe=typeof Object.is=="function"?Object.is:Lbe,Obe=Zm.useState,Rbe=Zm.useEffect,Ibe=Zm.useLayoutEffect,Dbe=Zm.useDebugValue;function jbe(e,t){var n=t(),r=Obe({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return Ibe(function(){i.value=n,i.getSnapshot=t,EC(i)&&o({inst:i})},[e,n,t]),Rbe(function(){return EC(i)&&o({inst:i}),e(function(){EC(i)&&o({inst:i})})},[e]),Dbe(n),n}function EC(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Abe(e,n)}catch{return!0}}function Nbe(e,t){return t()}var $be=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Nbe:jbe;oW.useSyncExternalStore=Zm.useSyncExternalStore!==void 0?Zm.useSyncExternalStore:$be;(function(e){e.exports=oW})(Mbe);var sk={},Fbe={get exports(){return sk},set exports(e){sk=e}},aW={};/**
|
|||
|
* @license React
|
|||
|
* use-sync-external-store-shim/with-selector.production.min.js
|
|||
|
*
|
|||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|||
|
*
|
|||
|
* This source code is licensed under the MIT license found in the
|
|||
|
* LICENSE file in the root directory of this source tree.
|
|||
|
*/var qw=S,Bbe=ak;function zbe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Hbe=typeof Object.is=="function"?Object.is:zbe,Wbe=Bbe.useSyncExternalStore,Ube=qw.useRef,Vbe=qw.useEffect,Gbe=qw.useMemo,qbe=qw.useDebugValue;aW.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=Ube(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=Gbe(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 h=b}return h=y}if(b=h,Hbe(d,y))return b;var w=r(y);return i!==void 0&&i(b,w)?b:(d=y,h=w)}var u=!1,d,h,v=n===void 0?null:n;return[function(){return l(t())},v===null?void 0:function(){return l(v())}]},[t,n,r,i]);var s=Wbe(e,o[0],o[1]);return Vbe(function(){a.hasValue=!0,a.value=s},[s]),qbe(s),s};(function(e){e.exports=aW})(Fbe);function Kbe(e){e()}let sW=Kbe;const Ybe=e=>sW=e,Xbe=()=>sW,Jd=S.createContext(null);function lW(){return S.useContext(Jd)}const Zbe=()=>{throw new Error("uSES not initialized!")};let uW=Zbe;const Qbe=e=>{uW=e},Jbe=(e,t)=>e===t;function exe(e=Jd){const t=e===Jd?lW:()=>S.useContext(e);return function(r,i=Jbe){const{store:o,subscription:a,getServerState:s}=t(),l=uW(a.addNestedSub,o.getState,s||o.getState,r,i);return S.useDebugValue(l),l}}const txe=exe();var kO={},nxe={get exports(){return kO},set exports(e){kO=e}},jn={};/**
|
|||
|
* @license React
|
|||
|
* react-is.production.min.js
|
|||
|
*
|
|||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|||
|
*
|
|||
|
* This source code is licensed under the MIT license found in the
|
|||
|
* LICENSE file in the root directory of this source tree.
|
|||
|
*/var eE=Symbol.for("react.element"),tE=Symbol.for("react.portal"),Kw=Symbol.for("react.fragment"),Yw=Symbol.for("react.strict_mode"),Xw=Symbol.for("react.profiler"),Zw=Symbol.for("react.provider"),Qw=Symbol.for("react.context"),rxe=Symbol.for("react.server_context"),Jw=Symbol.for("react.forward_ref"),e4=Symbol.for("react.suspense"),t4=Symbol.for("react.suspense_list"),n4=Symbol.for("react.memo"),r4=Symbol.for("react.lazy"),ixe=Symbol.for("react.offscreen"),cW;cW=Symbol.for("react.module.reference");function ps(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case eE:switch(e=e.type,e){case Kw:case Xw:case Yw:case e4:case t4:return e;default:switch(e=e&&e.$$typeof,e){case rxe:case Qw:case Jw:case r4:case n4:case Zw:return e;default:return t}}case tE:return t}}}jn.ContextConsumer=Qw;jn.ContextProvider=Zw;jn.Element=eE;jn.ForwardRef=Jw;jn.Fragment=Kw;jn.Lazy=r4;jn.Memo=n4;jn.Portal=tE;jn.Profiler=Xw;jn.StrictMode=Yw;jn.Suspense=e4;jn.SuspenseList=t4;jn.isAsyncMode=function(){return!1};jn.isConcurrentMode=function(){return!1};jn.isContextConsumer=function(e){return ps(e)===Qw};jn.isContextProvider=function(e){return ps(e)===Zw};jn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===eE};jn.isForwardRef=function(e){return ps(e)===Jw};jn.isFragment=function(e){return ps(e)===Kw};jn.isLazy=function(e){return ps(e)===r4};jn.isMemo=function(e){return ps(e)===n4};jn.isPortal=function(e){return ps(e)===tE};jn.isProfiler=function(e){return ps(e)===Xw};jn.isStrictMode=function(e){return ps(e)===Yw};jn.isSuspense=function(e){return ps(e)===e4};jn.isSuspenseList=function(e){return ps(e)===t4};jn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Kw||e===Xw||e===Yw||e===e4||e===t4||e===ixe||typeof e=="object"&&e!==null&&(e.$$typeof===r4||e.$$typeof===n4||e.$$typeof===Zw||e.$$typeof===Qw||e.$$typeof===Jw||e.$$typeof===cW||e.getModuleId!==void 0)};jn.typeOf=ps;(function(e){e.exports=jn})(nxe);function oxe(){const e=Xbe();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 EO={notify(){},get:()=>[]};function axe(e,t){let n,r=EO;function i(h){return l(),r.subscribe(h)}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=oxe())}function u(){n&&(n(),n=void 0,r.clear(),r=EO)}const d={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:s,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>r};return d}const sxe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",lxe=sxe?S.useLayoutEffect:S.useEffect;function uxe({store:e,context:t,children:n,serverState:r}){const i=S.useMemo(()=>{const s=axe(e);return{store:e,subscription:s,getServerState:r?()=>r:void 0}},[e,r]),o=S.useMemo(()=>e.getState(),[e]);lxe(()=>{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||Jd;return Ye.createElement(a.Provider,{value:i},n)}function dW(e=Jd){const t=e===Jd?lW:()=>S.useContext(e);return function(){const{store:r}=t();return r}}const cxe=dW();function dxe(e=Jd){const t=e===Jd?cxe:dW(e);return function(){return t().dispatch}}const fxe=dxe();Qbe(sk.useSyncExternalStoreWithSelector);Ybe(Xs.unstable_batchedUpdates);function oS(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?oS=function(n){return typeof n}:oS=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},oS(e)}function hxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enu
|
|||
|
|
|||
|
`;if(!(0,e.isString)($)||$.length<1)throw new Error(`${Q} Name (key) of reducer is required. ${q}`);if(!z||!z.length)return;const{duplicates:X,subsets:ee}=(0,e.findDuplicatesAndSubsets)(z);if(X.length>1)throw new Error(`${Q} Duplicated paths.
|
|||
|
|
|||
|
${JSON.stringify(X)}
|
|||
|
|
|||
|
${q}`);if(ee.length>1)throw new Error(`${Q} You are trying to persist an entire property and also some of its subset.
|
|||
|
|
|||
|
${JSON.stringify(ee)}
|
|||
|
|
|||
|
${q}`)};e.singleTransformValidator=N;const U=function(z){if(!(0,e.isArray)(z))return;const $=(z==null?void 0:z.map(H=>H.deepPersistKey).filter(H=>H))||[];if($.length){const H=$.filter((Y,Q)=>$.indexOf(Y)!==Q);if(H.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.
|
|||
|
|
|||
|
Duplicates: ${JSON.stringify(H)}`)}};e.transformsValidator=U;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:H,subsets:Y}=(0,e.findDuplicatesAndSubsets)(z);(0,e.throwError)({duplicates:H,subsets:Y},"whitelist")}if($){const{duplicates:H,subsets:Y}=(0,e.findDuplicatesAndSubsets)($);(0,e.throwError)({duplicates:H,subsets:Y},"blacklist")}};e.configValidator=B;const K=function({duplicates:z,subsets:$},H){if(z.length)throw new Error(`${t.PACKAGE_NAME}: duplicates of paths found in your ${H}.
|
|||
|
|
|||
|
${JSON.stringify(z)}`);if($.length)throw new Error(`${t.PACKAGE_NAME}: subsets of some parent keys found in your ${H}. You must decide if you want to persist an entire path or its specific subset.
|
|||
|
|
|||
|
${JSON.stringify($)}`)};e.throwError=K;const ne=function(z){return(0,e.isArray)(z)?z.filter(e.unique).reduce(($,H)=>{const Y=H.split("."),Q=Y[0],q=Y.slice(1).join(".")||void 0,X=$.filter(fe=>Object.keys(fe)[0]===Q)[0],ee=X?Object.values(X)[0]:void 0;return X||$.push({[Q]:q?[q]:void 0}),X&&!ee&&q&&(X[Q]=[q]),X&&ee&&q&&ee.push(q),$},[]):[]};e.getRootKeysGroup=ne})(LW);(function(e){var t=So&&So.__rest||function(h,v){var y={};for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&v.indexOf(b)<0&&(y[b]=h[b]);if(h!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,b=Object.getOwnPropertySymbols(h);w<b.length;w++)v.indexOf(b[w])<0&&Object.prototype.propertyIsEnumerable.call(h,b[w])&&(y[b[w]]=h[b[w]]);return y};Object.defineProperty(e,"__esModule",{value:!0}),e.getPersistConfig=e.getTransforms=e.createBlacklist=e.createWhitelist=e.autoMergeDeep=void 0;const n=LW,r=Qh,i=pE,o=function(h,v,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)&&h?h(_,k,T):_,out:(_,k,T)=>!E(k)&&v?v(_,k,T):_,deepPersistKey:b&&b[0]}},a=(h,v,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=h;if(T&&(0,n.isObjectLike)(T)){const L=(0,n.difference)(v,y);(0,n.isEmpty)(L)||(T=(0,n.mergeDeep)(h,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=(h,v)=>((0,n.singleTransformValidator)(v,h,i.ConfigType.WHITELIST),o(y=>{if(!v||!v.length)return y;let b=null,w;return v.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,v,i.ConfigType.WHITELIST),{whitelist:[h]}));e.createWhitelist=s;const l=(h,v)=>((0,n.singleTransformValidator)(v,h,i.ConfigType.BLACKLIST),o(y=>{if(!v||!v.length)return;const b=(0,n.preserveUndefined)(y,v,i.ConfigType.BLACKLIST,!0);return v.map(E=>E.split(".")).reduce((E,_)=>(0,n.dissocPath)(E,_),b)},y=>(0,n.preserveUndefined)(y,v,i.ConfigType.BLACKLIST),{whitelist:[h]}));e.createBlacklist=l;const u=function(h,v){return v.map(y=>{const b=Object.keys(y)[0],w=y[b];return h===i.ConfigType.WHITELIST?(0,e.createWhitelist)(b,w):(0,e.createBlacklist)(b,w)})};e.getTransforms=u;const d=h=>{var{key:v,whitelist:y,blacklist:b,storage:w,transforms:E,rootReducer:_}=h,k=t(h,["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),U=(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:v,storage:w,transforms:[...U,...B,...K,...E||[]],stateReconciler:e.autoMergeDeep})};e.getPersistConfig=d})(MW);const _d=(e,t)=>Math.floor(e/t)*t,Hl=(e,t)=>Math.round(e/t)*t;var Pe={},$Se={get exports(){return Pe},set exports(e){Pe=e}};/**
|
|||
|
* @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
|
|||
|
*/(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__",h=1,v=2,y=4,b=1,w=2,E=1,_=2,k=4,T=8,L=16,O=32,D=64,I=128,N=256,U=512,B=30,K="...",ne=800,z=16,$=1,H=2,Y=3,Q=1/0,q=9007199254740991,X=17976931348623157e292,ee=0/0,fe=4294967295,Ce=fe-1,we=fe>>>1,xe=[["ary",I],["bind",E],["bindKey",_],["curry",T],["curryRight",L],["flip",U],["partial",O],["partialRight",D],["rearg",N]],Me="[object Arguments]",Se="[object Array]",Je="[object AsyncFunction]",Ge="[object Boolean]",Oe="[object Date]",vt="[object DOMException]",Fe="[object Error]",tt="[object Function]",bt="[object GeneratorFunction]",ze="[object Map]",at="[object Number]",jt="[object Null]",mt="[object Object]",Jt="[object Promise]",en="[object Proxy]",oe="[object RegExp]",Ie="[object Set]",We="[object String]",qe="[object Symbol]",ye="[object Undefined]",je="[object WeakMap]",wt="[object WeakSet]",Dt="[object ArrayBuffer]",Te="[object DataView]",Ct="[object Float32Array]",zt="[object Float64Array]",Nn="[object Int8Array]",Ke="[object Int16Array]",pt="[object Int32Array]",zr="[object Uint8Array]",rr="[object Uint8ClampedArray]",Fn="[object Uint16Array]",li="[object Uint32Array]",vs=/\b__p \+= '';/g,tl=/\b(__p \+=) '' \+/g,vf=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ys=/&(?:amp|lt|gt|quot|#39);/g,Xi=/[&<>"']/g,C0=RegExp(ys.source),ja=RegExp(Xi.source),Cp=/<%-([\s\S]+?)%>/g,_0=/<%([\s\S]+?)%>/g,xc=/<%=([\s\S]+?)%>/g,_p=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,kp=/^\w*$/,na=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yf=/[\\^$.*+?()[\]{}|]/g,k0=RegExp(yf.source),Sc=/^\s+/,bf=/\s/,E0=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,nl=/\{\n\/\* \[wrapped with (.+)\] \*/,wc=/,? & /,P0=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,T0=/[()=,{}\[\]\/\s]/,M0=/\\(\\)?/g,L0=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,bs=/\w*$/,A0=/^[-+]0x[0-9a-f]+$/i,O0=/^0b[01]+$/i,R0=/^\[object .+?Constructor\]$/,I0=/^0o[0-7]+$/i,D0=/^(?:0|[1-9]\d*)$/,j0=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rl=/($^)/,N0=/['\n\r\u2028\u2029\\]/g,xs="\\ud800-\\udfff",fu="\\u0300-\\u036f",hu="\\ufe20-\\ufe2f",il="\\u20d0-\\u20ff",pu=fu+hu+il,Ep="\\u2700-\\u27bf",Cc="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+"]",xf="\\d+",gu="["+Ep+"]",ws="["+Cc+"]",Sf="[^"+xs+ui+xf+Ep+Cc+ia+"]",Ri="\\ud83c[\\udffb-\\udfff]",Pp="(?:"+Ss+"|"+Ri+")",Tp="[^"+xs+"]",wf="(?:\\ud83c[\\udde6-\\uddff]){2}",sl="[\\ud800-\\udbff][\\udc00-\\udfff]",Mo="["+ia+"]",ll="\\u200d",mu="(?:"+ws+"|"+Sf+")",$0="(?:"+Mo+"|"+Sf+")",_c="(?:"+oa+"(?:d|ll|m|re|s|t|ve))?",kc="(?:"+oa+"(?:D|LL|M|RE|S|T|VE))?",Cf=Pp+"?",Ec="["+Hr+"]?",Na="(?:"+ll+"(?:"+[Tp,wf,sl].join("|")+")"+Ec+Cf+")*",_f="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",vu="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Gt=Ec+Cf+Na,Mp="(?:"+[gu,wf,sl].join("|")+")"+Gt,Pc="(?:"+[Tp+Ss+"?",Ss,wf,sl,al].join("|")+")",Tc=RegExp(oa,"g"),Lp=RegExp(Ss,"g"),aa=RegExp(Ri+"(?="+Ri+")|"+Pc+Gt,"g"),Xn=RegExp([Mo+"?"+ws+"+"+_c+"(?="+[ci,Mo,"$"].join("|")+")",$0+"+"+kc+"(?="+[ci,Mo+mu,"$"].join("|")+")",Mo+"?"+mu+"+"+_c,Mo+"+"+kc,vu,_f,xf,Mp].join("|"),"g"),kf=RegExp("["+ll+xs+pu+Hr+"]"),Ap=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ef=["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"],Op=-1,cn={};cn[Ct
|
|||
|
/* [wrapped with `+m+`] */
|
|||
|
`)}function CK(c){return $t(c)||rh(c)||!!(X0&&c&&c[X0])}function Pu(c,m){var C=typeof c;return m=m??q,!!m&&(C=="number"||C!="symbol"&&D0.test(c))&&c>-1&&c%1==0&&c<m}function mo(c,m,C){if(!Cr(C))return!1;var A=typeof m;return(A=="number"?$o(C)&&Pu(m,C.length):A=="string"&&m in C)?Os(C[m],c):!1}function W4(c,m){if($t(c))return!1;var C=typeof c;return C=="number"||C=="symbol"||C=="boolean"||c==null||va(c)?!0:kp.test(c)||!_p.test(c)||m!=null&&c in dn(m)}function _K(c){var m=typeof c;return m=="string"||m=="number"||m=="symbol"||m=="boolean"?c!=="__proto__":c===null}function U4(c){var m=ve(c),C=F[m];if(typeof C!="function"||!(m in Yt.prototype))return!1;if(c===C)return!0;var A=le(C);return!!A&&c===A[0]}function kK(c){return!!jc&&jc in c}var EK=pr?Tu:s5;function Pv(c){var m=c&&c.constructor,C=typeof m=="function"&&m.prototype||Cn;return c===C}function AP(c){return c===c&&!Cr(c)}function OP(c,m){return function(C){return C==null?!1:C[c]===m&&(m!==n||c in dn(C))}}function PK(c){var m=cb(c,function(A){return C.size===u&&C.clear(),A}),C=m.cache;return m}function TK(c,m){var C=c[1],A=m[1],j=C|A,W=j<(E|_|I),Z=A==I&&C==T||A==I&&C==N&&c[7].length<=m[8]||A==(I|N)&&m[7].length<=m[8]&&C==T;if(!(W||Z))return c;A&E&&(c[2]=m[2],j|=C&E?0:k);var te=m[3];if(te){var ce=c[3];c[3]=ce?ib(ce,te,m[4]):te,c[4]=ce?ua(c[3],d):m[4]}return te=m[5],te&&(ce=c[5],c[5]=ce?wv(ce,te,m[6]):te,c[6]=ce?ua(c[5],d):m[6]),te=m[7],te&&(c[7]=te),A&I&&(c[8]=c[8]==null?m[8]:hi(c[8],m[8])),c[9]==null&&(c[9]=m[9]),c[0]=m[0],c[1]=j,c}function MK(c){var m=[];if(c!=null)for(var C in dn(c))m.push(C);return m}function LK(c){return Bp.call(c)}function RP(c,m,C){return m=Or(m===n?c.length-1:m,0),function(){for(var A=arguments,j=-1,W=Or(A.length-m,0),Z=me(W);++j<W;)Z[j]=A[m+j];j=-1;for(var te=me(m+1);++j<m;)te[j]=A[j];return te[m]=C(Z),Ii(c,this,te)}}function IP(c,m){return m.length<2?c:gl(c,qr(m,0,-1))}function AK(c,m){for(var C=c.length,A=hi(m.length,C),j=Bi(c);A--;){var W=m[A];c[A]=Pu(W,C)?j[W]:n}return c}function V4(c,m){if(!(m==="constructor"&&typeof c[m]=="function")&&m!="__proto__")return c[m]}var DP=NP(Xf),Tv=Bf||function(c,m){return xt.setTimeout(c,m)},G4=NP(sg);function jP(c,m,C){var A=m+"";return G4(c,wK(A,OK(bK(A),C)))}function NP(c){var m=0,C=0;return function(){var A=Z0(),j=z-(A-C);if(C=A,j>0){if(++m>=ne)return arguments[0]}else m=0;return c.apply(n,arguments)}}function ab(c,m){var C=-1,A=c.length,j=A-1;for(m=m===n?A:m;++C<m;){var W=Kf(C,j),Z=c[W];c[W]=c[C],c[C]=Z}return c.length=m,c}var $P=PK(function(c){var m=[];return c.charCodeAt(0)===46&&m.push(""),c.replace(na,function(C,A,j,W){m.push(j?W.replace(M0,"$1"):A||C)}),m});function kl(c){if(typeof c=="string"||va(c))return c;var m=c+"";return m=="0"&&1/c==-Q?"-0":m}function nh(c){if(c!=null){try{return xr.call(c)}catch{}try{return c+""}catch{}}return""}function OK(c,m){return Zn(xe,function(C){var A="_."+C[0];m&C[1]&&!Zi(c,A)&&c.push(A)}),c.sort()}function FP(c){if(c instanceof Yt)return c.clone();var m=new fo(c.__wrapped__,c.__chain__);return m.__actions__=Bi(c.__actions__),m.__index__=c.__index__,m.__values__=c.__values__,m}function RK(c,m,C){(C?mo(c,m,C):m===n)?m=1:m=Or(Ft(m),0);var A=c==null?0:c.length;if(!A||m<1)return[];for(var j=0,W=0,Z=me(zf(A/m));j<A;)Z[W++]=qr(c,j,j+=m);return Z}function IK(c){for(var m=-1,C=c==null?0:c.length,A=0,j=[];++m<C;){var W=c[m];W&&(j[A++]=W)}return j}function DK(){var c=arguments.length;if(!c)return[];for(var m=me(c-1),C=arguments[0],A=c;A--;)m[A-1]=arguments[A];return Fa($t(C)?Bi(C):[C],Vr(m,1))}var jK=Tt(function(c,m){return Kr(c)?Xc(c,Vr(m,1,Kr,!0)):[]}),NK=Tt(function(c,m){var C=Ua(m);return Kr(C)&&(C=n),Kr(c)?Xc(c,Vr(m,1,Kr,!0),Ae(C,2)):[]}),$K=Tt(function(c,m){var C=Ua(m);return Kr(C)&&(C=n),Kr(c)?Xc(c,Vr(m,1,Kr,!0),n,C):[]});function FK(c,m,C){var A=c==null?0:c.length;return A?(m=C||m===n?1:Ft(m),qr(c,m<0?0:m,A)):[]}function BK(c,m,C){var A=c==null?0:c.length;return A?(m=C||m===n?1:Ft(m),m=A-m,qr(c,0,m<0?0:m)):[]}function zK(c,m){return c&&c.length?rd(c,Ae(m,3),!0,!0):[]}function HK(c,m){return c&&c.length?rd(c,Ae(m,3),!0):[]}function WK(c,m,C,A){var j=c==null?0:c.length;
|
|||
|
`;c.replace(nt,function(kt,Xt,nn,ya,vo,ba){return nn||(nn=ya),Re+=c.slice(_e,ba).replace(N0,dl),Xt&&(te=!0,Re+=`' +
|
|||
|
__e(`+Xt+`) +
|
|||
|
'`),vo&&(ce=!0,Re+=`';
|
|||
|
`+vo+`;
|
|||
|
__p += '`),nn&&(Re+=`' +
|
|||
|
((__t = (`+nn+`)) == null ? '' : __t) +
|
|||
|
'`),_e=ba+kt.length,kt}),Re+=`';
|
|||
|
`;var _t=an.call(m,"variable")&&m.variable;if(!_t)Re=`with (obj) {
|
|||
|
`+Re+`
|
|||
|
}
|
|||
|
`;else if(T0.test(_t))throw new Mt(s);Re=(ce?Re.replace(vs,""):Re).replace(tl,"$1").replace(vf,"$1;"),Re="function("+(_t||"obj")+`) {
|
|||
|
`+(_t?"":`obj || (obj = {});
|
|||
|
`)+"var __t, __p = ''"+(te?", __e = _.escape":"")+(ce?`, __j = Array.prototype.join;
|
|||
|
function print() { __p += __j.call(arguments, '') }
|
|||
|
`:`;
|
|||
|
`)+Re+`return __p
|
|||
|
}`;var Vt=vT(function(){return tn(W,gt+"return "+Re).apply(n,Z)});if(Vt.source=Re,Z4(Vt))throw Vt;return Vt}function QZ(c){return _n(c).toLowerCase()}function JZ(c){return _n(c).toUpperCase()}function eQ(c,m,C){if(c=_n(c),c&&(C||m===n))return co(c);if(!c||!(m=po(m)))return c;var A=Qi(c),j=Qi(m),W=la(A,j),Z=Cs(A,j)+1;return Ls(A,W,Z).join("")}function tQ(c,m,C){if(c=_n(c),c&&(C||m===n))return c.slice(0,V0(c)+1);if(!c||!(m=po(m)))return c;var A=Qi(c),j=Cs(A,Qi(m))+1;return Ls(A,0,j).join("")}function nQ(c,m,C){if(c=_n(c),c&&(C||m===n))return c.replace(Sc,"");if(!c||!(m=po(m)))return c;var A=Qi(c),j=la(A,Qi(m));return Ls(A,j).join("")}function rQ(c,m){var C=B,A=K;if(Cr(m)){var j="separator"in m?m.separator:j;C="length"in m?Ft(m.length):C,A="omission"in m?po(m.omission):A}c=_n(c);var W=c.length;if(bu(c)){var Z=Qi(c);W=Z.length}if(C>=W)return c;var te=C-Ba(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),Q4(j)){if(c.slice(te).search(j)){var _e,Ee=ce;for(j.global||(j=jf(j.source,_n(bs.exec(j))+"g")),j.lastIndex=0;_e=j.exec(Ee);)var Re=_e.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 iQ(c){return c=_n(c),c&&C0.test(c)?c.replace(ys,j2):c}var oQ=_l(function(c,m,C){return c+(C?" ":"")+m.toUpperCase()}),t5=gg("toUpperCase");function mT(c,m,C){return c=_n(c),m=C?n:m,m===n?Np(c)?Df(c):H0(c):c.match(m)||[]}var vT=Tt(function(c,m){try{return Ii(c,n,m)}catch(C){return Z4(C)?C:new Mt(C)}}),aQ=gr(function(c,m){return Zn(m,function(C){C=kl(C),fa(c,C,Y4(c[C],c))}),c});function sQ(c){var m=c==null?0:c.length,C=Ae();return c=m?zn(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<m;){var W=c[j];if(Ii(W[0],this,A))return Ii(W[1],this,A)}})}function lQ(c){return qp(Ci(c,h))}function n5(c){return function(){return c}}function uQ(c,m){return c==null||c!==c?m:c}var cQ=kv(),dQ=kv(!0);function Bo(c){return c}function r5(c){return wr(typeof c=="function"?c:Ci(c,h))}function fQ(c){return ed(Ci(c,h))}function hQ(c,m){return vl(c,Ci(m,h))}var pQ=Tt(function(c,m){return function(C){return Ts(C,c,m)}}),gQ=Tt(function(c,m){return function(C){return Ts(c,C,m)}});function i5(c,m,C){var A=Pi(m),j=Zp(m,A);C==null&&!(Cr(m)&&(j.length||!A.length))&&(C=m,m=c,c=this,j=Zp(m,Pi(m)));var W=!(Cr(C)&&"chain"in C)||!!C.chain,Z=Tu(c);return Zn(j,function(te){var ce=m[te];c[te]=ce,Z&&(c.prototype[te]=function(){var _e=this.__chain__;if(W||_e){var Ee=c(this.__wrapped__),Re=Ee.__actions__=Bi(this.__actions__);return Re.push({func:ce,args:arguments,thisArg:c}),Ee.__chain__=_e,Ee}return ce.apply(c,Fa([this.value()],arguments))})}),c}function mQ(){return xt._===this&&(xt._=q0),this}function o5(){}function vQ(c){return c=Ft(c),Tt(function(m){return td(m,c)})}var yQ=Ev(zn),bQ=Ev(Bn),xQ=Ev(Mc);function yT(c){return W4(c)?cl(kl(c)):Ms(c)}function SQ(c){return function(m){return c==null?n:gl(c,m)}}var wQ=x(),CQ=x(!0);function a5(){return[]}function s5(){return!1}function _Q(){return{}}function kQ(){return""}function EQ(){return!0}function PQ(c,m){if(c=Ft(c),c<1||c>q)return[];var C=fe,A=hi(c,fe);m=Ae(m),c-=fe;for(var j=Of(A,m);++C<c;)m(C);return j}function TQ(c){return $t(c)?zn(c,kl):va(c)?[c]:Bi($P(_n(c)))}function MQ(c){var m=++Nf;return _n(c)+m}var LQ=mg(function(c,m){return c+m},0),AQ=R("ceil"),OQ=mg(function(c,m){return c/m},1),RQ=R("floor");function IQ(c){return c&&c.length?Ir(c,Bo,Qp):n}function DQ(c,m){return c&&c.length?Ir(c,Ae(m,2),Qp):n}function jQ(c){return Mf(c,Bo)}function NQ(c,m){return Mf(c,Ae(m,2))}function $Q(c){return c&&c.length?Ir(c,Bo,ml):n}function FQ(c,m){return c&&c.length?Ir(c,Ae(m,2),ml):n}var BQ=mg(function(c,m){return c*m},1),zQ=R("round"),HQ=mg(function(c,m){return c-m},0);function WQ(c){return c&&c.length?Af(c,Bo):0}function UQ(c,m){return c&&c.length?Af(c,Ae(m,2)):0}return F.after=fX,F.ary=YP,F.assign=JX,F.assignIn=uT,F.assignInWith=pb,F.assignWith=eZ,F.at=tZ,F.before=XP,F.bind=Y4,F.bindAll=aQ,F.bindKey=ZP,F.castArray=_X,F.chain=GP,F.c
|
|||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function H3e(e){return hU(e)||z3e(e)||pU(e)||gU()}function sR(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 lR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sR(Object(n),!0).forEach(function(r){fs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var W3e={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)}},U3e=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||W3e,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,lR(lR({},{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 U3e,tf=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 Gv(){var e,t,n=new Promise(function(r,i){e=r,t=i});return n.resolve=e,n.reject=t,n}function uR(e){return e==null?"":""+e}function V3e(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function wE(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 cR(e,t,n){var r=wE(e,t,Object),i=r.obj,o=r.k;i[o]=n}function G3e(e,t,n,r){var i=wE(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 P3(e,t){var n=wE(e,t),r=n.obj,i=n.k;if(r)return r[i]}function dR(e,t,n){var r=P3(e,n);return r!==void 0?r:P3(t,n)}function mU(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]):mU(e[r],t[r],n):e[r]=t[r]);return e}function Lg(e){return e.replace(/[
|
|||
|
`),n=+this.fontSize(),r=0,i=this.lineHeight()*n,o=this.attrs.width,a=this.attrs.height,s=o!==Ig&&o!==void 0,l=a!==Ig&&a!==void 0,u=this.padding(),d=o-u*2,h=a-u*2,v=0,y=this.wrap(),b=y!==gI,w=y!==KCe&&b,E=this.ellipsis();this.textArr=[],XC().font=this._getContextFont();for(var _=E?this._getTextWidth(YC):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="",U=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,U=ne):I=B}if(N){if(w){var z,$=L[N.length],H=$===px||$===hI;H&&U<=d?z=N.length:z=Math.max(N.lastIndexOf(px),N.lastIndexOf(hI))+1,z>0&&(D=z,N=N.slice(0,D),U=this._getTextWidth(N))}N=N.trimRight(),this._addTextLine(N),r=Math.max(r,U),v+=i;var Y=this._shouldHandleEllipsis(v);if(Y){this._tryToAddEllipsisToLastLine();break}if(L=L.slice(D),L=L.trimLeft(),L.length>0&&(O=this._getTextWidth(L),O<=d)){this._addTextLine(L),v+=i,r=Math.max(r,O);break}}else break}else this._addTextLine(L),v+=i,r=Math.max(r,O),this._shouldHandleEllipsis(v)&&k<T-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),l&&v+i>h)break}this.textHeight=n,this.textWidth=r}_shouldHandleEllipsis(t){var n=+this.fontSize(),r=this.lineHeight()*n,i=this.attrs.height,o=i!==Ig&&i!==void 0,a=this.padding(),s=i-a*2,l=this.wrap(),u=l!==gI;return!u||o&&t+r>s}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,n=t!==Ig&&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+YC)<i;s||(a.text=a.text.slice(0,a.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+YC)}}getStrokeScaleEnabled(){return!0}}Tr.prototype._fillFunc=ZCe;Tr.prototype._strokeFunc=QCe;Tr.prototype.className=HCe;Tr.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];Mr(Tr);J.overWriteSetter(Tr,"width",ME());J.overWriteSetter(Tr,"height",ME());J.addGetterSetter(Tr,"fontFamily","Arial");J.addGetterSetter(Tr,"fontSize",12,Ue());J.addGetterSetter(Tr,"fontStyle",SV);J.addGetterSetter(Tr,"fontVariant",SV);J.addGetterSetter(Tr,"padding",0,Ue());J.addGetterSetter(Tr,"align",xV);J.addGetterSetter(Tr,"verticalAlign",WCe);J.addGetterSetter(Tr,"lineHeight",1,Ue());J.addGetterSetter(Tr,"wrap",qCe);J.addGetterSetter(Tr,"ellipsis",!1,el());J.addGetterSetter(Tr,"letterSpacing",0,Ue());J.addGetterSetter(Tr,"text","",b0());J.addGetterSetter(Tr,"textDecoration","");var e6e="",CV="normal";function _V(e){e.fillText(this.partialText,0,0)}function kV(e){e.strokeText(this.partialText,0,0)}class xi extends $e{constructor(t){super(t),this.dummyCanvas=de.createCanvasElement(),this.dataArray=[],this.dataArray=$n.parsePathData(this.attrs.data),this.on("dataChange.konva",function(){this.dataArray=$n.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
|
|||
|
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;
|
|||
|
}
|
|||
|
`,uD={wrapper:"transform-component-module_wrapper__7HFJe",content:"transform-component-module_content__uCDPE"};IEe(DEe);var jEe=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,h=d===void 0?{}:d,v=S.useContext(eP).init,y=S.useRef(null),b=S.useRef(null);return S.useEffect(function(){var w=y.current,E=b.current;w!==null&&E!==null&&v&&v(w,E)},[]),Ye.createElement("div",Vd({},u,{ref:y,className:"react-transform-wrapper ".concat(uD.wrapper," ").concat(r),style:a}),Ye.createElement("div",Vd({},h,{ref:b,className:"react-transform-component ".concat(uD.content," ").concat(o),style:s}),t))};Ye.forwardRef(function(e,t){var n=S.useRef(null),r=S.useContext(eP);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]),Ye.createElement("div",Vd({},e,{ref:cEe([n,t])}))});function NEe({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(REe,{centerOnInit:!0,minScale:.1,initialPositionX:50,initialPositionY:50,children:({zoomIn:h,zoomOut:v,resetTransform:y,centerView:b})=>g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"lightbox-image-options",children:[g.jsx(Xe,{icon:g.jsx(j_e,{}),"aria-label":"Zoom In",tooltip:"Zoom In",onClick:()=>h(),fontSize:20}),g.jsx(Xe,{icon:g.jsx(N_e,{}),"aria-label":"Zoom Out",tooltip:"Zoom Out",onClick:()=>v(),fontSize:20}),g.jsx(Xe,{icon:g.jsx(I_e,{}),"aria-label":"Rotate Left",tooltip:"Rotate Left",onClick:l,fontSize:20}),g.jsx(Xe,{icon:g.jsx(D_e,{}),"aria-label":"Rotate Right",tooltip:"Rotate Right",onClick:u,fontSize:20}),g.jsx(Xe,{icon:g.jsx(e7e,{}),"aria-label":"Flip Image",tooltip:"Flip Image",onClick:d,fontSize:20}),g.jsx(Xe,{icon:g.jsx(p4,{}),"aria-label":"Reset",tooltip:"Reset",onClick:()=>{y(),o(0),s(!1)},fontSize:20})]}),g.jsx(jEe,{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 $Ee(){const e=Le(),t=ue(v=>v.lightbox.isLightboxOpen),{viewerImageToDisplay:n,shouldShowImageDetails:r,isOnFirstImage:i,isOnLastImage:o}=ue(iG),[a,s]=S.useState(!1),l=()=>{s(!0)},u=()=>{s(!1)},d=()=>{e(bE())},h=()=>{e(yE())};return Ze("Esc",()=>{t&&e(Om(!1))},[t]),g.jsxs("div",{className:"lightbox-container",children:[g.jsx(Xe,{icon:g.jsx(R_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(nG,{}),!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(VV,{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(GV,{className:"next-prev-button"}),variant:"unstyled",onClick:h})})]}),n&&g.jsxs(g.Fragment,{children:[g.jsx(NEe,{image:n.url,styleClass:"lightbox-image"}),r&&g.jsx(UE,{image:n})]})]}),g.jsx(WG,{})]})]})}function FEe(e){return ut({tag:"svg",attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{d:"M14 1H3L2 2v11l1 1h11l1-1V2l-1-1zM8 13H3V2h5v11zm6 0H9V2h5v11z"}}]})(e)}const BEe=lt(gp,e=>({resultImages:e.categories.result.images,userImages:e.categories.user.images})),zEe=()=>{const{resultImages:e,userImages:t}=ue(BEe);return n=>{const r=e.find(o=>o.uuid===n);if(r)return r;const i=t.find(o=>o.uuid===n);if(i)return i}},HEe=lt([hp,h4,Br],(e,t,n)=>{const{shouldShowDualDisplay:r,shouldPinParametersPanel:i}=e,{isLightboxOpen:o}=t;return{shouldShowDualDisplay:r,
|
|||
|
* @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.
|
|||
|
*/var PPe=function(t){var n={},r=S,i=Lh,o=Object.assign;function a(f){for(var p="https://reactjs.org/docs/error-decoder.html?invariant="+f,x=1;x<arguments.length;x++)p+="&args[]="+encodeURIComponent(arguments[x]);return"Minified React error #"+f+"; visit "+p+" 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"),h=Symbol.for("react.strict_mode"),v=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 v:return"Profiler";case h: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 p=f.render;return f=f.displayName,f||(f=p.displayName||p.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case k:return p=f.displayName||null,p!==null?p:I(f.type)||"Memo";case T:p=f._payload,f=f._init;try{return I(f(p))}catch{}}return null}function N(f){var p=f.type;switch(f.tag){case 24:return"Cache";case 9:return(p.displayName||"Context")+".Consumer";case 10:return(p._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return f=p.render,f=f.displayName||f.name||"",p.displayName||(f!==""?"ForwardRef("+f+")":"ForwardRef");case 7:return"Fragment";case 5:return p;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return I(p);case 8:return p===h?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p}return null}function U(f){var p=f,x=f;if(f.alternate)for(;p.return;)p=p.return;else{f=p;do p=f,p.flags&4098&&(x=p.return),f=p.return;while(f)}return p.tag===3?x:null}function B(f){if(U(f)!==f)throw Error(a(188))}function K(f){var p=f.alternate;if(!p){if(p=U(f),p===null)throw Error(a(188));return p!==f?null:f}for(var x=f,P=p;;){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),p;R=R.sibling}throw Error(a(188))}if(x.return!==P.return)x=M,P=R;else{for(var V=!1,se=M.child;se;){if(se===x){V=!0,x=M,P=R;break}if(se===P){V=!0,P=M,x=R;break}se=se.sibling}if(!V){for(se=R.child;se;){if(se===x){V=!0,x=R,P=M;break}if(se===P){V=!0,P=R,x=M;break}se=se.sibling}if(!V)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:p}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 p=z(f);if(p!==null)return p;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 p=$(f);if(p!==null)return p}f=f.sibling}return null}var H=Array.isArray,Y=t.getPublicInstance,Q=t.getRootHostContext,q=t.getChildHostContext,X=t.prepareForCommit,ee=t.resetAfterCommit,fe=t.createInstance,Ce=t.appendInitialChild,we=t.finalizeInitialChildren,xe=t.prepareUpdate,Me=t.shouldSetTextContent,Se=t.createTextInstance,Je=t.scheduleTimeout,Ge=t.cancelTimeout,Oe=t.noTimeout,vt=t.isPrimaryRenderer,Fe=t.supportsMutation,tt=t.supportsPersistence,bt=t.supports
|
|||
|
`+fu+f}var il=!1;function pu(f,p){if(!f||il)return"";il=!0;var x=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(p)if(p=function(){throw Error()},Object.defineProperty(p.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(p,[])}catch(He){var P=He}Reflect.construct(f,[],p)}else{try{p.call()}catch(He){P=He}f.call(p.prototype)}else{try{throw Error()}catch(He){P=He}f()}}catch(He){if(He&&P&&typeof He.stack=="string"){for(var M=He.stack.split(`
|
|||
|
`),R=P.stack.split(`
|
|||
|
`),V=M.length-1,se=R.length-1;1<=V&&0<=se&&M[V]!==R[se];)se--;for(;1<=V&&0<=se;V--,se--)if(M[V]!==R[se]){if(V!==1||se!==1)do if(V--,se--,0>se||M[V]!==R[se]){var he=`
|
|||
|
`+M[V].replace(" at new "," at ");return f.displayName&&he.includes("<anonymous>")&&(he=he.replace("<anonymous>",f.displayName)),he}while(1<=V&&0<=se);break}}}finally{il=!1,Error.prepareStackTrace=x}return(f=f?f.displayName||f.name:"")?hu(f):""}var Ep=Object.prototype.hasOwnProperty,Cc=[],ol=-1;function ra(f){return{current:f}}function Mn(f){0>ol||(f.current=Cc[ol],Cc[ol]=null,ol--)}function wn(f,p){ol++,Cc[ol]=f.current,f.current=p}var ia={},Hr=ra(ia),ui=ra(!1),oa=ia;function al(f,p){var x=f.type.contextTypes;if(!x)return ia;var P=f.stateNode;if(P&&P.__reactInternalMemoizedUnmaskedChildContext===p)return P.__reactInternalMemoizedMaskedChildContext;var M={},R;for(R in x)M[R]=p[R];return P&&(f=f.stateNode,f.__reactInternalMemoizedUnmaskedChildContext=p,f.__reactInternalMemoizedMaskedChildContext=M),M}function ci(f){return f=f.childContextTypes,f!=null}function Ss(){Mn(ui),Mn(Hr)}function xf(f,p,x){if(Hr.current!==ia)throw Error(a(168));wn(Hr,p),wn(ui,x)}function gu(f,p,x){var P=f.stateNode;if(p=p.childContextTypes,typeof P.getChildContext!="function")return x;P=P.getChildContext();for(var M in P)if(!(M in p))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 Sf(f,p,x){var P=f.stateNode;if(!P)throw Error(a(169));x?(f=gu(f,p,oa),P.__reactInternalMemoizedMergedChildContext=f,Mn(ui),Mn(Hr),wn(Hr,f)):Mn(ui),wn(ui,x)}var Ri=Math.clz32?Math.clz32:wf,Pp=Math.log,Tp=Math.LN2;function wf(f){return f>>>=0,f===0?32:31-(Pp(f)/Tp|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,p){var x=f.pendingLanes;if(x===0)return 0;var P=0,M=f.suspendedLanes,R=f.pingedLanes,V=x&268435455;if(V!==0){var se=V&~M;se!==0?P=ll(se):(R&=V,R!==0&&(P=ll(R)))}else V=x&~M,V!==0?P=ll(V):R!==0&&(P=ll(R));if(P===0)return 0;if(p!==0&&p!==P&&!(p&M)&&(M=P&-P,R=p&-p,M>=R||M===16&&(R&4194240)!==0))return p;if(P&4&&(P|=x&16),p=f.entangledLanes,p!==0)for(f=f.entanglements,p&=P;0<p;)x=31-Ri(p),M=1<<x,P|=f[x],p&=~M;return P}function $0(f,p){switch(f){case 1:case 2:case 4:return p+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 p+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 _c(f,p){for(var x=f.suspendedLanes,P=f.pingedLanes,M=f.expirationTimes,R=f.pendingLanes;0<R;){var V=31-Ri(R),se=1<<V,he=M[V];he===-1?(!(se&x)||se&P)&&(M[V]=$0(se,p)):he<=p&&(f.expiredLanes|=se),R&=~se}}function kc(f){return f=f.pendingLanes&-1073741825,f!==0?f:f&1073741824?1073741824:0}function Cf(){var f=sl;return sl<<=1,!(sl&4194240)&&(sl=64),f}function Ec(f){for(var p=[],x=0;31>x;x++)p.push(f);return p}function Na(f,p,x){f.pendingLanes|=p,p!==536870912&&(f.suspendedLanes=0,f.pingedLanes=0),f=f.eventTimes,p=31-Ri(p),f[p]=x}function _f(f,p){var x=f.pendingLanes&~p;f.pendingLanes=p,f.suspendedLanes=0,f.pingedLanes=0,f.expiredLanes&=p,f.mutableReadLanes&=p,f.entangledLanes&=p,p=f.entanglements;var P=f.eventTimes;for(f=f.expirationTimes;0<x;){var M=31-Ri(x),R=1<<M;p[M]=0,P[M]=-1,f[M]=-1,x&=~R}}function vu(f,p){var x=f.entangledLanes|=p;for(f=f.entanglements;x;){var P=31-Ri(x),M=1<<P;M&p|f[P]&p&&(f[P]|=p),x&=~M}}var Gt=0;function Mp(f){return f&=-f,1<f?4<f?f&268435455?16:536870912:4:1}var Pc=i.unstable_scheduleCallback,Tc=i.unstable_cancelCallback,
|
|||
|
Error generating stack: `+R.message+`
|
|||
|
`+R.stack}return{value:f,source:p,stack:M,digest:null}}function tv(f,p,x){return{value:f,source:null,stack:x??null,digest:p??null}}function qc(f,p){try{console.error(p.value)}catch(x){setTimeout(function(){throw x})}}var Wf=typeof WeakMap=="function"?WeakMap:Map;function nv(f,p,x){x=_s(-1,x),x.tag=3,x.payload={element:null};var P=p.value;return x.callback=function(){qf||(qf=!0,Kf=P),qc(f,p)},x}function F(f,p,x){x=_s(-1,x),x.tag=3;var P=f.type.getDerivedStateFromError;if(typeof P=="function"){var M=p.value;x.payload=function(){return P(M)},x.callback=function(){qc(f,p)}}var R=f.stateNode;return R!==null&&typeof R.componentDidCatch=="function"&&(x.callback=function(){qc(f,p),typeof P!="function"&&(bl===null?bl=new Set([this]):bl.add(this));var V=p.stack;this.componentDidCatch(p.value,{componentStack:V!==null?V:""})}),x}function wu(f,p,x){var P=f.pingCache;if(P===null){P=f.pingCache=new Wf;var M=new Set;P.set(p,M)}else M=P.get(p),M===void 0&&(M=new Set,P.set(p,M));M.has(x)||(M.add(x),f=rb.bind(null,f,p,x),p.then(f,f))}function Uf(f){do{var p;if((p=f.tag===13)&&(p=f.memoizedState,p=p!==null?p.dehydrated!==null:!0),p)return f;f=f.return}while(f!==null);return null}function fo(f,p,x,P,M){return f.mode&1?(f.flags|=65536,f.lanes=M,f):(f===p?f.flags|=65536:(f.flags|=128,x.flags|=131072,x.flags&=-52805,x.tag===1&&(x.alternate===null?x.tag=17:(p=_s(-1,1),p.tag=2,dl(x,p,1))),x.lanes|=1),f)}var Yt=s.ReactCurrentOwner,Ji=!1;function Ni(f,p,x,P){p.child=f===null?N2(p,null,x,P):Ic(p,f.child,x,P)}function V2(f,p,x,P,M){x=x.render;var R=p.ref;return Oc(p,M),P=K0(f,p,x,P,R,M),x=Nc(),f!==null&&!Ji?(p.updateQueue=f.updateQueue,p.flags&=-2053,f.lanes&=~M,Es(f,p,M)):(Bn&&x&&Ii(p),p.flags|=1,Ni(f,p,P,M),p.child)}function hl(f,p,x,P,M){if(f===null){var R=x.type;return typeof R=="function"&&!Cv(R)&&R.defaultProps===void 0&&x.compare===null&&x.defaultProps===void 0?(p.tag=15,p.type=R,G2(f,p,R,P,M)):(f=Qf(x.type,null,P,p,p.mode,M),f.ref=p.ref,f.return=p,p.child=f)}if(R=f.child,!(f.lanes&M)){var V=R.memoizedProps;if(x=x.compare,x=x!==null?x:yu,x(V,P)&&f.ref===p.ref)return Es(f,p,M)}return p.flags|=1,f=go(R,P),f.ref=p.ref,f.return=p,p.child=f}function G2(f,p,x,P,M){if(f!==null){var R=f.memoizedProps;if(yu(R,P)&&f.ref===p.ref)if(Ji=!1,p.pendingProps=P=R,(f.lanes&M)!==0)f.flags&131072&&(Ji=!0);else return p.lanes=f.lanes,Es(f,p,M)}return rv(f,p,x,P,M)}function q2(f,p,x){var P=p.pendingProps,M=P.children,R=f!==null?f.memoizedState:null;if(P.mode==="hidden")if(!(p.mode&1))p.memoizedState={baseLanes:0,cachePool:null,transitions:null},wn(ml,ho),ho|=x;else{if(!(x&1073741824))return f=R!==null?R.baseLanes|x:x,p.lanes=p.childLanes=1073741824,p.memoizedState={baseLanes:f,cachePool:null,transitions:null},p.updateQueue=null,wn(ml,ho),ho|=f,null;p.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,p.memoizedState=null):P=x,wn(ml,ho),ho|=P;return Ni(f,p,M,x),p.child}function K2(f,p){var x=p.ref;(f===null&&x!==null||f!==null&&f.ref!==x)&&(p.flags|=512,p.flags|=2097152)}function rv(f,p,x,P,M){var R=ci(x)?oa:Hr.current;return R=al(p,R),Oc(p,M),x=K0(f,p,x,P,R,M),P=Nc(),f!==null&&!Ji?(p.updateQueue=f.updateQueue,p.flags&=-2053,f.lanes&=~M,Es(f,p,M)):(Bn&&P&&Ii(p),p.flags|=1,Ni(f,p,x,M),p.child)}function Y2(f,p,x,P,M){if(ci(x)){var R=!0;ws(p)}else R=!1;if(Oc(p,M),p.stateNode===null)Ha(f,p),I2(p,x,P),U0(p,x,P,M),P=!0;else if(f===null){var V=p.stateNode,se=p.memoizedProps;V.props=se;var he=V.context,He=x.contextType;typeof He=="object"&&He!==null?He=co(He):(He=ci(x)?oa:Hr.current,He=al(p,He));var ct=x.getDerivedStateFromProps,Ot=typeof ct=="function"||typeof V.getSnapshotBeforeUpdate=="function";Ot||typeof V.UNSAFE_componentWillReceiveProps!="function"&&typeof V.componentWillReceiveProps!="function"||(se!==P||he!==He)&&D2(p,V,P,He),Cs=!1;var it=p.memoizedState;V.state=it,Np(p,P,V,M),he=p.memoizedState,se!==P||it!==he||ui.current||Cs?(typeof ct=="function"&&(Fp(p,x,ct,P),he=p.memoizedState),(se=Cs||If(p,x,se,P,it,he,He))?(Ot||typeof V.UNSAFE_componentWillMount!="function"&&typeof V.componentW
|
|||
|
`+(P.join(" > ")+`
|
|||
|
|
|||
|
No matching component was found for:
|
|||
|
`)+f.join(" > ")}return null},n.getPublicRootInstance=function(f){if(f=f.current,!f.child)return null;switch(f.child.tag){case 5:return Y(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:mg,findFiberByHostInstance:f.findFiberByHostInstance||Ev,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")f=!1;else{var p=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(p.isDisabled||!p.supportsFiber)f=!0;else{try{cn=p.inject(f),qt=p}catch{}f=!!p.checkDCE}}return f},n.isAlreadyRendering=function(){return!1},n.observeVisibleRects=function(f,p,x,P){if(!oe)throw Error(a(363));f=pv(f,p);var M=Dt(f,x,P).disconnect;return{disconnect:function(){M()}}},n.registerMutableSourceForHydration=function(f,p){var x=p._getVersion;x=x(p._source),f.mutableSourceEagerHydrationData==null?f.mutableSourceEagerHydrationData=[p,x]:f.mutableSourceEagerHydrationData.push(p,x)},n.runWithPriority=function(f,p){var x=Gt;try{return Gt=f,p()}finally{Gt=x}},n.shouldError=function(){return null},n.shouldSuspend=function(){return!1},n.updateContainer=function(f,p,x,P){var M=p.current,R=ki(),V=qr(M);return x=_v(x),p.context===null?p.context=x:p.pendingContext=x,p=_s(R,V),p.payload={element:f},P=P===void 0?null:P,P!==null&&(p.callback=P),f=dl(M,p,V),f!==null&&(jo(f,M,V,R),jp(f,M,V)),V},n};(function(e){e.exports=PPe})(EPe);const TPe=C7(s7);var F3={},MPe={get exports(){return F3},set exports(e){F3=e}},yp={};/**
|
|||
|
* @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.
|
|||
|
*/yp.ConcurrentRoot=1;yp.ContinuousEventPriority=4;yp.DefaultEventPriority=16;yp.DiscreteEventPriority=1;yp.IdleEventPriority=536870912;yp.LegacyRoot=0;(function(e){e.exports=yp})(MPe);const vD={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let yD=!1,bD=!1;const hP=".react-konva-event",LPe=`ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled.
|
|||
|
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
|
|||
|
`,APe=`ReactKonva: You are using "zIndex" attribute for a Konva node.
|
|||
|
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
|
|||
|
`,OPe={};function _4(e,t,n=OPe){if(!yD&&"zIndex"in t&&(console.warn(APe),yD=!0),!bD&&t.draggable){var r=t.x!==void 0||t.y!==void 0,i=t.onDragEnd||t.onDragMove;r&&!i&&(console.warn(LPe),bD=!0)}for(var o in n)if(!vD[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,h={},v=!1;const y={};for(var o in t)if(!vD[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))&&(v=!0,h[o]=t[o])}v&&(e.setAttrs(h),gf(e));for(var l in y)e.on(l+hP,y[l])}function gf(e){if(!ft.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const cq={},RPe={};Jh.Node.prototype._applyProps=_4;function IPe(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),gf(e)}function DPe(e,t,n){let r=Jh[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=Jh.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 _4(l,o),l}function jPe(e,t,n){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function NPe(e,t,n){return!1}function $Pe(e){return e}function FPe(){return null}function BPe(){return null}function zPe(e,t,n,r){return RPe}function HPe(){}function WPe(e){}function UPe(e,t){return!1}function VPe(){return cq}function GPe(){return cq}const qPe=setTimeout,KPe=clearTimeout,YPe=-1;function XPe(e,t){return!1}const ZPe=!1,QPe=!0,JPe=!0;function eTe(e,t){t.parent===e?t.moveToTop():e.add(t),gf(e)}function tTe(e,t){t.parent===e?t.moveToTop():e.add(t),gf(e)}function dq(e,t,n){t._remove(),e.add(t),t.setZIndex(n.getZIndex()),gf(e)}function nTe(e,t,n){dq(e,t,n)}function rTe(e,t){t.destroy(),t.off(hP),gf(e)}function iTe(e,t){t.destroy(),t.off(hP),gf(e)}function oTe(e,t,n){console.error(`Text components are not yet supported in ReactKonva. You text is: "${n}"`)}function aTe(e,t,n){}function sTe(e,t,n,r,i){_4(e,i,r)}function lTe(e){e.hide(),gf(e)}function uTe(e){}function cTe(e,t){(t.visible==null||t.visible)&&e.show()}function dTe(e,t){}function fTe(e){}function hTe(){}const pTe=()=>F3.DefaultEventPriority,gTe=Object.freeze(Object.defineProperty({__proto__:null,appendChild:eTe,appendChildToContainer:tTe,appendInitialChild:IPe,cancelTimeout:KPe,clearContainer:fTe,commitMount:aTe,commitTextUpdate:oTe,commitUpdate:sTe,createInstance:DPe,createTextInstance:jPe,detachDeletedInstance:hTe,finalizeInitialChildren:NPe,getChildHostContext:GPe,getCurrentEventPriority:pTe,getPublicInstance:$Pe,getRootHostContext:VPe,hideInstance:lTe,hideTextInstance:uTe,idlePriority:Lh.unstable_IdlePriority,insertBefore:dq,insertInContainerBefore:nTe,isPrimaryRenderer:ZPe,noTimeout:YPe,now:Lh.unstable_now,prepareForCommit:FPe,preparePortalMount:BPe,prepareUpdate:zPe,removeChild:rTe,removeChildFromContainer:iTe,resetAfterCommit:HPe,resetTextContent:WPe,run:Lh.unstable_runWithPriority,scheduleTimeout:qPe,shouldDeprioritizeSubtree:UPe,shouldSetTextContent:XPe,supportsMutation:JPe,unhideInstance:cTe,unhideTextInstance:dTe,warnsIfNotActing:QPe},Symbol.toStringTag,{value:"Module"}));var mTe=Object.defineProperty,vTe=Object.defineProperties,yTe=Object.getOwnPropertyDescriptors,xD=Object.getOwnPropertySymbols,bTe=Object.prototype.hasOwnProperty,xTe=Object.prototype.propertyIsEnumerable,SD=(e,t,n)=>t in e?mTe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wD=(e,t)=>{for(var n in t||(t={}))bTe.call(t,n)&&SD(e,n,t[n]);if(xD)for(var n of xD(t))xTe.call(t,n)
|
|||
|
<!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>
|
|||
|
</svg>`.replaceAll("black",e),ZTe=e=>{const{...t}=e,{maskColorString:n,stageCoordinates:r,stageDimensions:i,stageScale:o}=ue(XTe),[a,s]=S.useState(null),[l,u]=S.useState(0),d=S.useRef(null),h=S.useCallback(()=>{u(l+1),setTimeout(h,500)},[l]);return S.useEffect(()=>{if(a)return;const v=new Image;v.onload=()=>{s(v)},v.src=CD(n)},[a,n]),S.useEffect(()=>{a&&(a.src=CD(n))},[a,n]),S.useEffect(()=>{const v=setInterval(()=>u(y=>(y+1)%5),50);return()=>clearInterval(v)},[]),!a||!Pe.isNumber(r.x)||!Pe.isNumber(r.y)||!Pe.isNumber(o)||!Pe.isNumber(i.width)||!Pe.isNumber(i.height)?null:g.jsx(dc,{ref:d,offsetX:r.x/o,offsetY:r.y/o,height:i.height/o,width:i.width/o,fillPatternImage:a,fillPatternOffsetY:Pe.isNumber(l)?l:0,fillPatternRepeat:"repeat",fillPatternScale:{x:1/o,y:1/o},listening:!0,globalCompositeOperation:"source-in",...t})},QTe=lt([on],e=>({objects:e.layerState.objects}),{memoizeOptions:{resultEqualityCheck:Pe.isEqual}}),JTe=e=>{const{...t}=e,{objects:n}=ue(QTe);return g.jsx(cc,{listening:!1,...t,children:n.filter(gE).map((r,i)=>g.jsx(B3,{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 uh=S,eMe=function(t,n,r){const i=uh.useRef("loading"),o=uh.useRef(),[a,s]=uh.useState(0),l=uh.useRef(),u=uh.useRef(),d=uh.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),uh.useLayoutEffect(function(){if(!t)return;var h=document.createElement("img");function v(){i.current="loaded",o.current=h,s(Math.random())}function y(){i.current="failed",o.current=void 0,s(Math.random())}return h.addEventListener("load",v),h.addEventListener("error",y),n&&(h.crossOrigin=n),r&&(h.referrerpolicy=r),h.src=t,function(){h.removeEventListener("load",v),h.removeEventListener("error",y)}},[t,n,r]),[o.current,i.current]};const vq=e=>{const{url:t,x:n,y:r}=e,[i]=eMe(t);return g.jsx(gq,{x:n,y:r,image:i,listening:!1})},tMe=lt([on],e=>{const{layerState:{objects:t}}=e;return{objects:t}},{memoizeOptions:{resultEqualityCheck:Pe.isEqual}}),nMe=()=>{const{objects:e}=ue(tMe);return e?g.jsx(cc,{name:"outpainting-objects",listening:!1,children:e.map((t,n)=>{if(S3(t))return g.jsx(vq,{x:t.x,y:t.y,url:t.image.url},n);if(USe(t)){const r=g.jsx(B3,{points:t.points,stroke:t.color?Hh(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(cc,{clipX:t.clip.x,clipY:t.clip.y,clipWidth:t.clip.width,clipHeight:t.clip.height,children:r},n):r}else{if(VSe(t))return g.jsx(dc,{x:t.x,y:t.y,width:t.width,height:t.height,fill:Hh(t.color)},n);if(GSe(t))return g.jsx(dc,{x:t.x,y:t.y,width:t.width,height:t.height,fill:"rgb(255, 255, 255)",globalCompositeOperation:"destination-out"},n)}})}):null},rMe=lt([on],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:Pe.isEqual}}),iMe=e=>{const{...t}=e,{currentStagingAreaImage:n,shouldShowStagingImage:r,shouldShowStagingOutline:i,x:o,y:a,width:s,height:l}=ue(rMe);return g.jsxs(cc,{...t,children:[r&&n&&g.jsx(vq,{url:n.image.url,x:o,y:a}),i&&g.jsxs(cc,{children:[g.jsx(dc,{x:o,y:a,width:s,height:l,strokeWidth:1,stroke:"white",strokeScaleEnabled:!1}),g.jsx(dc,{x:o,y:a,width:s,height:l,dash:[4,4],strokeWidth:1,stroke:"black",strokeScaleEnabled:!1})]})]})},oMe=lt([on],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 ZLe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function QLe(e){if(Array.isArray(e))return f7(e)}function LD(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 AD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LD(Object(n),!0).forEach(function(r){Aq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Aq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hy(e,t){return tAe(e)||eAe(e,t)||Oq(e,t)||JLe()}function JLe(){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 Oq(e,t){if(e){if(typeof e=="string")return f7(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 f7(e,t)}}function f7(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 eAe(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 tAe(e){if(Array.isArray(e))return e}var nAe="file-invalid-type",rAe="file-too-large",iAe="file-too-small",oAe="too-many-files",aAe=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:nAe,message:"File type must be ".concat(n)}},OD=function(t){return{code:rAe,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},RD=function(t){return{code:iAe,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},sAe={code:oAe,message:"Too many files"};function Rq(e,t){var n=e.type==="application/x-moz-file"||YLe(e,t);return[n,n?null:aAe(t)]}function Iq(e,t,n){if(Ch(e.size))if(Ch(t)&&Ch(n)){if(e.size>n)return[!1,OD(n)];if(e.size<t)return[!1,RD(t)]}else{if(Ch(t)&&e.size<t)return[!1,RD(t)];if(Ch(n)&&e.size>n)return[!1,OD(n)]}return[!0,null]}function Ch(e){return e!=null}function lAe(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=Rq(l,n),d=Hy(u,1),h=d[0],v=Iq(l,r,i),y=Hy(v,1),b=y[0],w=s?s(l):null;return h&&b&&!w})}function W3(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Ex(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 ID(e){e.preventDefault()}function uAe(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function cAe(e){return e.indexOf("Edge/")!==-1}function dAe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return uAe(e)||cAe(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!W3(r)&&s&&s.apply(void 0,[r].concat(o)),W3(r)})}}function fAe(){return"showOpenFilePicker"in window}function hAe(e){if(Ch(e)){var t=Object.entries(e).filter(function(n){var r=Hy(n,2),i=r[0],o=r[1],a=!0;return Dq(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(jq))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,r){var i=Hy(r,2),o=i[0],a=i[1];return AD(AD({},n),{},Aq({},o,a))},{});return[{description:"Files",accept:t}]}return e}function pAe(e){if(Ch(e))return Object.entries(e).reduce(function(t,n){var r=Hy(n,2),i=r[0],o=r[1];return[].concat(MD(t),[i],MD(o))},[]).filter(function(t){return Dq(t)||jq(t)}).join(",")}function gAe(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function mAe(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function Dq(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function jq(e){return/^.*\.[\w]+$/.test(e)}var vAe=["children"],yAe=["open"],bAe=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onD
|
|||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CAe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _Ae(e){if(Array.isArray(e))return h7(e)}function u6(e,t){return PAe(e)||EAe(e,t)||Nq(e,t)||kAe()}function kAe(){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 Nq(e,t){if(e){if(typeof e=="string")return h7(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 h7(e,t)}}function h7(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 EAe(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 PAe(e){if(Array.isArray(e))return e}function DD(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?DD(Object(n),!0).forEach(function(r){p7(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function p7(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U3(e,t){if(e==null)return{};var n=TAe(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 TAe(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 yP=S.forwardRef(function(e,t){var n=e.children,r=U3(e,vAe),i=Fq(r),o=i.open,a=U3(i,yAe);return S.useImperativeHandle(t,function(){return{open:o}},[o]),Ye.createElement(S.Fragment,null,n(_r(_r({},a),{},{open:o})))});yP.displayName="Dropzone";var $q={disabled:!1,getFilesFromEvent:BLe,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};yP.defaultProps=$q;yP.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 g7={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Fq(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=_r(_r({},$q),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,h=t.onDragOver,v=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,U=t.validator,B=S.useMemo(function(){return pAe(n)},[n]),K=S.useMemo(function(){return hAe(n)},[n]),ne=S.useMemo(function(){return typeof E=="function"?E:jD},[E]),z=S.useMemo(function(){return typeof w=="function"?w:jD},[w]),$=S.useRef(null),H=S.useRef(null),Y=S.useReducer(MAe,g7),Q=u6(Y,2),q=Q[0],X=Q[1],ee=q.isFocused,fe=q.isFileDialogActive,Ce=S.useRef(typeof window<"u"&&window.isSecureContext&&_&&fAe()),we=function(){!Ce.current&&fe&&setTimeout(function(){if(H.current){var je=H.current.files;je.length||(X({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(kI({imageFile:T}))},[n]),h=S.useCallback((T,L)=>{L.forEach(O=>{u(O)}),T.forEach(O=>{d(O)})},[d,u]),{getRootProps:v,getInputProps:y,isDragAccept:b,isDragReject:w,isDragActive:E,open:_}=Fq({accept:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg",".png"]},noClick:!0,onDrop:h,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 U of O)U.kind==="file"&&["image/png","image/jpg"].includes(U.type)&&D.push(U);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(kI({imageFile:I}))};return document.addEventListener("paste",T),()=>{document.removeEventListener("paste",T)}},[o,n,i,r]);const k=["img2img","unifiedCanvas"].includes(r)?` to ${Za[r].tooltip}`:"";return g.jsx(IE.Provider,{value:_,children:g.jsxs("div",{...v({style:{}}),onKeyDown:T=>{T.key},children:[g.jsx("input",{...y()}),t,E&&a&&g.jsx(LAe,{isDragAccept:b,isDragReject:w,overlaySecondaryText:k,setIsHandlingUpload:s})]})})},OAe=lt(hr,e=>e.log,{memoizeOptions:{resultEqualityCheck:(e,t)=>e.length===t.length}}),RAe=lt(hr,e=>({shouldShowLogViewer:e.shouldShowLogViewer,hasError:e.hasError,wasErrorSeen:e.wasErrorSeen}),{memoizeOptions:{resultEqualityCheck:Pe.isEqual}}),IAe=()=>{const e=Le(),t=ue(OAe),{shouldShowLogViewer:n,hasError:r,wasErrorSeen:i}=ue(RAe),[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(MU()),e(zC(!n))};Ze("`",()=>{e(zC(!n))},[n]),Ze("esc",()=>{e(zC(!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(oG,{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,h)=>{const{timestamp:v,message:y,level:b}=d;return g.jsxs("div",{className:`console-entry console-${b}-color`,children:[g.jsxs("p",{className:"console-timestamp",children:[v,":"]}),g.jsx("p",{className:"console-message",children:y})]},h)})})}),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(ske,{}),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(wke,{}):g.jsx(KV,{}),onClick:l})})]})},DAe=lt(hr,e=>({isProcessing:e.isProcessing,currentStep:e.currentStep,totalSteps:e.totalSteps,currentStatusHasSteps:e.currentStatusHasSteps}),{memoizeOptions:{resultEqualityCheck:Pe.isEqual}}),jAe=()=>{const{isProcessing:e,currentStep:t,totalSteps:n,currentStatusHasSteps:r}=ue(DAe),i=t?Math.round(t*100/n):0;return g.jsx(zH,{value:i,isIndeterminate:e&&!r,className:"progress-bar"})};function NAe(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 $Ae({children:e}){const{isOpen:t,onOpen:n,onClose:r}=Xd(),{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.
|