diff --git a/copilot-widget/lib/contexts/messageHandler.tsx b/copilot-widget/lib/contexts/messageHandler.tsx index 5228e0b34..7f92d898a 100644 --- a/copilot-widget/lib/contexts/messageHandler.tsx +++ b/copilot-widget/lib/contexts/messageHandler.tsx @@ -29,6 +29,10 @@ export type ComponentType
= { key: string; data?: DT; }; +export type HandoffPayloadType = { + summery: string; + sentiment: "happy" | "angry" | "neutral"; +}; // sometimes it will be an empty object export type State = { currentUserMessage: null | UserMessageType; @@ -180,6 +184,21 @@ export class ChatController { socket.emit("send_chat", userMessage); }; + internalHandleHandoff = (payload: HandoffPayloadType) => { + // handle handoff + const id = this.genId(); + this.setValueImmer((draft) => { + const message = { + from: "bot", + type: "HANDOFF", + id: id, + responseFor: id, + timestamp: this.getTimeStamp(), + data: payload, + } as BotMessageType; + draft.messages.push(message); + }); + }; // Called for every character recived from the bot appendToCurrentBotMessage = (message: string) => { const currentUserMessage = this.state.currentUserMessage; @@ -370,6 +389,28 @@ export class ChatController { }; }; + socketHandoffHandler = ( + socket: Socket, + externalCallback?: (payload: HandoffPayloadType) => void + ) => { + const sessionId = this.sessionId; + if (!sessionId) { + return; + } + + const handle = (msg: string) => { + const parsedResponse = JSON.parse(msg) as HandoffPayloadType; + externalCallback?.(parsedResponse); + this.internalHandleHandoff(parsedResponse); + }; + + socket.on(`${sessionId}_handoff`, handle); + + return () => { + socket.off(`${sessionId}_handoff`, handle); + }; + }; + private startTimeout = (callback: () => void) => { this.clearTimeout(); timeout = setTimeout(() => { diff --git a/copilot-widget/lib/contexts/statefulMessageHandler.tsx b/copilot-widget/lib/contexts/statefulMessageHandler.tsx index 6fc2a52bb..93d3c0edf 100644 --- a/copilot-widget/lib/contexts/statefulMessageHandler.tsx +++ b/copilot-widget/lib/contexts/statefulMessageHandler.tsx @@ -13,13 +13,15 @@ const [useMessageHandler, MessageHandlerSafeProvider] = createSafeContext<{ }>(); function MessageHandlerProvider(props: { children: React.ReactNode }) { - const { token, components } = useConfigData(); + const { token, components, onHandoff } = useConfigData(); const { sessionId } = useSessionId(token); const { __socket } = useSocket(); + const __components = useMemo( () => new ComponentRegistery({ components }), [components] ); + const handler = useMemo(() => new ChatController(sessionId), [sessionId]); useEffect(() => { @@ -38,6 +40,10 @@ function MessageHandlerProvider(props: { children: React.ReactNode }) { return handler.socketUiHandler(__socket); }, [__socket, handler]); + useEffect(() => { + return handler.socketHandoffHandler(__socket, onHandoff); + }, [__socket, handler, onHandoff]); + return (
- { - // If there are initial messages, show them. - initialMessage && - } + {initialMessage && } { diff --git a/copilot-widget/lib/types/options.ts b/copilot-widget/lib/types/options.ts index f3065d9ec..ae5570e99 100644 --- a/copilot-widget/lib/types/options.ts +++ b/copilot-widget/lib/types/options.ts @@ -1,4 +1,5 @@ import { ComponentType } from "@lib/contexts/componentRegistery"; +import { HandoffPayloadType } from "@lib/contexts/messageHandler"; import type { LangType } from "@lib/locales"; export type Options = { @@ -14,6 +15,7 @@ export type Options = { language?: LangType; warnBeforeClose?: boolean; onClose?: () => void; + onHandoff?: (handout: HandoffPayloadType) => void; containerProps?: React.DetailedHTMLProps< React.HTMLAttributes, HTMLDivElement diff --git a/copilot-widget/package.json b/copilot-widget/package.json index 1372af253..51c1f7017 100644 --- a/copilot-widget/package.json +++ b/copilot-widget/package.json @@ -1,7 +1,7 @@ { "name": "@openchatai/copilot-widget", "private": false, - "version": "2.8.5", + "version": "2.8.6", "type": "module", "scripts": { "dev": "vite", diff --git a/dashboard/package.json b/dashboard/package.json index d95a47ba2..757628d20 100644 --- a/dashboard/package.json +++ b/dashboard/package.json @@ -13,7 +13,7 @@ "dependencies": { "@hookform/resolvers": "^3.3.1", "@kbox-labs/react-echarts": "^1.0.3", - "@openchatai/copilot-widget": "^2.8.5", + "@openchatai/copilot-widget": "^2.8.6", "@radix-ui/react-accordion": "^1.1.2", "@radix-ui/react-alert-dialog": "^1.0.5", "@radix-ui/react-avatar": "^1.0.4", diff --git a/dashboard/pnpm-lock.yaml b/dashboard/pnpm-lock.yaml index 1169816ad..027b38632 100644 --- a/dashboard/pnpm-lock.yaml +++ b/dashboard/pnpm-lock.yaml @@ -12,8 +12,8 @@ dependencies: specifier: ^1.0.3 version: 1.0.3(echarts@5.4.3)(react@18.2.0) '@openchatai/copilot-widget': - specifier: ^2.8.5 - version: 2.8.5(react@18.2.0) + specifier: ^2.8.6 + version: 2.8.6(react@18.2.0) '@radix-ui/react-accordion': specifier: ^1.1.2 version: 1.1.2(@types/react-dom@18.2.13)(@types/react@18.2.28)(react-dom@18.2.0)(react@18.2.0) @@ -706,8 +706,8 @@ packages: '@nodelib/fs.scandir': 2.1.5 fastq: 1.15.0 - /@openchatai/copilot-widget@2.8.5(react@18.2.0): - resolution: {integrity: sha512-d+HFsb3FFx5Jse5XZkNghIWMvJZMeBO6t2wriI9WmEkDOis8IIrsQtVQYAOj7IqiQEEBtCjbG5xteuw5D82LfQ==} + /@openchatai/copilot-widget@2.8.6(react@18.2.0): + resolution: {integrity: sha512-ZmsjmnjP7MWuscYNBoclXg8356keFaBcFENjhSUo6PRH34x2yLIoQ7NsxPakcx+Th+vKtqbm2CAl3fLX0AbTbA==} peerDependencies: react: ^18.x dependencies: diff --git a/dashboard/public/pilot.js b/dashboard/public/pilot.js index 4c59c8233..5b1f3f1e4 100644 --- a/dashboard/public/pilot.js +++ b/dashboard/public/pilot.js @@ -1,4 +1,4 @@ -var EI=Object.defineProperty;var CI=(e,t,n)=>t in e?EI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Qe=(e,t,n)=>(CI(e,typeof t!="symbol"?t+"":t,n),n);function TI(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Rl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function He(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mE={exports:{}},pp={},gE={exports:{}},Pe={};/** +var _I=Object.defineProperty;var CI=(e,t,n)=>t in e?_I(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ge=(e,t,n)=>(CI(e,typeof t!="symbol"?t+"":t,n),n);function TI(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Rl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function He(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var m_={exports:{}},pp={},g_={exports:{}},Pe={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var EI=Object.defineProperty;var CI=(e,t,n)=>t in e?EI(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Gu=Symbol.for("react.element"),AI=Symbol.for("react.portal"),OI=Symbol.for("react.fragment"),PI=Symbol.for("react.strict_mode"),RI=Symbol.for("react.profiler"),NI=Symbol.for("react.provider"),II=Symbol.for("react.context"),DI=Symbol.for("react.forward_ref"),FI=Symbol.for("react.suspense"),jI=Symbol.for("react.memo"),MI=Symbol.for("react.lazy"),Sb=Symbol.iterator;function LI(e){return e===null||typeof e!="object"?null:(e=Sb&&e[Sb]||e["@@iterator"],typeof e=="function"?e:null)}var yE={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},vE=Object.assign,wE={};function Pa(e,t,n){this.props=e,this.context=t,this.refs=wE,this.updater=n||yE}Pa.prototype.isReactComponent={};Pa.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")};Pa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function bE(){}bE.prototype=Pa.prototype;function P0(e,t,n){this.props=e,this.context=t,this.refs=wE,this.updater=n||yE}var R0=P0.prototype=new bE;R0.constructor=P0;vE(R0,Pa.prototype);R0.isPureReactComponent=!0;var $b=Array.isArray,xE=Object.prototype.hasOwnProperty,N0={current:null},SE={key:!0,ref:!0,__self:!0,__source:!0};function $E(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)xE.call(t,r)&&!SE.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1t in e?EI(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var WI=O,qI=Symbol.for("react.element"),KI=Symbol.for("react.fragment"),GI=Object.prototype.hasOwnProperty,YI=WI.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,XI={key:!0,ref:!0,__self:!0,__source:!0};function kE(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)GI.call(t,r)&&!XI.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:qI,type:e,key:o,ref:s,props:i,_owner:YI.current}}pp.Fragment=KI;pp.jsx=kE;pp.jsxs=kE;mE.exports=pp;var S=mE.exports,_E={exports:{}},er={},EE={exports:{}},CE={};/** + */var WI=O,qI=Symbol.for("react.element"),KI=Symbol.for("react.fragment"),GI=Object.prototype.hasOwnProperty,YI=WI.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,XI={key:!0,ref:!0,__self:!0,__source:!0};function k_(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)GI.call(t,r)&&!XI.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:qI,type:e,key:o,ref:s,props:i,_owner:YI.current}}pp.Fragment=KI;pp.jsx=k_;pp.jsxs=k_;m_.exports=pp;var S=m_.exports,E_={exports:{}},er={},__={exports:{}},C_={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var EI=Object.defineProperty;var CI=(e,t,n)=>t in e?EI(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(V,q){var E=V.length;V.push(q);e:for(;0>>1,z=V[I];if(0>>1;I<_;){var C=2*(I+1)-1,R=V[C],L=C+1,Z=V[L];if(0>i(R,E))Li(Z,R)?(V[I]=Z,V[L]=E,I=L):(V[I]=R,V[C]=E,I=C);else if(Li(Z,E))V[I]=Z,V[L]=E,I=L;else break e}}return q}function i(V,q){var E=V.sortIndex-q.sortIndex;return E!==0?E:V.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,f=null,p=3,d=!1,h=!1,g=!1,y=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(V){for(var q=n(u);q!==null;){if(q.callback===null)r(u);else if(q.startTime<=V)r(u),q.sortIndex=q.expirationTime,t(l,q);else break;q=n(u)}}function x(V){if(g=!1,w(V),!h)if(n(l)!==null)h=!0,ne($);else{var q=n(u);q!==null&&te(x,q.startTime-V)}}function $(V,q){h=!1,g&&(g=!1,m(T),T=-1),d=!0;var E=p;try{for(w(q),f=n(l);f!==null&&(!(f.expirationTime>q)||V&&!M());){var I=f.callback;if(typeof I=="function"){f.callback=null,p=f.priorityLevel;var z=I(f.expirationTime<=q);q=e.unstable_now(),typeof z=="function"?f.callback=z:f===n(l)&&r(l),w(q)}else r(l);f=n(l)}if(f!==null)var _=!0;else{var C=n(u);C!==null&&te(x,C.startTime-q),_=!1}return _}finally{f=null,p=E,d=!1}}var b=!1,k=null,T=-1,N=5,A=-1;function M(){return!(e.unstable_now()-AV||125I?(V.sortIndex=E,t(u,V),n(l)===null&&V===n(u)&&(g?(m(T),T=-1):g=!0,te(x,E-I))):(V.sortIndex=z,t(l,V),h||d||(h=!0,ne($))),V},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(V){var q=p;return function(){var E=p;p=q;try{return V.apply(this,arguments)}finally{p=E}}}})(CE);EE.exports=CE;var QI=EE.exports;/** + */(function(e){function t(V,q){var _=V.length;V.push(q);e:for(;0<_;){var I=_-1>>>1,z=V[I];if(0>>1;Ii(R,_))Li(Z,R)?(V[I]=Z,V[L]=_,I=L):(V[I]=R,V[C]=_,I=C);else if(Li(Z,_))V[I]=Z,V[L]=_,I=L;else break e}}return q}function i(V,q){var _=V.sortIndex-q.sortIndex;return _!==0?_:V.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,f=null,p=3,d=!1,h=!1,g=!1,y=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(V){for(var q=n(u);q!==null;){if(q.callback===null)r(u);else if(q.startTime<=V)r(u),q.sortIndex=q.expirationTime,t(l,q);else break;q=n(u)}}function x(V){if(g=!1,w(V),!h)if(n(l)!==null)h=!0,ne($);else{var q=n(u);q!==null&&te(x,q.startTime-V)}}function $(V,q){h=!1,g&&(g=!1,m(T),T=-1),d=!0;var _=p;try{for(w(q),f=n(l);f!==null&&(!(f.expirationTime>q)||V&&!M());){var I=f.callback;if(typeof I=="function"){f.callback=null,p=f.priorityLevel;var z=I(f.expirationTime<=q);q=e.unstable_now(),typeof z=="function"?f.callback=z:f===n(l)&&r(l),w(q)}else r(l);f=n(l)}if(f!==null)var E=!0;else{var C=n(u);C!==null&&te(x,C.startTime-q),E=!1}return E}finally{f=null,p=_,d=!1}}var b=!1,k=null,T=-1,N=5,A=-1;function M(){return!(e.unstable_now()-AV||125I?(V.sortIndex=_,t(u,V),n(l)===null&&V===n(u)&&(g?(m(T),T=-1):g=!0,te(x,_-I))):(V.sortIndex=z,t(l,V),h||d||(h=!0,ne($))),V},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(V){var q=p;return function(){var _=p;p=q;try{return V.apply(this,arguments)}finally{p=_}}}})(C_);__.exports=C_;var QI=__.exports;/** * @license React * react-dom.production.min.js * @@ -30,19 +30,19 @@ var EI=Object.defineProperty;var CI=(e,t,n)=>t in e?EI(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var TE=O,Qn=QI;function X(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"),yg=Object.prototype.hasOwnProperty,JI=/^[: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]*$/,_b={},Eb={};function ZI(e){return yg.call(Eb,e)?!0:yg.call(_b,e)?!1:JI.test(e)?Eb[e]=!0:(_b[e]=!0,!1)}function eD(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 tD(e,t,n,r){if(t===null||typeof t>"u"||eD(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 yn(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Yt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Yt[e]=new yn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Yt[t]=new yn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Yt[e]=new yn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Yt[e]=new yn(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){Yt[e]=new yn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Yt[e]=new yn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Yt[e]=new yn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Yt[e]=new yn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Yt[e]=new yn(e,5,!1,e.toLowerCase(),null,!1,!1)});var D0=/[\-:]([a-z])/g;function F0(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(D0,F0);Yt[t]=new yn(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(D0,F0);Yt[t]=new yn(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(D0,F0);Yt[t]=new yn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Yt[e]=new yn(e,1,!1,e.toLowerCase(),null,!1,!1)});Yt.xlinkHref=new yn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Yt[e]=new yn(e,1,!1,e.toLowerCase(),null,!0,!0)});function j0(e,t,n,r){var i=Yt.hasOwnProperty(t)?Yt[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gg=Object.prototype.hasOwnProperty,JI=/^[: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]*$/,Eb={},_b={};function ZI(e){return gg.call(_b,e)?!0:gg.call(Eb,e)?!1:JI.test(e)?_b[e]=!0:(Eb[e]=!0,!1)}function eD(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 tD(e,t,n,r){if(t===null||typeof t>"u"||eD(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 yn(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Yt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Yt[e]=new yn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Yt[t]=new yn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Yt[e]=new yn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Yt[e]=new yn(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){Yt[e]=new yn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Yt[e]=new yn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Yt[e]=new yn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Yt[e]=new yn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Yt[e]=new yn(e,5,!1,e.toLowerCase(),null,!1,!1)});var I0=/[\-:]([a-z])/g;function D0(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(I0,D0);Yt[t]=new yn(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(I0,D0);Yt[t]=new yn(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(I0,D0);Yt[t]=new yn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Yt[e]=new yn(e,1,!1,e.toLowerCase(),null,!1,!1)});Yt.xlinkHref=new yn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Yt[e]=new yn(e,1,!1,e.toLowerCase(),null,!0,!0)});function F0(e,t,n,r){var i=Yt.hasOwnProperty(t)?Yt[t]:null;(i!==null?i.type!==0:r||!(2a||i[s]!==o[a]){var l=` -`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{zh=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Nl(e):""}function nD(e){switch(e.tag){case 5:return Nl(e.type);case 16:return Nl("Lazy");case 13:return Nl("Suspense");case 19:return Nl("SuspenseList");case 0:case 2:case 15:return e=Bh(e.type,!1),e;case 11:return e=Bh(e.type.render,!1),e;case 1:return e=Bh(e.type,!0),e;default:return""}}function xg(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 Hs:return"Fragment";case Vs:return"Portal";case vg:return"Profiler";case M0:return"StrictMode";case wg:return"Suspense";case bg:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case PE:return(e.displayName||"Context")+".Consumer";case OE:return(e._context.displayName||"Context")+".Provider";case L0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case z0:return t=e.displayName||null,t!==null?t:xg(e.type)||"Memo";case ro:t=e._payload,e=e._init;try{return xg(e(t))}catch{}}return null}function rD(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 xg(t);case 8:return t===M0?"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 _o(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function NE(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function iD(e){var t=NE(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Rc(e){e._valueTracker||(e._valueTracker=iD(e))}function IE(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=NE(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ad(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 Sg(e,t){var n=t.checked;return wt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Tb(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=_o(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 DE(e,t){t=t.checked,t!=null&&j0(e,"checked",t,!1)}function $g(e,t){DE(e,t);var n=_o(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")?kg(e,t.type,n):t.hasOwnProperty("defaultValue")&&kg(e,t.type,_o(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ab(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 kg(e,t,n){(t!=="number"||ad(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Il=Array.isArray;function na(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Nc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function cu(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Vl={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},oD=["Webkit","ms","Moz","O"];Object.keys(Vl).forEach(function(e){oD.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Vl[t]=Vl[e]})});function LE(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Vl.hasOwnProperty(e)&&Vl[e]?(""+t).trim():t+"px"}function zE(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=LE(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var sD=wt({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 Cg(e,t){if(t){if(sD[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(X(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(X(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(X(61))}if(t.style!=null&&typeof t.style!="object")throw Error(X(62))}}function Tg(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 Ag=null;function B0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Og=null,ra=null,ia=null;function Rb(e){if(e=Qu(e)){if(typeof Og!="function")throw Error(X(280));var t=e.stateNode;t&&(t=vp(t),Og(e.stateNode,e.type,t))}}function BE(e){ra?ia?ia.push(e):ia=[e]:ra=e}function UE(){if(ra){var e=ra,t=ia;if(ia=ra=null,Rb(e),t)for(e=0;e>>=0,e===0?32:31-(yD(e)/vD|0)|0}var Ic=64,Dc=4194304;function Dl(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 fd(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=Dl(a):(o&=s,o!==0&&(r=Dl(o)))}else s=n&~i,s!==0?r=Dl(s):o!==0&&(r=Dl(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===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 Yu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-jr(t),e[t]=n}function SD(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=Wl),Bb=String.fromCharCode(32),Ub=!1;function lC(e,t){switch(e){case"keyup":return XD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ws=!1;function JD(e,t){switch(e){case"compositionend":return uC(t);case"keypress":return t.which!==32?null:(Ub=!0,Bb);case"textInput":return e=t.data,e===Bb&&Ub?null:e;default:return null}}function ZD(e,t){if(Ws)return e==="compositionend"||!Y0&&lC(e,t)?(e=sC(),$f=q0=ao=null,Ws=!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=qb(n)}}function pC(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pC(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hC(){for(var e=window,t=ad();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ad(e.document)}return t}function X0(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 lF(e){var t=hC(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&pC(n.ownerDocument.documentElement,n)){if(r!==null&&X0(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 i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Kb(n,o);var s=Kb(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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,qs=null,Fg=null,Kl=null,jg=!1;function Gb(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;jg||qs==null||qs!==ad(r)||(r=qs,"selectionStart"in r&&X0(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}),Kl&&gu(Kl,r)||(Kl=r,r=hd(Fg,"onSelect"),0Ys||(e.current=Vg[Ys],Vg[Ys]=null,Ys--)}function ot(e,t){Ys++,Vg[Ys]=e.current,e.current=t}var Eo={},sn=No(Eo),On=No(!1),us=Eo;function pa(e,t){var n=e.type.contextTypes;if(!n)return Eo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Pn(e){return e=e.childContextTypes,e!=null}function gd(){dt(On),dt(sn)}function tx(e,t,n){if(sn.current!==Eo)throw Error(X(168));ot(sn,t),ot(On,n)}function $C(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(X(108,rD(e)||"Unknown",i));return wt({},n,r)}function yd(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Eo,us=sn.current,ot(sn,e),ot(On,On.current),!0}function nx(e,t,n){var r=e.stateNode;if(!r)throw Error(X(169));n?(e=$C(e,t,us),r.__reactInternalMemoizedMergedChildContext=e,dt(On),dt(sn),ot(sn,e)):dt(On),ot(On,n)}var yi=null,wp=!1,tm=!1;function kC(e){yi===null?yi=[e]:yi.push(e)}function bF(e){wp=!0,kC(e)}function Io(){if(!tm&&yi!==null){tm=!0;var e=0,t=Ye;try{var n=yi;for(Ye=1;e>=s,i-=s,bi=1<<32-jr(t)+i|n<T?(N=k,k=null):N=k.sibling;var A=p(m,k,w[T],x);if(A===null){k===null&&(k=N);break}e&&k&&A.alternate===null&&t(m,k),v=o(A,v,T),b===null?$=A:b.sibling=A,b=A,k=N}if(T===w.length)return n(m,k),mt&&Uo(m,T),$;if(k===null){for(;TT?(N=k,k=null):N=k.sibling;var M=p(m,k,A.value,x);if(M===null){k===null&&(k=N);break}e&&k&&M.alternate===null&&t(m,k),v=o(M,v,T),b===null?$=M:b.sibling=M,b=M,k=N}if(A.done)return n(m,k),mt&&Uo(m,T),$;if(k===null){for(;!A.done;T++,A=w.next())A=f(m,A.value,x),A!==null&&(v=o(A,v,T),b===null?$=A:b.sibling=A,b=A);return mt&&Uo(m,T),$}for(k=r(m,k);!A.done;T++,A=w.next())A=d(k,m,T,A.value,x),A!==null&&(e&&A.alternate!==null&&k.delete(A.key===null?T:A.key),v=o(A,v,T),b===null?$=A:b.sibling=A,b=A);return e&&k.forEach(function(F){return t(m,F)}),mt&&Uo(m,T),$}function y(m,v,w,x){if(typeof w=="object"&&w!==null&&w.type===Hs&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Pc:e:{for(var $=w.key,b=v;b!==null;){if(b.key===$){if($=w.type,$===Hs){if(b.tag===7){n(m,b.sibling),v=i(b,w.props.children),v.return=m,m=v;break e}}else if(b.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===ro&&ux($)===b.type){n(m,b.sibling),v=i(b,w.props),v.ref=gl(m,b,w),v.return=m,m=v;break e}n(m,b);break}else t(m,b);b=b.sibling}w.type===Hs?(v=ls(w.props.children,m.mode,x,w.key),v.return=m,m=v):(x=Pf(w.type,w.key,w.props,null,m.mode,x),x.ref=gl(m,v,w),x.return=m,m=x)}return s(m);case Vs:e:{for(b=w.key;v!==null;){if(v.key===b)if(v.tag===4&&v.stateNode.containerInfo===w.containerInfo&&v.stateNode.implementation===w.implementation){n(m,v.sibling),v=i(v,w.children||[]),v.return=m,m=v;break e}else{n(m,v);break}else t(m,v);v=v.sibling}v=um(w,m.mode,x),v.return=m,m=v}return s(m);case ro:return b=w._init,y(m,v,b(w._payload),x)}if(Il(w))return h(m,v,w,x);if(fl(w))return g(m,v,w,x);Uc(m,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,v!==null&&v.tag===6?(n(m,v.sibling),v=i(v,w),v.return=m,m=v):(n(m,v),v=lm(w,m.mode,x),v.return=m,m=v),s(m)):n(m,v)}return y}var ma=RC(!0),NC=RC(!1),Ju={},oi=No(Ju),bu=No(Ju),xu=No(Ju);function rs(e){if(e===Ju)throw Error(X(174));return e}function ov(e,t){switch(ot(xu,t),ot(bu,e),ot(oi,Ju),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Eg(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Eg(t,e)}dt(oi),ot(oi,t)}function ga(){dt(oi),dt(bu),dt(xu)}function IC(e){rs(xu.current);var t=rs(oi.current),n=Eg(t,e.type);t!==n&&(ot(bu,e),ot(oi,n))}function sv(e){bu.current===e&&(dt(oi),dt(bu))}var gt=No(0);function $d(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var nm=[];function av(){for(var e=0;en?n:4,e(!0);var r=rm.transition;rm.transition={};try{e(!1),t()}finally{Ye=n,rm.transition=r}}function XC(){return yr().memoizedState}function kF(e,t,n){var r=xo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},QC(e))JC(t,n);else if(n=TC(e,t,n,r),n!==null){var i=mn();Mr(n,e,r,i),ZC(n,t,r)}}function _F(e,t,n){var r=xo(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(QC(e))JC(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,Br(a,s)){var l=t.interleaved;l===null?(i.next=i,rv(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=TC(e,t,i,r),n!==null&&(i=mn(),Mr(n,e,r,i),ZC(n,t,r))}}function QC(e){var t=e.alternate;return e===vt||t!==null&&t===vt}function JC(e,t){Gl=kd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ZC(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,V0(e,n)}}var _d={readContext:gr,useCallback:Zt,useContext:Zt,useEffect:Zt,useImperativeHandle:Zt,useInsertionEffect:Zt,useLayoutEffect:Zt,useMemo:Zt,useReducer:Zt,useRef:Zt,useState:Zt,useDebugValue:Zt,useDeferredValue:Zt,useTransition:Zt,useMutableSource:Zt,useSyncExternalStore:Zt,useId:Zt,unstable_isNewReconciler:!1},EF={readContext:gr,useCallback:function(e,t){return Xr().memoizedState=[e,t===void 0?null:t],e},useContext:gr,useEffect:fx,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Cf(4194308,4,WC.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Cf(4194308,4,e,t)},useInsertionEffect:function(e,t){return Cf(4,2,e,t)},useMemo:function(e,t){var n=Xr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Xr();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=kF.bind(null,vt,e),[r.memoizedState,e]},useRef:function(e){var t=Xr();return e={current:e},t.memoizedState=e},useState:cx,useDebugValue:dv,useDeferredValue:function(e){return Xr().memoizedState=e},useTransition:function(){var e=cx(!1),t=e[0];return e=$F.bind(null,e[1]),Xr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=vt,i=Xr();if(mt){if(n===void 0)throw Error(X(407));n=n()}else{if(n=t(),Lt===null)throw Error(X(349));fs&30||jC(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,fx(LC.bind(null,r,o,e),[e]),r.flags|=2048,ku(9,MC.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Xr(),t=Lt.identifierPrefix;if(mt){var n=xi,r=bi;n=(r&~(1<<32-jr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Su++,0")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Lh=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Nl(e):""}function nD(e){switch(e.tag){case 5:return Nl(e.type);case 16:return Nl("Lazy");case 13:return Nl("Suspense");case 19:return Nl("SuspenseList");case 0:case 2:case 15:return e=zh(e.type,!1),e;case 11:return e=zh(e.type.render,!1),e;case 1:return e=zh(e.type,!0),e;default:return""}}function bg(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 Hs:return"Fragment";case Vs:return"Portal";case yg:return"Profiler";case j0:return"StrictMode";case vg:return"Suspense";case wg:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case P_:return(e.displayName||"Context")+".Consumer";case O_:return(e._context.displayName||"Context")+".Provider";case M0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case L0:return t=e.displayName||null,t!==null?t:bg(e.type)||"Memo";case ro:t=e._payload,e=e._init;try{return bg(e(t))}catch{}}return null}function rD(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 bg(t);case 8:return t===j0?"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 Eo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function N_(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function iD(e){var t=N_(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Rc(e){e._valueTracker||(e._valueTracker=iD(e))}function I_(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=N_(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ad(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 xg(e,t){var n=t.checked;return wt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Tb(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Eo(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 D_(e,t){t=t.checked,t!=null&&F0(e,"checked",t,!1)}function Sg(e,t){D_(e,t);var n=Eo(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")?$g(e,t.type,n):t.hasOwnProperty("defaultValue")&&$g(e,t.type,Eo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ab(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 $g(e,t,n){(t!=="number"||ad(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Il=Array.isArray;function na(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Nc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function cu(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Vl={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},oD=["Webkit","ms","Moz","O"];Object.keys(Vl).forEach(function(e){oD.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Vl[t]=Vl[e]})});function L_(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Vl.hasOwnProperty(e)&&Vl[e]?(""+t).trim():t+"px"}function z_(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=L_(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var sD=wt({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 _g(e,t){if(t){if(sD[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(X(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(X(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(X(61))}if(t.style!=null&&typeof t.style!="object")throw Error(X(62))}}function Cg(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 Tg=null;function z0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ag=null,ra=null,ia=null;function Rb(e){if(e=Qu(e)){if(typeof Ag!="function")throw Error(X(280));var t=e.stateNode;t&&(t=vp(t),Ag(e.stateNode,e.type,t))}}function B_(e){ra?ia?ia.push(e):ia=[e]:ra=e}function U_(){if(ra){var e=ra,t=ia;if(ia=ra=null,Rb(e),t)for(e=0;e>>=0,e===0?32:31-(yD(e)/vD|0)|0}var Ic=64,Dc=4194304;function Dl(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 fd(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=Dl(a):(o&=s,o!==0&&(r=Dl(o)))}else s=n&~i,s!==0?r=Dl(s):o!==0&&(r=Dl(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===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 Yu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-jr(t),e[t]=n}function SD(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=Wl),Bb=String.fromCharCode(32),Ub=!1;function lC(e,t){switch(e){case"keyup":return XD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ws=!1;function JD(e,t){switch(e){case"compositionend":return uC(t);case"keypress":return t.which!==32?null:(Ub=!0,Bb);case"textInput":return e=t.data,e===Bb&&Ub?null:e;default:return null}}function ZD(e,t){if(Ws)return e==="compositionend"||!G0&&lC(e,t)?(e=sC(),$f=W0=ao=null,Ws=!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=qb(n)}}function pC(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pC(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hC(){for(var e=window,t=ad();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ad(e.document)}return t}function Y0(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 lF(e){var t=hC(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&pC(n.ownerDocument.documentElement,n)){if(r!==null&&Y0(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 i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Kb(n,o);var s=Kb(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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,qs=null,Dg=null,Kl=null,Fg=!1;function Gb(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fg||qs==null||qs!==ad(r)||(r=qs,"selectionStart"in r&&Y0(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}),Kl&&gu(Kl,r)||(Kl=r,r=hd(Dg,"onSelect"),0Ys||(e.current=Ug[Ys],Ug[Ys]=null,Ys--)}function ot(e,t){Ys++,Ug[Ys]=e.current,e.current=t}var _o={},sn=No(_o),On=No(!1),us=_o;function pa(e,t){var n=e.type.contextTypes;if(!n)return _o;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Pn(e){return e=e.childContextTypes,e!=null}function gd(){dt(On),dt(sn)}function tx(e,t,n){if(sn.current!==_o)throw Error(X(168));ot(sn,t),ot(On,n)}function $C(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(X(108,rD(e)||"Unknown",i));return wt({},n,r)}function yd(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||_o,us=sn.current,ot(sn,e),ot(On,On.current),!0}function nx(e,t,n){var r=e.stateNode;if(!r)throw Error(X(169));n?(e=$C(e,t,us),r.__reactInternalMemoizedMergedChildContext=e,dt(On),dt(sn),ot(sn,e)):dt(On),ot(On,n)}var yi=null,wp=!1,em=!1;function kC(e){yi===null?yi=[e]:yi.push(e)}function bF(e){wp=!0,kC(e)}function Io(){if(!em&&yi!==null){em=!0;var e=0,t=Xe;try{var n=yi;for(Xe=1;e>=s,i-=s,bi=1<<32-jr(t)+i|n<T?(N=k,k=null):N=k.sibling;var A=p(m,k,w[T],x);if(A===null){k===null&&(k=N);break}e&&k&&A.alternate===null&&t(m,k),v=o(A,v,T),b===null?$=A:b.sibling=A,b=A,k=N}if(T===w.length)return n(m,k),mt&&Uo(m,T),$;if(k===null){for(;TT?(N=k,k=null):N=k.sibling;var M=p(m,k,A.value,x);if(M===null){k===null&&(k=N);break}e&&k&&M.alternate===null&&t(m,k),v=o(M,v,T),b===null?$=M:b.sibling=M,b=M,k=N}if(A.done)return n(m,k),mt&&Uo(m,T),$;if(k===null){for(;!A.done;T++,A=w.next())A=f(m,A.value,x),A!==null&&(v=o(A,v,T),b===null?$=A:b.sibling=A,b=A);return mt&&Uo(m,T),$}for(k=r(m,k);!A.done;T++,A=w.next())A=d(k,m,T,A.value,x),A!==null&&(e&&A.alternate!==null&&k.delete(A.key===null?T:A.key),v=o(A,v,T),b===null?$=A:b.sibling=A,b=A);return e&&k.forEach(function(F){return t(m,F)}),mt&&Uo(m,T),$}function y(m,v,w,x){if(typeof w=="object"&&w!==null&&w.type===Hs&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Pc:e:{for(var $=w.key,b=v;b!==null;){if(b.key===$){if($=w.type,$===Hs){if(b.tag===7){n(m,b.sibling),v=i(b,w.props.children),v.return=m,m=v;break e}}else if(b.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===ro&&ux($)===b.type){n(m,b.sibling),v=i(b,w.props),v.ref=gl(m,b,w),v.return=m,m=v;break e}n(m,b);break}else t(m,b);b=b.sibling}w.type===Hs?(v=ls(w.props.children,m.mode,x,w.key),v.return=m,m=v):(x=Pf(w.type,w.key,w.props,null,m.mode,x),x.ref=gl(m,v,w),x.return=m,m=x)}return s(m);case Vs:e:{for(b=w.key;v!==null;){if(v.key===b)if(v.tag===4&&v.stateNode.containerInfo===w.containerInfo&&v.stateNode.implementation===w.implementation){n(m,v.sibling),v=i(v,w.children||[]),v.return=m,m=v;break e}else{n(m,v);break}else t(m,v);v=v.sibling}v=lm(w,m.mode,x),v.return=m,m=v}return s(m);case ro:return b=w._init,y(m,v,b(w._payload),x)}if(Il(w))return h(m,v,w,x);if(fl(w))return g(m,v,w,x);Uc(m,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,v!==null&&v.tag===6?(n(m,v.sibling),v=i(v,w),v.return=m,m=v):(n(m,v),v=am(w,m.mode,x),v.return=m,m=v),s(m)):n(m,v)}return y}var ma=RC(!0),NC=RC(!1),Ju={},oi=No(Ju),bu=No(Ju),xu=No(Ju);function rs(e){if(e===Ju)throw Error(X(174));return e}function iv(e,t){switch(ot(xu,t),ot(bu,e),ot(oi,Ju),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Eg(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Eg(t,e)}dt(oi),ot(oi,t)}function ga(){dt(oi),dt(bu),dt(xu)}function IC(e){rs(xu.current);var t=rs(oi.current),n=Eg(t,e.type);t!==n&&(ot(bu,e),ot(oi,n))}function ov(e){bu.current===e&&(dt(oi),dt(bu))}var gt=No(0);function $d(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var tm=[];function sv(){for(var e=0;en?n:4,e(!0);var r=nm.transition;nm.transition={};try{e(!1),t()}finally{Xe=n,nm.transition=r}}function XC(){return yr().memoizedState}function kF(e,t,n){var r=xo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},QC(e))JC(t,n);else if(n=TC(e,t,n,r),n!==null){var i=mn();Mr(n,e,r,i),ZC(n,t,r)}}function EF(e,t,n){var r=xo(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(QC(e))JC(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,Br(a,s)){var l=t.interleaved;l===null?(i.next=i,nv(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=TC(e,t,i,r),n!==null&&(i=mn(),Mr(n,e,r,i),ZC(n,t,r))}}function QC(e){var t=e.alternate;return e===vt||t!==null&&t===vt}function JC(e,t){Gl=kd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ZC(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,U0(e,n)}}var Ed={readContext:gr,useCallback:Zt,useContext:Zt,useEffect:Zt,useImperativeHandle:Zt,useInsertionEffect:Zt,useLayoutEffect:Zt,useMemo:Zt,useReducer:Zt,useRef:Zt,useState:Zt,useDebugValue:Zt,useDeferredValue:Zt,useTransition:Zt,useMutableSource:Zt,useSyncExternalStore:Zt,useId:Zt,unstable_isNewReconciler:!1},_F={readContext:gr,useCallback:function(e,t){return Xr().memoizedState=[e,t===void 0?null:t],e},useContext:gr,useEffect:fx,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Cf(4194308,4,WC.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Cf(4194308,4,e,t)},useInsertionEffect:function(e,t){return Cf(4,2,e,t)},useMemo:function(e,t){var n=Xr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Xr();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=kF.bind(null,vt,e),[r.memoizedState,e]},useRef:function(e){var t=Xr();return e={current:e},t.memoizedState=e},useState:cx,useDebugValue:fv,useDeferredValue:function(e){return Xr().memoizedState=e},useTransition:function(){var e=cx(!1),t=e[0];return e=$F.bind(null,e[1]),Xr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=vt,i=Xr();if(mt){if(n===void 0)throw Error(X(407));n=n()}else{if(n=t(),Lt===null)throw Error(X(349));fs&30||jC(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,fx(LC.bind(null,r,o,e),[e]),r.flags|=2048,ku(9,MC.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Xr(),t=Lt.identifierPrefix;if(mt){var n=xi,r=bi;n=(r&~(1<<32-jr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Su++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Jr]=t,e[wu]=r,l2(e,t,!1,!1),t.stateNode=e;e:{switch(s=Tg(n,r),n){case"dialog":lt("cancel",e),lt("close",e),i=r;break;case"iframe":case"object":case"embed":lt("load",e),i=r;break;case"video":case"audio":for(i=0;iva&&(t.flags|=128,r=!0,yl(o,!1),t.lanes=4194304)}else{if(!r)if(e=$d(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),yl(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!mt)return en(t),null}else 2*Ct()-o.renderingStartTime>va&&n!==1073741824&&(t.flags|=128,r=!0,yl(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ct(),t.sibling=null,n=gt.current,ot(gt,r?n&1|2:n&1),t):(en(t),null);case 22:case 23:return vv(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?zn&1073741824&&(en(t),t.subtreeFlags&6&&(t.flags|=8192)):en(t),null;case 24:return null;case 25:return null}throw Error(X(156,t.tag))}function IF(e,t){switch(J0(t),t.tag){case 1:return Pn(t.type)&&gd(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ga(),dt(On),dt(sn),av(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return sv(t),null;case 13:if(dt(gt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(X(340));ha()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return dt(gt),null;case 4:return ga(),null;case 10:return nv(t.type._context),null;case 22:case 23:return vv(),null;case 24:return null;default:return null}}var Hc=!1,rn=!1,DF=typeof WeakSet=="function"?WeakSet:Set,ie=null;function Zs(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){bt(e,t,r)}else n.current=null}function ty(e,t,n){try{n()}catch(r){bt(e,t,r)}}var bx=!1;function FF(e,t){if(Mg=dd,e=hC(),X0(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 i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,f=e,p=null;t:for(;;){for(var d;f!==n||i!==0&&f.nodeType!==3||(a=s+i),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(d=f.firstChild)!==null;)p=f,f=d;for(;;){if(f===e)break t;if(p===n&&++u===i&&(a=s),p===o&&++c===r&&(l=s),(d=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=d}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Lg={focusedElem:e,selectionRange:n},dd=!1,ie=t;ie!==null;)if(t=ie,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ie=e;else for(;ie!==null;){t=ie;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var g=h.memoizedProps,y=h.memoizedState,m=t.stateNode,v=m.getSnapshotBeforeUpdate(t.elementType===t.type?g:Ar(t.type,g),y);m.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(X(163))}}catch(x){bt(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,ie=e;break}ie=t.return}return h=bx,bx=!1,h}function Yl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&ty(t,n,o)}i=i.next}while(i!==r)}}function Sp(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 ny(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 f2(e){var t=e.alternate;t!==null&&(e.alternate=null,f2(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Jr],delete t[wu],delete t[Ug],delete t[vF],delete t[wF])),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 d2(e){return e.tag===5||e.tag===3||e.tag===4}function xx(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||d2(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 ry(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=md));else if(r!==4&&(e=e.child,e!==null))for(ry(e,t,n),e=e.sibling;e!==null;)ry(e,t,n),e=e.sibling}function iy(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(iy(e,t,n),e=e.sibling;e!==null;)iy(e,t,n),e=e.sibling}var Ht=null,Or=!1;function Wi(e,t,n){for(n=n.child;n!==null;)p2(e,t,n),n=n.sibling}function p2(e,t,n){if(ii&&typeof ii.onCommitFiberUnmount=="function")try{ii.onCommitFiberUnmount(hp,n)}catch{}switch(n.tag){case 5:rn||Zs(n,t);case 6:var r=Ht,i=Or;Ht=null,Wi(e,t,n),Ht=r,Or=i,Ht!==null&&(Or?(e=Ht,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ht.removeChild(n.stateNode));break;case 18:Ht!==null&&(Or?(e=Ht,n=n.stateNode,e.nodeType===8?em(e.parentNode,n):e.nodeType===1&&em(e,n),hu(e)):em(Ht,n.stateNode));break;case 4:r=Ht,i=Or,Ht=n.stateNode.containerInfo,Or=!0,Wi(e,t,n),Ht=r,Or=i;break;case 0:case 11:case 14:case 15:if(!rn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&ty(n,t,s),i=i.next}while(i!==r)}Wi(e,t,n);break;case 1:if(!rn&&(Zs(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){bt(n,t,a)}Wi(e,t,n);break;case 21:Wi(e,t,n);break;case 22:n.mode&1?(rn=(r=rn)||n.memoizedState!==null,Wi(e,t,n),rn=r):Wi(e,t,n);break;default:Wi(e,t,n)}}function Sx(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new DF),t.forEach(function(r){var i=WF.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function _r(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=Ct()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*MF(r/1960))-r,10e?16:e,lo===null)var r=!1;else{if(e=lo,lo=null,Td=0,Le&6)throw Error(X(331));var i=Le;for(Le|=4,ie=e.current;ie!==null;){var o=ie,s=o.child;if(ie.flags&16){var a=o.deletions;if(a!==null){for(var l=0;lCt()-gv?as(e,0):mv|=n),Rn(e,t)}function x2(e,t){t===0&&(e.mode&1?(t=Dc,Dc<<=1,!(Dc&130023424)&&(Dc=4194304)):t=1);var n=mn();e=Oi(e,t),e!==null&&(Yu(e,t,n),Rn(e,n))}function HF(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),x2(e,n)}function WF(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(X(314))}r!==null&&r.delete(t),x2(e,n)}var S2;S2=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||On.current)An=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return An=!1,RF(e,t,n);An=!!(e.flags&131072)}else An=!1,mt&&t.flags&1048576&&_C(t,wd,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Tf(e,t),e=t.pendingProps;var i=pa(t,sn.current);sa(t,n),i=uv(null,t,r,e,i,n);var o=cv();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pn(r)?(o=!0,yd(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,iv(t),i.updater=bp,t.stateNode=i,i._reactInternals=t,Gg(t,r,e,n),t=Qg(null,t,r,!0,o,n)):(t.tag=0,mt&&o&&Q0(t),cn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Tf(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=KF(r),e=Ar(r,e),i){case 0:t=Xg(null,t,r,e,n);break e;case 1:t=yx(null,t,r,e,n);break e;case 11:t=mx(null,t,r,e,n);break e;case 14:t=gx(null,t,r,Ar(r.type,e),n);break e}throw Error(X(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ar(r,i),Xg(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ar(r,i),yx(e,t,r,i,n);case 3:e:{if(o2(t),e===null)throw Error(X(387));r=t.pendingProps,o=t.memoizedState,i=o.element,AC(e,t),Sd(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=ya(Error(X(423)),t),t=vx(e,t,r,n,i);break e}else if(r!==i){i=ya(Error(X(424)),t),t=vx(e,t,r,n,i);break e}else for(qn=vo(t.stateNode.containerInfo.firstChild),Gn=t,mt=!0,Rr=null,n=NC(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ha(),r===i){t=Pi(e,t,n);break e}cn(e,t,r,n)}t=t.child}return t;case 5:return IC(t),e===null&&Wg(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,zg(r,i)?s=null:o!==null&&zg(r,o)&&(t.flags|=32),i2(e,t),cn(e,t,s,n),t.child;case 6:return e===null&&Wg(t),null;case 13:return s2(e,t,n);case 4:return ov(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ma(t,null,r,n):cn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ar(r,i),mx(e,t,r,i,n);case 7:return cn(e,t,t.pendingProps,n),t.child;case 8:return cn(e,t,t.pendingProps.children,n),t.child;case 12:return cn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,ot(bd,r._currentValue),r._currentValue=s,o!==null)if(Br(o.value,s)){if(o.children===i.children&&!On.current){t=Pi(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=$i(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),qg(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(X(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),qg(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}cn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,sa(t,n),i=gr(i),r=r(i),t.flags|=1,cn(e,t,r,n),t.child;case 14:return r=t.type,i=Ar(r,t.pendingProps),i=Ar(r.type,i),gx(e,t,r,i,n);case 15:return n2(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ar(r,i),Tf(e,t),t.tag=1,Pn(r)?(e=!0,yd(t)):e=!1,sa(t,n),PC(t,r,i),Gg(t,r,i,n),Qg(null,t,r,!0,e,n);case 19:return a2(e,t,n);case 22:return r2(e,t,n)}throw Error(X(156,t.tag))};function $2(e,t){return YE(e,t)}function qF(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 fr(e,t,n,r){return new qF(e,t,n,r)}function bv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function KF(e){if(typeof e=="function")return bv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===L0)return 11;if(e===z0)return 14}return 2}function So(e,t){var n=e.alternate;return n===null?(n=fr(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 Pf(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")bv(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Hs:return ls(n.children,i,o,t);case M0:s=8,i|=8;break;case vg:return e=fr(12,n,t,i|2),e.elementType=vg,e.lanes=o,e;case wg:return e=fr(13,n,t,i),e.elementType=wg,e.lanes=o,e;case bg:return e=fr(19,n,t,i),e.elementType=bg,e.lanes=o,e;case RE:return kp(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case OE:s=10;break e;case PE:s=9;break e;case L0:s=11;break e;case z0:s=14;break e;case ro:s=16,r=null;break e}throw Error(X(130,e==null?e:typeof e,""))}return t=fr(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function ls(e,t,n,r){return e=fr(7,e,r,t),e.lanes=n,e}function kp(e,t,n,r){return e=fr(22,e,r,t),e.elementType=RE,e.lanes=n,e.stateNode={isHidden:!1},e}function lm(e,t,n){return e=fr(6,e,null,t),e.lanes=n,e}function um(e,t,n){return t=fr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function GF(e,t,n,r,i){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=Vh(0),this.expirationTimes=Vh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vh(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function xv(e,t,n,r,i,o,s,a,l){return e=new GF(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=fr(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},iv(o),e}function YF(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(C2)}catch(e){console.error(e)}}C2(),_E.exports=er;var Zu=_E.exports,T2,Ox=Zu;T2=Ox.createRoot,Ox.hydrateRoot;function ks(e){const t=O.createContext(e);return[()=>{const r=O.useContext(t);if(r===void 0)throw new Error("useSafeContext must be used within a Provider");return r},t.Provider]}const[wr,ej]=ks();function tj({children:e,data:t}){return S.jsx(ej,{value:{debug:t.debug??!1,...t},children:e})}function nj(e){const[t,n]=O.useState(!!e),r=O.useCallback(()=>n(i=>!i),[]);return[t,r,n]}const[Ap,rj]=ks();function ij({children:e}){const{defaultOpen:t}=wr(),n=nj(t??!1);return S.jsx(rj,{value:n,children:e})}function oj(e=10){return Math.random().toString(36).substring(2,e+2)}function _v(e){return{sessionId:O.useRef(e+"|"+oj()).current,setSessionId:r=>{}}}function A2(e,t){return function(){return e.apply(t,arguments)}}const{toString:sj}=Object.prototype,{getPrototypeOf:Ev}=Object,Op=(e=>t=>{const n=sj.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ui=e=>(e=e.toLowerCase(),t=>Op(t)===e),Pp=e=>t=>typeof t===e,{isArray:Ia}=Array,Eu=Pp("undefined");function aj(e){return e!==null&&!Eu(e)&&e.constructor!==null&&!Eu(e.constructor)&&mr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const O2=ui("ArrayBuffer");function lj(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&O2(e.buffer),t}const uj=Pp("string"),mr=Pp("function"),P2=Pp("number"),Rp=e=>e!==null&&typeof e=="object",cj=e=>e===!0||e===!1,Rf=e=>{if(Op(e)!=="object")return!1;const t=Ev(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},fj=ui("Date"),dj=ui("File"),pj=ui("Blob"),hj=ui("FileList"),mj=e=>Rp(e)&&mr(e.pipe),gj=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||mr(e.append)&&((t=Op(e))==="formdata"||t==="object"&&mr(e.toString)&&e.toString()==="[object FormData]"))},yj=ui("URLSearchParams"),vj=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ec(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Ia(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const N2=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),I2=e=>!Eu(e)&&e!==N2;function uy(){const{caseless:e}=I2(this)&&this||{},t={},n=(r,i)=>{const o=e&&R2(t,i)||i;Rf(t[o])&&Rf(r)?t[o]=uy(t[o],r):Rf(r)?t[o]=uy({},r):Ia(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(ec(t,(i,o)=>{n&&mr(i)?e[o]=A2(i,n):e[o]=i},{allOwnKeys:r}),e),bj=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),xj=(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)},Sj=(e,t,n,r)=>{let i,o,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&Ev(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},$j=(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},kj=e=>{if(!e)return null;if(Ia(e))return e;let t=e.length;if(!P2(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},_j=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ev(Uint8Array)),Ej=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},Cj=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Tj=ui("HTMLFormElement"),Aj=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Px=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Oj=ui("RegExp"),D2=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ec(n,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(r[o]=s||i)}),Object.defineProperties(e,r)},Pj=e=>{D2(e,(t,n)=>{if(mr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(mr(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+"'")})}})},Rj=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Ia(e)?r(e):r(String(e).split(t)),n},Nj=()=>{},Ij=(e,t)=>(e=+e,Number.isFinite(e)?e:t),cm="abcdefghijklmnopqrstuvwxyz",Rx="0123456789",F2={DIGIT:Rx,ALPHA:cm,ALPHA_DIGIT:cm+cm.toUpperCase()+Rx},Dj=(e=16,t=F2.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Fj(e){return!!(e&&mr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const jj=e=>{const t=new Array(10),n=(r,i)=>{if(Rp(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=Ia(r)?[]:{};return ec(r,(s,a)=>{const l=n(s,i+1);!Eu(l)&&(o[a]=l)}),t[i]=void 0,o}}return r};return n(e,0)},Mj=ui("AsyncFunction"),Lj=e=>e&&(Rp(e)||mr(e))&&mr(e.then)&&mr(e.catch),G={isArray:Ia,isArrayBuffer:O2,isBuffer:aj,isFormData:gj,isArrayBufferView:lj,isString:uj,isNumber:P2,isBoolean:cj,isObject:Rp,isPlainObject:Rf,isUndefined:Eu,isDate:fj,isFile:dj,isBlob:pj,isRegExp:Oj,isFunction:mr,isStream:mj,isURLSearchParams:yj,isTypedArray:_j,isFileList:hj,forEach:ec,merge:uy,extend:wj,trim:vj,stripBOM:bj,inherits:xj,toFlatObject:Sj,kindOf:Op,kindOfTest:ui,endsWith:$j,toArray:kj,forEachEntry:Ej,matchAll:Cj,isHTMLForm:Tj,hasOwnProperty:Px,hasOwnProp:Px,reduceDescriptors:D2,freezeMethods:Pj,toObjectSet:Rj,toCamelCase:Aj,noop:Nj,toFiniteNumber:Ij,findKey:R2,global:N2,isContextDefined:I2,ALPHABET:F2,generateString:Dj,isSpecCompliantForm:Fj,toJSONObject:jj,isAsyncFn:Mj,isThenable:Lj};function De(e,t,n,r,i){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),i&&(this.response=i)}G.inherits(De,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:G.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const j2=De.prototype,M2={};["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=>{M2[e]={value:e}});Object.defineProperties(De,M2);Object.defineProperty(j2,"isAxiosError",{value:!0});De.from=(e,t,n,r,i,o)=>{const s=Object.create(j2);return G.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),De.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const zj=null;function cy(e){return G.isPlainObject(e)||G.isArray(e)}function L2(e){return G.endsWith(e,"[]")?e.slice(0,-2):e}function Nx(e,t,n){return e?e.concat(t).map(function(i,o){return i=L2(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function Bj(e){return G.isArray(e)&&!e.some(cy)}const Uj=G.toFlatObject(G,{},null,function(t){return/^is[A-Z]/.test(t)});function Np(e,t,n){if(!G.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=G.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,y){return!G.isUndefined(y[g])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&G.isSpecCompliantForm(t);if(!G.isFunction(i))throw new TypeError("visitor must be a function");function u(h){if(h===null)return"";if(G.isDate(h))return h.toISOString();if(!l&&G.isBlob(h))throw new De("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(h)||G.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function c(h,g,y){let m=h;if(h&&!y&&typeof h=="object"){if(G.endsWith(g,"{}"))g=r?g:g.slice(0,-2),h=JSON.stringify(h);else if(G.isArray(h)&&Bj(h)||(G.isFileList(h)||G.endsWith(g,"[]"))&&(m=G.toArray(h)))return g=L2(g),m.forEach(function(w,x){!(G.isUndefined(w)||w===null)&&t.append(s===!0?Nx([g],x,o):s===null?g:g+"[]",u(w))}),!1}return cy(h)?!0:(t.append(Nx(y,g,o),u(h)),!1)}const f=[],p=Object.assign(Uj,{defaultVisitor:c,convertValue:u,isVisitable:cy});function d(h,g){if(!G.isUndefined(h)){if(f.indexOf(h)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(h),G.forEach(h,function(m,v){(!(G.isUndefined(m)||m===null)&&i.call(t,m,G.isString(v)?v.trim():v,g,p))===!0&&d(m,g?g.concat(v):[v])}),f.pop()}}if(!G.isObject(e))throw new TypeError("data must be an object");return d(e),t}function Ix(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Cv(e,t){this._pairs=[],e&&Np(e,this,t)}const z2=Cv.prototype;z2.append=function(t,n){this._pairs.push([t,n])};z2.toString=function(t){const n=t?function(r){return t.call(this,r,Ix)}:Ix;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Vj(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function B2(e,t,n){if(!t)return e;const r=n&&n.encode||Vj,i=n&&n.serialize;let o;if(i?o=i(t,n):o=G.isURLSearchParams(t)?t.toString():new Cv(t,n).toString(r),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Hj{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){G.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Dx=Hj,U2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Wj=typeof URLSearchParams<"u"?URLSearchParams:Cv,qj=typeof FormData<"u"?FormData:null,Kj=typeof Blob<"u"?Blob:null,Gj={isBrowser:!0,classes:{URLSearchParams:Wj,FormData:qj,Blob:Kj},protocols:["http","https","file","blob","url","data"]},V2=typeof window<"u"&&typeof document<"u",Yj=(e=>V2&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Xj=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Qj=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:V2,hasStandardBrowserEnv:Yj,hasStandardBrowserWebWorkerEnv:Xj},Symbol.toStringTag,{value:"Module"})),ei={...Qj,...Gj};function Jj(e,t){return Np(e,new ei.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return ei.isNode&&G.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Zj(e){return G.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function e3(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return s=!s&&G.isArray(i)?i.length:s,l?(G.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!G.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],o)&&G.isArray(i[s])&&(i[s]=e3(i[s])),!a)}if(G.isFormData(e)&&G.isFunction(e.entries)){const n={};return G.forEachEntry(e,(r,i)=>{t(Zj(r),i,n,0)}),n}return null}function t3(e,t,n){if(G.isString(e))try{return(t||JSON.parse)(e),G.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Tv={transitional:U2,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=G.isObject(t);if(o&&G.isHTMLForm(t)&&(t=new FormData(t)),G.isFormData(t))return i?JSON.stringify(H2(t)):t;if(G.isArrayBuffer(t)||G.isBuffer(t)||G.isStream(t)||G.isFile(t)||G.isBlob(t))return t;if(G.isArrayBufferView(t))return t.buffer;if(G.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Jj(t,this.formSerializer).toString();if((a=G.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Np(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),t3(t)):t}],transformResponse:[function(t){const n=this.transitional||Tv.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&G.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?De.from(a,De.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ei.classes.FormData,Blob:ei.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch"],e=>{Tv.headers[e]={}});const Av=Tv,n3=G.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"]),r3=e=>{const t={};let n,r,i;return e&&e.split(` -`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&n3[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Fx=Symbol("internals");function wl(e){return e&&String(e).trim().toLowerCase()}function Nf(e){return e===!1||e==null?e:G.isArray(e)?e.map(Nf):String(e)}function i3(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 o3=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function fm(e,t,n,r,i){if(G.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!G.isString(t)){if(G.isString(r))return t.indexOf(r)!==-1;if(G.isRegExp(r))return r.test(t)}}function s3(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function a3(e,t){const n=G.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,s){return this[r].call(this,t,i,o,s)},configurable:!0})})}class Ip{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(a,l,u){const c=wl(l);if(!c)throw new Error("header name must be a non-empty string");const f=G.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=Nf(a))}const s=(a,l)=>G.forEach(a,(u,c)=>o(u,c,l));return G.isPlainObject(t)||t instanceof this.constructor?s(t,n):G.isString(t)&&(t=t.trim())&&!o3(t)?s(r3(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=wl(t),t){const r=G.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return i3(i);if(G.isFunction(n))return n.call(this,i,r);if(G.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=wl(t),t){const r=G.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||fm(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(s){if(s=wl(s),s){const a=G.findKey(r,s);a&&(!n||fm(r,r[a],a,n))&&(delete r[a],i=!0)}}return G.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||fm(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return G.forEach(this,(i,o)=>{const s=G.findKey(r,o);if(s){n[s]=Nf(i),delete n[o];return}const a=t?s3(o):String(o).trim();a!==o&&delete n[o],n[a]=Nf(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return G.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&G.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(i=>r.set(i)),r}static accessor(t){const r=(this[Fx]=this[Fx]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=wl(s);r[a]||(a3(i,s),r[a]=!0)}return G.isArray(t)?t.forEach(o):o(t),this}}Ip.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);G.reduceDescriptors(Ip.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});G.freezeMethods(Ip);const ki=Ip;function dm(e,t){const n=this||Av,r=t||n,i=ki.from(r.headers);let o=r.data;return G.forEach(e,function(a){o=a.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function W2(e){return!!(e&&e.__CANCEL__)}function tc(e,t,n){De.call(this,e??"canceled",De.ERR_CANCELED,t,n),this.name="CanceledError"}G.inherits(tc,De,{__CANCEL__:!0});function l3(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new De("Request failed with status code "+n.status,[De.ERR_BAD_REQUEST,De.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const u3=ei.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const s=[e+"="+encodeURIComponent(t)];G.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),G.isString(r)&&s.push("path="+r),G.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function c3(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function f3(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function q2(e,t){return e&&!c3(t)?f3(e,t):t}const d3=ei.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let s=o;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(s){const a=G.isString(s)?i(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function p3(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function h3(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[o];s||(s=u),n[i]=l,r[i]=u;let f=o,p=0;for(;f!==i;)p+=n[f++],f=f%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-s{const o=i.loaded,s=i.lengthComputable?i.total:void 0,a=o-n,l=r(a),u=o<=s;n=o;const c={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&u?(s-o)/l:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}const m3=typeof XMLHttpRequest<"u",g3=m3&&function(e){return new Promise(function(n,r){let i=e.data;const o=ki.from(e.headers).normalize();let{responseType:s,withXSRFToken:a}=e,l;function u(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let c;if(G.isFormData(i)){if(ei.hasStandardBrowserEnv||ei.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((c=o.getContentType())!==!1){const[g,...y]=c?c.split(";").map(m=>m.trim()).filter(Boolean):[];o.setContentType([g||"multipart/form-data",...y].join("; "))}}let f=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(g+":"+y))}const p=q2(e.baseURL,e.url);f.open(e.method.toUpperCase(),B2(p,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function d(){if(!f)return;const g=ki.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),m={data:!s||s==="text"||s==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:g,config:e,request:f};l3(function(w){n(w),u()},function(w){r(w),u()},m),f=null}if("onloadend"in f?f.onloadend=d:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(d)},f.onabort=function(){f&&(r(new De("Request aborted",De.ECONNABORTED,e,f)),f=null)},f.onerror=function(){r(new De("Network Error",De.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let y=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||U2;e.timeoutErrorMessage&&(y=e.timeoutErrorMessage),r(new De(y,m.clarifyTimeoutError?De.ETIMEDOUT:De.ECONNABORTED,e,f)),f=null},ei.hasStandardBrowserEnv&&(a&&G.isFunction(a)&&(a=a(e)),a||a!==!1&&d3(p))){const g=e.xsrfHeaderName&&e.xsrfCookieName&&u3.read(e.xsrfCookieName);g&&o.set(e.xsrfHeaderName,g)}i===void 0&&o.setContentType(null),"setRequestHeader"in f&&G.forEach(o.toJSON(),function(y,m){f.setRequestHeader(m,y)}),G.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),s&&s!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",jx(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",jx(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=g=>{f&&(r(!g||g.type?new tc(null,e,f):g),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const h=p3(p);if(h&&ei.protocols.indexOf(h)===-1){r(new De("Unsupported protocol "+h+":",De.ERR_BAD_REQUEST,e));return}f.send(i||null)})},fy={http:zj,xhr:g3};G.forEach(fy,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Mx=e=>`- ${e}`,y3=e=>G.isFunction(e)||e===null||e===!1,K2={getAdapter:e=>{e=G.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since : +`+o.stack}return{value:e,source:t,stack:i,digest:null}}function om(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Gg(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var AF=typeof WeakMap=="function"?WeakMap:Map;function e2(e,t,n){n=$i(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Cd||(Cd=!0,iy=r),Gg(e,t)},n}function t2(e,t,n){n=$i(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Gg(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Gg(e,t),typeof r!="function"&&(bo===null?bo=new Set([this]):bo.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function dx(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new AF;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=VF.bind(null,e,t,n),t.then(e,e))}function px(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function hx(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=$i(-1,1),t.tag=2,wo(n,t,1))),n.lanes|=1),e)}var OF=Mi.ReactCurrentOwner,An=!1;function cn(e,t,n,r){t.child=e===null?NC(t,null,n,r):ma(t,e.child,n,r)}function mx(e,t,n,r,i){n=n.render;var o=t.ref;return sa(t,i),r=lv(e,t,n,r,o,i),n=uv(),e!==null&&!An?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Pi(e,t,i)):(mt&&n&&X0(t),t.flags|=1,cn(e,t,r,i),t.child)}function gx(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!wv(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,n2(e,t,o,r,i)):(e=Pf(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:gu,n(s,r)&&e.ref===t.ref)return Pi(e,t,i)}return t.flags|=1,e=So(o,r),e.ref=t.ref,e.return=t,t.child=e}function n2(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(gu(o,r)&&e.ref===t.ref)if(An=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(An=!0);else return t.lanes=e.lanes,Pi(e,t,i)}return Yg(e,t,n,r,i)}function r2(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ot(ea,zn),zn|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ot(ea,zn),zn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,ot(ea,zn),zn|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,ot(ea,zn),zn|=r;return cn(e,t,i,n),t.child}function i2(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Yg(e,t,n,r,i){var o=Pn(n)?us:sn.current;return o=pa(t,o),sa(t,i),n=lv(e,t,n,r,o,i),r=uv(),e!==null&&!An?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Pi(e,t,i)):(mt&&r&&X0(t),t.flags|=1,cn(e,t,n,i),t.child)}function yx(e,t,n,r,i){if(Pn(n)){var o=!0;yd(t)}else o=!1;if(sa(t,i),t.stateNode===null)Tf(e,t),PC(t,n,r),Kg(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=gr(u):(u=Pn(n)?us:sn.current,u=pa(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&lx(t,s,r,u),io=!1;var p=t.memoizedState;s.state=p,Sd(t,r,s,i),l=t.memoizedState,a!==r||p!==l||On.current||io?(typeof c=="function"&&(qg(t,n,c,r),l=t.memoizedState),(a=io||ax(t,n,a,r,p,l,u))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,AC(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Ar(t.type,a),s.props=u,f=t.pendingProps,p=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=gr(l):(l=Pn(n)?us:sn.current,l=pa(t,l));var d=n.getDerivedStateFromProps;(c=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==f||p!==l)&&lx(t,s,r,l),io=!1,p=t.memoizedState,s.state=p,Sd(t,r,s,i);var h=t.memoizedState;a!==f||p!==h||On.current||io?(typeof d=="function"&&(qg(t,n,d,r),h=t.memoizedState),(u=io||ax(t,n,u,r,p,h,l)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,h,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,h,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),s.props=r,s.state=h,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Xg(e,t,n,r,o,i)}function Xg(e,t,n,r,i,o){i2(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&nx(t,n,!1),Pi(e,t,o);r=t.stateNode,OF.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=ma(t,e.child,null,o),t.child=ma(t,null,a,o)):cn(e,t,a,o),t.memoizedState=r.state,i&&nx(t,n,!0),t.child}function o2(e){var t=e.stateNode;t.pendingContext?tx(e,t.pendingContext,t.pendingContext!==t.context):t.context&&tx(e,t.context,!1),iv(e,t.containerInfo)}function vx(e,t,n,r,i){return ha(),J0(i),t.flags|=256,cn(e,t,n,r),t.child}var Qg={dehydrated:null,treeContext:null,retryLane:0};function Jg(e){return{baseLanes:e,cachePool:null,transitions:null}}function s2(e,t,n){var r=t.pendingProps,i=gt.current,o=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ot(gt,i&1),e===null)return Hg(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=kp(s,r,0,null),e=ls(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Jg(n),t.memoizedState=Qg,e):dv(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return PF(e,t,s,r,a,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=So(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=So(a,o):(o=ls(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?Jg(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=Qg,r}return o=e.child,e=o.sibling,r=So(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function dv(e,t){return t=kp({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Vc(e,t,n,r){return r!==null&&J0(r),ma(t,e.child,null,n),e=dv(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function PF(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=om(Error(X(422))),Vc(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=kp({mode:"visible",children:r.children},i,0,null),o=ls(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&ma(t,e.child,null,s),t.child.memoizedState=Jg(s),t.memoizedState=Qg,o);if(!(t.mode&1))return Vc(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(X(419)),r=om(o,r,void 0),Vc(e,t,s,r)}if(a=(s&e.childLanes)!==0,An||a){if(r=Lt,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Oi(e,i),Mr(r,e,i,-1))}return vv(),r=om(Error(X(421))),Vc(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=HF.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,qn=vo(i.nextSibling),Gn=t,mt=!0,Rr=null,e!==null&&(sr[ar++]=bi,sr[ar++]=xi,sr[ar++]=cs,bi=e.id,xi=e.overflow,cs=t),t=dv(t,r.children),t.flags|=4096,t)}function wx(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Wg(e.return,t,n)}function sm(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function a2(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(cn(e,t,r.children,n),r=gt.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&wx(e,n,t);else if(e.tag===19)wx(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ot(gt,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&$d(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),sm(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&$d(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}sm(t,!0,n,null,o);break;case"together":sm(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Tf(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Pi(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ds|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(X(153));if(t.child!==null){for(e=t.child,n=So(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=So(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function RF(e,t,n){switch(t.tag){case 3:o2(t),ha();break;case 5:IC(t);break;case 1:Pn(t.type)&&yd(t);break;case 4:iv(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ot(bd,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ot(gt,gt.current&1),t.flags|=128,null):n&t.child.childLanes?s2(e,t,n):(ot(gt,gt.current&1),e=Pi(e,t,n),e!==null?e.sibling:null);ot(gt,gt.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return a2(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ot(gt,gt.current),r)break;return null;case 22:case 23:return t.lanes=0,r2(e,t,n)}return Pi(e,t,n)}var l2,Zg,u2,c2;l2=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Zg=function(){};u2=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,rs(oi.current);var o=null;switch(n){case"input":i=xg(e,i),r=xg(e,r),o=[];break;case"select":i=wt({},i,{value:void 0}),r=wt({},r,{value:void 0}),o=[];break;case"textarea":i=kg(e,i),r=kg(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=md)}_g(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(uu.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var l=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(o||(o=[]),o.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(uu.hasOwnProperty(u)?(l!=null&&u==="onScroll"&<("scroll",e),o||a===l||(o=[])):(o=o||[]).push(u,l))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};c2=function(e,t,n,r){n!==r&&(t.flags|=4)};function yl(e,t){if(!mt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function en(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function NF(e,t,n){var r=t.pendingProps;switch(Q0(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return en(t),null;case 1:return Pn(t.type)&&gd(),en(t),null;case 3:return r=t.stateNode,ga(),dt(On),dt(sn),sv(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Bc(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Rr!==null&&(ay(Rr),Rr=null))),Zg(e,t),en(t),null;case 5:ov(t);var i=rs(xu.current);if(n=t.type,e!==null&&t.stateNode!=null)u2(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(X(166));return en(t),null}if(e=rs(oi.current),Bc(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Jr]=t,r[wu]=o,e=(t.mode&1)!==0,n){case"dialog":lt("cancel",r),lt("close",r);break;case"iframe":case"object":case"embed":lt("load",r);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Jr]=t,e[wu]=r,l2(e,t,!1,!1),t.stateNode=e;e:{switch(s=Cg(n,r),n){case"dialog":lt("cancel",e),lt("close",e),i=r;break;case"iframe":case"object":case"embed":lt("load",e),i=r;break;case"video":case"audio":for(i=0;iva&&(t.flags|=128,r=!0,yl(o,!1),t.lanes=4194304)}else{if(!r)if(e=$d(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),yl(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!mt)return en(t),null}else 2*Ct()-o.renderingStartTime>va&&n!==1073741824&&(t.flags|=128,r=!0,yl(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ct(),t.sibling=null,n=gt.current,ot(gt,r?n&1|2:n&1),t):(en(t),null);case 22:case 23:return yv(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?zn&1073741824&&(en(t),t.subtreeFlags&6&&(t.flags|=8192)):en(t),null;case 24:return null;case 25:return null}throw Error(X(156,t.tag))}function IF(e,t){switch(Q0(t),t.tag){case 1:return Pn(t.type)&&gd(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ga(),dt(On),dt(sn),sv(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ov(t),null;case 13:if(dt(gt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(X(340));ha()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return dt(gt),null;case 4:return ga(),null;case 10:return tv(t.type._context),null;case 22:case 23:return yv(),null;case 24:return null;default:return null}}var Hc=!1,rn=!1,DF=typeof WeakSet=="function"?WeakSet:Set,ie=null;function Zs(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){bt(e,t,r)}else n.current=null}function ey(e,t,n){try{n()}catch(r){bt(e,t,r)}}var bx=!1;function FF(e,t){if(jg=dd,e=hC(),Y0(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 i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,f=e,p=null;t:for(;;){for(var d;f!==n||i!==0&&f.nodeType!==3||(a=s+i),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(d=f.firstChild)!==null;)p=f,f=d;for(;;){if(f===e)break t;if(p===n&&++u===i&&(a=s),p===o&&++c===r&&(l=s),(d=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=d}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Mg={focusedElem:e,selectionRange:n},dd=!1,ie=t;ie!==null;)if(t=ie,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ie=e;else for(;ie!==null;){t=ie;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var g=h.memoizedProps,y=h.memoizedState,m=t.stateNode,v=m.getSnapshotBeforeUpdate(t.elementType===t.type?g:Ar(t.type,g),y);m.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(X(163))}}catch(x){bt(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,ie=e;break}ie=t.return}return h=bx,bx=!1,h}function Yl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&ey(t,n,o)}i=i.next}while(i!==r)}}function Sp(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 ty(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 f2(e){var t=e.alternate;t!==null&&(e.alternate=null,f2(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Jr],delete t[wu],delete t[Bg],delete t[vF],delete t[wF])),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 d2(e){return e.tag===5||e.tag===3||e.tag===4}function xx(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||d2(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 ny(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=md));else if(r!==4&&(e=e.child,e!==null))for(ny(e,t,n),e=e.sibling;e!==null;)ny(e,t,n),e=e.sibling}function ry(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(ry(e,t,n),e=e.sibling;e!==null;)ry(e,t,n),e=e.sibling}var Ht=null,Or=!1;function Wi(e,t,n){for(n=n.child;n!==null;)p2(e,t,n),n=n.sibling}function p2(e,t,n){if(ii&&typeof ii.onCommitFiberUnmount=="function")try{ii.onCommitFiberUnmount(hp,n)}catch{}switch(n.tag){case 5:rn||Zs(n,t);case 6:var r=Ht,i=Or;Ht=null,Wi(e,t,n),Ht=r,Or=i,Ht!==null&&(Or?(e=Ht,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ht.removeChild(n.stateNode));break;case 18:Ht!==null&&(Or?(e=Ht,n=n.stateNode,e.nodeType===8?Zh(e.parentNode,n):e.nodeType===1&&Zh(e,n),hu(e)):Zh(Ht,n.stateNode));break;case 4:r=Ht,i=Or,Ht=n.stateNode.containerInfo,Or=!0,Wi(e,t,n),Ht=r,Or=i;break;case 0:case 11:case 14:case 15:if(!rn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&ey(n,t,s),i=i.next}while(i!==r)}Wi(e,t,n);break;case 1:if(!rn&&(Zs(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){bt(n,t,a)}Wi(e,t,n);break;case 21:Wi(e,t,n);break;case 22:n.mode&1?(rn=(r=rn)||n.memoizedState!==null,Wi(e,t,n),rn=r):Wi(e,t,n);break;default:Wi(e,t,n)}}function Sx(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new DF),t.forEach(function(r){var i=WF.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Er(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=Ct()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*MF(r/1960))-r,10e?16:e,lo===null)var r=!1;else{if(e=lo,lo=null,Td=0,Le&6)throw Error(X(331));var i=Le;for(Le|=4,ie=e.current;ie!==null;){var o=ie,s=o.child;if(ie.flags&16){var a=o.deletions;if(a!==null){for(var l=0;lCt()-mv?as(e,0):hv|=n),Rn(e,t)}function x2(e,t){t===0&&(e.mode&1?(t=Dc,Dc<<=1,!(Dc&130023424)&&(Dc=4194304)):t=1);var n=mn();e=Oi(e,t),e!==null&&(Yu(e,t,n),Rn(e,n))}function HF(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),x2(e,n)}function WF(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(X(314))}r!==null&&r.delete(t),x2(e,n)}var S2;S2=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||On.current)An=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return An=!1,RF(e,t,n);An=!!(e.flags&131072)}else An=!1,mt&&t.flags&1048576&&EC(t,wd,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Tf(e,t),e=t.pendingProps;var i=pa(t,sn.current);sa(t,n),i=lv(null,t,r,e,i,n);var o=uv();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pn(r)?(o=!0,yd(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,rv(t),i.updater=bp,t.stateNode=i,i._reactInternals=t,Kg(t,r,e,n),t=Xg(null,t,r,!0,o,n)):(t.tag=0,mt&&o&&X0(t),cn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Tf(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=KF(r),e=Ar(r,e),i){case 0:t=Yg(null,t,r,e,n);break e;case 1:t=yx(null,t,r,e,n);break e;case 11:t=mx(null,t,r,e,n);break e;case 14:t=gx(null,t,r,Ar(r.type,e),n);break e}throw Error(X(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ar(r,i),Yg(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ar(r,i),yx(e,t,r,i,n);case 3:e:{if(o2(t),e===null)throw Error(X(387));r=t.pendingProps,o=t.memoizedState,i=o.element,AC(e,t),Sd(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=ya(Error(X(423)),t),t=vx(e,t,r,n,i);break e}else if(r!==i){i=ya(Error(X(424)),t),t=vx(e,t,r,n,i);break e}else for(qn=vo(t.stateNode.containerInfo.firstChild),Gn=t,mt=!0,Rr=null,n=NC(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ha(),r===i){t=Pi(e,t,n);break e}cn(e,t,r,n)}t=t.child}return t;case 5:return IC(t),e===null&&Hg(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Lg(r,i)?s=null:o!==null&&Lg(r,o)&&(t.flags|=32),i2(e,t),cn(e,t,s,n),t.child;case 6:return e===null&&Hg(t),null;case 13:return s2(e,t,n);case 4:return iv(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ma(t,null,r,n):cn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ar(r,i),mx(e,t,r,i,n);case 7:return cn(e,t,t.pendingProps,n),t.child;case 8:return cn(e,t,t.pendingProps.children,n),t.child;case 12:return cn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,ot(bd,r._currentValue),r._currentValue=s,o!==null)if(Br(o.value,s)){if(o.children===i.children&&!On.current){t=Pi(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=$i(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Wg(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(X(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Wg(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}cn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,sa(t,n),i=gr(i),r=r(i),t.flags|=1,cn(e,t,r,n),t.child;case 14:return r=t.type,i=Ar(r,t.pendingProps),i=Ar(r.type,i),gx(e,t,r,i,n);case 15:return n2(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ar(r,i),Tf(e,t),t.tag=1,Pn(r)?(e=!0,yd(t)):e=!1,sa(t,n),PC(t,r,i),Kg(t,r,i,n),Xg(null,t,r,!0,e,n);case 19:return a2(e,t,n);case 22:return r2(e,t,n)}throw Error(X(156,t.tag))};function $2(e,t){return Y_(e,t)}function qF(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 fr(e,t,n,r){return new qF(e,t,n,r)}function wv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function KF(e){if(typeof e=="function")return wv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===M0)return 11;if(e===L0)return 14}return 2}function So(e,t){var n=e.alternate;return n===null?(n=fr(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 Pf(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")wv(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Hs:return ls(n.children,i,o,t);case j0:s=8,i|=8;break;case yg:return e=fr(12,n,t,i|2),e.elementType=yg,e.lanes=o,e;case vg:return e=fr(13,n,t,i),e.elementType=vg,e.lanes=o,e;case wg:return e=fr(19,n,t,i),e.elementType=wg,e.lanes=o,e;case R_:return kp(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case O_:s=10;break e;case P_:s=9;break e;case M0:s=11;break e;case L0:s=14;break e;case ro:s=16,r=null;break e}throw Error(X(130,e==null?e:typeof e,""))}return t=fr(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function ls(e,t,n,r){return e=fr(7,e,r,t),e.lanes=n,e}function kp(e,t,n,r){return e=fr(22,e,r,t),e.elementType=R_,e.lanes=n,e.stateNode={isHidden:!1},e}function am(e,t,n){return e=fr(6,e,null,t),e.lanes=n,e}function lm(e,t,n){return t=fr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function GF(e,t,n,r,i){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=Uh(0),this.expirationTimes=Uh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Uh(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function bv(e,t,n,r,i,o,s,a,l){return e=new GF(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=fr(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},rv(o),e}function YF(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(C2)}catch(e){console.error(e)}}C2(),E_.exports=er;var Zu=E_.exports,T2,Ox=Zu;T2=Ox.createRoot,Ox.hydrateRoot;function ks(e){const t=O.createContext(e);return[()=>{const r=O.useContext(t);if(r===void 0)throw new Error("useSafeContext must be used within a Provider");return r},t.Provider]}const[wr,ej]=ks();function tj({children:e,data:t}){return S.jsx(ej,{value:{debug:t.debug??!1,...t},children:e})}function nj(e){const[t,n]=O.useState(!!e),r=O.useCallback(()=>n(i=>!i),[]);return[t,r,n]}const[kv,rj]=ks();function ij({children:e}){const{defaultOpen:t}=wr(),n=nj(t??!1);return S.jsx(rj,{value:n,children:e})}function oj(e=10){return Math.random().toString(36).substring(2,e+2)}function Ev(e){return{sessionId:O.useRef(e+"|"+oj()).current,setSessionId:r=>{}}}function A2(e,t){return function(){return e.apply(t,arguments)}}const{toString:sj}=Object.prototype,{getPrototypeOf:_v}=Object,Ap=(e=>t=>{const n=sj.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ui=e=>(e=e.toLowerCase(),t=>Ap(t)===e),Op=e=>t=>typeof t===e,{isArray:Ia}=Array,_u=Op("undefined");function aj(e){return e!==null&&!_u(e)&&e.constructor!==null&&!_u(e.constructor)&&mr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const O2=ui("ArrayBuffer");function lj(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&O2(e.buffer),t}const uj=Op("string"),mr=Op("function"),P2=Op("number"),Pp=e=>e!==null&&typeof e=="object",cj=e=>e===!0||e===!1,Rf=e=>{if(Ap(e)!=="object")return!1;const t=_v(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},fj=ui("Date"),dj=ui("File"),pj=ui("Blob"),hj=ui("FileList"),mj=e=>Pp(e)&&mr(e.pipe),gj=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||mr(e.append)&&((t=Ap(e))==="formdata"||t==="object"&&mr(e.toString)&&e.toString()==="[object FormData]"))},yj=ui("URLSearchParams"),vj=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ec(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Ia(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const N2=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),I2=e=>!_u(e)&&e!==N2;function ly(){const{caseless:e}=I2(this)&&this||{},t={},n=(r,i)=>{const o=e&&R2(t,i)||i;Rf(t[o])&&Rf(r)?t[o]=ly(t[o],r):Rf(r)?t[o]=ly({},r):Ia(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(ec(t,(i,o)=>{n&&mr(i)?e[o]=A2(i,n):e[o]=i},{allOwnKeys:r}),e),bj=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),xj=(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)},Sj=(e,t,n,r)=>{let i,o,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&_v(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},$j=(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},kj=e=>{if(!e)return null;if(Ia(e))return e;let t=e.length;if(!P2(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Ej=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&_v(Uint8Array)),_j=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},Cj=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Tj=ui("HTMLFormElement"),Aj=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Px=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Oj=ui("RegExp"),D2=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ec(n,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(r[o]=s||i)}),Object.defineProperties(e,r)},Pj=e=>{D2(e,(t,n)=>{if(mr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(mr(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+"'")})}})},Rj=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Ia(e)?r(e):r(String(e).split(t)),n},Nj=()=>{},Ij=(e,t)=>(e=+e,Number.isFinite(e)?e:t),um="abcdefghijklmnopqrstuvwxyz",Rx="0123456789",F2={DIGIT:Rx,ALPHA:um,ALPHA_DIGIT:um+um.toUpperCase()+Rx},Dj=(e=16,t=F2.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Fj(e){return!!(e&&mr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const jj=e=>{const t=new Array(10),n=(r,i)=>{if(Pp(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=Ia(r)?[]:{};return ec(r,(s,a)=>{const l=n(s,i+1);!_u(l)&&(o[a]=l)}),t[i]=void 0,o}}return r};return n(e,0)},Mj=ui("AsyncFunction"),Lj=e=>e&&(Pp(e)||mr(e))&&mr(e.then)&&mr(e.catch),G={isArray:Ia,isArrayBuffer:O2,isBuffer:aj,isFormData:gj,isArrayBufferView:lj,isString:uj,isNumber:P2,isBoolean:cj,isObject:Pp,isPlainObject:Rf,isUndefined:_u,isDate:fj,isFile:dj,isBlob:pj,isRegExp:Oj,isFunction:mr,isStream:mj,isURLSearchParams:yj,isTypedArray:Ej,isFileList:hj,forEach:ec,merge:ly,extend:wj,trim:vj,stripBOM:bj,inherits:xj,toFlatObject:Sj,kindOf:Ap,kindOfTest:ui,endsWith:$j,toArray:kj,forEachEntry:_j,matchAll:Cj,isHTMLForm:Tj,hasOwnProperty:Px,hasOwnProp:Px,reduceDescriptors:D2,freezeMethods:Pj,toObjectSet:Rj,toCamelCase:Aj,noop:Nj,toFiniteNumber:Ij,findKey:R2,global:N2,isContextDefined:I2,ALPHABET:F2,generateString:Dj,isSpecCompliantForm:Fj,toJSONObject:jj,isAsyncFn:Mj,isThenable:Lj};function De(e,t,n,r,i){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),i&&(this.response=i)}G.inherits(De,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:G.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const j2=De.prototype,M2={};["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=>{M2[e]={value:e}});Object.defineProperties(De,M2);Object.defineProperty(j2,"isAxiosError",{value:!0});De.from=(e,t,n,r,i,o)=>{const s=Object.create(j2);return G.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),De.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const zj=null;function uy(e){return G.isPlainObject(e)||G.isArray(e)}function L2(e){return G.endsWith(e,"[]")?e.slice(0,-2):e}function Nx(e,t,n){return e?e.concat(t).map(function(i,o){return i=L2(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function Bj(e){return G.isArray(e)&&!e.some(uy)}const Uj=G.toFlatObject(G,{},null,function(t){return/^is[A-Z]/.test(t)});function Rp(e,t,n){if(!G.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=G.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,y){return!G.isUndefined(y[g])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&G.isSpecCompliantForm(t);if(!G.isFunction(i))throw new TypeError("visitor must be a function");function u(h){if(h===null)return"";if(G.isDate(h))return h.toISOString();if(!l&&G.isBlob(h))throw new De("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(h)||G.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function c(h,g,y){let m=h;if(h&&!y&&typeof h=="object"){if(G.endsWith(g,"{}"))g=r?g:g.slice(0,-2),h=JSON.stringify(h);else if(G.isArray(h)&&Bj(h)||(G.isFileList(h)||G.endsWith(g,"[]"))&&(m=G.toArray(h)))return g=L2(g),m.forEach(function(w,x){!(G.isUndefined(w)||w===null)&&t.append(s===!0?Nx([g],x,o):s===null?g:g+"[]",u(w))}),!1}return uy(h)?!0:(t.append(Nx(y,g,o),u(h)),!1)}const f=[],p=Object.assign(Uj,{defaultVisitor:c,convertValue:u,isVisitable:uy});function d(h,g){if(!G.isUndefined(h)){if(f.indexOf(h)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(h),G.forEach(h,function(m,v){(!(G.isUndefined(m)||m===null)&&i.call(t,m,G.isString(v)?v.trim():v,g,p))===!0&&d(m,g?g.concat(v):[v])}),f.pop()}}if(!G.isObject(e))throw new TypeError("data must be an object");return d(e),t}function Ix(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Cv(e,t){this._pairs=[],e&&Rp(e,this,t)}const z2=Cv.prototype;z2.append=function(t,n){this._pairs.push([t,n])};z2.toString=function(t){const n=t?function(r){return t.call(this,r,Ix)}:Ix;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Vj(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function B2(e,t,n){if(!t)return e;const r=n&&n.encode||Vj,i=n&&n.serialize;let o;if(i?o=i(t,n):o=G.isURLSearchParams(t)?t.toString():new Cv(t,n).toString(r),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Hj{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){G.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Dx=Hj,U2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Wj=typeof URLSearchParams<"u"?URLSearchParams:Cv,qj=typeof FormData<"u"?FormData:null,Kj=typeof Blob<"u"?Blob:null,Gj={isBrowser:!0,classes:{URLSearchParams:Wj,FormData:qj,Blob:Kj},protocols:["http","https","file","blob","url","data"]},V2=typeof window<"u"&&typeof document<"u",Yj=(e=>V2&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Xj=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Qj=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:V2,hasStandardBrowserEnv:Yj,hasStandardBrowserWebWorkerEnv:Xj},Symbol.toStringTag,{value:"Module"})),ei={...Qj,...Gj};function Jj(e,t){return Rp(e,new ei.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return ei.isNode&&G.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Zj(e){return G.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function e3(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return s=!s&&G.isArray(i)?i.length:s,l?(G.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!G.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],o)&&G.isArray(i[s])&&(i[s]=e3(i[s])),!a)}if(G.isFormData(e)&&G.isFunction(e.entries)){const n={};return G.forEachEntry(e,(r,i)=>{t(Zj(r),i,n,0)}),n}return null}function t3(e,t,n){if(G.isString(e))try{return(t||JSON.parse)(e),G.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Tv={transitional:U2,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=G.isObject(t);if(o&&G.isHTMLForm(t)&&(t=new FormData(t)),G.isFormData(t))return i?JSON.stringify(H2(t)):t;if(G.isArrayBuffer(t)||G.isBuffer(t)||G.isStream(t)||G.isFile(t)||G.isBlob(t))return t;if(G.isArrayBufferView(t))return t.buffer;if(G.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Jj(t,this.formSerializer).toString();if((a=G.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Rp(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),t3(t)):t}],transformResponse:[function(t){const n=this.transitional||Tv.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&G.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?De.from(a,De.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ei.classes.FormData,Blob:ei.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch"],e=>{Tv.headers[e]={}});const Av=Tv,n3=G.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"]),r3=e=>{const t={};let n,r,i;return e&&e.split(` +`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&n3[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Fx=Symbol("internals");function wl(e){return e&&String(e).trim().toLowerCase()}function Nf(e){return e===!1||e==null?e:G.isArray(e)?e.map(Nf):String(e)}function i3(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 o3=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function cm(e,t,n,r,i){if(G.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!G.isString(t)){if(G.isString(r))return t.indexOf(r)!==-1;if(G.isRegExp(r))return r.test(t)}}function s3(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function a3(e,t){const n=G.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,s){return this[r].call(this,t,i,o,s)},configurable:!0})})}class Np{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(a,l,u){const c=wl(l);if(!c)throw new Error("header name must be a non-empty string");const f=G.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=Nf(a))}const s=(a,l)=>G.forEach(a,(u,c)=>o(u,c,l));return G.isPlainObject(t)||t instanceof this.constructor?s(t,n):G.isString(t)&&(t=t.trim())&&!o3(t)?s(r3(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=wl(t),t){const r=G.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return i3(i);if(G.isFunction(n))return n.call(this,i,r);if(G.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=wl(t),t){const r=G.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||cm(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(s){if(s=wl(s),s){const a=G.findKey(r,s);a&&(!n||cm(r,r[a],a,n))&&(delete r[a],i=!0)}}return G.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||cm(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return G.forEach(this,(i,o)=>{const s=G.findKey(r,o);if(s){n[s]=Nf(i),delete n[o];return}const a=t?s3(o):String(o).trim();a!==o&&delete n[o],n[a]=Nf(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return G.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&G.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(i=>r.set(i)),r}static accessor(t){const r=(this[Fx]=this[Fx]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=wl(s);r[a]||(a3(i,s),r[a]=!0)}return G.isArray(t)?t.forEach(o):o(t),this}}Np.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);G.reduceDescriptors(Np.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});G.freezeMethods(Np);const ki=Np;function fm(e,t){const n=this||Av,r=t||n,i=ki.from(r.headers);let o=r.data;return G.forEach(e,function(a){o=a.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function W2(e){return!!(e&&e.__CANCEL__)}function tc(e,t,n){De.call(this,e??"canceled",De.ERR_CANCELED,t,n),this.name="CanceledError"}G.inherits(tc,De,{__CANCEL__:!0});function l3(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new De("Request failed with status code "+n.status,[De.ERR_BAD_REQUEST,De.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const u3=ei.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const s=[e+"="+encodeURIComponent(t)];G.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),G.isString(r)&&s.push("path="+r),G.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function c3(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function f3(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function q2(e,t){return e&&!c3(t)?f3(e,t):t}const d3=ei.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let s=o;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(s){const a=G.isString(s)?i(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function p3(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function h3(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[o];s||(s=u),n[i]=l,r[i]=u;let f=o,p=0;for(;f!==i;)p+=n[f++],f=f%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-s{const o=i.loaded,s=i.lengthComputable?i.total:void 0,a=o-n,l=r(a),u=o<=s;n=o;const c={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&u?(s-o)/l:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}const m3=typeof XMLHttpRequest<"u",g3=m3&&function(e){return new Promise(function(n,r){let i=e.data;const o=ki.from(e.headers).normalize();let{responseType:s,withXSRFToken:a}=e,l;function u(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let c;if(G.isFormData(i)){if(ei.hasStandardBrowserEnv||ei.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((c=o.getContentType())!==!1){const[g,...y]=c?c.split(";").map(m=>m.trim()).filter(Boolean):[];o.setContentType([g||"multipart/form-data",...y].join("; "))}}let f=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(g+":"+y))}const p=q2(e.baseURL,e.url);f.open(e.method.toUpperCase(),B2(p,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function d(){if(!f)return;const g=ki.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),m={data:!s||s==="text"||s==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:g,config:e,request:f};l3(function(w){n(w),u()},function(w){r(w),u()},m),f=null}if("onloadend"in f?f.onloadend=d:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(d)},f.onabort=function(){f&&(r(new De("Request aborted",De.ECONNABORTED,e,f)),f=null)},f.onerror=function(){r(new De("Network Error",De.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let y=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||U2;e.timeoutErrorMessage&&(y=e.timeoutErrorMessage),r(new De(y,m.clarifyTimeoutError?De.ETIMEDOUT:De.ECONNABORTED,e,f)),f=null},ei.hasStandardBrowserEnv&&(a&&G.isFunction(a)&&(a=a(e)),a||a!==!1&&d3(p))){const g=e.xsrfHeaderName&&e.xsrfCookieName&&u3.read(e.xsrfCookieName);g&&o.set(e.xsrfHeaderName,g)}i===void 0&&o.setContentType(null),"setRequestHeader"in f&&G.forEach(o.toJSON(),function(y,m){f.setRequestHeader(m,y)}),G.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),s&&s!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",jx(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",jx(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=g=>{f&&(r(!g||g.type?new tc(null,e,f):g),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const h=p3(p);if(h&&ei.protocols.indexOf(h)===-1){r(new De("Unsupported protocol "+h+":",De.ERR_BAD_REQUEST,e));return}f.send(i||null)})},cy={http:zj,xhr:g3};G.forEach(cy,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Mx=e=>`- ${e}`,y3=e=>G.isFunction(e)||e===null||e===!1,K2={getAdapter:e=>{e=G.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since : `+o.map(Mx).join(` -`):" "+Mx(o[0]):"as no adapter specified";throw new De("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:fy};function pm(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new tc(null,e)}function Lx(e){return pm(e),e.headers=ki.from(e.headers),e.data=dm.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),K2.getAdapter(e.adapter||Av.adapter)(e).then(function(r){return pm(e),r.data=dm.call(e,e.transformResponse,r),r.headers=ki.from(r.headers),r},function(r){return W2(r)||(pm(e),r&&r.response&&(r.response.data=dm.call(e,e.transformResponse,r.response),r.response.headers=ki.from(r.response.headers))),Promise.reject(r)})}const zx=e=>e instanceof ki?e.toJSON():e;function wa(e,t){t=t||{};const n={};function r(u,c,f){return G.isPlainObject(u)&&G.isPlainObject(c)?G.merge.call({caseless:f},u,c):G.isPlainObject(c)?G.merge({},c):G.isArray(c)?c.slice():c}function i(u,c,f){if(G.isUndefined(c)){if(!G.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function o(u,c){if(!G.isUndefined(c))return r(void 0,c)}function s(u,c){if(G.isUndefined(c)){if(!G.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function a(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,c)=>i(zx(u),zx(c),!0)};return G.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=l[c]||i,p=f(e[c],t[c],c);G.isUndefined(p)&&f!==a||(n[c]=p)}),n}const G2="1.6.7",Ov={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ov[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Bx={};Ov.transitional=function(t,n,r){function i(o,s){return"[Axios v"+G2+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,a)=>{if(t===!1)throw new De(i(s," has been removed"+(n?" in "+n:"")),De.ERR_DEPRECATED);return n&&!Bx[s]&&(Bx[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,a):!0}};function v3(e,t,n){if(typeof e!="object")throw new De("options must be an object",De.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=t[o];if(s){const a=e[o],l=a===void 0||s(a,o,e);if(l!==!0)throw new De("option "+o+" must be "+l,De.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new De("Unknown option "+o,De.ERR_BAD_OPTION)}}const dy={assertOptions:v3,validators:Ov},qi=dy.validators;class Pd{constructor(t){this.defaults=t,this.interceptors={request:new Dx,response:new Dx}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+o):r.stack=o}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=wa(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&dy.assertOptions(r,{silentJSONParsing:qi.transitional(qi.boolean),forcedJSONParsing:qi.transitional(qi.boolean),clarifyTimeoutError:qi.transitional(qi.boolean)},!1),i!=null&&(G.isFunction(i)?n.paramsSerializer={serialize:i}:dy.assertOptions(i,{encode:qi.function,serialize:qi.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&G.merge(o.common,o[n.method]);o&&G.forEach(["delete","get","head","post","put","patch","common"],h=>{delete o[h]}),n.headers=ki.concat(s,o);const a=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let c,f=0,p;if(!l){const h=[Lx.bind(this),void 0];for(h.unshift.apply(h,a),h.push.apply(h,u),p=h.length,c=Promise.resolve(n);f{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{r.subscribe(a),o=a}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,a){r.reason||(r.reason=new tc(o,s,a),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 Pv(function(i){t=i}),cancel:t}}}const w3=Pv;function b3(e){return function(n){return e.apply(null,n)}}function x3(e){return G.isObject(e)&&e.isAxiosError===!0}const py={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(py).forEach(([e,t])=>{py[t]=e});const S3=py;function Y2(e){const t=new If(e),n=A2(If.prototype.request,t);return G.extend(n,If.prototype,t,{allOwnKeys:!0}),G.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Y2(wa(e,i))},n}const Rt=Y2(Av);Rt.Axios=If;Rt.CanceledError=tc;Rt.CancelToken=w3;Rt.isCancel=W2;Rt.VERSION=G2;Rt.toFormData=Np;Rt.AxiosError=De;Rt.Cancel=Rt.CanceledError;Rt.all=function(t){return Promise.all(t)};Rt.spread=b3;Rt.isAxiosError=x3;Rt.mergeConfig=wa;Rt.AxiosHeaders=ki;Rt.formToJSON=e=>H2(G.isHTMLForm(e)?new FormData(e):e);Rt.getAdapter=K2.getAdapter;Rt.HttpStatusCode=S3;Rt.default=Rt;const $3=Rt;function k3({apiUrl:e,sessionId:t,botToken:n}){const r=$3.create({baseURL:e,headers:{"X-Session-Id":t,"X-Bot-Token":n}});return r.interceptors.request.use(i=>(i.data={...i.data,session_id:t},i)),r}function _3(e){const t=[];return e&&e.forEach(n=>{n.from_user?t.push({from:"user",content:n.message,id:n.id,timestamp:new Date(n.created_at)}):t.push({from:"bot",id:n.id,timestamp:new Date(n.created_at),type:"text",response:{text:n.message}})}),t}async function E3(e){const{data:t}=await e.get("/chat/init"),n=_3(t.history);return{...t,history:n}}const[X2,C3]=ks();function T3({children:e}){const t=wr(),{sessionId:n}=_v((t==null?void 0:t.token)||"defaultToken"),r=O.useMemo(()=>k3({botToken:t==null?void 0:t.token,sessionId:n,apiUrl:t==null?void 0:t.apiUrl}),[t,n]);return S.jsx(C3,{value:{axiosInstance:r},children:e})}var Da={};/** +`):" "+Mx(o[0]):"as no adapter specified";throw new De("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:cy};function dm(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new tc(null,e)}function Lx(e){return dm(e),e.headers=ki.from(e.headers),e.data=fm.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),K2.getAdapter(e.adapter||Av.adapter)(e).then(function(r){return dm(e),r.data=fm.call(e,e.transformResponse,r),r.headers=ki.from(r.headers),r},function(r){return W2(r)||(dm(e),r&&r.response&&(r.response.data=fm.call(e,e.transformResponse,r.response),r.response.headers=ki.from(r.response.headers))),Promise.reject(r)})}const zx=e=>e instanceof ki?e.toJSON():e;function wa(e,t){t=t||{};const n={};function r(u,c,f){return G.isPlainObject(u)&&G.isPlainObject(c)?G.merge.call({caseless:f},u,c):G.isPlainObject(c)?G.merge({},c):G.isArray(c)?c.slice():c}function i(u,c,f){if(G.isUndefined(c)){if(!G.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function o(u,c){if(!G.isUndefined(c))return r(void 0,c)}function s(u,c){if(G.isUndefined(c)){if(!G.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function a(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,c)=>i(zx(u),zx(c),!0)};return G.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=l[c]||i,p=f(e[c],t[c],c);G.isUndefined(p)&&f!==a||(n[c]=p)}),n}const G2="1.6.7",Ov={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ov[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Bx={};Ov.transitional=function(t,n,r){function i(o,s){return"[Axios v"+G2+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,a)=>{if(t===!1)throw new De(i(s," has been removed"+(n?" in "+n:"")),De.ERR_DEPRECATED);return n&&!Bx[s]&&(Bx[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,a):!0}};function v3(e,t,n){if(typeof e!="object")throw new De("options must be an object",De.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=t[o];if(s){const a=e[o],l=a===void 0||s(a,o,e);if(l!==!0)throw new De("option "+o+" must be "+l,De.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new De("Unknown option "+o,De.ERR_BAD_OPTION)}}const fy={assertOptions:v3,validators:Ov},qi=fy.validators;class Pd{constructor(t){this.defaults=t,this.interceptors={request:new Dx,response:new Dx}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+o):r.stack=o}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=wa(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&fy.assertOptions(r,{silentJSONParsing:qi.transitional(qi.boolean),forcedJSONParsing:qi.transitional(qi.boolean),clarifyTimeoutError:qi.transitional(qi.boolean)},!1),i!=null&&(G.isFunction(i)?n.paramsSerializer={serialize:i}:fy.assertOptions(i,{encode:qi.function,serialize:qi.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&G.merge(o.common,o[n.method]);o&&G.forEach(["delete","get","head","post","put","patch","common"],h=>{delete o[h]}),n.headers=ki.concat(s,o);const a=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let c,f=0,p;if(!l){const h=[Lx.bind(this),void 0];for(h.unshift.apply(h,a),h.push.apply(h,u),p=h.length,c=Promise.resolve(n);f{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{r.subscribe(a),o=a}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,a){r.reason||(r.reason=new tc(o,s,a),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 Pv(function(i){t=i}),cancel:t}}}const w3=Pv;function b3(e){return function(n){return e.apply(null,n)}}function x3(e){return G.isObject(e)&&e.isAxiosError===!0}const dy={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(dy).forEach(([e,t])=>{dy[t]=e});const S3=dy;function Y2(e){const t=new If(e),n=A2(If.prototype.request,t);return G.extend(n,If.prototype,t,{allOwnKeys:!0}),G.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Y2(wa(e,i))},n}const Rt=Y2(Av);Rt.Axios=If;Rt.CanceledError=tc;Rt.CancelToken=w3;Rt.isCancel=W2;Rt.VERSION=G2;Rt.toFormData=Rp;Rt.AxiosError=De;Rt.Cancel=Rt.CanceledError;Rt.all=function(t){return Promise.all(t)};Rt.spread=b3;Rt.isAxiosError=x3;Rt.mergeConfig=wa;Rt.AxiosHeaders=ki;Rt.formToJSON=e=>H2(G.isHTMLForm(e)?new FormData(e):e);Rt.getAdapter=K2.getAdapter;Rt.HttpStatusCode=S3;Rt.default=Rt;const $3=Rt;function k3({apiUrl:e,sessionId:t,botToken:n}){const r=$3.create({baseURL:e,headers:{"X-Session-Id":t,"X-Bot-Token":n}});return r.interceptors.request.use(i=>(i.data={...i.data,session_id:t},i)),r}function E3(e){const t=[];return e&&e.forEach(n=>{n.from_user?t.push({from:"user",content:n.message,id:n.id,timestamp:new Date(n.created_at)}):t.push({from:"bot",id:n.id,timestamp:new Date(n.created_at),type:"text",response:{text:n.message}})}),t}async function _3(e){const{data:t}=await e.get("/chat/init"),n=E3(t.history);return{...t,history:n}}const[X2,C3]=ks();function T3({children:e}){const t=wr(),{sessionId:n}=Ev((t==null?void 0:t.token)||"defaultToken"),r=O.useMemo(()=>k3({botToken:t==null?void 0:t.token,sessionId:n,apiUrl:t==null?void 0:t.apiUrl}),[t,n]);return S.jsx(C3,{value:{axiosInstance:r},children:e})}var Da={};/** * @license React * react-dom-server-legacy.browser.production.min.js * @@ -50,13 +50,13 @@ Error generating stack: `+o.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Q2=O;function we(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n