IOPaint/inpaint/web_app/assets/index-VrFIcmY_.js

166 lines
748 KiB
JavaScript
Raw Normal View History

new file: inpaint/__init__.py new file: inpaint/__main__.py new file: inpaint/api.py new file: inpaint/batch_processing.py new file: inpaint/benchmark.py new file: inpaint/cli.py new file: inpaint/const.py new file: inpaint/download.py new file: inpaint/file_manager/__init__.py new file: inpaint/file_manager/file_manager.py new file: inpaint/file_manager/storage_backends.py new file: inpaint/file_manager/utils.py new file: inpaint/helper.py new file: inpaint/installer.py new file: inpaint/model/__init__.py new file: inpaint/model/anytext/__init__.py new file: inpaint/model/anytext/anytext_model.py new file: inpaint/model/anytext/anytext_pipeline.py new file: inpaint/model/anytext/anytext_sd15.yaml new file: inpaint/model/anytext/cldm/__init__.py new file: inpaint/model/anytext/cldm/cldm.py new file: inpaint/model/anytext/cldm/ddim_hacked.py new file: inpaint/model/anytext/cldm/embedding_manager.py new file: inpaint/model/anytext/cldm/hack.py new file: inpaint/model/anytext/cldm/model.py new file: inpaint/model/anytext/cldm/recognizer.py new file: inpaint/model/anytext/ldm/__init__.py new file: inpaint/model/anytext/ldm/models/__init__.py new file: inpaint/model/anytext/ldm/models/autoencoder.py new file: inpaint/model/anytext/ldm/models/diffusion/__init__.py new file: inpaint/model/anytext/ldm/models/diffusion/ddim.py new file: inpaint/model/anytext/ldm/models/diffusion/ddpm.py new file: inpaint/model/anytext/ldm/models/diffusion/dpm_solver/__init__.py new file: inpaint/model/anytext/ldm/models/diffusion/dpm_solver/dpm_solver.py new file: inpaint/model/anytext/ldm/models/diffusion/dpm_solver/sampler.py new file: inpaint/model/anytext/ldm/models/diffusion/plms.py new file: inpaint/model/anytext/ldm/models/diffusion/sampling_util.py new file: inpaint/model/anytext/ldm/modules/__init__.py new file: inpaint/model/anytext/ldm/modules/attention.py new file: inpaint/model/anytext/ldm/modules/diffusionmodules/__init__.py new file: inpaint/model/anytext/ldm/modules/diffusionmodules/model.py new file: inpaint/model/anytext/ldm/modules/diffusionmodules/openaimodel.py new file: inpaint/model/anytext/ldm/modules/diffusionmodules/upscaling.py new file: inpaint/model/anytext/ldm/modules/diffusionmodules/util.py new file: inpaint/model/anytext/ldm/modules/distributions/__init__.py new file: inpaint/model/anytext/ldm/modules/distributions/distributions.py new file: inpaint/model/anytext/ldm/modules/ema.py new file: inpaint/model/anytext/ldm/modules/encoders/__init__.py new file: inpaint/model/anytext/ldm/modules/encoders/modules.py new file: inpaint/model/anytext/ldm/util.py new file: inpaint/model/anytext/main.py new file: inpaint/model/anytext/ocr_recog/RNN.py new file: inpaint/model/anytext/ocr_recog/RecCTCHead.py new file: inpaint/model/anytext/ocr_recog/RecModel.py new file: inpaint/model/anytext/ocr_recog/RecMv1_enhance.py new file: inpaint/model/anytext/ocr_recog/RecSVTR.py new file: inpaint/model/anytext/ocr_recog/__init__.py new file: inpaint/model/anytext/ocr_recog/common.py new file: inpaint/model/anytext/ocr_recog/en_dict.txt new file: inpaint/model/anytext/ocr_recog/ppocr_keys_v1.txt new file: inpaint/model/anytext/utils.py new file: inpaint/model/base.py new file: inpaint/model/brushnet/__init__.py new file: inpaint/model/brushnet/brushnet.py new file: inpaint/model/brushnet/brushnet_unet_forward.py new file: inpaint/model/brushnet/brushnet_wrapper.py new file: inpaint/model/brushnet/pipeline_brushnet.py new file: inpaint/model/brushnet/unet_2d_blocks.py new file: inpaint/model/controlnet.py new file: inpaint/model/ddim_sampler.py new file: inpaint/model/fcf.py new file: inpaint/model/helper/__init__.py new file: inpaint/model/helper/controlnet_preprocess.py new file: inpaint/model/helper/cpu_text_encoder.py new file: inpaint/model/helper/g_diffuser_bot.py new file: inpaint/model/instruct_pix2pix.py new file: inpaint/model/kandinsky.py new file: inpaint/model/lama.py new file: inpaint/model/ldm.py new file: inpaint/model/manga.py new file: inpaint/model/mat.py new file: inpaint/model/mi_gan.py new file: inpaint/model/opencv2.py new file: inpaint/model/original_sd_configs/__init__.py new file: inpaint/model/original_sd_configs/sd_xl_base.yaml new file: inpaint/model/original_sd_configs/sd_xl_refiner.yaml new file: inpaint/model/original_sd_configs/v1-inference.yaml new file: inpaint/model/original_sd_configs/v2-inference-v.yaml new file: inpaint/model/paint_by_example.py new file: inpaint/model/plms_sampler.py new file: inpaint/model/power_paint/__init__.py new file: inpaint/model/power_paint/pipeline_powerpaint.py new file: inpaint/model/power_paint/power_paint.py new file: inpaint/model/power_paint/power_paint_v2.py new file: inpaint/model/power_paint/powerpaint_tokenizer.py
2024-08-20 21:17:33 +02:00
var Uv=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var j=(e,t,n)=>(Uv(e,t,"read from private field"),n?n.call(e):t.get(e)),ke=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},we=(e,t,n,r)=>(Uv(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var Yf=(e,t,n,r)=>({set _(o){we(e,t,o,n)},get _(){return j(e,t,r)}}),tt=(e,t,n)=>(Uv(e,t,"access private method"),n);function R9(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var Qc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _$={exports:{}},mm={},E$={exports:{}},it={};/**
* @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 Pd=Symbol.for("react.element"),P9=Symbol.for("react.portal"),T9=Symbol.for("react.fragment"),k9=Symbol.for("react.strict_mode"),A9=Symbol.for("react.profiler"),M9=Symbol.for("react.provider"),O9=Symbol.for("react.context"),N9=Symbol.for("react.forward_ref"),D9=Symbol.for("react.suspense"),I9=Symbol.for("react.memo"),L9=Symbol.for("react.lazy"),H_=Symbol.iterator;function F9(e){return e===null||typeof e!="object"?null:(e=H_&&e[H_]||e["@@iterator"],typeof e=="function"?e:null)}var C$={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$$=Object.assign,R$={};function xc(e,t,n){this.props=e,this.context=t,this.refs=R$,this.updater=n||C$}xc.prototype.isReactComponent={};xc.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")};xc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function P$(){}P$.prototype=xc.prototype;function sw(e,t,n){this.props=e,this.context=t,this.refs=R$,this.updater=n||C$}var aw=sw.prototype=new P$;aw.constructor=sw;$$(aw,xc.prototype);aw.isPureReactComponent=!0;var K_=Array.isArray,T$=Object.prototype.hasOwnProperty,lw={current:null},k$={key:!0,ref:!0,__self:!0,__source:!0};function A$(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)T$.call(t,r)&&!k$.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var u=Array(l),f=0;f<l;f++)u[f]=arguments[f+2];o.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:Pd,type:e,key:i,ref:s,props:o,_owner:lw.current}}function j9(e,t){return{$$typeof:Pd,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function cw(e){return typeof e=="object"&&e!==null&&e.$$typeof===Pd}function B9(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var G_=/\/+/g;function Vv(e,t){return typeof e=="object"&&e!==null&&e.key!=null?B9(""+e.key):t.toString(36)}function Oh(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Pd:case P9:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+Vv(s,0):r,K_(o)?(n="",e!=null&&(n=e.replace(G_,"$&/")+"/"),Oh(o,t,n,"",function(f){return f})):o!=null&&(cw(o)&&(o=j9(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(G_,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",K_(e))for(var l=0;l<e.length;l++){i=e[l];var u=r+Vv(i,l);s+=Oh(i,t,n,u,o)}else if(u=F9(e),typeof u=="function")for(e=u.call(e),l=0;!(i=e.next()).done;)i=i.value,u=r+Vv(i,l++),s+=Oh(i,t,n,u,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Xf(e,t,n){if(e==null)return e;var r=[],o=0;return Oh(e,r,"","",function(i){return t.call(n,i,o++)}),r}function z9(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 zn={current:null},Nh={transition:null},U9={ReactCurrentDispatcher:zn,ReactCurrentBatchConfig:Nh,ReactCurrentOwner:lw};it.Children={map:Xf,forEach:function(e,t,n){Xf(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Xf(e,function(){t++}),t},toArray:function(e){return Xf(e,function(t){return t})||[]},only:function(e){if(!cw(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};it.Component=xc;it.Fragment=T9;it.Profiler=A9;it
* @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 W9=d,H9=Symbol.for("react.element"),K9=Symbol.for("react.fragment"),G9=Object.prototype.hasOwnProperty,Y9=W9.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,X9={key:!0,ref:!0,__self:!0,__source:!0};function M$(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)G9.call(t,r)&&!X9.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:H9,type:e,key:i,ref:s,props:o,_owner:Y9.current}}mm.Fragment=K9;mm.jsx=M$;mm.jsxs=M$;_$.exports=mm;var v=_$.exports,X0={},O$={exports:{}},Sr={},N$={exports:{}},D$={};/**
* @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(G,Z){var Q=G.length;G.push(Z);e:for(;0<Q;){var le=Q-1>>>1,L=G[le];if(0<o(L,Z))G[le]=Z,G[Q]=L,Q=le;else break e}}function n(G){return G.length===0?null:G[0]}function r(G){if(G.length===0)return null;var Z=G[0],Q=G.pop();if(Q!==Z){G[0]=Q;e:for(var le=0,L=G.length,ue=L>>>1;le<ue;){var Ne=2*(le+1)-1,Ke=G[Ne],Me=Ne+1,me=G[Me];if(0>o(Ke,Q))Me<L&&0>o(me,Ke)?(G[le]=me,G[Me]=Q,le=Me):(G[le]=Ke,G[Ne]=Q,le=Ne);else if(Me<L&&0>o(me,Q))G[le]=me,G[Me]=Q,le=Me;else break e}}return Z}function o(G,Z){var Q=G.sortIndex-Z.sortIndex;return Q!==0?Q:G.id-Z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var u=[],f=[],m=1,p=null,g=3,y=!1,x=!1,S=!1,E=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(G){for(var Z=n(f);Z!==null;){if(Z.callback===null)r(f);else if(Z.startTime<=G)r(f),Z.sortIndex=Z.expirationTime,t(u,Z);else break;Z=n(f)}}function R(G){if(S=!1,C(G),!x)if(n(u)!==null)x=!0,V(k);else{var Z=n(f);Z!==null&&J(R,Z.startTime-G)}}function k(G,Z){x=!1,S&&(S=!1,_(I),I=-1),y=!0;var Q=g;try{for(C(Z),p=n(u);p!==null&&(!(p.expirationTime>Z)||G&&!ie());){var le=p.callback;if(typeof le=="function"){p.callback=null,g=p.priorityLevel;var L=le(p.expirationTime<=Z);Z=e.unstable_now(),typeof L=="function"?p.callback=L:p===n(u)&&r(u),C(Z)}else r(u);p=n(u)}if(p!==null)var ue=!0;else{var Ne=n(f);Ne!==null&&J(R,Ne.startTime-Z),ue=!1}return ue}finally{p=null,g=Q,y=!1}}var O=!1,A=null,I=-1,z=5,H=-1;function ie(){return!(e.unstable_now()-H<z)}function K(){if(A!==null){var G=e.unstable_now();H=G;var Z=!0;try{Z=A(!0,G)}finally{Z?te():(O=!1,A=null)}}else O=!1}var te;if(typeof b=="function")te=function(){b(K)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,re=U.port2;U.port1.onmessage=K,te=function(){re.postMessage(null)}}else te=function(){E(K,0)};function V(G){A=G,O||(O=!0,te())}function J(G,Z){I=E(function(){G(e.unstable_now())},Z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(G){G.callback=null},e.unstable_continueExecution=function(){x||y||(x=!0,V(k))},e.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<G?Math.floor(1e3/G):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(G){switch(g){case 1:case 2:case 3:var Z=3;break;default:Z=g}var Q=g;g=Z;try{return G()}finally{g=Q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(G,Z){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var Q=g;g=G;try{return Z()}finally{g=Q}},e.unstable_scheduleCallback=function(G,Z,Q){var le=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?le+Q:le):Q=le,G){case 1:var L=-1;break;case 2:L=250;break;case 5:L=1073741823;break;case 4:L=1e4;break;default:L=5e3}return L=Q+L,G={id:m++,callback:Z,priorityLevel:G,startTime:Q,expirationTime:L,sortIndex:-1},Q>le?(G.sortIndex=Q,t(f,G),n(u)===null&&G===n(f)&&(S?(_(I),I=-1):S=!0,J(R,Q-le))):(G.sortIndex=L,t(u,G),x||y||(x=!0,V(k))),G},e.unstable_shouldYield=ie,e.unstable_wrapCallback=function(G){var Z=g;return function(){var Q=g;g=Z;try{return G.apply(this,arguments)}finally{g=Q}}}})(D$);N$.exports=D$;var Z9=N$.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var I$=d,wr=Z9;function de(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 L$=new Set,Fu={};function Fa(e,t){Jl(e,t),Jl(e+"Capture",t)}function Jl(e,t){for(Fu[e]=t,e=0;e<t.length;e++)L$.add(t[e])}var _i=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Z0=Object.prototype.hasOwnProperty,q9=/^[: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]*$/,Y_={},X_={};function Q9(e){return Z0.call(X_,e)?!0:Z0.call(Y_,e)?!1:q9.test(e)?X_[e]=!0:(Y_[e]=!0,!1)}function J9(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 eD(e,t,n,r){if(t===null||typeof t>"u"||J9(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 Un(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var wn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){wn[e]=new Un(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];wn[t]=new Un(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){wn[e]=new Un(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){wn[e]=new Un(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){wn[e]=new Un(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){wn[e]=new Un(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){wn[e]=new Un(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){wn[e]=new Un(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){wn[e]=new Un(e,5,!1,e.toLowerCase(),null,!1,!1)});var uw=/[\-:]([a-z])/g;function dw(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin
`+Wv+e}var Hv=!1;function Kv(e,t){if(!e||Hv)return"";Hv=!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(f){var r=f}Reflect.construct(e,[],t)}else{try{t.call()}catch(f){r=f}e.call(t.prototype)}else{try{throw Error()}catch(f){r=f}e()}}catch(f){if(f&&r&&typeof f.stack=="string"){for(var o=f.stack.split(`
`),i=r.stack.split(`
`),s=o.length-1,l=i.length-1;1<=s&&0<=l&&o[s]!==i[l];)l--;for(;1<=s&&0<=l;s--,l--)if(o[s]!==i[l]){if(s!==1||l!==1)do if(s--,l--,0>l||o[s]!==i[l]){var u=`
`+o[s].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=s&&0<=l);break}}}finally{Hv=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?gu(e):""}function tD(e){switch(e.tag){case 5:return gu(e.type);case 16:return gu("Lazy");case 13:return gu("Suspense");case 19:return gu("SuspenseList");case 0:case 2:case 15:return e=Kv(e.type,!1),e;case 11:return e=Kv(e.type.render,!1),e;case 1:return e=Kv(e.type,!0),e;default:return""}}function ey(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case yl:return"Fragment";case vl:return"Portal";case q0:return"Profiler";case hw:return"StrictMode";case Q0:return"Suspense";case J0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case j$:return(e.displayName||"Context")+".Consumer";case F$:return(e._context.displayName||"Context")+".Provider";case pw:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case mw:return t=e.displayName||null,t!==null?t:ey(e.type)||"Memo";case ns:t=e._payload,e=e._init;try{return ey(e(t))}catch{}}return null}function nD(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 ey(t);case 8:return t===hw?"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 As(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function z$(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function rD(e){var t=z$(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 o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qf(e){e._valueTracker||(e._valueTracker=rD(e))}function U$(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=z$(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function up(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 ty(e,t){var n=t.checked;return jt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function q_(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=As(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 V$(e,t){t=t.checked,t!=null&&fw(e,"checked",t,!1)}function ny(e,t){V$(e,t);var n=As(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")?ry(e,t.type,n):t.hasOwnProperty("defaultValue")&&ry(e,t.type,As(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Q_(e,t,n){if(t.hasOwnProperty("val
`).replace(hI,"")}function ih(e,t,n){if(t=bE(t),bE(e)!==t&&n)throw Error(de(425))}function yp(){}var vy=null,yy=null;function wy(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 xy=typeof setTimeout=="function"?setTimeout:void 0,pI=typeof clearTimeout=="function"?clearTimeout:void 0,SE=typeof Promise=="function"?Promise:void 0,mI=typeof queueMicrotask=="function"?queueMicrotask:typeof SE<"u"?function(e){return SE.resolve(null).then(e).catch(gI)}:xy;function gI(e){setTimeout(function(){throw e})}function i0(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Vu(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Vu(t)}function _s(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 _E(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 Sc=Math.random().toString(36).slice(2),jo="__reactFiber$"+Sc,Yu="__reactProps$"+Sc,Ei="__reactContainer$"+Sc,by="__reactEvents$"+Sc,vI="__reactListeners$"+Sc,yI="__reactHandles$"+Sc;function fa(e){var t=e[jo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ei]||n[jo]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=_E(e);e!==null;){if(n=e[jo])return n;e=_E(e)}return t}e=n,n=e.parentNode}return null}function Ad(e){return e=e[jo]||e[Ei],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Sl(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(de(33))}function xm(e){return e[Yu]||null}var Sy=[],_l=-1;function Fs(e){return{current:e}}function At(e){0>_l||(e.current=Sy[_l],Sy[_l]=null,_l--)}function Rt(e,t){_l++,Sy[_l]=e.current,e.current=t}var Ms={},Rn=Fs(Ms),Qn=Fs(!1),Ta=Ms;function ec(e,t){var n=e.type.contextTypes;if(!n)return Ms;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Jn(e){return e=e.childContextTypes,e!=null}function wp(){At(Qn),At(Rn)}function EE(e,t,n){if(Rn.current!==Ms)throw Error(de(168));Rt(Rn,t),Rt(Qn,n)}function A5(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(de(108,nD(e)||"Unknown",o));return jt({},n,r)}function xp(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ms,Ta=Rn.current,Rt(Rn,e),Rt(Qn,Qn.current),!0}function CE(e,t,n){var r=e.stateNode;if(!r)throw Error(de(169));n?(e=A5(e,t,Ta),r.__reactInternalMemoizedMergedChildContext=e,At(Qn),At(Rn),Rt(Rn,e)):At(Qn),Rt(Qn,n)}var vi=null,bm=!1,s0=!1;function M5(e){vi===null?vi=[e]:vi.push(e)}function wI(e){bm=!0,M5(e)}function js(){if(!s0&&vi!==null){s0=!0;var e=0,t=bt;try{var n=vi;for(bt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}vi=null,bm=!1}catch(o){throw vi!==null&&(vi=vi.slice(e+1)),r5(vw,js),o}finally{bt=t,s0=!1}}return null}var El=[],Cl=0,bp=null,Sp=0,Br=[],zr=0,ka=null,yi=1,wi="";function ra(e,t){El[Cl++]=Sp,El[Cl++]=bp,bp=e,Sp=t}function O5(e,t,n){Br[zr++]=yi,Br[zr++]=wi,Br[zr++]=ka,ka=e;var r=yi;e=wi;var o=32-bo(r)-1;r&=~(1<<o),n+=1;var i=32-bo(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,yi=1<<32-bo(t)+o|n<<o|r,wi=i+e}else yi=1<<i|n<<o|r,wi=e}function $w(e){e.return!==null&&(ra(e,1),O5(e,1,0))}function Rw(e){for(;e===bp;)bp=El[--Cl],El[Cl]=null,Sp=El[--Cl],El[Cl]=null;for(;e===ka;)ka=Br[--zr],Br[zr]=null,wi=Br[--zr],Br[zr]=null,yi=Br[--zr],Br[zr]=null}var vr=null,gr=null,Nt=!1,go=null;function N5(e,t){var n=Kr(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.de
Error generating stack: `+i.message+`
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function d0(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Py(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var PI=typeof WeakMap=="function"?WeakMap:Map;function lR(e,t,n){n=bi(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){kp||(kp=!0,Fy=r),Py(e,t)},n}function cR(e,t,n){n=bi(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Py(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Py(e,t),typeof r!="function"&&(Cs===null?Cs=new Set([this]):Cs.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function DE(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new PI;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=UI.bind(null,e,t,n),t.then(e,e))}function IE(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 LE(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,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=bi(-1,1),t.tag=2,Es(n,t,1))),n.lanes|=1),e)}var TI=Oi.ReactCurrentOwner,qn=!1;function In(e,t,n,r){t.child=e===null?z5(t,null,n,r):nc(t,e.child,n,r)}function FE(e,t,n,r,o){n=n.render;var i=t.ref;return Nl(t,o),r=Fw(e,t,n,r,i,o),n=jw(),e!==null&&!qn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,$i(e,t,o)):(Nt&&n&&$w(t),t.flags|=1,In(e,t,r,o),t.child)}function jE(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Xw(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,uR(e,t,i,r,o)):(e=Wh(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:Hu,n(s,r)&&e.ref===t.ref)return $i(e,t,o)}return t.flags|=1,e=Rs(i,r),e.ref=t.ref,e.return=t,t.child=e}function uR(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Hu(i,r)&&e.ref===t.ref)if(qn=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(qn=!0);else return t.lanes=e.lanes,$i(e,t,o)}return Ty(e,t,n,r,o)}function dR(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Rt(Pl,hr),hr|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Rt(Pl,hr),hr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Rt(Pl,hr),hr|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Rt(Pl,hr),hr|=r;return In(e,t,o,n),t.child}function fR(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ty(e,t,n,r,o){var i=Jn(n)?Ta:Rn.current;return i=ec(t,i),Nl(t,o),n=Fw(e,t,n,r,i,o),r=jw(),e!==null&&!qn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,$i(e,t,o)):(Nt&&r&&$w(t),t.flags|=1,In(e,t,n,o),t.child)}function BE(e,t,n,r,o){if(Jn(n)){var i=!0;xp(t)}else i=!1;if(Nl(t,o),t.stateNode===null)zh(e,t),j5(t,n,r),Ry(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var u=s.context,f=n.contextType;typeof f=="object"&&f!==null?f=qr(f):(f=Jn(n)?Ta:Rn.current,f=ec(t,f));var m=n.getDerivedStateFromProps,p=typeof m=="function"||typeof s.getSnapshotBeforeUpdate=="function";p||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||u!==f)&&AE(t,s,r,f),rs=!1;var g=t.memoizedState;s.state=g,Cp(t,r,s,o),u=t.memoizedState,l!==r||g!==u||Qn.current||rs?(typeof m=="function"&&($y(t,n,m,r),u=t.memoizedState),(l=rs||kE(t,n,l,r,g,u,f))?(p||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.
`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&xj[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},_C=Symbol("internals");function cu(e){return e&&String(e).trim().toLowerCase()}function Xh(e){return e===!1||e==null?e:ae.isArray(e)?e.map(Xh):String(e)}function Sj(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const _j=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function w0(e,t,n,r,o){if(ae.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!ae.isString(t)){if(ae.isString(r))return t.indexOf(r)!==-1;if(ae.isRegExp(r))return r.test(t)}}function Ej(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Cj(e,t){const n=ae.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}class Im{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(l,u,f){const m=cu(u);if(!m)throw new Error("header name must be a non-empty string");const p=ae.findKey(o,m);(!p||o[p]===void 0||f===!0||f===void 0&&o[p]!==!1)&&(o[p||u]=Xh(l))}const s=(l,u)=>ae.forEach(l,(f,m)=>i(f,m,u));return ae.isPlainObject(t)||t instanceof this.constructor?s(t,n):ae.isString(t)&&(t=t.trim())&&!_j(t)?s(bj(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=cu(t),t){const r=ae.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Sj(o);if(ae.isFunction(n))return n.call(this,o,r);if(ae.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=cu(t),t){const r=ae.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||w0(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=cu(s),s){const l=ae.findKey(r,s);l&&(!n||w0(r,r[l],l,n))&&(delete r[l],o=!0)}}return ae.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||w0(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return ae.forEach(this,(o,i)=>{const s=ae.findKey(r,i);if(s){n[s]=Xh(o),delete n[i];return}const l=t?Ej(i):String(i).trim();l!==i&&delete n[i],n[l]=Xh(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ae.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&ae.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[_C]=this[_C]={accessors:{}}).accessors,o=this.prototype;function i(s){const l=cu(s);r[l]||(Cj(o,s),r[l]=!0)}return ae.isArray(t)?t.forEach(i):i(t),this}}Im.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ae.reduceDescriptors(Im.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ae.freezeMethods(Im);const Si=Im;function x0(e,t){const n=this||cx,r=t||n,o=Si.from(r.headers);let i=r.data;return ae.forEach(e,function(l){i=l.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function vP(e){return!!(e&&e.__CANCEL__)}function Dd(e,t,n){ct.call(this,e??"canceled",ct.ERR_CANCELED,t,n),this.name="CanceledError"}ae.inherits(Dd,ct,{__CANCEL__:!0});function $j(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ct("Request failed with status code "+n.status,[ct.ERR_BAD_REQUEST,ct.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Rj=Wo.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];ae.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),ae.isString(r)&&s.push("path="+r),ae.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Pj(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Tj(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function yP(e,t){return e&&!Pj(t)?Tj(e,t):t}const kj=Wo.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let s=i;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(s){const l=ae.isString(s)?o(s):s;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function Aj(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Mj(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(u){const f=Date.now(),m=r[i];s||(s=f),n[o]=u,r[o]=f;let p=i,g=0;for(;p!==o;)g+=n[p++],p=p%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),f-s<t)return;const y=m&&f-m;return y?Math.round(g*1e3/y):void 0}}function EC(e,t){let n=0;const r=Mj(50,250);return o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,l=i-n,u=r(l),f=i<=s;n=i;const m={loaded:i,total:s,progress:s?i/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&f?(s-i)/u:void 0,event:o};m[t?"download":"upload"]=!0,e(m)}}const Oj=typeof XMLHttpRequest<"u",Nj=Oj&&function(e){return new Promise(function(n,r){let o=e.data;const i=Si.from(e.headers).normalize();let{responseType:s,withXSRFToken:l}=e,u;function f(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}let m;if(ae.isFormData(o)){if(Wo.hasStandardBrowserEnv||Wo.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((m=i.getContentType())!==!1){const[S,...E]=m?m.split(";").map(_=>_.trim()).filter(Boolean):[];i.setContentType([S||"multipart/form-data",...E].join("; "))}}let p=new XMLHttpRequest;if(e.auth){const S=e.auth.username||"",E=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(S+":"+E))}const g=yP(e.baseURL,e.url);p.open(e.method.toUpperCase(),hP(g,e.params,e.paramsSerializer),!0),p.timeout=e.timeout;function y(){if(!p)return;const S=Si.from("getAllResponseHeaders"in p&&p.getAllR
`+i.map(CC).join(`
`):" "+CC(i[0]):"as no adapter specified";throw new ct("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:r1};function b0(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Dd(null,e)}function $C(e){return b0(e),e.headers=Si.from(e.headers),e.data=x0.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),wP.getAdapter(e.adapter||cx.adapter)(e).then(function(r){return b0(e),r.data=x0.call(e,e.transformResponse,r),r.headers=Si.from(r.headers),r},function(r){return vP(r)||(b0(e),r&&r.response&&(r.response.data=x0.call(e,e.transformResponse,r.response),r.response.headers=Si.from(r.response.headers))),Promise.reject(r)})}const RC=e=>e instanceof Si?e.toJSON():e;function ac(e,t){t=t||{};const n={};function r(f,m,p){return ae.isPlainObject(f)&&ae.isPlainObject(m)?ae.merge.call({caseless:p},f,m):ae.isPlainObject(m)?ae.merge({},m):ae.isArray(m)?m.slice():m}function o(f,m,p){if(ae.isUndefined(m)){if(!ae.isUndefined(f))return r(void 0,f,p)}else return r(f,m,p)}function i(f,m){if(!ae.isUndefined(m))return r(void 0,m)}function s(f,m){if(ae.isUndefined(m)){if(!ae.isUndefined(f))return r(void 0,f)}else return r(void 0,m)}function l(f,m,p){if(p in t)return r(f,m);if(p in e)return r(void 0,f)}const u={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(f,m)=>o(RC(f),RC(m),!0)};return ae.forEach(Object.keys(Object.assign({},e,t)),function(m){const p=u[m]||o,g=p(e[m],t[m],m);ae.isUndefined(g)&&p!==l||(n[m]=g)}),n}const xP="1.6.2",ux={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ux[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const PC={};ux.transitional=function(t,n,r){function o(i,s){return"[Axios v"+xP+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,l)=>{if(t===!1)throw new ct(o(s," has been removed"+(n?" in "+n:"")),ct.ERR_DEPRECATED);return n&&!PC[s]&&(PC[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,l):!0}};function Ij(e,t,n){if(typeof e!="object")throw new ct("options must be an object",ct.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const l=e[i],u=l===void 0||s(l,i,e);if(u!==!0)throw new ct("option "+i+" must be "+u,ct.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ct("Unknown option "+i,ct.ERR_BAD_OPTION)}}const o1={assertOptions:Ij,validators:ux},Qi=o1.validators;class Ip{constructor(t){this.defaults=t,this.interceptors={request:new SC,response:new SC}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ac(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&o1.assertOptions(r,{silentJSONParsing:Qi.transitional(Qi.boolean),forcedJSONParsing:Qi.transitional(Qi.boolean),clarifyTimeoutError:Qi.transitional(Qi.boolean)},!1),o!=null&&(ae.isFunction(o)?n.paramsSerializer={serialize:o}:o1.assertOptions(o,{encode:Qi.function,serialize:Qi.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&ae.merge(i.common,i[n.method]);i&&ae.forEach(["delete","get","head","post","put","patch","common"],x=>{delete i[x]}),n.headers=Si.concat(s,i);const l=[];let u=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(u=u&&S.synchronous,l.unshift(S.fulfilled,S.rejected))});const f=[];this.interceptors.response.forEach(function(S){f.push(S.fulfilled,S.rejected)});let m,p=0,g;if(!u){const x=[$C.bind(this),void 0];for(x.unshift.apply(x,l),x.push.apply(x,f),g=x.length,m=Promise.resolve(n);p<g;)m=m.then(x[p++],x[p++]);return m}g=l.length;let
* @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 uc=d;function zB(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var UB=typeof Object.is=="function"?Object.is:zB,VB=uc.useState,WB=uc.useEffect,HB=uc.useLayoutEffect,KB=uc.useDebugValue;function GB(e,t){var n=t(),r=VB({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return HB(function(){o.value=n,o.getSnapshot=t,C0(o)&&i({inst:o})},[e,n,t]),WB(function(){return C0(o)&&i({inst:o}),e(function(){C0(o)&&i({inst:o})})},[e]),KB(n),n}function C0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!UB(e,n)}catch{return!0}}function YB(e,t){return t()}var XB=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?YB:GB;DP.useSyncExternalStore=uc.useSyncExternalStore!==void 0?uc.useSyncExternalStore:XB;NP.exports=DP;var ZB=NP.exports;/**
* @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 Vm=d,qB=ZB;function QB(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var JB=typeof Object.is=="function"?Object.is:QB,ez=qB.useSyncExternalStore,tz=Vm.useRef,nz=Vm.useEffect,rz=Vm.useMemo,oz=Vm.useDebugValue;OP.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=tz(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=rz(function(){function u(y){if(!f){if(f=!0,m=y,y=r(y),o!==void 0&&s.hasValue){var x=s.value;if(o(x,y))return p=x}return p=y}if(x=p,JB(m,y))return x;var S=r(y);return o!==void 0&&o(x,S)?x:(m=y,p=S)}var f=!1,m,p,g=n===void 0?null:n;return[function(){return u(t())},g===null?void 0:function(){return u(g())}]},[t,n,r,o]);var l=ez(e,i[0],i[1]);return nz(function(){s.hasValue=!0,s.value=l},[l]),oz(l),l};MP.exports=OP;var iz=MP.exports;const sz=pm(iz);var az={VITE_BACKEND:"http://127.0.0.1:8080",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const IC=e=>{let t;const n=new Set,r=(u,f)=>{const m=typeof u=="function"?u(t):u;if(!Object.is(m,t)){const p=t;t=f??typeof m!="object"?m:Object.assign({},t,m),n.forEach(g=>g(t,p))}},o=()=>t,l={setState:r,getState:o,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{(az?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,o,l),l},lz=e=>e?IC(e):IC,{useDebugValue:cz}=Be,{useSyncExternalStoreWithSelector:uz}=sz;function dz(e,t=e.getState,n){const r=uz(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return cz(r),r}const LC=(e,t)=>{const n=lz(e),r=(o,i=t)=>dz(n,o,i);return Object.assign(r,n),r},fz=(e,t)=>e?LC(e,t):LC,hz=1,pz=1e6;let $0=0;function mz(){return $0=($0+1)%Number.MAX_VALUE,$0.toString()}const R0=new Map,FC=e=>{if(R0.has(e))return;const t=setTimeout(()=>{R0.delete(e),Iu({type:"REMOVE_TOAST",toastId:e})},pz);R0.set(e,t)},gz=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,hz)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?FC(n):e.toasts.forEach(r=>{FC(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},qh=[];let Qh={toasts:[]};function Iu(e){Qh=gz(Qh,e),qh.forEach(t=>{t(Qh)})}function hl({...e}){const t=mz(),n=o=>Iu({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Iu({type:"DISMISS_TOAST",toastId:t});return Iu({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function Id(){const[e,t]=d.useState(Qh);return d.useEffect(()=>(qh.push(t),()=>{const n=qh.indexOf(t);n>-1&&qh.splice(n,1)}),[e]),{...e,toast:hl,dismiss:n=>Iu({type:"DISMISS_TOAST",toastId:n})}}const na={file:null,paintByExampleFile:null,customMask:null,imageHeight:0,imageWidth:0,isInpainting:!1,isPluginRunning:!1,isAdjustingMask:!1,disableShortCuts:!1,windowSize:{height:600,width:800},editorState:{baseBrushSize:uF,brushSizeScale:1,renders:[],extraMasks:[],prevExtraMasks:[],temporaryMasks:[],lineGroups:[],lastLineGroup:[],curLineGroup:[],redoRenders:[],redoCurLines:[],redoLineGroups:[]},interactiveSegState:{isInteractiveSeg:!1,tmpInteractiveSegMask:null,clicks:[]},cropperState:{x:0,y:0,width:512,height:512},extenderState:{x:0,y:0,width:512,height:512},isCropperExtenderResizing:!1,fileManagerState:{sortBy:Ps.CTIME,sortOrder:Ou.DESCENDING,layout:"masonry",searchText:"",inputDirectory:"",outputDirectory:""},serverConfig:{plugins:[],modelInfos:[],removeBGModel:"briaai/RMBG-1.4",removeBGModels:[],realesrganModel:"realesr-general-x4v3",realesrganModels:[],interactiveSegModel:"vit_b",interactiveSegModels:[],enableFileManager:!1,enableAutoSaving:!1,enableControlnet:!1,controlnetMethod:"lllyasviel/control_v11p_sd15_canny",disableModelSwitch:!1,isDesktop:!1,samplers:["DPM++ 2M SDE Karras"]},settings:{model:{name:"lama",pa
.`.concat(tV,` {
overflow: hidden `).concat(r,`;
padding-right: `).concat(l,"px ").concat(r,`;
}
body {
overflow: hidden `).concat(r,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
padding-left: `.concat(o,`px;
padding-top: `).concat(i,`px;
padding-right: `).concat(s,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(l,"px ").concat(r,`;
`),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),`
}
.`).concat(ep,` {
right: `).concat(l,"px ").concat(r,`;
}
.`).concat(tp,` {
margin-right: `).concat(l,"px ").concat(r,`;
}
.`).concat(ep," .").concat(ep,` {
right: 0 `).concat(r,`;
}
.`).concat(tp," .").concat(tp,` {
margin-right: 0 `).concat(r,`;
}
body {
`).concat(nV,": ").concat(l,`px;
}
`)},bV=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,i=d.useMemo(function(){return yV(o)},[o]);return d.createElement(wV,{styles:xV(i,!t,o,n?"":"!important")})},v1=!1;if(typeof window<"u")try{var vh=Object.defineProperty({},"passive",{get:function(){return v1=!0,!0}});window.addEventListener("test",vh,vh),window.removeEventListener("test",vh,vh)}catch{v1=!1}var sl=v1?{passive:!1}:!1,SV=function(e){return e.tagName==="TEXTAREA"},cT=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!SV(e)&&n[t]==="visible")},_V=function(e){return cT(e,"overflowY")},EV=function(e){return cT(e,"overflowX")},r2=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=uT(e,n);if(r){var o=dT(e,n),i=o[1],s=o[2];if(i>s)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},CV=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},$V=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},uT=function(e,t){return e==="v"?_V(t):EV(t)},dT=function(e,t){return e==="v"?CV(t):$V(t)},RV=function(e,t){return e==="h"&&t==="rtl"?-1:1},PV=function(e,t,n,r,o){var i=RV(e,window.getComputedStyle(t).direction),s=i*r,l=n.target,u=t.contains(l),f=!1,m=s>0,p=0,g=0;do{var y=dT(e,l),x=y[0],S=y[1],E=y[2],_=S-E-i*x;(x||_)&&uT(e,l)&&(p+=_,g+=x),l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return(m&&(o&&p===0||!o&&s>p)||!m&&(o&&g===0||!o&&-s>g))&&(f=!0),f},yh=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},o2=function(e){return[e.deltaX,e.deltaY]},i2=function(e){return e&&"current"in e?e.current:e},TV=function(e,t){return e[0]===t[0]&&e[1]===t[1]},kV=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},AV=0,al=[];function MV(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(AV++)[0],i=d.useState(function(){return lT()})[0],s=d.useRef(e);d.useEffect(function(){s.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var S=eV([e.lockRef.current],(e.shards||[]).map(i2),!0).filter(Boolean);return S.forEach(function(E){return E.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),S.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=d.useCallback(function(S,E){if("touches"in S&&S.touches.length===2)return!s.current.allowPinchZoom;var _=yh(S),b=n.current,C="deltaX"in S?S.deltaX:b[0]-_[0],R="deltaY"in S?S.deltaY:b[1]-_[1],k,O=S.target,A=Math.abs(C)>Math.abs(R)?"h":"v";if("touches"in S&&A==="h"&&O.type==="range")return!1;var I=r2(A,O);if(!I)return!0;if(I?k=A:(k=A==="v"?"h":"v",I=r2(A,O)),!I)return!1;if(!r.current&&"changedTouches"in S&&(C||R)&&(r.current=k),!k)return!0;var z=r.current||k;return PV(z,E,S,z==="h"?C:R,!0)},[]),u=d.useCallback(function(S){var E=S;if(!(!al.length||al[al.length-1]!==i)){var _="deltaY"in E?o2(E):yh(E),b=t.current.filter(function(k){return k.name===E.type&&k.target===E.target&&TV(k.delta,_)})[0];if(b&&b.should){E.cancelable&&E.preventDefault();return}if(!b){var C=(s.current.shards||[]).map(i2).filter(Boolean).filter(function(k){return k.contains(E.target)}),R=C.length>0?l(E,C[0]):!s.current.noIsolation;R&&E.cancelable&&E.preventDefault()}}},[]),f=d.useCallback(function(S,E,_,b){var C={name:S,delta:E,target:_,should:b};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(R){return R!==C})},1)},[]),m=d.useCallback(function(S){n.current=yh(S),r.current=void 0},[]),p=d.useCallback(function(S){f(S.type,o2(S),S.target,l(S,e.lockRef.current))},[]),g=d.useCallback(function(S){f(S.type,yh(S),S.target,l(S,e.lockRef.current))},[]);d.useEffect(function(){return al.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:g}),document.addEventListener("wheel",u,sl),document.addEventListener("touchmove",u,sl),document.addEventListener("touchstart",m,sl),function(){al=al.filter(function(S){return S!==i}),document.removeEventListener("wheel",u,sl),document.removeEventListener("touchmove",u,sl),document.removeEventListener("touchstart",m,sl)}},[]);var y=e.removeScrollBar,x=e.inert;return d.createElement(d.Fragment,null,x?d.createElement(i,{styles:kV(o)}):null,y?d.createElement(bV,{gapMode:"margin"}):null)}const OV=cV(aT,MV);var fT=d.forwardRef(function(e,t){return d.createElement(eg,Bo({},e,{ref:t,sideCar:OV}))});fT.classNames=eg.classNames;const tg=fT;var NV=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ll=new WeakMap,wh=new WeakMap,xh={},O0=0,hT=function(e){return e&&(e.host||hT(e.parentNode))},DV=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=hT(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},IV=function(e,t,n,r){var o=DV(t,Array.isArray(e)?e:[e]);xh[n]||(xh[n]=new WeakMap);var i=xh[n],s=[],l=new Set,u=new Set(o),f=function(p){!p||l.has(p)||(l.add(p),f(p.parentNode))};o.forEach(f);var m=function(p){!p||u.has(p)||Array.prototype.forEach.call(p.children,function(g){if(l.has(g))m(g);else{var y=g.getAttribute(r),x=y!==null&&y!=="false",S=(ll.get(g)||0)+1,E=(i.get(g)||0)+1;ll.set(g,S),i.set(g,E),s.push(g),S===1&&x&&wh.set(g,!0),E===1&&g.setAttribute(n,"true"),x||g.setAttribute(r,"true")}})};return m(t),l.clear(),O0++,function(){s.forEach(function(p){var g=ll.get(p)-1,y=i.get(p)-1;ll.set(p,g),i.set(p,y),g||(wh.has(p)||p.removeAttribute(r),wh.delete(p)),y||p.removeAttribute(n)}),O0--,O0||(ll=new WeakMap,ll=new WeakMap,wh=new WeakMap,xh={})}},ng=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||NV(e);return o?(r.push.apply(r,Array
* @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
*/Vp.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",l="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",f=500,m="__lodash_placeholder__",p=1,g=2,y=4,x=1,S=2,E=1,_=2,b=4,C=8,R=16,k=32,O=64,A=128,I=256,z=512,H=30,ie="...",K=800,te=16,U=1,re=2,V=3,J=1/0,G=9007199254740991,Z=17976931348623157e292,Q=NaN,le=4294967295,L=le-1,ue=le>>>1,Ne=[["ary",A],["bind",E],["bindKey",_],["curry",C],["curryRight",R],["flip",z],["partial",k],["partialRight",O],["rearg",I]],Ke="[object Arguments]",Me="[object Array]",me="[object AsyncFunction]",be="[object Boolean]",Ee="[object Date]",Oe="[object DOMException]",Ie="[object Error]",ze="[object Function]",ht="[object GeneratorFunction]",st="[object Map]",Yt="[object Number]",rr="[object Null]",Jt="[object Object]",Li="[object Promise]",N="[object Proxy]",X="[object RegExp]",ee="[object Set]",Se="[object String]",pe="[object Symbol]",he="[object Undefined]",Te="[object WeakMap]",ut="[object WeakSet]",gt="[object ArrayBuffer]",An="[object DataView]",Mn="[object Float32Array]",Fi="[object Float64Array]",Ro="[object Int8Array]",Cr="[object Int16Array]",Ks="[object Int32Array]",ri="[object Uint8Array]",ji="[object Uint8ClampedArray]",or="[object Uint16Array]",Zd="[object Uint32Array]",$g=/\b__p \+= '';/g,qd=/\b(__p \+=) '' \+/g,Rg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Qd=/&(?:amp|lt|gt|quot|#39);/g,Nc=/[&<>"']/g,Jd=RegExp(Qd.source),ef=RegExp(Nc.source),tf=/<%-([\s\S]+?)%>/g,nf=/<%([\s\S]+?)%>/g,Va=/<%=([\s\S]+?)%>/g,Pg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Dc=/^\w*$/,rf=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Wa=/[\\^$.*+?()[\]{}|]/g,Tg=RegExp(Wa.source),Ic=/^\s+/,kg=/\s/,Ag=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,W=/\{\n\/\* \[wrapped with (.+)\] \*/,We=/,? & /,dt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,no=/[()=,{}\[\]\/\s]/,an=/\\(\\)?/g,of=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,wb=/\w*$/,hM=/^[-+]0x[0-9a-f]+$/i,pM=/^0b[01]+$/i,mM=/^\[object .+?Constructor\]$/,gM=/^0o[0-7]+$/i,vM=/^(?:0|[1-9]\d*)$/,yM=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,sf=/($^)/,wM=/['\n\r\u2028\u2029\\]/g,af="\\ud800-\\udfff",xM="\\u0300-\\u036f",bM="\\ufe20-\\ufe2f",SM="\\u20d0-\\u20ff",xb=xM+bM+SM,bb="\\u2700-\\u27bf",Sb="a-z\\xdf-\\xf6\\xf8-\\xff",_M="\\xac\\xb1\\xd7\\xf7",EM="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",CM="\\u2000-\\u206f",$M=" \\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",_b="A-Z\\xc0-\\xd6\\xd8-\\xde",Eb="\\ufe0e\\ufe0f",Cb=_M+EM+CM+$M,Mg="[']",RM="["+af+"]",$b="["+Cb+"]",lf="["+xb+"]",Rb="\\d+",PM="["+bb+"]",Pb="["+Sb+"]",Tb="[^"+af+Cb+Rb+bb+Sb+_b+"]",Og="\\ud83c[\\udffb-\\udfff]",TM="(?:"+lf+"|"+Og+")",kb="[^"+af+"]",Ng="(?:\\ud83c[\\udde6-\\uddff]){2}",Dg="[\\ud800-\\udbff][\\udc00-\\udfff]",Ha="["+_b+"]",Ab="\\u200d",Mb="(?:"+Pb+"|"+Tb+")",kM="(?:"+Ha+"|"+Tb+")",Ob="(?:"+Mg+"(?:d|ll|m|re|s|t|ve))?",Nb="(?:"+Mg+"(?:D|LL|M|RE|S|T|VE))?",Db=TM+"?",Ib="["+Eb+"]?",AM="(?:"+Ab+"(?:"+[kb,Ng,Dg].join("|")+")"+Ib+Db+")*",MM="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",OM="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Lb=Ib+Db+AM,NM="(?:"+[PM,Ng,Dg].join("|")+")"+Lb,DM="(?:"+[kb+lf+"?",lf,Ng,Dg,RM].join("|")+")",IM=RegExp(Mg,"g"),LM=RegExp(lf,"g"),Ig=RegExp(Og+"(?="+Og+")|"+DM+Lb,"g"),FM=RegExp([Ha+"?"+Pb+"+"+Ob+"(?="+[$b,Ha,"$"].join("|")+")",kM+"+"+Nb+"(?="+[$b,Ha+Mb,"$"].join("|")+")",Ha+"?"+Mb+"+"+Ob,Ha+"+"+Nb,OM,MM,Rb,NM].join("|"),"g"),jM=RegExp("["+Ab+af+xb+Eb+"]"),BM=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,zM=["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"],UM=-1,Pt=
/* [wrapped with `+c+`] */
`)}function iO(a){return Ye(a)||ta(a)||!!(sS&&a&&a[sS])}function ci(a,c){var h=typeof a;return c=c??G,!!c&&(h=="number"||h!="symbol"&&vM.test(a))&&a>-1&&a%1==0&&a<c}function Nn(a,c,h){if(!Dt(h))return!1;var w=typeof c;return(w=="number"?Wn(h)&&ci(c,h.length):w=="string"&&c in h)?io(h[c],a):!1}function _v(a,c){if(Ye(a))return!1;var h=typeof a;return h=="number"||h=="symbol"||h=="boolean"||a==null||lr(a)?!0:Dc.test(a)||!Pg.test(a)||c!=null&&a in St(c)}function sO(a){var c=typeof a;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?a!=="__proto__":a===null}function Ev(a){var c=Lf(a),h=P[c];if(typeof h!="function"||!(c in ot.prototype))return!1;if(a===h)return!0;var w=xv(h);return!!w&&a===w[0]}function aO(a){return!!nS&&nS in a}var lO=hf?ui:zv;function Xc(a){var c=a&&a.constructor,h=typeof c=="function"&&c.prototype||Za;return a===h}function n_(a){return a===a&&!Dt(a)}function r_(a,c){return function(h){return h==null?!1:h[a]===c&&(c!==n||a in St(h))}}function cO(a){var c=Vf(a,function(w){return h.size===f&&h.clear(),w}),h=c.cache;return c}function uO(a,c){var h=a[1],w=c[1],$=h|w,T=$<(E|_|A),M=w==A&&h==C||w==A&&h==I&&a[7].length<=c[8]||w==(A|I)&&c[7].length<=c[8]&&h==C;if(!(T||M))return a;w&E&&(a[2]=c[2],$|=h&E?0:b);var D=c[3];if(D){var B=a[3];a[3]=B?jS(B,D,c[4]):D,a[4]=B?Ui(a[3],m):c[4]}return D=c[5],D&&(B=a[5],a[5]=B?BS(B,D,c[6]):D,a[6]=B?Ui(a[5],m):c[6]),D=c[7],D&&(a[7]=D),w&A&&(a[8]=a[8]==null?c[8]:bn(a[8],c[8])),a[9]==null&&(a[9]=c[9]),a[0]=c[0],a[1]=$,a}function dO(a){var c=[];if(a!=null)for(var h in St(a))c.push(h);return c}function fO(a){return mf.call(a)}function o_(a,c,h){return c=tn(c===n?a.length-1:c,0),function(){for(var w=arguments,$=-1,T=tn(w.length-c,0),M=q(T);++$<T;)M[$]=w[c+$];$=-1;for(var D=q(c+1);++$<c;)D[$]=w[$];return D[c]=h(M),ir(a,this,D)}}function i_(a,c){return c.length<2?a:Qs(a,Ar(c,0,-1))}function hO(a,c){for(var h=a.length,w=bn(c.length,h),$=Vn(a);w--;){var T=c[w];a[w]=ci(T,h)?$[T]:n}return a}function Cv(a,c){if(!(c==="constructor"&&typeof a[c]=="function")&&c!="__proto__")return a[c]}var s_=l_(TS),Zc=P6||function(a,c){return fn.setTimeout(a,c)},$v=l_(I7);function a_(a,c,h){var w=c+"";return $v(a,oO(w,pO(tO(w),h)))}function l_(a){var c=0,h=0;return function(){var w=M6(),$=te-(w-h);if(h=w,$>0){if(++c>=K)return arguments[0]}else c=0;return a.apply(n,arguments)}}function jf(a,c){var h=-1,w=a.length,$=w-1;for(c=c===n?w:c;++h<c;){var T=lv(h,$),M=a[T];a[T]=a[h],a[h]=M}return a.length=c,a}var c_=cO(function(a){var c=[];return a.charCodeAt(0)===46&&c.push(""),a.replace(rf,function(h,w,$,T){c.push($?T.replace(an,"$1"):w||h)}),c});function ko(a){if(typeof a=="string"||lr(a))return a;var c=a+"";return c=="0"&&1/a==-J?"-0":c}function ea(a){if(a!=null){try{return pf.call(a)}catch{}try{return a+""}catch{}}return""}function pO(a,c){return Rr(Ne,function(h){var w="_."+h[0];c&h[1]&&!cf(a,w)&&a.push(w)}),a.sort()}function u_(a){if(a instanceof ot)return a.clone();var c=new Tr(a.__wrapped__,a.__chain__);return c.__actions__=Vn(a.__actions__),c.__index__=a.__index__,c.__values__=a.__values__,c}function mO(a,c,h){(h?Nn(a,c,h):c===n)?c=1:c=tn(qe(c),0);var w=a==null?0:a.length;if(!w||c<1)return[];for(var $=0,T=0,M=q(bf(w/c));$<w;)M[T++]=Ar(a,$,$+=c);return M}function gO(a){for(var c=-1,h=a==null?0:a.length,w=0,$=[];++c<h;){var T=a[c];T&&($[w++]=T)}return $}function vO(){var a=arguments.length;if(!a)return[];for(var c=q(a-1),h=arguments[0],w=a;w--;)c[w-1]=arguments[w];return zi(Ye(h)?Vn(h):[h],hn(c,1))}var yO=et(function(a,c){return Ht(a)?Wc(a,hn(c,1,Ht,!0)):[]}),wO=et(function(a,c){var h=Mr(c);return Ht(h)&&(h=n),Ht(a)?Wc(a,hn(c,1,Ht,!0),Le(h,2)):[]}),xO=et(function(a,c){var h=Mr(c);return Ht(h)&&(h=n),Ht(a)?Wc(a,hn(c,1,Ht,!0),n,h):[]});function bO(a,c,h){var w=a==null?0:a.length;return w?(c=h||c===n?1:qe(c),Ar(a,c<0?0:c,w)):[]}function SO(a,c,h){var w=a==null?0:a.length;return w?(c=h||c===n?1:qe(c),c=w-c,Ar(a,0,c<0?0:c)):[]}function _O(a,c){return a&&a.length?Af(a,Le(c,3),!0,!0):[]}function EO(a,c){return a&&a.length?Af(a,Le(c,3),!0):[]}function CO(a,c,h,w){var $=a==null?0:a.length;return $?(h&&typeof h!="num
`;a.replace(ve,function(je,nt,at,cr,Dn,ur){return at||(at=cr),ce+=a.slice(oe,ur).replace(wM,l6),nt&&(D=!0,ce+=`' +
__e(`+nt+`) +
'`),Dn&&(B=!0,ce+=`';
`+Dn+`;
__p += '`),at&&(ce+=`' +
((__t = (`+at+`)) == null ? '' : __t) +
'`),oe=ur+je.length,je}),ce+=`';
`;var Fe=yt.call(c,"variable")&&c.variable;if(!Fe)ce=`with (obj) {
`+ce+`
}
`;else if(no.test(Fe))throw new Ge(l);ce=(B?ce.replace($g,""):ce).replace(qd,"$1").replace(Rg,"$1;"),ce="function("+(Fe||"obj")+`) {
`+(Fe?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(D?", __e = _.escape":"")+(B?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+ce+`return __p
}`;var Qe=U_(function(){return pt(T,Pe+"return "+ce).apply(n,M)});if(Qe.source=ce,Av(Qe))throw Qe;return Qe}function N8(a){return vt(a).toLowerCase()}function D8(a){return vt(a).toUpperCase()}function I8(a,c,h){if(a=vt(a),a&&(h||c===n))return qb(a);if(!a||!(c=ar(c)))return a;var w=ro(a),$=ro(c),T=Qb(w,$),M=Jb(w,$)+1;return Gi(w,T,M).join("")}function L8(a,c,h){if(a=vt(a),a&&(h||c===n))return a.slice(0,tS(a)+1);if(!a||!(c=ar(c)))return a;var w=ro(a),$=Jb(w,ro(c))+1;return Gi(w,0,$).join("")}function F8(a,c,h){if(a=vt(a),a&&(h||c===n))return a.replace(Ic,"");if(!a||!(c=ar(c)))return a;var w=ro(a),$=Qb(w,ro(c));return Gi(w,$).join("")}function j8(a,c){var h=H,w=ie;if(Dt(c)){var $="separator"in c?c.separator:$;h="length"in c?qe(c.length):h,w="omission"in c?ar(c.omission):w}a=vt(a);var T=a.length;if(Ga(a)){var M=ro(a);T=M.length}if(h>=T)return a;var D=h-Ya(w);if(D<1)return w;var B=M?Gi(M,0,D).join(""):a.slice(0,D);if($===n)return B+w;if(M&&(D+=B.length-D),Mv($)){if(a.slice(D).search($)){var oe,se=B;for($.global||($=Yg($.source,vt(wb.exec($))+"g")),$.lastIndex=0;oe=$.exec(se);)var ce=oe.index;B=B.slice(0,ce===n?D:ce)}}else if(a.indexOf(ar($),D)!=D){var ve=B.lastIndexOf($);ve>-1&&(B=B.slice(0,ve))}return B+w}function B8(a){return a=vt(a),a&&Jd.test(a)?a.replace(Qd,m6):a}var z8=tl(function(a,c,h){return a+(h?" ":"")+c.toUpperCase()}),Dv=VS("toUpperCase");function z_(a,c,h){return a=vt(a),c=h?n:c,c===n?u6(a)?y6(a):t6(a):a.match(c)||[]}var U_=et(function(a,c){try{return ir(a,n,c)}catch(h){return Av(h)?h:new Ge(h)}}),U8=li(function(a,c){return Rr(c,function(h){h=ko(h),si(a,h,Tv(a[h],a))}),a});function V8(a){var c=a==null?0:a.length,h=Le();return a=c?Mt(a,function(w){if(typeof w[1]!="function")throw new Pr(s);return[h(w[0]),w[1]]}):[],et(function(w){for(var $=-1;++$<c;){var T=a[$];if(ir(T[0],this,w))return ir(T[1],this,w)}})}function W8(a){return m7(kr(a,p))}function Iv(a){return function(){return a}}function H8(a,c){return a==null||a!==a?c:a}var K8=HS(),G8=HS(!0);function Kn(a){return a}function Lv(a){return bS(typeof a=="function"?a:kr(a,p))}function Y8(a){return _S(kr(a,p))}function X8(a,c){return ES(a,kr(c,p))}var Z8=et(function(a,c){return function(h){return Hc(h,a,c)}}),q8=et(function(a,c){return function(h){return Hc(a,h,c)}});function Fv(a,c,h){var w=ln(c),$=Pf(c,w);h==null&&!(Dt(c)&&($.length||!w.length))&&(h=c,c=a,a=this,$=Pf(c,ln(c)));var T=!(Dt(h)&&"chain"in h)||!!h.chain,M=ui(a);return Rr($,function(D){var B=c[D];a[D]=B,M&&(a.prototype[D]=function(){var oe=this.__chain__;if(T||oe){var se=a(this.__wrapped__),ce=se.__actions__=Vn(this.__actions__);return ce.push({func:B,args:arguments,thisArg:a}),se.__chain__=oe,se}return B.apply(a,zi([this.value()],arguments))})}),a}function Q8(){return fn._===this&&(fn._=E6),this}function jv(){}function J8(a){return a=qe(a),et(function(c){return CS(c,a)})}var e9=gv(Mt),t9=gv(Kb),n9=gv(zg);function V_(a){return _v(a)?Ug(ko(a)):M7(a)}function r9(a){return function(c){return a==null?n:Qs(a,c)}}var o9=GS(),i9=GS(!0);function Bv(){return[]}function zv(){return!1}function s9(){return{}}function a9(){return""}function l9(){return!0}function c9(a,c){if(a=qe(a),a<1||a>G)return[];var h=le,w=bn(a,le);c=Le(c),a-=le;for(var $=Hg(w,c);++h<a;)c(h);return $}function u9(a){return Ye(a)?Mt(a,ko):lr(a)?[a]:Vn(c_(vt(a)))}function d9(a){var c=++S6;return vt(a)+c}var f9=Nf(function(a,c){return a+c},0),h9=vv("ceil"),p9=Nf(function(a,c){return a/c},1),m9=vv("floor");function g9(a){return a&&a.length?Rf(a,Kn,nv):n}function v9(a,c){return a&&a.length?Rf(a,Le(c,2),nv):n}function y9(a){return Xb(a,Kn)}function w9(a,c){return Xb(a,Le(c,2))}function x9(a){return a&&a.length?Rf(a,Kn,sv):n}function b9(a,c){return a&&a.length?Rf(a,Le(c,2),sv):n}var S9=Nf(function(a,c){return a*c},1),_9=vv("round"),E9=Nf(function(a,c){return a-c},0);function C9(a){return a&&a.length?Wg(a,Kn):0}function $9(a,c){return a&&a.length?Wg(a,Le(c,2)):0}return P.after=YN,P.ary=x_,P.assign=D4,P.assignIn=N_,P.assignInWith=Gf,P.assignWith=I4,P.at=L4,P.before=b_,P.bind=Tv,P.bindAll=U8,P.bindKey=S_,P.castArray=s4,P.chain=v_,P.chunk=mO,P.compact=gO,P
- horizontal
- vertical
Defaulting to \`${z1}\`.`}function d3(e){return mX.includes(e)}const f3=u3,Xt=d.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>v.jsx(f3,{ref:o,decorative:n,orientation:t,className:xe("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));Xt.displayName=f3.displayName;const vX=d.forwardRef((e,t)=>d.createElement(Ae.label,Y({},e,{ref:t,onMouseDown:n=>{var r;(r=e.onMouseDown)===null||r===void 0||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault()}}))),h3=vX,yX=Fm("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),nb=d.forwardRef(({className:e,disabled:t,...n},r)=>v.jsx(h3,{ref:r,className:xe(yX(),e,t?"opacity-50":"","select-none"),...n}));nb.displayName=h3.displayName;const wX=OY,p3=d.createContext({}),ul=({...e})=>v.jsx(p3.Provider,{value:{name:e.name},children:v.jsx(LY,{...e})}),mg=()=>{const e=d.useContext(p3),t=d.useContext(m3),{getFieldState:n,formState:r}=hg(),o=n(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...o}},m3=d.createContext({}),sa=d.forwardRef(({className:e,...t},n)=>{const r=d.useId();return v.jsx(m3.Provider,{value:{id:r},children:v.jsx("div",{ref:n,className:xe("space-y-2",e),...t})})});sa.displayName="FormItem";const aa=d.forwardRef(({className:e,...t},n)=>{const{error:r,formItemId:o}=mg();return v.jsx(nb,{ref:n,className:xe(r&&"text-destructive","text-sm",e),htmlFor:o,...t})});aa.displayName="FormLabel";const la=d.forwardRef(({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:o,formMessageId:i}=mg();return v.jsx(Qo,{ref:t,id:r,"aria-describedby":n?`${o} ${i}`:`${o}`,"aria-invalid":!!n,...e})});la.displayName="FormControl";const ca=d.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:r}=mg();return v.jsx("p",{ref:n,id:r,className:xe("text-[0.8rem] text-muted-foreground",e),...t})});ca.displayName="FormDescription";const xX=d.forwardRef(({className:e,children:t,...n},r)=>{const{error:o,formMessageId:i}=mg(),s=o?String(o==null?void 0:o.message):t;return s?v.jsx("p",{ref:r,id:i,className:xe("text-[0.8rem] font-medium text-destructive",e),...n,children:s}):null});xX.displayName="FormMessage";const g3="Switch",[bX,wte]=Tn(g3),[SX,_X]=bX(g3),EX=d.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:i,required:s,disabled:l,value:u="on",onCheckedChange:f,...m}=e,[p,g]=d.useState(null),y=Ve(t,b=>g(b)),x=d.useRef(!1),S=p?!!p.closest("form"):!0,[E=!1,_]=eo({prop:o,defaultProp:i,onChange:f});return d.createElement(SX,{scope:n,checked:E,disabled:l},d.createElement(Ae.button,Y({type:"button",role:"switch","aria-checked":E,"aria-required":s,"data-state":v3(E),"data-disabled":l?"":void 0,disabled:l,value:u},m,{ref:y,onClick:fe(e.onClick,b=>{_(C=>!C),S&&(x.current=b.isPropagationStopped(),x.current||b.stopPropagation())})})),S&&d.createElement(RX,{control:p,bubbles:!x.current,name:r,value:u,checked:E,required:s,disabled:l,style:{transform:"translateX(-100%)"}}))}),CX="SwitchThumb",$X=d.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=_X(CX,n);return d.createElement(Ae.span,Y({"data-state":v3(o.checked),"data-disabled":o.disabled?"":void 0},r,{ref:t}))}),RX=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=d.useRef(null),s=Kx(n),l=Sx(t);return d.useEffect(()=>{const u=i.current,f=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(f,"checked").set;if(s!==n&&p){const g=new Event("click",{bubbles:r});p.call(u,n),u.dispatchEvent(g)}},[s,n,r]),d.createElement("input",Y({type:"checkbox","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:i,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function v3(e){return e?"checked":"unchecked"}const y3=EX,PX=$X,jr=d.forwardRef(({className:e,...t},n)=>v.jsx(y3,{className:xe("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transitio
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__FBWxo {
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__FBWxo img {
pointer-events: none;
}
`,K2={wrapper:"transform-component-module_wrapper__SPB86",content:"transform-component-module_content__FBWxo"};dq(fq);var hq=function(e){var t=e.children,n=e.wrapperClass,r=n===void 0?"":n,o=e.contentClass,i=o===void 0?"":o,s=e.wrapperStyle,l=e.contentStyle,u=e.wrapperProps,f=u===void 0?{}:u,m=e.contentProps,p=m===void 0?{}:m,g=d.useContext(ib),y=g.init,x=g.cleanupWindowEvents,S=d.useRef(null),E=d.useRef(null);return d.useEffect(function(){var _=S.current,b=E.current;return _!==null&&b!==null&&y&&(y==null||y(_,b)),function(){x==null||x()}},[]),Be.createElement("div",ks({},f,{ref:S,className:"react-transform-wrapper ".concat(K2.wrapper," ").concat(r),style:s}),Be.createElement("div",ks({},p,{ref:E,className:"react-transform-component ".concat(K2.content," ").concat(i),style:l}),t))};const W3=["PageUp","PageDown"],H3=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],K3={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Yd="Slider",[K1,pq,mq]=Wd(Yd),[G3,bte]=Tn(Yd,[mq]),[gq,wg]=G3(Yd),vq=d.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:i=1,orientation:s="horizontal",disabled:l=!1,minStepsBetweenThumbs:u=0,defaultValue:f=[r],value:m,onValueChange:p=()=>{},onValueCommit:g=()=>{},inverted:y=!1,...x}=e,[S,E]=d.useState(null),_=Ve(t,U=>E(U)),b=d.useRef(new Set),C=d.useRef(0),R=s==="horizontal",k=S?!!S.closest("form"):!0,O=R?yq:wq,[A=[],I]=eo({prop:m,defaultProp:f,onChange:U=>{var re;(re=[...b.current][C.current])===null||re===void 0||re.focus(),p(U)}}),z=d.useRef(A);function H(U){const re=Pq(A,U);te(U,re)}function ie(U){te(U,C.current)}function K(){const U=z.current[C.current];A[C.current]!==U&&g(A)}function te(U,re,{commit:V}={commit:!1}){const J=Mq(i),G=Oq(Math.round((U-r)/i)*i+r,J),Z=fd(G,[r,o]);I((Q=[])=>{const le=$q(Q,Z,re);if(Aq(le,u*i)){C.current=le.indexOf(Z);const L=String(le)!==String(Q);return L&&V&&g(le),L?le:Q}else return Q})}return d.createElement(gq,{scope:e.__scopeSlider,disabled:l,min:r,max:o,valueIndexToChangeRef:C,thumbs:b.current,values:A,orientation:s},d.createElement(K1.Provider,{scope:e.__scopeSlider},d.createElement(K1.Slot,{scope:e.__scopeSlider},d.createElement(O,Y({"aria-disabled":l,"data-disabled":l?"":void 0},x,{ref:_,onPointerDown:fe(x.onPointerDown,()=>{l||(z.current=A)}),min:r,max:o,inverted:y,onSlideStart:l?void 0:H,onSlideMove:l?void 0:ie,onSlideEnd:l?void 0:K,onHomeKeyDown:()=>!l&&te(r,0,{commit:!0}),onEndKeyDown:()=>!l&&te(o,A.length-1,{commit:!0}),onStepKeyDown:({event:U,direction:re})=>{if(!l){const G=W3.includes(U.key)||U.shiftKey&&H3.includes(U.key)?10:1,Z=C.current,Q=A[Z],le=i*G*re;te(Q+le,Z,{commit:!0})}}})))),k&&A.map((U,re)=>d.createElement(Cq,{key:re,name:n?n+(A.length>1?"[]":""):void 0,value:U})))}),[Y3,X3]=G3(Yd,{startEdge:"left",endEdge:"right",size:"width",direction:1}),yq=d.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:i,onSlideStart:s,onSlideMove:l,onSlideEnd:u,onStepKeyDown:f,...m}=e,[p,g]=d.useState(null),y=Ve(t,C=>g(C)),x=d.useRef(),S=Ac(o),E=S==="ltr",_=E&&!i||!E&&i;function b(C){const R=x.current||p.getBoundingClientRect(),k=[0,R.width],A=sb(k,_?[n,r]:[r,n]);return x.current=R,A(C-R.left)}return d.createElement(Y3,{scope:e.__scopeSlider,startEdge:_?"left":"right",endEdge:_?"right":"left",direction:_?1:-1,size:"width"},d.createElement(Z3,Y({dir:S,"data-orientation":"horizontal"},m,{ref:y,style:{...m.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:C=>{const R=b(C.clientX);s==null||s(R)},onSlideMove:C=>{const R=b(C.clientX);l==null||l(R)},onSlideEnd:()=>{x.current=void 0,u==null||u()},onStepKeyDown:C=>{const k=K3[_?"from-left":"from-right"].includes(C.key);f==null||f({event:C,direction:k?-1:1})}})))}),wq=d.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:i,onSlideMove:s,onSlideEnd:l,onStepKeyDown:u,...f}=e,m=d.useRef(null),p=Ve(t,m),g=d.useRef(),y=!o;function x(S){const E=g.current||m.current.getBoundingClientRect(),_=[0,E.height],C=sb(_,y?[r,n]:[n,r]);re
- a positive number
- less than the value passed to \`max\` (or ${_g} if no \`max\` prop is set)
- \`null\` if the progress is indeterminate.
Defaulting to \`null\`.`}const HA=UA,bee=vee,KA=d.forwardRef(({className:e,value:t,...n},r)=>v.jsx(HA,{ref:r,className:xe("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),...n,children:v.jsx(bee,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));KA.displayName=HA.displayName;const See="",Ji=cp(See),_ee=()=>{const[e,t,n]=xt(u=>[u.settings,u.isInpainting,u.isSD()]),[r,o]=d.useState(!1),[i,s]=d.useState(0),l=Math.min(Math.round(i/e.sdSteps*100),100);return d.useEffect(()=>(Ji.on("connect",()=>{o(!0)}),Ji.on("disconnect",()=>{o(!1)}),Ji.on("diffusion_progress",u=>{u&&s(u.step+1)}),Ji.on("diffusion_finish",()=>{s(0)}),()=>{Ji.off("connect"),Ji.off("disconnect"),Ji.off("diffusion_progress"),Ji.off("diffusion_finish")}),[]),v.jsxs("div",{className:"z-10 fixed bg-background w-[220px] left-1/2 -translate-x-1/2 top-[68px] h-[32px] flex justify-center items-center gap-[18px] border-[1px] border-[solid] rounded-[14px] pl-[8px] pr-[8px]",style:{visibility:r&&t&&n?"visible":"hidden"},children:[v.jsx(KA,{value:l}),v.jsxs("div",{className:"w-[45px] flex justify-center font-nums",children:[l,"%"]})]})},Eee=()=>{const[e,t]=xt(n=>[n.file,n.updateSettings]);return d.useEffect(()=>{(async()=>{const r=await Wj();t({model:r})})()},[]),v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"flex gap-3 absolute top-[68px] left-[24px] items-center",children:[v.jsx(hJ,{}),v.jsx(Gq,{})]}),v.jsx(Uq,{}),v.jsx(_ee,{}),v.jsx(_J,{}),e?v.jsx(Kq,{file:e}):v.jsx(v.Fragment,{})]})},Cee=()=>{const[e,t]=d.useState(window.innerWidth),n=d.useCallback(()=>{t(window.innerWidth)},[]);if(d.useEffect(()=>(window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)})),e<768)return"mobile";if(e>=768&&e<1224)return"tablet";if(e>=1224)return"desktop"};function $ee(e){const[t]=d.useState(`file-upload-${Math.random().toString()}`),n=Cee();return v.jsx("div",{className:"absolute flex w-screen h-screen justify-center items-center pointer-events-none",children:v.jsx("label",{htmlFor:t,className:"grid bg-background border-[2px] border-[dashed] rounded-lg min-w-[600px] pointer-events-auto",children:v.jsx("div",{className:"grid p-16 w-full h-full",children:v.jsx("p",{className:"text-center",children:"Sollte das Bild nicht geladen werden, drücken sie die F5-Taste, oder klicken sie rechts oben auf den Button"})})})})}const GA="ToastProvider",[vb,Ree,Pee]=Wd("Toast"),[YA,Cte]=Tn("Toast",[Pee]),[Tee,Eg]=YA(GA),XA=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[l,u]=d.useState(null),[f,m]=d.useState(0),p=d.useRef(!1),g=d.useRef(!1);return d.createElement(vb.Provider,{scope:t},d.createElement(Tee,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:f,viewport:l,onViewportChange:u,onToastAdd:d.useCallback(()=>m(y=>y+1),[]),onToastRemove:d.useCallback(()=>m(y=>y-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:g},s))};XA.propTypes={label(e){if(e.label&&typeof e.label=="string"&&!e.label.trim()){const t=`Invalid prop \`label\` supplied to \`${GA}\`. Expected non-empty \`string\`.`;return new Error(t)}return null}};const kee="ToastViewport",Aee=["F8"],ow="toast.viewportPause",iw="toast.viewportResume",Mee=d.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=Aee,label:o="Notifications ({hotkey})",...i}=e,s=Eg(kee,n),l=Ree(n),u=d.useRef(null),f=d.useRef(null),m=d.useRef(null),p=d.useRef(null),g=Ve(t,p,s.onViewportChange),y=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=s.toastCount>0;d.useEffect(()=>{const E=_=>{var b;r.every(R=>_[R]||_.code===R)&&((b=p.current)===null||b===void 0||b.focus())};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},[r]),d.useEffect(()=>{const E=u.current,_=p.current;if(x&&E&&_){const b=()=>{if(!s.isClosePausedRef.current){const O=new CustomEvent(ow);_.dispatchEvent(O),s.isClosePausedRef.current=!0}},C=()=>{if(s.isClosePausedRef.current){const O=new CustomEvent(iw);_.dispatchEvent(O),s.isClosePausedRef.current=!1}}