diff --git a/.idea/sonarlint/issuestore/index.pb b/.idea/sonarlint/issuestore/index.pb index 61e3784..35aaa8a 100644 --- a/.idea/sonarlint/issuestore/index.pb +++ b/.idea/sonarlint/issuestore/index.pb @@ -94,4 +94,66 @@ l h 8backend/src/main/java/org/example/backend/IdService.java,a/d/ade584bee5740427d22679eb833b7347bd939a5a m -=backend/src/main/java/org/example/backend/ProductService.java,4/1/4178818302928ac49d1b00195996b46861483879 \ No newline at end of file +=backend/src/main/java/org/example/backend/ProductService.java,4/1/4178818302928ac49d1b00195996b46861483879 +G +frontend/src/product.ts,d/d/ddae25cab37de04273c1507fa18046a90928c5ec +E +frontend/src/main.tsx,d/3/d34671d283228d7092732121699241dc2e7bac4b +N +frontend/src/ProductService.ts,4/7/4739c4f76c570076e248b750ad9c6a24bf0889a9 +D +frontend/src/App.tsx,b/9/b9c5384815ed26f7912bd4d34cab45985cb9a0cd +F +frontend/src/index.css,9/1/91e522be11677dbeaea3b85493b4868d2728cb6c +W +'frontend/src/components/ProductForm.tsx,8/3/83c0206897957aa794545d573b73c9e1f8792109 +W +'frontend/src/components/ProductList.tsx,9/2/92f4937987b262ae52650da3fe8de5cfd1a3ffb9 +< + package.json,7/0/7030d0b2f71b999ff89a343de08c414af32fc93a +B +backend/.gitignore,7/e/7e16691a9fc60084a157565ec422c8094d3df67c +H +sonar-project.properties,2/5/2538046035efb77ecc44e1fd2eec1e2641594d4c +< + frontend.iml,c/9/c9f1b41617b8e959bd8b169eacd3905980321a5a +N +node_modules/cors/package.json,6/d/6d835a96c96bb699debff2b49ee69aa622a9972d +A +package-lock.json,f/a/fa288d1472d29beccb489a676f68739ad365fc47 +9 + README.md,8/e/8ec9a00bfd09b3190ac6b22251dbb1aa95a0579d +N +teamproject-group3-webshop.iml,6/1/61d4ab1c406aa78e2892979a755aa645831bc7b3 +N +node_modules/cors/lib/index.js,3/1/31cc8c55cc1d9ec3efeda41cde4582399e51e93d +K +frontend/tsconfig.node.json,8/2/8249104523fefb944491610a638662f071bf3b20 +G +frontend/vite.config.ts,9/0/90c068302e8f67d715a544570fc20ecda9b598c2 +@ +backend/mvnw.cmd,1/5/150f7f46befb4ca181444afaddf1ccde5c197593 +J +frontend/src/vite-env.d.ts,1/3/1365ea5108430d66cf85a308bc580fbf384390c3 +C +frontend/index.html,a/1/a12b0e66474192f8cb9a2db83f26413a588dec1d +F +frontend/.eslintrc.cjs,8/4/84231099d9a06b2d88c9279cd7ff80b7f1c1072b +H +frontend/public/vite.svg,a/d/ad57e5b0ce24db6471ce66741d0a6ced3e07a243 +D +frontend/src/App.css,8/a/8a75d7beb1451b6fe9282486fbd897a9a8156b7f +C +frontend/.gitignore,e/2/e23a63a9f05477a70f6e75d709dbb4eae2db742d +J +frontend/package-lock.json,7/5/75b3b81cff849b08343553e269c3327a04ab22e0 +B +frontend/README.md,6/a/6a3a36e34dda2b89c027f00ac950371695b13c75 +F +frontend/tsconfig.json,1/8/18471fb0707c190401cd5328ddb4664160a53d26 +: + +DockerFile,4/0/40f7331d8e28c3c74df3da70560f362ea1796985 +: + +Dockerfile,6/6/6651ddff6eb82c840ced7c1dddee15c6e1913dd4 \ No newline at end of file diff --git a/.idea/sonarlint/securityhotspotstore/index.pb b/.idea/sonarlint/securityhotspotstore/index.pb index 61e3784..35aaa8a 100644 --- a/.idea/sonarlint/securityhotspotstore/index.pb +++ b/.idea/sonarlint/securityhotspotstore/index.pb @@ -94,4 +94,66 @@ l h 8backend/src/main/java/org/example/backend/IdService.java,a/d/ade584bee5740427d22679eb833b7347bd939a5a m -=backend/src/main/java/org/example/backend/ProductService.java,4/1/4178818302928ac49d1b00195996b46861483879 \ No newline at end of file +=backend/src/main/java/org/example/backend/ProductService.java,4/1/4178818302928ac49d1b00195996b46861483879 +G +frontend/src/product.ts,d/d/ddae25cab37de04273c1507fa18046a90928c5ec +E +frontend/src/main.tsx,d/3/d34671d283228d7092732121699241dc2e7bac4b +N +frontend/src/ProductService.ts,4/7/4739c4f76c570076e248b750ad9c6a24bf0889a9 +D +frontend/src/App.tsx,b/9/b9c5384815ed26f7912bd4d34cab45985cb9a0cd +F +frontend/src/index.css,9/1/91e522be11677dbeaea3b85493b4868d2728cb6c +W +'frontend/src/components/ProductForm.tsx,8/3/83c0206897957aa794545d573b73c9e1f8792109 +W +'frontend/src/components/ProductList.tsx,9/2/92f4937987b262ae52650da3fe8de5cfd1a3ffb9 +< + package.json,7/0/7030d0b2f71b999ff89a343de08c414af32fc93a +B +backend/.gitignore,7/e/7e16691a9fc60084a157565ec422c8094d3df67c +H +sonar-project.properties,2/5/2538046035efb77ecc44e1fd2eec1e2641594d4c +< + frontend.iml,c/9/c9f1b41617b8e959bd8b169eacd3905980321a5a +N +node_modules/cors/package.json,6/d/6d835a96c96bb699debff2b49ee69aa622a9972d +A +package-lock.json,f/a/fa288d1472d29beccb489a676f68739ad365fc47 +9 + README.md,8/e/8ec9a00bfd09b3190ac6b22251dbb1aa95a0579d +N +teamproject-group3-webshop.iml,6/1/61d4ab1c406aa78e2892979a755aa645831bc7b3 +N +node_modules/cors/lib/index.js,3/1/31cc8c55cc1d9ec3efeda41cde4582399e51e93d +K +frontend/tsconfig.node.json,8/2/8249104523fefb944491610a638662f071bf3b20 +G +frontend/vite.config.ts,9/0/90c068302e8f67d715a544570fc20ecda9b598c2 +@ +backend/mvnw.cmd,1/5/150f7f46befb4ca181444afaddf1ccde5c197593 +J +frontend/src/vite-env.d.ts,1/3/1365ea5108430d66cf85a308bc580fbf384390c3 +C +frontend/index.html,a/1/a12b0e66474192f8cb9a2db83f26413a588dec1d +F +frontend/.eslintrc.cjs,8/4/84231099d9a06b2d88c9279cd7ff80b7f1c1072b +H +frontend/public/vite.svg,a/d/ad57e5b0ce24db6471ce66741d0a6ced3e07a243 +D +frontend/src/App.css,8/a/8a75d7beb1451b6fe9282486fbd897a9a8156b7f +C +frontend/.gitignore,e/2/e23a63a9f05477a70f6e75d709dbb4eae2db742d +J +frontend/package-lock.json,7/5/75b3b81cff849b08343553e269c3327a04ab22e0 +B +frontend/README.md,6/a/6a3a36e34dda2b89c027f00ac950371695b13c75 +F +frontend/tsconfig.json,1/8/18471fb0707c190401cd5328ddb4664160a53d26 +: + +DockerFile,4/0/40f7331d8e28c3c74df3da70560f362ea1796985 +: + +Dockerfile,6/6/6651ddff6eb82c840ced7c1dddee15c6e1913dd4 \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6638bc6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM --platform=linux/amd64 openjdk:22 + +ADD backend/target/backend-0.0.1-SNAPSHOT.jar app.jar + +EXPOSE 8080 + +ENTRYPOINT ["java", "-jar", "app.jar"] \ No newline at end of file diff --git a/backend/src/main/resources/application.properties b/backend/src/main/resources/application.properties index 4556c1f..6cd7d9f 100644 --- a/backend/src/main/resources/application.properties +++ b/backend/src/main/resources/application.properties @@ -2,3 +2,4 @@ spring.application.name=backend spring.data.mongodb.uri=${MONGODB_URL} spring.data.mongodb.database=webshop + diff --git a/backend/src/main/resources/static/assets/index-DD_6ghZ4.js b/backend/src/main/resources/static/assets/index-DD_6ghZ4.js new file mode 100644 index 0000000..60ca804 --- /dev/null +++ b/backend/src/main/resources/static/assets/index-DD_6ghZ4.js @@ -0,0 +1,72 @@ +function $f(e,t){for(var n=0;nr[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();function Vf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bs={exports:{}},kl={},ea={exports:{}},z={};/** + * @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 ar=Symbol.for("react.element"),Wf=Symbol.for("react.portal"),Qf=Symbol.for("react.fragment"),Kf=Symbol.for("react.strict_mode"),Xf=Symbol.for("react.profiler"),Jf=Symbol.for("react.provider"),Yf=Symbol.for("react.context"),qf=Symbol.for("react.forward_ref"),Gf=Symbol.for("react.suspense"),Zf=Symbol.for("react.memo"),bf=Symbol.for("react.lazy"),_u=Symbol.iterator;function ed(e){return e===null||typeof e!="object"?null:(e=_u&&e[_u]||e["@@iterator"],typeof e=="function"?e:null)}var ta={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},na=Object.assign,ra={};function yn(e,t,n){this.props=e,this.context=t,this.refs=ra,this.updater=n||ta}yn.prototype.isReactComponent={};yn.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")};yn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function la(){}la.prototype=yn.prototype;function _i(e,t,n){this.props=e,this.context=t,this.refs=ra,this.updater=n||ta}var Pi=_i.prototype=new la;Pi.constructor=_i;na(Pi,yn.prototype);Pi.isPureReactComponent=!0;var Pu=Array.isArray,oa=Object.prototype.hasOwnProperty,Ri={current:null},ia={key:!0,ref:!0,__self:!0,__source:!0};function ua(e,t,n){var r,l={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)oa.call(t,r)&&!ia.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1>>1,Z=R[Q];if(0>>1;Ql(Ql,L))_tl(vr,Ql)?(R[Q]=vr,R[_t]=L,Q=_t):(R[Q]=Ql,R[Ct]=L,Q=Ct);else if(_tl(vr,L))R[Q]=vr,R[_t]=L,Q=_t;else break e}}return O}function l(R,O){var L=R.sortIndex-O.sortIndex;return L!==0?L:R.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var s=[],a=[],f=1,h=null,m=3,w=!1,y=!1,g=!1,_=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(R){for(var O=n(a);O!==null;){if(O.callback===null)r(a);else if(O.startTime<=R)r(a),O.sortIndex=O.expirationTime,t(s,O);else break;O=n(a)}}function S(R){if(g=!1,p(R),!y)if(n(s)!==null)y=!0,Vl(k);else{var O=n(a);O!==null&&Wl(S,O.startTime-R)}}function k(R,O){y=!1,g&&(g=!1,d(T),T=-1),w=!0;var L=m;try{for(p(O),h=n(s);h!==null&&(!(h.expirationTime>O)||R&&!ze());){var Q=h.callback;if(typeof Q=="function"){h.callback=null,m=h.priorityLevel;var Z=Q(h.expirationTime<=O);O=e.unstable_now(),typeof Z=="function"?h.callback=Z:h===n(s)&&r(s),p(O)}else r(s);h=n(s)}if(h!==null)var yr=!0;else{var Ct=n(a);Ct!==null&&Wl(S,Ct.startTime-O),yr=!1}return yr}finally{h=null,m=L,w=!1}}var x=!1,P=null,T=-1,W=5,F=-1;function ze(){return!(e.unstable_now()-FR||125Q?(R.sortIndex=L,t(a,R),n(s)===null&&R===n(a)&&(g?(d(T),T=-1):g=!0,Wl(S,L-Q))):(R.sortIndex=Z,t(s,R),y||w||(y=!0,Vl(k))),R},e.unstable_shouldYield=ze,e.unstable_wrapCallback=function(R){var O=m;return function(){var L=m;m=O;try{return R.apply(this,arguments)}finally{m=L}}}})(pa);da.exports=pa;var dd=da.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 pd=q,Ee=dd;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"),Co=Object.prototype.hasOwnProperty,hd=/^[: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]*$/,Tu={},Nu={};function md(e){return Co.call(Nu,e)?!0:Co.call(Tu,e)?!1:hd.test(e)?Nu[e]=!0:(Tu[e]=!0,!1)}function yd(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 vd(e,t,n,r){if(t===null||typeof t>"u"||yd(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,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var 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 Ni=/[\-:]([a-z])/g;function Oi(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(Ni,Oi);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(Ni,Oi);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(Ni,Oi);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 Li(e,t,n,r){var l=re.hasOwnProperty(t)?re[t]:null;(l!==null?l.type!==0:r||!(2u||l[i]!==o[u]){var s=` +`+l[i].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=i&&0<=u);break}}}finally{Jl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?zn(e):""}function gd(e){switch(e.tag){case 5:return zn(e.type);case 16:return zn("Lazy");case 13:return zn("Suspense");case 19:return zn("SuspenseList");case 0:case 2:case 15:return e=Yl(e.type,!1),e;case 11:return e=Yl(e.type.render,!1),e;case 1:return e=Yl(e.type,!0),e;default:return""}}function To(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 Qt:return"Fragment";case Wt:return"Portal";case _o:return"Profiler";case zi:return"StrictMode";case Po:return"Suspense";case Ro:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ya:return(e.displayName||"Context")+".Consumer";case ma:return(e._context.displayName||"Context")+".Provider";case Fi:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ai:return t=e.displayName||null,t!==null?t:To(e.type)||"Memo";case ot:t=e._payload,e=e._init;try{return To(e(t))}catch{}}return null}function wd(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 To(t);case 8:return t===zi?"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 wt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ga(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Sd(e){var t=ga(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Sr(e){e._valueTracker||(e._valueTracker=Sd(e))}function wa(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ga(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Yr(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 No(e,t){var n=t.checked;return $({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Lu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=wt(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 Sa(e,t){t=t.checked,t!=null&&Li(e,"checked",t,!1)}function Oo(e,t){Sa(e,t);var n=wt(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")?Lo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Lo(e,t.type,wt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function zu(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 Lo(e,t,n){(t!=="number"||Yr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Fn=Array.isArray;function nn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=Er.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Kn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var jn={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},Ed=["Webkit","ms","Moz","O"];Object.keys(jn).forEach(function(e){Ed.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),jn[t]=jn[e]})});function Ca(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||jn.hasOwnProperty(e)&&jn[e]?(""+t).trim():t+"px"}function _a(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Ca(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var kd=$({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 Ao(e,t){if(t){if(kd[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 Do(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 jo=null;function Di(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Mo=null,rn=null,ln=null;function Du(e){if(e=dr(e)){if(typeof Mo!="function")throw Error(E(280));var t=e.stateNode;t&&(t=Rl(t),Mo(e.stateNode,e.type,t))}}function Pa(e){rn?ln?ln.push(e):ln=[e]:rn=e}function Ra(){if(rn){var e=rn,t=ln;if(ln=rn=null,Du(e),t)for(e=0;e>>=0,e===0?32:31-(Fd(e)/Ad|0)|0}var kr=64,xr=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 br(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var u=i&~l;u!==0?r=An(u):(o&=i,o!==0&&(r=An(o)))}else i=n&~l,i!==0?r=An(i):o!==0&&(r=An(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function cr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Me(t),e[t]=n}function Ud(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=Un),Wu=" ",Qu=!1;function Xa(e,t){switch(e){case"keyup":return dp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ja(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Kt=!1;function hp(e,t){switch(e){case"compositionend":return Ja(t);case"keypress":return t.which!==32?null:(Qu=!0,Wu);case"textInput":return e=t.data,e===Wu&&Qu?null:e;default:return null}}function mp(e,t){if(Kt)return e==="compositionend"||!Vi&&Xa(e,t)?(e=Qa(),Ur=Bi=at=null,Kt=!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 Za(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Za(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ba(){for(var e=window,t=Yr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Yr(e.document)}return t}function Wi(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Cp(e){var t=ba(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Za(n.ownerDocument.documentElement,n)){if(r!==null&&Wi(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=qu(n,o);var i=qu(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Xt=null,Vo=null,Bn=null,Wo=!1;function Gu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Wo||Xt==null||Xt!==Yr(r)||(r=Xt,"selectionStart"in r&&Wi(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}),Bn&&Zn(Bn,r)||(Bn=r,r=nl(Vo,"onSelect"),0qt||(e.current=qo[qt],qo[qt]=null,qt--)}function j(e,t){qt++,qo[qt]=e.current,e.current=t}var St={},ue=kt(St),he=kt(!1),Dt=St;function cn(e,t){var n=e.type.contextTypes;if(!n)return St;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function me(e){return e=e.childContextTypes,e!=null}function ll(){U(he),U(ue)}function ls(e,t,n){if(ue.current!==St)throw Error(E(168));j(ue,t),j(he,n)}function sc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(E(108,wd(e)||"Unknown",l));return $({},n,r)}function ol(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||St,Dt=ue.current,j(ue,e),j(he,he.current),!0}function os(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=sc(e,t,Dt),r.__reactInternalMemoizedMergedChildContext=e,U(he),U(ue),j(ue,e)):U(he),j(he,n)}var Je=null,Tl=!1,ao=!1;function ac(e){Je===null?Je=[e]:Je.push(e)}function jp(e){Tl=!0,ac(e)}function xt(){if(!ao&&Je!==null){ao=!0;var e=0,t=D;try{var n=Je;for(D=1;e>=i,l-=i,Ye=1<<32-Me(t)+l|n<T?(W=P,P=null):W=P.sibling;var F=m(d,P,p[T],S);if(F===null){P===null&&(P=W);break}e&&P&&F.alternate===null&&t(d,P),c=o(F,c,T),x===null?k=F:x.sibling=F,x=F,P=W}if(T===p.length)return n(d,P),I&&Pt(d,T),k;if(P===null){for(;TT?(W=P,P=null):W=P.sibling;var ze=m(d,P,F.value,S);if(ze===null){P===null&&(P=W);break}e&&P&&ze.alternate===null&&t(d,P),c=o(ze,c,T),x===null?k=ze:x.sibling=ze,x=ze,P=W}if(F.done)return n(d,P),I&&Pt(d,T),k;if(P===null){for(;!F.done;T++,F=p.next())F=h(d,F.value,S),F!==null&&(c=o(F,c,T),x===null?k=F:x.sibling=F,x=F);return I&&Pt(d,T),k}for(P=r(d,P);!F.done;T++,F=p.next())F=w(P,d,T,F.value,S),F!==null&&(e&&F.alternate!==null&&P.delete(F.key===null?T:F.key),c=o(F,c,T),x===null?k=F:x.sibling=F,x=F);return e&&P.forEach(function(En){return t(d,En)}),I&&Pt(d,T),k}function _(d,c,p,S){if(typeof p=="object"&&p!==null&&p.type===Qt&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case wr:e:{for(var k=p.key,x=c;x!==null;){if(x.key===k){if(k=p.type,k===Qt){if(x.tag===7){n(d,x.sibling),c=l(x,p.props.children),c.return=d,d=c;break e}}else if(x.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===ot&&ss(k)===x.type){n(d,x.sibling),c=l(x,p.props),c.ref=Tn(d,x,p),c.return=d,d=c;break e}n(d,x);break}else t(d,x);x=x.sibling}p.type===Qt?(c=Ft(p.props.children,d.mode,S,p.key),c.return=d,d=c):(S=Kr(p.type,p.key,p.props,null,d.mode,S),S.ref=Tn(d,c,p),S.return=d,d=S)}return i(d);case Wt:e:{for(x=p.key;c!==null;){if(c.key===x)if(c.tag===4&&c.stateNode.containerInfo===p.containerInfo&&c.stateNode.implementation===p.implementation){n(d,c.sibling),c=l(c,p.children||[]),c.return=d,d=c;break e}else{n(d,c);break}else t(d,c);c=c.sibling}c=go(p,d.mode,S),c.return=d,d=c}return i(d);case ot:return x=p._init,_(d,c,x(p._payload),S)}if(Fn(p))return y(d,c,p,S);if(xn(p))return g(d,c,p,S);Or(d,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,c!==null&&c.tag===6?(n(d,c.sibling),c=l(c,p),c.return=d,d=c):(n(d,c),c=vo(p,d.mode,S),c.return=d,d=c),i(d)):n(d,c)}return _}var dn=pc(!0),hc=pc(!1),sl=kt(null),al=null,bt=null,Ji=null;function Yi(){Ji=bt=al=null}function qi(e){var t=sl.current;U(sl),e._currentValue=t}function bo(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 un(e,t){al=e,Ji=bt=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},bt===null){if(al===null)throw Error(E(308));bt=e,al.dependencies={lanes:0,firstContext:e}}else bt=bt.next=e;return t}var Nt=null;function Gi(e){Nt===null?Nt=[e]:Nt.push(e)}function mc(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Gi(t)):(n.next=l.next,l.next=n),t.interleaved=n,et(e,r)}function et(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 it=!1;function Zi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function yc(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 Ge(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function mt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,A&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,et(e,n)}return l=r.interleaved,l===null?(t.next=t,Gi(r)):(t.next=l.next,l.next=t),r.interleaved=t,et(e,n)}function Br(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,Mi(e,n)}}function as(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function cl(e,t,n,r){var l=e.updateQueue;it=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var s=u,a=s.next;s.next=null,i===null?o=a:i.next=a,i=s;var f=e.alternate;f!==null&&(f=f.updateQueue,u=f.lastBaseUpdate,u!==i&&(u===null?f.firstBaseUpdate=a:u.next=a,f.lastBaseUpdate=s))}if(o!==null){var h=l.baseState;i=0,f=a=s=null,u=o;do{var m=u.lane,w=u.eventTime;if((r&m)===m){f!==null&&(f=f.next={eventTime:w,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var y=e,g=u;switch(m=t,w=n,g.tag){case 1:if(y=g.payload,typeof y=="function"){h=y.call(w,h,m);break e}h=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=g.payload,m=typeof y=="function"?y.call(w,h,m):y,m==null)break e;h=$({},h,m);break e;case 2:it=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,m=l.effects,m===null?l.effects=[u]:m.push(u))}else w={eventTime:w,lane:m,tag:u.tag,payload:u.payload,callback:u.callback,next:null},f===null?(a=f=w,s=h):f=f.next=w,i|=m;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;m=u,u=m.next,m.next=null,l.lastBaseUpdate=m,l.shared.pending=null}}while(!0);if(f===null&&(s=h),l.baseState=s,l.firstBaseUpdate=a,l.lastBaseUpdate=f,t=l.shared.interleaved,t!==null){l=t;do i|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);Ut|=i,e.lanes=i,e.memoizedState=h}}function cs(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=fo.transition;fo.transition={};try{e(!1),t()}finally{D=n,fo.transition=r}}function Fc(){return Le().memoizedState}function Bp(e,t,n){var r=vt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ac(e))Dc(t,n);else if(n=mc(e,t,n,r),n!==null){var l=ae();Ue(n,e,r,l),jc(n,t,r)}}function Hp(e,t,n){var r=vt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ac(e))Dc(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,u=o(i,n);if(l.hasEagerState=!0,l.eagerState=u,Be(u,i)){var s=t.interleaved;s===null?(l.next=l,Gi(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=mc(e,t,l,r),n!==null&&(l=ae(),Ue(n,e,r,l),jc(n,t,r))}}function Ac(e){var t=e.alternate;return e===H||t!==null&&t===H}function Dc(e,t){Hn=dl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function jc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Mi(e,n)}}var pl={readContext:Oe,useCallback:le,useContext:le,useEffect:le,useImperativeHandle:le,useInsertionEffect:le,useLayoutEffect:le,useMemo:le,useReducer:le,useRef:le,useState:le,useDebugValue:le,useDeferredValue:le,useTransition:le,useMutableSource:le,useSyncExternalStore:le,useId:le,unstable_isNewReconciler:!1},$p={readContext:Oe,useCallback:function(e,t){return Ve().memoizedState=[e,t===void 0?null:t],e},useContext:Oe,useEffect:ds,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,$r(4194308,4,Tc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $r(4194308,4,e,t)},useInsertionEffect:function(e,t){return $r(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=Bp.bind(null,H,e),[r.memoizedState,e]},useRef:function(e){var t=Ve();return e={current:e},t.memoizedState=e},useState:fs,useDebugValue:iu,useDeferredValue:function(e){return Ve().memoizedState=e},useTransition:function(){var e=fs(!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=H,l=Ve();if(I){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),ee===null)throw Error(E(349));Mt&30||Sc(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,ds(kc.bind(null,r,o,e),[e]),r.flags|=2048,ir(9,Ec.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ve(),t=ee.identifierPrefix;if(I){var n=qe,r=Ye;n=(r&~(1<<32-Me(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=lr++,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[tr]=r,Kc(e,t,!1,!1),t.stateNode=e;e:{switch(i=Do(n,r),n){case"dialog":M("cancel",e),M("close",e),l=r;break;case"iframe":case"object":case"embed":M("load",e),l=r;break;case"video":case"audio":for(l=0;lmn&&(t.flags|=128,r=!0,Nn(o,!1),t.lanes=4194304)}else{if(!r)if(e=fl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Nn(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!I)return oe(t),null}else 2*K()-o.renderingStartTime>mn&&n!==1073741824&&(t.flags|=128,r=!0,Nn(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=K(),t.sibling=null,n=B.current,j(B,r?n&1|2:n&1),t):(oe(t),null);case 22:case 23:return du(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ge&1073741824&&(oe(t),t.subtreeFlags&6&&(t.flags|=8192)):oe(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function qp(e,t){switch(Ki(t),t.tag){case 1:return me(t.type)&&ll(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pn(),U(he),U(ue),tu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return eu(t),null;case 13:if(U(B),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));fn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(B),null;case 4:return pn(),null;case 10:return qi(t.type._context),null;case 22:case 23:return du(),null;case 24:return null;default:return null}}var zr=!1,ie=!1,Gp=typeof WeakSet=="function"?WeakSet:Set,C=null;function en(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){V(e,t,r)}else n.current=null}function si(e,t,n){try{n()}catch(r){V(e,t,r)}}var xs=!1;function Zp(e,t){if(Qo=el,e=ba(),Wi(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,u=-1,s=-1,a=0,f=0,h=e,m=null;t:for(;;){for(var w;h!==n||l!==0&&h.nodeType!==3||(u=i+l),h!==o||r!==0&&h.nodeType!==3||(s=i+r),h.nodeType===3&&(i+=h.nodeValue.length),(w=h.firstChild)!==null;)m=h,h=w;for(;;){if(h===e)break t;if(m===n&&++a===l&&(u=i),m===o&&++f===r&&(s=i),(w=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=w}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ko={focusedElem:e,selectionRange:n},el=!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 y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var g=y.memoizedProps,_=y.memoizedState,d=t.stateNode,c=d.getSnapshotBeforeUpdate(t.elementType===t.type?g:Ae(t.type,g),_);d.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(E(163))}}catch(S){V(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,C=e;break}C=t.return}return y=xs,xs=!1,y}function $n(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&si(t,n,o)}l=l.next}while(l!==r)}}function Ll(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 ai(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 Yc(e){var t=e.alternate;t!==null&&(e.alternate=null,Yc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[We],delete t[tr],delete t[Yo],delete t[Ap],delete t[Dp])),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 qc(e){return e.tag===5||e.tag===3||e.tag===4}function Cs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||qc(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 ci(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=rl));else if(r!==4&&(e=e.child,e!==null))for(ci(e,t,n),e=e.sibling;e!==null;)ci(e,t,n),e=e.sibling}function fi(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(fi(e,t,n),e=e.sibling;e!==null;)fi(e,t,n),e=e.sibling}var te=null,De=!1;function rt(e,t,n){for(n=n.child;n!==null;)Gc(e,t,n),n=n.sibling}function Gc(e,t,n){if(Qe&&typeof Qe.onCommitFiberUnmount=="function")try{Qe.onCommitFiberUnmount(xl,n)}catch{}switch(n.tag){case 5:ie||en(n,t);case 6:var r=te,l=De;te=null,rt(e,t,n),te=r,De=l,te!==null&&(De?(e=te,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):te.removeChild(n.stateNode));break;case 18:te!==null&&(De?(e=te,n=n.stateNode,e.nodeType===8?so(e.parentNode,n):e.nodeType===1&&so(e,n),qn(e)):so(te,n.stateNode));break;case 4:r=te,l=De,te=n.stateNode.containerInfo,De=!0,rt(e,t,n),te=r,De=l;break;case 0:case 11:case 14:case 15:if(!ie&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&si(n,t,i),l=l.next}while(l!==r)}rt(e,t,n);break;case 1:if(!ie&&(en(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){V(n,t,u)}rt(e,t,n);break;case 21:rt(e,t,n);break;case 22:n.mode&1?(ie=(r=ie)||n.memoizedState!==null,rt(e,t,n),ie=r):rt(e,t,n);break;default:rt(e,t,n)}}function _s(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Gp),t.forEach(function(r){var l=uh.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Fe(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=K()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*eh(r/1960))-r,10e?16:e,ct===null)var r=!1;else{if(e=ct,ct=null,yl=0,A&6)throw Error(E(331));var l=A;for(A|=4,C=e.current;C!==null;){var o=C,i=o.child;if(C.flags&16){var u=o.deletions;if(u!==null){for(var s=0;sK()-cu?zt(e,0):au|=n),ye(e,t)}function of(e,t){t===0&&(e.mode&1?(t=xr,xr<<=1,!(xr&130023424)&&(xr=4194304)):t=1);var n=ae();e=et(e,t),e!==null&&(cr(e,t,n),ye(e,n))}function ih(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),of(e,n)}function uh(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(E(314))}r!==null&&r.delete(t),of(e,n)}var uf;uf=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,Jp(e,t,n);pe=!!(e.flags&131072)}else pe=!1,I&&t.flags&1048576&&cc(t,ul,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Vr(e,t),e=t.pendingProps;var l=cn(t,ue.current);un(t,n),l=ru(null,t,r,e,l,n);var o=lu();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,me(r)?(o=!0,ol(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Zi(t),l.updater=Ol,t.stateNode=l,l._reactInternals=t,ti(t,r,e,n),t=li(null,t,r,!0,o,n)):(t.tag=0,I&&o&&Qi(t),se(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Vr(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=ah(r),e=Ae(r,e),l){case 0:t=ri(null,t,r,e,n);break e;case 1:t=Ss(null,t,r,e,n);break e;case 11:t=gs(null,t,r,e,n);break e;case 14:t=ws(null,t,r,Ae(r.type,e),n);break e}throw Error(E(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ae(r,l),ri(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ae(r,l),Ss(e,t,r,l,n);case 3:e:{if(Vc(t),e===null)throw Error(E(387));r=t.pendingProps,o=t.memoizedState,l=o.element,yc(e,t),cl(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=hn(Error(E(423)),t),t=Es(e,t,r,n,l);break e}else if(r!==l){l=hn(Error(E(424)),t),t=Es(e,t,r,n,l);break e}else for(we=ht(t.stateNode.containerInfo.firstChild),Se=t,I=!0,je=null,n=hc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(fn(),r===l){t=tt(e,t,n);break e}se(e,t,r,n)}t=t.child}return t;case 5:return vc(t),e===null&&Zo(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,Xo(r,l)?i=null:o!==null&&Xo(r,o)&&(t.flags|=32),$c(e,t),se(e,t,i,n),t.child;case 6:return e===null&&Zo(t),null;case 13:return Wc(e,t,n);case 4:return bi(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=dn(t,null,r,n):se(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ae(r,l),gs(e,t,r,l,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,l=t.pendingProps,o=t.memoizedProps,i=l.value,j(sl,r._currentValue),r._currentValue=i,o!==null)if(Be(o.value,i)){if(o.children===l.children&&!he.current){t=tt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){i=o.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=Ge(-1,n&-n),s.tag=2;var a=o.updateQueue;if(a!==null){a=a.shared;var f=a.pending;f===null?s.next=s:(s.next=f.next,f.next=s),a.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),bo(o.return,n,t),u.lanes|=n;break}s=s.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(E(341));i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),bo(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}se(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,un(t,n),l=Oe(l),r=r(l),t.flags|=1,se(e,t,r,n),t.child;case 14:return r=t.type,l=Ae(r,t.pendingProps),l=Ae(r.type,l),ws(e,t,r,l,n);case 15:return Bc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ae(r,l),Vr(e,t),t.tag=1,me(r)?(e=!0,ol(t)):e=!1,un(t,n),Mc(t,r,l),ti(t,r,l,n),li(null,t,r,!0,e,n);case 19:return Qc(e,t,n);case 22:return Hc(e,t,n)}throw Error(E(156,t.tag))};function sf(e,t){return Aa(e,t)}function sh(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 sh(e,t,n,r)}function hu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ah(e){if(typeof e=="function")return hu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Fi)return 11;if(e===Ai)return 14}return 2}function gt(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 Kr(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")hu(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Qt:return Ft(n.children,l,o,t);case zi:i=8,l|=8;break;case _o:return e=Re(12,n,t,l|2),e.elementType=_o,e.lanes=o,e;case Po:return e=Re(13,n,t,l),e.elementType=Po,e.lanes=o,e;case Ro:return e=Re(19,n,t,l),e.elementType=Ro,e.lanes=o,e;case va:return Fl(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ma:i=10;break e;case ya:i=9;break e;case Fi:i=11;break e;case Ai:i=14;break e;case ot:i=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=Re(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function Ft(e,t,n,r){return e=Re(7,e,r,t),e.lanes=n,e}function Fl(e,t,n,r){return e=Re(22,e,r,t),e.elementType=va,e.lanes=n,e.stateNode={isHidden:!1},e}function vo(e,t,n){return e=Re(6,e,null,t),e.lanes=n,e}function go(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 ch(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Gl(0),this.expirationTimes=Gl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function mu(e,t,n,r,l,o,i,u,s){return e=new ch(e,t,n,u,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Re(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zi(o),e}function fh(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(df)}catch(e){console.error(e)}}df(),fa.exports=ke;var yh=fa.exports,Fs=yh;xo.createRoot=Fs.createRoot,xo.hydrateRoot=Fs.hydrateRoot;function pf(e,t){return function(){return e.apply(t,arguments)}}const{toString:vh}=Object.prototype,{getPrototypeOf:wu}=Object,Ul=(e=>t=>{const n=vh.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),He=e=>(e=e.toLowerCase(),t=>Ul(t)===e),Il=e=>t=>typeof t===e,{isArray:wn}=Array,sr=Il("undefined");function gh(e){return e!==null&&!sr(e)&&e.constructor!==null&&!sr(e.constructor)&&Ne(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const hf=He("ArrayBuffer");function wh(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&hf(e.buffer),t}const Sh=Il("string"),Ne=Il("function"),mf=Il("number"),Bl=e=>e!==null&&typeof e=="object",Eh=e=>e===!0||e===!1,Xr=e=>{if(Ul(e)!=="object")return!1;const t=wu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},kh=He("Date"),xh=He("File"),Ch=He("Blob"),_h=He("FileList"),Ph=e=>Bl(e)&&Ne(e.pipe),Rh=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ne(e.append)&&((t=Ul(e))==="formdata"||t==="object"&&Ne(e.toString)&&e.toString()==="[object FormData]"))},Th=He("URLSearchParams"),[Nh,Oh,Lh,zh]=["ReadableStream","Request","Response","Headers"].map(He),Fh=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function hr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,l;if(typeof e!="object"&&(e=[e]),wn(e))for(r=0,l=e.length;r0;)if(l=n[r],t===l.toLowerCase())return l;return null}const vf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,gf=e=>!sr(e)&&e!==vf;function yi(){const{caseless:e}=gf(this)&&this||{},t={},n=(r,l)=>{const o=e&&yf(t,l)||l;Xr(t[o])&&Xr(r)?t[o]=yi(t[o],r):Xr(r)?t[o]=yi({},r):wn(r)?t[o]=r.slice():t[o]=r};for(let r=0,l=arguments.length;r(hr(t,(l,o)=>{n&&Ne(l)?e[o]=pf(l,n):e[o]=l},{allOwnKeys:r}),e),Dh=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),jh=(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)},Mh=(e,t,n,r)=>{let l,o,i;const u={};if(t=t||{},e==null)return t;do{for(l=Object.getOwnPropertyNames(e),o=l.length;o-- >0;)i=l[o],(!r||r(i,e,t))&&!u[i]&&(t[i]=e[i],u[i]=!0);e=n!==!1&&wu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Uh=(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(wn(e))return e;let t=e.length;if(!mf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Bh=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&wu(Uint8Array)),Hh=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let l;for(;(l=r.next())&&!l.done;){const o=l.value;t.call(e,o[0],o[1])}},$h=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Vh=He("HTMLFormElement"),Wh=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,l){return r.toUpperCase()+l}),As=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Qh=He("RegExp"),wf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};hr(n,(l,o)=>{let i;(i=t(l,o,e))!==!1&&(r[o]=i||l)}),Object.defineProperties(e,r)},Kh=e=>{wf(e,(t,n)=>{if(Ne(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ne(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+"'")})}})},Xh=(e,t)=>{const n={},r=l=>{l.forEach(o=>{n[o]=!0})};return wn(e)?r(e):r(String(e).split(t)),n},Jh=()=>{},Yh=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,wo="abcdefghijklmnopqrstuvwxyz",Ds="0123456789",Sf={DIGIT:Ds,ALPHA:wo,ALPHA_DIGIT:wo+wo.toUpperCase()+Ds},qh=(e=16,t=Sf.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Gh(e){return!!(e&&Ne(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Zh=e=>{const t=new Array(10),n=(r,l)=>{if(Bl(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[l]=r;const o=wn(r)?[]:{};return hr(r,(i,u)=>{const s=n(i,l+1);!sr(s)&&(o[u]=s)}),t[l]=void 0,o}}return r};return n(e,0)},bh=He("AsyncFunction"),em=e=>e&&(Bl(e)||Ne(e))&&Ne(e.then)&&Ne(e.catch),v={isArray:wn,isArrayBuffer:hf,isBuffer:gh,isFormData:Rh,isArrayBufferView:wh,isString:Sh,isNumber:mf,isBoolean:Eh,isObject:Bl,isPlainObject:Xr,isReadableStream:Nh,isRequest:Oh,isResponse:Lh,isHeaders:zh,isUndefined:sr,isDate:kh,isFile:xh,isBlob:Ch,isRegExp:Qh,isFunction:Ne,isStream:Ph,isURLSearchParams:Th,isTypedArray:Bh,isFileList:_h,forEach:hr,merge:yi,extend:Ah,trim:Fh,stripBOM:Dh,inherits:jh,toFlatObject:Mh,kindOf:Ul,kindOfTest:He,endsWith:Uh,toArray:Ih,forEachEntry:Hh,matchAll:$h,isHTMLForm:Vh,hasOwnProperty:As,hasOwnProp:As,reduceDescriptors:wf,freezeMethods:Kh,toObjectSet:Xh,toCamelCase:Wh,noop:Jh,toFiniteNumber:Yh,findKey:yf,global:vf,isContextDefined:gf,ALPHABET:Sf,generateString:qh,isSpecCompliantForm:Gh,toJSONObject:Zh,isAsyncFn:bh,isThenable:em};function N(e,t,n,r,l){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),l&&(this.response=l)}v.inherits(N,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:v.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ef=N.prototype,kf={};["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=>{kf[e]={value:e}});Object.defineProperties(N,kf);Object.defineProperty(Ef,"isAxiosError",{value:!0});N.from=(e,t,n,r,l,o)=>{const i=Object.create(Ef);return v.toFlatObject(e,i,function(s){return s!==Error.prototype},u=>u!=="isAxiosError"),N.call(i,e.message,t,n,r,l),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const tm=null;function vi(e){return v.isPlainObject(e)||v.isArray(e)}function xf(e){return v.endsWith(e,"[]")?e.slice(0,-2):e}function js(e,t,n){return e?e.concat(t).map(function(l,o){return l=xf(l),!n&&o?"["+l+"]":l}).join(n?".":""):t}function nm(e){return v.isArray(e)&&!e.some(vi)}const rm=v.toFlatObject(v,{},null,function(t){return/^is[A-Z]/.test(t)});function Hl(e,t,n){if(!v.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=v.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,_){return!v.isUndefined(_[g])});const r=n.metaTokens,l=n.visitor||f,o=n.dots,i=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&v.isSpecCompliantForm(t);if(!v.isFunction(l))throw new TypeError("visitor must be a function");function a(y){if(y===null)return"";if(v.isDate(y))return y.toISOString();if(!s&&v.isBlob(y))throw new N("Blob is not supported. Use a Buffer instead.");return v.isArrayBuffer(y)||v.isTypedArray(y)?s&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function f(y,g,_){let d=y;if(y&&!_&&typeof y=="object"){if(v.endsWith(g,"{}"))g=r?g:g.slice(0,-2),y=JSON.stringify(y);else if(v.isArray(y)&&nm(y)||(v.isFileList(y)||v.endsWith(g,"[]"))&&(d=v.toArray(y)))return g=xf(g),d.forEach(function(p,S){!(v.isUndefined(p)||p===null)&&t.append(i===!0?js([g],S,o):i===null?g:g+"[]",a(p))}),!1}return vi(y)?!0:(t.append(js(_,g,o),a(y)),!1)}const h=[],m=Object.assign(rm,{defaultVisitor:f,convertValue:a,isVisitable:vi});function w(y,g){if(!v.isUndefined(y)){if(h.indexOf(y)!==-1)throw Error("Circular reference detected in "+g.join("."));h.push(y),v.forEach(y,function(d,c){(!(v.isUndefined(d)||d===null)&&l.call(t,d,v.isString(c)?c.trim():c,g,m))===!0&&w(d,g?g.concat(c):[c])}),h.pop()}}if(!v.isObject(e))throw new TypeError("data must be an object");return w(e),t}function Ms(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Su(e,t){this._pairs=[],e&&Hl(e,this,t)}const Cf=Su.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,Ms)}:Ms;return this._pairs.map(function(l){return n(l[0])+"="+n(l[1])},"").join("&")};function lm(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function _f(e,t,n){if(!t)return e;const r=n&&n.encode||lm,l=n&&n.serialize;let o;if(l?o=l(t,n):o=v.isURLSearchParams(t)?t.toString():new Su(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Us{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){v.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Pf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},om=typeof URLSearchParams<"u"?URLSearchParams:Su,im=typeof FormData<"u"?FormData:null,um=typeof Blob<"u"?Blob:null,sm={isBrowser:!0,classes:{URLSearchParams:om,FormData:im,Blob:um},protocols:["http","https","file","blob","url","data"]},Eu=typeof window<"u"&&typeof document<"u",am=(e=>Eu&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),cm=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fm=Eu&&window.location.href||"http://localhost",dm=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Eu,hasStandardBrowserEnv:am,hasStandardBrowserWebWorkerEnv:cm,origin:fm},Symbol.toStringTag,{value:"Module"})),Ie={...dm,...sm};function pm(e,t){return Hl(e,new Ie.classes.URLSearchParams,Object.assign({visitor:function(n,r,l,o){return Ie.isNode&&v.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function hm(e){return v.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 l=n.length;let o;for(r=0;r=n.length;return i=!i&&v.isArray(l)?l.length:i,s?(v.hasOwnProp(l,i)?l[i]=[l[i],r]:l[i]=r,!u):((!l[i]||!v.isObject(l[i]))&&(l[i]=[]),t(n,r,l[i],o)&&v.isArray(l[i])&&(l[i]=mm(l[i])),!u)}if(v.isFormData(e)&&v.isFunction(e.entries)){const n={};return v.forEachEntry(e,(r,l)=>{t(hm(r),l,n,0)}),n}return null}function ym(e,t,n){if(v.isString(e))try{return(t||JSON.parse)(e),v.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const mr={transitional:Pf,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",l=r.indexOf("application/json")>-1,o=v.isObject(t);if(o&&v.isHTMLForm(t)&&(t=new FormData(t)),v.isFormData(t))return l?JSON.stringify(Rf(t)):t;if(v.isArrayBuffer(t)||v.isBuffer(t)||v.isStream(t)||v.isFile(t)||v.isBlob(t)||v.isReadableStream(t))return t;if(v.isArrayBufferView(t))return t.buffer;if(v.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return pm(t,this.formSerializer).toString();if((u=v.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Hl(u?{"files[]":t}:t,s&&new s,this.formSerializer)}}return o||l?(n.setContentType("application/json",!1),ym(t)):t}],transformResponse:[function(t){const n=this.transitional||mr.transitional,r=n&&n.forcedJSONParsing,l=this.responseType==="json";if(v.isResponse(t)||v.isReadableStream(t))return t;if(t&&v.isString(t)&&(r&&!this.responseType||l)){const i=!(n&&n.silentJSONParsing)&&l;try{return JSON.parse(t)}catch(u){if(i)throw u.name==="SyntaxError"?N.from(u,N.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:Ie.classes.FormData,Blob:Ie.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};v.forEach(["delete","get","head","post","put","patch"],e=>{mr.headers[e]={}});const vm=v.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),gm=e=>{const t={};let n,r,l;return e&&e.split(` +`).forEach(function(i){l=i.indexOf(":"),n=i.substring(0,l).trim().toLowerCase(),r=i.substring(l+1).trim(),!(!n||t[n]&&vm[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Is=Symbol("internals");function Ln(e){return e&&String(e).trim().toLowerCase()}function Jr(e){return e===!1||e==null?e:v.isArray(e)?e.map(Jr):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 So(e,t,n,r,l){if(v.isFunction(r))return r.call(this,t,n);if(l&&(t=n),!!v.isString(t)){if(v.isString(r))return t.indexOf(r)!==-1;if(v.isRegExp(r))return r.test(t)}}function Em(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function km(e,t){const n=v.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(l,o,i){return this[r].call(this,t,l,o,i)},configurable:!0})})}class ve{constructor(t){t&&this.set(t)}set(t,n,r){const l=this;function o(u,s,a){const f=Ln(s);if(!f)throw new Error("header name must be a non-empty string");const h=v.findKey(l,f);(!h||l[h]===void 0||a===!0||a===void 0&&l[h]!==!1)&&(l[h||s]=Jr(u))}const i=(u,s)=>v.forEach(u,(a,f)=>o(a,f,s));if(v.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(v.isString(t)&&(t=t.trim())&&!Sm(t))i(gm(t),n);else if(v.isHeaders(t))for(const[u,s]of t.entries())o(s,u,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=Ln(t),t){const r=v.findKey(this,t);if(r){const l=this[r];if(!n)return l;if(n===!0)return wm(l);if(v.isFunction(n))return n.call(this,l,r);if(v.isRegExp(n))return n.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ln(t),t){const r=v.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||So(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let l=!1;function o(i){if(i=Ln(i),i){const u=v.findKey(r,i);u&&(!n||So(r,r[u],u,n))&&(delete r[u],l=!0)}}return v.isArray(t)?t.forEach(o):o(t),l}clear(t){const n=Object.keys(this);let r=n.length,l=!1;for(;r--;){const o=n[r];(!t||So(this,this[o],o,t,!0))&&(delete this[o],l=!0)}return l}normalize(t){const n=this,r={};return v.forEach(this,(l,o)=>{const i=v.findKey(r,o);if(i){n[i]=Jr(l),delete n[o];return}const u=t?Em(o):String(o).trim();u!==o&&delete n[o],n[u]=Jr(l),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return v.forEach(this,(r,l)=>{r!=null&&r!==!1&&(n[l]=t&&v.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(l=>r.set(l)),r}static accessor(t){const r=(this[Is]=this[Is]={accessors:{}}).accessors,l=this.prototype;function o(i){const u=Ln(i);r[u]||(km(l,i),r[u]=!0)}return v.isArray(t)?t.forEach(o):o(t),this}}ve.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);v.reduceDescriptors(ve.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});v.freezeMethods(ve);function Eo(e,t){const n=this||mr,r=t||n,l=ve.from(r.headers);let o=r.data;return v.forEach(e,function(u){o=u.call(n,o,l.normalize(),t?t.status:void 0)}),l.normalize(),o}function Tf(e){return!!(e&&e.__CANCEL__)}function Sn(e,t,n){N.call(this,e??"canceled",N.ERR_CANCELED,t,n),this.name="CanceledError"}v.inherits(Sn,N,{__CANCEL__:!0});function Nf(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new N("Request failed with status code "+n.status,[N.ERR_BAD_REQUEST,N.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 Cm(e,t){e=e||10;const n=new Array(e),r=new Array(e);let l=0,o=0,i;return t=t!==void 0?t:1e3,function(s){const a=Date.now(),f=r[o];i||(i=a),n[l]=s,r[l]=a;let h=o,m=0;for(;h!==l;)m+=n[h++],h=h%e;if(l=(l+1)%e,l===o&&(o=(o+1)%e),a-ir)return l&&(clearTimeout(l),l=null),n=u,e.apply(null,arguments);l||(l=setTimeout(()=>(l=null,n=Date.now(),e.apply(null,arguments)),r-(u-n)))}}const wl=(e,t,n=3)=>{let r=0;const l=Cm(50,250);return _m(o=>{const i=o.loaded,u=o.lengthComputable?o.total:void 0,s=i-r,a=l(s),f=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&&f?(u-i)/a:void 0,event:o,lengthComputable:u!=null};h[t?"download":"upload"]=!0,e(h)},n)},Pm=Ie.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function l(o){let i=o;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=l(window.location.href),function(i){const u=v.isString(i)?l(i):i;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}(),Rm=Ie.hasStandardBrowserEnv?{write(e,t,n,r,l,o){const i=[e+"="+encodeURIComponent(t)];v.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),v.isString(r)&&i.push("path="+r),v.isString(l)&&i.push("domain="+l),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Tm(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Nm(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Of(e,t){return e&&!Tm(t)?Nm(e,t):t}const Bs=e=>e instanceof ve?{...e}:e;function Bt(e,t){t=t||{};const n={};function r(a,f,h){return v.isPlainObject(a)&&v.isPlainObject(f)?v.merge.call({caseless:h},a,f):v.isPlainObject(f)?v.merge({},f):v.isArray(f)?f.slice():f}function l(a,f,h){if(v.isUndefined(f)){if(!v.isUndefined(a))return r(void 0,a,h)}else return r(a,f,h)}function o(a,f){if(!v.isUndefined(f))return r(void 0,f)}function i(a,f){if(v.isUndefined(f)){if(!v.isUndefined(a))return r(void 0,a)}else return r(void 0,f)}function u(a,f,h){if(h in t)return r(a,f);if(h in e)return r(void 0,a)}const s={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:u,headers:(a,f)=>l(Bs(a),Bs(f),!0)};return v.forEach(Object.keys(Object.assign({},e,t)),function(f){const h=s[f]||l,m=h(e[f],t[f],f);v.isUndefined(m)&&h!==u||(n[f]=m)}),n}const Lf=e=>{const t=Bt({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:l,xsrfCookieName:o,headers:i,auth:u}=t;t.headers=i=ve.from(i),t.url=_f(Of(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(v.isFormData(n)){if(Ie.hasStandardBrowserEnv||Ie.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((s=i.getContentType())!==!1){const[a,...f]=s?s.split(";").map(h=>h.trim()).filter(Boolean):[];i.setContentType([a||"multipart/form-data",...f].join("; "))}}if(Ie.hasStandardBrowserEnv&&(r&&v.isFunction(r)&&(r=r(t)),r||r!==!1&&Pm(t.url))){const a=l&&o&&Rm.read(o);a&&i.set(l,a)}return t},Om=typeof XMLHttpRequest<"u",Lm=Om&&function(e){return new Promise(function(n,r){const l=Lf(e);let o=l.data;const i=ve.from(l.headers).normalize();let{responseType:u}=l,s;function a(){l.cancelToken&&l.cancelToken.unsubscribe(s),l.signal&&l.signal.removeEventListener("abort",s)}let f=new XMLHttpRequest;f.open(l.method.toUpperCase(),l.url,!0),f.timeout=l.timeout;function h(){if(!f)return;const w=ve.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),g={data:!u||u==="text"||u==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:w,config:e,request:f};Nf(function(d){n(d),a()},function(d){r(d),a()},g),f=null}"onloadend"in f?f.onloadend=h:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(h)},f.onabort=function(){f&&(r(new N("Request aborted",N.ECONNABORTED,l,f)),f=null)},f.onerror=function(){r(new N("Network Error",N.ERR_NETWORK,l,f)),f=null},f.ontimeout=function(){let y=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const g=l.transitional||Pf;l.timeoutErrorMessage&&(y=l.timeoutErrorMessage),r(new N(y,g.clarifyTimeoutError?N.ETIMEDOUT:N.ECONNABORTED,l,f)),f=null},o===void 0&&i.setContentType(null),"setRequestHeader"in f&&v.forEach(i.toJSON(),function(y,g){f.setRequestHeader(g,y)}),v.isUndefined(l.withCredentials)||(f.withCredentials=!!l.withCredentials),u&&u!=="json"&&(f.responseType=l.responseType),typeof l.onDownloadProgress=="function"&&f.addEventListener("progress",wl(l.onDownloadProgress,!0)),typeof l.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",wl(l.onUploadProgress)),(l.cancelToken||l.signal)&&(s=w=>{f&&(r(!w||w.type?new Sn(null,e,f):w),f.abort(),f=null)},l.cancelToken&&l.cancelToken.subscribe(s),l.signal&&(l.signal.aborted?s():l.signal.addEventListener("abort",s)));const m=xm(l.url);if(m&&Ie.protocols.indexOf(m)===-1){r(new N("Unsupported protocol "+m+":",N.ERR_BAD_REQUEST,e));return}f.send(o||null)})},zm=(e,t)=>{let n=new AbortController,r;const l=function(s){if(!r){r=!0,i();const a=s instanceof Error?s:this.reason;n.abort(a instanceof N?a:new Sn(a instanceof Error?a.message:a))}};let o=t&&setTimeout(()=>{l(new N(`timeout ${t} of ms exceeded`,N.ETIMEDOUT))},t);const i=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(s=>{s&&(s.removeEventListener?s.removeEventListener("abort",l):s.unsubscribe(l))}),e=null)};e.forEach(s=>s&&s.addEventListener&&s.addEventListener("abort",l));const{signal:u}=n;return u.unsubscribe=i,[u,()=>{o&&clearTimeout(o),o=null}]},Fm=function*(e,t){let n=e.byteLength;if(!t||n{const o=Am(e,t,l);let i=0;return new ReadableStream({type:"bytes",async pull(u){const{done:s,value:a}=await o.next();if(s){u.close(),r();return}let f=a.byteLength;n&&n(i+=f),u.enqueue(new Uint8Array(a))},cancel(u){return r(u),o.return()}},{highWaterMark:2})},$s=(e,t)=>{const n=e!=null;return r=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:r}))},$l=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",zf=$l&&typeof ReadableStream=="function",gi=$l&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Dm=zf&&(()=>{let e=!1;const t=new Request(Ie.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),Vs=64*1024,wi=zf&&!!(()=>{try{return v.isReadableStream(new Response("").body)}catch{}})(),Sl={stream:wi&&(e=>e.body)};$l&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Sl[t]&&(Sl[t]=v.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new N(`Response type '${t}' is not supported`,N.ERR_NOT_SUPPORT,r)})})})(new Response);const jm=async e=>{if(e==null)return 0;if(v.isBlob(e))return e.size;if(v.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(v.isArrayBufferView(e))return e.byteLength;if(v.isURLSearchParams(e)&&(e=e+""),v.isString(e))return(await gi(e)).byteLength},Mm=async(e,t)=>{const n=v.toFiniteNumber(e.getContentLength());return n??jm(t)},Um=$l&&(async e=>{let{url:t,method:n,data:r,signal:l,cancelToken:o,timeout:i,onDownloadProgress:u,onUploadProgress:s,responseType:a,headers:f,withCredentials:h="same-origin",fetchOptions:m}=Lf(e);a=a?(a+"").toLowerCase():"text";let[w,y]=l||o||i?zm([l,o],i):[],g,_;const d=()=>{!g&&setTimeout(()=>{w&&w.unsubscribe()}),g=!0};let c;try{if(s&&Dm&&n!=="get"&&n!=="head"&&(c=await Mm(f,r))!==0){let x=new Request(t,{method:"POST",body:r,duplex:"half"}),P;v.isFormData(r)&&(P=x.headers.get("content-type"))&&f.setContentType(P),x.body&&(r=Hs(x.body,Vs,$s(c,wl(s)),null,gi))}v.isString(h)||(h=h?"cors":"omit"),_=new Request(t,{...m,signal:w,method:n.toUpperCase(),headers:f.normalize().toJSON(),body:r,duplex:"half",withCredentials:h});let p=await fetch(_);const S=wi&&(a==="stream"||a==="response");if(wi&&(u||S)){const x={};["status","statusText","headers"].forEach(T=>{x[T]=p[T]});const P=v.toFiniteNumber(p.headers.get("content-length"));p=new Response(Hs(p.body,Vs,u&&$s(P,wl(u,!0)),S&&d,gi),x)}a=a||"text";let k=await Sl[v.findKey(Sl,a)||"text"](p,e);return!S&&d(),y&&y(),await new Promise((x,P)=>{Nf(x,P,{data:k,headers:ve.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:_})})}catch(p){throw d(),p&&p.name==="TypeError"&&/fetch/i.test(p.message)?Object.assign(new N("Network Error",N.ERR_NETWORK,e,_),{cause:p.cause||p}):N.from(p,p&&p.code,e,_)}}),Si={http:tm,xhr:Lm,fetch:Um};v.forEach(Si,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ws=e=>`- ${e}`,Im=e=>v.isFunction(e)||e===null||e===!1,Ff={getAdapter:e=>{e=v.isArray(e)?e:[e];const{length:t}=e;let n,r;const l={};for(let o=0;o`adapter ${u} `+(s===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : +`+o.map(Ws).join(` +`):" "+Ws(o[0]):"as no adapter specified";throw new N("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Si};function ko(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Sn(null,e)}function Qs(e){return ko(e),e.headers=ve.from(e.headers),e.data=Eo.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ff.getAdapter(e.adapter||mr.adapter)(e).then(function(r){return ko(e),r.data=Eo.call(e,e.transformResponse,r),r.headers=ve.from(r.headers),r},function(r){return Tf(r)||(ko(e),r&&r.response&&(r.response.data=Eo.call(e,e.transformResponse,r.response),r.response.headers=ve.from(r.response.headers))),Promise.reject(r)})}const Af="1.7.2",ku={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ku[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ks={};ku.transitional=function(t,n,r){function l(o,i){return"[Axios v"+Af+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,u)=>{if(t===!1)throw new N(l(i," has been removed"+(n?" in "+n:"")),N.ERR_DEPRECATED);return n&&!Ks[i]&&(Ks[i]=!0,console.warn(l(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,u):!0}};function Bm(e,t,n){if(typeof e!="object")throw new N("options must be an object",N.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let l=r.length;for(;l-- >0;){const o=r[l],i=t[o];if(i){const u=e[o],s=u===void 0||i(u,o,e);if(s!==!0)throw new N("option "+o+" must be "+s,N.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new N("Unknown option "+o,N.ERR_BAD_OPTION)}}const Ei={assertOptions:Bm,validators:ku},lt=Ei.validators;class At{constructor(t){this.defaults=t,this.interceptors={request:new Us,response:new Us}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let l;Error.captureStackTrace?Error.captureStackTrace(l={}):l=new Error;const o=l.stack?l.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Bt(this.defaults,n);const{transitional:r,paramsSerializer:l,headers:o}=n;r!==void 0&&Ei.assertOptions(r,{silentJSONParsing:lt.transitional(lt.boolean),forcedJSONParsing:lt.transitional(lt.boolean),clarifyTimeoutError:lt.transitional(lt.boolean)},!1),l!=null&&(v.isFunction(l)?n.paramsSerializer={serialize:l}:Ei.assertOptions(l,{encode:lt.function,serialize:lt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&v.merge(o.common,o[n.method]);o&&v.forEach(["delete","get","head","post","put","patch","common"],y=>{delete o[y]}),n.headers=ve.concat(i,o);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 f,h=0,m;if(!s){const y=[Qs.bind(this),void 0];for(y.unshift.apply(y,u),y.push.apply(y,a),m=y.length,f=Promise.resolve(n);h{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](l);r._listeners=null}),this.promise.then=l=>{let o;const i=new Promise(u=>{r.subscribe(u),o=u}).then(l);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,u){r.reason||(r.reason=new Sn(o,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)}static source(){let t;return{token:new xu(function(l){t=l}),cancel:t}}}function Hm(e){return function(n){return e.apply(null,n)}}function $m(e){return v.isObject(e)&&e.isAxiosError===!0}const ki={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(ki).forEach(([e,t])=>{ki[t]=e});function Df(e){const t=new At(e),n=pf(At.prototype.request,t);return v.extend(n,At.prototype,t,{allOwnKeys:!0}),v.extend(n,t,null,{allOwnKeys:!0}),n.create=function(l){return Df(Bt(e,l))},n}const X=Df(mr);X.Axios=At;X.CanceledError=Sn;X.CancelToken=xu;X.isCancel=Tf;X.VERSION=Af;X.toFormData=Hl;X.AxiosError=N;X.Cancel=X.CanceledError;X.all=function(t){return Promise.all(t)};X.spread=Hm;X.isAxiosError=$m;X.mergeConfig=Bt;X.AxiosHeaders=ve;X.formToJSON=e=>Rf(v.isHTMLForm(e)?new FormData(e):e);X.getAdapter=Ff.getAdapter;X.HttpStatusCode=ki;X.default=X;const Vm={getProducts:async()=>{try{return(await X.get("/api/products")).data}catch(e){return console.error("Fehler beim Abrufen der Produkte:",e),[]}},addProducts:async(e,t)=>{try{return(await X.post("/api/products",{title:e,amount:t})).data}catch(n){return console.error("Fehler beim Hinzufügen der Produkte:",n),null}}},Wm=({setProducts:e})=>{const[t,n]=q.useState(""),r=()=>{if(t.trim()!==""){const l={title:t,int:0};e(o=>[...o,l]),n("")}};return Pe.jsxs("div",{className:"inputForm",children:[Pe.jsx("input",{type:"text",value:t,onChange:l=>n(l.target.value),autoFocus:!0,placeholder:"Add a Task"}),Pe.jsx("button",{onClick:r,children:"Add Product"})]})},Qm=()=>{const[,e]=q.useState([]);return q.useEffect(()=>{(async()=>{const n=await Vm.getProducts();e(n)})()},[]),Pe.jsx("div",{children:Pe.jsx(Wm,{setProducts:e})})};function Km(){return Pe.jsxs(Pe.Fragment,{children:[Pe.jsx("h1",{children:"MyWebShop"}),Pe.jsx(Qm,{})]})}/** + * @remix-run/router v1.16.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function El(){return El=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Jm(){return Math.random().toString(36).substr(2,8)}function Js(e,t){return{usr:e.state,key:e.key,idx:t}}function xi(e,t,n,r){return n===void 0&&(n=null),El({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Uf(t):t,{state:n,key:t&&t.key||r||Jm()})}function Mf(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Uf(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Ym(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:o=!1}=r,i=l.history,u=Lt.Pop,s=null,a=f();a==null&&(a=0,i.replaceState(El({},i.state,{idx:a}),""));function f(){return(i.state||{idx:null}).idx}function h(){u=Lt.Pop;let _=f(),d=_==null?null:_-a;a=_,s&&s({action:u,location:g.location,delta:d})}function m(_,d){u=Lt.Push;let c=xi(g.location,_,d);a=f()+1;let p=Js(c,a),S=g.createHref(c);try{i.pushState(p,"",S)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;l.location.assign(S)}o&&s&&s({action:u,location:g.location,delta:1})}function w(_,d){u=Lt.Replace;let c=xi(g.location,_,d);a=f();let p=Js(c,a),S=g.createHref(c);i.replaceState(p,"",S),o&&s&&s({action:u,location:g.location,delta:0})}function y(_){let d=l.location.origin!=="null"?l.location.origin:l.location.href,c=typeof _=="string"?_:Mf(_);return c=c.replace(/ $/,"%20"),jf(d,"No window.location.(origin|href) available to create URL for href: "+c),new URL(c,d)}let g={get action(){return u},get location(){return e(l,i)},listen(_){if(s)throw new Error("A history only accepts one active listener");return l.addEventListener(Xs,h),s=_,()=>{l.removeEventListener(Xs,h),s=null}},createHref(_){return t(l,_)},createURL:y,encodeLocation(_){let d=y(_);return{pathname:d.pathname,search:d.search,hash:d.hash}},push:m,replace:w,go(_){return i.go(_)}};return g}var Ys;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ys||(Ys={}));function qm(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const If=["post","put","patch","delete"];new Set(If);const Gm=["get",...If];new Set(Gm);/** + * React Router v6.23.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Ci(){return Ci=Object.assign?Object.assign.bind():function(e){for(var t=1;t({basename:s,navigator:o,static:i,future:Ci({v7_relativeSplatPath:!1},u)}),[s,u,o,i]);typeof r=="string"&&(r=Uf(r));let{pathname:f="/",search:h="",hash:m="",state:w=null,key:y="default"}=r,g=q.useMemo(()=>{let _=qm(f,s);return _==null?null:{location:{pathname:_,search:h,hash:m,state:w,key:y},navigationType:l}},[s,f,h,m,w,y,l]);return g==null?null:q.createElement(Zm.Provider,{value:a},q.createElement(Bf.Provider,{children:n,value:g}))}new Promise(()=>{});/** + * React Router DOM v6.23.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */const ty="6";try{window.__reactRouterVersion=ty}catch{}const ny="startTransition",qs=od[ny];function ry(e){let{basename:t,children:n,future:r,window:l}=e,o=q.useRef();o.current==null&&(o.current=Xm({window:l,v5Compat:!0}));let i=o.current,[u,s]=q.useState({action:i.action,location:i.location}),{v7_startTransition:a}=r||{},f=q.useCallback(h=>{a&&qs?qs(()=>s(h)):s(h)},[s,a]);return q.useLayoutEffect(()=>i.listen(f),[i,f]),q.createElement(ey,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:i,future:r})}var Gs;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Gs||(Gs={}));var Zs;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Zs||(Zs={}));xo.createRoot(document.getElementById("root")).render(Pe.jsxs(ry,{children:[Pe.jsx(aa.StrictMode,{children:Pe.jsx(Km,{})}),","]})); diff --git a/backend/src/main/resources/static/assets/index-DiwrgTda.css b/backend/src/main/resources/static/assets/index-DiwrgTda.css new file mode 100644 index 0000000..7704ff6 --- /dev/null +++ b/backend/src/main/resources/static/assets/index-DiwrgTda.css @@ -0,0 +1 @@ +#root{max-width:1280px;margin:0 auto;padding:2rem;text-align:center}.logo{height:6em;padding:1.5em;will-change:filter;transition:filter .3s}.logo:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.react:hover{filter:drop-shadow(0 0 2em #61dafbaa)}@keyframes logo-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (prefers-reduced-motion: no-preference){a:nth-of-type(2) .logo{animation:logo-spin infinite 20s linear}}.card{padding:2em}.read-the-docs{color:#888}:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}} diff --git a/backend/src/main/resources/static/index.html b/backend/src/main/resources/static/index.html new file mode 100644 index 0000000..5d4f9c2 --- /dev/null +++ b/backend/src/main/resources/static/index.html @@ -0,0 +1,14 @@ + + + + + + + Vite + React + TS + + + + +
+ + diff --git a/backend/src/main/resources/static/vite.svg b/backend/src/main/resources/static/vite.svg new file mode 100644 index 0000000..e7b8dfb --- /dev/null +++ b/backend/src/main/resources/static/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index afe48ac..7740dea 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -1,35 +1,20 @@ -import { useState } from 'react' -import reactLogo from './assets/react.svg' -import viteLogo from '/vite.svg' import './App.css' +import ProductList from "./components/ProductList.tsx"; + + + function App() { - const [count, setCount] = useState(0) - - return ( - <> - -

Vite + React

-
- -

- Edit src/App.tsx and save to test HMR -

-
-

- Click on the Vite and React logos to learn more -

- - ) + + + return ( + <> +

MyWebShop

+ + + + + ) } export default App diff --git a/frontend/src/ProductService.ts b/frontend/src/ProductService.ts new file mode 100644 index 0000000..e814abc --- /dev/null +++ b/frontend/src/ProductService.ts @@ -0,0 +1,32 @@ +import axios from "axios"; +import { ProductTypes } from './product'; + + + +const ProductService = { + + // Get Products + + getProducts: async (): Promise => { + try { + const response = await axios.get(`/api/products`); + return response.data; + } catch (error) { + console.error('Fehler beim Abrufen der Produkte:', error); + return []; + } + }, + + // Add Products + addProducts: async (title: string, amount: number): Promise => { + try { + const response = await axios.post(`/api/products`, { title, amount }); + return response.data; + } catch (error) { + console.error('Fehler beim Hinzufügen der Produkte:', error); + return null; + } + }, +}; + +export default ProductService; diff --git a/frontend/src/components/ProductForm.tsx b/frontend/src/components/ProductForm.tsx new file mode 100644 index 0000000..94a3680 --- /dev/null +++ b/frontend/src/components/ProductForm.tsx @@ -0,0 +1,34 @@ +import React, {useState} from "react"; + + + + +interface PropTypes{ + setProducts:any; +} +const ProductForm: React.FC = ({ setProducts }) => { + const [newProductText, setNewProductText] = useState(""); + + const handleAddTodo = () => { + if (newProductText.trim() !== "") { + const newProduct = {title: newProductText, int: 0}; // Ein einfaches Todo-Objekt erstellen + setProducts((prevProduct: any) => [...prevProduct, newProduct]); // Das neue Todo der Liste hinzufügen + setNewProductText(""); // Den Eingabetext zurücksetzen + } + }; + + return ( +
+ setNewProductText(e.target.value)} + autoFocus={true} + placeholder="Add a Task" + /> + +
+ ) +} + +export default ProductForm \ No newline at end of file diff --git a/frontend/src/components/ProductList.tsx b/frontend/src/components/ProductList.tsx new file mode 100644 index 0000000..7be1eae --- /dev/null +++ b/frontend/src/components/ProductList.tsx @@ -0,0 +1,24 @@ +import { useState, useEffect } from 'react'; +import ProductService from "../ProductService"; +import { ProductTypes } from "../product"; +import ProductForm from "./ProductForm"; + +const ProductList = () => { + const [, setProducts] = useState([]); + + useEffect(() => { + const fetchProducts = async () => { + const fetchedProducts = await ProductService.getProducts(); + setProducts(fetchedProducts); + }; + fetchProducts(); + }, []); + + return ( +
+ +
+ ); +}; + +export default ProductList; diff --git a/frontend/src/main.tsx b/frontend/src/main.tsx index 3d7150d..79259a3 100644 --- a/frontend/src/main.tsx +++ b/frontend/src/main.tsx @@ -2,9 +2,17 @@ import React from 'react' import ReactDOM from 'react-dom/client' import App from './App.tsx' import './index.css' +import {BrowserRouter} from "react-router-dom"; ReactDOM.createRoot(document.getElementById('root')!).render( - - - , + + + + + , + + + + + )