diff --git "a/frontend/dist/assets/index-CnjqV6Tu.js" "b/frontend/dist/assets/index-CnjqV6Tu.js" deleted file mode 100644--- "a/frontend/dist/assets/index-CnjqV6Tu.js" +++ /dev/null @@ -1,131 +0,0 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();var qu={exports:{}},Tl={},Xu={exports:{}},A={};/** - * @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 hr=Symbol.for("react.element"),Of=Symbol.for("react.portal"),Lf=Symbol.for("react.fragment"),zf=Symbol.for("react.strict_mode"),Af=Symbol.for("react.profiler"),Ff=Symbol.for("react.provider"),Df=Symbol.for("react.context"),Mf=Symbol.for("react.forward_ref"),If=Symbol.for("react.suspense"),Uf=Symbol.for("react.memo"),$f=Symbol.for("react.lazy"),ks=Symbol.iterator;function Bf(e){return e===null||typeof e!="object"?null:(e=ks&&e[ks]||e["@@iterator"],typeof e=="function"?e:null)}var Ju={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Yu=Object.assign,Gu={};function Cn(e,t,n){this.props=e,this.context=t,this.refs=Gu,this.updater=n||Ju}Cn.prototype.isReactComponent={};Cn.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")};Cn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Zu(){}Zu.prototype=Cn.prototype;function Ni(e,t,n){this.props=e,this.context=t,this.refs=Gu,this.updater=n||Ju}var Ci=Ni.prototype=new Zu;Ci.constructor=Ni;Yu(Ci,Cn.prototype);Ci.isPureReactComponent=!0;var Es=Array.isArray,bu=Object.prototype.hasOwnProperty,_i={current:null},ea={key:!0,ref:!0,__self:!0,__source:!0};function ta(e,t,n){var r,l={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)bu.call(t,r)&&!ea.hasOwnProperty(r)&&(l[r]=t[r]);var s=arguments.length-2;if(s===1)l.children=n;else if(1>>1,$=_[D];if(0>>1;Dl(Yt,L))Ot<$&&0>l(Cr,Yt)?(_[D]=Cr,_[Ot]=L,D=Ot):(_[D]=Yt,_[Te]=L,D=Te);else if(Ot<$&&0>l(Cr,L))_[D]=Cr,_[Ot]=L,D=Ot;else break e}}return T}function l(_,T){var L=_.sortIndex-T.sortIndex;return L!==0?L:_.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var u=[],a=[],f=1,h=null,g=3,w=!1,y=!1,x=!1,k=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,c=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(_){for(var T=n(a);T!==null;){if(T.callback===null)r(a);else if(T.startTime<=_)r(a),T.sortIndex=T.expirationTime,t(u,T);else break;T=n(a)}}function S(_){if(x=!1,p(_),!y)if(n(u)!==null)y=!0,he(N);else{var T=n(a);T!==null&&Jt(S,T.startTime-_)}}function N(_,T){y=!1,x&&(x=!1,d(P),P=-1),w=!0;var L=g;try{for(p(T),h=n(u);h!==null&&(!(h.expirationTime>T)||_&&!me());){var D=h.callback;if(typeof D=="function"){h.callback=null,g=h.priorityLevel;var $=D(h.expirationTime<=T);T=e.unstable_now(),typeof $=="function"?h.callback=$:h===n(u)&&r(u),p(T)}else r(u);h=n(u)}if(h!==null)var ct=!0;else{var Te=n(a);Te!==null&&Jt(S,Te.startTime-T),ct=!1}return ct}finally{h=null,g=L,w=!1}}var j=!1,C=null,P=-1,I=5,z=-1;function me(){return!(e.unstable_now()-z_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(_){switch(g){case 1:case 2:case 3:var T=3;break;default:T=g}var L=g;g=T;try{return _()}finally{g=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,T){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var L=g;g=_;try{return T()}finally{g=L}},e.unstable_scheduleCallback=function(_,T,L){var D=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0D?(_.sortIndex=L,t(a,_),n(u)===null&&_===n(a)&&(x?(d(P),P=-1):x=!0,Jt(S,L-D))):(_.sortIndex=$,t(u,_),y||w||(y=!0,he(N))),_},e.unstable_shouldYield=me,e.unstable_wrapCallback=function(_){var T=g;return function(){var L=g;g=T;try{return _.apply(this,arguments)}finally{g=L}}}})(ia);oa.exports=ia;var Zf=oa.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 bf=H,_e=Zf;function E(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jo=Object.prototype.hasOwnProperty,ed=/^[: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]*$/,Cs={},_s={};function td(e){return jo.call(_s,e)?!0:jo.call(Cs,e)?!1:ed.test(e)?_s[e]=!0:(Cs[e]=!0,!1)}function nd(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 rd(e,t,n,r){if(t===null||typeof t>"u"||nd(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 pe(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){le[e]=new pe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];le[t]=new pe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){le[e]=new pe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){le[e]=new pe(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){le[e]=new pe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){le[e]=new pe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){le[e]=new pe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){le[e]=new pe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){le[e]=new pe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ri=/[\-:]([a-z])/g;function Pi(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-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ri,Pi);le[t]=new pe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ri,Pi);le[t]=new pe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ri,Pi);le[t]=new pe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){le[e]=new pe(e,1,!1,e.toLowerCase(),null,!1,!1)});le.xlinkHref=new pe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){le[e]=new pe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ti(e,t,n,r){var l=le.hasOwnProperty(t)?le[t]:null;(l!==null?l.type!==0:r||!(2s||l[i]!==o[s]){var u=` -`+l[i].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=i&&0<=s);break}}}finally{bl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Un(e):""}function ld(e){switch(e.tag){case 5:return Un(e.type);case 16:return Un("Lazy");case 13:return Un("Suspense");case 19:return Un("SuspenseList");case 0:case 2:case 15:return e=eo(e.type,!1),e;case 11:return e=eo(e.type.render,!1),e;case 1:return e=eo(e.type,!0),e;default:return""}}function Oo(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 bt:return"Fragment";case Zt:return"Portal";case Ro:return"Profiler";case Oi:return"StrictMode";case Po:return"Suspense";case To:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case aa:return(e.displayName||"Context")+".Consumer";case ua:return(e._context.displayName||"Context")+".Provider";case Li:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case zi:return t=e.displayName||null,t!==null?t:Oo(e.type)||"Memo";case dt:t=e._payload,e=e._init;try{return Oo(e(t))}catch{}}return null}function od(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 Oo(t);case 8:return t===Oi?"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 _t(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function fa(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function id(e){var t=fa(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 l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Rr(e){e._valueTracker||(e._valueTracker=id(e))}function da(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=fa(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ol(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 Lo(e,t){var n=t.checked;return q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Rs(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=_t(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 pa(e,t){t=t.checked,t!=null&&Ti(e,"checked",t,!1)}function zo(e,t){pa(e,t);var n=_t(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")?Ao(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ao(e,t.type,_t(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ps(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ao(e,t,n){(t!=="number"||ol(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var $n=Array.isArray;function fn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=Pr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function bn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Vn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},sd=["Webkit","ms","Moz","O"];Object.keys(Vn).forEach(function(e){sd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Vn[t]=Vn[e]})});function ga(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Vn.hasOwnProperty(e)&&Vn[e]?(""+t).trim():t+"px"}function va(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=ga(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var ud=q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Mo(e,t){if(t){if(ud[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(E(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(E(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(E(61))}if(t.style!=null&&typeof t.style!="object")throw Error(E(62))}}function Io(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Uo=null;function Ai(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $o=null,dn=null,pn=null;function Ls(e){if(e=vr(e)){if(typeof $o!="function")throw Error(E(280));var t=e.stateNode;t&&(t=Fl(t),$o(e.stateNode,e.type,t))}}function wa(e){dn?pn?pn.push(e):pn=[e]:dn=e}function xa(){if(dn){var e=dn,t=pn;if(pn=dn=null,Ls(e),t)for(e=0;e>>=0,e===0?32:31-(wd(e)/xd|0)|0}var Tr=64,Or=4194304;function Bn(e){switch(e&-e){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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function al(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~l;s!==0?r=Bn(s):(o&=i,o!==0&&(r=Bn(o)))}else i=n&~l,i!==0?r=Bn(i):o!==0&&(r=Bn(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function yr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-He(t),e[t]=n}function Nd(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Qn),Bs=" ",Hs=!1;function $a(e,t){switch(e){case"keyup":return Zd.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ba(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var en=!1;function ep(e,t){switch(e){case"compositionend":return Ba(t);case"keypress":return t.which!==32?null:(Hs=!0,Bs);case"textInput":return e=t.data,e===Bs&&Hs?null:e;default:return null}}function tp(e,t){if(en)return e==="compositionend"||!Hi&&$a(e,t)?(e=Ia(),qr=Ui=yt=null,en=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ks(n)}}function Qa(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qa(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ka(){for(var e=window,t=ol();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ol(e.document)}return t}function Vi(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function cp(e){var t=Ka(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Qa(n.ownerDocument.documentElement,n)){if(r!==null&&Vi(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=qs(n,o);var i=qs(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,tn=null,Ko=null,qn=null,qo=!1;function Xs(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;qo||tn==null||tn!==ol(r)||(r=tn,"selectionStart"in r&&Vi(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),qn&&or(qn,r)||(qn=r,r=dl(Ko,"onSelect"),0ln||(e.current=bo[ln],bo[ln]=null,ln--)}function U(e,t){ln++,bo[ln]=e.current,e.current=t}var jt={},ae=Pt(jt),ve=Pt(!1),Bt=jt;function vn(e,t){var n=e.type.contextTypes;if(!n)return jt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function we(e){return e=e.childContextTypes,e!=null}function ml(){V(ve),V(ae)}function tu(e,t,n){if(ae.current!==jt)throw Error(E(168));U(ae,t),U(ve,n)}function tc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(E(108,od(e)||"Unknown",l));return q({},n,r)}function hl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||jt,Bt=ae.current,U(ae,e),U(ve,ve.current),!0}function nu(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=tc(e,t,Bt),r.__reactInternalMemoizedMergedChildContext=e,V(ve),V(ae),U(ae,e)):V(ve),U(ve,n)}var tt=null,Dl=!1,ho=!1;function nc(e){tt===null?tt=[e]:tt.push(e)}function kp(e){Dl=!0,nc(e)}function Tt(){if(!ho&&tt!==null){ho=!0;var e=0,t=M;try{var n=tt;for(M=1;e>=i,l-=i,nt=1<<32-He(t)+l|n<P?(I=C,C=null):I=C.sibling;var z=g(d,C,p[P],S);if(z===null){C===null&&(C=I);break}e&&C&&z.alternate===null&&t(d,C),c=o(z,c,P),j===null?N=z:j.sibling=z,j=z,C=I}if(P===p.length)return n(d,C),W&&Lt(d,P),N;if(C===null){for(;PP?(I=C,C=null):I=C.sibling;var me=g(d,C,z.value,S);if(me===null){C===null&&(C=I);break}e&&C&&me.alternate===null&&t(d,C),c=o(me,c,P),j===null?N=me:j.sibling=me,j=me,C=I}if(z.done)return n(d,C),W&&Lt(d,P),N;if(C===null){for(;!z.done;P++,z=p.next())z=h(d,z.value,S),z!==null&&(c=o(z,c,P),j===null?N=z:j.sibling=z,j=z);return W&&Lt(d,P),N}for(C=r(d,C);!z.done;P++,z=p.next())z=w(C,d,P,z.value,S),z!==null&&(e&&z.alternate!==null&&C.delete(z.key===null?P:z.key),c=o(z,c,P),j===null?N=z:j.sibling=z,j=z);return e&&C.forEach(function(Ke){return t(d,Ke)}),W&&Lt(d,P),N}function k(d,c,p,S){if(typeof p=="object"&&p!==null&&p.type===bt&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case jr:e:{for(var N=p.key,j=c;j!==null;){if(j.key===N){if(N=p.type,N===bt){if(j.tag===7){n(d,j.sibling),c=l(j,p.props.children),c.return=d,d=c;break e}}else if(j.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===dt&&ou(N)===j.type){n(d,j.sibling),c=l(j,p.props),c.ref=Fn(d,j,p),c.return=d,d=c;break e}n(d,j);break}else t(d,j);j=j.sibling}p.type===bt?(c=Ut(p.props.children,d.mode,S,p.key),c.return=d,d=c):(S=tl(p.type,p.key,p.props,null,d.mode,S),S.ref=Fn(d,c,p),S.return=d,d=S)}return i(d);case Zt:e:{for(j=p.key;c!==null;){if(c.key===j)if(c.tag===4&&c.stateNode.containerInfo===p.containerInfo&&c.stateNode.implementation===p.implementation){n(d,c.sibling),c=l(c,p.children||[]),c.return=d,d=c;break e}else{n(d,c);break}else t(d,c);c=c.sibling}c=Eo(p,d.mode,S),c.return=d,d=c}return i(d);case dt:return j=p._init,k(d,c,j(p._payload),S)}if($n(p))return y(d,c,p,S);if(Tn(p))return x(d,c,p,S);Ir(d,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,c!==null&&c.tag===6?(n(d,c.sibling),c=l(c,p),c.return=d,d=c):(n(d,c),c=ko(p,d.mode,S),c.return=d,d=c),i(d)):n(d,c)}return k}var xn=ic(!0),sc=ic(!1),vl=Pt(null),wl=null,un=null,qi=null;function Xi(){qi=un=wl=null}function Ji(e){var t=vl.current;V(vl),e._currentValue=t}function ni(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function hn(e,t){wl=e,qi=un=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ge=!0),e.firstContext=null)}function Fe(e){var t=e._currentValue;if(qi!==e)if(e={context:e,memoizedValue:t,next:null},un===null){if(wl===null)throw Error(E(308));un=e,wl.dependencies={lanes:0,firstContext:e}}else un=un.next=e;return t}var Ft=null;function Yi(e){Ft===null?Ft=[e]:Ft.push(e)}function uc(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Yi(t)):(n.next=l.next,l.next=n),t.interleaved=n,st(e,r)}function st(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var pt=!1;function Gi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ac(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function lt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function kt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,F&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,st(e,n)}return l=r.interleaved,l===null?(t.next=t,Yi(r)):(t.next=l.next,l.next=t),r.interleaved=t,st(e,n)}function Jr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Di(e,n)}}function iu(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function xl(e,t,n,r){var l=e.updateQueue;pt=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,s=l.shared.pending;if(s!==null){l.shared.pending=null;var u=s,a=u.next;u.next=null,i===null?o=a:i.next=a,i=u;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==i&&(s===null?f.firstBaseUpdate=a:s.next=a,f.lastBaseUpdate=u))}if(o!==null){var h=l.baseState;i=0,f=a=u=null,s=o;do{var g=s.lane,w=s.eventTime;if((r&g)===g){f!==null&&(f=f.next={eventTime:w,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,x=s;switch(g=t,w=n,x.tag){case 1:if(y=x.payload,typeof y=="function"){h=y.call(w,h,g);break e}h=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=x.payload,g=typeof y=="function"?y.call(w,h,g):y,g==null)break e;h=q({},h,g);break e;case 2:pt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,g=l.effects,g===null?l.effects=[s]:g.push(s))}else w={eventTime:w,lane:g,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(a=f=w,u=h):f=f.next=w,i|=g;if(s=s.next,s===null){if(s=l.shared.pending,s===null)break;g=s,s=g.next,g.next=null,l.lastBaseUpdate=g,l.shared.pending=null}}while(!0);if(f===null&&(u=h),l.baseState=u,l.firstBaseUpdate=a,l.lastBaseUpdate=f,t=l.shared.interleaved,t!==null){l=t;do i|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);Wt|=i,e.lanes=i,e.memoizedState=h}}function su(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=go.transition;go.transition={};try{e(!1),t()}finally{M=n,go.transition=r}}function _c(){return De().memoizedState}function _p(e,t,n){var r=Nt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},jc(e))Rc(t,n);else if(n=uc(e,t,n,r),n!==null){var l=fe();Ve(n,e,r,l),Pc(n,t,r)}}function jp(e,t,n){var r=Nt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(jc(e))Rc(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,s=o(i,n);if(l.hasEagerState=!0,l.eagerState=s,We(s,i)){var u=t.interleaved;u===null?(l.next=l,Yi(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=uc(e,t,l,r),n!==null&&(l=fe(),Ve(n,e,r,l),Pc(n,t,r))}}function jc(e){var t=e.alternate;return e===K||t!==null&&t===K}function Rc(e,t){Xn=kl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Pc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Di(e,n)}}var El={readContext:Fe,useCallback:oe,useContext:oe,useEffect:oe,useImperativeHandle:oe,useInsertionEffect:oe,useLayoutEffect:oe,useMemo:oe,useReducer:oe,useRef:oe,useState:oe,useDebugValue:oe,useDeferredValue:oe,useTransition:oe,useMutableSource:oe,useSyncExternalStore:oe,useId:oe,unstable_isNewReconciler:!1},Rp={readContext:Fe,useCallback:function(e,t){return Ye().memoizedState=[e,t===void 0?null:t],e},useContext:Fe,useEffect:au,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Gr(4194308,4,Sc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Gr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Gr(4,2,e,t)},useMemo:function(e,t){var n=Ye();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ye();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=_p.bind(null,K,e),[r.memoizedState,e]},useRef:function(e){var t=Ye();return e={current:e},t.memoizedState=e},useState:uu,useDebugValue:os,useDeferredValue:function(e){return Ye().memoizedState=e},useTransition:function(){var e=uu(!1),t=e[0];return e=Cp.bind(null,e[1]),Ye().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=K,l=Ye();if(W){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),te===null)throw Error(E(349));Vt&30||pc(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,au(hc.bind(null,r,o,e),[e]),r.flags|=2048,pr(9,mc.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ye(),t=te.identifierPrefix;if(W){var n=rt,r=nt;n=(r&~(1<<32-He(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=fr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Ge]=t,e[ur]=r,Uc(e,t,!1,!1),t.stateNode=e;e:{switch(i=Io(n,r),n){case"dialog":B("cancel",e),B("close",e),l=r;break;case"iframe":case"object":case"embed":B("load",e),l=r;break;case"video":case"audio":for(l=0;lEn&&(t.flags|=128,r=!0,Dn(o,!1),t.lanes=4194304)}else{if(!r)if(e=Sl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Dn(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!W)return ie(t),null}else 2*Y()-o.renderingStartTime>En&&n!==1073741824&&(t.flags|=128,r=!0,Dn(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Y(),t.sibling=null,n=Q.current,U(Q,r?n&1|2:n&1),t):(ie(t),null);case 22:case 23:return fs(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ee&1073741824&&(ie(t),t.subtreeFlags&6&&(t.flags|=8192)):ie(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function Dp(e,t){switch(Qi(t),t.tag){case 1:return we(t.type)&&ml(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Sn(),V(ve),V(ae),es(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return bi(t),null;case 13:if(V(Q),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));wn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(Q),null;case 4:return Sn(),null;case 10:return Ji(t.type._context),null;case 22:case 23:return fs(),null;case 24:return null;default:return null}}var $r=!1,se=!1,Mp=typeof WeakSet=="function"?WeakSet:Set,R=null;function an(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){X(e,t,r)}else n.current=null}function fi(e,t,n){try{n()}catch(r){X(e,t,r)}}var xu=!1;function Ip(e,t){if(Xo=cl,e=Ka(),Vi(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,s=-1,u=-1,a=0,f=0,h=e,g=null;t:for(;;){for(var w;h!==n||l!==0&&h.nodeType!==3||(s=i+l),h!==o||r!==0&&h.nodeType!==3||(u=i+r),h.nodeType===3&&(i+=h.nodeValue.length),(w=h.firstChild)!==null;)g=h,h=w;for(;;){if(h===e)break t;if(g===n&&++a===l&&(s=i),g===o&&++f===r&&(u=i),(w=h.nextSibling)!==null)break;h=g,g=h.parentNode}h=w}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Jo={focusedElem:e,selectionRange:n},cl=!1,R=t;R!==null;)if(t=R,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,R=e;else for(;R!==null;){t=R;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var x=y.memoizedProps,k=y.memoizedState,d=t.stateNode,c=d.getSnapshotBeforeUpdate(t.elementType===t.type?x:Ue(t.type,x),k);d.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(E(163))}}catch(S){X(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,R=e;break}R=t.return}return y=xu,xu=!1,y}function Jn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&fi(t,n,o)}l=l.next}while(l!==r)}}function Ul(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function di(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Hc(e){var t=e.alternate;t!==null&&(e.alternate=null,Hc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ge],delete t[ur],delete t[Zo],delete t[xp],delete t[Sp])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Vc(e){return e.tag===5||e.tag===3||e.tag===4}function Su(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Vc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function pi(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=pl));else if(r!==4&&(e=e.child,e!==null))for(pi(e,t,n),e=e.sibling;e!==null;)pi(e,t,n),e=e.sibling}function mi(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(mi(e,t,n),e=e.sibling;e!==null;)mi(e,t,n),e=e.sibling}var ne=null,$e=!1;function ft(e,t,n){for(n=n.child;n!==null;)Wc(e,t,n),n=n.sibling}function Wc(e,t,n){if(Ze&&typeof Ze.onCommitFiberUnmount=="function")try{Ze.onCommitFiberUnmount(Ol,n)}catch{}switch(n.tag){case 5:se||an(n,t);case 6:var r=ne,l=$e;ne=null,ft(e,t,n),ne=r,$e=l,ne!==null&&($e?(e=ne,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ne.removeChild(n.stateNode));break;case 18:ne!==null&&($e?(e=ne,n=n.stateNode,e.nodeType===8?mo(e.parentNode,n):e.nodeType===1&&mo(e,n),rr(e)):mo(ne,n.stateNode));break;case 4:r=ne,l=$e,ne=n.stateNode.containerInfo,$e=!0,ft(e,t,n),ne=r,$e=l;break;case 0:case 11:case 14:case 15:if(!se&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&fi(n,t,i),l=l.next}while(l!==r)}ft(e,t,n);break;case 1:if(!se&&(an(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){X(n,t,s)}ft(e,t,n);break;case 21:ft(e,t,n);break;case 22:n.mode&1?(se=(r=se)||n.memoizedState!==null,ft(e,t,n),se=r):ft(e,t,n);break;default:ft(e,t,n)}}function ku(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Mp),t.forEach(function(r){var l=qp.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Ie(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=Y()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*$p(r/1960))-r,10e?16:e,gt===null)var r=!1;else{if(e=gt,gt=null,_l=0,F&6)throw Error(E(331));var l=F;for(F|=4,R=e.current;R!==null;){var o=R,i=o.child;if(R.flags&16){var s=o.deletions;if(s!==null){for(var u=0;uY()-as?It(e,0):us|=n),xe(e,t)}function Zc(e,t){t===0&&(e.mode&1?(t=Or,Or<<=1,!(Or&130023424)&&(Or=4194304)):t=1);var n=fe();e=st(e,t),e!==null&&(yr(e,t,n),xe(e,n))}function Kp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Zc(e,n)}function qp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(E(314))}r!==null&&r.delete(t),Zc(e,n)}var bc;bc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ve.current)ge=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ge=!1,Ap(e,t,n);ge=!!(e.flags&131072)}else ge=!1,W&&t.flags&1048576&&rc(t,gl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Zr(e,t),e=t.pendingProps;var l=vn(t,ae.current);hn(t,n),l=ns(null,t,r,e,l,n);var o=rs();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,we(r)?(o=!0,hl(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Gi(t),l.updater=Il,t.stateNode=l,l._reactInternals=t,li(t,r,e,n),t=si(null,t,r,!0,o,n)):(t.tag=0,W&&o&&Wi(t),ce(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Zr(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Jp(r),e=Ue(r,e),l){case 0:t=ii(null,t,r,e,n);break e;case 1:t=gu(null,t,r,e,n);break e;case 11:t=hu(null,t,r,e,n);break e;case 14:t=yu(null,t,r,Ue(r.type,e),n);break e}throw Error(E(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ue(r,l),ii(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ue(r,l),gu(e,t,r,l,n);case 3:e:{if(Dc(t),e===null)throw Error(E(387));r=t.pendingProps,o=t.memoizedState,l=o.element,ac(e,t),xl(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=kn(Error(E(423)),t),t=vu(e,t,r,n,l);break e}else if(r!==l){l=kn(Error(E(424)),t),t=vu(e,t,r,n,l);break e}else for(Ne=St(t.stateNode.containerInfo.firstChild),Ce=t,W=!0,Be=null,n=sc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(wn(),r===l){t=ut(e,t,n);break e}ce(e,t,r,n)}t=t.child}return t;case 5:return cc(t),e===null&&ti(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,Yo(r,l)?i=null:o!==null&&Yo(r,o)&&(t.flags|=32),Fc(e,t),ce(e,t,i,n),t.child;case 6:return e===null&&ti(t),null;case 13:return Mc(e,t,n);case 4:return Zi(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=xn(t,null,r,n):ce(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ue(r,l),hu(e,t,r,l,n);case 7:return ce(e,t,t.pendingProps,n),t.child;case 8:return ce(e,t,t.pendingProps.children,n),t.child;case 12:return ce(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,U(vl,r._currentValue),r._currentValue=i,o!==null)if(We(o.value,i)){if(o.children===l.children&&!ve.current){t=ut(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){i=o.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=lt(-1,n&-n),u.tag=2;var a=o.updateQueue;if(a!==null){a=a.shared;var f=a.pending;f===null?u.next=u:(u.next=f.next,f.next=u),a.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),ni(o.return,n,t),s.lanes|=n;break}u=u.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(E(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),ni(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}ce(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,hn(t,n),l=Fe(l),r=r(l),t.flags|=1,ce(e,t,r,n),t.child;case 14:return r=t.type,l=Ue(r,t.pendingProps),l=Ue(r.type,l),yu(e,t,r,l,n);case 15:return zc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ue(r,l),Zr(e,t),t.tag=1,we(r)?(e=!0,hl(t)):e=!1,hn(t,n),Tc(t,r,l),li(t,r,l,n),si(null,t,r,!0,e,n);case 19:return Ic(e,t,n);case 22:return Ac(e,t,n)}throw Error(E(156,t.tag))};function ef(e,t){return ja(e,t)}function Xp(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ze(e,t,n,r){return new Xp(e,t,n,r)}function ps(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jp(e){if(typeof e=="function")return ps(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Li)return 11;if(e===zi)return 14}return 2}function Ct(e,t){var n=e.alternate;return n===null?(n=ze(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function tl(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")ps(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case bt:return Ut(n.children,l,o,t);case Oi:i=8,l|=8;break;case Ro:return e=ze(12,n,t,l|2),e.elementType=Ro,e.lanes=o,e;case Po:return e=ze(13,n,t,l),e.elementType=Po,e.lanes=o,e;case To:return e=ze(19,n,t,l),e.elementType=To,e.lanes=o,e;case ca:return Bl(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ua:i=10;break e;case aa:i=9;break e;case Li:i=11;break e;case zi:i=14;break e;case dt:i=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=ze(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function Ut(e,t,n,r){return e=ze(7,e,r,t),e.lanes=n,e}function Bl(e,t,n,r){return e=ze(22,e,r,t),e.elementType=ca,e.lanes=n,e.stateNode={isHidden:!1},e}function ko(e,t,n){return e=ze(6,e,null,t),e.lanes=n,e}function Eo(e,t,n){return t=ze(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Yp(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=no(0),this.expirationTimes=no(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=no(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function ms(e,t,n,r,l,o,i,s,u){return e=new Yp(e,t,n,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ze(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Gi(o),e}function Gp(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(lf)}catch(e){console.error(e)}}lf(),la.exports=je;var nm=la.exports;function of(e,t){return function(){return e.apply(t,arguments)}}const{toString:rm}=Object.prototype,{getPrototypeOf:vs}=Object,{iterator:Kl,toStringTag:sf}=Symbol,ql=(e=>t=>{const n=rm.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Qe=e=>(e=e.toLowerCase(),t=>ql(t)===e),Xl=e=>t=>typeof t===e,{isArray:Rn}=Array,Nn=Xl("undefined");function xr(e){return e!==null&&!Nn(e)&&e.constructor!==null&&!Nn(e.constructor)&&Se(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const uf=Qe("ArrayBuffer");function lm(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&uf(e.buffer),t}const om=Xl("string"),Se=Xl("function"),af=Xl("number"),Sr=e=>e!==null&&typeof e=="object",im=e=>e===!0||e===!1,nl=e=>{if(ql(e)!=="object")return!1;const t=vs(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(sf in e)&&!(Kl in e)},sm=e=>{if(!Sr(e)||xr(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},um=Qe("Date"),am=Qe("File"),cm=Qe("Blob"),fm=Qe("FileList"),dm=e=>Sr(e)&&Se(e.pipe),pm=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Se(e.append)&&((t=ql(e))==="formdata"||t==="object"&&Se(e.toString)&&e.toString()==="[object FormData]"))},mm=Qe("URLSearchParams"),[hm,ym,gm,vm]=["ReadableStream","Request","Response","Headers"].map(Qe),wm=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function kr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,l;if(typeof e!="object"&&(e=[e]),Rn(e))for(r=0,l=e.length;r0;)if(l=n[r],t===l.toLowerCase())return l;return null}const Mt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ff=e=>!Nn(e)&&e!==Mt;function wi(){const{caseless:e,skipUndefined:t}=ff(this)&&this||{},n={},r=(l,o)=>{const i=e&&cf(n,o)||o;nl(n[i])&&nl(l)?n[i]=wi(n[i],l):nl(l)?n[i]=wi({},l):Rn(l)?n[i]=l.slice():(!t||!Nn(l))&&(n[i]=l)};for(let l=0,o=arguments.length;l(kr(t,(l,o)=>{n&&Se(l)?e[o]=of(l,n):e[o]=l},{allOwnKeys:r}),e),Sm=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),km=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Em=(e,t,n,r)=>{let l,o,i;const s={};if(t=t||{},e==null)return t;do{for(l=Object.getOwnPropertyNames(e),o=l.length;o-- >0;)i=l[o],(!r||r(i,e,t))&&!s[i]&&(t[i]=e[i],s[i]=!0);e=n!==!1&&vs(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Nm=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Cm=e=>{if(!e)return null;if(Rn(e))return e;let t=e.length;if(!af(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},_m=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&vs(Uint8Array)),jm=(e,t)=>{const r=(e&&e[Kl]).call(e);let l;for(;(l=r.next())&&!l.done;){const o=l.value;t.call(e,o[0],o[1])}},Rm=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Pm=Qe("HTMLFormElement"),Tm=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,l){return r.toUpperCase()+l}),Tu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Om=Qe("RegExp"),df=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};kr(n,(l,o)=>{let i;(i=t(l,o,e))!==!1&&(r[o]=i||l)}),Object.defineProperties(e,r)},Lm=e=>{df(e,(t,n)=>{if(Se(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Se(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},zm=(e,t)=>{const n={},r=l=>{l.forEach(o=>{n[o]=!0})};return Rn(e)?r(e):r(String(e).split(t)),n},Am=()=>{},Fm=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Dm(e){return!!(e&&Se(e.append)&&e[sf]==="FormData"&&e[Kl])}const Mm=e=>{const t=new Array(10),n=(r,l)=>{if(Sr(r)){if(t.indexOf(r)>=0)return;if(xr(r))return r;if(!("toJSON"in r)){t[l]=r;const o=Rn(r)?[]:{};return kr(r,(i,s)=>{const u=n(i,l+1);!Nn(u)&&(o[s]=u)}),t[l]=void 0,o}}return r};return n(e,0)},Im=Qe("AsyncFunction"),Um=e=>e&&(Sr(e)||Se(e))&&Se(e.then)&&Se(e.catch),pf=((e,t)=>e?setImmediate:t?((n,r)=>(Mt.addEventListener("message",({source:l,data:o})=>{l===Mt&&o===n&&r.length&&r.shift()()},!1),l=>{r.push(l),Mt.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Se(Mt.postMessage)),$m=typeof queueMicrotask<"u"?queueMicrotask.bind(Mt):typeof process<"u"&&process.nextTick||pf,Bm=e=>e!=null&&Se(e[Kl]),v={isArray:Rn,isArrayBuffer:uf,isBuffer:xr,isFormData:pm,isArrayBufferView:lm,isString:om,isNumber:af,isBoolean:im,isObject:Sr,isPlainObject:nl,isEmptyObject:sm,isReadableStream:hm,isRequest:ym,isResponse:gm,isHeaders:vm,isUndefined:Nn,isDate:um,isFile:am,isBlob:cm,isRegExp:Om,isFunction:Se,isStream:dm,isURLSearchParams:mm,isTypedArray:_m,isFileList:fm,forEach:kr,merge:wi,extend:xm,trim:wm,stripBOM:Sm,inherits:km,toFlatObject:Em,kindOf:ql,kindOfTest:Qe,endsWith:Nm,toArray:Cm,forEachEntry:jm,matchAll:Rm,isHTMLForm:Pm,hasOwnProperty:Tu,hasOwnProp:Tu,reduceDescriptors:df,freezeMethods:Lm,toObjectSet:zm,toCamelCase:Tm,noop:Am,toFiniteNumber:Fm,findKey:cf,global:Mt,isContextDefined:ff,isSpecCompliantForm:Dm,toJSONObject:Mm,isAsyncFn:Im,isThenable:Um,setImmediate:pf,asap:$m,isIterable:Bm};function O(e,t,n,r,l){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),l&&(this.response=l,this.status=l.status?l.status:null)}v.inherits(O,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:v.toJSONObject(this.config),code:this.code,status:this.status}}});const mf=O.prototype,hf={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{hf[e]={value:e}});Object.defineProperties(O,hf);Object.defineProperty(mf,"isAxiosError",{value:!0});O.from=(e,t,n,r,l,o)=>{const i=Object.create(mf);v.toFlatObject(e,i,function(f){return f!==Error.prototype},a=>a!=="isAxiosError");const s=e&&e.message?e.message:"Error",u=t==null&&e?e.code:t;return O.call(i,s,u,n,r,l),e&&i.cause==null&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",o&&Object.assign(i,o),i};const Hm=null;function xi(e){return v.isPlainObject(e)||v.isArray(e)}function yf(e){return v.endsWith(e,"[]")?e.slice(0,-2):e}function Ou(e,t,n){return e?e.concat(t).map(function(l,o){return l=yf(l),!n&&o?"["+l+"]":l}).join(n?".":""):t}function Vm(e){return v.isArray(e)&&!e.some(xi)}const Wm=v.toFlatObject(v,{},null,function(t){return/^is[A-Z]/.test(t)});function Jl(e,t,n){if(!v.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=v.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,k){return!v.isUndefined(k[x])});const r=n.metaTokens,l=n.visitor||f,o=n.dots,i=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&v.isSpecCompliantForm(t);if(!v.isFunction(l))throw new TypeError("visitor must be a function");function a(y){if(y===null)return"";if(v.isDate(y))return y.toISOString();if(v.isBoolean(y))return y.toString();if(!u&&v.isBlob(y))throw new O("Blob is not supported. Use a Buffer instead.");return v.isArrayBuffer(y)||v.isTypedArray(y)?u&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function f(y,x,k){let d=y;if(y&&!k&&typeof y=="object"){if(v.endsWith(x,"{}"))x=r?x:x.slice(0,-2),y=JSON.stringify(y);else if(v.isArray(y)&&Vm(y)||(v.isFileList(y)||v.endsWith(x,"[]"))&&(d=v.toArray(y)))return x=yf(x),d.forEach(function(p,S){!(v.isUndefined(p)||p===null)&&t.append(i===!0?Ou([x],S,o):i===null?x:x+"[]",a(p))}),!1}return xi(y)?!0:(t.append(Ou(k,x,o),a(y)),!1)}const h=[],g=Object.assign(Wm,{defaultVisitor:f,convertValue:a,isVisitable:xi});function w(y,x){if(!v.isUndefined(y)){if(h.indexOf(y)!==-1)throw Error("Circular reference detected in "+x.join("."));h.push(y),v.forEach(y,function(d,c){(!(v.isUndefined(d)||d===null)&&l.call(t,d,v.isString(c)?c.trim():c,x,g))===!0&&w(d,x?x.concat(c):[c])}),h.pop()}}if(!v.isObject(e))throw new TypeError("data must be an object");return w(e),t}function Lu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ws(e,t){this._pairs=[],e&&Jl(e,this,t)}const gf=ws.prototype;gf.append=function(t,n){this._pairs.push([t,n])};gf.toString=function(t){const n=t?function(r){return t.call(this,r,Lu)}:Lu;return this._pairs.map(function(l){return n(l[0])+"="+n(l[1])},"").join("&")};function Qm(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function vf(e,t,n){if(!t)return e;const r=n&&n.encode||Qm;v.isFunction(n)&&(n={serialize:n});const l=n&&n.serialize;let o;if(l?o=l(t,n):o=v.isURLSearchParams(t)?t.toString():new ws(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class zu{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){v.forEach(this.handlers,function(r){r!==null&&t(r)})}}const wf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Km=typeof URLSearchParams<"u"?URLSearchParams:ws,qm=typeof FormData<"u"?FormData:null,Xm=typeof Blob<"u"?Blob:null,Jm={isBrowser:!0,classes:{URLSearchParams:Km,FormData:qm,Blob:Xm},protocols:["http","https","file","blob","url","data"]},xs=typeof window<"u"&&typeof document<"u",Si=typeof navigator=="object"&&navigator||void 0,Ym=xs&&(!Si||["ReactNative","NativeScript","NS"].indexOf(Si.product)<0),Gm=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Zm=xs&&window.location.href||"http://localhost",bm=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:xs,hasStandardBrowserEnv:Ym,hasStandardBrowserWebWorkerEnv:Gm,navigator:Si,origin:Zm},Symbol.toStringTag,{value:"Module"})),ue={...bm,...Jm};function eh(e,t){return Jl(e,new ue.classes.URLSearchParams,{visitor:function(n,r,l,o){return ue.isNode&&v.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function th(e){return v.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function nh(e){const t={},n=Object.keys(e);let r;const l=n.length;let o;for(r=0;r=n.length;return i=!i&&v.isArray(l)?l.length:i,u?(v.hasOwnProp(l,i)?l[i]=[l[i],r]:l[i]=r,!s):((!l[i]||!v.isObject(l[i]))&&(l[i]=[]),t(n,r,l[i],o)&&v.isArray(l[i])&&(l[i]=nh(l[i])),!s)}if(v.isFormData(e)&&v.isFunction(e.entries)){const n={};return v.forEachEntry(e,(r,l)=>{t(th(r),l,n,0)}),n}return null}function rh(e,t,n){if(v.isString(e))try{return(t||JSON.parse)(e),v.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Er={transitional:wf,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",l=r.indexOf("application/json")>-1,o=v.isObject(t);if(o&&v.isHTMLForm(t)&&(t=new FormData(t)),v.isFormData(t))return l?JSON.stringify(xf(t)):t;if(v.isArrayBuffer(t)||v.isBuffer(t)||v.isStream(t)||v.isFile(t)||v.isBlob(t)||v.isReadableStream(t))return t;if(v.isArrayBufferView(t))return t.buffer;if(v.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return eh(t,this.formSerializer).toString();if((s=v.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Jl(s?{"files[]":t}:t,u&&new u,this.formSerializer)}}return o||l?(n.setContentType("application/json",!1),rh(t)):t}],transformResponse:[function(t){const n=this.transitional||Er.transitional,r=n&&n.forcedJSONParsing,l=this.responseType==="json";if(v.isResponse(t)||v.isReadableStream(t))return t;if(t&&v.isString(t)&&(r&&!this.responseType||l)){const i=!(n&&n.silentJSONParsing)&&l;try{return JSON.parse(t,this.parseReviver)}catch(s){if(i)throw s.name==="SyntaxError"?O.from(s,O.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ue.classes.FormData,Blob:ue.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};v.forEach(["delete","get","head","post","put","patch"],e=>{Er.headers[e]={}});const lh=v.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),oh=e=>{const t={};let n,r,l;return e&&e.split(` -`).forEach(function(i){l=i.indexOf(":"),n=i.substring(0,l).trim().toLowerCase(),r=i.substring(l+1).trim(),!(!n||t[n]&&lh[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Au=Symbol("internals");function In(e){return e&&String(e).trim().toLowerCase()}function rl(e){return e===!1||e==null?e:v.isArray(e)?e.map(rl):String(e)}function ih(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 sh=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function No(e,t,n,r,l){if(v.isFunction(r))return r.call(this,t,n);if(l&&(t=n),!!v.isString(t)){if(v.isString(r))return t.indexOf(r)!==-1;if(v.isRegExp(r))return r.test(t)}}function uh(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function ah(e,t){const n=v.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(l,o,i){return this[r].call(this,t,l,o,i)},configurable:!0})})}let ke=class{constructor(t){t&&this.set(t)}set(t,n,r){const l=this;function o(s,u,a){const f=In(u);if(!f)throw new Error("header name must be a non-empty string");const h=v.findKey(l,f);(!h||l[h]===void 0||a===!0||a===void 0&&l[h]!==!1)&&(l[h||u]=rl(s))}const i=(s,u)=>v.forEach(s,(a,f)=>o(a,f,u));if(v.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(v.isString(t)&&(t=t.trim())&&!sh(t))i(oh(t),n);else if(v.isObject(t)&&v.isIterable(t)){let s={},u,a;for(const f of t){if(!v.isArray(f))throw TypeError("Object iterator must return a key-value pair");s[a=f[0]]=(u=s[a])?v.isArray(u)?[...u,f[1]]:[u,f[1]]:f[1]}i(s,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=In(t),t){const r=v.findKey(this,t);if(r){const l=this[r];if(!n)return l;if(n===!0)return ih(l);if(v.isFunction(n))return n.call(this,l,r);if(v.isRegExp(n))return n.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=In(t),t){const r=v.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||No(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let l=!1;function o(i){if(i=In(i),i){const s=v.findKey(r,i);s&&(!n||No(r,r[s],s,n))&&(delete r[s],l=!0)}}return v.isArray(t)?t.forEach(o):o(t),l}clear(t){const n=Object.keys(this);let r=n.length,l=!1;for(;r--;){const o=n[r];(!t||No(this,this[o],o,t,!0))&&(delete this[o],l=!0)}return l}normalize(t){const n=this,r={};return v.forEach(this,(l,o)=>{const i=v.findKey(r,o);if(i){n[i]=rl(l),delete n[o];return}const s=t?uh(o):String(o).trim();s!==o&&delete n[o],n[s]=rl(l),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return v.forEach(this,(r,l)=>{r!=null&&r!==!1&&(n[l]=t&&v.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(` -`)}getSetCookie(){return this.get("set-cookie")||[]}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(l=>r.set(l)),r}static accessor(t){const r=(this[Au]=this[Au]={accessors:{}}).accessors,l=this.prototype;function o(i){const s=In(i);r[s]||(ah(l,i),r[s]=!0)}return v.isArray(t)?t.forEach(o):o(t),this}};ke.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);v.reduceDescriptors(ke.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});v.freezeMethods(ke);function Co(e,t){const n=this||Er,r=t||n,l=ke.from(r.headers);let o=r.data;return v.forEach(e,function(s){o=s.call(n,o,l.normalize(),t?t.status:void 0)}),l.normalize(),o}function Sf(e){return!!(e&&e.__CANCEL__)}function Pn(e,t,n){O.call(this,e??"canceled",O.ERR_CANCELED,t,n),this.name="CanceledError"}v.inherits(Pn,O,{__CANCEL__:!0});function kf(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new O("Request failed with status code "+n.status,[O.ERR_BAD_REQUEST,O.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function ch(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function fh(e,t){e=e||10;const n=new Array(e),r=new Array(e);let l=0,o=0,i;return t=t!==void 0?t:1e3,function(u){const a=Date.now(),f=r[o];i||(i=a),n[l]=u,r[l]=a;let h=o,g=0;for(;h!==l;)g+=n[h++],h=h%e;if(l=(l+1)%e,l===o&&(o=(o+1)%e),a-i{n=f,l=null,o&&(clearTimeout(o),o=null),e(...a)};return[(...a)=>{const f=Date.now(),h=f-n;h>=r?i(a,f):(l=a,o||(o=setTimeout(()=>{o=null,i(l)},r-h)))},()=>l&&i(l)]}const Pl=(e,t,n=3)=>{let r=0;const l=fh(50,250);return dh(o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,u=i-r,a=l(u),f=i<=s;r=i;const h={loaded:i,total:s,progress:s?i/s:void 0,bytes:u,rate:a||void 0,estimated:a&&s&&f?(s-i)/a:void 0,event:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(h)},n)},Fu=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Du=e=>(...t)=>v.asap(()=>e(...t)),ph=ue.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ue.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ue.origin),ue.navigator&&/(msie|trident)/i.test(ue.navigator.userAgent)):()=>!0,mh=ue.hasStandardBrowserEnv?{write(e,t,n,r,l,o){const i=[e+"="+encodeURIComponent(t)];v.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),v.isString(r)&&i.push("path="+r),v.isString(l)&&i.push("domain="+l),o===!0&&i.push("secure"),document.cookie=i.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 hh(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function yh(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ef(e,t,n){let r=!hh(t);return e&&(r||n==!1)?yh(e,t):t}const Mu=e=>e instanceof ke?{...e}:e;function Kt(e,t){t=t||{};const n={};function r(a,f,h,g){return v.isPlainObject(a)&&v.isPlainObject(f)?v.merge.call({caseless:g},a,f):v.isPlainObject(f)?v.merge({},f):v.isArray(f)?f.slice():f}function l(a,f,h,g){if(v.isUndefined(f)){if(!v.isUndefined(a))return r(void 0,a,h,g)}else return r(a,f,h,g)}function o(a,f){if(!v.isUndefined(f))return r(void 0,f)}function i(a,f){if(v.isUndefined(f)){if(!v.isUndefined(a))return r(void 0,a)}else return r(void 0,f)}function s(a,f,h){if(h in t)return r(a,f);if(h in e)return r(void 0,a)}const u={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(a,f,h)=>l(Mu(a),Mu(f),h,!0)};return v.forEach(Object.keys({...e,...t}),function(f){const h=u[f]||l,g=h(e[f],t[f],f);v.isUndefined(g)&&h!==s||(n[f]=g)}),n}const Nf=e=>{const t=Kt({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:l,xsrfCookieName:o,headers:i,auth:s}=t;if(t.headers=i=ke.from(i),t.url=vf(Ef(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),v.isFormData(n)){if(ue.hasStandardBrowserEnv||ue.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(v.isFunction(n.getHeaders)){const u=n.getHeaders(),a=["content-type","content-length"];Object.entries(u).forEach(([f,h])=>{a.includes(f.toLowerCase())&&i.set(f,h)})}}if(ue.hasStandardBrowserEnv&&(r&&v.isFunction(r)&&(r=r(t)),r||r!==!1&&ph(t.url))){const u=l&&o&&mh.read(o);u&&i.set(l,u)}return t},gh=typeof XMLHttpRequest<"u",vh=gh&&function(e){return new Promise(function(n,r){const l=Nf(e);let o=l.data;const i=ke.from(l.headers).normalize();let{responseType:s,onUploadProgress:u,onDownloadProgress:a}=l,f,h,g,w,y;function x(){w&&w(),y&&y(),l.cancelToken&&l.cancelToken.unsubscribe(f),l.signal&&l.signal.removeEventListener("abort",f)}let k=new XMLHttpRequest;k.open(l.method.toUpperCase(),l.url,!0),k.timeout=l.timeout;function d(){if(!k)return;const p=ke.from("getAllResponseHeaders"in k&&k.getAllResponseHeaders()),N={data:!s||s==="text"||s==="json"?k.responseText:k.response,status:k.status,statusText:k.statusText,headers:p,config:e,request:k};kf(function(C){n(C),x()},function(C){r(C),x()},N),k=null}"onloadend"in k?k.onloadend=d:k.onreadystatechange=function(){!k||k.readyState!==4||k.status===0&&!(k.responseURL&&k.responseURL.indexOf("file:")===0)||setTimeout(d)},k.onabort=function(){k&&(r(new O("Request aborted",O.ECONNABORTED,e,k)),k=null)},k.onerror=function(S){const N=S&&S.message?S.message:"Network Error",j=new O(N,O.ERR_NETWORK,e,k);j.event=S||null,r(j),k=null},k.ontimeout=function(){let S=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const N=l.transitional||wf;l.timeoutErrorMessage&&(S=l.timeoutErrorMessage),r(new O(S,N.clarifyTimeoutError?O.ETIMEDOUT:O.ECONNABORTED,e,k)),k=null},o===void 0&&i.setContentType(null),"setRequestHeader"in k&&v.forEach(i.toJSON(),function(S,N){k.setRequestHeader(N,S)}),v.isUndefined(l.withCredentials)||(k.withCredentials=!!l.withCredentials),s&&s!=="json"&&(k.responseType=l.responseType),a&&([g,y]=Pl(a,!0),k.addEventListener("progress",g)),u&&k.upload&&([h,w]=Pl(u),k.upload.addEventListener("progress",h),k.upload.addEventListener("loadend",w)),(l.cancelToken||l.signal)&&(f=p=>{k&&(r(!p||p.type?new Pn(null,e,k):p),k.abort(),k=null)},l.cancelToken&&l.cancelToken.subscribe(f),l.signal&&(l.signal.aborted?f():l.signal.addEventListener("abort",f)));const c=ch(l.url);if(c&&ue.protocols.indexOf(c)===-1){r(new O("Unsupported protocol "+c+":",O.ERR_BAD_REQUEST,e));return}k.send(o||null)})},wh=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,l;const o=function(a){if(!l){l=!0,s();const f=a instanceof Error?a:this.reason;r.abort(f instanceof O?f:new Pn(f instanceof Error?f.message:f))}};let i=t&&setTimeout(()=>{i=null,o(new O(`timeout ${t} of ms exceeded`,O.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(a=>{a.unsubscribe?a.unsubscribe(o):a.removeEventListener("abort",o)}),e=null)};e.forEach(a=>a.addEventListener("abort",o));const{signal:u}=r;return u.unsubscribe=()=>v.asap(s),u}},xh=function*(e,t){let n=e.byteLength;if(n{const l=Sh(e,t);let o=0,i,s=u=>{i||(i=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:a,value:f}=await l.next();if(a){s(),u.close();return}let h=f.byteLength;if(n){let g=o+=h;n(g)}u.enqueue(new Uint8Array(f))}catch(a){throw s(a),a}},cancel(u){return s(u),l.return()}},{highWaterMark:2})},Uu=64*1024,{isFunction:Vr}=v,Eh=(({Request:e,Response:t})=>({Request:e,Response:t}))(v.global),{ReadableStream:$u,TextEncoder:Bu}=v.global,Hu=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Nh=e=>{e=v.merge.call({skipUndefined:!0},Eh,e);const{fetch:t,Request:n,Response:r}=e,l=t?Vr(t):typeof fetch=="function",o=Vr(n),i=Vr(r);if(!l)return!1;const s=l&&Vr($u),u=l&&(typeof Bu=="function"?(y=>x=>y.encode(x))(new Bu):async y=>new Uint8Array(await new n(y).arrayBuffer())),a=o&&s&&Hu(()=>{let y=!1;const x=new n(ue.origin,{body:new $u,method:"POST",get duplex(){return y=!0,"half"}}).headers.has("Content-Type");return y&&!x}),f=i&&s&&Hu(()=>v.isReadableStream(new r("").body)),h={stream:f&&(y=>y.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(y=>{!h[y]&&(h[y]=(x,k)=>{let d=x&&x[y];if(d)return d.call(x);throw new O(`Response type '${y}' is not supported`,O.ERR_NOT_SUPPORT,k)})});const g=async y=>{if(y==null)return 0;if(v.isBlob(y))return y.size;if(v.isSpecCompliantForm(y))return(await new n(ue.origin,{method:"POST",body:y}).arrayBuffer()).byteLength;if(v.isArrayBufferView(y)||v.isArrayBuffer(y))return y.byteLength;if(v.isURLSearchParams(y)&&(y=y+""),v.isString(y))return(await u(y)).byteLength},w=async(y,x)=>{const k=v.toFiniteNumber(y.getContentLength());return k??g(x)};return async y=>{let{url:x,method:k,data:d,signal:c,cancelToken:p,timeout:S,onDownloadProgress:N,onUploadProgress:j,responseType:C,headers:P,withCredentials:I="same-origin",fetchOptions:z}=Nf(y),me=t||fetch;C=C?(C+"").toLowerCase():"text";let Ke=wh([c,p&&p.toAbortSignal()],S),Me=null;const qe=Ke&&Ke.unsubscribe&&(()=>{Ke.unsubscribe()});let Nr;try{if(j&&a&&k!=="get"&&k!=="head"&&(Nr=await w(P,d))!==0){let D=new n(x,{method:"POST",body:d,duplex:"half"}),$;if(v.isFormData(d)&&($=D.headers.get("content-type"))&&P.setContentType($),D.body){const[ct,Te]=Fu(Nr,Pl(Du(j)));d=Iu(D.body,Uu,ct,Te)}}v.isString(I)||(I=I?"include":"omit");const he=o&&"credentials"in n.prototype,Jt={...z,signal:Ke,method:k.toUpperCase(),headers:P.normalize().toJSON(),body:d,duplex:"half",credentials:he?I:void 0};Me=o&&new n(x,Jt);let _=await(o?me(Me,z):me(x,Jt));const T=f&&(C==="stream"||C==="response");if(f&&(N||T&&qe)){const D={};["status","statusText","headers"].forEach(Yt=>{D[Yt]=_[Yt]});const $=v.toFiniteNumber(_.headers.get("content-length")),[ct,Te]=N&&Fu($,Pl(Du(N),!0))||[];_=new r(Iu(_.body,Uu,ct,()=>{Te&&Te(),qe&&qe()}),D)}C=C||"text";let L=await h[v.findKey(h,C)||"text"](_,y);return!T&&qe&&qe(),await new Promise((D,$)=>{kf(D,$,{data:L,headers:ke.from(_.headers),status:_.status,statusText:_.statusText,config:y,request:Me})})}catch(he){throw qe&&qe(),he&&he.name==="TypeError"&&/Load failed|fetch/i.test(he.message)?Object.assign(new O("Network Error",O.ERR_NETWORK,y,Me),{cause:he.cause||he}):O.from(he,he&&he.code,y,Me)}}},Ch=new Map,Cf=e=>{let t=e?e.env:{};const{fetch:n,Request:r,Response:l}=t,o=[r,l,n];let i=o.length,s=i,u,a,f=Ch;for(;s--;)u=o[s],a=f.get(u),a===void 0&&f.set(u,a=s?new Map:Nh(t)),f=a;return a};Cf();const ki={http:Hm,xhr:vh,fetch:{get:Cf}};v.forEach(ki,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Vu=e=>`- ${e}`,_h=e=>v.isFunction(e)||e===null||e===!1,_f={getAdapter:(e,t)=>{e=v.isArray(e)?e:[e];const{length:n}=e;let r,l;const o={};for(let i=0;i`adapter ${u} `+(a===!1?"is not supported by the environment":"is not available in the build"));let s=n?i.length>1?`since : -`+i.map(Vu).join(` -`):" "+Vu(i[0]):"as no adapter specified";throw new O("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return l},adapters:ki};function _o(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Pn(null,e)}function Wu(e){return _o(e),e.headers=ke.from(e.headers),e.data=Co.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),_f.getAdapter(e.adapter||Er.adapter,e)(e).then(function(r){return _o(e),r.data=Co.call(e,e.transformResponse,r),r.headers=ke.from(r.headers),r},function(r){return Sf(r)||(_o(e),r&&r.response&&(r.response.data=Co.call(e,e.transformResponse,r.response),r.response.headers=ke.from(r.response.headers))),Promise.reject(r)})}const jf="1.12.2",Yl={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Yl[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Qu={};Yl.transitional=function(t,n,r){function l(o,i){return"[Axios v"+jf+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,s)=>{if(t===!1)throw new O(l(i," has been removed"+(n?" in "+n:"")),O.ERR_DEPRECATED);return n&&!Qu[i]&&(Qu[i]=!0,console.warn(l(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,s):!0}};Yl.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function jh(e,t,n){if(typeof e!="object")throw new O("options must be an object",O.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let l=r.length;for(;l-- >0;){const o=r[l],i=t[o];if(i){const s=e[o],u=s===void 0||i(s,o,e);if(u!==!0)throw new O("option "+o+" must be "+u,O.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new O("Unknown option "+o,O.ERR_BAD_OPTION)}}const ll={assertOptions:jh,validators:Yl},Je=ll.validators;let $t=class{constructor(t){this.defaults=t||{},this.interceptors={request:new zu,response:new zu}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let l={};Error.captureStackTrace?Error.captureStackTrace(l):l=new Error;const o=l.stack?l.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Kt(this.defaults,n);const{transitional:r,paramsSerializer:l,headers:o}=n;r!==void 0&&ll.assertOptions(r,{silentJSONParsing:Je.transitional(Je.boolean),forcedJSONParsing:Je.transitional(Je.boolean),clarifyTimeoutError:Je.transitional(Je.boolean)},!1),l!=null&&(v.isFunction(l)?n.paramsSerializer={serialize:l}:ll.assertOptions(l,{encode:Je.function,serialize:Je.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ll.assertOptions(n,{baseUrl:Je.spelling("baseURL"),withXsrfToken:Je.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&v.merge(o.common,o[n.method]);o&&v.forEach(["delete","get","head","post","put","patch","common"],y=>{delete o[y]}),n.headers=ke.concat(i,o);const s=[];let u=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(u=u&&x.synchronous,s.unshift(x.fulfilled,x.rejected))});const a=[];this.interceptors.response.forEach(function(x){a.push(x.fulfilled,x.rejected)});let f,h=0,g;if(!u){const y=[Wu.bind(this),void 0];for(y.unshift(...s),y.push(...a),g=y.length,f=Promise.resolve(n);h{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](l);r._listeners=null}),this.promise.then=l=>{let o;const i=new Promise(s=>{r.subscribe(s),o=s}).then(l);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,s){r.reason||(r.reason=new Pn(o,i,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Rf(function(l){t=l}),cancel:t}}};function Ph(e){return function(n){return e.apply(null,n)}}function Th(e){return v.isObject(e)&&e.isAxiosError===!0}const Ei={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ei).forEach(([e,t])=>{Ei[t]=e});function Pf(e){const t=new $t(e),n=of($t.prototype.request,t);return v.extend(n,$t.prototype,t,{allOwnKeys:!0}),v.extend(n,t,null,{allOwnKeys:!0}),n.create=function(l){return Pf(Kt(e,l))},n}const J=Pf(Er);J.Axios=$t;J.CanceledError=Pn;J.CancelToken=Rh;J.isCancel=Sf;J.VERSION=jf;J.toFormData=Jl;J.AxiosError=O;J.Cancel=J.CanceledError;J.all=function(t){return Promise.all(t)};J.spread=Ph;J.isAxiosError=Th;J.mergeConfig=Kt;J.AxiosHeaders=ke;J.formToJSON=e=>xf(v.isHTMLForm(e)?new FormData(e):e);J.getAdapter=_f.getAdapter;J.HttpStatusCode=Ei;J.default=J;const{Axios:vy,AxiosError:wy,CanceledError:xy,isCancel:Sy,CancelToken:ky,VERSION:Ey,all:Ny,Cancel:Cy,isAxiosError:_y,spread:jy,toFormData:Ry,AxiosHeaders:Py,HttpStatusCode:Ty,formToJSON:Oy,getAdapter:Ly,mergeConfig:zy}=J;function Oh(){return m.jsxs("div",{className:"w-full bg-white",children:[m.jsx("div",{className:"w-full h-24 bg-cover bg-center",style:{backgroundImage:"url('/banner.jpeg')"},children:m.jsx("div",{className:"w-full h-full bg-gradient-to-r from-teal-900/40 to-blue-900/40 flex items-center px-8",children:m.jsxs("div",{className:"flex items-center gap-4",children:[m.jsx("img",{src:"/white_logo.png",alt:"Manalife Logo",className:"h-16 w-auto"}),m.jsx("h1",{className:"text-white text-3xl font-bold",children:"Pathora"}),m.jsx("div",{className:"h-8 border-l border-white/70"}),m.jsx("h3",{className:"text-white text-1xl font-semibold tracking-wide",children:"Manalife's AI Pathology Assistant"})]})})}),m.jsxs("div",{className:"bg-blue-50 border-b border-blue-200 px-8 py-3",children:[m.jsx("h3",{className:"font-semibold text-blue-900 mb-1",children:"Public Disclaimer"}),m.jsx("p",{className:"text-sm text-blue-800",children:"Manalife AI models are research prototypes developed to advance innovation in women's health and digital pathology. They are not certified medical devices and are not intended for direct diagnosis or treatment. Clinical validation and regulatory approval are required before any medical use."})]})]})}/** - * @license lucide-react v0.522.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Lh=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),zh=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Ku=e=>{const t=zh(e);return t.charAt(0).toUpperCase()+t.slice(1)},Tf=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Ah=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/** - * @license lucide-react v0.522.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */var Fh={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** - * @license lucide-react v0.522.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Dh=H.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:l="",children:o,iconNode:i,...s},u)=>H.createElement("svg",{ref:u,...Fh,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Tf("lucide",l),...!o&&!Ah(s)&&{"aria-hidden":"true"},...s},[...i.map(([a,f])=>H.createElement(a,f)),...Array.isArray(o)?o:[o]]));/** - * @license lucide-react v0.522.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Pe=(e,t)=>{const n=H.forwardRef(({className:r,...l},o)=>H.createElement(Dh,{ref:o,iconNode:t,className:Tf(`lucide-${Lh(Ku(e))}`,`lucide-${e}`,r),...l}));return n.displayName=Ku(e),n};/** - * @license lucide-react v0.522.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Mh=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ih=Pe("check",Mh);/** - * @license lucide-react v0.522.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Uh=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],$h=Pe("chevron-down",Uh);/** - * @license lucide-react v0.522.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Bh=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Hh=Pe("chevron-right",Bh);/** - * @license lucide-react v0.522.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Vh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]],Wh=Pe("circle-plus",Vh);/** - * @license lucide-react v0.522.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Qh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Kh=Pe("circle-question-mark",Qh);/** - * @license lucide-react v0.522.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const qh=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Xh=Pe("download",qh);/** - * @license lucide-react v0.522.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Jh=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Ss=Pe("file-text",Jh);/** - * @license lucide-react v0.522.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Yh=[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]],Gh=Pe("flask-conical",Yh);/** - * @license lucide-react v0.522.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Zh=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],bh=Pe("loader-circle",Zh);/** - * @license lucide-react v0.522.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const ey=[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]],ty=Pe("microscope",ey);/** - * @license lucide-react v0.522.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const ny=[["path",{d:"M11 2v2",key:"1539x4"}],["path",{d:"M5 2v2",key:"1yf1q8"}],["path",{d:"M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1",key:"rb5t3r"}],["path",{d:"M8 15a6 6 0 0 0 12 0v-3",key:"x18d4x"}],["circle",{cx:"20",cy:"10",r:"2",key:"ts1r5v"}]],ry=Pe("stethoscope",ny);/** - * @license lucide-react v0.522.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const ly=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],oy=Pe("upload",ly);/** - * @license lucide-react v0.522.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const iy=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],sy=Pe("x",iy);function uy({selectedTest:e,onTestChange:t}){const[n,r]=H.useState(!0),l=[{value:"cytology",label:"Cytology Analysis",icon:ty},{value:"colposcopy",label:"Colposcopy Analysis",icon:ry},{value:"histopathology",label:"Histopathology Analysis",icon:Gh}];return m.jsx("aside",{className:"w-72 h-screen bg-white border-r border-gray-200 p-4 flex flex-col justify-between",children:m.jsxs("div",{className:"space-y-2",children:[m.jsxs("div",{children:[m.jsxs("button",{onClick:()=>r(!n),className:"flex items-center justify-between w-full px-3 py-3 rounded-lg hover:bg-gray-50 transition-colors text-gray-800 font-semibold",children:[m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx(Wh,{className:"w-5 h-5 text-teal-600"}),m.jsx("span",{children:"Start New Test"})]}),n?m.jsx($h,{className:"w-5 h-5 text-gray-500"}):m.jsx(Hh,{className:"w-5 h-5 text-gray-500"})]}),n&&m.jsx("div",{className:"mt-1 ml-6 space-y-1",children:l.map(({value:o,label:i,icon:s})=>m.jsxs("button",{onClick:()=>t(o),className:`flex items-center w-full gap-3 px-3 py-2 rounded-md text-sm transition-all duration-200 - ${e===o?"bg-gradient-to-r from-teal-700 to-teal-600 text-white font-medium shadow-sm":"text-gray-700 hover:bg-gray-50"}`,children:[m.jsx(s,{className:`w-4 h-4 ${e===o?"text-white":"text-gray-500"}`}),m.jsx("span",{className:`${e===o?"text-white":"text-gray-700"}`,children:i})]},o))})]}),m.jsx("hr",{className:"border-gray-200 my-4"}),m.jsxs("div",{children:[m.jsxs("button",{className:"w-full flex items-center gap-3 px-3 py-3 text-gray-700 hover:bg-gray-50 rounded-lg transition-colors",children:[m.jsx(Ss,{className:"w-5 h-5 text-gray-500"}),m.jsx("span",{children:"History"})]}),m.jsxs("button",{className:"w-full flex items-center gap-3 px-3 py-3 text-gray-700 hover:bg-gray-50 rounded-lg transition-colors",children:[m.jsx(Kh,{className:"w-5 h-5 text-gray-500"}),m.jsx("span",{children:"Help"})]})]})]})})}function ay({selectedTest:e,uploadedImage:t,setUploadedImage:n,selectedModel:r,setSelectedModel:l,onAnalyze:o}){const i=H.useRef(null),s={cytology:[{value:"mwt",label:"Manalife_AI_MWT"},{value:"yolo",label:"Manalife_AI_YOLOv8"}],colposcopy:[{value:"cin",label:"Manalife_MaANIA_Colpo"}],histopathology:[{value:"histopathology",label:"ManalifeAI__Path Foundation Model"}]},u={cytology:["/cyto/cyt1.jpg","/cyto/cyt2.png","/cyto/cyt3.png"],colposcopy:["/colpo/colp1.jpg","/colpo/colp2.jpg","/colpo/colp3.jpg"],histopathology:["/histo/hist1.png","/histo/hist2.png","/histo/hist3.jpg"]},a=s[e]||[],f=w=>{var x;const y=(x=w.target.files)==null?void 0:x[0];if(y){const k=new FileReader;k.onload=d=>{var c;n((c=d.target)==null?void 0:c.result)},k.readAsDataURL(y)}},h=w=>{w.preventDefault();const y=w.dataTransfer.files[0];if(y){const x=new FileReader;x.onload=k=>{var d;n((d=k.target)==null?void 0:d.result)},x.readAsDataURL(y)}},g=w=>{n(w)};return m.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6",children:[m.jsx("h2",{className:"text-2xl font-semibold text-gray-900 mb-6",children:"Upload an image of a tissue sample"}),m.jsxs("div",{onDrop:h,onDragOver:w=>w.preventDefault(),onClick:()=>{var w;return(w=i.current)==null?void 0:w.click()},className:"border-2 border-dashed border-gray-300 rounded-lg p-8 text-center cursor-pointer hover:border-blue-400 transition-colors",children:[m.jsx("input",{ref:i,type:"file",accept:"image/*",onChange:f,className:"hidden"}),m.jsxs("div",{className:"flex flex-col items-center",children:[m.jsx("div",{className:"w-16 h-16 bg-gray-100 rounded-full flex items-center justify-center mb-4",children:m.jsx(oy,{className:"w-8 h-8 text-gray-400"})}),t?m.jsxs(m.Fragment,{children:[m.jsx("p",{className:"text-green-600 font-medium mb-2",children:"Image uploaded successfully!"}),m.jsx("p",{className:"text-sm text-gray-500 mb-4",children:"Click to upload a different image"}),m.jsx("div",{className:"w-32 h-32 rounded-lg overflow-hidden border border-gray-200",children:m.jsx("img",{src:t,alt:"Uploaded sample",className:"w-full h-full object-cover"})})]}):m.jsx("p",{className:"text-gray-600",children:"Drag and drop or click to upload"})]})]}),m.jsxs("div",{className:"mt-6",children:[m.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Select Analysis Model:"}),m.jsxs("select",{value:r,onChange:w=>l(w.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",children:[m.jsx("option",{value:"",children:"Choose a model..."}),a.map(w=>m.jsx("option",{value:w.value,children:w.label},w.value))]})]}),m.jsx("button",{type:"button",onClick:w=>{w.stopPropagation(),o()},disabled:!t||!r,className:`w-full mt-6 text-white py-3 rounded-lg font-medium transition-colors ${!t||!r?"bg-gray-300 disabled:cursor-not-allowed":"bg-gradient-to-r from-blue-800 to-teal-600 hover:opacity-95"}`,children:"Analyze"}),m.jsx("hr",{className:"my-8 border-gray-200"}),m.jsxs("div",{children:[m.jsx("h3",{className:"text-lg font-semibold text-gray-800 mb-4",children:"Samples Images"}),m.jsx("div",{className:"flex flex-wrap gap-4",children:(u[e]||[]).map((w,y)=>m.jsx("div",{className:`w-20 h-20 rounded-lg border-2 cursor-pointer transition-transform hover:scale-105 overflow-hidden ${t===w?"ring-2 ring-offset-1 ring-blue-800":"border-gray-300"}`,onClick:()=>g(w),children:m.jsx("img",{src:w,alt:`Sample ${y+1}`,className:"w-full h-full object-cover"})},y))})]})]})}function cy({src:e,alt:t,className:n}){const r=H.useRef(null),[l,o]=H.useState(e),[i,s]=H.useState(!1);H.useEffect(()=>{o(e),s(!1)},[e]);const u=()=>{if(!i&&l.startsWith("/")){s(!0);const a=window.location.origin;o(`${a}${l}`)}};return m.jsx("img",{ref:r,src:l,alt:t,className:n,onError:u})}function fy({isOpen:e,onClose:t,onSubmit:n,analysisId:r,analysisSummaryJson:l}){const[o,i]=H.useState({patient_id:"",exam_date:new Date().toISOString().split("T")[0],metadata:{physician:"",facility:"",specimen_type:"",clinical_history:""},notes:"",analysis_id:r});if(!e)return null;const s=a=>{a.preventDefault();const f=new FormData;f.append("patient_id",o.patient_id),f.append("exam_date",o.exam_date),f.append("metadata",JSON.stringify(o.metadata)),f.append("notes",o.notes||""),f.append("analysis_id",o.analysis_id),f.append("analysis_summary",l),n(f)},u=a=>{const{name:f,value:h}=a.target;if(f.startsWith("metadata.")){const g=f.split(".")[1];i(w=>({...w,metadata:{...w.metadata,[g]:h}}))}else i(g=>({...g,[f]:h}))};return m.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center p-4",children:m.jsx("div",{className:"bg-white rounded-lg shadow-xl max-w-2xl w-full max-h-[90vh] overflow-y-auto",children:m.jsxs("div",{className:"p-6 space-y-6",children:[m.jsxs("div",{className:"flex items-center justify-between border-b pb-3",children:[m.jsx("h2",{className:"text-2xl font-semibold text-gray-900",children:"Generate Medical Report"}),m.jsx("button",{onClick:t,className:"text-gray-400 hover:text-gray-500",children:m.jsx(sy,{className:"w-6 h-6"})})]}),m.jsxs("form",{onSubmit:s,className:"space-y-6",children:[m.jsxs("div",{className:"space-y-4",children:[m.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Patient Information"}),m.jsxs("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:[m.jsxs("div",{children:[m.jsx("label",{htmlFor:"patient_id",className:"block text-sm font-medium text-gray-700",children:"Patient ID *"}),m.jsx("input",{required:!0,type:"text",name:"patient_id",id:"patient_id",value:o.patient_id,onChange:u,className:"mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500"})]}),m.jsxs("div",{children:[m.jsx("label",{htmlFor:"exam_date",className:"block text-sm font-medium text-gray-700",children:"Exam Date *"}),m.jsx("input",{required:!0,type:"date",name:"exam_date",id:"exam_date",value:o.exam_date,onChange:u,className:"mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500"})]})]})]}),m.jsxs("div",{className:"space-y-4",children:[m.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Slide Metadata"}),m.jsxs("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:[m.jsxs("div",{children:[m.jsx("label",{htmlFor:"metadata.physician",className:"block text-sm font-medium text-gray-700",children:"Physician Name *"}),m.jsx("input",{required:!0,type:"text",name:"metadata.physician",id:"metadata.physician",value:o.metadata.physician,onChange:u,className:"mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500"})]}),m.jsxs("div",{children:[m.jsx("label",{htmlFor:"metadata.facility",className:"block text-sm font-medium text-gray-700",children:"Facility *"}),m.jsx("input",{required:!0,type:"text",name:"metadata.facility",id:"metadata.facility",value:o.metadata.facility,onChange:u,className:"mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500"})]}),m.jsxs("div",{children:[m.jsx("label",{htmlFor:"metadata.specimen_type",className:"block text-sm font-medium text-gray-700",children:"Specimen Type *"}),m.jsx("input",{required:!0,type:"text",name:"metadata.specimen_type",id:"metadata.specimen_type",value:o.metadata.specimen_type,onChange:u,className:"mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500"})]}),m.jsxs("div",{children:[m.jsx("label",{htmlFor:"metadata.clinical_history",className:"block text-sm font-medium text-gray-700",children:"Clinical History"}),m.jsx("input",{type:"text",name:"metadata.clinical_history",id:"metadata.clinical_history",value:o.metadata.clinical_history,onChange:u,className:"mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500"})]})]})]}),m.jsxs("div",{className:"space-y-4",children:[m.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Doctor's Notes"}),m.jsx("textarea",{name:"notes",id:"notes",rows:4,value:o.notes,onChange:u,placeholder:"Add any additional notes or observations...",className:"mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500"})]}),m.jsxs("div",{className:"flex items-center justify-end space-x-3 pt-4 border-t",children:[m.jsx("button",{type:"button",onClick:t,className:"px-4 py-2 text-sm font-medium text-gray-700 hover:text-gray-500",children:"Cancel"}),m.jsx("button",{type:"submit",className:"px-4 py-2 text-sm font-medium text-white bg-blue-600 rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",children:"Generate Report"})]})]})]})})})}function dy({uploadedImage:e,result:t,loading:n}){var g;const[r,l]=H.useState(!1),o=async w=>{var y,x;try{const k=window.location.origin,d=await J.post(`${k}/reports/`,w,{headers:{"Content-Type":"multipart/form-data"}});d.data.html_url&&window.open(`${k}${d.data.html_url}`,"_blank"),d.data.pdf_url&&window.open(`${k}${d.data.pdf_url}`,"_blank"),l(!1)}catch(k){console.error("Failed to generate report:",k),alert(((x=(y=k.response)==null?void 0:y.data)==null?void 0:x.error)||"Failed to generate report")}};if(n)return m.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6 flex flex-col items-center justify-center",children:[m.jsx(bh,{className:"w-10 h-10 text-blue-600 animate-spin mb-3"}),m.jsx("p",{className:"text-teal-700 font-medium",children:"Analyzing image..."})]});if(!t)return m.jsx("div",{className:"bg-white rounded-lg shadow-sm p-6 text-center text-gray-500",children:"No analysis result available yet."});const{model_used:i,detections:s,annotated_image_url:u,summary:a,confidence:f}=t,h=()=>{if(u){const w=document.createElement("a");w.href=u,w.download="analysis_result.jpg",w.click()}};return m.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6",children:[m.jsxs("div",{className:"flex items-center justify-between mb-6",children:[m.jsxs("div",{children:[m.jsx("h2",{className:"text-2xl font-bold text-gray-800",children:i||"Analysis Result"}),m.jsx("p",{className:"text-sm text-gray-500",children:"Automated Image Analysis"})]}),m.jsxs("div",{className:"flex items-center gap-3",children:[u&&m.jsxs("button",{onClick:h,className:"flex items-center gap-2 bg-gradient-to-r from-teal-700 via-teal-600 to-teal-700 text-white px-4 py-2 rounded-lg hover:opacity-90 transition-all",children:[m.jsx(Xh,{className:"w-4 h-4"}),"Download Image"]}),m.jsxs("button",{onClick:()=>l(!0),className:"flex items-center gap-2 bg-gradient-to-r from-teal-700 via-teal-600 to-teal-700 text-white px-4 py-2 rounded-lg hover:opacity-90 transition-all",children:[m.jsx(Ss,{className:"w-4 h-4"}),"Generate Report"]})]})]}),m.jsx("div",{className:"relative mb-6 rounded-lg overflow-hidden border border-gray-200",children:m.jsx(cy,{src:u||e||"/ui.jpg",alt:"Analysis Result",className:"w-full h-64 object-cover"})}),a&&m.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg mb-6",children:[m.jsx("h3",{className:"text-lg font-semibold text-gray-800 mb-2",children:"AI Summary"}),m.jsxs("p",{className:"text-gray-700 text-sm leading-relaxed",children:[m.jsx("strong",{children:"Abnormal Cells:"})," ",a.abnormal_cells," ",m.jsx("br",{}),m.jsx("strong",{children:"Normal Cells:"})," ",a.normal_cells," ",m.jsx("br",{}),m.jsx("strong",{children:"Average Confidence:"})," ",(g=a.avg_confidence)==null?void 0:g.toFixed(2),"% ",m.jsx("br",{})]}),m.jsx("div",{className:"mt-3 text-gray-800 text-sm italic border-t pt-2",children:a.ai_interpretation||"No AI interpretation available."})]}),s&&s.length>0&&m.jsxs("div",{className:"mb-6",children:[m.jsx("h4",{className:"font-semibold text-gray-900 mb-3",children:"Detected Objects"}),m.jsx("ul",{className:"text-sm text-gray-700 list-disc list-inside space-y-1",children:s.map((w,y)=>m.jsxs("li",{children:[w.name||"Object"," – ",(w.confidence*100).toFixed(1),"%"]},y))})]}),f&&m.jsxs("div",{className:"mb-6",children:[m.jsx("h4",{className:"font-semibold text-gray-900 mb-3",children:"Confidence Levels"}),i&&/mwt|cin|histopathology/i.test(i)?m.jsxs("div",{children:[m.jsxs("div",{className:"mb-3",children:[m.jsxs("div",{className:"flex items-center justify-between mb-1",children:[m.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Average confidence"}),m.jsx("span",{className:"text-sm font-mono text-gray-600",children:a!=null&&a.avg_confidence?`${a.avg_confidence.toFixed(2)}%`:"-"})]}),m.jsx("div",{className:"w-full bg-gray-200 rounded-full h-4 overflow-hidden",children:m.jsx("div",{className:"h-4 bg-gradient-to-r from-amber-600 to-amber-400",style:{width:`${(a==null?void 0:a.avg_confidence)??0}%`}})})]}),m.jsx("div",{className:"space-y-2",children:Object.entries(f).map(([w,y])=>{const k=(Number(y)||0)*100,d=w.toLowerCase().includes("negative")||w.toLowerCase().includes("benign")||w.toLowerCase().includes("low-grade");return m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center justify-between text-sm mb-1",children:[m.jsx("span",{className:"text-gray-700",children:w}),m.jsxs("span",{className:"text-gray-600",children:[k.toFixed(2),"%"]})]}),m.jsx("div",{className:"w-full bg-gray-100 rounded-full h-3",children:m.jsx("div",{className:`h-3 rounded-full ${d?"bg-green-500":"bg-red-500"}`,style:{width:`${k.toFixed(2)}%`}})})]},w)})}),m.jsx("div",{className:"mt-4 bg-gray-50 p-3 rounded-lg text-sm italic text-gray-800 border-t",children:(a==null?void 0:a.ai_interpretation)||"No AI interpretation available."})]}):m.jsx("pre",{className:"bg-gray-100 rounded-lg p-3 text-sm overflow-x-auto",children:JSON.stringify(f,null,2)})]}),m.jsx(fy,{isOpen:r,onClose:()=>l(!1),onSubmit:o,analysisId:u||"",analysisSummaryJson:a?JSON.stringify({...a,model_used:i,confidence:f}):"{}"})]})}function py(){return m.jsxs("footer",{className:"relative w-full text-white py-10 mt-auto bg-cover bg-center",style:{backgroundImage:"url('banner.jpeg')"},children:[m.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-slate-900/80 via-slate-900/50 to-transparent"}),m.jsxs("div",{className:"relative max-w-7xl mx-auto px-8",children:[m.jsxs("div",{className:"flex justify-center gap-8 mb-4",children:[m.jsx("a",{href:"#",className:"relative text-blue-300 hover:text-blue-100 transition-all duration-300 after:content-[''] after:absolute after:left-0 after:bottom-0 after:w-0 hover:after:w-full after:h-[1px] after:bg-blue-300 after:transition-all after:duration-300",children:"Help Center"}),m.jsx("a",{href:"#",className:"relative text-blue-300 hover:text-blue-100 transition-all duration-300 after:content-[''] after:absolute after:left-0 after:bottom-0 after:w-0 hover:after:w-full after:h-[1px] after:bg-blue-300 after:transition-all after:duration-300",children:"Contact Support"})]}),m.jsxs("div",{className:"text-center",children:[m.jsx("p",{className:"font-semibold mb-2",children:"© 2025 Manalife. All rights reserved."}),m.jsx("p",{className:"text-gray-300 text-sm",children:"Advancing innovation in women's health and digital pathology."})]})]}),m.jsx("div",{className:"absolute bottom-4 right-8",children:m.jsx("img",{src:"/white_logo.png",alt:"Manalife Logo",className:"h-12 w-auto opacity-90 hover:opacity-100 transition-opacity duration-300"})})]})}function my({currentStep:e}){const t=[{label:"Upload",index:0},{label:"Analyze",index:1},{label:"Report",index:2}];return m.jsx("div",{className:"bg-white px-8 py-6 border-b border-gray-200",children:m.jsx("div",{className:"max-w-2xl mx-auto flex items-center justify-center",children:t.map((n,r)=>m.jsxs(H.Fragment,{children:[m.jsxs("div",{className:"flex flex-col items-center",children:[m.jsx("div",{className:`w-12 h-12 rounded-full flex items-center justify-center text-white font-semibold transition-all duration-300 ${e>n.index?"bg-gradient-to-r from-teal-500 to-teal-700":e===n.index?"bg-gradient-to-r from-teal-600 to-blue-700":"bg-gray-300 text-gray-600"}`,children:e>n.index?m.jsx(Ih,{className:"w-6 h-6"}):n.index===2?m.jsx(Ss,{className:"w-6 h-6"}):m.jsx("span",{children:r+1})}),m.jsx("span",{className:"mt-2 text-sm font-medium text-gray-700",children:n.label})]}),rn.index?"bg-gradient-to-r from-teal-500 via-teal-600 to-blue-600":"bg-gray-300"}`})]},n.label))})})}function hy(){const[e,t]=H.useState("cytology"),[n,r]=H.useState(null),[l,o]=H.useState(""),[i,s]=H.useState(null),[u,a]=H.useState(!1),[f,h]=H.useState(0),[g,w]=H.useState(!1);H.useEffect(()=>{h(u?2:n?1:0)},[n,u]),H.useEffect(()=>{h(0),a(!1),r(null),o(""),s(null)},[e]);const y=async()=>{var x,k;if(console.log("Analyze button clicked",{uploadedImage:n,selectedModel:l}),!n||!l){alert("Please select a model and upload an image first!");return}w(!0),a(!1),s(null);try{const d=n.startsWith("data:image/")?n.split(";")[0].split("/")[1]:"jpg",c=`analysis_input.${d}`;let p;n.startsWith("data:")?p=await fetch(n).then(P=>P.blob()):p=await fetch(n).then(P=>P.blob()).catch(()=>{const P=window.location.origin;return fetch(`${P}${n}`).then(I=>I.blob())});const S=new File([p],c,{type:p.type||`image/${d}`}),N=new FormData;N.append("file",S),N.append("model_name",l),console.log("Sending request:",{filename:c,type:S.type,size:S.size,model:l});const j=window.location.origin,C=await J.post(`${j}/predict/`,N,{headers:{"Content-Type":"multipart/form-data"}});if(C.data.error)throw new Error(C.data.error);console.log("Received response:",C.data),s(C.data),a(!0)}catch(d){console.error("❌ Error during inference:",d);const c=((k=(x=d.response)==null?void 0:x.data)==null?void 0:k.error)||d.message||"Unknown error occurred";alert(`Error analyzing the image: ${c}`)}finally{w(!1)}};return m.jsxs("div",{className:"flex flex-col min-h-screen w-full bg-gray-50",children:[" ",m.jsx(Oh,{})," ",m.jsx(my,{currentStep:f}),m.jsxs("div",{className:"flex flex-1",children:[m.jsx(uy,{selectedTest:e,onTestChange:t}),m.jsx("main",{className:"flex-1 p-6",children:m.jsxs("div",{className:"max-w-7xl mx-auto grid grid-cols-1 lg:grid-cols-2 gap-6",children:[m.jsx(ay,{selectedTest:e,uploadedImage:n,setUploadedImage:r,selectedModel:l,setSelectedModel:o,onAnalyze:y}),u&&m.jsx(dy,{uploadedImage:(i==null?void 0:i.annotated_image_url)||n,result:i,loading:g})]})})]}),m.jsx(py,{})]})}nm.render(m.jsx(hy,{}),document.getElementById("root"));