mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
639 lines
1.5 MiB
JavaScript
639 lines
1.5 MiB
JavaScript
|
var Aee=Object.defineProperty;var Oee=(e,t,n)=>t in e?Aee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var sn=(e,t,n)=>(Oee(e,typeof t!="symbol"?t+"":t,n),n);function kj(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 ko=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function __(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var v={},Mee={get exports(){return v},set exports(e){v=e}},wS={},w={},Ree={get exports(){return w},set exports(e){w=e}},tn={};/**
|
|||
|
* @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 vy=Symbol.for("react.element"),Iee=Symbol.for("react.portal"),Dee=Symbol.for("react.fragment"),Nee=Symbol.for("react.strict_mode"),jee=Symbol.for("react.profiler"),Bee=Symbol.for("react.provider"),Fee=Symbol.for("react.context"),$ee=Symbol.for("react.forward_ref"),zee=Symbol.for("react.suspense"),Hee=Symbol.for("react.memo"),Vee=Symbol.for("react.lazy"),wL=Symbol.iterator;function Uee(e){return e===null||typeof e!="object"?null:(e=wL&&e[wL]||e["@@iterator"],typeof e=="function"?e:null)}var Ej={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Pj=Object.assign,Tj={};function v0(e,t,n){this.props=e,this.context=t,this.refs=Tj,this.updater=n||Ej}v0.prototype.isReactComponent={};v0.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")};v0.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Lj(){}Lj.prototype=v0.prototype;function k_(e,t,n){this.props=e,this.context=t,this.refs=Tj,this.updater=n||Ej}var E_=k_.prototype=new Lj;E_.constructor=k_;Pj(E_,v0.prototype);E_.isPureReactComponent=!0;var CL=Array.isArray,Aj=Object.prototype.hasOwnProperty,P_={current:null},Oj={key:!0,ref:!0,__self:!0,__source:!0};function Mj(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)Aj.call(t,r)&&!Oj.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:vy,type:e,key:o,ref:a,props:i,_owner:P_.current}}function Wee(e,t){return{$$typeof:vy,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function T_(e){return typeof e=="object"&&e!==null&&e.$$typeof===vy}function Gee(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var _L=/\/+/g;function Qw(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Gee(""+e.key):t.toString(36)}function o4(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case vy:case Iee:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+Qw(a,0):r,CL(i)?(n="",e!=null&&(n=e.replace(_L,"$&/")+"/"),o4(i,t,n,"",function(u){return u})):i!=null&&(T_(i)&&(i=Wee(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(_L,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",CL(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+Qw(o,s);a+=o4(o,t,n,l,i)}else if(l=Uee(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+Qw(o,s++),a+=o4(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 Hb(e,t,n){if(e==null)return e;var r=[],i=0;return o4(e,r,"","",function(o){return t.call(n,o,i++)}),r}function qee(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 Ao={current:null},a4={transition:null},Yee={ReactCurrentDispatcher:Ao,ReactCurrentBatchConfig:a4,ReactCurrentOwner:P_};tn.Children={map:Hb,forEach:function(e,t,n){Hb(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Hb(e,function(){t++}),t},toArray:function(e){return Hb(e,function(t){return t})||[]},only:function(e){if(!T_(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};tn.Component=v0;tn.Fragment=D
|
|||
|
* @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 Kee=w,Xee=Symbol.for("react.element"),Zee=Symbol.for("react.fragment"),Qee=Object.prototype.hasOwnProperty,Jee=Kee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ete={key:!0,ref:!0,__self:!0,__source:!0};function Rj(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)Qee.call(t,r)&&!ete.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:Xee,type:e,key:o,ref:a,props:i,_owner:Jee.current}}wS.Fragment=Zee;wS.jsx=Rj;wS.jsxs=Rj;(function(e){e.exports=wS})(Mee);var Ws=Boolean(globalThis==null?void 0:globalThis.document)?w.useLayoutEffect:w.useEffect,L_=w.createContext({});L_.displayName="ColorModeContext";function yy(){const e=w.useContext(L_);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var Vb={light:"chakra-ui-light",dark:"chakra-ui-dark"};function tte(e={}){const{preventTransition:t=!0}=e,n={setDataset:r=>{const i=t?n.preventTransition():void 0;document.documentElement.dataset.theme=r,document.documentElement.style.colorScheme=r,i==null||i()},setClassName(r){document.body.classList.add(r?Vb.dark:Vb.light),document.body.classList.remove(r?Vb.light:Vb.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(r){return n.query().matches??r==="dark"?"dark":"light"},addListener(r){const i=n.query(),o=a=>{r(a.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(o):i.addEventListener("change",o),()=>{typeof i.removeListener=="function"?i.removeListener(o):i.removeEventListener("change",o)}},preventTransition(){const r=document.createElement("style");return r.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(r),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(r)})})}}};return n}var nte="chakra-ui-color-mode";function rte(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var ite=rte(nte),kL=()=>{};function EL(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function Ij(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:i,disableTransitionOnChange:o}={},colorModeManager:a=ite}=e,s=i==="dark"?"dark":"light",[l,u]=w.useState(()=>EL(a,s)),[d,h]=w.useState(()=>EL(a)),{getSystemTheme:m,setClassName:y,setDataset:b,addListener:x}=w.useMemo(()=>tte({preventTransition:o}),[o]),_=i==="system"&&!l?d:l,k=w.useCallback(A=>{const M=A==="system"?m():A;u(M),y(M==="dark"),b(M),a.set(M)},[a,m,y,b]);Ws(()=>{i==="system"&&h(m())},[]),w.useEffect(()=>{const A=a.get();if(A){k(A);return}if(i==="system"){k("system");return}k(s)},[a,s,i,k]);const E=w.useCallback(()=>{k(_==="dark"?"light":"dark")},[_,k]);w.useEffect(()=>{if(r)return x(k)},[r,x,k]);const P=w.useMemo(()=>({colorMode:t??_,toggleColorMode:t?kL:E,setColorMode:t?kL:k,forced:t!==void 0}),[_,E,k,t]);return N.createElement(L_.Provider,{value:P},n)}Ij.displayName="ColorModeProvider";var q4={},ote={get exports(){return q4},set exports(e){q4=e}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=800,o=16,a=9007199254740991,s="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",d="[object Boolean]",h="[object Date]",m="[object Error]",y="[object Function]",b="[object GeneratorFunction]",x="[object Map]",_="[object Number]",k="[object Null]",E="[object Object]",P="[object Proxy]",A="[object RegExp]",M="[object Set]",I="[object String]",D="[object Undefined]",j="[object WeakMap]",z="[object ArrayBuffer]",H="[object DataView]",K="[object Float32Array]",te="[object Float64Array]",G="[object Int8Array]",F="[object Int16Array]",U="[object Int32Array]",X="[object Uint8Array]",Z="[object Uint8ClampedArray]",W="[
|
|||
|
* 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 Mi=typeof Symbol=="function"&&Symbol.for,D_=Mi?Symbol.for("react.element"):60103,N_=Mi?Symbol.for("react.portal"):60106,TS=Mi?Symbol.for("react.fragment"):60107,LS=Mi?Symbol.for("react.strict_mode"):60108,AS=Mi?Symbol.for("react.profiler"):60114,OS=Mi?Symbol.for("react.provider"):60109,MS=Mi?Symbol.for("react.context"):60110,j_=Mi?Symbol.for("react.async_mode"):60111,RS=Mi?Symbol.for("react.concurrent_mode"):60111,IS=Mi?Symbol.for("react.forward_ref"):60112,DS=Mi?Symbol.for("react.suspense"):60113,Xne=Mi?Symbol.for("react.suspense_list"):60120,NS=Mi?Symbol.for("react.memo"):60115,jS=Mi?Symbol.for("react.lazy"):60116,Zne=Mi?Symbol.for("react.block"):60121,Qne=Mi?Symbol.for("react.fundamental"):60117,Jne=Mi?Symbol.for("react.responder"):60118,ere=Mi?Symbol.for("react.scope"):60119;function Ia(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case D_:switch(e=e.type,e){case j_:case RS:case TS:case AS:case LS:case DS:return e;default:switch(e=e&&e.$$typeof,e){case MS:case IS:case jS:case NS:case OS:return e;default:return t}}case N_:return t}}}function eB(e){return Ia(e)===RS}Fn.AsyncMode=j_;Fn.ConcurrentMode=RS;Fn.ContextConsumer=MS;Fn.ContextProvider=OS;Fn.Element=D_;Fn.ForwardRef=IS;Fn.Fragment=TS;Fn.Lazy=jS;Fn.Memo=NS;Fn.Portal=N_;Fn.Profiler=AS;Fn.StrictMode=LS;Fn.Suspense=DS;Fn.isAsyncMode=function(e){return eB(e)||Ia(e)===j_};Fn.isConcurrentMode=eB;Fn.isContextConsumer=function(e){return Ia(e)===MS};Fn.isContextProvider=function(e){return Ia(e)===OS};Fn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===D_};Fn.isForwardRef=function(e){return Ia(e)===IS};Fn.isFragment=function(e){return Ia(e)===TS};Fn.isLazy=function(e){return Ia(e)===jS};Fn.isMemo=function(e){return Ia(e)===NS};Fn.isPortal=function(e){return Ia(e)===N_};Fn.isProfiler=function(e){return Ia(e)===AS};Fn.isStrictMode=function(e){return Ia(e)===LS};Fn.isSuspense=function(e){return Ia(e)===DS};Fn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===TS||e===RS||e===AS||e===LS||e===DS||e===Xne||typeof e=="object"&&e!==null&&(e.$$typeof===jS||e.$$typeof===NS||e.$$typeof===OS||e.$$typeof===MS||e.$$typeof===IS||e.$$typeof===Qne||e.$$typeof===Jne||e.$$typeof===ere||e.$$typeof===Zne)};Fn.typeOf=Ia;(function(e){e.exports=Fn})(Kne);var tB=p7,tre={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},nre={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},nB={};nB[tB.ForwardRef]=tre;nB[tB.Memo]=nre;var rre=!0;function ire(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var rB=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||rre===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},iB=function(t,n,r){rB(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 ore(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 are={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
|
|||
|
45deg,
|
|||
|
${t} 25%,
|
|||
|
transparent 25%,
|
|||
|
transparent 50%,
|
|||
|
${t} 50%,
|
|||
|
${t} 75%,
|
|||
|
transparent 75%,
|
|||
|
transparent
|
|||
|
)`,backgroundSize:`${e} ${e}`}}function Oie(e){const t=vB().toHexString();return!e||Tie(e)?t:e.string&&e.colors?Rie(e.string,e.colors):e.string&&!e.colors?Mie(e.string):e.colors&&!e.string?Iie(e.colors):t}function Mie(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 Rie(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 Iie(e){return e[Math.floor(Math.random()*e.length)]}function Et(e,t){return n=>n.colorMode==="dark"?t:e}function $_(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function Die(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function xB(e){return Die(e)&&e.reference?e.reference:String(e)}var $S=(e,...t)=>t.map(xB).join(` ${e} `).replace(/calc/g,""),ZL=(...e)=>`calc(${$S("+",...e)})`,QL=(...e)=>`calc(${$S("-",...e)})`,b7=(...e)=>`calc(${$S("*",...e)})`,JL=(...e)=>`calc(${$S("/",...e)})`,eA=e=>{const t=xB(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:b7(t,-1)},Uu=Object.assign(e=>({add:(...t)=>Uu(ZL(e,...t)),subtract:(...t)=>Uu(QL(e,...t)),multiply:(...t)=>Uu(b7(e,...t)),divide:(...t)=>Uu(JL(e,...t)),negate:()=>Uu(eA(e)),toString:()=>e.toString()}),{add:ZL,subtract:QL,multiply:b7,divide:JL,negate:eA});function Nie(e){return!Number.isInteger(parseFloat(e.toString()))}function jie(e,t="-"){return e.replace(/\s+/g,t)}function wB(e){const t=jie(e.toString());return t.includes("\\.")?e:Nie(e)?t.replace(".","\\."):e}function Bie(e,t=""){return[t,wB(e)].filter(Boolean).join("-")}function Fie(e,t){return`var(${wB(e)}${t?`, ${t}`:""})`}function $ie(e,t=""){return`--${Bie(e,t)}`}function Si(e,t){const n=$ie(e,t==null?void 0:t.prefix);return{variable:n,reference:Fie(n,zie(t==null?void 0:t.fallback))}}function zie(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{definePartsStyle:Hie,defineMultiStyleConfig:Vie}=pr(Fre.keys),Uie={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},Wie={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},Gie={pt:"2",px:"4",pb:"5"},qie={fontSize:"1.25em"},Yie=Hie({container:Uie,button:Wie,panel:Gie,icon:qie}),Kie=Vie({baseStyle:Yie}),{definePartsStyle:xy,defineMultiStyleConfig:Xie}=pr($re.keys),Ta=Vn("alert-fg"),Ju=Vn("alert-bg"),Zie=xy({container:{bg:Ju.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Ta.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Ta.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function z_(e){const{theme:t,colorScheme:n}=e,r=qm(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}var Qie=xy(e=>{const{colorScheme:t}=e,n=z_(e);return{container:{[Ta.variable]:`colors.${t}.500`,[Ju.variable]:n.light,_dark:{[Ta.variable]:`colors.${t}.200`,[Ju.variable]:n.dark}}}}),Jie=xy(e=>{const{colorScheme:t}=e,n=z_(e);return{container:{[Ta.variable]:`colors.${t}.500`,[Ju.variable]:n.light,_dark:{[Ta.variable]:`colors.${t}.200`,[Ju.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Ta.reference}}}),eoe=xy(e=>{const{colorScheme:t}=e,n=z_(e);return{container:{[Ta.variable]:`colors.${t}.500`,[Ju.variable]:n.light,_dark:{[Ta.variable]:`colors.${t}.200`,[Ju.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Ta.reference}}}),toe=xy(e=>{const{colorScheme:t}=e;return{container:{[Ta.variable]:"colors.white",[Ju.variable]:`colors.${t}.500`,_dark:{[Ta.variable]:"colors.gray.900",[Ju.variable]:`colors.${t}.200`},color:Ta.reference}}}),noe={subtle:Qie,"left-accent":Jie,"top-accent":eoe,solid:toe},roe=Xie({baseStyle:Zie,variants:noe,defaultProps:{variant:"subtle",colorScheme:"blue"}}),CB={px:"1px",.
|
|||
|
to right,
|
|||
|
transparent 0%,
|
|||
|
${Eo(n,a)} 50%,
|
|||
|
transparent 100%
|
|||
|
)`;return{...!r&&i&&o,...r?{bgImage:s}:{bgColor:a}}},Qse={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},Jse=e=>({bg:Et("gray.100","whiteAlpha.300")(e)}),ele=e=>({transitionProperty:"common",transitionDuration:"slow",...Zse(e)}),tle=Cv(e=>({label:Qse,filledTrack:ele(e),track:Jse(e)})),nle={xs:Cv({track:{h:"1"}}),sm:Cv({track:{h:"2"}}),md:Cv({track:{h:"3"}}),lg:Cv({track:{h:"4"}})},rle=Xse({sizes:nle,baseStyle:tle,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:ile,definePartsStyle:f4}=pr(tie.keys),ole=e=>{var t;const n=(t=To(Q4.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"}}}},ale=f4(e=>{var t,n,r,i;return{label:(n=(t=Q4).baseStyle)==null?void 0:n.call(t,e).label,container:(i=(r=Q4).baseStyle)==null?void 0:i.call(r,e).container,control:ole(e)}}),sle={md:f4({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:f4({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:f4({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},lle=ile({baseStyle:ale,sizes:sle,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:ule,definePartsStyle:cle}=pr(nie.keys),Xb=Vn("select-bg"),oA,dle={...(oA=kn.baseStyle)==null?void 0:oA.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Xb.reference,[Xb.variable]:"colors.white",_dark:{[Xb.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Xb.reference}},fle={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},hle=cle({field:dle,icon:fle}),Zb={paddingInlineEnd:"8"},aA,sA,lA,uA,cA,dA,fA,hA,ple={lg:{...(aA=kn.sizes)==null?void 0:aA.lg,field:{...(sA=kn.sizes)==null?void 0:sA.lg.field,...Zb}},md:{...(lA=kn.sizes)==null?void 0:lA.md,field:{...(uA=kn.sizes)==null?void 0:uA.md.field,...Zb}},sm:{...(cA=kn.sizes)==null?void 0:cA.sm,field:{...(dA=kn.sizes)==null?void 0:dA.sm.field,...Zb}},xs:{...(fA=kn.sizes)==null?void 0:fA.xs,field:{...(hA=kn.sizes)==null?void 0:hA.xs.field,...Zb},icon:{insetEnd:"1"}}},gle=ule({baseStyle:hle,sizes:ple,variants:kn.variants,defaultProps:kn.defaultProps}),f6=Vn("skeleton-start-color"),h6=Vn("skeleton-end-color"),mle={[f6.variable]:"colors.gray.100",[h6.variable]:"colors.gray.400",_dark:{[f6.variable]:"colors.gray.800",[h6.variable]:"colors.gray.600"},background:f6.reference,borderColor:h6.reference,opacity:.7,borderRadius:"sm"},vle={baseStyle:mle},p6=Vn("skip-link-bg"),yle={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[p6.variable]:"colors.white",_dark:{[p6.variable]:"colors.gray.700"},bg:p6.reference}},ble={baseStyle:yle},{defineMultiStyleConfig:Sle,definePartsStyle:zS}=pr(rie.keys),P2=Vn("slider-thumb-size"),T2=Vn("slider-track-size"),bd=Vn("slider-bg"),xle=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...$_({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},wle=e=>({...$_({orientation:e.orientation,horizontal:{h:T2.reference},vertical:{w:T2.reference}}),overflow:"hidden",borderRadius:"sm",[bd.variable]:"colors.gray.200",_dark:{[bd.variable]:"colors.whiteAlpha.200"},_disabled:{[bd.variable]:"colors.gray.300",_dark:{[bd.variable]:"colors.whiteAlpha.300"}},bg:bd.reference}),Cle=e=>{const{orientation:t}=e;return{...$_({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:P2.reference,h:P2.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},
|
|||
|
[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]),w.createElement(dge,{isPresent:t,childRef:r,sizeRef:i},w.cloneElement(e,{ref:r}))}const T6=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const s=GS(hge),l=w.useId(),u=w.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 w.useMemo(()=>{s.forEach((d,h)=>s.set(h,!1))},[n]),w.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=w.createElement(fge,{isPresent:n},e)),w.createElement(S0.Provider,{value:u},e)};function hge(){return new Map}const Vg=e=>e.key||"";function pge(e,t){e.forEach(n=>{const r=Vg(n);t.set(r,n)})}function gge(e){const t=[];return w.Children.forEach(e,n=>{w.isValidElement(n)&&t.push(n)}),t}const sf=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait",RF(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=cge();const l=w.useContext(W_).forceRender;l&&(s=l);const u=s$(),d=gge(e);let h=d;const m=new Set,y=w.useRef(h),b=w.useRef(new Map).current,x=w.useRef(!0);if(t5(()=>{x.current=!1,pge(d,b),y.current=h}),ek(()=>{x.current=!0,b.clear(),m.clear()}),x.current)return w.createElement(w.Fragment,null,h.map(P=>w.createElement(T6,{key:Vg(P),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:a},P)));h=[...h];const _=y.current.map(Vg),k=d.map(Vg),E=_.length;for(let P=0;P<E;P++){const A=_[P];k.indexOf(A)===-1&&m.add(A)}return a==="wait"&&m.size&&(h=[]),m.forEach(P=>{if(k.indexOf(P)!==-1)return;const A=b.get(P);if(!A)return;const M=_.indexOf(P),I=()=>{b.delete(P),m.delete(P);const D=y.current.findIndex(j=>j.key===P);if(y.current.splice(D,1),!m.size){if(y.current=d,u.current===!1)return;s(),r&&r()}};h.splice(M,0,w.createElement(T6,{key:Vg(A),isPresent:!1,onExitComplete:I,custom:t,presenceAffectsLayout:o,mode:a},A))}),h=h.map(P=>{const A=P.key;return m.has(A)?P:w.createElement(T6,{key:Vg(P),isPresent:!0,presenceAffectsLayout:o,mode:a},P)}),MF!=="production"&&a==="wait"&&h.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),w.createElement(w.Fragment,null,m.size?h:h.map(P=>w.cloneElement(P)))};var zl=function(){return zl=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},zl.apply(this,arguments)};function l$(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 w0(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 C0(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]){
|
|||
|
`})}function Fge(e){JS({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function Zg(e){const{isOpen:t,isDisabled:n}=mk(),{reduceMotion:r}=vk(),i=Py("chakra-accordion__icon",e.className),o=ex(),a={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:r?void 0:"transform 0.2s",transformOrigin:"center",...o.icon};return N.createElement(Da,{viewBox:"0 0 24 24","aria-hidden":!0,className:i,__css:a,...e},N.createElement("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}))}Zg.displayName="AccordionIcon";var Qg=Ae(function(t,n){const{children:r,className:i}=t,{htmlProps:o,...a}=Dge(t),l={...ex().container,overflowAnchor:"none"},u=w.useMemo(()=>a,[a]);return N.createElement(Lge,{value:u},N.createElement(we.div,{ref:n,...o,className:Py("chakra-accordion__item",i),__css:l},typeof r=="function"?r({isExpanded:!!a.isOpen,isDisabled:!!a.isDisabled}):r))});Qg.displayName="AccordionItem";var Jg=Ae(function(t,n){const{className:r,motionProps:i,...o}=t,{reduceMotion:a}=vk(),{getPanelProps:s,isOpen:l}=mk(),u=s(o,n),d=Py("chakra-accordion__panel",r),h=ex();a||delete u.hidden;const m=N.createElement(we.div,{...u,__css:h.panel,className:d});return a?m:N.createElement(u$,{in:l,...i},m)});Jg.displayName="AccordionPanel";var yk=Ae(function({children:t,reduceMotion:n,...r},i){const o=Ri("Accordion",r),a=Sn(r),{htmlProps:s,descendants:l,...u}=Rge(a),d=w.useMemo(()=>({...u,reduceMotion:!!n}),[u,n]);return N.createElement(Age,{value:l},N.createElement(Ige,{value:d},N.createElement(Tge,{value:o},N.createElement(we.div,{ref:i,...s,className:Py("chakra-accordion",r.className),__css:o.root},t))))});yk.displayName="Accordion";var $ge=(...e)=>e.filter(Boolean).join(" "),zge=af({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Ty=Ae((e,t)=>{const n=Oo("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:a="transparent",className:s,...l}=Sn(e),u=$ge("chakra-spinner",s),d={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:a,borderLeftColor:a,animation:`${zge} ${o} linear infinite`,...n};return N.createElement(we.div,{ref:t,__css:d,className:u,...l},r&&N.createElement(we.span,{srOnly:!0},r))});Ty.displayName="Spinner";var tx=(...e)=>e.filter(Boolean).join(" ");function Hge(e){return N.createElement(Da,{viewBox:"0 0 24 24",...e},N.createElement("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"}))}function Vge(e){return N.createElement(Da,{viewBox:"0 0 24 24",...e},N.createElement("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"}))}function RO(e){return N.createElement(Da,{viewBox:"0 0 24 24",...e},N.createElement("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"}))}var[Uge,Wge]=Pn({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[Gge,bk]=Pn({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),h$={info:{icon:Vge,colorScheme:"blue"},warning:{icon:RO,colorScheme:"orange"},success:{icon:Hge,colorScheme:"green"},error:{icon:RO,colorScheme:"red"},loading:{icon:Ty,colorScheme:"blue"}};function qge(e){return h$[e].colorScheme}function Yge(e){return h$[e].icon}var p$=Ae(function(t,n){const{status:r="info",addRole:i=!0,...o}=Sn(t),a=t.colorScheme??qge(r),s=Ri("Alert",{...t,colorScheme:a}),l={width:"100%",dis
|
|||
|
: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;
|
|||
|
}
|
|||
|
}
|
|||
|
`,Lme=()=>N.createElement(BS,{styles:k$}),Ame=()=>N.createElement(BS,{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;
|
|||
|
}
|
|||
|
|
|||
|
${k$}
|
|||
|
`});function Bh(e,t,n,r){const i=Pr(n);return w.useEffect(()=>{const o=typeof e=="function"?e():e??document;if(!(!n||!o))return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[t,e,r,i,n]),()=>{const o=typeof e=="function"?e():e??document;o==null||o.removeEventListener(t,i,r)}}function Ome(e){return"current"in e}var E$=()=>typeof window<"u";function Mme(){const e=navigator.userAgentData;return(e==null?void 0:e.platform)??navigator.platform}var Rme=e=>E$()&&e.test(navigator.vendor),Ime=e=>E$()&&e.test(Mme()),Dme=()=>Ime(/mac|iphone|ipad|ipod/i),Nme=()=>Dme()&&Rme(/apple/i);function jme(e){const{ref:t,elements:n,enabled:r}=e,i=()=>{var o;return((o=t.current)==null?void 0:o.ownerDocument)??document};Bh(i,"pointerdown",o=>{if(!Nme()||!r)return;const a=o.target,l=(n??[t]).some(u=>{const d=Ome(u)?u.current:u;return(d==null?void 0:d.contains(a))||d===a});i().activeElement!==a&&l&&(o.preventDefault(),a.focus())})}var Bme=Lre?w.useLayoutEffect:w.useEffect;function zO(e,t=[]){const n=w.useRef(e);return Bme(()=>{n.current=e}),w.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function Fme(e,t){const n=e!==void 0;return[n,n&&typeof e<"u"?e:t]}function $me(e,t){const n=w.useId();return w.useMemo(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}function Yh(e={}){const{onClose:t,onOpen:n,isOpen:r,id:i}=e,o=zO(n),a=zO(t),[s,l]=w.useState(e.defaultIsOpen||!1),[u,d]=Fme(r,s),h=$me(i,"disclosure"),m=w.useCallback(()=>{u||l(!1),a==null||a()},[u,a]),y=w.useCallback(()=>{u||l(!0),o==null||o()},[u,o]),b=w.useCallback(()=>{(d?m:y)()},[d,y,m]);return{isOpen:!!d,onOpen:y,onClose:m,onToggle:b,isControlled:u,getButtonProps:(x={})=>({...x,"aria-expanded":d,"aria-controls":h,onClick:Are(x.onClick,b)}),getDisclosureProps:(x={})=>({...x,hidden:!d,id:h})}}function kk(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var Ek=Ae(function(t,n){const{htmlSize:r,...i}=t,o=Ri("Input",i),a=Sn(i),s=Sk(a),l=Jr("chakra-input",t.className);return N.createElement(we.input,{size:r,...s,__css:o.field,ref:n,className:l})});Ek.displayName="Input";Ek.id="Input";var[zme,P$]=Pn({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "<InputGroup />" `}),Hme=Ae(function(t,n){const r=Ri("Input",t),{children:i,className:o,...a}=Sn(t),s=Jr("chakra-input__group",o),l={},u=rx(i),d=r.field;u.forEach(m=>{r&&(d&&m.type.id==="InputLeftElement"&&(l.paddingStart=d.height??d.h),d&&m.type.id==="InputRightElement"&&(l.paddingEnd=d.height??d.h),m.type.id==="InputRightAddon"&&(l.borderEndRadius=0),m.type.id==="InputLeftAddon"&&(l.borderStartRadius=0))});const h=u.map(m=>{var y,b;const x=kk({size:((y=m.props)==null?void 0:y.size)||t.size,variant:((b=m.props)==null?void 0:b.variant)||t.variant});return m.type.id!=="Input"?w.cloneElement(m,x):w.cloneElement(m,Object.assign(x,l,m.props))});return N.createElement(we.div,{className:s,ref:n,__css:{width:"100%",display:"flex",position:"relative"},...a},N.createElement(zme,{value:r},h))});Hme.displayName="InputGroup";var Vme={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},Ume=we("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),Pk=Ae(function(t,n){const{placement:r="left",...i}=t,o=Vme[r]??{},a=P$();return N.createElement(Ume,{ref:n,...i,__css:{...a.addon,...o}})});Pk.displayName="InputAddon";var T$=Ae(function(t,n){return N.createElement(Pk,{ref:n,placement:"left",...t,className:Jr("chakra-input__left-addon",t.className)})});T$.displayName="InputLeftAddon";T$.id="InputLeftAddon";var L$=Ae(function(t,n){return N.createElement(Pk,{ref:n,placement:"right",...t,className:Jr("chakra-input__right-addon",t.className)})});L$.displayName="InputRightAddon";L$.id="InputRightAddon";var Wme=we("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),sx=Ae(function(t,n){const{placement:r="lef
|
|||
|
* @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(W,Q){var re=W.length;W.push(Q);e:for(;0<re;){var pe=re-1>>>1,_e=W[pe];if(0<i(_e,Q))W[pe]=Q,W[re]=_e,re=pe;else break e}}function n(W){return W.length===0?null:W[0]}function r(W){if(W.length===0)return null;var Q=W[0],re=W.pop();if(re!==Q){W[0]=re;e:for(var pe=0,_e=W.length,Ce=_e>>>1;pe<Ce;){var fe=2*(pe+1)-1,He=W[fe],Me=fe+1,rt=W[Me];if(0>i(He,re))Me<_e&&0>i(rt,He)?(W[pe]=rt,W[Me]=re,pe=Me):(W[pe]=He,W[fe]=re,pe=fe);else if(Me<_e&&0>i(rt,re))W[pe]=rt,W[Me]=re,pe=Me;else break e}}return Q}function i(W,Q){var re=W.sortIndex-Q.sortIndex;return re!==0?re:W.id-Q.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,m=3,y=!1,b=!1,x=!1,_=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function P(W){for(var Q=n(u);Q!==null;){if(Q.callback===null)r(u);else if(Q.startTime<=W)r(u),Q.sortIndex=Q.expirationTime,t(l,Q);else break;Q=n(u)}}function A(W){if(x=!1,P(W),!b)if(n(l)!==null)b=!0,X(M);else{var Q=n(u);Q!==null&&Z(A,Q.startTime-W)}}function M(W,Q){b=!1,x&&(x=!1,k(j),j=-1),y=!0;var re=m;try{for(P(Q),h=n(l);h!==null&&(!(h.expirationTime>Q)||W&&!K());){var pe=h.callback;if(typeof pe=="function"){h.callback=null,m=h.priorityLevel;var _e=pe(h.expirationTime<=Q);Q=e.unstable_now(),typeof _e=="function"?h.callback=_e:h===n(l)&&r(l),P(Q)}else r(l);h=n(l)}if(h!==null)var Ce=!0;else{var fe=n(u);fe!==null&&Z(A,fe.startTime-Q),Ce=!1}return Ce}finally{h=null,m=re,y=!1}}var I=!1,D=null,j=-1,z=5,H=-1;function K(){return!(e.unstable_now()-H<z)}function te(){if(D!==null){var W=e.unstable_now();H=W;var Q=!0;try{Q=D(!0,W)}finally{Q?G():(I=!1,D=null)}}else I=!1}var G;if(typeof E=="function")G=function(){E(te)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,U=F.port2;F.port1.onmessage=te,G=function(){U.postMessage(null)}}else G=function(){_(te,0)};function X(W){D=W,I||(I=!0,G())}function Z(W,Q){j=_(function(){W(e.unstable_now())},Q)}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(W){W.callback=null},e.unstable_continueExecution=function(){b||y||(b=!0,X(M))},e.unstable_forceFrameRate=function(W){0>W||125<W?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<W?Math.floor(1e3/W):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(W){switch(m){case 1:case 2:case 3:var Q=3;break;default:Q=m}var re=m;m=Q;try{return W()}finally{m=re}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(W,Q){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var re=m;m=W;try{return Q()}finally{m=re}},e.unstable_scheduleCallback=function(W,Q,re){var pe=e.unstable_now();switch(typeof re=="object"&&re!==null?(re=re.delay,re=typeof re=="number"&&0<re?pe+re:pe):re=pe,W){case 1:var _e=-1;break;case 2:_e=250;break;case 5:_e=1073741823;break;case 4:_e=1e4;break;default:_e=5e3}return _e=re+_e,W={id:d++,callback:Q,priorityLevel:W,startTime:re,expirationTime:_e,sortIndex:-1},re>pe?(W.sortIndex=re,t(u,W),n(l)===null&&W===n(u)&&(x?(k(j),j=-1):x=!0,Z(A,re-pe))):(W.sortIndex=_e,t(l,W),b||y||(b=!0,X(M))),W},e.unstable_shouldYield=K,e.unstable_wrapCallback=function(W){var Q=m;return function(){var re=m;m=Q;try{return W.apply(this,arguments)}finally{m=re}}}})(uz);(function(e){e.exports=uz})(tve);/**
|
|||
|
* @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 cz=w,Ma=Hh;function Ue(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 dz=new Set,B2={};function up(e,t){e0(e,t),e0(e+"Capture",t)}function e0(e,t){for(B2[e]=t,e=0;e<t.length;e++)dz.add(t[e])}var nc=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),t9=Object.prototype.hasOwnProperty,nve=/^[: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]*$/,nM={},rM={};function rve(e){return t9.call(rM,e)?!0:t9.call(nM,e)?!1:nve.test(e)?rM[e]=!0:(nM[e]=!0,!1)}function ive(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 ove(e,t,n,r){if(t===null||typeof t>"u"||ive(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 Mo(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 Ji={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ji[e]=new Mo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ji[t]=new Mo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ji[e]=new Mo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ji[e]=new Mo(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){Ji[e]=new Mo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ji[e]=new Mo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ji[e]=new Mo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ji[e]=new Mo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ji[e]=new Mo(e,5,!1,e.toLowerCase(),null,!1,!1)});var jk=/[\-:]([a-z])/g;function Bk(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-
|
|||
|
`+R6+e}var I6=!1;function D6(e,t){if(!e||I6)return"";I6=!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{I6=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?kv(e):""}function ave(e){switch(e.tag){case 5:return kv(e.type);case 16:return kv("Lazy");case 13:return kv("Suspense");case 19:return kv("SuspenseList");case 0:case 2:case 15:return e=D6(e.type,!1),e;case 11:return e=D6(e.type.render,!1),e;case 1:return e=D6(e.type,!0),e;default:return""}}function o9(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 tm:return"Fragment";case em:return"Portal";case n9:return"Profiler";case $k:return"StrictMode";case r9:return"Suspense";case i9:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case hz:return(e.displayName||"Context")+".Consumer";case fz:return(e._context.displayName||"Context")+".Provider";case zk:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Hk:return t=e.displayName||null,t!==null?t:o9(e.type)||"Memo";case md:t=e._payload,e=e._init;try{return o9(e(t))}catch{}}return null}function sve(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 o9(t);case 8:return t===$k?"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 Kd(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function gz(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lve(e){var t=gz(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 l3(e){e._valueTracker||(e._valueTracker=lve(e))}function mz(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=gz(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function m5(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 a9(e,t){var n=t.checked;return Ar({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function oM(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Kd(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 vz(e,t){t=t.checked,t!=null&&Fk(e,"checked",t,!1)}function s9(e,t){vz(e,t);var n=Kd(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")?l9(e,t.type,n):t.hasOwnProperty("defaultValue")&&l9(e,t.type,Kd(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function aM(e,t,n){if(t.hasOwnProperty(
|
|||
|
`).replace(y2e,"")}function m3(e,t,n){if(t=LM(t),LM(e)!==t&&n)throw Error(Ue(425))}function _5(){}var w9=null,C9=null;function _9(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 k9=typeof setTimeout=="function"?setTimeout:void 0,b2e=typeof clearTimeout=="function"?clearTimeout:void 0,AM=typeof Promise=="function"?Promise:void 0,S2e=typeof queueMicrotask=="function"?queueMicrotask:typeof AM<"u"?function(e){return AM.resolve(null).then(e).catch(x2e)}:k9;function x2e(e){setTimeout(function(){throw e})}function Y6(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),V2(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);V2(t)}function Nd(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 OM(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 E0=Math.random().toString(36).slice(2),Hl="__reactFiber$"+E0,Y2="__reactProps$"+E0,rc="__reactContainer$"+E0,E9="__reactEvents$"+E0,w2e="__reactListeners$"+E0,C2e="__reactHandles$"+E0;function Lh(e){var t=e[Hl];if(t)return t;for(var n=e.parentNode;n;){if(t=n[rc]||n[Hl]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=OM(e);e!==null;){if(n=e[Hl])return n;e=OM(e)}return t}e=n,n=e.parentNode}return null}function Iy(e){return e=e[Hl]||e[rc],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function om(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Ue(33))}function hx(e){return e[Y2]||null}var P9=[],am=-1;function cf(e){return{current:e}}function hr(e){0>am||(e.current=P9[am],P9[am]=null,am--)}function rr(e,t){am++,P9[am]=e.current,e.current=t}var Xd={},co=cf(Xd),ea=cf(!1),Xh=Xd;function t0(e,t){var n=e.type.contextTypes;if(!n)return Xd;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 ta(e){return e=e.childContextTypes,e!=null}function k5(){hr(ea),hr(co)}function MM(e,t,n){if(co.current!==Xd)throw Error(Ue(168));rr(co,t),rr(ea,n)}function oH(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(Ue(108,sve(e)||"Unknown",i));return Ar({},n,r)}function E5(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Xd,Xh=co.current,rr(co,e),rr(ea,ea.current),!0}function RM(e,t,n){var r=e.stateNode;if(!r)throw Error(Ue(169));n?(e=oH(e,t,Xh),r.__reactInternalMemoizedMergedChildContext=e,hr(ea),hr(co),rr(co,e)):hr(ea),rr(ea,n)}var Vu=null,px=!1,K6=!1;function aH(e){Vu===null?Vu=[e]:Vu.push(e)}function _2e(e){px=!0,aH(e)}function df(){if(!K6&&Vu!==null){K6=!0;var e=0,t=Bn;try{var n=Vu;for(Bn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Vu=null,px=!1}catch(i){throw Vu!==null&&(Vu=Vu.slice(e+1)),Oz(Uk,df),i}finally{Bn=t,K6=!1}}return null}var sm=[],lm=0,P5=null,T5=0,Za=[],Qa=0,Zh=null,Gu=1,qu="";function gh(e,t){sm[lm++]=T5,sm[lm++]=P5,P5=e,T5=t}function sH(e,t,n){Za[Qa++]=Gu,Za[Qa++]=qu,Za[Qa++]=Zh,Zh=e;var r=Gu;e=qu;var i=32-Ks(r)-1;r&=~(1<<i),n+=1;var o=32-Ks(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Gu=1<<32-Ks(t)+i|n<<i|r,qu=o+e}else Gu=1<<o|n<<i|r,qu=e}function Jk(e){e.return!==null&&(gh(e,1),sH(e,1,0))}function eE(e){for(;e===P5;)P5=sm[--lm],sm[lm]=null,T5=sm[--lm],sm[lm]=null;for(;e===Zh;)Zh=Za[--Qa],Za[Qa]=null,qu=Za[--Qa],Za[Qa]=null,Gu=Za[--Qa],Za[Qa]=null}var La=null,Ea=null,br=!1,Hs=null;function lH(e,t){var n=is(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 eC(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function R9(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var R2e=typeof WeakMap=="function"?WeakMap:Map;function NH(e,t,n){n=Yu(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){N5||(N5=!0,V9=r),R9(e,t)},n}function jH(e,t,n){n=Yu(-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(){R9(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){R9(e,t),typeof r!="function"&&(Bd===null?Bd=new Set([this]):Bd.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function VM(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new R2e;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=q2e.bind(null,e,t,n),t.then(e,e))}function UM(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 WM(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=Yu(-1,1),t.tag=2,jd(n,t,1))),n.lanes|=1),e)}var I2e=dc.ReactCurrentOwner,Zo=!1;function _o(e,t,n,r){t.child=e===null?gH(t,null,n,r):r0(t,e.child,n,r)}function GM(e,t,n,r,i){n=n.render;var o=t.ref;return Rm(t,i),r=dE(e,t,n,r,o,i),n=fE(),e!==null&&!Zo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,oc(e,t,i)):(br&&n&&Jk(t),t.flags|=1,_o(e,t,r,i),t.child)}function qM(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!wE(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,BH(e,t,o,r,i)):(e=T4(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:W2,n(a,r)&&e.ref===t.ref)return oc(e,t,i)}return t.flags|=1,e=$d(o,r),e.ref=t.ref,e.return=t,t.child=e}function BH(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(W2(o,r)&&e.ref===t.ref)if(Zo=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Zo=!0);else return t.lanes=e.lanes,oc(e,t,i)}return I9(e,t,n,r,i)}function FH(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},rr(dm,_a),_a|=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,rr(dm,_a),_a|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,rr(dm,_a),_a|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,rr(dm,_a),_a|=r;return _o(e,t,i,n),t.child}function $H(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function I9(e,t,n,r,i){var o=ta(n)?Xh:co.current;return o=t0(t,o),Rm(t,i),n=dE(e,t,n,r,o,i),r=fE(),e!==null&&!Zo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,oc(e,t,i)):(br&&r&&Jk(t),t.flags|=1,_o(e,t,n,i),t.child)}function YM(e,t,n,r,i){if(ta(n)){var o=!0;E5(t)}else o=!1;if(Rm(t,i),t.stateNode===null)k4(e,t),hH(t,n,r),M9(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=fs(u):(u=ta(n)?Xh:co.current,u=t0(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)&&FM(t,a,r,u),vd=!1;var m=t.memoizedState;a.state=m,O5(t,r,a,i),l=t.memoizedState,s!==r||m!==l||ea.current||vd?(typeof d=="function"&&(O9(t,n,d,r),l=t.memoizedState),(s=vd||BM(t,n,s,r,m,l,u))?(h||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeo
|
|||
|
.`.concat(Sbe,` {
|
|||
|
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(L4,` {
|
|||
|
right: `).concat(s,"px ").concat(r,`;
|
|||
|
}
|
|||
|
|
|||
|
.`).concat(A4,` {
|
|||
|
margin-right: `).concat(s,"px ").concat(r,`;
|
|||
|
}
|
|||
|
|
|||
|
.`).concat(L4," .").concat(L4,` {
|
|||
|
right: 0 `).concat(r,`;
|
|||
|
}
|
|||
|
|
|||
|
.`).concat(A4," .").concat(A4,` {
|
|||
|
margin-right: 0 `).concat(r,`;
|
|||
|
}
|
|||
|
|
|||
|
body {
|
|||
|
`).concat(xbe,": ").concat(s,`px;
|
|||
|
}
|
|||
|
`)},Rbe=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r,o=w.useMemo(function(){return Abe(i)},[i]);return w.createElement(Obe,{styles:Mbe(o,!t,i,n?"":"!important")})},Q9=!1;if(typeof window<"u")try{var E3=Object.defineProperty({},"passive",{get:function(){return Q9=!0,!0}});window.addEventListener("test",E3,E3),window.removeEventListener("test",E3,E3)}catch{Q9=!1}var Mg=Q9?{passive:!1}:!1,Ibe=function(e){return e.tagName==="TEXTAREA"},YV=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Ibe(e)&&n[t]==="visible")},Dbe=function(e){return YV(e,"overflowY")},Nbe=function(e){return YV(e,"overflowX")},fR=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=KV(e,n);if(r){var i=XV(e,n),o=i[1],a=i[2];if(o>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},jbe=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Bbe=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},KV=function(e,t){return e==="v"?Dbe(t):Nbe(t)},XV=function(e,t){return e==="v"?jbe(t):Bbe(t)},Fbe=function(e,t){return e==="h"&&t==="rtl"?-1:1},$be=function(e,t,n,r,i){var o=Fbe(e,window.getComputedStyle(t).direction),a=o*r,s=n.target,l=t.contains(s),u=!1,d=a>0,h=0,m=0;do{var y=XV(e,s),b=y[0],x=y[1],_=y[2],k=x-_-o*b;(b||k)&&KV(e,s)&&(h+=k,m+=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&&m===0||!i&&-a>m))&&(u=!0),u},P3=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},hR=function(e){return[e.deltaX,e.deltaY]},pR=function(e){return e&&"current"in e?e.current:e},zbe=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Hbe=function(e){return`
|
|||
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|||
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|||
|
`)},Vbe=0,Rg=[];function Ube(e){var t=w.useRef([]),n=w.useRef([0,0]),r=w.useRef(),i=w.useState(Vbe++)[0],o=w.useState(function(){return qV()})[0],a=w.useRef(e);w.useEffect(function(){a.current=e},[e]),w.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var x=U7([e.lockRef.current],(e.shards||[]).map(pR),!0).filter(Boolean);return x.forEach(function(_){return _.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),x.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=w.useCallback(function(x,_){if("touches"in x&&x.touches.length===2)return!a.current.allowPinchZoom;var k=P3(x),E=n.current,P="deltaX"in x?x.deltaX:E[0]-k[0],A="deltaY"in x?x.deltaY:E[1]-k[1],M,I=x.target,D=Math.abs(P)>Math.abs(A)?"h":"v";if("touches"in x&&D==="h"&&I.type==="range")return!1;var j=fR(D,I);if(!j)return!0;if(j?M=D:(M=D==="v"?"h":"v",j=fR(D,I)),!j)return!1;if(!r.current&&"changedTouches"in x&&(P||A)&&(r.current=M),!M)return!0;var z=r.current||M;return $be(z,_,x,z==="h"?P:A,!0)},[]),l=w.useCallback(function(x){var _=x;if(!(!Rg.length||Rg[Rg.length-1]!==o)){var k="deltaY"in _?hR(_):P3(_),E=t.current.filter(function(M){return M.name===_.type&&M.target===_.target&&zbe(M.delta,k)})[0];if(E&&E.should){_.cancelable&&_.preventDefault();return}if(!E){var P=(a.current.shards||[]).map(pR).filter(Boolean).filter(function(M){return M.contains(_.target)}),A=P.length>0?s(_,P[0]):!a.current.noIsolation;A&&_.cancelable&&_.preventDefault()}}},[]),u=w.useCallback(function(x,_,k,E){var P={name:x,delta:_,target:k,should:E};t.current.push(P),setTimeout(function(){t.current=t.current.filter(function(A){return A!==P})},1)},[]),d=w.useCallback(function(x){n.current=P3(x),r.current=void 0},[]),h=w.useCallback(function(x){u(x.type,hR(x),x.target,s(x,e.lockRef.current))},[]),m=w.useCallback(function(x){u(x.type,P3(x),x.target,s(x,e.lockRef.current))},[]);w.useEffect(function(){return Rg.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:m}),document.addEventListener("wheel",l,Mg),document.addEventListener("touchmove",l,Mg),document.addEventListener("touchstart",d,Mg),function(){Rg=Rg.filter(function(x){return x!==o}),document.removeEventListener("wheel",l,Mg),document.removeEventListener("touchmove",l,Mg),document.removeEventListener("touchstart",d,Mg)}},[]);var y=e.removeScrollBar,b=e.inert;return w.createElement(w.Fragment,null,b?w.createElement(o,{styles:Hbe(i)}):null,y?w.createElement(Rbe,{gapMode:"margin"}):null)}const Wbe=_ye(GV,Ube);var ZV=w.forwardRef(function(e,t){return w.createElement(_x,zl({},e,{ref:t,sideCar:Wbe}))});ZV.classNames=_x.classNames;const QV=ZV;var fp=(...e)=>e.filter(Boolean).join(" ");function Lv(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}var Gbe=class{constructor(){sn(this,"modals");this.modals=[]}add(e){this.modals.push(e)}remove(e){this.modals=this.modals.filter(t=>t!==e)}isTopModal(e){return this.modals[this.modals.length-1]===e}},J9=new Gbe;function qbe(e,t){w.useEffect(()=>(t&&J9.add(e),()=>{J9.remove(e)}),[t,e])}function Ybe(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:i=!0,closeOnEsc:o=!0,useInert:a=!0,onOverlayClick:s,onEsc:l}=e,u=w.useRef(null),d=w.useRef(null),[h,m,y]=Xbe(r,"chakra-modal","chakra-modal--header","chakra-modal--body");Kbe(u,t&&a),qbe(u,t);const b=w.useRef(null),x=w.useCallback(j=>{b.current=j.target},[]),_=w.useCallback(j=>{j.key==="Escape"&&(j.stopPropagation(),o&&(n==null||n()),l==null||l())},[o,n,l]),[k,E]=w.useState(!1),[P,A]=w.useState(!1),M=w.useCallback((j={},z=null)=>({role:"dialog",...j,ref:Hn(z,u),id:h,tabIndex:-1,"aria-modal":!0,"aria-labelledby":k?m:void 0,"aria-describedby":P?y:void 0,onClick:Lv(j.onClick,H=>H.stopPropagation())}),[y,P,h,m,k]),I=w.useCallback(j=>{j.stopPropagation(),b.current===j.target&&J9.isTopModal(u)&&(i&&(n==null||n()),s==null||s())},[n,i,s]),D=w.useCallback((j={},z=null)=>({...j,ref:Hn(z,d),onClick:Lv(j.onClick,I),onKe
|
|||
|
* @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 l0=w;function b5e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var S5e=typeof Object.is=="function"?Object.is:b5e,x5e=l0.useState,w5e=l0.useEffect,C5e=l0.useLayoutEffect,_5e=l0.useDebugValue;function k5e(e,t){var n=t(),r=x5e({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return C5e(function(){i.value=n,i.getSnapshot=t,vC(i)&&o({inst:i})},[e,n,t]),w5e(function(){return vC(i)&&o({inst:i}),e(function(){vC(i)&&o({inst:i})})},[e]),_5e(n),n}function vC(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!S5e(e,n)}catch{return!0}}function E5e(e,t){return t()}var P5e=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?E5e:k5e;DU.useSyncExternalStore=l0.useSyncExternalStore!==void 0?l0.useSyncExternalStore:P5e;(function(e){e.exports=DU})(y5e);var s8={},T5e={get exports(){return s8},set exports(e){s8=e}},NU={};/**
|
|||
|
* @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 Ax=w,L5e=a8;function A5e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var O5e=typeof Object.is=="function"?Object.is:A5e,M5e=L5e.useSyncExternalStore,R5e=Ax.useRef,I5e=Ax.useEffect,D5e=Ax.useMemo,N5e=Ax.useDebugValue;NU.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=R5e(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=D5e(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,O5e(d,y))return b;var x=r(y);return i!==void 0&&i(b,x)?b:(d=y,h=x)}var u=!1,d,h,m=n===void 0?null:n;return[function(){return l(t())},m===null?void 0:function(){return l(m())}]},[t,n,r,i]);var s=M5e(e,o[0],o[1]);return I5e(function(){a.hasValue=!0,a.value=s},[s]),N5e(s),s};(function(e){e.exports=NU})(T5e);function j5e(e){e()}let jU=j5e;const B5e=e=>jU=e,F5e=()=>jU,ef=w.createContext(null);function BU(){return w.useContext(ef)}const $5e=()=>{throw new Error("uSES not initialized!")};let FU=$5e;const z5e=e=>{FU=e},H5e=(e,t)=>e===t;function V5e(e=ef){const t=e===ef?BU:()=>w.useContext(e);return function(r,i=H5e){const{store:o,subscription:a,getServerState:s}=t(),l=FU(a.addNestedSub,o.getState,s||o.getState,r,i);return w.useDebugValue(l),l}}const U5e=V5e();var ER={},W5e={get exports(){return ER},set exports(e){ER=e}},$n={};/**
|
|||
|
* @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 eP=Symbol.for("react.element"),tP=Symbol.for("react.portal"),Ox=Symbol.for("react.fragment"),Mx=Symbol.for("react.strict_mode"),Rx=Symbol.for("react.profiler"),Ix=Symbol.for("react.provider"),Dx=Symbol.for("react.context"),G5e=Symbol.for("react.server_context"),Nx=Symbol.for("react.forward_ref"),jx=Symbol.for("react.suspense"),Bx=Symbol.for("react.suspense_list"),Fx=Symbol.for("react.memo"),$x=Symbol.for("react.lazy"),q5e=Symbol.for("react.offscreen"),$U;$U=Symbol.for("react.module.reference");function ms(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case eP:switch(e=e.type,e){case Ox:case Rx:case Mx:case jx:case Bx:return e;default:switch(e=e&&e.$$typeof,e){case G5e:case Dx:case Nx:case $x:case Fx:case Ix:return e;default:return t}}case tP:return t}}}$n.ContextConsumer=Dx;$n.ContextProvider=Ix;$n.Element=eP;$n.ForwardRef=Nx;$n.Fragment=Ox;$n.Lazy=$x;$n.Memo=Fx;$n.Portal=tP;$n.Profiler=Rx;$n.StrictMode=Mx;$n.Suspense=jx;$n.SuspenseList=Bx;$n.isAsyncMode=function(){return!1};$n.isConcurrentMode=function(){return!1};$n.isContextConsumer=function(e){return ms(e)===Dx};$n.isContextProvider=function(e){return ms(e)===Ix};$n.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===eP};$n.isForwardRef=function(e){return ms(e)===Nx};$n.isFragment=function(e){return ms(e)===Ox};$n.isLazy=function(e){return ms(e)===$x};$n.isMemo=function(e){return ms(e)===Fx};$n.isPortal=function(e){return ms(e)===tP};$n.isProfiler=function(e){return ms(e)===Rx};$n.isStrictMode=function(e){return ms(e)===Mx};$n.isSuspense=function(e){return ms(e)===jx};$n.isSuspenseList=function(e){return ms(e)===Bx};$n.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ox||e===Rx||e===Mx||e===jx||e===Bx||e===q5e||typeof e=="object"&&e!==null&&(e.$$typeof===$x||e.$$typeof===Fx||e.$$typeof===Ix||e.$$typeof===Dx||e.$$typeof===Nx||e.$$typeof===$U||e.getModuleId!==void 0)};$n.typeOf=ms;(function(e){e.exports=$n})(W5e);function Y5e(){const e=F5e();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 PR={notify(){},get:()=>[]};function K5e(e,t){let n,r=PR;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=Y5e())}function u(){n&&(n(),n=void 0,r.clear(),r=PR)}const d={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:s,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>r};return d}const X5e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Z5e=X5e?w.useLayoutEffect:w.useEffect;function Q5e({store:e,context:t,children:n,serverState:r}){const i=w.useMemo(()=>{const s=K5e(e);return{store:e,subscription:s,getServerState:r?()=>r:void 0}},[e,r]),o=w.useMemo(()=>e.getState(),[e]);Z5e(()=>{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||ef;return N.createElement(a.Provider,{value:i},n)}function zU(e=ef){const t=e===ef?BU:()=>w.useContext(e);return function(){const{store:r}=t();return r}}const J5e=zU();function eSe(e=ef){const t=e===ef?J5e:zU(e);return function(){return t().dispatch}}const tSe=eSe();z5e(s8.useSyncExternalStoreWithSelector);B5e(Js.unstable_batchedUpdates);function R4(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?R4=function(n){return typeof n}:R4=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},R4(e)}function nSe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enum
|
|||
|
|
|||
|
`;if(!(0,e.isString)(F)||F.length<1)throw new Error(`${Z} Name (key) of reducer is required. ${W}`);if(!G||!G.length)return;const{duplicates:Q,subsets:re}=(0,e.findDuplicatesAndSubsets)(G);if(Q.length>1)throw new Error(`${Z} Duplicated paths.
|
|||
|
|
|||
|
${JSON.stringify(Q)}
|
|||
|
|
|||
|
${W}`);if(re.length>1)throw new Error(`${Z} You are trying to persist an entire property and also some of its subset.
|
|||
|
|
|||
|
${JSON.stringify(re)}
|
|||
|
|
|||
|
${W}`)};e.singleTransformValidator=j;const z=function(G){if(!(0,e.isArray)(G))return;const F=(G==null?void 0:G.map(U=>U.deepPersistKey).filter(U=>U))||[];if(F.length){const U=F.filter((X,Z)=>F.indexOf(X)!==Z);if(U.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(U)}`)}};e.transformsValidator=z;const H=function({whitelist:G,blacklist:F}){if(G&&G.length&&F&&F.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(G){const{duplicates:U,subsets:X}=(0,e.findDuplicatesAndSubsets)(G);(0,e.throwError)({duplicates:U,subsets:X},"whitelist")}if(F){const{duplicates:U,subsets:X}=(0,e.findDuplicatesAndSubsets)(F);(0,e.throwError)({duplicates:U,subsets:X},"blacklist")}};e.configValidator=H;const K=function({duplicates:G,subsets:F},U){if(G.length)throw new Error(`${t.PACKAGE_NAME}: duplicates of paths found in your ${U}.
|
|||
|
|
|||
|
${JSON.stringify(G)}`);if(F.length)throw new Error(`${t.PACKAGE_NAME}: subsets of some parent keys found in your ${U}. You must decide if you want to persist an entire path or its specific subset.
|
|||
|
|
|||
|
${JSON.stringify(F)}`)};e.throwError=K;const te=function(G){return(0,e.isArray)(G)?G.filter(e.unique).reduce((F,U)=>{const X=U.split("."),Z=X[0],W=X.slice(1).join(".")||void 0,Q=F.filter(pe=>Object.keys(pe)[0]===Z)[0],re=Q?Object.values(Q)[0]:void 0;return Q||F.push({[Z]:W?[W]:void 0}),Q&&!re&&W&&(Q[Z]=[W]),Q&&re&&W&&re.push(W),F},[]):[]};e.getRootKeysGroup=te})(aW);(function(e){var t=ko&&ko.__rest||function(h,m){var y={};for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&m.indexOf(b)<0&&(y[b]=h[b]);if(h!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,b=Object.getOwnPropertySymbols(h);x<b.length;x++)m.indexOf(b[x])<0&&Object.prototype.propertyIsEnumerable.call(h,b[x])&&(y[b[x]]=h[b[x]]);return y};Object.defineProperty(e,"__esModule",{value:!0}),e.getPersistConfig=e.getTransforms=e.createBlacklist=e.createWhitelist=e.autoMergeDeep=void 0;const n=aW,r=rp,i=pP,o=function(h,m,y={}){const b=y.whitelist||null,x=y.blacklist||null;function _(k){return!!(b&&b.indexOf(k)===-1||x&&x.indexOf(k)!==-1)}return{in:(k,E,P)=>!_(E)&&h?h(k,E,P):k,out:(k,E,P)=>!_(E)&&m?m(k,E,P):k,deepPersistKey:b&&b[0]}},a=(h,m,y,{debug:b,whitelist:x,blacklist:_,transforms:k})=>{if(x||_)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)(k);const E=(0,n.cloneDeep)(y);let P=h;if(P&&(0,n.isObjectLike)(P)){const A=(0,n.difference)(m,y);(0,n.isEmpty)(A)||(P=(0,n.mergeDeep)(h,A,{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(A)}`)),Object.keys(P).forEach(M=>{if(M!=="_persist"){if((0,n.isObjectLike)(E[M])){E[M]=(0,n.mergeDeep)(E[M],P[M]);return}E[M]=P[M]}})}return b&&P&&(0,n.isObjectLike)(P)&&console.log(`${r.PACKAGE_NAME}/autoMergeDeep: rehydrated keys ${JSON.stringify(P)}`),E};e.autoMergeDeep=a;const s=(h,m)=>((0,n.singleTransformValidator)(m,h,i.ConfigType.WHITELIST),o(y=>{if(!m||!m.length)return y;let b=null,x;return m.forEach(_=>{const k=_.split(".");x=(0,n.path)(y,k),typeof x>"u"&&(0,n.isIntegerString)(k[k.length-1])&&(x=r.PLACEHOLDER_UNDEFINED);const E=(0,n.assocPath)(k,x),P=(0,n.isArray)(E)?[]:{};b=(0,n.mergeDeep)(b||P,E,{preservePlaceholder:!0})}),b||y},y=>(0,n.preserveUndefined)(y,m,i.ConfigType.WHITELIST),{whitelist:[h]}));e.createWhitelist=s;const l=(h,m)=>((0,n.singleTransformValidator)(m,h,i.ConfigType.BLACKLIST),o(y=>{if(!m||!m.length)return;const b=(0,n.preserveUndefined)(y,m,i.ConfigType.BLACKLIST,!0);return m.map(_=>_.split(".")).reduce((_,k)=>(0,n.dissocPath)(_,k),b)},y=>(0,n.preserveUndefined)(y,m,i.ConfigType.BLACKLIST),{whitelist:[h]}));e.createBlacklist=l;const u=function(h,m){return m.map(y=>{const b=Object.keys(y)[0],x=y[b];return h===i.ConfigType.WHITELIST?(0,e.createWhitelist)(b,x):(0,e.createBlacklist)(b,x)})};e.getTransforms=u;const d=h=>{var{key:m,whitelist:y,blacklist:b,storage:x,transforms:_,rootReducer:k}=h,E=t(h,["key","whitelist","blacklist","storage","transforms","rootReducer"]);(0,n.configValidator)({whitelist:y,blacklist:b});const P=(0,n.getRootKeysGroup)(y),A=(0,n.getRootKeysGroup)(b),M=Object.keys(k(void 0,{type:""})),I=P.map(te=>Object.keys(te)[0]),D=A.map(te=>Object.keys(te)[0]),j=M.filter(te=>I.indexOf(te)===-1&&D.indexOf(te)===-1),z=(0,e.getTransforms)(i.ConfigType.WHITELIST,P),H=(0,e.getTransforms)(i.ConfigType.BLACKLIST,A),K=(0,n.isArray)(y)?j.map(te=>(0,e.createBlacklist)(te)):[];return Object.assign(Object.assign({},E),{key:m,storage:x,transforms:[...z,...H,...K,..._||[]],stateReconciler:e.autoMergeDeep})};e.getPersistConfig=d})(oW);const Ld=(e,t)=>Math.floor(e/t)*t,ql=(e,t)=>Math.round(e/t)*t;var Te={},Pxe={get exports(){return Te},set exports(e){Te=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,m=2,y=4,b=1,x=2,_=1,k=2,E=4,P=8,A=16,M=32,I=64,D=128,j=256,z=512,H=30,K="...",te=800,G=16,F=1,U=2,X=3,Z=1/0,W=9007199254740991,Q=17976931348623157e292,re=0/0,pe=4294967295,_e=pe-1,Ce=pe>>>1,fe=[["ary",D],["bind",_],["bindKey",k],["curry",P],["curryRight",A],["flip",z],["partial",M],["partialRight",I],["rearg",j]],He="[object Arguments]",Me="[object Array]",rt="[object AsyncFunction]",We="[object Boolean]",Fe="[object Date]",wt="[object DOMException]",$e="[object Error]",at="[object Function]",bt="[object GeneratorFunction]",Le="[object Map]",lt="[object Number]",Mt="[object Null]",ut="[object Object]",_t="[object Promise]",un="[object Proxy]",ae="[object RegExp]",Ne="[object Set]",Ke="[object String]",Xe="[object Symbol]",Se="[object Undefined]",je="[object WeakMap]",Ct="[object WeakSet]",Nt="[object ArrayBuffer]",Pe="[object DataView]",At="[object Float32Array]",Ve="[object Float64Array]",vt="[object Int8Array]",nn="[object Int16Array]",In="[object Int32Array]",Ze="[object Uint8Array]",xt="[object Uint8ClampedArray]",ht="[object Uint16Array]",Ht="[object Uint32Array]",rn=/\b__p \+= '';/g,gr=/\b(__p \+=) '' \+/g,Ro=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ii=/&(?:amp|lt|gt|quot|#39);/g,il=/[&<>"']/g,B0=RegExp(Ii.source),Ba=RegExp(il.source),Ap=/<%-([\s\S]+?)%>/g,F0=/<%([\s\S]+?)%>/g,Sc=/<%=([\s\S]+?)%>/g,Op=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Mp=/^\w*$/,ia=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xf=/[\\^$.*+?()[\]{}|]/g,$0=RegExp(xf.source),xc=/^\s+/,wf=/\s/,z0=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ol=/\{\n\/\* \[wrapped with (.+)\] \*/,wc=/,? & /,H0=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,V0=/[()=,{}\[\]\/\s]/,U0=/\\(\\)?/g,W0=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,vs=/\w*$/,G0=/^[-+]0x[0-9a-f]+$/i,q0=/^0b[01]+$/i,Y0=/^\[object .+?Constructor\]$/,K0=/^0o[0-7]+$/i,X0=/^(?:0|[1-9]\d*)$/,Z0=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,al=/($^)/,Q0=/['\n\r\u2028\u2029\\]/g,ys="\\ud800-\\udfff",yu="\\u0300-\\u036f",bu="\\ufe20-\\ufe2f",sl="\\u20d0-\\u20ff",Su=yu+bu+sl,Rp="\\u2700-\\u27bf",Cc="a-z\\xdf-\\xf6\\xf8-\\xff",ll="\\xac\\xb1\\xd7\\xf7",oa="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Dn="\\u2000-\\u206f",Tn=" \\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",aa="A-Z\\xc0-\\xd6\\xd8-\\xde",Vr="\\ufe0e\\ufe0f",ui=ll+oa+Dn+Tn,sa="['’]",ul="["+ys+"]",ci="["+ui+"]",bs="["+Su+"]",Cf="\\d+",xu="["+Rp+"]",Ss="["+Cc+"]",_f="[^"+ys+ui+Cf+Rp+Cc+aa+"]",Di="\\ud83c[\\udffb-\\udfff]",Ip="(?:"+bs+"|"+Di+")",Dp="[^"+ys+"]",kf="(?:\\ud83c[\\udde6-\\uddff]){2}",cl="[\\ud800-\\udbff][\\udc00-\\udfff]",Io="["+aa+"]",dl="\\u200d",wu="(?:"+Ss+"|"+_f+")",J0="(?:"+Io+"|"+_f+")",_c="(?:"+sa+"(?:d|ll|m|re|s|t|ve))?",kc="(?:"+sa+"(?:D|LL|M|RE|S|T|VE))?",Ef=Ip+"?",Ec="["+Vr+"]?",Fa="(?:"+dl+"(?:"+[Dp,kf,cl].join("|")+")"+Ec+Ef+")*",Pf="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Cu="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Kt=Ec+Ef+Fa,Np="(?:"+[xu,kf,cl].join("|")+")"+Kt,Pc="(?:"+[Dp+bs+"?",bs,kf,cl,ul].join("|")+")",Tc=RegExp(sa,"g"),jp=RegExp(bs,"g"),la=RegExp(Di+"(?="+Di+")|"+Pc+Kt,"g"),Kn=RegExp([Io+"?"+Ss+"+"+_c+"(?="+[ci,Io,"$"].join("|")+")",J0+"+"+kc+"(?="+[ci,Io+wu,"$"].join("|")+")",Io+"?"+wu+"+"+_c,Io+"+"+kc,Cu,Pf,Cf,Np].join("|"),"g"),Tf=RegExp("["+dl+ys+Su+Vr+"]"),Bp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Lf=["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"],Fp=-1,gn={};gn[At
|
|||
|
/* [wrapped with `+g+`] */
|
|||
|
`)}function lX(c){return zt(c)||ah(c)||!!(d1&&c&&c[d1])}function Ru(c,g){var C=typeof c;return g=g??W,!!g&&(C=="number"||C!="symbol"&&X0.test(c))&&c>-1&&c%1==0&&c<g}function yo(c,g,C){if(!_r(C))return!1;var O=typeof g;return(O=="number"?Vo(C)&&Ru(g,C.length):O=="string"&&g in C)?As(C[g],c):!1}function Rw(c,g){if(zt(c))return!1;var C=typeof c;return C=="number"||C=="symbol"||C=="boolean"||c==null||ba(c)?!0:Mp.test(c)||!Op.test(c)||g!=null&&c in mn(g)}function uX(c){var g=typeof c;return g=="string"||g=="number"||g=="symbol"||g=="boolean"?c!=="__proto__":c===null}function Iw(c){var g=be(c),C=$[g];if(typeof C!="function"||!(g in Qt.prototype))return!1;if(c===C)return!0;var O=ue(C);return!!O&&c===O[0]}function cX(c){return!!Nc&&Nc in c}var dX=mr?Iu:Zw;function H1(c){var g=c&&c.constructor,C=typeof g=="function"&&g.prototype||Ln;return c===C}function RT(c){return c===c&&!_r(c)}function IT(c,g){return function(C){return C==null?!1:C[c]===g&&(g!==n||c in mn(C))}}function fX(c){var g=jb(c,function(O){return C.size===u&&C.clear(),O}),C=g.cache;return g}function hX(c,g){var C=c[1],O=g[1],B=C|O,V=B<(_|k|D),J=O==D&&C==P||O==D&&C==j&&c[7].length<=g[8]||O==(D|j)&&g[7].length<=g[8]&&C==P;if(!(V||J))return c;O&_&&(c[2]=g[2],B|=C&_?0:E);var ne=g[3];if(ne){var ce=c[3];c[3]=ce?Ob(ce,ne,g[4]):ne,c[4]=ce?da(c[3],d):g[4]}return ne=g[5],ne&&(ce=c[5],c[5]=ce?j1(ce,ne,g[6]):ne,c[6]=ce?da(c[5],d):g[6]),ne=g[7],ne&&(c[7]=ne),O&D&&(c[8]=c[8]==null?g[8]:hi(c[8],g[8])),c[9]==null&&(c[9]=g[9]),c[0]=g[0],c[1]=B,c}function pX(c){var g=[];if(c!=null)for(var C in mn(c))g.push(C);return g}function gX(c){return qp.call(c)}function DT(c,g,C){return g=Dr(g===n?c.length-1:g,0),function(){for(var O=arguments,B=-1,V=Dr(O.length-g,0),J=ye(V);++B<V;)J[B]=O[g+B];B=-1;for(var ne=ye(g+1);++B<g;)ne[B]=O[B];return ne[g]=C(J),Ni(c,this,ne)}}function NT(c,g){return g.length<2?c:yl(c,Yr(g,0,-1))}function mX(c,g){for(var C=c.length,O=hi(g.length,C),B=Hi(c);O--;){var V=g[O];c[O]=Ru(V,C)?B[V]:n}return c}function Dw(c,g){if(!(g==="constructor"&&typeof c[g]=="function")&&g!="__proto__")return c[g]}var jT=FT(Jf),V1=Vf||function(c,g){return kt.setTimeout(c,g)},Nw=FT(pg);function BT(c,g,C){var O=g+"";return Nw(c,sX(O,vX(iX(O),C)))}function FT(c){var g=0,C=0;return function(){var O=f1(),B=G-(O-C);if(C=O,B>0){if(++g>=te)return arguments[0]}else g=0;return c.apply(n,arguments)}}function Rb(c,g){var C=-1,O=c.length,B=O-1;for(g=g===n?O:g;++C<g;){var V=Zf(C,B),J=c[V];c[V]=c[C],c[C]=J}return c.length=g,c}var $T=fX(function(c){var g=[];return c.charCodeAt(0)===46&&g.push(""),c.replace(ia,function(C,O,B,V){g.push(B?V.replace(U0,"$1"):O||C)}),g});function Tl(c){if(typeof c=="string"||ba(c))return c;var g=c+"";return g=="0"&&1/c==-Z?"-0":g}function oh(c){if(c!=null){try{return xr.call(c)}catch{}try{return c+""}catch{}}return""}function vX(c,g){return Xn(fe,function(C){var O="_."+C[0];g&C[1]&&!eo(c,O)&&c.push(O)}),c.sort()}function zT(c){if(c instanceof Qt)return c.clone();var g=new po(c.__wrapped__,c.__chain__);return g.__actions__=Hi(c.__actions__),g.__index__=c.__index__,g.__values__=c.__values__,g}function yX(c,g,C){(C?yo(c,g,C):g===n)?g=1:g=Dr(Vt(g),0);var O=c==null?0:c.length;if(!O||g<1)return[];for(var B=0,V=0,J=ye(Uf(O/g));B<O;)J[V++]=Yr(c,B,B+=g);return J}function bX(c){for(var g=-1,C=c==null?0:c.length,O=0,B=[];++g<C;){var V=c[g];V&&(B[O++]=V)}return B}function SX(){var c=arguments.length;if(!c)return[];for(var g=ye(c-1),C=arguments[0],O=c;O--;)g[O-1]=arguments[O];return za(zt(C)?Hi(C):[C],Gr(g,1))}var xX=Ot(function(c,g){return Kr(c)?Xc(c,Gr(g,1,Kr,!0)):[]}),wX=Ot(function(c,g){var C=Ga(g);return Kr(C)&&(C=n),Kr(c)?Xc(c,Gr(g,1,Kr,!0),Re(C,2)):[]}),CX=Ot(function(c,g){var C=Ga(g);return Kr(C)&&(C=n),Kr(c)?Xc(c,Gr(g,1,Kr,!0),n,C):[]});function _X(c,g,C){var O=c==null?0:c.length;return O?(g=C||g===n?1:Vt(g),Yr(c,g<0?0:g,O)):[]}function kX(c,g,C){var O=c==null?0:c.length;return O?(g=C||g===n?1:Vt(g),g=O-g,Yr(c,0,g<0?0:g)):[]}function EX(c,g){return c&&c.length?rd(c,Re(g,3),!0,!0):[]}function PX(c,g){return c&&c.length?rd(c,Re(g,3),!0):[]}function TX(c,g,C,O){var B=c==null?0:c.length;
|
|||
|
`;c.replace(nt,function(Tt,Jt,an,Sa,bo,xa){return an||(an=Sa),Ie+=c.slice(ke,xa).replace(Q0,pl),Jt&&(ne=!0,Ie+=`' +
|
|||
|
__e(`+Jt+`) +
|
|||
|
'`),bo&&(ce=!0,Ie+=`';
|
|||
|
`+bo+`;
|
|||
|
__p += '`),an&&(Ie+=`' +
|
|||
|
((__t = (`+an+`)) == null ? '' : __t) +
|
|||
|
'`),ke=xa+Tt.length,Tt}),Ie+=`';
|
|||
|
`;var Pt=cn.call(g,"variable")&&g.variable;if(!Pt)Ie=`with (obj) {
|
|||
|
`+Ie+`
|
|||
|
}
|
|||
|
`;else if(V0.test(Pt))throw new Rt(s);Ie=(ce?Ie.replace(rn,""):Ie).replace(gr,"$1").replace(Ro,"$1;"),Ie="function("+(Pt||"obj")+`) {
|
|||
|
`+(Pt?"":`obj || (obj = {});
|
|||
|
`)+"var __t, __p = ''"+(ne?", __e = _.escape":"")+(ce?`, __j = Array.prototype.join;
|
|||
|
function print() { __p += __j.call(arguments, '') }
|
|||
|
`:`;
|
|||
|
`)+Ie+`return __p
|
|||
|
}`;var qt=bL(function(){return on(V,St+"return "+Ie).apply(n,J)});if(qt.source=Ie,zw(qt))throw qt;return qt}function jJ(c){return An(c).toLowerCase()}function BJ(c){return An(c).toUpperCase()}function FJ(c,g,C){if(c=An(c),c&&(C||g===n))return ho(c);if(!c||!(g=mo(g)))return c;var O=to(c),B=to(g),V=ca(O,B),J=xs(O,B)+1;return Ts(O,V,J).join("")}function $J(c,g,C){if(c=An(c),c&&(C||g===n))return c.slice(0,a1(c)+1);if(!c||!(g=mo(g)))return c;var O=to(c),B=xs(O,to(g))+1;return Ts(O,0,B).join("")}function zJ(c,g,C){if(c=An(c),c&&(C||g===n))return c.replace(xc,"");if(!c||!(g=mo(g)))return c;var O=to(c),B=ca(O,to(g));return Ts(O,B).join("")}function HJ(c,g){var C=H,O=K;if(_r(g)){var B="separator"in g?g.separator:B;C="length"in g?Vt(g.length):C,O="omission"in g?mo(g.omission):O}c=An(c);var V=c.length;if(ku(c)){var J=to(c);V=J.length}if(C>=V)return c;var ne=C-Ha(O);if(ne<1)return O;var ce=J?Ts(J,0,ne).join(""):c.slice(0,ne);if(B===n)return ce+O;if(J&&(ne+=ce.length-ne),Hw(B)){if(c.slice(ne).search(B)){var ke,Ee=ce;for(B.global||(B=Ff(B.source,An(vs.exec(B))+"g")),B.lastIndex=0;ke=B.exec(Ee);)var Ie=ke.index;ce=ce.slice(0,Ie===n?ne:Ie)}}else if(c.indexOf(mo(B),ne)!=ne){var nt=ce.lastIndexOf(B);nt>-1&&(ce=ce.slice(0,nt))}return ce+O}function VJ(c){return c=An(c),c&&B0.test(c)?c.replace(Ii,ub):c}var UJ=Pl(function(c,g,C){return c+(C?" ":"")+g.toUpperCase()}),Ww=wg("toUpperCase");function yL(c,g,C){return c=An(c),g=C?n:g,g===n?Up(c)?Bf(c):r1(c):c.match(g)||[]}var bL=Ot(function(c,g){try{return Ni(c,n,g)}catch(C){return zw(C)?C:new Rt(C)}}),WJ=vr(function(c,g){return Xn(g,function(C){C=Tl(C),pa(c,C,Fw(c[C],c))}),c});function GJ(c){var g=c==null?0:c.length,C=Re();return c=g?Wn(c,function(O){if(typeof O[1]!="function")throw new ji(a);return[C(O[0]),O[1]]}):[],Ot(function(O){for(var B=-1;++B<g;){var V=c[B];if(Ni(V[0],this,O))return Ni(V[1],this,O)}})}function qJ(c){return eg(_i(c,h))}function Gw(c){return function(){return c}}function YJ(c,g){return c==null||c!==c?g:c}var KJ=$1(),XJ=$1(!0);function Wo(c){return c}function qw(c){return Cr(typeof c=="function"?c:_i(c,h))}function ZJ(c){return ed(_i(c,h))}function QJ(c,g){return Sl(c,_i(g,h))}var JJ=Ot(function(c,g){return function(C){return Es(C,c,g)}}),eee=Ot(function(c,g){return function(C){return Es(c,C,g)}});function Yw(c,g,C){var O=Ti(g),B=ig(g,O);C==null&&!(_r(g)&&(B.length||!O.length))&&(C=g,g=c,c=this,B=ig(g,Ti(g)));var V=!(_r(C)&&"chain"in C)||!!C.chain,J=Iu(c);return Xn(B,function(ne){var ce=g[ne];c[ne]=ce,J&&(c.prototype[ne]=function(){var ke=this.__chain__;if(V||ke){var Ee=c(this.__wrapped__),Ie=Ee.__actions__=Hi(this.__actions__);return Ie.push({func:ce,args:arguments,thisArg:c}),Ee.__chain__=ke,Ee}return ce.apply(c,za([this.value()],arguments))})}),c}function tee(){return kt._===this&&(kt._=l1),this}function Kw(){}function nee(c){return c=Vt(c),Ot(function(g){return td(g,c)})}var ree=z1(Wn),iee=z1(Un),oee=z1(Lc);function SL(c){return Rw(c)?hl(Tl(c)):Ps(c)}function aee(c){return function(g){return c==null?n:yl(c,g)}}var see=S(),lee=S(!0);function Xw(){return[]}function Zw(){return!1}function uee(){return{}}function cee(){return""}function dee(){return!0}function fee(c,g){if(c=Vt(c),c<1||c>W)return[];var C=pe,O=hi(c,pe);g=Re(g),c-=pe;for(var B=Df(O,g);++C<c;)g(C);return B}function hee(c){return zt(c)?Wn(c,Tl):ba(c)?[c]:Hi($T(An(c)))}function pee(c){var g=++$f;return An(c)+g}var gee=Cg(function(c,g){return c+g},0),mee=R("ceil"),vee=Cg(function(c,g){return c/g},1),yee=R("floor");function bee(c){return c&&c.length?jr(c,Wo,og):n}function See(c,g){return c&&c.length?jr(c,Re(g,2),og):n}function xee(c){return Mf(c,Wo)}function wee(c,g){return Mf(c,Re(g,2))}function Cee(c){return c&&c.length?jr(c,Wo,bl):n}function _ee(c,g){return c&&c.length?jr(c,Re(g,2),bl):n}var kee=Cg(function(c,g){return c*g},1),Eee=R("round"),Pee=Cg(function(c,g){return c-g},0);function Tee(c){return c&&c.length?If(c,Wo):0}function Lee(c,g){return c&&c.length?If(c,Re(g,2)):0}return $.after=ZZ,$.ary=ZT,$.assign=BQ,$.assignIn=dL,$.assignInWith=zb,$.assignWith=FQ,$.at=$Q,$.before=QT,$.bind=Fw,$.bindAll=WJ,$.bindKey=JT
|
|||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dwe(e){return Owe(e)||Mwe(e)||Rwe(e)||Iwe()}function lI(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 uI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lI(Object(n),!0).forEach(function(r){pf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Nwe={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)}},jwe=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};pu(this,e),this.init(t,n)}return gu(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||Nwe,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,uI(uI({},{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}(),Yl=new jwe,nf=function(){function e(){pu(this,e),this.observers={}}return gu(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 uv(){var e,t,n=new Promise(function(r,i){e=r,t=i});return n.resolve=e,n.reject=t,n}function cI(e){return e==null?"":""+e}function Bwe(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function wP(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 dI(e,t,n){var r=wP(e,t,Object),i=r.obj,o=r.k;i[o]=n}function Fwe(e,t,n,r){var i=wP(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 nS(e,t){var n=wP(e,t),r=n.obj,i=n.k;if(r)return r[i]}function fI(e,t,n){var r=nS(e,n);return r!==void 0?r:nS(t,n)}function UW(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]):UW(e[r],t[r],n):e[r]=t[r]);return e}function jg(e){return e.replace
|
|||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cCe(e,t){return aCe(e)||sCe(e,t)||lCe(e,t)||uCe()}function HI(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 OC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HI(Object(n),!0).forEach(function(r){tG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var dCe=function(t,n){var r=w.useRef();return w.useEffect(function(){r.current=n?r.current:t},[t,n]),r.current};function Be(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.i18n,r=w.useContext(iCe)||{},i=r.i18n,o=r.defaultNS,a=n||i||eCe();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new oCe),!a){L8("You will need to pass in an i18next instance by using initReactI18next");var s=function(z){return Array.isArray(z)?z[z.length-1]:z},l=[s,{},!1];return l.t=s,l.i18n={},l.ready=!1,l}a.options.react&&a.options.react.wait!==void 0&&L8("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var u=OC(OC(OC({},Q6e()),a.options.react),t),d=u.useSuspense,h=u.keyPrefix,m=e||o||a.options&&a.options.defaultNS;m=typeof m=="string"?[m]:m||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(m);var y=(a.isInitialized||a.initializedStoreOnce)&&m.every(function(j){return G6e(j,a,u)});function b(){return a.getFixedT(null,u.nsMode==="fallback"?m:m[0],h)}var x=w.useState(b),_=cCe(x,2),k=_[0],E=_[1],P=m.join(),A=dCe(P),M=w.useRef(!0);w.useEffect(function(){var j=u.bindI18n,z=u.bindI18nStore;M.current=!0,!y&&!d&&jI(a,m,function(){M.current&&E(b)}),y&&A&&A!==P&&M.current&&E(b);function H(){M.current&&E(b)}return j&&a&&a.on(j,H),z&&a&&a.store.on(z,H),function(){M.current=!1,j&&a&&j.split(" ").forEach(function(K){return a.off(K,H)}),z&&a&&z.split(" ").forEach(function(K){return a.store.off(K,H)})}},[a,P]);var I=w.useRef(!0);w.useEffect(function(){M.current&&!I.current&&E(b),I.current=!1},[a,h]);var D=[k,a,y];if(D.t=k,D.i18n=a,D.ready=y,y||!y&&!d)return D;throw new Promise(function(j){jI(a,m,function(){j()})})}Dt.use(JW).use(YW).use(rCe).init({fallbackLng:"en",debug:!1,ns:["common","gallery","hotkeys","parameters","settings","modelmanager","toast","tooltip","unifiedcanvas"],backend:{loadPath:"/locales/{{ns}}/{{lng}}.json"},interpolation:{escapeValue:!1},returnNull:!1});const fCe={isConnected:!1,isProcessing:!1,log:[],shouldShowLogViewer:!1,shouldDisplayInProgressType:"latents",shouldDisplayGuides:!0,isGFPGANAvailable:!0,isESRGANAvailable:!0,socketId:"",shouldConfirmOnDelete:!0,openAccordions:[],currentStep:0,totalSteps:0,currentIteration:0,totalIterations:0,currentStatus:Dt.isInitialized?Dt.t("common:statusDisconnected"):"Disconnected",currentStatusHasSteps:!1,model:"",model_id:"",model_hash:"",app_id:"",app_version:"",model_list:{},infill_methods:[],hasError:!1,wasErrorSeen:!0,isCancelable:!0,saveIntermediatesInterval:5,enableImageDebugging:!1,toastQueue:[],searchFolder:null,foundModels:null,openModel:null},rG=gp({name:"system",initialState:fCe,reducers:{setShouldDisplayInProgressType:(e,t)=>{e.shouldDisplayInProgressType=t.payload},setIsProcessing:(e,t)=>{e.isProcessing=t.payload},setCurrentStatus:(e,t)=>{e.currentStatus=t.payload},setSystemStatus:(e,t)=>({...e,...t.payload}),errorOccurred:e=>{e.hasError=!0,e.isProcessing=!1,e.isCancelable=!0,e.currentStep=0,e.totalSteps=0,e.currentIteration=0,e.totalIterations=0,e.currentStatusHasSteps=!1,e.currentStatus=Dt.t("common:statusError"),e.wasErrorSeen=!1},errorSeen:e=>{e.hasError=!1,e.wasErrorSeen=!0,e.currentStatus=e.isConnected?Dt.t("common:statusConnected"):Dt.t("common:statusDisconnected")},addLogEntry:(e,t)=>{const{timestamp:n,message:r,level:i}=t.payload,a={timestamp:n,message:r,level:i
|
|||
|
`),n=+this.fontSize(),r=0,i=this.lineHeight()*n,o=this.attrs.width,a=this.attrs.height,s=o!==$g&&o!==void 0,l=a!==$g&&a!==void 0,u=this.padding(),d=o-u*2,h=a-u*2,m=0,y=this.wrap(),b=y!==yD,x=y!==X9e&&b,_=this.ellipsis();this.textArr=[],$C().font=this._getContextFont();for(var k=_?this._getTextWidth(FC):0,E=0,P=t.length;E<P;++E){var A=t[E],M=this._getTextWidth(A);if(s&&M>d)for(;A.length>0;){for(var I=0,D=A.length,j="",z=0;I<D;){var H=I+D>>>1,K=A.slice(0,H+1),te=this._getTextWidth(K)+k;te<=d?(I=H+1,j=K,z=te):D=H}if(j){if(x){var G,F=A[j.length],U=F===U3||F===mD;U&&z<=d?G=j.length:G=Math.max(j.lastIndexOf(U3),j.lastIndexOf(mD))+1,G>0&&(I=G,j=j.slice(0,I),z=this._getTextWidth(j))}j=j.trimRight(),this._addTextLine(j),r=Math.max(r,z),m+=i;var X=this._shouldHandleEllipsis(m);if(X){this._tryToAddEllipsisToLastLine();break}if(A=A.slice(I),A=A.trimLeft(),A.length>0&&(M=this._getTextWidth(A),M<=d)){this._addTextLine(A),m+=i,r=Math.max(r,M);break}}else break}else this._addTextLine(A),m+=i,r=Math.max(r,M),this._shouldHandleEllipsis(m)&&E<P-1&&this._tryToAddEllipsisToLastLine();if(l&&m+i>h)break;this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0)}this.textHeight=n,this.textWidth=r}_shouldHandleEllipsis(t){var n=+this.fontSize(),r=this.lineHeight()*n,i=this.attrs.height,o=i!==$g&&i!==void 0,a=this.padding(),s=i-a*2,l=this.wrap(),u=l!==yD;return!u||o&&t+r>s}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,n=t!==$g&&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+FC)<i;s||(a.text=a.text.slice(0,a.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+FC)}}getStrokeScaleEnabled(){return!0}}Or.prototype._fillFunc=J9e;Or.prototype._strokeFunc=e8e;Or.prototype.className=U9e;Or.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];Mr(Or);ee.overWriteSetter(Or,"width",TP());ee.overWriteSetter(Or,"height",TP());ee.addGetterSetter(Or,"fontFamily","Arial");ee.addGetterSetter(Or,"fontSize",12,Ye());ee.addGetterSetter(Or,"fontStyle",QG);ee.addGetterSetter(Or,"fontVariant",QG);ee.addGetterSetter(Or,"padding",0,Ye());ee.addGetterSetter(Or,"align",ZG);ee.addGetterSetter(Or,"verticalAlign",W9e);ee.addGetterSetter(Or,"lineHeight",1,Ye());ee.addGetterSetter(Or,"wrap",K9e);ee.addGetterSetter(Or,"ellipsis",!1,rl());ee.addGetterSetter(Or,"letterSpacing",0,Ye());ee.addGetterSetter(Or,"text","",M0());ee.addGetterSetter(Or,"textDecoration","");var n8e="",eq="normal";function tq(e){e.fillText(this.partialText,0,0)}function nq(e){e.strokeText(this.partialText,0,0)}class xi extends ze{constructor(t){super(t),this.dummyCanvas=he.createCanvasElement(),this.dataArray=[],this.dataArray=zn.parsePathData(this.attrs.data),this.on("dataChange.konva",function(){this.dataArray=zn.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 he.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line hei
|
|||
|
Copyright (c) Microsoft Corporation.
|
|||
|
|
|||
|
Permission to use, copy, modify, and/or distribute this software for any
|
|||
|
purpose with or without fee is hereby granted.
|
|||
|
|
|||
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|||
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|||
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|||
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|||
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|||
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|||
|
PERFORMANCE OF THIS SOFTWARE.
|
|||
|
***************************************************************************** */var a_=function(e,t){return a_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},a_(e,t)};function zLe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a_(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var iu=function(){return iu=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},iu.apply(this,arguments)};function oN(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||t)}var os=function(e,t){return Number(e.toFixed(t))},HLe=function(e,t){return typeof e=="number"?e:t},Li=function(e,t,n){n&&typeof n=="function"&&n(e,t)},VLe=function(e){return-Math.cos(e*Math.PI)/2+.5},ULe=function(e){return e},WLe=function(e){return e*e},GLe=function(e){return e*(2-e)},qLe=function(e){return e<.5?2*e*e:-1+(4-2*e)*e},YLe=function(e){return e*e*e},KLe=function(e){return--e*e*e+1},XLe=function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},ZLe=function(e){return e*e*e*e},QLe=function(e){return 1- --e*e*e*e},JLe=function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},eAe=function(e){return e*e*e*e*e},tAe=function(e){return 1+--e*e*e*e*e},nAe=function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e},AY={easeOut:VLe,linear:ULe,easeInQuad:WLe,easeOutQuad:GLe,easeInOutQuad:qLe,easeInCubic:YLe,easeOutCubic:KLe,easeInOutCubic:XLe,easeInQuart:ZLe,easeOutQuart:QLe,easeInOutQuart:JLe,easeInQuint:eAe,easeOutQuint:tAe,easeInOutQuint:nAe},OY=function(e){typeof e=="number"&&cancelAnimationFrame(e)},Ul=function(e){e.mounted&&(OY(e.animation),e.animate=!1,e.animation=null,e.velocity=null)};function MY(e,t,n,r){if(e.mounted){var i=new Date().getTime(),o=1;Ul(e),e.animation=function(){if(!e.mounted)return OY(e.animation);var a=new Date().getTime()-i,s=a/n,l=AY[t],u=l(s);a>=n?(r(o),e.animation=null):e.animation&&(r(u),requestAnimationFrame(e.animation))},requestAnimationFrame(e.animation)}}function yf(e,t,n,r){var i=rAe(t);if(!(!e.mounted||!i)){var o=e.setTransformState,a=e.transformState,s=a.scale,l=a.positionX,u=a.positionY,d=t.scale-s,h=t.positionX-l,m=t.positionY-u;n===0?o(t.scale,t.positionX,t.positionY):MY(e,r,n,function(y){var b=s+d*y,x=l+h*y,_=u+m*y;o(b,x,_)})}}function rAe(e){var t=e.scale,n=e.positionX,r=e.positionY;return!(isNaN(t)||isNaN(n)||isNaN(r))}function iAe(e,t,n){var r=e.offsetWidth,i=e.offsetHeight,o=t.offsetWidth,a=t.offsetHeight,s=o*n,l=a*n,u=r-s,d=i-l;return{wrapperWidth:r,wrapperHeight:i,newContentWidth:s,newDiffWidth:u,newContentHeight:l,newDiffHeight:d}}var oAe=function(e,t,n,r,i,o,a){var s=e>t?n*(a?1:.5):0,l=r>i?o*(a?1:.5):0,u=e-t-s,d=s,h=r-i-l,m=l;return{minPositionX:u,maxPositionX:d,minPositionY:h,maxPositionY:m}},eT=function(e,t){var n=e.wrapperComponent,r=e.contentComponent,i=e.setup.centerZoomedOut;if(!n||!r)throw new Error("Components are not mounted");var o=iAe(n,r,t),a=o.wrapperWidth,s=o.wrapperHeight,l=o.newContentWidth,u=o.newDiffWidth,d=o.newContentHeight,h=o.newDiffHeight,m=oAe(a,l,u,s,d,h,Boolean(i));return m},f0=function(e,t){var n=eT(e,t);return e.bounds=n,n};function dw(e,t,n,r,i,o,a){var s=n.minPositionX,l=n.minPositionY,u=n.maxPositionX,d=n.maxPositionY,h=0,m=0;a&&(h=i,m=o);var y=s_(e,s-h,u+h,r),b=s_(t,l-m,d+m,r);return{x:y,y:b}}var s_=function(e,t,n,r){return r?e<t?os(t,2):e>n?os(n,2):os(e,2):os(e,2)};function fw(e,t,n,r,i,o){var a=e.transformState,s=a.scale,l=a.positionX,u=a.positionY,d=r-s;if(typeof t!="number"||typeof n!="number")return console.error("Mouse X and Y position were not provided!"),{x:l,y:u};var h=l-t*d,m=u-n*d,y=dw(h,m,i,o,0,0,null);return y}function Xy(e,t,n,r,i){var o=i?r:0,a=t-o;return!isNaN(n)&&e>=n?n:!isNaN(t)&&e<=a?a:e}var aN=function(e,t){var n=e.setup.pann
|
|||
|
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__2jYgh {
|
|||
|
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__2jYgh img {
|
|||
|
pointer-events: none;
|
|||
|
}
|
|||
|
`,hN={wrapper:"transform-component-module_wrapper__1_Fgj",content:"transform-component-module_content__2jYgh"};KAe(XAe);var ZAe=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=w.useContext(HY).setComponents,u=w.useRef(null),d=w.useRef(null);return w.useEffect(function(){var h=u.current,m=d.current;h!==null&&m!==null&&l&&l(h,m)},[]),N.createElement("div",{ref:u,className:"react-transform-wrapper "+hN.wrapper+" "+r,style:a},N.createElement("div",{ref:d,className:"react-transform-component "+hN.content+" "+o,style:s},t))};function QAe({image:e,alt:t,ref:n,styleClass:r}){const[i,o]=w.useState(0),[a,s]=w.useState(!1),l=()=>{o(i===-3?0:i-1)},u=()=>{o(i===3?0:i+1)},d=()=>{s(!a)};return v.jsx(YAe,{centerOnInit:!0,minScale:.1,initialPositionX:50,initialPositionY:50,children:({zoomIn:h,zoomOut:m,resetTransform:y,centerView:b})=>v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"lightbox-image-options",children:[v.jsx(Je,{icon:v.jsx(j_e,{}),"aria-label":"Zoom In",tooltip:"Zoom In",onClick:()=>h(),fontSize:20}),v.jsx(Je,{icon:v.jsx(B_e,{}),"aria-label":"Zoom Out",tooltip:"Zoom Out",onClick:()=>m(),fontSize:20}),v.jsx(Je,{icon:v.jsx(D_e,{}),"aria-label":"Rotate Left",tooltip:"Rotate Left",onClick:l,fontSize:20}),v.jsx(Je,{icon:v.jsx(N_e,{}),"aria-label":"Rotate Right",tooltip:"Rotate Right",onClick:u,fontSize:20}),v.jsx(Je,{icon:v.jsx(bPe,{}),"aria-label":"Flip Image",tooltip:"Flip Image",onClick:d,fontSize:20}),v.jsx(Je,{icon:v.jsx(Zx,{}),"aria-label":"Reset",tooltip:"Reset",onClick:()=>{y(),o(0),s(!1)},fontSize:20})]}),v.jsx(ZAe,{wrapperStyle:{width:"100%",height:"100%"},children:v.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 JAe(){const e=Oe(),t=de(m=>m.lightbox.isLightboxOpen),{viewerImageToDisplay:n,shouldShowImageDetails:r,isOnFirstImage:i,isOnLastImage:o}=de(Uq),[a,s]=w.useState(!1),l=()=>{s(!0)},u=()=>{s(!1)},d=()=>{e(bP())},h=()=>{e(yP())};return et("Esc",()=>{t&&e(Vm(!1))},[t]),v.jsxs("div",{className:"lightbox-container",children:[v.jsx(Je,{icon:v.jsx(I_e,{}),"aria-label":"Exit Viewer",className:"lightbox-close-btn",onClick:()=>{e(Vm(!1))},fontSize:20}),v.jsxs("div",{className:"lightbox-display-container",children:[v.jsxs("div",{className:"lightbox-preview-wrapper",children:[v.jsx(Hq,{}),!r&&v.jsxs("div",{className:"current-image-next-prev-buttons",children:[v.jsx("div",{className:"next-prev-button-trigger-area prev-button-trigger-area",onMouseOver:l,onMouseOut:u,children:a&&!i&&v.jsx(us,{"aria-label":"Previous image",icon:v.jsx(Oq,{className:"next-prev-button"}),variant:"unstyled",onClick:d})}),v.jsx("div",{className:"next-prev-button-trigger-area next-button-trigger-area",onMouseOver:l,onMouseOut:u,children:a&&!o&&v.jsx(us,{"aria-label":"Next image",icon:v.jsx(Mq,{className:"next-prev-button"}),variant:"unstyled",onClick:h})})]}),n&&v.jsxs(v.Fragment,{children:[v.jsx(QAe,{image:n.url,styleClass:"lightbox-image"}),r&&v.jsx(GP,{image:n})]})]}),v.jsx(LY,{})]})]})}function eOe(e){return mt({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 tOe=dt(Cp,e=>({resultImages:e.categories.result.images,userImages:e.categories.user.images})),nOe=()=>{const{resultImages:e,userImages:t}=de(tOe);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}},rOe=dt([xp,Xx,Hr],(e,t,n)=>{const{shouldShowDualDisplay:r,shouldPinParametersPanel:i}=e,{isLightboxOpen:o}=t;return{shouldShowDualDisplay:r,shouldPinParametersPanel:i,isLightboxOpen:o,shouldShowDualDisplayButton:["inpainting"].includes(n),activeTabName:n}},{memoizeOptions:{resultEqualityCheck:Te.isEqual}}),nT=e=>{const t=Oe(),{optionsPanel:n,children:r,styleClass:i}=e,{activeTabName:o,shouldShowDualDisplay:a,isLightboxOpen:s,shouldShowDualDisplayButton:l}=de(rOe),u=nOe(),d=()=>{t(RCe(!a)),t(yi(!0))},h=m=>{const y=m.dataTransfer.getDa
|
|||
|
* @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 zOe=function(t){var n={},r=w,i=Hh,o=Object.assign;function a(f){for(var p="https://reactjs.org/docs/error-decoder.html?invariant="+f,S=1;S<arguments.length;S++)p+="&args[]="+encodeURIComponent(arguments[S]);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"),m=Symbol.for("react.profiler"),y=Symbol.for("react.provider"),b=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),M=Symbol.iterator;function I(f){return f===null||typeof f!="object"?null:(f=M&&f[M]||f["@@iterator"],typeof f=="function"?f:null)}function D(f){if(f==null)return null;if(typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case d:return"Fragment";case u:return"Portal";case m:return"Profiler";case h:return"StrictMode";case _:return"Suspense";case k: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 x:var p=f.render;return f=f.displayName,f||(f=p.displayName||p.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case E:return p=f.displayName||null,p!==null?p:D(f.type)||"Memo";case P:p=f._payload,f=f._init;try{return D(f(p))}catch{}}return null}function j(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 D(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 z(f){var p=f,S=f;if(f.alternate)for(;p.return;)p=p.return;else{f=p;do p=f,p.flags&4098&&(S=p.return),f=p.return;while(f)}return p.tag===3?S:null}function H(f){if(z(f)!==f)throw Error(a(188))}function K(f){var p=f.alternate;if(!p){if(p=z(f),p===null)throw Error(a(188));return p!==f?null:f}for(var S=f,T=p;;){var L=S.return;if(L===null)break;var R=L.alternate;if(R===null){if(T=L.return,T!==null){S=T;continue}break}if(L.child===R.child){for(R=L.child;R;){if(R===S)return H(L),f;if(R===T)return H(L),p;R=R.sibling}throw Error(a(188))}if(S.return!==T.return)S=L,T=R;else{for(var q=!1,le=L.child;le;){if(le===S){q=!0,S=L,T=R;break}if(le===T){q=!0,T=L,S=R;break}le=le.sibling}if(!q){for(le=R.child;le;){if(le===S){q=!0,S=R,T=L;break}if(le===T){q=!0,T=R,S=L;break}le=le.sibling}if(!q)throw Error(a(189))}}if(S.alternate!==T)throw Error(a(190))}if(S.tag!==3)throw Error(a(188));return S.stateNode.current===S?f:p}function te(f){return f=K(f),f!==null?G(f):null}function G(f){if(f.tag===5||f.tag===6)return f;for(f=f.child;f!==null;){var p=G(f);if(p!==null)return p;f=f.sibling}return null}function F(f){if(f.tag===5||f.tag===6)return f;for(f=f.child;f!==null;){if(f.tag!==4){var p=F(f);if(p!==null)return p}f=f.sibling}return null}var U=Array.isArray,X=t.getPublicInstance,Z=t.getRootHostContext,W=t.getChildHostContext,Q=t.prepareForCommit,re=t.resetAfterCommit,pe=t.createInstance,_e=t.appendInitialChild,Ce=t.finalizeInitialChildren,fe=t.prepareUpdate,He=t.shouldSetTextContent,Me=t.createTextInstance,rt=t.scheduleTimeout,We=t.cancelTimeout,Fe=t.noTimeout,wt=t.isPrimaryRenderer,$e=t.supportsMutation,at=t.supportsPersistence,bt=t.supports
|
|||
|
`+yu+f}var sl=!1;function Su(f,p){if(!f||sl)return"";sl=!0;var S=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(Ge){var T=Ge}Reflect.construct(f,[],p)}else{try{p.call()}catch(Ge){T=Ge}f.call(p.prototype)}else{try{throw Error()}catch(Ge){T=Ge}f()}}catch(Ge){if(Ge&&T&&typeof Ge.stack=="string"){for(var L=Ge.stack.split(`
|
|||
|
`),R=T.stack.split(`
|
|||
|
`),q=L.length-1,le=R.length-1;1<=q&&0<=le&&L[q]!==R[le];)le--;for(;1<=q&&0<=le;q--,le--)if(L[q]!==R[le]){if(q!==1||le!==1)do if(q--,le--,0>le||L[q]!==R[le]){var ge=`
|
|||
|
`+L[q].replace(" at new "," at ");return f.displayName&&ge.includes("<anonymous>")&&(ge=ge.replace("<anonymous>",f.displayName)),ge}while(1<=q&&0<=le);break}}}finally{sl=!1,Error.prepareStackTrace=S}return(f=f?f.displayName||f.name:"")?bu(f):""}var Rp=Object.prototype.hasOwnProperty,Cc=[],ll=-1;function oa(f){return{current:f}}function Dn(f){0>ll||(f.current=Cc[ll],Cc[ll]=null,ll--)}function Tn(f,p){ll++,Cc[ll]=f.current,f.current=p}var aa={},Vr=oa(aa),ui=oa(!1),sa=aa;function ul(f,p){var S=f.type.contextTypes;if(!S)return aa;var T=f.stateNode;if(T&&T.__reactInternalMemoizedUnmaskedChildContext===p)return T.__reactInternalMemoizedMaskedChildContext;var L={},R;for(R in S)L[R]=p[R];return T&&(f=f.stateNode,f.__reactInternalMemoizedUnmaskedChildContext=p,f.__reactInternalMemoizedMaskedChildContext=L),L}function ci(f){return f=f.childContextTypes,f!=null}function bs(){Dn(ui),Dn(Vr)}function Cf(f,p,S){if(Vr.current!==aa)throw Error(a(168));Tn(Vr,p),Tn(ui,S)}function xu(f,p,S){var T=f.stateNode;if(p=p.childContextTypes,typeof T.getChildContext!="function")return S;T=T.getChildContext();for(var L in T)if(!(L in p))throw Error(a(108,j(f)||"Unknown",L));return o({},S,T)}function Ss(f){return f=(f=f.stateNode)&&f.__reactInternalMemoizedMergedChildContext||aa,sa=Vr.current,Tn(Vr,f),Tn(ui,ui.current),!0}function _f(f,p,S){var T=f.stateNode;if(!T)throw Error(a(169));S?(f=xu(f,p,sa),T.__reactInternalMemoizedMergedChildContext=f,Dn(ui),Dn(Vr),Tn(Vr,f)):Dn(ui),Tn(ui,S)}var Di=Math.clz32?Math.clz32:kf,Ip=Math.log,Dp=Math.LN2;function kf(f){return f>>>=0,f===0?32:31-(Ip(f)/Dp|0)|0}var cl=64,Io=4194304;function dl(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 wu(f,p){var S=f.pendingLanes;if(S===0)return 0;var T=0,L=f.suspendedLanes,R=f.pingedLanes,q=S&268435455;if(q!==0){var le=q&~L;le!==0?T=dl(le):(R&=q,R!==0&&(T=dl(R)))}else q=S&~L,q!==0?T=dl(q):R!==0&&(T=dl(R));if(T===0)return 0;if(p!==0&&p!==T&&!(p&L)&&(L=T&-T,R=p&-p,L>=R||L===16&&(R&4194240)!==0))return p;if(T&4&&(T|=S&16),p=f.entangledLanes,p!==0)for(f=f.entanglements,p&=T;0<p;)S=31-Di(p),L=1<<S,T|=f[S],p&=~L;return T}function J0(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 S=f.suspendedLanes,T=f.pingedLanes,L=f.expirationTimes,R=f.pendingLanes;0<R;){var q=31-Di(R),le=1<<q,ge=L[q];ge===-1?(!(le&S)||le&T)&&(L[q]=J0(le,p)):ge<=p&&(f.expiredLanes|=le),R&=~le}}function kc(f){return f=f.pendingLanes&-1073741825,f!==0?f:f&1073741824?1073741824:0}function Ef(){var f=cl;return cl<<=1,!(cl&4194240)&&(cl=64),f}function Ec(f){for(var p=[],S=0;31>S;S++)p.push(f);return p}function Fa(f,p,S){f.pendingLanes|=p,p!==536870912&&(f.suspendedLanes=0,f.pingedLanes=0),f=f.eventTimes,p=31-Di(p),f[p]=S}function Pf(f,p){var S=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 T=f.eventTimes;for(f=f.expirationTimes;0<S;){var L=31-Di(S),R=1<<L;p[L]=0,T[L]=-1,f[L]=-1,S&=~R}}function Cu(f,p){var S=f.entangledLanes|=p;for(f=f.entanglements;S;){var T=31-Di(S),L=1<<T;L&p|f[T]&p&&(f[T]|=p),S&=~L}}var Kt=0;function Np(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:L,digest:null}}function m1(f,p,S){return{value:f,source:null,stack:S??null,digest:p??null}}function qc(f,p){try{console.error(p.value)}catch(S){setTimeout(function(){throw S})}}var Gf=typeof WeakMap=="function"?WeakMap:Map;function v1(f,p,S){S=ws(-1,S),S.tag=3,S.payload={element:null};var T=p.value;return S.callback=function(){Xf||(Xf=!0,Zf=T),qc(f,p)},S}function $(f,p,S){S=ws(-1,S),S.tag=3;var T=f.type.getDerivedStateFromError;if(typeof T=="function"){var L=p.value;S.payload=function(){return T(L)},S.callback=function(){qc(f,p)}}var R=f.stateNode;return R!==null&&typeof R.componentDidCatch=="function"&&(S.callback=function(){qc(f,p),typeof T!="function"&&(wl===null?wl=new Set([this]):wl.add(this));var q=p.stack;this.componentDidCatch(p.value,{componentStack:q!==null?q:""})}),S}function Tu(f,p,S){var T=f.pingCache;if(T===null){T=f.pingCache=new Gf;var L=new Set;T.set(p,L)}else L=T.get(p),L===void 0&&(L=new Set,T.set(p,L));L.has(S)||(L.add(S),f=Ab.bind(null,f,p,S),p.then(f,f))}function qf(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 po(f,p,S,T,L){return f.mode&1?(f.flags|=65536,f.lanes=L,f):(f===p?f.flags|=65536:(f.flags|=128,S.flags|=131072,S.flags&=-52805,S.tag===1&&(S.alternate===null?S.tag=17:(p=ws(-1,1),p.tag=2,pl(S,p,1))),S.lanes|=1),f)}var Qt=s.ReactCurrentOwner,no=!1;function Fi(f,p,S,T){p.child=f===null?cb(p,null,S,T):Ic(p,f.child,S,T)}function yb(f,p,S,T,L){S=S.render;var R=p.ref;return Mc(p,L),T=u1(f,p,S,T,R,L),S=jc(),f!==null&&!no?(p.updateQueue=f.updateQueue,p.flags&=-2053,f.lanes&=~L,_s(f,p,L)):(Un&&S&&Ni(p),p.flags|=1,Fi(f,p,T,L),p.child)}function ml(f,p,S,T,L){if(f===null){var R=S.type;return typeof R=="function"&&!B1(R)&&R.defaultProps===void 0&&S.compare===null&&S.defaultProps===void 0?(p.tag=15,p.type=R,bb(f,p,R,T,L)):(f=th(S.type,null,T,p,p.mode,L),f.ref=p.ref,f.return=p,p.child=f)}if(R=f.child,!(f.lanes&L)){var q=R.memoizedProps;if(S=S.compare,S=S!==null?S:_u,S(q,T)&&f.ref===p.ref)return _s(f,p,L)}return p.flags|=1,f=vo(R,T),f.ref=p.ref,f.return=p,p.child=f}function bb(f,p,S,T,L){if(f!==null){var R=f.memoizedProps;if(_u(R,T)&&f.ref===p.ref)if(no=!1,p.pendingProps=T=R,(f.lanes&L)!==0)f.flags&131072&&(no=!0);else return p.lanes=f.lanes,_s(f,p,L)}return y1(f,p,S,T,L)}function Sb(f,p,S){var T=p.pendingProps,L=T.children,R=f!==null?f.memoizedState:null;if(T.mode==="hidden")if(!(p.mode&1))p.memoizedState={baseLanes:0,cachePool:null,transitions:null},Tn(bl,go),go|=S;else{if(!(S&1073741824))return f=R!==null?R.baseLanes|S:S,p.lanes=p.childLanes=1073741824,p.memoizedState={baseLanes:f,cachePool:null,transitions:null},p.updateQueue=null,Tn(bl,go),go|=f,null;p.memoizedState={baseLanes:0,cachePool:null,transitions:null},T=R!==null?R.baseLanes:S,Tn(bl,go),go|=T}else R!==null?(T=R.baseLanes|S,p.memoizedState=null):T=S,Tn(bl,go),go|=T;return Fi(f,p,L,S),p.child}function xb(f,p){var S=p.ref;(f===null&&S!==null||f!==null&&f.ref!==S)&&(p.flags|=512,p.flags|=2097152)}function y1(f,p,S,T,L){var R=ci(S)?sa:Vr.current;return R=ul(p,R),Mc(p,L),S=u1(f,p,S,T,R,L),T=jc(),f!==null&&!no?(p.updateQueue=f.updateQueue,p.flags&=-2053,f.lanes&=~L,_s(f,p,L)):(Un&&T&&Ni(p),p.flags|=1,Fi(f,p,S,L),p.child)}function wb(f,p,S,T,L){if(ci(S)){var R=!0;Ss(p)}else R=!1;if(Mc(p,L),p.stateNode===null)Ua(f,p),sb(p,S,T),o1(p,S,T,L),T=!0;else if(f===null){var q=p.stateNode,le=p.memoizedProps;q.props=le;var ge=q.context,Ge=S.contextType;typeof Ge=="object"&&Ge!==null?Ge=ho(Ge):(Ge=ci(S)?sa:Vr.current,Ge=ul(p,Ge));var ft=S.getDerivedStateFromProps,Bt=typeof ft=="function"||typeof q.getSnapshotBeforeUpdate=="function";Bt||typeof q.UNSAFE_componentWillReceiveProps!="function"&&typeof q.componentWillReceiveProps!="function"||(le!==T||ge!==Ge)&&lb(p,q,T,Ge),xs=!1;var ot=p.memoizedState;q.state=ot,Up(p,T,q,L),ge=p.memoizedState,le!==T||ot!==ge||ui.current||xs?(typeof ft=="function"&&(Gp(p,S,ft,T),ge=p.memoizedState),(le=xs||jf(p,S,le,T,ot,ge,Ge))?(Bt||typeof q.UNSAFE_componentWillMount!="function"&&typeof q.componentW
|
|||
|
`+(T.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 X(f.child.stateNode);default:return f.child.stateNode}},n.injectIntoDevTools=function(f){if(f={bundleType:f.bundleType,version:f.version,rendererPackageName:f.rendererPackageName,rendererConfig:f.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:s.ReactCurrentDispatcher,findHostInstanceByFiber:Cg,findFiberByHostInstance:f.findFiberByHostInstance||z1,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{gn=p.inject(f),Xt=p}catch{}f=!!p.checkDCE}}return f},n.isAlreadyRendering=function(){return!1},n.observeVisibleRects=function(f,p,S,T){if(!ae)throw Error(a(363));f=L1(f,p);var L=Nt(f,S,T).disconnect;return{disconnect:function(){L()}}},n.registerMutableSourceForHydration=function(f,p){var S=p._getVersion;S=S(p._source),f.mutableSourceEagerHydrationData==null?f.mutableSourceEagerHydrationData=[p,S]:f.mutableSourceEagerHydrationData.push(p,S)},n.runWithPriority=function(f,p){var S=Kt;try{return Kt=f,p()}finally{Kt=S}},n.shouldError=function(){return null},n.shouldSuspend=function(){return!1},n.updateContainer=function(f,p,S,T){var L=p.current,R=Ei(),q=Yr(L);return S=F1(S),p.context===null?p.context=S:p.pendingContext=S,p=ws(R,q),p.payload={element:f},T=T===void 0?null:T,T!==null&&(p.callback=T),f=pl(L,p,q),f!==null&&(zo(f,L,q,R),Vp(f,L,q)),q},n};(function(e){e.exports=zOe})($Oe);const HOe=__(l_);var gS={},VOe={get exports(){return gS},set exports(e){gS=e}},kp={};/**
|
|||
|
* @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.
|
|||
|
*/kp.ConcurrentRoot=1;kp.ContinuousEventPriority=4;kp.DefaultEventPriority=16;kp.DiscreteEventPriority=1;kp.IdleEventPriority=536870912;kp.LegacyRoot=0;(function(e){e.exports=kp})(VOe);const xN={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let wN=!1,CN=!1;const pT=".react-konva-event",UOe=`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
|
|||
|
`,WOe=`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
|
|||
|
`,GOe={};function pw(e,t,n=GOe){if(!wN&&"zIndex"in t&&(console.warn(WOe),wN=!0),!CN&&t.draggable){var r=t.x!==void 0||t.y!==void 0,i=t.onDragEnd||t.onDragMove;r&&!i&&(console.warn(UOe),CN=!0)}for(var o in n)if(!xN[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={},m=!1;const y={};for(var o in t)if(!xN[o]){var a=o.slice(0,2)==="on",b=n[o]!==t[o];if(a&&b){var l=o.substr(2).toLowerCase();l.substr(0,7)==="content"&&(l="content"+l.substr(7,1).toUpperCase()+l.substr(8)),t[o]&&(y[l]=t[o])}!a&&(t[o]!==n[o]||d&&t[o]!==e.getAttr(o))&&(m=!0,h[o]=t[o])}m&&(e.setAttrs(h),bf(e));for(var l in y)e.on(l+pT,y[l])}function bf(e){if(!gt.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const XY={},qOe={};ip.Node.prototype._applyProps=pw;function YOe(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),bf(e)}function KOe(e,t,n){let r=ip[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=ip.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 pw(l,o),l}function XOe(e,t,n){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function ZOe(e,t,n){return!1}function QOe(e){return e}function JOe(){return null}function eMe(){return null}function tMe(e,t,n,r){return qOe}function nMe(){}function rMe(e){}function iMe(e,t){return!1}function oMe(){return XY}function aMe(){return XY}const sMe=setTimeout,lMe=clearTimeout,uMe=-1;function cMe(e,t){return!1}const dMe=!1,fMe=!0,hMe=!0;function pMe(e,t){t.parent===e?t.moveToTop():e.add(t),bf(e)}function gMe(e,t){t.parent===e?t.moveToTop():e.add(t),bf(e)}function ZY(e,t,n){t._remove(),e.add(t),t.setZIndex(n.getZIndex()),bf(e)}function mMe(e,t,n){ZY(e,t,n)}function vMe(e,t){t.destroy(),t.off(pT),bf(e)}function yMe(e,t){t.destroy(),t.off(pT),bf(e)}function bMe(e,t,n){console.error(`Text components are not yet supported in ReactKonva. You text is: "${n}"`)}function SMe(e,t,n){}function xMe(e,t,n,r,i){pw(e,i,r)}function wMe(e){e.hide(),bf(e)}function CMe(e){}function _Me(e,t){(t.visible==null||t.visible)&&e.show()}function kMe(e,t){}function EMe(e){}function PMe(){}const TMe=()=>gS.DefaultEventPriority,LMe=Object.freeze(Object.defineProperty({__proto__:null,appendChild:pMe,appendChildToContainer:gMe,appendInitialChild:YOe,cancelTimeout:lMe,clearContainer:EMe,commitMount:SMe,commitTextUpdate:bMe,commitUpdate:xMe,createInstance:KOe,createTextInstance:XOe,detachDeletedInstance:PMe,finalizeInitialChildren:ZOe,getChildHostContext:aMe,getCurrentEventPriority:TMe,getPublicInstance:QOe,getRootHostContext:oMe,hideInstance:wMe,hideTextInstance:CMe,idlePriority:Hh.unstable_IdlePriority,insertBefore:ZY,insertInContainerBefore:mMe,isPrimaryRenderer:dMe,noTimeout:uMe,now:Hh.unstable_now,prepareForCommit:JOe,preparePortalMount:eMe,prepareUpdate:tMe,removeChild:vMe,removeChildFromContainer:yMe,resetAfterCommit:nMe,resetTextContent:rMe,run:Hh.unstable_runWithPriority,scheduleTimeout:sMe,shouldDeprioritizeSubtree:iMe,shouldSetTextContent:cMe,supportsMutation:hMe,unhideInstance:_Me,unhideTextInstance:kMe,warnsIfNotActing:fMe},Symbol.toStringTag,{value:"Module"}));var AMe=Object.defineProperty,OMe=Object.defineProperties,MMe=Object.getOwnPropertyDescriptors,_N=Object.getOwnPropertySymbols,RMe=Object.prototype.hasOwnProperty,IMe=Object.prototype.propertyIsEnumerable,kN=(e,t,n)=>t in e?AMe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,EN=(e,t)=>{for(var n in t||(t={}))RMe.call(t,n)&&kN(e,n,t[n]);if(_N)for(var n of _N(t))IMe.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),dRe=e=>{const{...t}=e,{maskColorString:n,stageCoordinates:r,stageDimensions:i,stageScale:o}=de(cRe),[a,s]=w.useState(null),[l,u]=w.useState(0),d=w.useRef(null),h=w.useCallback(()=>{u(l+1),setTimeout(h,500)},[l]);return w.useEffect(()=>{if(a)return;const m=new Image;m.onload=()=>{s(m)},m.src=TN(n)},[a,n]),w.useEffect(()=>{a&&(a.src=TN(n))},[a,n]),w.useEffect(()=>{const m=setInterval(()=>u(y=>(y+1)%5),50);return()=>clearInterval(m)},[]),!a||!Te.isNumber(r.x)||!Te.isNumber(r.y)||!Te.isNumber(o)||!Te.isNumber(i.width)||!Te.isNumber(i.height)?null:v.jsx(cc,{ref:d,offsetX:r.x/o,offsetY:r.y/o,height:i.height/o,width:i.width/o,fillPatternImage:a,fillPatternOffsetY:Te.isNumber(l)?l:0,fillPatternRepeat:"repeat",fillPatternScale:{x:1/o,y:1/o},listening:!0,globalCompositeOperation:"source-in",...t})},fRe=dt([ln],e=>({objects:e.layerState.objects}),{memoizeOptions:{resultEqualityCheck:Te.isEqual}}),hRe=e=>{const{...t}=e,{objects:n}=de(fRe);return v.jsx(uc,{listening:!1,...t,children:n.filter(gP).map((r,i)=>v.jsx(mS,{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 fh=w,pRe=function(t,n,r){const i=fh.useRef("loading"),o=fh.useRef(),[a,s]=fh.useState(0),l=fh.useRef(),u=fh.useRef(),d=fh.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),fh.useLayoutEffect(function(){if(!t)return;var h=document.createElement("img");function m(){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",m),h.addEventListener("error",y),n&&(h.crossOrigin=n),r&&(h.referrerpolicy=r),h.src=t,function(){h.removeEventListener("load",m),h.removeEventListener("error",y)}},[t,n,r]),[o.current,i.current]};const nK=e=>{const{url:t,x:n,y:r}=e,[i]=pRe(t);return v.jsx(eK,{x:n,y:r,image:i,listening:!1})},gRe=dt([ln],e=>{const{layerState:{objects:t}}=e;return{objects:t}},{memoizeOptions:{resultEqualityCheck:Te.isEqual}}),mRe=()=>{const{objects:e}=de(gRe);return e?v.jsx(uc,{name:"outpainting-objects",listening:!1,children:e.map((t,n)=>{if(X5(t))return v.jsx(nK,{x:t.x,y:t.y,url:t.image.url},n);if(Rxe(t)){const r=v.jsx(mS,{points:t.points,stroke:t.color?Gh(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?v.jsx(uc,{clipX:t.clip.x,clipY:t.clip.y,clipWidth:t.clip.width,clipHeight:t.clip.height,children:r},n):r}else{if(Ixe(t))return v.jsx(cc,{x:t.x,y:t.y,width:t.width,height:t.height,fill:Gh(t.color)},n);if(Dxe(t))return v.jsx(cc,{x:t.x,y:t.y,width:t.width,height:t.height,fill:"rgb(255, 255, 255)",globalCompositeOperation:"destination-out"},n)}})}):null},vRe=dt([ln],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:Te.isEqual}}),yRe=e=>{const{...t}=e,{currentStagingAreaImage:n,shouldShowStagingImage:r,shouldShowStagingOutline:i,x:o,y:a,width:s,height:l}=de(vRe);return v.jsxs(uc,{...t,children:[r&&n&&v.jsx(nK,{url:n.image.url,x:o,y:a}),i&&v.jsxs(uc,{children:[v.jsx(cc,{x:o,y:a,width:s,height:l,strokeWidth:1,stroke:"white",strokeScaleEnabled:!1}),v.jsx(cc,{x:o,y:a,width:s,height:l,dash:[4,4],strokeWidth:1,stroke:"black",strokeScaleEnabled:!1})]})]})},bRe=dt([ln],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 dDe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fDe(e){if(Array.isArray(e))return h_(e)}function DN(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 NN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DN(Object(n),!0).forEach(function(r){mK(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mK(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 gDe(e)||pDe(e,t)||vK(e,t)||hDe()}function hDe(){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 vK(e,t){if(e){if(typeof e=="string")return h_(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 h_(e,t)}}function h_(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 pDe(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 gDe(e){if(Array.isArray(e))return e}var mDe="file-invalid-type",vDe="file-too-large",yDe="file-too-small",bDe="too-many-files",SDe=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:mDe,message:"File type must be ".concat(n)}},jN=function(t){return{code:vDe,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},BN=function(t){return{code:yDe,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},xDe={code:bDe,message:"Too many files"};function yK(e,t){var n=e.type==="application/x-moz-file"||uDe(e,t);return[n,n?null:SDe(t)]}function bK(e,t,n){if(_h(e.size))if(_h(t)&&_h(n)){if(e.size>n)return[!1,jN(n)];if(e.size<t)return[!1,BN(t)]}else{if(_h(t)&&e.size<t)return[!1,BN(t)];if(_h(n)&&e.size>n)return[!1,jN(n)]}return[!0,null]}function _h(e){return e!=null}function wDe(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=yK(l,n),d=hy(u,1),h=d[0],m=bK(l,r,i),y=hy(m,1),b=y[0],x=s?s(l):null;return h&&b&&!x})}function bS(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function t4(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 FN(e){e.preventDefault()}function CDe(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function _De(e){return e.indexOf("Edge/")!==-1}function kDe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return CDe(e)||_De(e)}function Il(){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!bS(r)&&s&&s.apply(void 0,[r].concat(o)),bS(r)})}}function EDe(){return"showOpenFilePicker"in window}function PDe(e){if(_h(e)){var t=Object.entries(e).filter(function(n){var r=hy(n,2),i=r[0],o=r[1],a=!0;return SK(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(xK))&&(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 NN(NN({},n),{},mK({},o,a))},{});return[{description:"Files",accept:t}]}return e}function TDe(e){if(_h(e))return Object.entries(e).reduce(function(t,n){var r=hy(n,2),i=r[0],o=r[1];return[].concat(IN(t),[i],IN(o))},[]).filter(function(t){return SK(t)||xK(t)}).join(",")}function LDe(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function ADe(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function SK(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function xK(e){return/^.*\.[\w]+$/.test(e)}var ODe=["children"],MDe=["open"],RDe=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onD
|
|||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jDe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function BDe(e){if(Array.isArray(e))return p_(e)}function QC(e,t){return zDe(e)||$De(e,t)||wK(e,t)||FDe()}function FDe(){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 wK(e,t){if(e){if(typeof e=="string")return p_(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 p_(e,t)}}function p_(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 $De(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 zDe(e){if(Array.isArray(e))return e}function $N(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 kr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$N(Object(n),!0).forEach(function(r){g_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$N(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function g_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SS(e,t){if(e==null)return{};var n=HDe(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 HDe(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 ST=w.forwardRef(function(e,t){var n=e.children,r=SS(e,ODe),i=_K(r),o=i.open,a=SS(i,MDe);return w.useImperativeHandle(t,function(){return{open:o}},[o]),N.createElement(w.Fragment,null,n(kr(kr({},a),{},{open:o})))});ST.displayName="Dropzone";var CK={disabled:!1,getFilesFromEvent:eDe,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};ST.defaultProps=CK;ST.propTypes={children:jn.func,accept:jn.objectOf(jn.arrayOf(jn.string)),multiple:jn.bool,preventDropOnDocument:jn.bool,noClick:jn.bool,noKeyboard:jn.bool,noDrag:jn.bool,noDragEventsBubbling:jn.bool,minSize:jn.number,maxSize:jn.number,maxFiles:jn.number,disabled:jn.bool,getFilesFromEvent:jn.func,onFileDialogCancel:jn.func,onFileDialogOpen:jn.func,useFsAccessApi:jn.bool,autoFocus:jn.bool,onDragEnter:jn.func,onDragLeave:jn.func,onDragOver:jn.func,onDrop:jn.func,onDropAccepted:jn.func,onDropRejected:jn.func,onError:jn.func,validator:jn.func};var m_={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function _K(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=kr(kr({},CK),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,m=t.onDrop,y=t.onDropAccepted,b=t.onDropRejected,x=t.onFileDialogCancel,_=t.onFileDialogOpen,k=t.useFsAccessApi,E=t.autoFocus,P=t.preventDropOnDocument,A=t.noClick,M=t.noKeyboard,I=t.noDrag,D=t.noDragEventsBubbling,j=t.onError,z=t.validator,H=w.useMemo(function(){return TDe(n)},[n]),K=w.useMemo(function(){return PDe(n)},[n]),te=w.useMemo(function(){return typeof _=="function"?_:zN},[_]),G=w.useMemo(function(){return typeof x=="function"?x:zN},[x]),F=w.useRef(null),U=w.useRef(null),X=w.useReducer(VDe,m_),Z=QC(X,2),W=Z[0],Q=Z[1],re=W.isFocused,pe=W.isFileDialogActive,_e=w.useRef(typeof window<"u"&&window.isSecureContext&&k&&EDe()),Ce=function(){!_e.current&&pe&&setTimeout(function(){if(U.current){var je=U.current.files;je.length||(Q({type:"closeDialog"}),G())}},300)};w.use
|
|||
|
${I.message}`,"");i({title:o("toast:uploadFailed"),description:A,status:"error",isClosable:!0})},[o,i]),d=w.useCallback(async P=>{n(TD({imageFile:P}))},[n]),h=w.useCallback((P,A)=>{A.forEach(M=>{u(M)}),P.forEach(M=>{d(M)})},[d,u]),{getRootProps:m,getInputProps:y,isDragAccept:b,isDragReject:x,isDragActive:_,open:k}=_K({accept:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg",".png"]},noClick:!0,onDrop:h,onDragOver:()=>s(!0),maxFiles:1});l(k),w.useEffect(()=>{const P=A=>{var j;const M=(j=A.clipboardData)==null?void 0:j.items;if(!M)return;const I=[];for(const z of M)z.kind==="file"&&["image/png","image/jpg"].includes(z.type)&&I.push(z);if(!I.length)return;if(A.stopImmediatePropagation(),I.length>1){i({description:o("toast:uploadFailedMultipleImagesDesc"),status:"error",isClosable:!0});return}const D=I[0].getAsFile();if(!D){i({description:o("toast:uploadFailedUnableToLoadDesc"),status:"error",isClosable:!0});return}n(TD({imageFile:D}))};return document.addEventListener("paste",P),()=>{document.removeEventListener("paste",P)}},[o,n,i,r]);const E=["img2img","unifiedCanvas"].includes(r)?` to ${ts[r].tooltip}`:"";return v.jsx(RP.Provider,{value:k,children:v.jsxs("div",{...m({style:{}}),onKeyDown:P=>{P.key},children:[v.jsx("input",{...y()}),t,_&&a&&v.jsx(UDe,{isDragAccept:b,isDragReject:x,overlaySecondaryText:E,setIsHandlingUpload:s})]})})},GDe=dt(Sr,e=>e.log,{memoizeOptions:{resultEqualityCheck:(e,t)=>e.length===t.length}}),qDe=dt(Sr,e=>({shouldShowLogViewer:e.shouldShowLogViewer,hasError:e.hasError,wasErrorSeen:e.wasErrorSeen}),{memoizeOptions:{resultEqualityCheck:Te.isEqual}}),YDe=()=>{const e=Oe(),t=de(GDe),{shouldShowLogViewer:n,hasError:r,wasErrorSeen:i}=de(qDe),[o,a]=w.useState(!0),s=w.useRef(null);w.useLayoutEffect(()=>{s.current!==null&&o&&(s.current.scrollTop=s.current.scrollHeight)},[o,t,n]);const l=()=>{e(oG()),e(MC(!n))};et("`",()=>{e(MC(!n))},[n]),et("esc",()=>{e(MC(!1))});const u=()=>{s.current&&o&&s.current.scrollTop<s.current.scrollHeight-s.current.clientHeight&&a(!1)};return v.jsxs(v.Fragment,{children:[n&&v.jsx(Wq,{defaultSize:{width:"100%",height:200},style:{display:"flex",position:"fixed",left:0,bottom:0,zIndex:9999},maxHeight:"90vh",children:v.jsx("div",{className:"console",ref:s,onScroll:u,children:t.map((d,h)=>{const{timestamp:m,message:y,level:b}=d;return v.jsxs("div",{className:`console-entry console-${b}-color`,children:[v.jsxs("p",{className:"console-timestamp",children:[m,":"]}),v.jsx("p",{className:"console-message",children:y})]},h)})})}),n&&v.jsx(bi,{hasArrow:!0,label:o?"Autoscroll On":"Autoscroll Off",children:v.jsx(us,{className:"console-autoscroll-icon-button","data-autoscroll-enabled":o,size:"sm","aria-label":"Toggle autoscroll",variant:"solid",icon:v.jsx(PEe,{}),onClick:()=>a(!o)})}),v.jsx(bi,{hasArrow:!0,label:n?"Hide Console":"Show Console",children:v.jsx(us,{className:"console-toggle-icon-button","data-error-seen":r||!i,size:"sm",position:"fixed",variant:"solid","aria-label":"Toggle Log Viewer",icon:n?v.jsx(HEe,{}):v.jsx(Iq,{}),onClick:l})})]})},KDe=dt(Sr,e=>({isProcessing:e.isProcessing,currentStep:e.currentStep,totalSteps:e.totalSteps,currentStatusHasSteps:e.currentStatusHasSteps}),{memoizeOptions:{resultEqualityCheck:Te.isEqual}}),XDe=()=>{const{isProcessing:e,currentStep:t,totalSteps:n,currentStatusHasSteps:r}=de(KDe),i=t?Math.round(t*100/n):0;return v.jsx(uU,{value:i,isIndeterminate:e&&!r,className:"progress-bar"})};function ZDe(e){const{title:t,hotkey:n,description:r}=e;return v.jsxs("div",{className:"hotkey-modal-item",children:[v.jsxs("div",{className:"hotkey-info",children:[v.jsx("p",{className:"hotkey-title",children:t}),r&&v.jsx("p",{className:"hotkey-description",children:r})]}),v.jsx("div",{className:"hotkey-key",children:n})]})}function QDe({children:e}){const{isOpen:t,onOpen:n,onClose:r}=Yh(),{t:i}=Be(),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:
|