From d10e390a4a172594e593a71e3b2d6dc2ffcdb353 Mon Sep 17 00:00:00 2001 From: TatyanaZakiryanova Date: Wed, 6 Nov 2024 21:50:08 +0300 Subject: [PATCH] Updates --- .eslintrc.cjs | 27 ++++++++++++++++++++++ .gitignore | 28 ++++++++++++++++++++++ assets/favicon-eMTDCTgb.png | Bin 0 -> 635 bytes assets/index-CkpGwV-a.js | 45 ++++++++++++++++++++++++++++++++++++ assets/index-CwjhGySz.css | 1 + index.html | 17 ++++++++++++++ 6 files changed, 118 insertions(+) create mode 100644 .eslintrc.cjs create mode 100644 .gitignore create mode 100644 assets/favicon-eMTDCTgb.png create mode 100644 assets/index-CkpGwV-a.js create mode 100644 assets/index-CwjhGySz.css create mode 100644 index.html diff --git a/.eslintrc.cjs b/.eslintrc.cjs new file mode 100644 index 0000000..801da33 --- /dev/null +++ b/.eslintrc.cjs @@ -0,0 +1,27 @@ +module.exports = { + parserOptions: { + ecmaVersion: 'latest', + sourceType: 'module', + project: ['./tsconfig.json', './tsconfig.node.json'], + tsconfigRootDir: __dirname, + }, + root: true, + env: { browser: true, es2020: true }, + extends: [ + 'eslint:recommended', + 'plugin:@typescript-eslint/recommended-type-checked', + 'plugin:react-hooks/recommended', + 'prettier', + ], + ignorePatterns: ['dist', '.eslintrc.cjs'], + parser: '@typescript-eslint/parser', + plugins: ['react-refresh', '@typescript-eslint', 'simple-import-sort'], + rules: { + 'react-refresh/only-export-components': ['warn', { allowConstantExport: true }], + 'linebreak-style': 'off', + 'simple-import-sort/imports': 'error', + 'simple-import-sort/exports': 'error', + 'react/react-in-jsx-scope': 'off', + 'react/prop-types': 'off', + }, +}; diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7ad6d41 --- /dev/null +++ b/.gitignore @@ -0,0 +1,28 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? +jest.config.cjs +jest.setup.ts +tsconfig.jest.json + diff --git a/assets/favicon-eMTDCTgb.png b/assets/favicon-eMTDCTgb.png new file mode 100644 index 0000000000000000000000000000000000000000..7d7b022397b123b4f7515e0211843e3542186bd8 GIT binary patch literal 635 zcmV->0)+jEP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D0uV_=K~y+Tb&^YO z(?Ar3&x{{&61S;HOH&}A7F0!I!y1jsA z8|f#REH*XSwUUSTtHy2 z$!?Mf-u(?30e1RXy`896tNY2k?{Ka{VB;tObI>?nM7>%Bag8B2$Oez|o!^q1ZFMh> z()HG(` zFbhSw61d_(a&0=0X0aOhmutbdqbPkQwmOQUo`zxc)wvQrHY1$!*K)hdwK9iTctZjm zkI+cD$ZlKQU!Drw8jnni?UNyu9l#2SL8`IxrHjCm=nXBF7&zmb*kL;#);_m_>ZNNQ zhg|j@xNMIB5Id2kk}J?Rgy#1ix~Ul*Ay<92h@Q&Ojuro9qsxJ|gdw}Fa;U}{for(const l of o)if(l.type==="childList")for(const i of l.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();function Vf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ta={exports:{}},No={},na={exports:{}},j={};/** + * @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 dr=Symbol.for("react.element"),Wf=Symbol.for("react.portal"),Qf=Symbol.for("react.fragment"),Kf=Symbol.for("react.strict_mode"),qf=Symbol.for("react.profiler"),Xf=Symbol.for("react.provider"),Gf=Symbol.for("react.context"),Jf=Symbol.for("react.forward_ref"),Yf=Symbol.for("react.suspense"),Zf=Symbol.for("react.memo"),bf=Symbol.for("react.lazy"),Nu=Symbol.iterator;function ed(e){return e===null||typeof e!="object"?null:(e=Nu&&e[Nu]||e["@@iterator"],typeof e=="function"?e:null)}var ra={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},oa=Object.assign,la={};function wn(e,t,n){this.props=e,this.context=t,this.refs=la,this.updater=n||ra}wn.prototype.isReactComponent={};wn.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")};wn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ia(){}ia.prototype=wn.prototype;function Ni(e,t,n){this.props=e,this.context=t,this.refs=la,this.updater=n||ra}var Ri=Ni.prototype=new ia;Ri.constructor=Ni;oa(Ri,wn.prototype);Ri.isPureReactComponent=!0;var Ru=Array.isArray,ua=Object.prototype.hasOwnProperty,Ti={current:null},sa={key:!0,ref:!0,__self:!0,__source:!0};function aa(e,t,n){var r,o={},l=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(l=""+t.key),t)ua.call(t,r)&&!sa.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(u===1)o.children=n;else if(1>>1,Z=N[K];if(0>>1;Ko(Jo,L))Rto(Sr,Jo)?(N[K]=Sr,N[Rt]=L,K=Rt):(N[K]=Jo,N[Nt]=L,K=Nt);else if(Rto(Sr,L))N[K]=Sr,N[Rt]=L,K=Rt;else break e}}return z}function o(N,z){var L=N.sortIndex-z.sortIndex;return L!==0?L:N.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var s=[],a=[],d=1,h=null,m=3,S=!1,v=!1,g=!1,x=typeof setTimeout=="function"?setTimeout:null,f=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(N){for(var z=n(a);z!==null;){if(z.callback===null)r(a);else if(z.startTime<=N)r(a),z.sortIndex=z.expirationTime,t(s,z);else break;z=n(a)}}function w(N){if(g=!1,p(N),!v)if(n(s)!==null)v=!0,Xo(k);else{var z=n(a);z!==null&&Go(w,z.startTime-N)}}function k(N,z){v=!1,g&&(g=!1,f(R),R=-1),S=!0;var L=m;try{for(p(z),h=n(s);h!==null&&(!(h.expirationTime>z)||N&&!Le());){var K=h.callback;if(typeof K=="function"){h.callback=null,m=h.priorityLevel;var Z=K(h.expirationTime<=z);z=e.unstable_now(),typeof Z=="function"?h.callback=Z:h===n(s)&&r(s),p(z)}else r(s);h=n(s)}if(h!==null)var wr=!0;else{var Nt=n(a);Nt!==null&&Go(w,Nt.startTime-z),wr=!1}return wr}finally{h=null,m=L,S=!1}}var _=!1,P=null,R=-1,B=5,F=-1;function Le(){return!(e.unstable_now()-FN||125K?(N.sortIndex=L,t(a,N),n(s)===null&&N===n(a)&&(g?(f(R),R=-1):g=!0,Go(w,L-K))):(N.sortIndex=Z,t(s,N),v||S||(v=!0,Xo(k))),N},e.unstable_shouldYield=Le,e.unstable_wrapCallback=function(N){var z=m;return function(){var L=m;m=z;try{return N.apply(this,arguments)}finally{m=L}}}})(ha);pa.exports=ha;var fd=pa.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 dd=dt,xe=fd;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"),Rl=Object.prototype.hasOwnProperty,pd=/^[: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]*$/,Ou={},zu={};function hd(e){return Rl.call(zu,e)?!0:Rl.call(Ou,e)?!1:pd.test(e)?zu[e]=!0:(Ou[e]=!0,!1)}function md(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 yd(e,t,n,r){if(t===null||typeof t>"u"||md(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 fe(e,t,n,r,o,l,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=i}var re={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){re[e]=new fe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];re[t]=new fe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){re[e]=new fe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){re[e]=new fe(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){re[e]=new fe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){re[e]=new fe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){re[e]=new fe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){re[e]=new fe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){re[e]=new fe(e,5,!1,e.toLowerCase(),null,!1,!1)});var zi=/[\-:]([a-z])/g;function Li(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(zi,Li);re[t]=new fe(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(zi,Li);re[t]=new fe(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(zi,Li);re[t]=new fe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){re[e]=new fe(e,1,!1,e.toLowerCase(),null,!1,!1)});re.xlinkHref=new fe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){re[e]=new fe(e,1,!1,e.toLowerCase(),null,!0,!0)});function ji(e,t,n,r){var o=re.hasOwnProperty(t)?re[t]:null;(o!==null?o.type!==0:r||!(2u||o[i]!==l[u]){var s=` +`+o[i].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=i&&0<=u);break}}}finally{bo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Mn(e):""}function vd(e){switch(e.tag){case 5:return Mn(e.type);case 16:return Mn("Lazy");case 13:return Mn("Suspense");case 19:return Mn("SuspenseList");case 0:case 2:case 15:return e=el(e.type,!1),e;case 11:return e=el(e.type.render,!1),e;case 1:return e=el(e.type,!0),e;default:return""}}function Ll(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 Xt:return"Fragment";case qt:return"Portal";case Tl:return"Profiler";case Fi:return"StrictMode";case Ol:return"Suspense";case zl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case va:return(e.displayName||"Context")+".Consumer";case ya:return(e._context.displayName||"Context")+".Provider";case Mi:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Di:return t=e.displayName||null,t!==null?t:Ll(e.type)||"Memo";case it:t=e._payload,e=e._init;try{return Ll(e(t))}catch{}}return null}function gd(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 Ll(t);case 8:return t===Fi?"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 kt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wa(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function wd(e){var t=wa(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,l.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 xr(e){e._valueTracker||(e._valueTracker=wd(e))}function Sa(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=wa(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Zr(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 jl(e,t){var n=t.checked;return W({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ju(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=kt(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 Ea(e,t){t=t.checked,t!=null&&ji(e,"checked",t,!1)}function Fl(e,t){Ea(e,t);var n=kt(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")?Ml(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ml(e,t.type,kt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Fu(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 Ml(e,t,n){(t!=="number"||Zr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Dn=Array.isArray;function ln(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=_r.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Gn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Un={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(Un).forEach(function(e){Sd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Un[t]=Un[e]})});function Ca(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Un.hasOwnProperty(e)&&Un[e]?(""+t).trim():t+"px"}function Pa(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Ca(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Ed=W({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 Il(e,t){if(t){if(Ed[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 Ul(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 Bl=null;function Ai(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $l=null,un=null,sn=null;function Au(e){if(e=mr(e)){if(typeof $l!="function")throw Error(E(280));var t=e.stateNode;t&&(t=Lo(t),$l(e.stateNode,e.type,t))}}function Na(e){un?sn?sn.push(e):sn=[e]:un=e}function Ra(){if(un){var e=un,t=sn;if(sn=un=null,Au(e),t)for(e=0;e>>=0,e===0?32:31-(Ld(e)/jd|0)|0}var Cr=64,Pr=4194304;function An(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 no(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,l=e.pingedLanes,i=n&268435455;if(i!==0){var u=i&~o;u!==0?r=An(u):(l&=i,l!==0&&(r=An(l)))}else i=n&~o,i!==0?r=An(i):l!==0&&(r=An(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,l=t&-t,o>=l||o===16&&(l&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 pr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ae(t),e[t]=n}function Ad(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=$n),Ku=" ",qu=!1;function Xa(e,t){switch(e){case"keyup":return fp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ga(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Gt=!1;function pp(e,t){switch(e){case"compositionend":return Ga(t);case"keypress":return t.which!==32?null:(qu=!0,Ku);case"textInput":return e=t.data,e===Ku&&qu?null:e;default:return null}}function hp(e,t){if(Gt)return e==="compositionend"||!Qi&&Xa(e,t)?(e=Ka(),$r=Hi=ct=null,Gt=!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=Yu(n)}}function ba(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ba(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ec(){for(var e=window,t=Zr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Zr(e.document)}return t}function Ki(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 xp(e){var t=ec(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ba(n.ownerDocument.documentElement,n)){if(r!==null&&Ki(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 o=n.textContent.length,l=Math.min(r.start,o);r=r.end===void 0?l:Math.min(r.end,o),!e.extend&&l>r&&(o=r,r=l,l=o),o=Zu(n,l);var i=Zu(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),l>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,Jt=null,ql=null,Vn=null,Xl=!1;function bu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Xl||Jt==null||Jt!==Zr(r)||(r=Jt,"selectionStart"in r&&Ki(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}),Vn&&tr(Vn,r)||(Vn=r,r=lo(ql,"onSelect"),0bt||(e.current=ei[bt],ei[bt]=null,bt--)}function A(e,t){bt++,ei[bt]=e.current,e.current=t}var xt={},ue=Ct(xt),he=Ct(!1),It=xt;function pn(e,t){var n=e.type.contextTypes;if(!n)return xt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},l;for(l in n)o[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function me(e){return e=e.childContextTypes,e!=null}function uo(){U(he),U(ue)}function is(e,t,n){if(ue.current!==xt)throw Error(E(168));A(ue,t),A(he,n)}function ac(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(E(108,gd(e)||"Unknown",o));return W({},n,r)}function so(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||xt,It=ue.current,A(ue,e),A(he,he.current),!0}function us(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=ac(e,t,It),r.__reactInternalMemoizedMergedChildContext=e,U(he),U(ue),A(ue,e)):U(he),A(he,n)}var Ge=null,jo=!1,hl=!1;function cc(e){Ge===null?Ge=[e]:Ge.push(e)}function Mp(e){jo=!0,cc(e)}function Pt(){if(!hl&&Ge!==null){hl=!0;var e=0,t=D;try{var n=Ge;for(D=1;e>=i,o-=i,Je=1<<32-Ae(t)+o|n<R?(B=P,P=null):B=P.sibling;var F=m(f,P,p[R],w);if(F===null){P===null&&(P=B);break}e&&P&&F.alternate===null&&t(f,P),c=l(F,c,R),_===null?k=F:_.sibling=F,_=F,P=B}if(R===p.length)return n(f,P),$&&Tt(f,R),k;if(P===null){for(;RR?(B=P,P=null):B=P.sibling;var Le=m(f,P,F.value,w);if(Le===null){P===null&&(P=B);break}e&&P&&Le.alternate===null&&t(f,P),c=l(Le,c,R),_===null?k=Le:_.sibling=Le,_=Le,P=B}if(F.done)return n(f,P),$&&Tt(f,R),k;if(P===null){for(;!F.done;R++,F=p.next())F=h(f,F.value,w),F!==null&&(c=l(F,c,R),_===null?k=F:_.sibling=F,_=F);return $&&Tt(f,R),k}for(P=r(f,P);!F.done;R++,F=p.next())F=S(P,f,R,F.value,w),F!==null&&(e&&F.alternate!==null&&P.delete(F.key===null?R:F.key),c=l(F,c,R),_===null?k=F:_.sibling=F,_=F);return e&&P.forEach(function(_n){return t(f,_n)}),$&&Tt(f,R),k}function x(f,c,p,w){if(typeof p=="object"&&p!==null&&p.type===Xt&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case kr:e:{for(var k=p.key,_=c;_!==null;){if(_.key===k){if(k=p.type,k===Xt){if(_.tag===7){n(f,_.sibling),c=o(_,p.props.children),c.return=f,f=c;break e}}else if(_.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===it&&cs(k)===_.type){n(f,_.sibling),c=o(_,p.props),c.ref=zn(f,_,p),c.return=f,f=c;break e}n(f,_);break}else t(f,_);_=_.sibling}p.type===Xt?(c=Dt(p.props.children,f.mode,w,p.key),c.return=f,f=c):(w=Gr(p.type,p.key,p.props,null,f.mode,w),w.ref=zn(f,c,p),w.return=f,f=w)}return i(f);case qt:e:{for(_=p.key;c!==null;){if(c.key===_)if(c.tag===4&&c.stateNode.containerInfo===p.containerInfo&&c.stateNode.implementation===p.implementation){n(f,c.sibling),c=o(c,p.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=kl(p,f.mode,w),c.return=f,f=c}return i(f);case it:return _=p._init,x(f,c,_(p._payload),w)}if(Dn(p))return v(f,c,p,w);if(Pn(p))return g(f,c,p,w);jr(f,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,c!==null&&c.tag===6?(n(f,c.sibling),c=o(c,p),c.return=f,f=c):(n(f,c),c=El(p,f.mode,w),c.return=f,f=c),i(f)):n(f,c)}return x}var mn=hc(!0),mc=hc(!1),fo=Ct(null),po=null,nn=null,Ji=null;function Yi(){Ji=nn=po=null}function Zi(e){var t=fo.current;U(fo),e._currentValue=t}function ri(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 cn(e,t){po=e,Ji=nn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(pe=!0),e.firstContext=null)}function Oe(e){var t=e._currentValue;if(Ji!==e)if(e={context:e,memoizedValue:t,next:null},nn===null){if(po===null)throw Error(E(308));nn=e,po.dependencies={lanes:0,firstContext:e}}else nn=nn.next=e;return t}var Lt=null;function bi(e){Lt===null?Lt=[e]:Lt.push(e)}function yc(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,bi(t)):(n.next=o.next,o.next=n),t.interleaved=n,tt(e,r)}function tt(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 ut=!1;function eu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function vc(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 Ze(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function gt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,M&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,tt(e,n)}return o=r.interleaved,o===null?(t.next=t,bi(r)):(t.next=o.next,o.next=t),r.interleaved=t,tt(e,n)}function Vr(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,Ui(e,n)}}function fs(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,l=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};l===null?o=l=i:l=l.next=i,n=n.next}while(n!==null);l===null?o=l=t:l=l.next=t}else o=l=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:l,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 ho(e,t,n,r){var o=e.updateQueue;ut=!1;var l=o.firstBaseUpdate,i=o.lastBaseUpdate,u=o.shared.pending;if(u!==null){o.shared.pending=null;var s=u,a=s.next;s.next=null,i===null?l=a:i.next=a,i=s;var d=e.alternate;d!==null&&(d=d.updateQueue,u=d.lastBaseUpdate,u!==i&&(u===null?d.firstBaseUpdate=a:u.next=a,d.lastBaseUpdate=s))}if(l!==null){var h=o.baseState;i=0,d=a=s=null,u=l;do{var m=u.lane,S=u.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:S,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var v=e,g=u;switch(m=t,S=n,g.tag){case 1:if(v=g.payload,typeof v=="function"){h=v.call(S,h,m);break e}h=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=g.payload,m=typeof v=="function"?v.call(S,h,m):v,m==null)break e;h=W({},h,m);break e;case 2:ut=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[u]:m.push(u))}else S={eventTime:S,lane:m,tag:u.tag,payload:u.payload,callback:u.callback,next:null},d===null?(a=d=S,s=h):d=d.next=S,i|=m;if(u=u.next,u===null){if(u=o.shared.pending,u===null)break;m=u,u=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(!0);if(d===null&&(s=h),o.baseState=s,o.firstBaseUpdate=a,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else l===null&&(o.shared.lanes=0);$t|=i,e.lanes=i,e.memoizedState=h}}function ds(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=yl.transition;yl.transition={};try{e(!1),t()}finally{D=n,yl.transition=r}}function Fc(){return ze().memoizedState}function Up(e,t,n){var r=St(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Mc(e))Dc(t,n);else if(n=yc(e,t,n,r),n!==null){var o=ae();Ie(n,e,r,o),Ac(n,t,r)}}function Bp(e,t,n){var r=St(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Mc(e))Dc(t,o);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var i=t.lastRenderedState,u=l(i,n);if(o.hasEagerState=!0,o.eagerState=u,Ue(u,i)){var s=t.interleaved;s===null?(o.next=o,bi(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=yc(e,t,o,r),n!==null&&(o=ae(),Ie(n,e,r,o),Ac(n,t,r))}}function Mc(e){var t=e.alternate;return e===V||t!==null&&t===V}function Dc(e,t){Wn=yo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ac(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ui(e,n)}}var vo={readContext:Oe,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},$p={readContext:Oe,useCallback:function(e,t){return Ve().memoizedState=[e,t===void 0?null:t],e},useContext:Oe,useEffect:hs,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Qr(4194308,4,Tc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Qr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Qr(4,2,e,t)},useMemo:function(e,t){var n=Ve();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ve();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=Up.bind(null,V,e),[r.memoizedState,e]},useRef:function(e){var t=Ve();return e={current:e},t.memoizedState=e},useState:ps,useDebugValue:su,useDeferredValue:function(e){return Ve().memoizedState=e},useTransition:function(){var e=ps(!1),t=e[0];return e=Ip.bind(null,e[1]),Ve().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=V,o=Ve();if($){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),ee===null)throw Error(E(349));Bt&30||Ec(r,t,n)}o.memoizedState=n;var l={value:n,getSnapshot:t};return o.queue=l,hs(xc.bind(null,r,l,e),[e]),r.flags|=2048,ar(9,kc.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=Ve(),t=ee.identifierPrefix;if($){var n=Ye,r=Je;n=(r&~(1<<32-Ae(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ur++,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[We]=t,e[or]=r,qc(e,t,!1,!1),t.stateNode=e;e:{switch(i=Ul(n,r),n){case"dialog":I("cancel",e),I("close",e),o=r;break;case"iframe":case"object":case"embed":I("load",e),o=r;break;case"video":case"audio":for(o=0;ogn&&(t.flags|=128,r=!0,Ln(l,!1),t.lanes=4194304)}else{if(!r)if(e=mo(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ln(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!$)return le(t),null}else 2*q()-l.renderingStartTime>gn&&n!==1073741824&&(t.flags|=128,r=!0,Ln(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(n=l.last,n!==null?n.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=q(),t.sibling=null,n=H.current,A(H,r?n&1|2:n&1),t):(le(t),null);case 22:case 23:return hu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?we&1073741824&&(le(t),t.subtreeFlags&6&&(t.flags|=8192)):le(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function Gp(e,t){switch(Xi(t),t.tag){case 1:return me(t.type)&&uo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return yn(),U(he),U(ue),ru(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return nu(t),null;case 13:if(U(H),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));hn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(H),null;case 4:return yn(),null;case 10:return Zi(t.type._context),null;case 22:case 23:return hu(),null;case 24:return null;default:return null}}var Mr=!1,ie=!1,Jp=typeof WeakSet=="function"?WeakSet:Set,C=null;function rn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Q(e,t,r)}else n.current=null}function di(e,t,n){try{n()}catch(r){Q(e,t,r)}}var Cs=!1;function Yp(e,t){if(Gl=ro,e=ec(),Ki(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 o=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var i=0,u=-1,s=-1,a=0,d=0,h=e,m=null;t:for(;;){for(var S;h!==n||o!==0&&h.nodeType!==3||(u=i+o),h!==l||r!==0&&h.nodeType!==3||(s=i+r),h.nodeType===3&&(i+=h.nodeValue.length),(S=h.firstChild)!==null;)m=h,h=S;for(;;){if(h===e)break t;if(m===n&&++a===o&&(u=i),m===l&&++d===r&&(s=i),(S=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=S}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Jl={focusedElem:e,selectionRange:n},ro=!1,C=t;C!==null;)if(t=C,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,C=e;else for(;C!==null;){t=C;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var g=v.memoizedProps,x=v.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?g:Fe(t.type,g),x);f.__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(w){Q(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,C=e;break}C=t.return}return v=Cs,Cs=!1,v}function Qn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var l=o.destroy;o.destroy=void 0,l!==void 0&&di(t,n,l)}o=o.next}while(o!==r)}}function Do(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 pi(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 Jc(e){var t=e.alternate;t!==null&&(e.alternate=null,Jc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[We],delete t[or],delete t[bl],delete t[jp],delete t[Fp])),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 Yc(e){return e.tag===5||e.tag===3||e.tag===4}function Ps(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Yc(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 hi(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=io));else if(r!==4&&(e=e.child,e!==null))for(hi(e,t,n),e=e.sibling;e!==null;)hi(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 te=null,Me=!1;function ot(e,t,n){for(n=n.child;n!==null;)Zc(e,t,n),n=n.sibling}function Zc(e,t,n){if(Qe&&typeof Qe.onCommitFiberUnmount=="function")try{Qe.onCommitFiberUnmount(Ro,n)}catch{}switch(n.tag){case 5:ie||rn(n,t);case 6:var r=te,o=Me;te=null,ot(e,t,n),te=r,Me=o,te!==null&&(Me?(e=te,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):te.removeChild(n.stateNode));break;case 18:te!==null&&(Me?(e=te,n=n.stateNode,e.nodeType===8?pl(e.parentNode,n):e.nodeType===1&&pl(e,n),bn(e)):pl(te,n.stateNode));break;case 4:r=te,o=Me,te=n.stateNode.containerInfo,Me=!0,ot(e,t,n),te=r,Me=o;break;case 0:case 11:case 14:case 15:if(!ie&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var l=o,i=l.destroy;l=l.tag,i!==void 0&&(l&2||l&4)&&di(n,t,i),o=o.next}while(o!==r)}ot(e,t,n);break;case 1:if(!ie&&(rn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){Q(n,t,u)}ot(e,t,n);break;case 21:ot(e,t,n);break;case 22:n.mode&1?(ie=(r=ie)||n.memoizedState!==null,ot(e,t,n),ie=r):ot(e,t,n);break;default:ot(e,t,n)}}function Ns(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Jp),t.forEach(function(r){var o=ih.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function je(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~l}if(r=o,r=q()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*bp(r/1960))-r,10e?16:e,ft===null)var r=!1;else{if(e=ft,ft=null,So=0,M&6)throw Error(E(331));var o=M;for(M|=4,C=e.current;C!==null;){var l=C,i=l.child;if(C.flags&16){var u=l.deletions;if(u!==null){for(var s=0;sq()-du?Mt(e,0):fu|=n),ye(e,t)}function uf(e,t){t===0&&(e.mode&1?(t=Pr,Pr<<=1,!(Pr&130023424)&&(Pr=4194304)):t=1);var n=ae();e=tt(e,t),e!==null&&(pr(e,t,n),ye(e,n))}function lh(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),uf(e,n)}function ih(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(E(314))}r!==null&&r.delete(t),uf(e,n)}var sf;sf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||he.current)pe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return pe=!1,qp(e,t,n);pe=!!(e.flags&131072)}else pe=!1,$&&t.flags&1048576&&fc(t,co,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Kr(e,t),e=t.pendingProps;var o=pn(t,ue.current);cn(t,n),o=lu(null,t,r,e,o,n);var l=iu();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,me(r)?(l=!0,so(t)):l=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,eu(t),o.updater=Mo,t.stateNode=o,o._reactInternals=t,li(t,r,e,n),t=si(null,t,r,!0,l,n)):(t.tag=0,$&&l&&qi(t),se(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Kr(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=sh(r),e=Fe(r,e),o){case 0:t=ui(null,t,r,e,n);break e;case 1:t=ks(null,t,r,e,n);break e;case 11:t=Ss(null,t,r,e,n);break e;case 14:t=Es(null,t,r,Fe(r.type,e),n);break e}throw Error(E(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Fe(r,o),ui(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Fe(r,o),ks(e,t,r,o,n);case 3:e:{if(Wc(t),e===null)throw Error(E(387));r=t.pendingProps,l=t.memoizedState,o=l.element,vc(e,t),ho(t,r,null,n);var i=t.memoizedState;if(r=i.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){o=vn(Error(E(423)),t),t=xs(e,t,r,n,o);break e}else if(r!==o){o=vn(Error(E(424)),t),t=xs(e,t,r,n,o);break e}else for(Se=vt(t.stateNode.containerInfo.firstChild),Ee=t,$=!0,De=null,n=mc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(hn(),r===o){t=nt(e,t,n);break e}se(e,t,r,n)}t=t.child}return t;case 5:return gc(t),e===null&&ni(t),r=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,i=o.children,Yl(r,o)?i=null:l!==null&&Yl(r,l)&&(t.flags|=32),Vc(e,t),se(e,t,i,n),t.child;case 6:return e===null&&ni(t),null;case 13:return Qc(e,t,n);case 4:return tu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=mn(t,null,r,n):se(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Fe(r,o),Ss(e,t,r,o,n);case 7:return se(e,t,t.pendingProps,n),t.child;case 8:return se(e,t,t.pendingProps.children,n),t.child;case 12:return se(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,l=t.memoizedProps,i=o.value,A(fo,r._currentValue),r._currentValue=i,l!==null)if(Ue(l.value,i)){if(l.children===o.children&&!he.current){t=nt(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var u=l.dependencies;if(u!==null){i=l.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(l.tag===1){s=Ze(-1,n&-n),s.tag=2;var a=l.updateQueue;if(a!==null){a=a.shared;var d=a.pending;d===null?s.next=s:(s.next=d.next,d.next=s),a.pending=s}}l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),ri(l.return,n,t),u.lanes|=n;break}s=s.next}}else if(l.tag===10)i=l.type===t.type?null:l.child;else if(l.tag===18){if(i=l.return,i===null)throw Error(E(341));i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),ri(i,n,t),i=l.sibling}else i=l.child;if(i!==null)i.return=l;else for(i=l;i!==null;){if(i===t){i=null;break}if(l=i.sibling,l!==null){l.return=i.return,i=l;break}i=i.return}l=i}se(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,cn(t,n),o=Oe(o),r=r(o),t.flags|=1,se(e,t,r,n),t.child;case 14:return r=t.type,o=Fe(r,t.pendingProps),o=Fe(r.type,o),Es(e,t,r,o,n);case 15:return $c(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Fe(r,o),Kr(e,t),t.tag=1,me(r)?(e=!0,so(t)):e=!1,cn(t,n),Ic(t,r,o),li(t,r,o,n),si(null,t,r,!0,e,n);case 19:return Kc(e,t,n);case 22:return Hc(e,t,n)}throw Error(E(156,t.tag))};function af(e,t){return Ma(e,t)}function uh(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 Re(e,t,n,r){return new uh(e,t,n,r)}function yu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sh(e){if(typeof e=="function")return yu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Mi)return 11;if(e===Di)return 14}return 2}function Et(e,t){var n=e.alternate;return n===null?(n=Re(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 Gr(e,t,n,r,o,l){var i=2;if(r=e,typeof e=="function")yu(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Xt:return Dt(n.children,o,l,t);case Fi:i=8,o|=8;break;case Tl:return e=Re(12,n,t,o|2),e.elementType=Tl,e.lanes=l,e;case Ol:return e=Re(13,n,t,o),e.elementType=Ol,e.lanes=l,e;case zl:return e=Re(19,n,t,o),e.elementType=zl,e.lanes=l,e;case ga:return Io(n,o,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ya:i=10;break e;case va:i=9;break e;case Mi:i=11;break e;case Di:i=14;break e;case it:i=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=Re(i,n,t,o),t.elementType=e,t.type=r,t.lanes=l,t}function Dt(e,t,n,r){return e=Re(7,e,r,t),e.lanes=n,e}function Io(e,t,n,r){return e=Re(22,e,r,t),e.elementType=ga,e.lanes=n,e.stateNode={isHidden:!1},e}function El(e,t,n){return e=Re(6,e,null,t),e.lanes=n,e}function kl(e,t,n){return t=Re(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ah(e,t,n,r,o){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=nl(0),this.expirationTimes=nl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function vu(e,t,n,r,o,l,i,u,s){return e=new ah(e,t,n,u,s),t===1?(t=1,l===!0&&(t|=8)):t=0,l=Re(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},eu(l),e}function ch(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(pf)}catch(e){console.error(e)}}pf(),da.exports=_e;var mh=da.exports,Ms=mh;Nl.createRoot=Ms.createRoot,Nl.hydrateRoot=Ms.hydrateRoot;function hf(e,t){return function(){return e.apply(t,arguments)}}const{toString:yh}=Object.prototype,{getPrototypeOf:Eu}=Object,Vo=(e=>t=>{const n=yh.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Be=e=>(e=e.toLowerCase(),t=>Vo(t)===e),Wo=e=>t=>typeof t===e,{isArray:kn}=Array,fr=Wo("undefined");function vh(e){return e!==null&&!fr(e)&&e.constructor!==null&&!fr(e.constructor)&&ke(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const mf=Be("ArrayBuffer");function gh(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&mf(e.buffer),t}const wh=Wo("string"),ke=Wo("function"),yf=Wo("number"),Qo=e=>e!==null&&typeof e=="object",Sh=e=>e===!0||e===!1,Jr=e=>{if(Vo(e)!=="object")return!1;const t=Eu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Eh=Be("Date"),kh=Be("File"),xh=Be("Blob"),_h=Be("FileList"),Ch=e=>Qo(e)&&ke(e.pipe),Ph=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ke(e.append)&&((t=Vo(e))==="formdata"||t==="object"&&ke(e.toString)&&e.toString()==="[object FormData]"))},Nh=Be("URLSearchParams"),[Rh,Th,Oh,zh]=["ReadableStream","Request","Response","Headers"].map(Be),Lh=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function vr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),kn(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Ft=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,gf=e=>!fr(e)&&e!==Ft;function Si(){const{caseless:e}=gf(this)&&this||{},t={},n=(r,o)=>{const l=e&&vf(t,o)||o;Jr(t[l])&&Jr(r)?t[l]=Si(t[l],r):Jr(r)?t[l]=Si({},r):kn(r)?t[l]=r.slice():t[l]=r};for(let r=0,o=arguments.length;r(vr(t,(o,l)=>{n&&ke(o)?e[l]=hf(o,n):e[l]=o},{allOwnKeys:r}),e),Fh=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Mh=(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)},Dh=(e,t,n,r)=>{let o,l,i;const u={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),l=o.length;l-- >0;)i=o[l],(!r||r(i,e,t))&&!u[i]&&(t[i]=e[i],u[i]=!0);e=n!==!1&&Eu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ah=(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},Ih=e=>{if(!e)return null;if(kn(e))return e;let t=e.length;if(!yf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Uh=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Eu(Uint8Array)),Bh=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const l=o.value;t.call(e,l[0],l[1])}},$h=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Hh=Be("HTMLFormElement"),Vh=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Ds=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Wh=Be("RegExp"),wf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};vr(n,(o,l)=>{let i;(i=t(o,l,e))!==!1&&(r[l]=i||o)}),Object.defineProperties(e,r)},Qh=e=>{wf(e,(t,n)=>{if(ke(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(ke(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+"'")})}})},Kh=(e,t)=>{const n={},r=o=>{o.forEach(l=>{n[l]=!0})};return kn(e)?r(e):r(String(e).split(t)),n},qh=()=>{},Xh=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,xl="abcdefghijklmnopqrstuvwxyz",As="0123456789",Sf={DIGIT:As,ALPHA:xl,ALPHA_DIGIT:xl+xl.toUpperCase()+As},Gh=(e=16,t=Sf.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Jh(e){return!!(e&&ke(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Yh=e=>{const t=new Array(10),n=(r,o)=>{if(Qo(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const l=kn(r)?[]:{};return vr(r,(i,u)=>{const s=n(i,o+1);!fr(s)&&(l[u]=s)}),t[o]=void 0,l}}return r};return n(e,0)},Zh=Be("AsyncFunction"),bh=e=>e&&(Qo(e)||ke(e))&&ke(e.then)&&ke(e.catch),Ef=((e,t)=>e?setImmediate:t?((n,r)=>(Ft.addEventListener("message",({source:o,data:l})=>{o===Ft&&l===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Ft.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",ke(Ft.postMessage)),em=typeof queueMicrotask<"u"?queueMicrotask.bind(Ft):typeof process<"u"&&process.nextTick||Ef,y={isArray:kn,isArrayBuffer:mf,isBuffer:vh,isFormData:Ph,isArrayBufferView:gh,isString:wh,isNumber:yf,isBoolean:Sh,isObject:Qo,isPlainObject:Jr,isReadableStream:Rh,isRequest:Th,isResponse:Oh,isHeaders:zh,isUndefined:fr,isDate:Eh,isFile:kh,isBlob:xh,isRegExp:Wh,isFunction:ke,isStream:Ch,isURLSearchParams:Nh,isTypedArray:Uh,isFileList:_h,forEach:vr,merge:Si,extend:jh,trim:Lh,stripBOM:Fh,inherits:Mh,toFlatObject:Dh,kindOf:Vo,kindOfTest:Be,endsWith:Ah,toArray:Ih,forEachEntry:Bh,matchAll:$h,isHTMLForm:Hh,hasOwnProperty:Ds,hasOwnProp:Ds,reduceDescriptors:wf,freezeMethods:Qh,toObjectSet:Kh,toCamelCase:Vh,noop:qh,toFiniteNumber:Xh,findKey:vf,global:Ft,isContextDefined:gf,ALPHABET:Sf,generateString:Gh,isSpecCompliantForm:Jh,toJSONObject:Yh,isAsyncFn:Zh,isThenable:bh,setImmediate:Ef,asap:em};function O(e,t,n,r,o){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),o&&(this.response=o,this.status=o.status?o.status:null)}y.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:y.toJSONObject(this.config),code:this.code,status:this.status}}});const kf=O.prototype,xf={};["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=>{xf[e]={value:e}});Object.defineProperties(O,xf);Object.defineProperty(kf,"isAxiosError",{value:!0});O.from=(e,t,n,r,o,l)=>{const i=Object.create(kf);return y.toFlatObject(e,i,function(s){return s!==Error.prototype},u=>u!=="isAxiosError"),O.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,l&&Object.assign(i,l),i};const tm=null;function Ei(e){return y.isPlainObject(e)||y.isArray(e)}function _f(e){return y.endsWith(e,"[]")?e.slice(0,-2):e}function Is(e,t,n){return e?e.concat(t).map(function(o,l){return o=_f(o),!n&&l?"["+o+"]":o}).join(n?".":""):t}function nm(e){return y.isArray(e)&&!e.some(Ei)}const rm=y.toFlatObject(y,{},null,function(t){return/^is[A-Z]/.test(t)});function Ko(e,t,n){if(!y.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,x){return!y.isUndefined(x[g])});const r=n.metaTokens,o=n.visitor||d,l=n.dots,i=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&y.isSpecCompliantForm(t);if(!y.isFunction(o))throw new TypeError("visitor must be a function");function a(v){if(v===null)return"";if(y.isDate(v))return v.toISOString();if(!s&&y.isBlob(v))throw new O("Blob is not supported. Use a Buffer instead.");return y.isArrayBuffer(v)||y.isTypedArray(v)?s&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function d(v,g,x){let f=v;if(v&&!x&&typeof v=="object"){if(y.endsWith(g,"{}"))g=r?g:g.slice(0,-2),v=JSON.stringify(v);else if(y.isArray(v)&&nm(v)||(y.isFileList(v)||y.endsWith(g,"[]"))&&(f=y.toArray(v)))return g=_f(g),f.forEach(function(p,w){!(y.isUndefined(p)||p===null)&&t.append(i===!0?Is([g],w,l):i===null?g:g+"[]",a(p))}),!1}return Ei(v)?!0:(t.append(Is(x,g,l),a(v)),!1)}const h=[],m=Object.assign(rm,{defaultVisitor:d,convertValue:a,isVisitable:Ei});function S(v,g){if(!y.isUndefined(v)){if(h.indexOf(v)!==-1)throw Error("Circular reference detected in "+g.join("."));h.push(v),y.forEach(v,function(f,c){(!(y.isUndefined(f)||f===null)&&o.call(t,f,y.isString(c)?c.trim():c,g,m))===!0&&S(f,g?g.concat(c):[c])}),h.pop()}}if(!y.isObject(e))throw new TypeError("data must be an object");return S(e),t}function Us(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ku(e,t){this._pairs=[],e&&Ko(e,this,t)}const Cf=ku.prototype;Cf.append=function(t,n){this._pairs.push([t,n])};Cf.toString=function(t){const n=t?function(r){return t.call(this,r,Us)}:Us;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function om(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Pf(e,t,n){if(!t)return e;const r=n&&n.encode||om,o=n&&n.serialize;let l;if(o?l=o(t,n):l=y.isURLSearchParams(t)?t.toString():new ku(t,n).toString(r),l){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class Bs{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){y.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Nf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},lm=typeof URLSearchParams<"u"?URLSearchParams:ku,im=typeof FormData<"u"?FormData:null,um=typeof Blob<"u"?Blob:null,sm={isBrowser:!0,classes:{URLSearchParams:lm,FormData:im,Blob:um},protocols:["http","https","file","blob","url","data"]},xu=typeof window<"u"&&typeof document<"u",ki=typeof navigator=="object"&&navigator||void 0,am=xu&&(!ki||["ReactNative","NativeScript","NS"].indexOf(ki.product)<0),cm=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fm=xu&&window.location.href||"http://localhost",dm=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:xu,hasStandardBrowserEnv:am,hasStandardBrowserWebWorkerEnv:cm,navigator:ki,origin:fm},Symbol.toStringTag,{value:"Module"})),ve={...dm,...sm};function pm(e,t){return Ko(e,new ve.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,l){return ve.isNode&&y.isBuffer(n)?(this.append(r,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},t))}function hm(e){return y.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function mm(e){const t={},n=Object.keys(e);let r;const o=n.length;let l;for(r=0;r=n.length;return i=!i&&y.isArray(o)?o.length:i,s?(y.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!u):((!o[i]||!y.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],l)&&y.isArray(o[i])&&(o[i]=mm(o[i])),!u)}if(y.isFormData(e)&&y.isFunction(e.entries)){const n={};return y.forEachEntry(e,(r,o)=>{t(hm(r),o,n,0)}),n}return null}function ym(e,t,n){if(y.isString(e))try{return(t||JSON.parse)(e),y.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const gr={transitional:Nf,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,l=y.isObject(t);if(l&&y.isHTMLForm(t)&&(t=new FormData(t)),y.isFormData(t))return o?JSON.stringify(Rf(t)):t;if(y.isArrayBuffer(t)||y.isBuffer(t)||y.isStream(t)||y.isFile(t)||y.isBlob(t)||y.isReadableStream(t))return t;if(y.isArrayBufferView(t))return t.buffer;if(y.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(l){if(r.indexOf("application/x-www-form-urlencoded")>-1)return pm(t,this.formSerializer).toString();if((u=y.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Ko(u?{"files[]":t}:t,s&&new s,this.formSerializer)}}return l||o?(n.setContentType("application/json",!1),ym(t)):t}],transformResponse:[function(t){const n=this.transitional||gr.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(y.isResponse(t)||y.isReadableStream(t))return t;if(t&&y.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(u){if(i)throw u.name==="SyntaxError"?O.from(u,O.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ve.classes.FormData,Blob:ve.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};y.forEach(["delete","get","head","post","put","patch"],e=>{gr.headers[e]={}});const vm=y.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"]),gm=e=>{const t={};let n,r,o;return e&&e.split(` +`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&vm[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},$s=Symbol("internals");function Fn(e){return e&&String(e).trim().toLowerCase()}function Yr(e){return e===!1||e==null?e:y.isArray(e)?e.map(Yr):String(e)}function wm(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 Sm=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function _l(e,t,n,r,o){if(y.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!y.isString(t)){if(y.isString(r))return t.indexOf(r)!==-1;if(y.isRegExp(r))return r.test(t)}}function Em(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function km(e,t){const n=y.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,l,i){return this[r].call(this,t,o,l,i)},configurable:!0})})}class ge{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function l(u,s,a){const d=Fn(s);if(!d)throw new Error("header name must be a non-empty string");const h=y.findKey(o,d);(!h||o[h]===void 0||a===!0||a===void 0&&o[h]!==!1)&&(o[h||s]=Yr(u))}const i=(u,s)=>y.forEach(u,(a,d)=>l(a,d,s));if(y.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(y.isString(t)&&(t=t.trim())&&!Sm(t))i(gm(t),n);else if(y.isHeaders(t))for(const[u,s]of t.entries())l(s,u,r);else t!=null&&l(n,t,r);return this}get(t,n){if(t=Fn(t),t){const r=y.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return wm(o);if(y.isFunction(n))return n.call(this,o,r);if(y.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Fn(t),t){const r=y.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||_l(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function l(i){if(i=Fn(i),i){const u=y.findKey(r,i);u&&(!n||_l(r,r[u],u,n))&&(delete r[u],o=!0)}}return y.isArray(t)?t.forEach(l):l(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const l=n[r];(!t||_l(this,this[l],l,t,!0))&&(delete this[l],o=!0)}return o}normalize(t){const n=this,r={};return y.forEach(this,(o,l)=>{const i=y.findKey(r,l);if(i){n[i]=Yr(o),delete n[l];return}const u=t?Em(l):String(l).trim();u!==l&&delete n[l],n[u]=Yr(o),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return y.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&y.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[$s]=this[$s]={accessors:{}}).accessors,o=this.prototype;function l(i){const u=Fn(i);r[u]||(km(o,i),r[u]=!0)}return y.isArray(t)?t.forEach(l):l(t),this}}ge.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);y.reduceDescriptors(ge.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});y.freezeMethods(ge);function Cl(e,t){const n=this||gr,r=t||n,o=ge.from(r.headers);let l=r.data;return y.forEach(e,function(u){l=u.call(n,l,o.normalize(),t?t.status:void 0)}),o.normalize(),l}function Tf(e){return!!(e&&e.__CANCEL__)}function xn(e,t,n){O.call(this,e??"canceled",O.ERR_CANCELED,t,n),this.name="CanceledError"}y.inherits(xn,O,{__CANCEL__:!0});function Of(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 xm(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function _m(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,l=0,i;return t=t!==void 0?t:1e3,function(s){const a=Date.now(),d=r[l];i||(i=a),n[o]=s,r[o]=a;let h=l,m=0;for(;h!==o;)m+=n[h++],h=h%e;if(o=(o+1)%e,o===l&&(l=(l+1)%e),a-i{n=d,o=null,l&&(clearTimeout(l),l=null),e.apply(null,a)};return[(...a)=>{const d=Date.now(),h=d-n;h>=r?i(a,d):(o=a,l||(l=setTimeout(()=>{l=null,i(o)},r-h)))},()=>o&&i(o)]}const xo=(e,t,n=3)=>{let r=0;const o=_m(50,250);return Cm(l=>{const i=l.loaded,u=l.lengthComputable?l.total:void 0,s=i-r,a=o(s),d=i<=u;r=i;const h={loaded:i,total:u,progress:u?i/u:void 0,bytes:s,rate:a||void 0,estimated:a&&u&&d?(u-i)/a:void 0,event:l,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(h)},n)},Hs=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Vs=e=>(...t)=>y.asap(()=>e(...t)),Pm=ve.hasStandardBrowserEnv?function(){const t=ve.navigator&&/(msie|trident)/i.test(ve.navigator.userAgent),n=document.createElement("a");let r;function o(l){let i=l;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(i){const u=y.isString(i)?o(i):i;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}(),Nm=ve.hasStandardBrowserEnv?{write(e,t,n,r,o,l){const i=[e+"="+encodeURIComponent(t)];y.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),y.isString(r)&&i.push("path="+r),y.isString(o)&&i.push("domain="+o),l===!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 Rm(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Tm(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function zf(e,t){return e&&!Rm(t)?Tm(e,t):t}const Ws=e=>e instanceof ge?{...e}:e;function Vt(e,t){t=t||{};const n={};function r(a,d,h){return y.isPlainObject(a)&&y.isPlainObject(d)?y.merge.call({caseless:h},a,d):y.isPlainObject(d)?y.merge({},d):y.isArray(d)?d.slice():d}function o(a,d,h){if(y.isUndefined(d)){if(!y.isUndefined(a))return r(void 0,a,h)}else return r(a,d,h)}function l(a,d){if(!y.isUndefined(d))return r(void 0,d)}function i(a,d){if(y.isUndefined(d)){if(!y.isUndefined(a))return r(void 0,a)}else return r(void 0,d)}function u(a,d,h){if(h in t)return r(a,d);if(h in e)return r(void 0,a)}const s={url:l,method:l,data:l,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:u,headers:(a,d)=>o(Ws(a),Ws(d),!0)};return y.forEach(Object.keys(Object.assign({},e,t)),function(d){const h=s[d]||o,m=h(e[d],t[d],d);y.isUndefined(m)&&h!==u||(n[d]=m)}),n}const Lf=e=>{const t=Vt({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:l,headers:i,auth:u}=t;t.headers=i=ge.from(i),t.url=Pf(zf(t.baseURL,t.url),e.params,e.paramsSerializer),u&&i.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let s;if(y.isFormData(n)){if(ve.hasStandardBrowserEnv||ve.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((s=i.getContentType())!==!1){const[a,...d]=s?s.split(";").map(h=>h.trim()).filter(Boolean):[];i.setContentType([a||"multipart/form-data",...d].join("; "))}}if(ve.hasStandardBrowserEnv&&(r&&y.isFunction(r)&&(r=r(t)),r||r!==!1&&Pm(t.url))){const a=o&&l&&Nm.read(l);a&&i.set(o,a)}return t},Om=typeof XMLHttpRequest<"u",zm=Om&&function(e){return new Promise(function(n,r){const o=Lf(e);let l=o.data;const i=ge.from(o.headers).normalize();let{responseType:u,onUploadProgress:s,onDownloadProgress:a}=o,d,h,m,S,v;function g(){S&&S(),v&&v(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let x=new XMLHttpRequest;x.open(o.method.toUpperCase(),o.url,!0),x.timeout=o.timeout;function f(){if(!x)return;const p=ge.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),k={data:!u||u==="text"||u==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:p,config:e,request:x};Of(function(P){n(P),g()},function(P){r(P),g()},k),x=null}"onloadend"in x?x.onloadend=f:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(f)},x.onabort=function(){x&&(r(new O("Request aborted",O.ECONNABORTED,e,x)),x=null)},x.onerror=function(){r(new O("Network Error",O.ERR_NETWORK,e,x)),x=null},x.ontimeout=function(){let w=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const k=o.transitional||Nf;o.timeoutErrorMessage&&(w=o.timeoutErrorMessage),r(new O(w,k.clarifyTimeoutError?O.ETIMEDOUT:O.ECONNABORTED,e,x)),x=null},l===void 0&&i.setContentType(null),"setRequestHeader"in x&&y.forEach(i.toJSON(),function(w,k){x.setRequestHeader(k,w)}),y.isUndefined(o.withCredentials)||(x.withCredentials=!!o.withCredentials),u&&u!=="json"&&(x.responseType=o.responseType),a&&([m,v]=xo(a,!0),x.addEventListener("progress",m)),s&&x.upload&&([h,S]=xo(s),x.upload.addEventListener("progress",h),x.upload.addEventListener("loadend",S)),(o.cancelToken||o.signal)&&(d=p=>{x&&(r(!p||p.type?new xn(null,e,x):p),x.abort(),x=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const c=xm(o.url);if(c&&ve.protocols.indexOf(c)===-1){r(new O("Unsupported protocol "+c+":",O.ERR_BAD_REQUEST,e));return}x.send(l||null)})},Lm=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const l=function(a){if(!o){o=!0,u();const d=a instanceof Error?a:this.reason;r.abort(d instanceof O?d:new xn(d instanceof Error?d.message:d))}};let i=t&&setTimeout(()=>{i=null,l(new O(`timeout ${t} of ms exceeded`,O.ETIMEDOUT))},t);const u=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(a=>{a.unsubscribe?a.unsubscribe(l):a.removeEventListener("abort",l)}),e=null)};e.forEach(a=>a.addEventListener("abort",l));const{signal:s}=r;return s.unsubscribe=()=>y.asap(u),s}},jm=function*(e,t){let n=e.byteLength;if(n{const o=Fm(e,t);let l=0,i,u=s=>{i||(i=!0,r&&r(s))};return new ReadableStream({async pull(s){try{const{done:a,value:d}=await o.next();if(a){u(),s.close();return}let h=d.byteLength;if(n){let m=l+=h;n(m)}s.enqueue(new Uint8Array(d))}catch(a){throw u(a),a}},cancel(s){return u(s),o.return()}},{highWaterMark:2})},qo=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",jf=qo&&typeof ReadableStream=="function",Dm=qo&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ff=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Am=jf&&Ff(()=>{let e=!1;const t=new Request(ve.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ks=64*1024,xi=jf&&Ff(()=>y.isReadableStream(new Response("").body)),_o={stream:xi&&(e=>e.body)};qo&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!_o[t]&&(_o[t]=y.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new O(`Response type '${t}' is not supported`,O.ERR_NOT_SUPPORT,r)})})})(new Response);const Im=async e=>{if(e==null)return 0;if(y.isBlob(e))return e.size;if(y.isSpecCompliantForm(e))return(await new Request(ve.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(y.isArrayBufferView(e)||y.isArrayBuffer(e))return e.byteLength;if(y.isURLSearchParams(e)&&(e=e+""),y.isString(e))return(await Dm(e)).byteLength},Um=async(e,t)=>{const n=y.toFiniteNumber(e.getContentLength());return n??Im(t)},Bm=qo&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:l,timeout:i,onDownloadProgress:u,onUploadProgress:s,responseType:a,headers:d,withCredentials:h="same-origin",fetchOptions:m}=Lf(e);a=a?(a+"").toLowerCase():"text";let S=Lm([o,l&&l.toAbortSignal()],i),v;const g=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let x;try{if(s&&Am&&n!=="get"&&n!=="head"&&(x=await Um(d,r))!==0){let k=new Request(t,{method:"POST",body:r,duplex:"half"}),_;if(y.isFormData(r)&&(_=k.headers.get("content-type"))&&d.setContentType(_),k.body){const[P,R]=Hs(x,xo(Vs(s)));r=Qs(k.body,Ks,P,R)}}y.isString(h)||(h=h?"include":"omit");const f="credentials"in Request.prototype;v=new Request(t,{...m,signal:S,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:f?h:void 0});let c=await fetch(v);const p=xi&&(a==="stream"||a==="response");if(xi&&(u||p&&g)){const k={};["status","statusText","headers"].forEach(B=>{k[B]=c[B]});const _=y.toFiniteNumber(c.headers.get("content-length")),[P,R]=u&&Hs(_,xo(Vs(u),!0))||[];c=new Response(Qs(c.body,Ks,P,()=>{R&&R(),g&&g()}),k)}a=a||"text";let w=await _o[y.findKey(_o,a)||"text"](c,e);return!p&&g&&g(),await new Promise((k,_)=>{Of(k,_,{data:w,headers:ge.from(c.headers),status:c.status,statusText:c.statusText,config:e,request:v})})}catch(f){throw g&&g(),f&&f.name==="TypeError"&&/fetch/i.test(f.message)?Object.assign(new O("Network Error",O.ERR_NETWORK,e,v),{cause:f.cause||f}):O.from(f,f&&f.code,e,v)}}),_i={http:tm,xhr:zm,fetch:Bm};y.forEach(_i,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const qs=e=>`- ${e}`,$m=e=>y.isFunction(e)||e===null||e===!1,Mf={getAdapter:e=>{e=y.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let l=0;l`adapter ${u} `+(s===!1?"is not supported by the environment":"is not available in the build"));let i=t?l.length>1?`since : +`+l.map(qs).join(` +`):" "+qs(l[0]):"as no adapter specified";throw new O("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:_i};function Pl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new xn(null,e)}function Xs(e){return Pl(e),e.headers=ge.from(e.headers),e.data=Cl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Mf.getAdapter(e.adapter||gr.adapter)(e).then(function(r){return Pl(e),r.data=Cl.call(e,e.transformResponse,r),r.headers=ge.from(r.headers),r},function(r){return Tf(r)||(Pl(e),r&&r.response&&(r.response.data=Cl.call(e,e.transformResponse,r.response),r.response.headers=ge.from(r.response.headers))),Promise.reject(r)})}const Df="1.7.7",_u={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{_u[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Gs={};_u.transitional=function(t,n,r){function o(l,i){return"[Axios v"+Df+"] Transitional option '"+l+"'"+i+(r?". "+r:"")}return(l,i,u)=>{if(t===!1)throw new O(o(i," has been removed"+(n?" in "+n:"")),O.ERR_DEPRECATED);return n&&!Gs[i]&&(Gs[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,i,u):!0}};function Hm(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 o=r.length;for(;o-- >0;){const l=r[o],i=t[l];if(i){const u=e[l],s=u===void 0||i(u,l,e);if(s!==!0)throw new O("option "+l+" must be "+s,O.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new O("Unknown option "+l,O.ERR_BAD_OPTION)}}const Ci={assertOptions:Hm,validators:_u},lt=Ci.validators;class At{constructor(t){this.defaults=t,this.interceptors={request:new Bs,response:new Bs}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const l=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?l&&!String(r.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+l):r.stack=l}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Vt(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:l}=n;r!==void 0&&Ci.assertOptions(r,{silentJSONParsing:lt.transitional(lt.boolean),forcedJSONParsing:lt.transitional(lt.boolean),clarifyTimeoutError:lt.transitional(lt.boolean)},!1),o!=null&&(y.isFunction(o)?n.paramsSerializer={serialize:o}:Ci.assertOptions(o,{encode:lt.function,serialize:lt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=l&&y.merge(l.common,l[n.method]);l&&y.forEach(["delete","get","head","post","put","patch","common"],v=>{delete l[v]}),n.headers=ge.concat(i,l);const u=[];let s=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(s=s&&g.synchronous,u.unshift(g.fulfilled,g.rejected))});const a=[];this.interceptors.response.forEach(function(g){a.push(g.fulfilled,g.rejected)});let d,h=0,m;if(!s){const v=[Xs.bind(this),void 0];for(v.unshift.apply(v,u),v.push.apply(v,a),m=v.length,d=Promise.resolve(n);h{if(!r._listeners)return;let l=r._listeners.length;for(;l-- >0;)r._listeners[l](o);r._listeners=null}),this.promise.then=o=>{let l;const i=new Promise(u=>{r.subscribe(u),l=u}).then(o);return i.cancel=function(){r.unsubscribe(l)},i},t(function(l,i,u){r.reason||(r.reason=new xn(l,i,u),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 Cu(function(o){t=o}),cancel:t}}}function Vm(e){return function(n){return e.apply(null,n)}}function Wm(e){return y.isObject(e)&&e.isAxiosError===!0}const Pi={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(Pi).forEach(([e,t])=>{Pi[t]=e});function Af(e){const t=new At(e),n=hf(At.prototype.request,t);return y.extend(n,At.prototype,t,{allOwnKeys:!0}),y.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Af(Vt(e,o))},n}const X=Af(gr);X.Axios=At;X.CanceledError=xn;X.CancelToken=Cu;X.isCancel=Tf;X.VERSION=Df;X.toFormData=Ko;X.AxiosError=O;X.Cancel=X.CanceledError;X.all=function(t){return Promise.all(t)};X.spread=Vm;X.isAxiosError=Wm;X.mergeConfig=Vt;X.AxiosHeaders=ge;X.formToJSON=e=>Rf(y.isHTMLForm(e)?new FormData(e):e);X.getAdapter=Mf.getAdapter;X.HttpStatusCode=Pi;X.default=X;const If="https://api.openweathermap.org/data/2.5/",Uf="ee3f407327bd98a35e64b2a76796d0f0",Qm=async e=>{try{return(await X.get(`${If}weather?q=${e}&appid=${Uf}&units=metric`)).data}catch(t){return console.error("Error:",t),null}},Km=async(e,t)=>{try{return(await X.get(`${If}weather?lat=${e}&lon=${t}&appid=${Uf}&units=metric`)).data}catch(n){return console.error("Error:",n),null}};var Bf={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Js=pt.createContext&&pt.createContext(Bf),qm=["attr","size","title"];function Xm(e,t){if(e==null)return{};var n=Gm(e,t),r,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Gm(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Co(){return Co=Object.assign?Object.assign.bind():function(e){for(var t=1;tpt.createElement(t.tag,Po({key:n},t.attr),$f(t.child)))}function $e(e){return t=>pt.createElement(bm,Co({attr:Po({},e.attr)},t),$f(e.child))}function bm(e){var t=n=>{var{attr:r,size:o,title:l}=e,i=Xm(e,qm),u=o||n.size||"1em",s;return n.className&&(s=n.className),e.className&&(s=(s?s+" ":"")+e.className),pt.createElement("svg",Co({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,i,{className:s,style:Po(Po({color:e.color||n.color},n.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),l&&pt.createElement("title",null,l),e.children)};return Js!==void 0?pt.createElement(Js.Consumer,null,n=>t(n)):t(Bf)}function e1(e){return $e({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 64C150.13 64 64 150.13 64 256s86.13 192 192 192 192-86.13 192-192S361.87 64 256 64zm80 294.63-54.15-54.15a88.08 88.08 0 1 1 22.63-22.63L358.63 336z"},child:[]},{tag:"circle",attr:{cx:"232",cy:"232",r:"56"},child:[]}]})(e)}const t1="_button_13hb8_1",n1={button:t1},r1=({className:e="",children:t,...n})=>T.jsx("button",{...n,className:`${n1.button} ${e}`,children:t}),o1="_input_1mhjj_1",l1={input:o1},i1=({className:e,...t})=>T.jsx("input",{className:`${l1.input} ${e}`,...t}),u1="_search_bm5ew_1",s1="_searchButton_bm5ew_7",Zs={search:u1,searchButton:s1},a1=({onSearch:e})=>{const[t,n]=dt.useState(""),[r,o]=dt.useState(!1),l=s=>{o(s)},i=()=>{t.trim()&&e(t)},u=s=>{s.key==="Enter"&&i()};return T.jsxs("div",{className:Zs.search,children:[T.jsx(i1,{type:"text",value:t,onChange:s=>n(s.target.value),onKeyUp:u,onFocus:()=>l(!0),onBlur:()=>l(!1),placeholder:r?"":"Enter your city..."}),T.jsx(r1,{onClick:i,className:Zs.searchButton,children:T.jsx(e1,{})})]})};function c1(e){return $e({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm-6-82V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,172Z"},child:[]}]})(e)}const f1="_error_1vrfx_1",d1="_errorIcon_1vrfx_9",bs={error:f1,errorIcon:d1},p1=()=>T.jsxs("div",{className:bs.error,children:[T.jsx(c1,{className:bs.errorIcon,"data-testid":"icon-element"}),T.jsx("p",{children:"No weather data found"})]});function h1(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M18.364 5.63604L16.9497 7.05025C15.683 5.7835 13.933 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19C15.866 19 19 15.866 19 12H21C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C14.4853 3 16.7353 4.00736 18.364 5.63604Z"},child:[]}]})(e)}const m1="_loading_39l75_1",y1="_loadingIcon_39l75_9",v1="_spin_39l75_1",ea={loading:m1,loadingIcon:y1,spin:v1},g1=()=>T.jsxs("div",{className:ea.loading,"data-testid":"spinner",children:[T.jsx(h1,{className:ea.loadingIcon,"data-testid":"icon-element"}),T.jsx("p",{children:"Please wait..."})]});function w1(e){return $e({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M156.7 256H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h142.2c15.9 0 30.8 10.9 33.4 26.6 3.3 20-12.1 37.4-31.6 37.4-14.1 0-26.1-9.2-30.4-21.9-2.1-6.3-8.6-10.1-15.2-10.1H81.6c-9.8 0-17.7 8.8-15.9 18.4 8.6 44.1 47.6 77.6 94.2 77.6 57.1 0 102.7-50.1 95.2-108.6C249 291 205.4 256 156.7 256zM16 224h336c59.7 0 106.8-54.8 93.8-116.7-7.6-36.2-36.9-65.5-73.1-73.1-55.4-11.6-105.1 24.9-114.9 75.5-1.9 9.6 6.1 18.3 15.8 18.3h32.8c6.7 0 13.1-3.8 15.2-10.1C325.9 105.2 337.9 96 352 96c19.4 0 34.9 17.4 31.6 37.4-2.6 15.7-17.4 26.6-33.4 26.6H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16zm384 32H243.7c19.3 16.6 33.2 38.8 39.8 64H400c26.5 0 48 21.5 48 48s-21.5 48-48 48c-17.9 0-33.3-9.9-41.6-24.4-2.9-5-8.7-7.6-14.5-7.6h-33.8c-10.9 0-19 10.8-15.3 21.1 17.8 50.6 70.5 84.8 129.4 72.3 41.2-8.7 75.1-41.6 84.7-82.7C526 321.5 470.5 256 400 256z"},child:[]}]})(e)}function S1(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"12",y1:"20",x2:"12",y2:"10"},child:[]},{tag:"line",attr:{x1:"18",y1:"20",x2:"18",y2:"4"},child:[]},{tag:"line",attr:{x1:"6",y1:"20",x2:"6",y2:"16"},child:[]}]})(e)}function E1(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19.35 10.04A7.49 7.49 0 0 0 12 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 0 0 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96z"},child:[]}]})(e)}function k1(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17.92 7.02C17.45 4.18 14.97 2 12 2 9.82 2 7.83 3.18 6.78 5.06 4.09 5.41 2 7.74 2 10.5 2 13.53 4.47 16 7.5 16h10c2.48 0 4.5-2.02 4.5-4.5a4.5 4.5 0 0 0-4.08-4.48zm.08 9.99c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm-11 3c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm-1-3h9c.55 0 1 .45 1 1s-.45 1-1 1H6c-.55 0-1-.45-1-1s.45-1 1-1zm4 3h7c.55 0 1 .45 1 1s-.45 1-1 1h-7c-.55 0-1-.45-1-1s.45-1 1-1z"},child:[]}]})(e)}function x1(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11 4V2c0-.55.45-1 1-1s1 .45 1 1v2c0 .55-.45 1-1 1s-1-.45-1-1zm7.36 3.05 1.41-1.42a.996.996 0 1 0-1.41-1.41l-1.41 1.42a.996.996 0 1 0 1.41 1.41zM22 11h-2c-.55 0-1 .45-1 1s.45 1 1 1h2c.55 0 1-.45 1-1s-.45-1-1-1zm-10 8c-.55 0-1 .45-1 1v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1zM5.64 7.05 4.22 5.64c-.39-.39-.39-1.03 0-1.41s1.03-.39 1.41 0l1.41 1.41c.39.39.39 1.03 0 1.41s-1.02.39-1.4 0zm11.31 9.9a.996.996 0 0 0 0 1.41l1.41 1.41c.39.39 1.03.39 1.41 0a.996.996 0 0 0 0-1.41l-1.41-1.41a.996.996 0 0 0-1.41 0zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm3.64 6.78 1.41-1.41c.39-.39.39-1.03 0-1.41s-1.03-.39-1.41 0l-1.41 1.41a.996.996 0 0 0 0 1.41c.38.39 1.02.39 1.41 0zM12 6c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6z"},child:[]}]})(e)}function _1(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2c-5.33 4.55-8 8.48-8 11.8 0 4.98 3.8 8.2 8 8.2s8-3.22 8-8.2c0-3.32-2.67-7.25-8-11.8zM7.83 14c.37 0 .67.26.74.62.41 2.22 2.28 2.98 3.64 2.87.43-.02.79.32.79.75 0 .4-.32.73-.72.75-2.13.13-4.62-1.09-5.19-4.12a.75.75 0 0 1 .74-.87z"},child:[]}]})(e)}function C1(e){return $e({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M248.03 116.81l24.679-24.678 19.233 19.234-24.678 24.677zM176 125.7c-45.3 0-82.3 37-82.3 82.3 0 17.5 5.5 33.7 14.9 47 15.3-13 33.9-22.6 54.7-27.6l13.2-16.6c13.6-17.1 30.7-30.2 50.8-38.9 6.1-2.6 12.4-4.8 19-6.6-14.5-23.7-40.6-39.6-70.3-39.6zM162 64h28v41h-28zM32 194h41v28H32zM81.6 276.8l-.8-.8-24.7 24.7 19.2 19.2 24.7-24.7zM79.289 92.13l24.678 24.678-19.233 19.233-24.678-24.678zM405.6 288.6C394.7 233.4 346.2 192 288 192c-34 0-65.1 11.9-86.5 38.8 29.4 2.2 56.7 13 77.8 33.9 15.6 15.6 26.6 34.6 32.1 55.3h-28.7c-13.1-37.3-48-64-90.6-64-5.1 0-12.3.6-17.7 1.7C128.6 267.1 96 305 96 352c0 53 43 96 96 96h208c44.2 0 80-35.8 80-80 0-42.2-32.8-76.5-74.4-79.4z"},child:[]}]})(e)}function P1(e){return $e({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M139 400s-23 25.3-23 40.7c0 12.8 10.3 23.3 23 23.3s23-10.5 23-23.3c0-15.4-23-40.7-23-40.7zM217 368s-23 25.3-23 40.7c0 12.8 10.4 23.3 23 23.3 12.7 0 23-10.5 23-23.3 0-15.4-23-40.7-23-40.7zM295 400s-23 25.3-23 40.7c0 12.8 10.3 23.3 23 23.3 12.6 0 23-10.5 23-23.3 0-15.4-23-40.7-23-40.7zM373 368s-23 25.3-23 40.7c0 12.8 10.4 23.3 23 23.3 12.7 0 23-10.5 23-23.3 0-15.4-23-40.7-23-40.7zM393.2 161.2C380.5 96.6 323.9 48 256 48c-39.7 0-76 14-100.9 45.4 34.3 2.6 66.1 15.2 90.7 39.8 18.2 18.2 31 40.5 37.4 64.8h-33.5c-15.3-43.7-56-75-105.7-75-6 0-14.3.7-20.6 2C70 136 32 180.4 32 235.5 32 297.6 79.4 352 141.2 352h242.7c51.5 0 96.2-46 96.2-97.8-.1-49.4-38.4-89.6-86.9-93z"},child:[]}]})(e)}const N1=e=>{let t,n;switch(e){case"Rain":t=T.jsx(P1,{}),n="#496a8a";break;case"Clear":t=T.jsx(x1,{"data-testid":"MdSunny"}),n="#f6de7e";break;case"Clouds":t=T.jsx(E1,{}),n="#496a8a";break;case"Mist":t=T.jsx(k1,{}),n="#586c7f";break;default:t=T.jsx(C1,{}),n="#496a8a"}return T.jsx("span",{style:{color:n},children:t})},R1="_weather_1f6zi_1",T1="_image_1f6zi_12",O1="_inform_1f6zi_28",z1="_humidity_1f6zi_32",L1="_wind_1f6zi_33",j1="_pressure_1f6zi_34",F1="_humidityIcon_1f6zi_37",M1="_windIcon_1f6zi_38",D1="_pressureIcon_1f6zi_39",qe={weather:R1,image:T1,inform:O1,humidity:z1,wind:L1,pressure:j1,humidityIcon:F1,windIcon:M1,pressureIcon:D1},A1=({weatherData:e})=>T.jsxs(T.Fragment,{children:[T.jsxs("div",{className:qe.weather,children:[T.jsx("h1",{children:e.name}),T.jsx("span",{children:e.sys.country}),T.jsx("span",{className:qe.image,"data-testid":"weather-icon",children:N1(e.weather[0].main)}),T.jsxs("h1",{children:[e.main.temp,"°C"]}),T.jsx("h2",{children:e.weather[0].main}),T.jsxs("h3",{children:["feels like ",e.main.feels_like," °C"]})]}),T.jsxs("div",{className:qe.inform,children:[T.jsxs("div",{className:qe.wind,children:[T.jsx(w1,{className:qe.windIcon}),T.jsxs("div",{children:[T.jsxs("h2",{children:[e.wind.speed,"km/h"]}),T.jsx("p",{children:"Wind speed"})]})]}),T.jsxs("div",{className:qe.humidity,children:[T.jsx(_1,{className:qe.humidityIcon}),T.jsxs("div",{children:[T.jsxs("h2",{children:[e.main.humidity,"%"]}),T.jsx("p",{children:"Humidity"})]})]}),T.jsxs("div",{className:qe.pressure,children:[T.jsx(S1,{className:qe.pressureIcon}),T.jsxs("h2",{children:[e.main.pressure," hPa"]}),T.jsx("p",{children:"Pressure"})]})]})]}),I1="_container_ay87h_1",U1={container:I1},B1=()=>{const[e,t]=dt.useState(null),[n,r]=dt.useState(!1);dt.useEffect(()=>{(()=>{if(!navigator.geolocation){console.error("Geolocation is not supported by this browser.");return}navigator.geolocation.getCurrentPosition(async i=>{try{const{latitude:u,longitude:s}=i.coords,a=await Km(u,s);t(a),r(!0)}catch(u){console.error("Error fetching weather by geolocation:",u)}})})()},[t,r]);const o=async l=>{try{const i=await Qm(l);t(i)}catch(i){console.error("Error fetching data:",i)}};return T.jsx("div",{className:U1.container,children:n?T.jsxs("div",{children:[T.jsx(a1,{onSearch:o}),e?T.jsx(A1,{weatherData:e}):T.jsx(p1,{})]}):T.jsx(g1,{})})},$1=()=>T.jsx(B1,{});Nl.createRoot(document.getElementById("root")).render(T.jsx(pt.StrictMode,{children:T.jsx($1,{})})); diff --git a/assets/index-CwjhGySz.css b/assets/index-CwjhGySz.css new file mode 100644 index 0000000..ac0100b --- /dev/null +++ b/assets/index-CwjhGySz.css @@ -0,0 +1 @@ +*{margin:0;padding:0;box-sizing:border-box;font-family:Montserrat,sans-serif;font-optical-sizing:auto;font-weight:400;font-style:normal}html{font-size:15px}@media screen and (min-width: 768px) and (max-width: 1024px){html{font-size:25px}}body{min-height:100vh;min-width:100wv;display:flex;justify-content:center;align-items:center;background:linear-gradient(180deg,#6988a8,#b0c4de)}._button_13hb8_1{display:flex;justify-content:center;align-items:center;background-color:#0000;color:#37618b;border:none;cursor:pointer;transition:.3s all ease-in-out}._button_13hb8_1:hover{transform:scale(1.2);-webkit-transform:scale(1.2)}._button_13hb8_1:active{color:#fff}._input_1mhjj_1{border:1px solid #496a8a;padding:8px;border-radius:20px;text-align:center;width:80%;background:transparent}._input_1mhjj_1:focus{outline:none}@media screen and (max-width: 1024px){._input_1mhjj_1{height:35px}}._search_bm5ew_1{margin-top:20px;display:flex;justify-content:center;align-items:center}._search_bm5ew_1 ._searchButton_bm5ew_7{font-size:45px}._error_1vrfx_1{height:400px;width:300px;display:flex;flex-direction:column;justify-content:center;align-items:center}._error_1vrfx_1 ._errorIcon_1vrfx_9{font-size:3rem}._error_1vrfx_1 p{margin-top:10px}._loading_39l75_1{height:400px;width:300px;display:flex;flex-direction:column;justify-content:center;align-items:center}._loading_39l75_1 ._loadingIcon_39l75_9{font-size:3rem;animation:_spin_39l75_1 2s linear infinite}._loading_39l75_1 p{margin-top:10px}@keyframes _spin_39l75_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@-webkit-keyframes _spin_39l75_1{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}._weather_1f6zi_1{display:flex;align-items:center;flex-direction:column;justify-content:space-between;margin:30px 0;text-align:center}._weather_1f6zi_1 h1{font-size:2.5rem}._weather_1f6zi_1 ._image_1f6zi_12{font-size:8rem;margin-bottom:-20px;transition:transform .2s,opacity .2s}._weather_1f6zi_1 ._image_1f6zi_12:hover{transform:scale(1.1);opacity:1}._weather_1f6zi_1 span{margin-bottom:10px}._weather_1f6zi_1 h2{font-size:2rem}._inform_1f6zi_28{display:flex;text-align:center}._inform_1f6zi_28 ._humidity_1f6zi_32,._inform_1f6zi_28 ._wind_1f6zi_33,._inform_1f6zi_28 ._pressure_1f6zi_34{padding:0 15px}._inform_1f6zi_28 ._humidityIcon_1f6zi_37,._inform_1f6zi_28 ._windIcon_1f6zi_38,._inform_1f6zi_28 ._pressureIcon_1f6zi_39{font-size:2rem;color:#37618b;opacity:.8;transition:transform .2s,opacity .2s}._inform_1f6zi_28 ._humidityIcon_1f6zi_37:hover,._inform_1f6zi_28 ._windIcon_1f6zi_38:hover,._inform_1f6zi_28 ._pressureIcon_1f6zi_39:hover{transform:scale(1.1);opacity:1}._container_ay87h_1{background-color:#ffffff50;border-radius:10px;padding:15px;box-shadow:0 10px 15px #0003;display:flex;justify-content:space-between;align-items:center;flex-direction:column} diff --git a/index.html b/index.html new file mode 100644 index 0000000..60cc09f --- /dev/null +++ b/index.html @@ -0,0 +1,17 @@ + + + + + + + + + + Weather App + + + + +
+ +