@mypatientspace/chatbot-widget 1.0.75 → 1.0.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +66 -10
- package/dist/mypatientspace-demo.es.js +1710 -1696
- package/dist/mypatientspace-demo.umd.js +214 -214
- package/dist/mypatientspace-widget.es.js +1249 -1250
- package/dist/mypatientspace-widget.umd.js +34 -34
- package/package.json +1 -1
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
(function(Ol,$l){typeof exports=="object"&&typeof module<"u"?module.exports=$l():typeof define=="function"&&define.amd?define($l):(Ol=typeof globalThis<"u"?globalThis:Ol||self,Ol.ChatbotWidgetDemo=$l())})(this,(function(){"use strict";function Ol(l,r){for(var s=0;s<r.length;s++){const u=r[s];if(typeof u!="string"&&!Array.isArray(u)){for(const d in u)if(d!=="default"&&!(d in l)){const h=Object.getOwnPropertyDescriptor(u,d);h&&Object.defineProperty(l,d,h.get?h:{enumerable:!0,get:()=>u[d]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}function $l(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var vr={exports:{}},Bl={};var cs;function Eg(){if(cs)return Bl;cs=1;var l=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function s(u,d,h){var y=null;if(h!==void 0&&(y=""+h),d.key!==void 0&&(y=""+d.key),"key"in d){h={};for(var T in d)T!=="key"&&(h[T]=d[T])}else h=d;return d=h.ref,{$$typeof:l,type:u,key:y,ref:d!==void 0?d:null,props:h}}return Bl.Fragment=r,Bl.jsx=s,Bl.jsxs=s,Bl}var ss;function zg(){return ss||(ss=1,vr.exports=Eg()),vr.exports}var v=zg(),xr={exports:{}},Dl={},Sr={exports:{}},Cr={};var fs;function Ag(){return fs||(fs=1,(function(l){function r($,K){var oe=$.length;$.push(K);e:for(;0<oe;){var _e=oe-1>>>1,Oe=$[_e];if(0<d(Oe,K))$[_e]=K,$[oe]=Oe,oe=_e;else break e}}function s($){return $.length===0?null:$[0]}function u($){if($.length===0)return null;var K=$[0],oe=$.pop();if(oe!==K){$[0]=oe;e:for(var _e=0,Oe=$.length,x=Oe>>>1;_e<x;){var j=2*(_e+1)-1,J=$[j],P=j+1,se=$[P];if(0>d(J,oe))P<Oe&&0>d(se,J)?($[_e]=se,$[P]=oe,_e=P):($[_e]=J,$[j]=oe,_e=j);else if(P<Oe&&0>d(se,oe))$[_e]=se,$[P]=oe,_e=P;else break e}}return K}function d($,K){var oe=$.sortIndex-K.sortIndex;return oe!==0?oe:$.id-K.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;l.unstable_now=function(){return h.now()}}else{var y=Date,T=y.now();l.unstable_now=function(){return y.now()-T}}var C=[],g=[],A=1,z=null,U=3,X=!1,G=!1,Y=!1,R=!1,Z=typeof setTimeout=="function"?setTimeout:null,ee=typeof clearTimeout=="function"?clearTimeout:null,V=typeof setImmediate<"u"?setImmediate:null;function re($){for(var K=s(g);K!==null;){if(K.callback===null)u(g);else if(K.startTime<=$)u(g),K.sortIndex=K.expirationTime,r(C,K);else break;K=s(g)}}function q($){if(Y=!1,re($),!G)if(s(C)!==null)G=!0,F||(F=!0,Ke());else{var K=s(g);K!==null&&Dt(q,K.startTime-$)}}var F=!1,W=-1,ke=5,Xe=-1;function L(){return R?!0:!(l.unstable_now()-Xe<ke)}function Ce(){if(R=!1,F){var $=l.unstable_now();Xe=$;var K=!0;try{e:{G=!1,Y&&(Y=!1,ee(W),W=-1),X=!0;var oe=U;try{t:{for(re($),z=s(C);z!==null&&!(z.expirationTime>$&&L());){var _e=z.callback;if(typeof _e=="function"){z.callback=null,U=z.priorityLevel;var Oe=_e(z.expirationTime<=$);if($=l.unstable_now(),typeof Oe=="function"){z.callback=Oe,re($),K=!0;break t}z===s(C)&&u(C),re($)}else u(C);z=s(C)}if(z!==null)K=!0;else{var x=s(g);x!==null&&Dt(q,x.startTime-$),K=!1}}break e}finally{z=null,U=oe,X=!1}K=void 0}}finally{K?Ke():F=!1}}}var Ke;if(typeof V=="function")Ke=function(){V(Ce)};else if(typeof MessageChannel<"u"){var we=new MessageChannel,tt=we.port2;we.port1.onmessage=Ce,Ke=function(){tt.postMessage(null)}}else Ke=function(){Z(Ce,0)};function Dt($,K){W=Z(function(){$(l.unstable_now())},K)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function($){$.callback=null},l.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ke=0<$?Math.floor(1e3/$):5},l.unstable_getCurrentPriorityLevel=function(){return U},l.unstable_next=function($){switch(U){case 1:case 2:case 3:var K=3;break;default:K=U}var oe=U;U=K;try{return $()}finally{U=oe}},l.unstable_requestPaint=function(){R=!0},l.unstable_runWithPriority=function($,K){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var oe=U;U=$;try{return K()}finally{U=oe}},l.unstable_scheduleCallback=function($,K,oe){var _e=l.unstable_now();switch(typeof oe=="object"&&oe!==null?(oe=oe.delay,oe=typeof oe=="number"&&0<oe?_e+oe:_e):oe=_e,$){case 1:var Oe=-1;break;case 2:Oe=250;break;case 5:Oe=1073741823;break;case 4:Oe=1e4;break;default:Oe=5e3}return Oe=oe+Oe,$={id:A++,callback:K,priorityLevel:$,startTime:oe,expirationTime:Oe,sortIndex:-1},oe>_e?($.sortIndex=oe,r(g,$),s(C)===null&&$===s(g)&&(Y?(ee(W),W=-1):Y=!0,Dt(q,oe-_e))):($.sortIndex=Oe,r(C,$),G||X||(G=!0,F||(F=!0,Ke()))),$},l.unstable_shouldYield=L,l.unstable_wrapCallback=function($){var K=U;return function(){var oe=U;U=K;try{return $.apply(this,arguments)}finally{U=oe}}}})(Cr)),Cr}var ds;function Mg(){return ds||(ds=1,Sr.exports=Ag()),Sr.exports}var Tr={exports:{}},ce={};var hs;function wg(){if(hs)return ce;hs=1;var l=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),y=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),U=Symbol.iterator;function X(x){return x===null||typeof x!="object"?null:(x=U&&x[U]||x["@@iterator"],typeof x=="function"?x:null)}var G={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Y=Object.assign,R={};function Z(x,j,J){this.props=x,this.context=j,this.refs=R,this.updater=J||G}Z.prototype.isReactComponent={},Z.prototype.setState=function(x,j){if(typeof x!="object"&&typeof x!="function"&&x!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,x,j,"setState")},Z.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function ee(){}ee.prototype=Z.prototype;function V(x,j,J){this.props=x,this.context=j,this.refs=R,this.updater=J||G}var re=V.prototype=new ee;re.constructor=V,Y(re,Z.prototype),re.isPureReactComponent=!0;var q=Array.isArray;function F(){}var W={H:null,A:null,T:null,S:null},ke=Object.prototype.hasOwnProperty;function Xe(x,j,J){var P=J.ref;return{$$typeof:l,type:x,key:j,ref:P!==void 0?P:null,props:J}}function L(x,j){return Xe(x.type,j,x.props)}function Ce(x){return typeof x=="object"&&x!==null&&x.$$typeof===l}function Ke(x){var j={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(J){return j[J]})}var we=/\/+/g;function tt(x,j){return typeof x=="object"&&x!==null&&x.key!=null?Ke(""+x.key):j.toString(36)}function Dt(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(F,F):(x.status="pending",x.then(function(j){x.status==="pending"&&(x.status="fulfilled",x.value=j)},function(j){x.status==="pending"&&(x.status="rejected",x.reason=j)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function $(x,j,J,P,se){var ue=typeof x;(ue==="undefined"||ue==="boolean")&&(x=null);var Te=!1;if(x===null)Te=!0;else switch(ue){case"bigint":case"string":case"number":Te=!0;break;case"object":switch(x.$$typeof){case l:case r:Te=!0;break;case A:return Te=x._init,$(Te(x._payload),j,J,P,se)}}if(Te)return se=se(x),Te=P===""?"."+tt(x,0):P,q(se)?(J="",Te!=null&&(J=Te.replace(we,"$&/")+"/"),$(se,j,J,"",function(ga){return ga})):se!=null&&(Ce(se)&&(se=L(se,J+(se.key==null||x&&x.key===se.key?"":(""+se.key).replace(we,"$&/")+"/")+Te)),j.push(se)),1;Te=0;var dt=P===""?".":P+":";if(q(x))for(var Ze=0;Ze<x.length;Ze++)P=x[Ze],ue=dt+tt(P,Ze),Te+=$(P,j,J,ue,se);else if(Ze=X(x),typeof Ze=="function")for(x=Ze.call(x),Ze=0;!(P=x.next()).done;)P=P.value,ue=dt+tt(P,Ze++),Te+=$(P,j,J,ue,se);else if(ue==="object"){if(typeof x.then=="function")return $(Dt(x),j,J,P,se);throw j=String(x),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.")}return Te}function K(x,j,J){if(x==null)return x;var P=[],se=0;return $(x,P,"","",function(ue){return j.call(J,ue,se++)}),P}function oe(x){if(x._status===-1){var j=x._result;j=j(),j.then(function(J){(x._status===0||x._status===-1)&&(x._status=1,x._result=J)},function(J){(x._status===0||x._status===-1)&&(x._status=2,x._result=J)}),x._status===-1&&(x._status=0,x._result=j)}if(x._status===1)return x._result.default;throw x._result}var _e=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var j=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(j))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)},Oe={map:K,forEach:function(x,j,J){K(x,function(){j.apply(this,arguments)},J)},count:function(x){var j=0;return K(x,function(){j++}),j},toArray:function(x){return K(x,function(j){return j})||[]},only:function(x){if(!Ce(x))throw Error("React.Children.only expected to receive a single React element child.");return x}};return ce.Activity=z,ce.Children=Oe,ce.Component=Z,ce.Fragment=s,ce.Profiler=d,ce.PureComponent=V,ce.StrictMode=u,ce.Suspense=C,ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=W,ce.__COMPILER_RUNTIME={__proto__:null,c:function(x){return W.H.useMemoCache(x)}},ce.cache=function(x){return function(){return x.apply(null,arguments)}},ce.cacheSignal=function(){return null},ce.cloneElement=function(x,j,J){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var P=Y({},x.props),se=x.key;if(j!=null)for(ue in j.key!==void 0&&(se=""+j.key),j)!ke.call(j,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&j.ref===void 0||(P[ue]=j[ue]);var ue=arguments.length-2;if(ue===1)P.children=J;else if(1<ue){for(var Te=Array(ue),dt=0;dt<ue;dt++)Te[dt]=arguments[dt+2];P.children=Te}return Xe(x.type,se,P)},ce.createContext=function(x){return x={$$typeof:y,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:h,_context:x},x},ce.createElement=function(x,j,J){var P,se={},ue=null;if(j!=null)for(P in j.key!==void 0&&(ue=""+j.key),j)ke.call(j,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(se[P]=j[P]);var Te=arguments.length-2;if(Te===1)se.children=J;else if(1<Te){for(var dt=Array(Te),Ze=0;Ze<Te;Ze++)dt[Ze]=arguments[Ze+2];se.children=dt}if(x&&x.defaultProps)for(P in Te=x.defaultProps,Te)se[P]===void 0&&(se[P]=Te[P]);return Xe(x,ue,se)},ce.createRef=function(){return{current:null}},ce.forwardRef=function(x){return{$$typeof:T,render:x}},ce.isValidElement=Ce,ce.lazy=function(x){return{$$typeof:A,_payload:{_status:-1,_result:x},_init:oe}},ce.memo=function(x,j){return{$$typeof:g,type:x,compare:j===void 0?null:j}},ce.startTransition=function(x){var j=W.T,J={};W.T=J;try{var P=x(),se=W.S;se!==null&&se(J,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(F,_e)}catch(ue){_e(ue)}finally{j!==null&&J.types!==null&&(j.types=J.types),W.T=j}},ce.unstable_useCacheRefresh=function(){return W.H.useCacheRefresh()},ce.use=function(x){return W.H.use(x)},ce.useActionState=function(x,j,J){return W.H.useActionState(x,j,J)},ce.useCallback=function(x,j){return W.H.useCallback(x,j)},ce.useContext=function(x){return W.H.useContext(x)},ce.useDebugValue=function(){},ce.useDeferredValue=function(x,j){return W.H.useDeferredValue(x,j)},ce.useEffect=function(x,j){return W.H.useEffect(x,j)},ce.useEffectEvent=function(x){return W.H.useEffectEvent(x)},ce.useId=function(){return W.H.useId()},ce.useImperativeHandle=function(x,j,J){return W.H.useImperativeHandle(x,j,J)},ce.useInsertionEffect=function(x,j){return W.H.useInsertionEffect(x,j)},ce.useLayoutEffect=function(x,j){return W.H.useLayoutEffect(x,j)},ce.useMemo=function(x,j){return W.H.useMemo(x,j)},ce.useOptimistic=function(x,j){return W.H.useOptimistic(x,j)},ce.useReducer=function(x,j,J){return W.H.useReducer(x,j,J)},ce.useRef=function(x){return W.H.useRef(x)},ce.useState=function(x){return W.H.useState(x)},ce.useSyncExternalStore=function(x,j,J){return W.H.useSyncExternalStore(x,j,J)},ce.useTransition=function(){return W.H.useTransition()},ce.version="19.2.3",ce}var ps;function Er(){return ps||(ps=1,Tr.exports=wg()),Tr.exports}var zr={exports:{}},bt={};var gs;function _g(){if(gs)return bt;gs=1;var l=Er();function r(C){var g="https://react.dev/errors/"+C;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var A=2;A<arguments.length;A++)g+="&args[]="+encodeURIComponent(arguments[A])}return"Minified React error #"+C+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var u={d:{f:s,r:function(){throw Error(r(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},d=Symbol.for("react.portal");function h(C,g,A){var z=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:z==null?null:""+z,children:C,containerInfo:g,implementation:A}}var y=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function T(C,g){if(C==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return bt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,bt.createPortal=function(C,g){var A=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(r(299));return h(C,g,null,A)},bt.flushSync=function(C){var g=y.T,A=u.p;try{if(y.T=null,u.p=2,C)return C()}finally{y.T=g,u.p=A,u.d.f()}},bt.preconnect=function(C,g){typeof C=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,u.d.C(C,g))},bt.prefetchDNS=function(C){typeof C=="string"&&u.d.D(C)},bt.preinit=function(C,g){if(typeof C=="string"&&g&&typeof g.as=="string"){var A=g.as,z=T(A,g.crossOrigin),U=typeof g.integrity=="string"?g.integrity:void 0,X=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;A==="style"?u.d.S(C,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:z,integrity:U,fetchPriority:X}):A==="script"&&u.d.X(C,{crossOrigin:z,integrity:U,fetchPriority:X,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},bt.preinitModule=function(C,g){if(typeof C=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var A=T(g.as,g.crossOrigin);u.d.M(C,{crossOrigin:A,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&u.d.M(C)},bt.preload=function(C,g){if(typeof C=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var A=g.as,z=T(A,g.crossOrigin);u.d.L(C,A,{crossOrigin:z,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},bt.preloadModule=function(C,g){if(typeof C=="string")if(g){var A=T(g.as,g.crossOrigin);u.d.m(C,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:A,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else u.d.m(C)},bt.requestFormReset=function(C){u.d.r(C)},bt.unstable_batchedUpdates=function(C,g){return C(g)},bt.useFormState=function(C,g,A){return y.H.useFormState(C,g,A)},bt.useFormStatus=function(){return y.H.useHostTransitionStatus()},bt.version="19.2.3",bt}var ms;function Og(){if(ms)return zr.exports;ms=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(r){console.error(r)}}return l(),zr.exports=_g(),zr.exports}var ys;function $g(){if(ys)return Dl;ys=1;var l=Mg(),r=Er(),s=Og();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function y(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function T(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function C(e){if(h(e)!==e)throw Error(u(188))}function g(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(u(188));return t!==e?null:e}for(var n=e,a=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(a=i.return,a!==null){n=a;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return C(i),e;if(o===a)return C(i),t;o=o.sibling}throw Error(u(188))}if(n.return!==a.return)n=i,a=o;else{for(var c=!1,f=i.child;f;){if(f===n){c=!0,n=i,a=o;break}if(f===a){c=!0,a=i,n=o;break}f=f.sibling}if(!c){for(f=o.child;f;){if(f===n){c=!0,n=o,a=i;break}if(f===a){c=!0,a=o,n=i;break}f=f.sibling}if(!c)throw Error(u(189))}}if(n.alternate!==a)throw Error(u(190))}if(n.tag!==3)throw Error(u(188));return n.stateNode.current===n?e:t}function A(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=A(e),t!==null)return t;e=e.sibling}return null}var z=Object.assign,U=Symbol.for("react.element"),X=Symbol.for("react.transitional.element"),G=Symbol.for("react.portal"),Y=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),ee=Symbol.for("react.consumer"),V=Symbol.for("react.context"),re=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),ke=Symbol.for("react.lazy"),Xe=Symbol.for("react.activity"),L=Symbol.for("react.memo_cache_sentinel"),Ce=Symbol.iterator;function Ke(e){return e===null||typeof e!="object"?null:(e=Ce&&e[Ce]||e["@@iterator"],typeof e=="function"?e:null)}var we=Symbol.for("react.client.reference");function tt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===we?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Y:return"Fragment";case Z:return"Profiler";case R:return"StrictMode";case q:return"Suspense";case F:return"SuspenseList";case Xe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case G:return"Portal";case V:return e.displayName||"Context";case ee:return(e._context.displayName||"Context")+".Consumer";case re:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case W:return t=e.displayName||null,t!==null?t:tt(e.type)||"Memo";case ke:t=e._payload,e=e._init;try{return tt(e(t))}catch{}}return null}var Dt=Array.isArray,$=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},_e=[],Oe=-1;function x(e){return{current:e}}function j(e){0>Oe||(e.current=_e[Oe],_e[Oe]=null,Oe--)}function J(e,t){Oe++,_e[Oe]=e.current,e.current=t}var P=x(null),se=x(null),ue=x(null),Te=x(null);function dt(e,t){switch(J(ue,t),J(se,e),J(P,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Zp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Zp(t),e=Kp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}j(P),J(P,e)}function Ze(){j(P),j(se),j(ue)}function ga(e){e.memoizedState!==null&&J(Te,e);var t=P.current,n=Kp(t,e.type);t!==n&&(J(se,e),J(P,n))}function Qa(e){se.current===e&&(j(P),j(se)),Te.current===e&&(j(Te),Di._currentValue=oe)}var Gl,eo;function an(e){if(Gl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Gl=t&&t[1]||"",eo=-1<n.stack.indexOf(`
|
|
1
|
+
(function(Ol,$l){typeof exports=="object"&&typeof module<"u"?module.exports=$l():typeof define=="function"&&define.amd?define($l):(Ol=typeof globalThis<"u"?globalThis:Ol||self,Ol.ChatbotWidgetDemo=$l())})(this,(function(){"use strict";function Ol(l,r){for(var s=0;s<r.length;s++){const u=r[s];if(typeof u!="string"&&!Array.isArray(u)){for(const d in u)if(d!=="default"&&!(d in l)){const h=Object.getOwnPropertyDescriptor(u,d);h&&Object.defineProperty(l,d,h.get?h:{enumerable:!0,get:()=>u[d]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}function $l(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var vr={exports:{}},Bl={};var cs;function zg(){if(cs)return Bl;cs=1;var l=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function s(u,d,h){var y=null;if(h!==void 0&&(y=""+h),d.key!==void 0&&(y=""+d.key),"key"in d){h={};for(var T in d)T!=="key"&&(h[T]=d[T])}else h=d;return d=h.ref,{$$typeof:l,type:u,key:y,ref:d!==void 0?d:null,props:h}}return Bl.Fragment=r,Bl.jsx=s,Bl.jsxs=s,Bl}var ss;function Ag(){return ss||(ss=1,vr.exports=zg()),vr.exports}var v=Ag(),xr={exports:{}},Dl={},Sr={exports:{}},Cr={};var fs;function Mg(){return fs||(fs=1,(function(l){function r($,J){var oe=$.length;$.push(J);e:for(;0<oe;){var _e=oe-1>>>1,Oe=$[_e];if(0<d(Oe,J))$[_e]=J,$[oe]=Oe,oe=_e;else break e}}function s($){return $.length===0?null:$[0]}function u($){if($.length===0)return null;var J=$[0],oe=$.pop();if(oe!==J){$[0]=oe;e:for(var _e=0,Oe=$.length,x=Oe>>>1;_e<x;){var j=2*(_e+1)-1,W=$[j],I=j+1,fe=$[I];if(0>d(W,oe))I<Oe&&0>d(fe,W)?($[_e]=fe,$[I]=oe,_e=I):($[_e]=W,$[j]=oe,_e=j);else if(I<Oe&&0>d(fe,oe))$[_e]=fe,$[I]=oe,_e=I;else break e}}return J}function d($,J){var oe=$.sortIndex-J.sortIndex;return oe!==0?oe:$.id-J.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;l.unstable_now=function(){return h.now()}}else{var y=Date,T=y.now();l.unstable_now=function(){return y.now()-T}}var S=[],g=[],A=1,z=null,U=3,V=!1,Q=!1,Y=!1,D=!1,K=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null;function re($){for(var J=s(g);J!==null;){if(J.callback===null)u(g);else if(J.startTime<=$)u(g),J.sortIndex=J.expirationTime,r(S,J);else break;J=s(g)}}function L($){if(Y=!1,re($),!Q)if(s(S)!==null)Q=!0,ae||(ae=!0,Ke());else{var J=s(g);J!==null&&Dt(L,J.startTime-$)}}var ae=!1,G=-1,He=5,Xe=-1;function q(){return D?!0:!(l.unstable_now()-Xe<He)}function Ce(){if(D=!1,ae){var $=l.unstable_now();Xe=$;var J=!0;try{e:{Q=!1,Y&&(Y=!1,P(G),G=-1),V=!0;var oe=U;try{t:{for(re($),z=s(S);z!==null&&!(z.expirationTime>$&&q());){var _e=z.callback;if(typeof _e=="function"){z.callback=null,U=z.priorityLevel;var Oe=_e(z.expirationTime<=$);if($=l.unstable_now(),typeof Oe=="function"){z.callback=Oe,re($),J=!0;break t}z===s(S)&&u(S),re($)}else u(S);z=s(S)}if(z!==null)J=!0;else{var x=s(g);x!==null&&Dt(L,x.startTime-$),J=!1}}break e}finally{z=null,U=oe,V=!1}J=void 0}}finally{J?Ke():ae=!1}}}var Ke;if(typeof Z=="function")Ke=function(){Z(Ce)};else if(typeof MessageChannel<"u"){var we=new MessageChannel,tt=we.port2;we.port1.onmessage=Ce,Ke=function(){tt.postMessage(null)}}else Ke=function(){K(Ce,0)};function Dt($,J){G=K(function(){$(l.unstable_now())},J)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function($){$.callback=null},l.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):He=0<$?Math.floor(1e3/$):5},l.unstable_getCurrentPriorityLevel=function(){return U},l.unstable_next=function($){switch(U){case 1:case 2:case 3:var J=3;break;default:J=U}var oe=U;U=J;try{return $()}finally{U=oe}},l.unstable_requestPaint=function(){D=!0},l.unstable_runWithPriority=function($,J){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var oe=U;U=$;try{return J()}finally{U=oe}},l.unstable_scheduleCallback=function($,J,oe){var _e=l.unstable_now();switch(typeof oe=="object"&&oe!==null?(oe=oe.delay,oe=typeof oe=="number"&&0<oe?_e+oe:_e):oe=_e,$){case 1:var Oe=-1;break;case 2:Oe=250;break;case 5:Oe=1073741823;break;case 4:Oe=1e4;break;default:Oe=5e3}return Oe=oe+Oe,$={id:A++,callback:J,priorityLevel:$,startTime:oe,expirationTime:Oe,sortIndex:-1},oe>_e?($.sortIndex=oe,r(g,$),s(S)===null&&$===s(g)&&(Y?(P(G),G=-1):Y=!0,Dt(L,oe-_e))):($.sortIndex=Oe,r(S,$),Q||V||(Q=!0,ae||(ae=!0,Ke()))),$},l.unstable_shouldYield=q,l.unstable_wrapCallback=function($){var J=U;return function(){var oe=U;U=J;try{return $.apply(this,arguments)}finally{U=oe}}}})(Cr)),Cr}var ds;function wg(){return ds||(ds=1,Sr.exports=Mg()),Sr.exports}var Tr={exports:{}},se={};var hs;function _g(){if(hs)return se;hs=1;var l=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),y=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),U=Symbol.iterator;function V(x){return x===null||typeof x!="object"?null:(x=U&&x[U]||x["@@iterator"],typeof x=="function"?x:null)}var Q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Y=Object.assign,D={};function K(x,j,W){this.props=x,this.context=j,this.refs=D,this.updater=W||Q}K.prototype.isReactComponent={},K.prototype.setState=function(x,j){if(typeof x!="object"&&typeof x!="function"&&x!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,x,j,"setState")},K.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function P(){}P.prototype=K.prototype;function Z(x,j,W){this.props=x,this.context=j,this.refs=D,this.updater=W||Q}var re=Z.prototype=new P;re.constructor=Z,Y(re,K.prototype),re.isPureReactComponent=!0;var L=Array.isArray;function ae(){}var G={H:null,A:null,T:null,S:null},He=Object.prototype.hasOwnProperty;function Xe(x,j,W){var I=W.ref;return{$$typeof:l,type:x,key:j,ref:I!==void 0?I:null,props:W}}function q(x,j){return Xe(x.type,j,x.props)}function Ce(x){return typeof x=="object"&&x!==null&&x.$$typeof===l}function Ke(x){var j={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(W){return j[W]})}var we=/\/+/g;function tt(x,j){return typeof x=="object"&&x!==null&&x.key!=null?Ke(""+x.key):j.toString(36)}function Dt(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(ae,ae):(x.status="pending",x.then(function(j){x.status==="pending"&&(x.status="fulfilled",x.value=j)},function(j){x.status==="pending"&&(x.status="rejected",x.reason=j)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function $(x,j,W,I,fe){var ue=typeof x;(ue==="undefined"||ue==="boolean")&&(x=null);var Te=!1;if(x===null)Te=!0;else switch(ue){case"bigint":case"string":case"number":Te=!0;break;case"object":switch(x.$$typeof){case l:case r:Te=!0;break;case A:return Te=x._init,$(Te(x._payload),j,W,I,fe)}}if(Te)return fe=fe(x),Te=I===""?"."+tt(x,0):I,L(fe)?(W="",Te!=null&&(W=Te.replace(we,"$&/")+"/"),$(fe,j,W,"",function(ga){return ga})):fe!=null&&(Ce(fe)&&(fe=q(fe,W+(fe.key==null||x&&x.key===fe.key?"":(""+fe.key).replace(we,"$&/")+"/")+Te)),j.push(fe)),1;Te=0;var ht=I===""?".":I+":";if(L(x))for(var Ze=0;Ze<x.length;Ze++)I=x[Ze],ue=ht+tt(I,Ze),Te+=$(I,j,W,ue,fe);else if(Ze=V(x),typeof Ze=="function")for(x=Ze.call(x),Ze=0;!(I=x.next()).done;)I=I.value,ue=ht+tt(I,Ze++),Te+=$(I,j,W,ue,fe);else if(ue==="object"){if(typeof x.then=="function")return $(Dt(x),j,W,I,fe);throw j=String(x),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.")}return Te}function J(x,j,W){if(x==null)return x;var I=[],fe=0;return $(x,I,"","",function(ue){return j.call(W,ue,fe++)}),I}function oe(x){if(x._status===-1){var j=x._result;j=j(),j.then(function(W){(x._status===0||x._status===-1)&&(x._status=1,x._result=W)},function(W){(x._status===0||x._status===-1)&&(x._status=2,x._result=W)}),x._status===-1&&(x._status=0,x._result=j)}if(x._status===1)return x._result.default;throw x._result}var _e=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var j=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(j))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)},Oe={map:J,forEach:function(x,j,W){J(x,function(){j.apply(this,arguments)},W)},count:function(x){var j=0;return J(x,function(){j++}),j},toArray:function(x){return J(x,function(j){return j})||[]},only:function(x){if(!Ce(x))throw Error("React.Children.only expected to receive a single React element child.");return x}};return se.Activity=z,se.Children=Oe,se.Component=K,se.Fragment=s,se.Profiler=d,se.PureComponent=Z,se.StrictMode=u,se.Suspense=S,se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=G,se.__COMPILER_RUNTIME={__proto__:null,c:function(x){return G.H.useMemoCache(x)}},se.cache=function(x){return function(){return x.apply(null,arguments)}},se.cacheSignal=function(){return null},se.cloneElement=function(x,j,W){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var I=Y({},x.props),fe=x.key;if(j!=null)for(ue in j.key!==void 0&&(fe=""+j.key),j)!He.call(j,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&j.ref===void 0||(I[ue]=j[ue]);var ue=arguments.length-2;if(ue===1)I.children=W;else if(1<ue){for(var Te=Array(ue),ht=0;ht<ue;ht++)Te[ht]=arguments[ht+2];I.children=Te}return Xe(x.type,fe,I)},se.createContext=function(x){return x={$$typeof:y,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:h,_context:x},x},se.createElement=function(x,j,W){var I,fe={},ue=null;if(j!=null)for(I in j.key!==void 0&&(ue=""+j.key),j)He.call(j,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(fe[I]=j[I]);var Te=arguments.length-2;if(Te===1)fe.children=W;else if(1<Te){for(var ht=Array(Te),Ze=0;Ze<Te;Ze++)ht[Ze]=arguments[Ze+2];fe.children=ht}if(x&&x.defaultProps)for(I in Te=x.defaultProps,Te)fe[I]===void 0&&(fe[I]=Te[I]);return Xe(x,ue,fe)},se.createRef=function(){return{current:null}},se.forwardRef=function(x){return{$$typeof:T,render:x}},se.isValidElement=Ce,se.lazy=function(x){return{$$typeof:A,_payload:{_status:-1,_result:x},_init:oe}},se.memo=function(x,j){return{$$typeof:g,type:x,compare:j===void 0?null:j}},se.startTransition=function(x){var j=G.T,W={};G.T=W;try{var I=x(),fe=G.S;fe!==null&&fe(W,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(ae,_e)}catch(ue){_e(ue)}finally{j!==null&&W.types!==null&&(j.types=W.types),G.T=j}},se.unstable_useCacheRefresh=function(){return G.H.useCacheRefresh()},se.use=function(x){return G.H.use(x)},se.useActionState=function(x,j,W){return G.H.useActionState(x,j,W)},se.useCallback=function(x,j){return G.H.useCallback(x,j)},se.useContext=function(x){return G.H.useContext(x)},se.useDebugValue=function(){},se.useDeferredValue=function(x,j){return G.H.useDeferredValue(x,j)},se.useEffect=function(x,j){return G.H.useEffect(x,j)},se.useEffectEvent=function(x){return G.H.useEffectEvent(x)},se.useId=function(){return G.H.useId()},se.useImperativeHandle=function(x,j,W){return G.H.useImperativeHandle(x,j,W)},se.useInsertionEffect=function(x,j){return G.H.useInsertionEffect(x,j)},se.useLayoutEffect=function(x,j){return G.H.useLayoutEffect(x,j)},se.useMemo=function(x,j){return G.H.useMemo(x,j)},se.useOptimistic=function(x,j){return G.H.useOptimistic(x,j)},se.useReducer=function(x,j,W){return G.H.useReducer(x,j,W)},se.useRef=function(x){return G.H.useRef(x)},se.useState=function(x){return G.H.useState(x)},se.useSyncExternalStore=function(x,j,W){return G.H.useSyncExternalStore(x,j,W)},se.useTransition=function(){return G.H.useTransition()},se.version="19.2.3",se}var ps;function Er(){return ps||(ps=1,Tr.exports=_g()),Tr.exports}var zr={exports:{}},vt={};var gs;function Og(){if(gs)return vt;gs=1;var l=Er();function r(S){var g="https://react.dev/errors/"+S;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var A=2;A<arguments.length;A++)g+="&args[]="+encodeURIComponent(arguments[A])}return"Minified React error #"+S+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var u={d:{f:s,r:function(){throw Error(r(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},d=Symbol.for("react.portal");function h(S,g,A){var z=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:z==null?null:""+z,children:S,containerInfo:g,implementation:A}}var y=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function T(S,g){if(S==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return vt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,vt.createPortal=function(S,g){var A=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(r(299));return h(S,g,null,A)},vt.flushSync=function(S){var g=y.T,A=u.p;try{if(y.T=null,u.p=2,S)return S()}finally{y.T=g,u.p=A,u.d.f()}},vt.preconnect=function(S,g){typeof S=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,u.d.C(S,g))},vt.prefetchDNS=function(S){typeof S=="string"&&u.d.D(S)},vt.preinit=function(S,g){if(typeof S=="string"&&g&&typeof g.as=="string"){var A=g.as,z=T(A,g.crossOrigin),U=typeof g.integrity=="string"?g.integrity:void 0,V=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;A==="style"?u.d.S(S,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:z,integrity:U,fetchPriority:V}):A==="script"&&u.d.X(S,{crossOrigin:z,integrity:U,fetchPriority:V,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},vt.preinitModule=function(S,g){if(typeof S=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var A=T(g.as,g.crossOrigin);u.d.M(S,{crossOrigin:A,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&u.d.M(S)},vt.preload=function(S,g){if(typeof S=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var A=g.as,z=T(A,g.crossOrigin);u.d.L(S,A,{crossOrigin:z,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},vt.preloadModule=function(S,g){if(typeof S=="string")if(g){var A=T(g.as,g.crossOrigin);u.d.m(S,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:A,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else u.d.m(S)},vt.requestFormReset=function(S){u.d.r(S)},vt.unstable_batchedUpdates=function(S,g){return S(g)},vt.useFormState=function(S,g,A){return y.H.useFormState(S,g,A)},vt.useFormStatus=function(){return y.H.useHostTransitionStatus()},vt.version="19.2.3",vt}var ms;function $g(){if(ms)return zr.exports;ms=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(r){console.error(r)}}return l(),zr.exports=Og(),zr.exports}var ys;function Bg(){if(ys)return Dl;ys=1;var l=wg(),r=Er(),s=$g();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function y(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function T(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function S(e){if(h(e)!==e)throw Error(u(188))}function g(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(u(188));return t!==e?null:e}for(var n=e,a=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(a=i.return,a!==null){n=a;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return S(i),e;if(o===a)return S(i),t;o=o.sibling}throw Error(u(188))}if(n.return!==a.return)n=i,a=o;else{for(var c=!1,f=i.child;f;){if(f===n){c=!0,n=i,a=o;break}if(f===a){c=!0,a=i,n=o;break}f=f.sibling}if(!c){for(f=o.child;f;){if(f===n){c=!0,n=o,a=i;break}if(f===a){c=!0,a=o,n=i;break}f=f.sibling}if(!c)throw Error(u(189))}}if(n.alternate!==a)throw Error(u(190))}if(n.tag!==3)throw Error(u(188));return n.stateNode.current===n?e:t}function A(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=A(e),t!==null)return t;e=e.sibling}return null}var z=Object.assign,U=Symbol.for("react.element"),V=Symbol.for("react.transitional.element"),Q=Symbol.for("react.portal"),Y=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),K=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),Z=Symbol.for("react.context"),re=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),ae=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),He=Symbol.for("react.lazy"),Xe=Symbol.for("react.activity"),q=Symbol.for("react.memo_cache_sentinel"),Ce=Symbol.iterator;function Ke(e){return e===null||typeof e!="object"?null:(e=Ce&&e[Ce]||e["@@iterator"],typeof e=="function"?e:null)}var we=Symbol.for("react.client.reference");function tt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===we?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Y:return"Fragment";case K:return"Profiler";case D:return"StrictMode";case L:return"Suspense";case ae:return"SuspenseList";case Xe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Q:return"Portal";case Z:return e.displayName||"Context";case P:return(e._context.displayName||"Context")+".Consumer";case re:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case G:return t=e.displayName||null,t!==null?t:tt(e.type)||"Memo";case He:t=e._payload,e=e._init;try{return tt(e(t))}catch{}}return null}var Dt=Array.isArray,$=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},_e=[],Oe=-1;function x(e){return{current:e}}function j(e){0>Oe||(e.current=_e[Oe],_e[Oe]=null,Oe--)}function W(e,t){Oe++,_e[Oe]=e.current,e.current=t}var I=x(null),fe=x(null),ue=x(null),Te=x(null);function ht(e,t){switch(W(ue,t),W(fe,e),W(I,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Kp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Kp(t),e=Jp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}j(I),W(I,e)}function Ze(){j(I),j(fe),j(ue)}function ga(e){e.memoizedState!==null&&W(Te,e);var t=I.current,n=Jp(t,e.type);t!==n&&(W(fe,e),W(I,n))}function Qa(e){fe.current===e&&(j(I),j(fe)),Te.current===e&&(j(Te),Di._currentValue=oe)}var Gl,eo;function an(e){if(Gl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Gl=t&&t[1]||"",eo=-1<n.stack.indexOf(`
|
|
2
2
|
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
3
|
`+Gl+e+eo}var Xa=!1;function Ql(e,t){if(!e||Xa)return"";Xa=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(O){var _=O}Reflect.construct(e,[],H)}else{try{H.call()}catch(O){_=O}e.call(H.prototype)}}else{try{throw Error()}catch(O){_=O}(H=e())&&typeof H.catch=="function"&&H.catch(function(){})}}catch(O){if(O&&_&&typeof O.stack=="string")return[O.stack,_.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=a.DetermineComponentFrameRoot(),c=o[0],f=o[1];if(c&&f){var m=c.split(`
|
|
4
4
|
`),w=f.split(`
|
|
5
5
|
`);for(i=a=0;a<m.length&&!m[a].includes("DetermineComponentFrameRoot");)a++;for(;i<w.length&&!w[i].includes("DetermineComponentFrameRoot");)i++;if(a===m.length||i===w.length)for(a=m.length-1,i=w.length-1;1<=a&&0<=i&&m[a]!==w[i];)i--;for(;1<=a&&0<=i;a--,i--)if(m[a]!==w[i]){if(a!==1||i!==1)do if(a--,i--,0>i||m[a]!==w[i]){var B=`
|
|
6
6
|
`+m[a].replace(" at new "," at ");return e.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",e.displayName)),B}while(1<=a&&0<=i);break}}}finally{Xa=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?an(n):""}function pe(e,t){switch(e.tag){case 26:case 27:case 5:return an(e.type);case 16:return an("Lazy");case 13:return e.child!==t&&t!==null?an("Suspense Fallback"):an("Suspense");case 19:return an("SuspenseList");case 0:case 15:return Ql(e.type,!1);case 11:return Ql(e.type.render,!1);case 1:return Ql(e.type,!0);case 31:return an("Activity");default:return""}}function me(e){try{var t="",n=null;do t+=pe(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
|
|
7
7
|
Error generating stack: `+a.message+`
|
|
8
|
-
`+a.stack}}var ge=Object.prototype.hasOwnProperty,De=l.unstable_scheduleCallback,fe=l.unstable_cancelCallback,Ne=l.unstable_shouldYield,Je=l.unstable_requestPaint,Re=l.unstable_now,bn=l.unstable_getCurrentPriorityLevel,zf=l.unstable_ImmediatePriority,Af=l.unstable_UserBlockingPriority,to=l.unstable_NormalPriority,Ib=l.unstable_LowPriority,Mf=l.unstable_IdlePriority,Pb=l.log,e1=l.unstable_setDisableYieldValue,Xl=null,Rt=null;function Ln(e){if(typeof Pb=="function"&&e1(e),Rt&&typeof Rt.setStrictMode=="function")try{Rt.setStrictMode(Xl,e)}catch{}}var Nt=Math.clz32?Math.clz32:a1,t1=Math.log,n1=Math.LN2;function a1(e){return e>>>=0,e===0?32:31-(t1(e)/n1|0)|0}var no=256,ao=262144,lo=4194304;function ma(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function io(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var i=0,o=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var f=a&134217727;return f!==0?(a=f&~o,a!==0?i=ma(a):(c&=f,c!==0?i=ma(c):n||(n=f&~e,n!==0&&(i=ma(n))))):(f=a&~o,f!==0?i=ma(f):c!==0?i=ma(c):n||(n=a&~e,n!==0&&(i=ma(n)))),i===0?0:t!==0&&t!==i&&(t&o)===0&&(o=i&-i,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:i}function Vl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function l1(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function wf(){var e=lo;return lo<<=1,(lo&62914560)===0&&(lo=4194304),e}function Fr(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Zl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function i1(e,t,n,a,i,o){var c=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var f=e.entanglements,m=e.expirationTimes,w=e.hiddenUpdates;for(n=c&~n;0<n;){var B=31-Nt(n),H=1<<B;f[B]=0,m[B]=-1;var _=w[B];if(_!==null)for(w[B]=null,B=0;B<_.length;B++){var O=_[B];O!==null&&(O.lane&=-536870913)}n&=~H}a!==0&&_f(e,a,0),o!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=o&~(c&~t))}function _f(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Nt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function Of(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-Nt(n),i=1<<a;i&t|e[a]&t&&(e[a]|=t),n&=~i}}function $f(e,t){var n=t&-t;return n=(n&42)!==0?1:Ir(n),(n&(e.suspendedLanes|t))!==0?0:n}function Ir(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Pr(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Bf(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:yg(e.type))}function Df(e,t){var n=K.p;try{return K.p=e,t()}finally{K.p=n}}var Yn=Math.random().toString(36).slice(2),ht="__reactFiber$"+Yn,Et="__reactProps$"+Yn,Va="__reactContainer$"+Yn,eu="__reactEvents$"+Yn,o1="__reactListeners$"+Yn,r1="__reactHandles$"+Yn,Rf="__reactResources$"+Yn,Kl="__reactMarker$"+Yn;function tu(e){delete e[ht],delete e[Et],delete e[eu],delete e[o1],delete e[r1]}function Za(e){var t=e[ht];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Va]||n[ht]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=tg(e);e!==null;){if(n=e[ht])return n;e=tg(e)}return t}e=n,n=e.parentNode}return null}function Ka(e){if(e=e[ht]||e[Va]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Jl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Ja(e){var t=e[Rf];return t||(t=e[Rf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ct(e){e[Kl]=!0}var Nf=new Set,jf={};function ya(e,t){Wa(e,t),Wa(e+"Capture",t)}function Wa(e,t){for(jf[e]=t,e=0;e<t.length;e++)Nf.add(t[e])}var u1=RegExp("^[: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]*$"),Hf={},kf={};function c1(e){return ge.call(kf,e)?!0:ge.call(Hf,e)?!1:u1.test(e)?kf[e]=!0:(Hf[e]=!0,!1)}function oo(e,t,n){if(c1(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function ro(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function vn(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function Qt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Uf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function s1(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var i=a.get,o=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(c){n=""+c,o.call(this,c)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(c){n=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function nu(e){if(!e._valueTracker){var t=Uf(e)?"checked":"value";e._valueTracker=s1(e,t,""+e[t])}}function qf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Uf(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function uo(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}}var f1=/[\n"\\]/g;function Xt(e){return e.replace(f1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function au(e,t,n,a,i,o,c,f){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Qt(t)):e.value!==""+Qt(t)&&(e.value=""+Qt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?lu(e,c,Qt(t)):n!=null?lu(e,c,Qt(n)):a!=null&&e.removeAttribute("value"),i==null&&o!=null&&(e.defaultChecked=!!o),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.name=""+Qt(f):e.removeAttribute("name")}function Lf(e,t,n,a,i,o,c,f){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){nu(e);return}n=n!=null?""+Qt(n):"",t=t!=null?""+Qt(t):n,f||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=f?e.checked:!!a,e.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),nu(e)}function lu(e,t,n){t==="number"&&uo(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Fa(e,t,n,a){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Qt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,a&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Yf(e,t,n){if(t!=null&&(t=""+Qt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Qt(n):""}function Gf(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(u(92));if(Dt(a)){if(1<a.length)throw Error(u(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=Qt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),nu(e)}function Ia(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var d1=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Qf(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||d1.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Xf(e,t,n){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var i in t)a=t[i],t.hasOwnProperty(i)&&n[i]!==a&&Qf(e,i,a)}else for(var o in t)t.hasOwnProperty(o)&&Qf(e,o,t[o])}function iu(e){if(e.indexOf("-")===-1)return!1;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 h1=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),p1=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function co(e){return p1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function xn(){}var ou=null;function ru(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Pa=null,el=null;function Vf(e){var t=Ka(e);if(t&&(e=t.stateNode)){var n=e[Et]||null;e:switch(e=t.stateNode,t.type){case"input":if(au(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Xt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var i=a[Et]||null;if(!i)throw Error(u(90));au(a,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&qf(a)}break e;case"textarea":Yf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Fa(e,!!n.multiple,t,!1)}}}var uu=!1;function Zf(e,t,n){if(uu)return e(t,n);uu=!0;try{var a=e(t);return a}finally{if(uu=!1,(Pa!==null||el!==null)&&(Fo(),Pa&&(t=Pa,e=el,el=Pa=null,Vf(t),e)))for(t=0;t<e.length;t++)Vf(e[t])}}function Wl(e,t){var n=e.stateNode;if(n===null)return null;var a=n[Et]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(u(231,t,typeof n));return n}var Sn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cu=!1;if(Sn)try{var Fl={};Object.defineProperty(Fl,"passive",{get:function(){cu=!0}}),window.addEventListener("test",Fl,Fl),window.removeEventListener("test",Fl,Fl)}catch{cu=!1}var Gn=null,su=null,so=null;function Kf(){if(so)return so;var e,t=su,n=t.length,a,i="value"in Gn?Gn.value:Gn.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var c=n-e;for(a=1;a<=c&&t[n-a]===i[o-a];a++);return so=i.slice(e,1<a?1-a:void 0)}function fo(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ho(){return!0}function Jf(){return!1}function zt(e){function t(n,a,i,o,c){this._reactName=n,this._targetInst=i,this.type=a,this.nativeEvent=o,this.target=c,this.currentTarget=null;for(var f in e)e.hasOwnProperty(f)&&(n=e[f],this[f]=n?n(o):o[f]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?ho:Jf,this.isPropagationStopped=Jf,this}return z(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ho)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ho)},persist:function(){},isPersistent:ho}),t}var ba={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},po=zt(ba),Il=z({},ba,{view:0,detail:0}),g1=zt(Il),fu,du,Pl,go=z({},Il,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Pl&&(Pl&&e.type==="mousemove"?(fu=e.screenX-Pl.screenX,du=e.screenY-Pl.screenY):du=fu=0,Pl=e),fu)},movementY:function(e){return"movementY"in e?e.movementY:du}}),Wf=zt(go),m1=z({},go,{dataTransfer:0}),y1=zt(m1),b1=z({},Il,{relatedTarget:0}),hu=zt(b1),v1=z({},ba,{animationName:0,elapsedTime:0,pseudoElement:0}),x1=zt(v1),S1=z({},ba,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),C1=zt(S1),T1=z({},ba,{data:0}),Ff=zt(T1),E1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},z1={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},A1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function M1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=A1[e])?!!t[e]:!1}function pu(){return M1}var w1=z({},Il,{key:function(e){if(e.key){var t=E1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=fo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?z1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pu,charCode:function(e){return e.type==="keypress"?fo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?fo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),_1=zt(w1),O1=z({},go,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),If=zt(O1),$1=z({},Il,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pu}),B1=zt($1),D1=z({},ba,{propertyName:0,elapsedTime:0,pseudoElement:0}),R1=zt(D1),N1=z({},go,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),j1=zt(N1),H1=z({},ba,{newState:0,oldState:0}),k1=zt(H1),U1=[9,13,27,32],gu=Sn&&"CompositionEvent"in window,ei=null;Sn&&"documentMode"in document&&(ei=document.documentMode);var q1=Sn&&"TextEvent"in window&&!ei,Pf=Sn&&(!gu||ei&&8<ei&&11>=ei),ed=" ",td=!1;function nd(e,t){switch(e){case"keyup":return U1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ad(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var tl=!1;function L1(e,t){switch(e){case"compositionend":return ad(t);case"keypress":return t.which!==32?null:(td=!0,ed);case"textInput":return e=t.data,e===ed&&td?null:e;default:return null}}function Y1(e,t){if(tl)return e==="compositionend"||!gu&&nd(e,t)?(e=Kf(),so=su=Gn=null,tl=!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.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Pf&&t.locale!=="ko"?null:t.data;default:return null}}var G1={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ld(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!G1[e.type]:t==="textarea"}function id(e,t,n,a){Pa?el?el.push(a):el=[a]:Pa=a,t=lr(t,"onChange"),0<t.length&&(n=new po("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var ti=null,ni=null;function Q1(e){Lp(e,0)}function mo(e){var t=Jl(e);if(qf(t))return e}function od(e,t){if(e==="change")return t}var rd=!1;if(Sn){var mu;if(Sn){var yu="oninput"in document;if(!yu){var ud=document.createElement("div");ud.setAttribute("oninput","return;"),yu=typeof ud.oninput=="function"}mu=yu}else mu=!1;rd=mu&&(!document.documentMode||9<document.documentMode)}function cd(){ti&&(ti.detachEvent("onpropertychange",sd),ni=ti=null)}function sd(e){if(e.propertyName==="value"&&mo(ni)){var t=[];id(t,ni,e,ru(e)),Zf(Q1,t)}}function X1(e,t,n){e==="focusin"?(cd(),ti=t,ni=n,ti.attachEvent("onpropertychange",sd)):e==="focusout"&&cd()}function V1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return mo(ni)}function Z1(e,t){if(e==="click")return mo(t)}function K1(e,t){if(e==="input"||e==="change")return mo(t)}function J1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jt=typeof Object.is=="function"?Object.is:J1;function ai(e,t){if(jt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var i=n[a];if(!ge.call(t,i)||!jt(e[i],t[i]))return!1}return!0}function fd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dd(e,t){var n=fd(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=fd(n)}}function hd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?hd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function pd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=uo(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=uo(e.document)}return t}function bu(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")}var W1=Sn&&"documentMode"in document&&11>=document.documentMode,nl=null,vu=null,li=null,xu=!1;function gd(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;xu||nl==null||nl!==uo(a)||(a=nl,"selectionStart"in a&&bu(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),li&&ai(li,a)||(li=a,a=lr(vu,"onSelect"),0<a.length&&(t=new po("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=nl)))}function va(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var al={animationend:va("Animation","AnimationEnd"),animationiteration:va("Animation","AnimationIteration"),animationstart:va("Animation","AnimationStart"),transitionrun:va("Transition","TransitionRun"),transitionstart:va("Transition","TransitionStart"),transitioncancel:va("Transition","TransitionCancel"),transitionend:va("Transition","TransitionEnd")},Su={},md={};Sn&&(md=document.createElement("div").style,"AnimationEvent"in window||(delete al.animationend.animation,delete al.animationiteration.animation,delete al.animationstart.animation),"TransitionEvent"in window||delete al.transitionend.transition);function xa(e){if(Su[e])return Su[e];if(!al[e])return e;var t=al[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in md)return Su[e]=t[n];return e}var yd=xa("animationend"),bd=xa("animationiteration"),vd=xa("animationstart"),F1=xa("transitionrun"),I1=xa("transitionstart"),P1=xa("transitioncancel"),xd=xa("transitionend"),Sd=new Map,Cu="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Cu.push("scrollEnd");function ln(e,t){Sd.set(e,t),ya(t,[e])}var yo=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Vt=[],ll=0,Tu=0;function bo(){for(var e=ll,t=Tu=ll=0;t<e;){var n=Vt[t];Vt[t++]=null;var a=Vt[t];Vt[t++]=null;var i=Vt[t];Vt[t++]=null;var o=Vt[t];if(Vt[t++]=null,a!==null&&i!==null){var c=a.pending;c===null?i.next=i:(i.next=c.next,c.next=i),a.pending=i}o!==0&&Cd(n,i,o)}}function vo(e,t,n,a){Vt[ll++]=e,Vt[ll++]=t,Vt[ll++]=n,Vt[ll++]=a,Tu|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Eu(e,t,n,a){return vo(e,t,n,a),xo(e)}function Sa(e,t){return vo(e,null,null,t),xo(e)}function Cd(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var i=!1,o=e.return;o!==null;)o.childLanes|=n,a=o.alternate,a!==null&&(a.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(i=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,i&&t!==null&&(i=31-Nt(n),e=o.hiddenUpdates,a=e[i],a===null?e[i]=[t]:a.push(t),t.lane=n|536870912),o):null}function xo(e){if(50<Ai)throw Ai=0,Dc=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var il={};function ev(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ht(e,t,n,a){return new ev(e,t,n,a)}function zu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Cn(e,t){var n=e.alternate;return n===null?(n=Ht(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&65011712,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.refCleanup=e.refCleanup,n}function Td(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function So(e,t,n,a,i,o){var c=0;if(a=e,typeof e=="function")zu(e)&&(c=1);else if(typeof e=="string")c=ix(e,n,P.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Xe:return e=Ht(31,n,t,i),e.elementType=Xe,e.lanes=o,e;case Y:return Ca(n.children,i,o,t);case R:c=8,i|=24;break;case Z:return e=Ht(12,n,t,i|2),e.elementType=Z,e.lanes=o,e;case q:return e=Ht(13,n,t,i),e.elementType=q,e.lanes=o,e;case F:return e=Ht(19,n,t,i),e.elementType=F,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case V:c=10;break e;case ee:c=9;break e;case re:c=11;break e;case W:c=14;break e;case ke:c=16,a=null;break e}c=29,n=Error(u(130,e===null?"null":typeof e,"")),a=null}return t=Ht(c,n,t,i),t.elementType=e,t.type=a,t.lanes=o,t}function Ca(e,t,n,a){return e=Ht(7,e,a,t),e.lanes=n,e}function Au(e,t,n){return e=Ht(6,e,null,t),e.lanes=n,e}function Ed(e){var t=Ht(18,null,null,0);return t.stateNode=e,t}function Mu(e,t,n){return t=Ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var zd=new WeakMap;function Zt(e,t){if(typeof e=="object"&&e!==null){var n=zd.get(e);return n!==void 0?n:(t={value:e,source:t,stack:me(t)},zd.set(e,t),t)}return{value:e,source:t,stack:me(t)}}var ol=[],rl=0,Co=null,ii=0,Kt=[],Jt=0,Qn=null,hn=1,pn="";function Tn(e,t){ol[rl++]=ii,ol[rl++]=Co,Co=e,ii=t}function Ad(e,t,n){Kt[Jt++]=hn,Kt[Jt++]=pn,Kt[Jt++]=Qn,Qn=e;var a=hn;e=pn;var i=32-Nt(a)-1;a&=~(1<<i),n+=1;var o=32-Nt(t)+i;if(30<o){var c=i-i%5;o=(a&(1<<c)-1).toString(32),a>>=c,i-=c,hn=1<<32-Nt(t)+i|n<<i|a,pn=o+e}else hn=1<<o|n<<i|a,pn=e}function wu(e){e.return!==null&&(Tn(e,1),Ad(e,1,0))}function _u(e){for(;e===Co;)Co=ol[--rl],ol[rl]=null,ii=ol[--rl],ol[rl]=null;for(;e===Qn;)Qn=Kt[--Jt],Kt[Jt]=null,pn=Kt[--Jt],Kt[Jt]=null,hn=Kt[--Jt],Kt[Jt]=null}function Md(e,t){Kt[Jt++]=hn,Kt[Jt++]=pn,Kt[Jt++]=Qn,hn=t.id,pn=t.overflow,Qn=e}var pt=null,Ge=null,Se=!1,Xn=null,Wt=!1,Ou=Error(u(519));function Vn(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw oi(Zt(t,e)),Ou}function wd(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[ht]=e,t[Et]=a,n){case"dialog":be("cancel",t),be("close",t);break;case"iframe":case"object":case"embed":be("load",t);break;case"video":case"audio":for(n=0;n<wi.length;n++)be(wi[n],t);break;case"source":be("error",t);break;case"img":case"image":case"link":be("error",t),be("load",t);break;case"details":be("toggle",t);break;case"input":be("invalid",t),Lf(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":be("invalid",t);break;case"textarea":be("invalid",t),Gf(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||Xp(t.textContent,n)?(a.popover!=null&&(be("beforetoggle",t),be("toggle",t)),a.onScroll!=null&&be("scroll",t),a.onScrollEnd!=null&&be("scrollend",t),a.onClick!=null&&(t.onclick=xn),t=!0):t=!1,t||Vn(e,!0)}function _d(e){for(pt=e.return;pt;)switch(pt.tag){case 5:case 31:case 13:Wt=!1;return;case 27:case 3:Wt=!0;return;default:pt=pt.return}}function ul(e){if(e!==pt)return!1;if(!Se)return _d(e),Se=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Kc(e.type,e.memoizedProps)),n=!n),n&&Ge&&Vn(e),_d(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ge=eg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ge=eg(e)}else t===27?(t=Ge,oa(e.type)?(e=Pc,Pc=null,Ge=e):Ge=t):Ge=pt?It(e.stateNode.nextSibling):null;return!0}function Ta(){Ge=pt=null,Se=!1}function $u(){var e=Xn;return e!==null&&(_t===null?_t=e:_t.push.apply(_t,e),Xn=null),e}function oi(e){Xn===null?Xn=[e]:Xn.push(e)}var Bu=x(null),Ea=null,En=null;function Zn(e,t,n){J(Bu,t._currentValue),t._currentValue=n}function zn(e){e._currentValue=Bu.current,j(Bu)}function Du(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function Ru(e,t,n,a){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var o=i.dependencies;if(o!==null){var c=i.child;o=o.firstContext;e:for(;o!==null;){var f=o;o=i;for(var m=0;m<t.length;m++)if(f.context===t[m]){o.lanes|=n,f=o.alternate,f!==null&&(f.lanes|=n),Du(o.return,n,e),a||(c=null);break e}o=f.next}}else if(i.tag===18){if(c=i.return,c===null)throw Error(u(341));c.lanes|=n,o=c.alternate,o!==null&&(o.lanes|=n),Du(c,n,e),c=null}else c=i.child;if(c!==null)c.return=i;else for(c=i;c!==null;){if(c===e){c=null;break}if(i=c.sibling,i!==null){i.return=c.return,c=i;break}c=c.return}i=c}}function cl(e,t,n,a){e=null;for(var i=t,o=!1;i!==null;){if(!o){if((i.flags&524288)!==0)o=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var c=i.alternate;if(c===null)throw Error(u(387));if(c=c.memoizedProps,c!==null){var f=i.type;jt(i.pendingProps.value,c.value)||(e!==null?e.push(f):e=[f])}}else if(i===Te.current){if(c=i.alternate,c===null)throw Error(u(387));c.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(Di):e=[Di])}i=i.return}e!==null&&Ru(t,e,n,a),t.flags|=262144}function To(e){for(e=e.firstContext;e!==null;){if(!jt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function za(e){Ea=e,En=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function gt(e){return Od(Ea,e)}function Eo(e,t){return Ea===null&&za(e),Od(e,t)}function Od(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},En===null){if(e===null)throw Error(u(308));En=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else En=En.next=t;return n}var tv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},nv=l.unstable_scheduleCallback,av=l.unstable_NormalPriority,nt={$$typeof:V,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Nu(){return{controller:new tv,data:new Map,refCount:0}}function ri(e){e.refCount--,e.refCount===0&&nv(av,function(){e.controller.abort()})}var ui=null,ju=0,sl=0,fl=null;function lv(e,t){if(ui===null){var n=ui=[];ju=0,sl=Uc(),fl={status:"pending",value:void 0,then:function(a){n.push(a)}}}return ju++,t.then($d,$d),t}function $d(){if(--ju===0&&ui!==null){fl!==null&&(fl.status="fulfilled");var e=ui;ui=null,sl=0,fl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function iv(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var i=0;i<n.length;i++)(0,n[i])(t)},function(i){for(a.status="rejected",a.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),a}var Bd=$.S;$.S=function(e,t){gp=Re(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&lv(e,t),Bd!==null&&Bd(e,t)};var Aa=x(null);function Hu(){var e=Aa.current;return e!==null?e:Ye.pooledCache}function zo(e,t){t===null?J(Aa,Aa.current):J(Aa,t.pool)}function Dd(){var e=Hu();return e===null?null:{parent:nt._currentValue,pool:e}}var dl=Error(u(460)),ku=Error(u(474)),Ao=Error(u(542)),Mo={then:function(){}};function Rd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Nd(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(xn,xn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Hd(e),e;default:if(typeof t.status=="string")t.then(xn,xn);else{if(e=Ye,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=a}},function(a){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Hd(e),e}throw wa=t,dl}}function Ma(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(wa=n,dl):n}}var wa=null;function jd(){if(wa===null)throw Error(u(459));var e=wa;return wa=null,e}function Hd(e){if(e===dl||e===Ao)throw Error(u(483))}var hl=null,ci=0;function wo(e){var t=ci;return ci+=1,hl===null&&(hl=[]),Nd(hl,e,t)}function si(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function _o(e,t){throw t.$$typeof===U?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function kd(e){function t(E,b){if(e){var M=E.deletions;M===null?(E.deletions=[b],E.flags|=16):M.push(b)}}function n(E,b){if(!e)return null;for(;b!==null;)t(E,b),b=b.sibling;return null}function a(E){for(var b=new Map;E!==null;)E.key!==null?b.set(E.key,E):b.set(E.index,E),E=E.sibling;return b}function i(E,b){return E=Cn(E,b),E.index=0,E.sibling=null,E}function o(E,b,M){return E.index=M,e?(M=E.alternate,M!==null?(M=M.index,M<b?(E.flags|=67108866,b):M):(E.flags|=67108866,b)):(E.flags|=1048576,b)}function c(E){return e&&E.alternate===null&&(E.flags|=67108866),E}function f(E,b,M,N){return b===null||b.tag!==6?(b=Au(M,E.mode,N),b.return=E,b):(b=i(b,M),b.return=E,b)}function m(E,b,M,N){var ae=M.type;return ae===Y?B(E,b,M.props.children,N,M.key):b!==null&&(b.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===ke&&Ma(ae)===b.type)?(b=i(b,M.props),si(b,M),b.return=E,b):(b=So(M.type,M.key,M.props,null,E.mode,N),si(b,M),b.return=E,b)}function w(E,b,M,N){return b===null||b.tag!==4||b.stateNode.containerInfo!==M.containerInfo||b.stateNode.implementation!==M.implementation?(b=Mu(M,E.mode,N),b.return=E,b):(b=i(b,M.children||[]),b.return=E,b)}function B(E,b,M,N,ae){return b===null||b.tag!==7?(b=Ca(M,E.mode,N,ae),b.return=E,b):(b=i(b,M),b.return=E,b)}function H(E,b,M){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return b=Au(""+b,E.mode,M),b.return=E,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case X:return M=So(b.type,b.key,b.props,null,E.mode,M),si(M,b),M.return=E,M;case G:return b=Mu(b,E.mode,M),b.return=E,b;case ke:return b=Ma(b),H(E,b,M)}if(Dt(b)||Ke(b))return b=Ca(b,E.mode,M,null),b.return=E,b;if(typeof b.then=="function")return H(E,wo(b),M);if(b.$$typeof===V)return H(E,Eo(E,b),M);_o(E,b)}return null}function _(E,b,M,N){var ae=b!==null?b.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return ae!==null?null:f(E,b,""+M,N);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case X:return M.key===ae?m(E,b,M,N):null;case G:return M.key===ae?w(E,b,M,N):null;case ke:return M=Ma(M),_(E,b,M,N)}if(Dt(M)||Ke(M))return ae!==null?null:B(E,b,M,N,null);if(typeof M.then=="function")return _(E,b,wo(M),N);if(M.$$typeof===V)return _(E,b,Eo(E,M),N);_o(E,M)}return null}function O(E,b,M,N,ae){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return E=E.get(M)||null,f(b,E,""+N,ae);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case X:return E=E.get(N.key===null?M:N.key)||null,m(b,E,N,ae);case G:return E=E.get(N.key===null?M:N.key)||null,w(b,E,N,ae);case ke:return N=Ma(N),O(E,b,M,N,ae)}if(Dt(N)||Ke(N))return E=E.get(M)||null,B(b,E,N,ae,null);if(typeof N.then=="function")return O(E,b,M,wo(N),ae);if(N.$$typeof===V)return O(E,b,M,Eo(b,N),ae);_o(b,N)}return null}function I(E,b,M,N){for(var ae=null,Ee=null,te=b,he=b=0,xe=null;te!==null&&he<M.length;he++){te.index>he?(xe=te,te=null):xe=te.sibling;var ze=_(E,te,M[he],N);if(ze===null){te===null&&(te=xe);break}e&&te&&ze.alternate===null&&t(E,te),b=o(ze,b,he),Ee===null?ae=ze:Ee.sibling=ze,Ee=ze,te=xe}if(he===M.length)return n(E,te),Se&&Tn(E,he),ae;if(te===null){for(;he<M.length;he++)te=H(E,M[he],N),te!==null&&(b=o(te,b,he),Ee===null?ae=te:Ee.sibling=te,Ee=te);return Se&&Tn(E,he),ae}for(te=a(te);he<M.length;he++)xe=O(te,E,he,M[he],N),xe!==null&&(e&&xe.alternate!==null&&te.delete(xe.key===null?he:xe.key),b=o(xe,b,he),Ee===null?ae=xe:Ee.sibling=xe,Ee=xe);return e&&te.forEach(function(fa){return t(E,fa)}),Se&&Tn(E,he),ae}function ie(E,b,M,N){if(M==null)throw Error(u(151));for(var ae=null,Ee=null,te=b,he=b=0,xe=null,ze=M.next();te!==null&&!ze.done;he++,ze=M.next()){te.index>he?(xe=te,te=null):xe=te.sibling;var fa=_(E,te,ze.value,N);if(fa===null){te===null&&(te=xe);break}e&&te&&fa.alternate===null&&t(E,te),b=o(fa,b,he),Ee===null?ae=fa:Ee.sibling=fa,Ee=fa,te=xe}if(ze.done)return n(E,te),Se&&Tn(E,he),ae;if(te===null){for(;!ze.done;he++,ze=M.next())ze=H(E,ze.value,N),ze!==null&&(b=o(ze,b,he),Ee===null?ae=ze:Ee.sibling=ze,Ee=ze);return Se&&Tn(E,he),ae}for(te=a(te);!ze.done;he++,ze=M.next())ze=O(te,E,he,ze.value,N),ze!==null&&(e&&ze.alternate!==null&&te.delete(ze.key===null?he:ze.key),b=o(ze,b,he),Ee===null?ae=ze:Ee.sibling=ze,Ee=ze);return e&&te.forEach(function(mx){return t(E,mx)}),Se&&Tn(E,he),ae}function Le(E,b,M,N){if(typeof M=="object"&&M!==null&&M.type===Y&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case X:e:{for(var ae=M.key;b!==null;){if(b.key===ae){if(ae=M.type,ae===Y){if(b.tag===7){n(E,b.sibling),N=i(b,M.props.children),N.return=E,E=N;break e}}else if(b.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===ke&&Ma(ae)===b.type){n(E,b.sibling),N=i(b,M.props),si(N,M),N.return=E,E=N;break e}n(E,b);break}else t(E,b);b=b.sibling}M.type===Y?(N=Ca(M.props.children,E.mode,N,M.key),N.return=E,E=N):(N=So(M.type,M.key,M.props,null,E.mode,N),si(N,M),N.return=E,E=N)}return c(E);case G:e:{for(ae=M.key;b!==null;){if(b.key===ae)if(b.tag===4&&b.stateNode.containerInfo===M.containerInfo&&b.stateNode.implementation===M.implementation){n(E,b.sibling),N=i(b,M.children||[]),N.return=E,E=N;break e}else{n(E,b);break}else t(E,b);b=b.sibling}N=Mu(M,E.mode,N),N.return=E,E=N}return c(E);case ke:return M=Ma(M),Le(E,b,M,N)}if(Dt(M))return I(E,b,M,N);if(Ke(M)){if(ae=Ke(M),typeof ae!="function")throw Error(u(150));return M=ae.call(M),ie(E,b,M,N)}if(typeof M.then=="function")return Le(E,b,wo(M),N);if(M.$$typeof===V)return Le(E,b,Eo(E,M),N);_o(E,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,b!==null&&b.tag===6?(n(E,b.sibling),N=i(b,M),N.return=E,E=N):(n(E,b),N=Au(M,E.mode,N),N.return=E,E=N),c(E)):n(E,b)}return function(E,b,M,N){try{ci=0;var ae=Le(E,b,M,N);return hl=null,ae}catch(te){if(te===dl||te===Ao)throw te;var Ee=Ht(29,te,null,E.mode);return Ee.lanes=N,Ee.return=E,Ee}}}var _a=kd(!0),Ud=kd(!1),Kn=!1;function Uu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function qu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Jn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Wn(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,($e&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=xo(e),Cd(e,null,n),t}return vo(e,a,t,n),xo(e)}function fi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Of(e,n)}}function Lu(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var c={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?i=o=c:o=o.next=c,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Yu=!1;function di(){if(Yu){var e=fl;if(e!==null)throw e}}function hi(e,t,n,a){Yu=!1;var i=e.updateQueue;Kn=!1;var o=i.firstBaseUpdate,c=i.lastBaseUpdate,f=i.shared.pending;if(f!==null){i.shared.pending=null;var m=f,w=m.next;m.next=null,c===null?o=w:c.next=w,c=m;var B=e.alternate;B!==null&&(B=B.updateQueue,f=B.lastBaseUpdate,f!==c&&(f===null?B.firstBaseUpdate=w:f.next=w,B.lastBaseUpdate=m))}if(o!==null){var H=i.baseState;c=0,B=w=m=null,f=o;do{var _=f.lane&-536870913,O=_!==f.lane;if(O?(ve&_)===_:(a&_)===_){_!==0&&_===sl&&(Yu=!0),B!==null&&(B=B.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});e:{var I=e,ie=f;_=t;var Le=n;switch(ie.tag){case 1:if(I=ie.payload,typeof I=="function"){H=I.call(Le,H,_);break e}H=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=ie.payload,_=typeof I=="function"?I.call(Le,H,_):I,_==null)break e;H=z({},H,_);break e;case 2:Kn=!0}}_=f.callback,_!==null&&(e.flags|=64,O&&(e.flags|=8192),O=i.callbacks,O===null?i.callbacks=[_]:O.push(_))}else O={lane:_,tag:f.tag,payload:f.payload,callback:f.callback,next:null},B===null?(w=B=O,m=H):B=B.next=O,c|=_;if(f=f.next,f===null){if(f=i.shared.pending,f===null)break;O=f,f=O.next,O.next=null,i.lastBaseUpdate=O,i.shared.pending=null}}while(!0);B===null&&(m=H),i.baseState=m,i.firstBaseUpdate=w,i.lastBaseUpdate=B,o===null&&(i.shared.lanes=0),ta|=c,e.lanes=c,e.memoizedState=H}}function qd(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Ld(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)qd(n[e],t)}var pl=x(null),Oo=x(0);function Yd(e,t){e=Rn,J(Oo,e),J(pl,t),Rn=e|t.baseLanes}function Gu(){J(Oo,Rn),J(pl,pl.current)}function Qu(){Rn=Oo.current,j(pl),j(Oo)}var kt=x(null),Ft=null;function Fn(e){var t=e.alternate;J(Ie,Ie.current&1),J(kt,e),Ft===null&&(t===null||pl.current!==null||t.memoizedState!==null)&&(Ft=e)}function Xu(e){J(Ie,Ie.current),J(kt,e),Ft===null&&(Ft=e)}function Gd(e){e.tag===22?(J(Ie,Ie.current),J(kt,e),Ft===null&&(Ft=e)):In()}function In(){J(Ie,Ie.current),J(kt,kt.current)}function Ut(e){j(kt),Ft===e&&(Ft=null),j(Ie)}var Ie=x(0);function $o(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Fc(n)||Ic(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)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 An=0,de=null,Ue=null,at=null,Bo=!1,gl=!1,Oa=!1,Do=0,pi=0,ml=null,ov=0;function We(){throw Error(u(321))}function Vu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!jt(e[n],t[n]))return!1;return!0}function Zu(e,t,n,a,i,o){return An=o,de=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,$.H=e===null||e.memoizedState===null?Ah:uc,Oa=!1,o=n(a,i),Oa=!1,gl&&(o=Xd(t,n,a,i)),Qd(e),o}function Qd(e){$.H=yi;var t=Ue!==null&&Ue.next!==null;if(An=0,at=Ue=de=null,Bo=!1,pi=0,ml=null,t)throw Error(u(300));e===null||lt||(e=e.dependencies,e!==null&&To(e)&&(lt=!0))}function Xd(e,t,n,a){de=e;var i=0;do{if(gl&&(ml=null),pi=0,gl=!1,25<=i)throw Error(u(301));if(i+=1,at=Ue=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}$.H=Mh,o=t(n,a)}while(gl);return o}function rv(){var e=$.H,t=e.useState()[0];return t=typeof t.then=="function"?gi(t):t,e=e.useState()[0],(Ue!==null?Ue.memoizedState:null)!==e&&(de.flags|=1024),t}function Ku(){var e=Do!==0;return Do=0,e}function Ju(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Wu(e){if(Bo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Bo=!1}An=0,at=Ue=de=null,gl=!1,pi=Do=0,ml=null}function Ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return at===null?de.memoizedState=at=e:at=at.next=e,at}function Pe(){if(Ue===null){var e=de.alternate;e=e!==null?e.memoizedState:null}else e=Ue.next;var t=at===null?de.memoizedState:at.next;if(t!==null)at=t,Ue=e;else{if(e===null)throw de.alternate===null?Error(u(467)):Error(u(310));Ue=e,e={memoizedState:Ue.memoizedState,baseState:Ue.baseState,baseQueue:Ue.baseQueue,queue:Ue.queue,next:null},at===null?de.memoizedState=at=e:at=at.next=e}return at}function Ro(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function gi(e){var t=pi;return pi+=1,ml===null&&(ml=[]),e=Nd(ml,e,t),t=de,(at===null?t.memoizedState:at.next)===null&&(t=t.alternate,$.H=t===null||t.memoizedState===null?Ah:uc),e}function No(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return gi(e);if(e.$$typeof===V)return gt(e)}throw Error(u(438,String(e)))}function Fu(e){var t=null,n=de.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=de.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Ro(),de.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=L;return t.index++,n}function Mn(e,t){return typeof t=="function"?t(e):t}function jo(e){var t=Pe();return Iu(t,Ue,e)}function Iu(e,t,n){var a=e.queue;if(a===null)throw Error(u(311));a.lastRenderedReducer=n;var i=e.baseQueue,o=a.pending;if(o!==null){if(i!==null){var c=i.next;i.next=o.next,o.next=c}t.baseQueue=i=o,a.pending=null}if(o=e.baseState,i===null)e.memoizedState=o;else{t=i.next;var f=c=null,m=null,w=t,B=!1;do{var H=w.lane&-536870913;if(H!==w.lane?(ve&H)===H:(An&H)===H){var _=w.revertLane;if(_===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null}),H===sl&&(B=!0);else if((An&_)===_){w=w.next,_===sl&&(B=!0);continue}else H={lane:0,revertLane:w.revertLane,gesture:null,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null},m===null?(f=m=H,c=o):m=m.next=H,de.lanes|=_,ta|=_;H=w.action,Oa&&n(o,H),o=w.hasEagerState?w.eagerState:n(o,H)}else _={lane:H,revertLane:w.revertLane,gesture:w.gesture,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null},m===null?(f=m=_,c=o):m=m.next=_,de.lanes|=H,ta|=H;w=w.next}while(w!==null&&w!==t);if(m===null?c=o:m.next=f,!jt(o,e.memoizedState)&&(lt=!0,B&&(n=fl,n!==null)))throw n;e.memoizedState=o,e.baseState=c,e.baseQueue=m,a.lastRenderedState=o}return i===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Pu(e){var t=Pe(),n=t.queue;if(n===null)throw Error(u(311));n.lastRenderedReducer=e;var a=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var c=i=i.next;do o=e(o,c.action),c=c.next;while(c!==i);jt(o,t.memoizedState)||(lt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,a]}function Vd(e,t,n){var a=de,i=Pe(),o=Se;if(o){if(n===void 0)throw Error(u(407));n=n()}else n=t();var c=!jt((Ue||i).memoizedState,n);if(c&&(i.memoizedState=n,lt=!0),i=i.queue,nc(Jd.bind(null,a,i,e),[e]),i.getSnapshot!==t||c||at!==null&&at.memoizedState.tag&1){if(a.flags|=2048,yl(9,{destroy:void 0},Kd.bind(null,a,i,n,t),null),Ye===null)throw Error(u(349));o||(An&127)!==0||Zd(a,t,n)}return n}function Zd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=de.updateQueue,t===null?(t=Ro(),de.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Kd(e,t,n,a){t.value=n,t.getSnapshot=a,Wd(t)&&Fd(e)}function Jd(e,t,n){return n(function(){Wd(t)&&Fd(e)})}function Wd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!jt(e,n)}catch{return!0}}function Fd(e){var t=Sa(e,2);t!==null&&Ot(t,e,2)}function ec(e){var t=Ct();if(typeof e=="function"){var n=e;if(e=n(),Oa){Ln(!0);try{n()}finally{Ln(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mn,lastRenderedState:e},t}function Id(e,t,n,a){return e.baseState=n,Iu(e,Ue,typeof a=="function"?a:Mn)}function uv(e,t,n,a,i){if(Uo(e))throw Error(u(485));if(e=t.action,e!==null){var o={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){o.listeners.push(c)}};$.T!==null?n(!0):o.isTransition=!1,a(o),n=t.pending,n===null?(o.next=t.pending=o,Pd(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Pd(e,t){var n=t.action,a=t.payload,i=e.state;if(t.isTransition){var o=$.T,c={};$.T=c;try{var f=n(i,a),m=$.S;m!==null&&m(c,f),eh(e,t,f)}catch(w){tc(e,t,w)}finally{o!==null&&c.types!==null&&(o.types=c.types),$.T=o}}else try{o=n(i,a),eh(e,t,o)}catch(w){tc(e,t,w)}}function eh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){th(e,t,a)},function(a){return tc(e,t,a)}):th(e,t,n)}function th(e,t,n){t.status="fulfilled",t.value=n,nh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Pd(e,n)))}function tc(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,nh(t),t=t.next;while(t!==a)}e.action=null}function nh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ah(e,t){return t}function lh(e,t){if(Se){var n=Ye.formState;if(n!==null){e:{var a=de;if(Se){if(Ge){t:{for(var i=Ge,o=Wt;i.nodeType!==8;){if(!o){i=null;break t}if(i=It(i.nextSibling),i===null){i=null;break t}}o=i.data,i=o==="F!"||o==="F"?i:null}if(i){Ge=It(i.nextSibling),a=i.data==="F!";break e}}Vn(a)}a=!1}a&&(t=n[0])}}return n=Ct(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ah,lastRenderedState:t},n.queue=a,n=Th.bind(null,de,a),a.dispatch=n,a=ec(!1),o=rc.bind(null,de,!1,a.queue),a=Ct(),i={state:t,dispatch:null,action:e,pending:null},a.queue=i,n=uv.bind(null,de,i,o,n),i.dispatch=n,a.memoizedState=e,[t,n,!1]}function ih(e){var t=Pe();return oh(t,Ue,e)}function oh(e,t,n){if(t=Iu(e,t,ah)[0],e=jo(Mn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=gi(t)}catch(c){throw c===dl?Ao:c}else a=t;t=Pe();var i=t.queue,o=i.dispatch;return n!==t.memoizedState&&(de.flags|=2048,yl(9,{destroy:void 0},cv.bind(null,i,n),null)),[a,o,e]}function cv(e,t){e.action=t}function rh(e){var t=Pe(),n=Ue;if(n!==null)return oh(t,n,e);Pe(),t=t.memoizedState,n=Pe();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function yl(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=de.updateQueue,t===null&&(t=Ro(),de.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function uh(){return Pe().memoizedState}function Ho(e,t,n,a){var i=Ct();de.flags|=e,i.memoizedState=yl(1|t,{destroy:void 0},n,a===void 0?null:a)}function ko(e,t,n,a){var i=Pe();a=a===void 0?null:a;var o=i.memoizedState.inst;Ue!==null&&a!==null&&Vu(a,Ue.memoizedState.deps)?i.memoizedState=yl(t,o,n,a):(de.flags|=e,i.memoizedState=yl(1|t,o,n,a))}function ch(e,t){Ho(8390656,8,e,t)}function nc(e,t){ko(2048,8,e,t)}function sv(e){de.flags|=4;var t=de.updateQueue;if(t===null)t=Ro(),de.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function sh(e){var t=Pe().memoizedState;return sv({ref:t,nextImpl:e}),function(){if(($e&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function fh(e,t){return ko(4,2,e,t)}function dh(e,t){return ko(4,4,e,t)}function hh(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ph(e,t,n){n=n!=null?n.concat([e]):null,ko(4,4,hh.bind(null,t,e),n)}function ac(){}function gh(e,t){var n=Pe();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Vu(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function mh(e,t){var n=Pe();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Vu(t,a[1]))return a[0];if(a=e(),Oa){Ln(!0);try{e()}finally{Ln(!1)}}return n.memoizedState=[a,t],a}function lc(e,t,n){return n===void 0||(An&1073741824)!==0&&(ve&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=yp(),de.lanes|=e,ta|=e,n)}function yh(e,t,n,a){return jt(n,t)?n:pl.current!==null?(e=lc(e,n,a),jt(e,t)||(lt=!0),e):(An&42)===0||(An&1073741824)!==0&&(ve&261930)===0?(lt=!0,e.memoizedState=n):(e=yp(),de.lanes|=e,ta|=e,t)}function bh(e,t,n,a,i){var o=K.p;K.p=o!==0&&8>o?o:8;var c=$.T,f={};$.T=f,rc(e,!1,t,n);try{var m=i(),w=$.S;if(w!==null&&w(f,m),m!==null&&typeof m=="object"&&typeof m.then=="function"){var B=iv(m,a);mi(e,t,B,Yt(e))}else mi(e,t,a,Yt(e))}catch(H){mi(e,t,{then:function(){},status:"rejected",reason:H},Yt())}finally{K.p=o,c!==null&&f.types!==null&&(c.types=f.types),$.T=c}}function fv(){}function ic(e,t,n,a){if(e.tag!==5)throw Error(u(476));var i=vh(e).queue;bh(e,i,t,oe,n===null?fv:function(){return xh(e),n(a)})}function vh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mn,lastRenderedState:oe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function xh(e){var t=vh(e);t.next===null&&(t=e.alternate.memoizedState),mi(e,t.next.queue,{},Yt())}function oc(){return gt(Di)}function Sh(){return Pe().memoizedState}function Ch(){return Pe().memoizedState}function dv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Yt();e=Jn(n);var a=Wn(t,e,n);a!==null&&(Ot(a,t,n),fi(a,t,n)),t={cache:Nu()},e.payload=t;return}t=t.return}}function hv(e,t,n){var a=Yt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Uo(e)?Eh(t,n):(n=Eu(e,t,n,a),n!==null&&(Ot(n,e,a),zh(n,t,a)))}function Th(e,t,n){var a=Yt();mi(e,t,n,a)}function mi(e,t,n,a){var i={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Uo(e))Eh(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var c=t.lastRenderedState,f=o(c,n);if(i.hasEagerState=!0,i.eagerState=f,jt(f,c))return vo(e,t,i,0),Ye===null&&bo(),!1}catch{}if(n=Eu(e,t,i,a),n!==null)return Ot(n,e,a),zh(n,t,a),!0}return!1}function rc(e,t,n,a){if(a={lane:2,revertLane:Uc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Uo(e)){if(t)throw Error(u(479))}else t=Eu(e,n,a,2),t!==null&&Ot(t,e,2)}function Uo(e){var t=e.alternate;return e===de||t!==null&&t===de}function Eh(e,t){gl=Bo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function zh(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Of(e,n)}}var yi={readContext:gt,use:No,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useLayoutEffect:We,useInsertionEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useSyncExternalStore:We,useId:We,useHostTransitionStatus:We,useFormState:We,useActionState:We,useOptimistic:We,useMemoCache:We,useCacheRefresh:We};yi.useEffectEvent=We;var Ah={readContext:gt,use:No,useCallback:function(e,t){return Ct().memoizedState=[e,t===void 0?null:t],e},useContext:gt,useEffect:ch,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Ho(4194308,4,hh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ho(4194308,4,e,t)},useInsertionEffect:function(e,t){Ho(4,2,e,t)},useMemo:function(e,t){var n=Ct();t=t===void 0?null:t;var a=e();if(Oa){Ln(!0);try{e()}finally{Ln(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=Ct();if(n!==void 0){var i=n(t);if(Oa){Ln(!0);try{n(t)}finally{Ln(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=hv.bind(null,de,e),[a.memoizedState,e]},useRef:function(e){var t=Ct();return e={current:e},t.memoizedState=e},useState:function(e){e=ec(e);var t=e.queue,n=Th.bind(null,de,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ac,useDeferredValue:function(e,t){var n=Ct();return lc(n,e,t)},useTransition:function(){var e=ec(!1);return e=bh.bind(null,de,e.queue,!0,!1),Ct().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=de,i=Ct();if(Se){if(n===void 0)throw Error(u(407));n=n()}else{if(n=t(),Ye===null)throw Error(u(349));(ve&127)!==0||Zd(a,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,ch(Jd.bind(null,a,o,e),[e]),a.flags|=2048,yl(9,{destroy:void 0},Kd.bind(null,a,o,n,t),null),n},useId:function(){var e=Ct(),t=Ye.identifierPrefix;if(Se){var n=pn,a=hn;n=(a&~(1<<32-Nt(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Do++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=ov++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:oc,useFormState:lh,useActionState:lh,useOptimistic:function(e){var t=Ct();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=rc.bind(null,de,!0,n),n.dispatch=t,[e,t]},useMemoCache:Fu,useCacheRefresh:function(){return Ct().memoizedState=dv.bind(null,de)},useEffectEvent:function(e){var t=Ct(),n={impl:e};return t.memoizedState=n,function(){if(($e&2)!==0)throw Error(u(440));return n.impl.apply(void 0,arguments)}}},uc={readContext:gt,use:No,useCallback:gh,useContext:gt,useEffect:nc,useImperativeHandle:ph,useInsertionEffect:fh,useLayoutEffect:dh,useMemo:mh,useReducer:jo,useRef:uh,useState:function(){return jo(Mn)},useDebugValue:ac,useDeferredValue:function(e,t){var n=Pe();return yh(n,Ue.memoizedState,e,t)},useTransition:function(){var e=jo(Mn)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:gi(e),t]},useSyncExternalStore:Vd,useId:Sh,useHostTransitionStatus:oc,useFormState:ih,useActionState:ih,useOptimistic:function(e,t){var n=Pe();return Id(n,Ue,e,t)},useMemoCache:Fu,useCacheRefresh:Ch};uc.useEffectEvent=sh;var Mh={readContext:gt,use:No,useCallback:gh,useContext:gt,useEffect:nc,useImperativeHandle:ph,useInsertionEffect:fh,useLayoutEffect:dh,useMemo:mh,useReducer:Pu,useRef:uh,useState:function(){return Pu(Mn)},useDebugValue:ac,useDeferredValue:function(e,t){var n=Pe();return Ue===null?lc(n,e,t):yh(n,Ue.memoizedState,e,t)},useTransition:function(){var e=Pu(Mn)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:gi(e),t]},useSyncExternalStore:Vd,useId:Sh,useHostTransitionStatus:oc,useFormState:rh,useActionState:rh,useOptimistic:function(e,t){var n=Pe();return Ue!==null?Id(n,Ue,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Fu,useCacheRefresh:Ch};Mh.useEffectEvent=sh;function cc(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:z({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var sc={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Yt(),i=Jn(a);i.payload=t,n!=null&&(i.callback=n),t=Wn(e,i,a),t!==null&&(Ot(t,e,a),fi(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Yt(),i=Jn(a);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Wn(e,i,a),t!==null&&(Ot(t,e,a),fi(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Yt(),a=Jn(n);a.tag=2,t!=null&&(a.callback=t),t=Wn(e,a,n),t!==null&&(Ot(t,e,n),fi(t,e,n))}};function wh(e,t,n,a,i,o,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,o,c):t.prototype&&t.prototype.isPureReactComponent?!ai(n,a)||!ai(i,o):!0}function _h(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&sc.enqueueReplaceState(t,t.state,null)}function $a(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=z({},n));for(var i in e)n[i]===void 0&&(n[i]=e[i])}return n}function Oh(e){yo(e)}function $h(e){console.error(e)}function Bh(e){yo(e)}function qo(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Dh(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function fc(e,t,n){return n=Jn(n),n.tag=3,n.payload={element:null},n.callback=function(){qo(e,t)},n}function Rh(e){return e=Jn(e),e.tag=3,e}function Nh(e,t,n,a){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var o=a.value;e.payload=function(){return i(o)},e.callback=function(){Dh(t,n,a)}}var c=n.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){Dh(t,n,a),typeof i!="function"&&(na===null?na=new Set([this]):na.add(this));var f=a.stack;this.componentDidCatch(a.value,{componentStack:f!==null?f:""})})}function pv(e,t,n,a,i){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&cl(t,n,i,!0),n=kt.current,n!==null){switch(n.tag){case 31:case 13:return Ft===null?Io():n.alternate===null&&Fe===0&&(Fe=3),n.flags&=-257,n.flags|=65536,n.lanes=i,a===Mo?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),jc(e,a,i)),!1;case 22:return n.flags|=65536,a===Mo?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),jc(e,a,i)),!1}throw Error(u(435,n.tag))}return jc(e,a,i),Io(),!1}if(Se)return t=kt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,a!==Ou&&(e=Error(u(422),{cause:a}),oi(Zt(e,n)))):(a!==Ou&&(t=Error(u(423),{cause:a}),oi(Zt(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,a=Zt(a,n),i=fc(e.stateNode,a,i),Lu(e,i),Fe!==4&&(Fe=2)),!1;var o=Error(u(520),{cause:a});if(o=Zt(o,n),zi===null?zi=[o]:zi.push(o),Fe!==4&&(Fe=2),t===null)return!0;a=Zt(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=fc(n.stateNode,a,e),Lu(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(na===null||!na.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,i=Rh(i),Nh(i,e,n,a),Lu(n,i),!1}n=n.return}while(n!==null);return!1}var dc=Error(u(461)),lt=!1;function mt(e,t,n,a){t.child=e===null?Ud(t,null,n,a):_a(t,e.child,n,a)}function jh(e,t,n,a,i){n=n.render;var o=t.ref;if("ref"in a){var c={};for(var f in a)f!=="ref"&&(c[f]=a[f])}else c=a;return za(t),a=Zu(e,t,n,c,o,i),f=Ku(),e!==null&&!lt?(Ju(e,t,i),wn(e,t,i)):(Se&&f&&wu(t),t.flags|=1,mt(e,t,a,i),t.child)}function Hh(e,t,n,a,i){if(e===null){var o=n.type;return typeof o=="function"&&!zu(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,kh(e,t,o,a,i)):(e=So(n.type,null,a,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!xc(e,i)){var c=o.memoizedProps;if(n=n.compare,n=n!==null?n:ai,n(c,a)&&e.ref===t.ref)return wn(e,t,i)}return t.flags|=1,e=Cn(o,a),e.ref=t.ref,e.return=t,t.child=e}function kh(e,t,n,a,i){if(e!==null){var o=e.memoizedProps;if(ai(o,a)&&e.ref===t.ref)if(lt=!1,t.pendingProps=a=o,xc(e,i))(e.flags&131072)!==0&&(lt=!0);else return t.lanes=e.lanes,wn(e,t,i)}return hc(e,t,n,a,i)}function Uh(e,t,n,a){var i=a.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,e!==null){for(a=t.child=e.child,i=0;a!==null;)i=i|a.lanes|a.childLanes,a=a.sibling;a=i&~o}else a=0,t.child=null;return qh(e,t,o,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&zo(t,o!==null?o.cachePool:null),o!==null?Yd(t,o):Gu(),Gd(t);else return a=t.lanes=536870912,qh(e,t,o!==null?o.baseLanes|n:n,n,a)}else o!==null?(zo(t,o.cachePool),Yd(t,o),In(),t.memoizedState=null):(e!==null&&zo(t,null),Gu(),In());return mt(e,t,i,n),t.child}function bi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function qh(e,t,n,a,i){var o=Hu();return o=o===null?null:{parent:nt._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&zo(t,null),Gu(),Gd(t),e!==null&&cl(e,t,a,!0),t.childLanes=i,null}function Lo(e,t){return t=Go({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Lh(e,t,n){return _a(t,e.child,null,n),e=Lo(t,t.pendingProps),e.flags|=2,Ut(t),t.memoizedState=null,e}function gv(e,t,n){var a=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Se){if(a.mode==="hidden")return e=Lo(t,a),t.lanes=536870912,bi(null,e);if(Xu(t),(e=Ge)?(e=Pp(e,Wt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Qn!==null?{id:hn,overflow:pn}:null,retryLane:536870912,hydrationErrors:null},n=Ed(e),n.return=t,t.child=n,pt=t,Ge=null)):e=null,e===null)throw Vn(t);return t.lanes=536870912,null}return Lo(t,a)}var o=e.memoizedState;if(o!==null){var c=o.dehydrated;if(Xu(t),i)if(t.flags&256)t.flags&=-257,t=Lh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(lt||cl(e,t,n,!1),i=(n&e.childLanes)!==0,lt||i){if(a=Ye,a!==null&&(c=$f(a,n),c!==0&&c!==o.retryLane))throw o.retryLane=c,Sa(e,c),Ot(a,e,c),dc;Io(),t=Lh(e,t,n)}else e=o.treeContext,Ge=It(c.nextSibling),pt=t,Se=!0,Xn=null,Wt=!1,e!==null&&Md(t,e),t=Lo(t,a),t.flags|=4096;return t}return e=Cn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Yo(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(u(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function hc(e,t,n,a,i){return za(t),n=Zu(e,t,n,a,void 0,i),a=Ku(),e!==null&&!lt?(Ju(e,t,i),wn(e,t,i)):(Se&&a&&wu(t),t.flags|=1,mt(e,t,n,i),t.child)}function Yh(e,t,n,a,i,o){return za(t),t.updateQueue=null,n=Xd(t,a,n,i),Qd(e),a=Ku(),e!==null&&!lt?(Ju(e,t,o),wn(e,t,o)):(Se&&a&&wu(t),t.flags|=1,mt(e,t,n,o),t.child)}function Gh(e,t,n,a,i){if(za(t),t.stateNode===null){var o=il,c=n.contextType;typeof c=="object"&&c!==null&&(o=gt(c)),o=new n(a,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=sc,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=a,o.state=t.memoizedState,o.refs={},Uu(t),c=n.contextType,o.context=typeof c=="object"&&c!==null?gt(c):il,o.state=t.memoizedState,c=n.getDerivedStateFromProps,typeof c=="function"&&(cc(t,n,c,a),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(c=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),c!==o.state&&sc.enqueueReplaceState(o,o.state,null),hi(t,a,o,i),di(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){o=t.stateNode;var f=t.memoizedProps,m=$a(n,f);o.props=m;var w=o.context,B=n.contextType;c=il,typeof B=="object"&&B!==null&&(c=gt(B));var H=n.getDerivedStateFromProps;B=typeof H=="function"||typeof o.getSnapshotBeforeUpdate=="function",f=t.pendingProps!==f,B||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(f||w!==c)&&_h(t,o,a,c),Kn=!1;var _=t.memoizedState;o.state=_,hi(t,a,o,i),di(),w=t.memoizedState,f||_!==w||Kn?(typeof H=="function"&&(cc(t,n,H,a),w=t.memoizedState),(m=Kn||wh(t,n,m,a,_,w,c))?(B||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=w),o.props=a,o.state=w,o.context=c,a=m):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{o=t.stateNode,qu(e,t),c=t.memoizedProps,B=$a(n,c),o.props=B,H=t.pendingProps,_=o.context,w=n.contextType,m=il,typeof w=="object"&&w!==null&&(m=gt(w)),f=n.getDerivedStateFromProps,(w=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(c!==H||_!==m)&&_h(t,o,a,m),Kn=!1,_=t.memoizedState,o.state=_,hi(t,a,o,i),di();var O=t.memoizedState;c!==H||_!==O||Kn||e!==null&&e.dependencies!==null&&To(e.dependencies)?(typeof f=="function"&&(cc(t,n,f,a),O=t.memoizedState),(B=Kn||wh(t,n,B,a,_,O,m)||e!==null&&e.dependencies!==null&&To(e.dependencies))?(w||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(a,O,m),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(a,O,m)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||c===e.memoizedProps&&_===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&_===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=O),o.props=a,o.state=O,o.context=m,a=B):(typeof o.componentDidUpdate!="function"||c===e.memoizedProps&&_===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&_===e.memoizedState||(t.flags|=1024),a=!1)}return o=a,Yo(e,t),a=(t.flags&128)!==0,o||a?(o=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&a?(t.child=_a(t,e.child,null,i),t.child=_a(t,null,n,i)):mt(e,t,n,i),t.memoizedState=o.state,e=t.child):e=wn(e,t,i),e}function Qh(e,t,n,a){return Ta(),t.flags|=256,mt(e,t,n,a),t.child}var pc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function gc(e){return{baseLanes:e,cachePool:Dd()}}function mc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Lt),e}function Xh(e,t,n){var a=t.pendingProps,i=!1,o=(t.flags&128)!==0,c;if((c=o)||(c=e!==null&&e.memoizedState===null?!1:(Ie.current&2)!==0),c&&(i=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(Se){if(i?Fn(t):In(),(e=Ge)?(e=Pp(e,Wt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Qn!==null?{id:hn,overflow:pn}:null,retryLane:536870912,hydrationErrors:null},n=Ed(e),n.return=t,t.child=n,pt=t,Ge=null)):e=null,e===null)throw Vn(t);return Ic(e)?t.lanes=32:t.lanes=536870912,null}var f=a.children;return a=a.fallback,i?(In(),i=t.mode,f=Go({mode:"hidden",children:f},i),a=Ca(a,i,n,null),f.return=t,a.return=t,f.sibling=a,t.child=f,a=t.child,a.memoizedState=gc(n),a.childLanes=mc(e,c,n),t.memoizedState=pc,bi(null,a)):(Fn(t),yc(t,f))}var m=e.memoizedState;if(m!==null&&(f=m.dehydrated,f!==null)){if(o)t.flags&256?(Fn(t),t.flags&=-257,t=bc(e,t,n)):t.memoizedState!==null?(In(),t.child=e.child,t.flags|=128,t=null):(In(),f=a.fallback,i=t.mode,a=Go({mode:"visible",children:a.children},i),f=Ca(f,i,n,null),f.flags|=2,a.return=t,f.return=t,a.sibling=f,t.child=a,_a(t,e.child,null,n),a=t.child,a.memoizedState=gc(n),a.childLanes=mc(e,c,n),t.memoizedState=pc,t=bi(null,a));else if(Fn(t),Ic(f)){if(c=f.nextSibling&&f.nextSibling.dataset,c)var w=c.dgst;c=w,a=Error(u(419)),a.stack="",a.digest=c,oi({value:a,source:null,stack:null}),t=bc(e,t,n)}else if(lt||cl(e,t,n,!1),c=(n&e.childLanes)!==0,lt||c){if(c=Ye,c!==null&&(a=$f(c,n),a!==0&&a!==m.retryLane))throw m.retryLane=a,Sa(e,a),Ot(c,e,a),dc;Fc(f)||Io(),t=bc(e,t,n)}else Fc(f)?(t.flags|=192,t.child=e.child,t=null):(e=m.treeContext,Ge=It(f.nextSibling),pt=t,Se=!0,Xn=null,Wt=!1,e!==null&&Md(t,e),t=yc(t,a.children),t.flags|=4096);return t}return i?(In(),f=a.fallback,i=t.mode,m=e.child,w=m.sibling,a=Cn(m,{mode:"hidden",children:a.children}),a.subtreeFlags=m.subtreeFlags&65011712,w!==null?f=Cn(w,f):(f=Ca(f,i,n,null),f.flags|=2),f.return=t,a.return=t,a.sibling=f,t.child=a,bi(null,a),a=t.child,f=e.child.memoizedState,f===null?f=gc(n):(i=f.cachePool,i!==null?(m=nt._currentValue,i=i.parent!==m?{parent:m,pool:m}:i):i=Dd(),f={baseLanes:f.baseLanes|n,cachePool:i}),a.memoizedState=f,a.childLanes=mc(e,c,n),t.memoizedState=pc,bi(e.child,a)):(Fn(t),n=e.child,e=n.sibling,n=Cn(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=n,t.memoizedState=null,n)}function yc(e,t){return t=Go({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Go(e,t){return e=Ht(22,e,null,t),e.lanes=0,e}function bc(e,t,n){return _a(t,e.child,null,n),e=yc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Vh(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Du(e.return,t,n)}function vc(e,t,n,a,i,o){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:i,treeForkCount:o}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=n,c.tailMode=i,c.treeForkCount=o)}function Zh(e,t,n){var a=t.pendingProps,i=a.revealOrder,o=a.tail;a=a.children;var c=Ie.current,f=(c&2)!==0;if(f?(c=c&1|2,t.flags|=128):c&=1,J(Ie,c),mt(e,t,a,n),a=Se?ii:0,!f&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Vh(e,n,t);else if(e.tag===19)Vh(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}switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&$o(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),vc(t,!1,i,n,o,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&$o(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}vc(t,!0,n,null,o,a);break;case"together":vc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function wn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ta|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(cl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,n=Cn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Cn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function xc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&To(e)))}function mv(e,t,n){switch(t.tag){case 3:dt(t,t.stateNode.containerInfo),Zn(t,nt,e.memoizedState.cache),Ta();break;case 27:case 5:ga(t);break;case 4:dt(t,t.stateNode.containerInfo);break;case 10:Zn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Xu(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Fn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Xh(e,t,n):(Fn(t),e=wn(e,t,n),e!==null?e.sibling:null);Fn(t);break;case 19:var i=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(cl(e,t,n,!1),a=(n&t.childLanes)!==0),i){if(a)return Zh(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),J(Ie,Ie.current),a)break;return null;case 22:return t.lanes=0,Uh(e,t,n,t.pendingProps);case 24:Zn(t,nt,e.memoizedState.cache)}return wn(e,t,n)}function Kh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)lt=!0;else{if(!xc(e,n)&&(t.flags&128)===0)return lt=!1,mv(e,t,n);lt=(e.flags&131072)!==0}else lt=!1,Se&&(t.flags&1048576)!==0&&Ad(t,ii,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Ma(t.elementType),t.type=e,typeof e=="function")zu(e)?(a=$a(e,a),t.tag=1,t=Gh(null,t,e,a,n)):(t.tag=0,t=hc(null,t,e,a,n));else{if(e!=null){var i=e.$$typeof;if(i===re){t.tag=11,t=jh(null,t,e,a,n);break e}else if(i===W){t.tag=14,t=Hh(null,t,e,a,n);break e}}throw t=tt(e)||e,Error(u(306,t,""))}}return t;case 0:return hc(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,i=$a(a,t.pendingProps),Gh(e,t,a,i,n);case 3:e:{if(dt(t,t.stateNode.containerInfo),e===null)throw Error(u(387));a=t.pendingProps;var o=t.memoizedState;i=o.element,qu(e,t),hi(t,a,null,n);var c=t.memoizedState;if(a=c.cache,Zn(t,nt,a),a!==o.cache&&Ru(t,[nt],n,!0),di(),a=c.element,o.isDehydrated)if(o={element:a,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Qh(e,t,a,n);break e}else if(a!==i){i=Zt(Error(u(424)),t),oi(i),t=Qh(e,t,a,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ge=It(e.firstChild),pt=t,Se=!0,Xn=null,Wt=!0,n=Ud(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ta(),a===i){t=wn(e,t,n);break e}mt(e,t,a,n)}t=t.child}return t;case 26:return Yo(e,t),e===null?(n=ig(t.type,null,t.pendingProps,null))?t.memoizedState=n:Se||(n=t.type,e=t.pendingProps,a=ir(ue.current).createElement(n),a[ht]=t,a[Et]=e,yt(a,n,e),ct(a),t.stateNode=a):t.memoizedState=ig(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ga(t),e===null&&Se&&(a=t.stateNode=ng(t.type,t.pendingProps,ue.current),pt=t,Wt=!0,i=Ge,oa(t.type)?(Pc=i,Ge=It(a.firstChild)):Ge=i),mt(e,t,t.pendingProps.children,n),Yo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Se&&((i=a=Ge)&&(a=Vv(a,t.type,t.pendingProps,Wt),a!==null?(t.stateNode=a,pt=t,Ge=It(a.firstChild),Wt=!1,i=!0):i=!1),i||Vn(t)),ga(t),i=t.type,o=t.pendingProps,c=e!==null?e.memoizedProps:null,a=o.children,Kc(i,o)?a=null:c!==null&&Kc(i,c)&&(t.flags|=32),t.memoizedState!==null&&(i=Zu(e,t,rv,null,null,n),Di._currentValue=i),Yo(e,t),mt(e,t,a,n),t.child;case 6:return e===null&&Se&&((e=n=Ge)&&(n=Zv(n,t.pendingProps,Wt),n!==null?(t.stateNode=n,pt=t,Ge=null,e=!0):e=!1),e||Vn(t)),null;case 13:return Xh(e,t,n);case 4:return dt(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=_a(t,null,a,n):mt(e,t,a,n),t.child;case 11:return jh(e,t,t.type,t.pendingProps,n);case 7:return mt(e,t,t.pendingProps,n),t.child;case 8:return mt(e,t,t.pendingProps.children,n),t.child;case 12:return mt(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,Zn(t,t.type,a.value),mt(e,t,a.children,n),t.child;case 9:return i=t.type._context,a=t.pendingProps.children,za(t),i=gt(i),a=a(i),t.flags|=1,mt(e,t,a,n),t.child;case 14:return Hh(e,t,t.type,t.pendingProps,n);case 15:return kh(e,t,t.type,t.pendingProps,n);case 19:return Zh(e,t,n);case 31:return gv(e,t,n);case 22:return Uh(e,t,n,t.pendingProps);case 24:return za(t),a=gt(nt),e===null?(i=Hu(),i===null&&(i=Ye,o=Nu(),i.pooledCache=o,o.refCount++,o!==null&&(i.pooledCacheLanes|=n),i=o),t.memoizedState={parent:a,cache:i},Uu(t),Zn(t,nt,i)):((e.lanes&n)!==0&&(qu(e,t),hi(t,null,null,n),di()),i=e.memoizedState,o=t.memoizedState,i.parent!==a?(i={parent:a,cache:a},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Zn(t,nt,a)):(a=o.cache,Zn(t,nt,a),a!==i.cache&&Ru(t,[nt],n,!0))),mt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function _n(e){e.flags|=4}function Sc(e,t,n,a,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Sp())e.flags|=8192;else throw wa=Mo,ku}else e.flags&=-16777217}function Jh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!sg(t))if(Sp())e.flags|=8192;else throw wa=Mo,ku}function Qo(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?wf():536870912,e.lanes|=t,Sl|=t)}function vi(e,t){if(!Se)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 a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags&65011712,a|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags,a|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function yv(e,t,n){var a=t.pendingProps;switch(_u(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qe(t),null;case 1:return Qe(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),zn(nt),Ze(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ul(t)?_n(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,$u())),Qe(t),null;case 26:var i=t.type,o=t.memoizedState;return e===null?(_n(t),o!==null?(Qe(t),Jh(t,o)):(Qe(t),Sc(t,i,null,a,n))):o?o!==e.memoizedState?(_n(t),Qe(t),Jh(t,o)):(Qe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&_n(t),Qe(t),Sc(t,i,e,a,n)),null;case 27:if(Qa(t),n=ue.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&_n(t);else{if(!a){if(t.stateNode===null)throw Error(u(166));return Qe(t),null}e=P.current,ul(t)?wd(t):(e=ng(i,a,n),t.stateNode=e,_n(t))}return Qe(t),null;case 5:if(Qa(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&_n(t);else{if(!a){if(t.stateNode===null)throw Error(u(166));return Qe(t),null}if(o=P.current,ul(t))wd(t);else{var c=ir(ue.current);switch(o){case 1:o=c.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:o=c.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":o=c.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":o=c.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":o=c.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof a.is=="string"?c.createElement("select",{is:a.is}):c.createElement("select"),a.multiple?o.multiple=!0:a.size&&(o.size=a.size);break;default:o=typeof a.is=="string"?c.createElement(i,{is:a.is}):c.createElement(i)}}o[ht]=t,o[Et]=a;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)o.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=o;e:switch(yt(o,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&_n(t)}}return Qe(t),Sc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&_n(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=ue.current,ul(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,i=pt,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[ht]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Xp(e.nodeValue,n)),e||Vn(t,!0)}else e=ir(e).createTextNode(a),e[ht]=t,t.stateNode=e}return Qe(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=ul(t),n!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ht]=t}else Ta(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Qe(t),e=!1}else n=$u(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Ut(t),t):(Ut(t),null);if((t.flags&128)!==0)throw Error(u(558))}return Qe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=ul(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(u(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));i[ht]=t}else Ta(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Qe(t),i=!1}else i=$u(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Ut(t),t):(Ut(t),null)}return Ut(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==i&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Qo(t,t.updateQueue),Qe(t),null);case 4:return Ze(),e===null&&Gc(t.stateNode.containerInfo),Qe(t),null;case 10:return zn(t.type),Qe(t),null;case 19:if(j(Ie),a=t.memoizedState,a===null)return Qe(t),null;if(i=(t.flags&128)!==0,o=a.rendering,o===null)if(i)vi(a,!1);else{if(Fe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=$o(e),o!==null){for(t.flags|=128,vi(a,!1),e=o.updateQueue,t.updateQueue=e,Qo(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Td(n,e),n=n.sibling;return J(Ie,Ie.current&1|2),Se&&Tn(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Re()>Jo&&(t.flags|=128,i=!0,vi(a,!1),t.lanes=4194304)}else{if(!i)if(e=$o(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Qo(t,e),vi(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Se)return Qe(t),null}else 2*Re()-a.renderingStartTime>Jo&&n!==536870912&&(t.flags|=128,i=!0,vi(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(e=a.last,e!==null?e.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Re(),e.sibling=null,n=Ie.current,J(Ie,i?n&1|2:n&1),Se&&Tn(t,a.treeForkCount),e):(Qe(t),null);case 22:case 23:return Ut(t),Qu(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(Qe(t),t.subtreeFlags&6&&(t.flags|=8192)):Qe(t),n=t.updateQueue,n!==null&&Qo(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&j(Aa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),zn(nt),Qe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function bv(e,t){switch(_u(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return zn(nt),Ze(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Qa(t),null;case 31:if(t.memoizedState!==null){if(Ut(t),t.alternate===null)throw Error(u(340));Ta()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ut(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));Ta()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return j(Ie),null;case 4:return Ze(),null;case 10:return zn(t.type),null;case 22:case 23:return Ut(t),Qu(),e!==null&&j(Aa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return zn(nt),null;case 25:return null;default:return null}}function Wh(e,t){switch(_u(t),t.tag){case 3:zn(nt),Ze();break;case 26:case 27:case 5:Qa(t);break;case 4:Ze();break;case 31:t.memoizedState!==null&&Ut(t);break;case 13:Ut(t);break;case 19:j(Ie);break;case 10:zn(t.type);break;case 22:case 23:Ut(t),Qu(),e!==null&&j(Aa);break;case 24:zn(nt)}}function xi(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&e)===e){a=void 0;var o=n.create,c=n.inst;a=o(),c.destroy=a}n=n.next}while(n!==i)}}catch(f){He(t,t.return,f)}}function Pn(e,t,n){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var o=i.next;a=o;do{if((a.tag&e)===e){var c=a.inst,f=c.destroy;if(f!==void 0){c.destroy=void 0,i=t;var m=n,w=f;try{w()}catch(B){He(i,m,B)}}}a=a.next}while(a!==o)}}catch(B){He(t,t.return,B)}}function Fh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ld(t,n)}catch(a){He(e,e.return,a)}}}function Ih(e,t,n){n.props=$a(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){He(e,t,a)}}function Si(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(i){He(e,t,i)}}function gn(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(i){He(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){He(e,t,i)}else n.current=null}function Ph(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(i){He(e,e.return,i)}}function Cc(e,t,n){try{var a=e.stateNode;qv(a,e.type,n,t),a[Et]=t}catch(i){He(e,e.return,i)}}function ep(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&oa(e.type)||e.tag===4}function Tc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ep(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.tag===27&&oa(e.type)||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 Ec(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=xn));else if(a!==4&&(a===27&&oa(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Ec(e,t,n),e=e.sibling;e!==null;)Ec(e,t,n),e=e.sibling}function Xo(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&oa(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Xo(e,t,n),e=e.sibling;e!==null;)Xo(e,t,n),e=e.sibling}function tp(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);yt(t,a,n),t[ht]=e,t[Et]=n}catch(o){He(e,e.return,o)}}var On=!1,it=!1,zc=!1,np=typeof WeakSet=="function"?WeakSet:Set,st=null;function vv(e,t){if(e=e.containerInfo,Vc=dr,e=pd(e),bu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var i=a.anchorOffset,o=a.focusNode;a=a.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var c=0,f=-1,m=-1,w=0,B=0,H=e,_=null;t:for(;;){for(var O;H!==n||i!==0&&H.nodeType!==3||(f=c+i),H!==o||a!==0&&H.nodeType!==3||(m=c+a),H.nodeType===3&&(c+=H.nodeValue.length),(O=H.firstChild)!==null;)_=H,H=O;for(;;){if(H===e)break t;if(_===n&&++w===i&&(f=c),_===o&&++B===a&&(m=c),(O=H.nextSibling)!==null)break;H=_,_=H.parentNode}H=O}n=f===-1||m===-1?null:{start:f,end:m}}else n=null}n=n||{start:0,end:0}}else n=null;for(Zc={focusedElem:e,selectionRange:n},dr=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,o=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,n=t,i=o.memoizedProps,o=o.memoizedState,a=n.stateNode;try{var I=$a(n.type,i);e=a.getSnapshotBeforeUpdate(I,o),a.__reactInternalSnapshotBeforeUpdate=e}catch(ie){He(n,n.return,ie)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Wc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Wc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(u(163))}if(e=t.sibling,e!==null){e.return=t.return,st=e;break}st=t.return}}function ap(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Bn(e,n),a&4&&xi(5,n);break;case 1:if(Bn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(c){He(n,n.return,c)}else{var i=$a(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){He(n,n.return,c)}}a&64&&Fh(n),a&512&&Si(n,n.return);break;case 3:if(Bn(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Ld(e,t)}catch(c){He(n,n.return,c)}}break;case 27:t===null&&a&4&&tp(n);case 26:case 5:Bn(e,n),t===null&&a&4&&Ph(n),a&512&&Si(n,n.return);break;case 12:Bn(e,n);break;case 31:Bn(e,n),a&4&&op(e,n);break;case 13:Bn(e,n),a&4&&rp(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=wv.bind(null,n),Kv(e,n))));break;case 22:if(a=n.memoizedState!==null||On,!a){t=t!==null&&t.memoizedState!==null||it,i=On;var o=it;On=a,(it=t)&&!o?Dn(e,n,(n.subtreeFlags&8772)!==0):Bn(e,n),On=i,it=o}break;case 30:break;default:Bn(e,n)}}function lp(e){var t=e.alternate;t!==null&&(e.alternate=null,lp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&tu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ve=null,At=!1;function $n(e,t,n){for(n=n.child;n!==null;)ip(e,t,n),n=n.sibling}function ip(e,t,n){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount(Xl,n)}catch{}switch(n.tag){case 26:it||gn(n,t),$n(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:it||gn(n,t);var a=Ve,i=At;oa(n.type)&&(Ve=n.stateNode,At=!1),$n(e,t,n),Oi(n.stateNode),Ve=a,At=i;break;case 5:it||gn(n,t);case 6:if(a=Ve,i=At,Ve=null,$n(e,t,n),Ve=a,At=i,Ve!==null)if(At)try{(Ve.nodeType===9?Ve.body:Ve.nodeName==="HTML"?Ve.ownerDocument.body:Ve).removeChild(n.stateNode)}catch(o){He(n,t,o)}else try{Ve.removeChild(n.stateNode)}catch(o){He(n,t,o)}break;case 18:Ve!==null&&(At?(e=Ve,Fp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),_l(e)):Fp(Ve,n.stateNode));break;case 4:a=Ve,i=At,Ve=n.stateNode.containerInfo,At=!0,$n(e,t,n),Ve=a,At=i;break;case 0:case 11:case 14:case 15:Pn(2,n,t),it||Pn(4,n,t),$n(e,t,n);break;case 1:it||(gn(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Ih(n,t,a)),$n(e,t,n);break;case 21:$n(e,t,n);break;case 22:it=(a=it)||n.memoizedState!==null,$n(e,t,n),it=a;break;default:$n(e,t,n)}}function op(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{_l(e)}catch(n){He(t,t.return,n)}}}function rp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{_l(e)}catch(n){He(t,t.return,n)}}function xv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new np),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new np),t;default:throw Error(u(435,e.tag))}}function Vo(e,t){var n=xv(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var i=_v.bind(null,e,a);a.then(i,i)}})}function Mt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var i=n[a],o=e,c=t,f=c;e:for(;f!==null;){switch(f.tag){case 27:if(oa(f.type)){Ve=f.stateNode,At=!1;break e}break;case 5:Ve=f.stateNode,At=!1;break e;case 3:case 4:Ve=f.stateNode.containerInfo,At=!0;break e}f=f.return}if(Ve===null)throw Error(u(160));ip(o,c,i),Ve=null,At=!1,o=i.alternate,o!==null&&(o.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)up(t,e),t=t.sibling}var on=null;function up(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Mt(t,e),wt(e),a&4&&(Pn(3,e,e.return),xi(3,e),Pn(5,e,e.return));break;case 1:Mt(t,e),wt(e),a&512&&(it||n===null||gn(n,n.return)),a&64&&On&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var i=on;if(Mt(t,e),wt(e),a&512&&(it||n===null||gn(n,n.return)),a&4){var o=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(a){case"title":o=i.getElementsByTagName("title")[0],(!o||o[Kl]||o[ht]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=i.createElement(a),i.head.insertBefore(o,i.querySelector("head > title"))),yt(o,a,n),o[ht]=e,ct(o),a=o;break e;case"link":var c=ug("link","href",i).get(a+(n.href||""));if(c){for(var f=0;f<c.length;f++)if(o=c[f],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){c.splice(f,1);break t}}o=i.createElement(a),yt(o,a,n),i.head.appendChild(o);break;case"meta":if(c=ug("meta","content",i).get(a+(n.content||""))){for(f=0;f<c.length;f++)if(o=c[f],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){c.splice(f,1);break t}}o=i.createElement(a),yt(o,a,n),i.head.appendChild(o);break;default:throw Error(u(468,a))}o[ht]=e,ct(o),a=o}e.stateNode=a}else cg(i,e.type,e.stateNode);else e.stateNode=rg(i,a,e.memoizedProps);else o!==a?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,a===null?cg(i,e.type,e.stateNode):rg(i,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Cc(e,e.memoizedProps,n.memoizedProps)}break;case 27:Mt(t,e),wt(e),a&512&&(it||n===null||gn(n,n.return)),n!==null&&a&4&&Cc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Mt(t,e),wt(e),a&512&&(it||n===null||gn(n,n.return)),e.flags&32){i=e.stateNode;try{Ia(i,"")}catch(I){He(e,e.return,I)}}a&4&&e.stateNode!=null&&(i=e.memoizedProps,Cc(e,i,n!==null?n.memoizedProps:i)),a&1024&&(zc=!0);break;case 6:if(Mt(t,e),wt(e),a&4){if(e.stateNode===null)throw Error(u(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(I){He(e,e.return,I)}}break;case 3:if(ur=null,i=on,on=or(t.containerInfo),Mt(t,e),on=i,wt(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{_l(t.containerInfo)}catch(I){He(e,e.return,I)}zc&&(zc=!1,cp(e));break;case 4:a=on,on=or(e.stateNode.containerInfo),Mt(t,e),wt(e),on=a;break;case 12:Mt(t,e),wt(e);break;case 31:Mt(t,e),wt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Vo(e,a)));break;case 13:Mt(t,e),wt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Ko=Re()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Vo(e,a)));break;case 22:i=e.memoizedState!==null;var m=n!==null&&n.memoizedState!==null,w=On,B=it;if(On=w||i,it=B||m,Mt(t,e),it=B,On=w,wt(e),a&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||m||On||it||Ba(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){m=n=t;try{if(o=m.stateNode,i)c=o.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{f=m.stateNode;var H=m.memoizedProps.style,_=H!=null&&H.hasOwnProperty("display")?H.display:null;f.style.display=_==null||typeof _=="boolean"?"":(""+_).trim()}}catch(I){He(m,m.return,I)}}}else if(t.tag===6){if(n===null){m=t;try{m.stateNode.nodeValue=i?"":m.memoizedProps}catch(I){He(m,m.return,I)}}}else if(t.tag===18){if(n===null){m=t;try{var O=m.stateNode;i?Ip(O,!0):Ip(m.stateNode,!1)}catch(I){He(m,m.return,I)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,Vo(e,n))));break;case 19:Mt(t,e),wt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Vo(e,a)));break;case 30:break;case 21:break;default:Mt(t,e),wt(e)}}function wt(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(ep(a)){n=a;break}a=a.return}if(n==null)throw Error(u(160));switch(n.tag){case 27:var i=n.stateNode,o=Tc(e);Xo(e,o,i);break;case 5:var c=n.stateNode;n.flags&32&&(Ia(c,""),n.flags&=-33);var f=Tc(e);Xo(e,f,c);break;case 3:case 4:var m=n.stateNode.containerInfo,w=Tc(e);Ec(e,w,m);break;default:throw Error(u(161))}}catch(B){He(e,e.return,B)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function cp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;cp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Bn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ap(e,t.alternate,t),t=t.sibling}function Ba(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Pn(4,t,t.return),Ba(t);break;case 1:gn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Ih(t,t.return,n),Ba(t);break;case 27:Oi(t.stateNode);case 26:case 5:gn(t,t.return),Ba(t);break;case 22:t.memoizedState===null&&Ba(t);break;case 30:Ba(t);break;default:Ba(t)}e=e.sibling}}function Dn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,i=e,o=t,c=o.flags;switch(o.tag){case 0:case 11:case 15:Dn(i,o,n),xi(4,o);break;case 1:if(Dn(i,o,n),a=o,i=a.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(w){He(a,a.return,w)}if(a=o,i=a.updateQueue,i!==null){var f=a.stateNode;try{var m=i.shared.hiddenCallbacks;if(m!==null)for(i.shared.hiddenCallbacks=null,i=0;i<m.length;i++)qd(m[i],f)}catch(w){He(a,a.return,w)}}n&&c&64&&Fh(o),Si(o,o.return);break;case 27:tp(o);case 26:case 5:Dn(i,o,n),n&&a===null&&c&4&&Ph(o),Si(o,o.return);break;case 12:Dn(i,o,n);break;case 31:Dn(i,o,n),n&&c&4&&op(i,o);break;case 13:Dn(i,o,n),n&&c&4&&rp(i,o);break;case 22:o.memoizedState===null&&Dn(i,o,n),Si(o,o.return);break;case 30:break;default:Dn(i,o,n)}t=t.sibling}}function Ac(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ri(n))}function Mc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ri(e))}function rn(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)sp(e,t,n,a),t=t.sibling}function sp(e,t,n,a){var i=t.flags;switch(t.tag){case 0:case 11:case 15:rn(e,t,n,a),i&2048&&xi(9,t);break;case 1:rn(e,t,n,a);break;case 3:rn(e,t,n,a),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ri(e)));break;case 12:if(i&2048){rn(e,t,n,a),e=t.stateNode;try{var o=t.memoizedProps,c=o.id,f=o.onPostCommit;typeof f=="function"&&f(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(m){He(t,t.return,m)}}else rn(e,t,n,a);break;case 31:rn(e,t,n,a);break;case 13:rn(e,t,n,a);break;case 23:break;case 22:o=t.stateNode,c=t.alternate,t.memoizedState!==null?o._visibility&2?rn(e,t,n,a):Ci(e,t):o._visibility&2?rn(e,t,n,a):(o._visibility|=2,bl(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),i&2048&&Ac(c,t);break;case 24:rn(e,t,n,a),i&2048&&Mc(t.alternate,t);break;default:rn(e,t,n,a)}}function bl(e,t,n,a,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,c=t,f=n,m=a,w=c.flags;switch(c.tag){case 0:case 11:case 15:bl(o,c,f,m,i),xi(8,c);break;case 23:break;case 22:var B=c.stateNode;c.memoizedState!==null?B._visibility&2?bl(o,c,f,m,i):Ci(o,c):(B._visibility|=2,bl(o,c,f,m,i)),i&&w&2048&&Ac(c.alternate,c);break;case 24:bl(o,c,f,m,i),i&&w&2048&&Mc(c.alternate,c);break;default:bl(o,c,f,m,i)}t=t.sibling}}function Ci(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,i=a.flags;switch(a.tag){case 22:Ci(n,a),i&2048&&Ac(a.alternate,a);break;case 24:Ci(n,a),i&2048&&Mc(a.alternate,a);break;default:Ci(n,a)}t=t.sibling}}var Ti=8192;function vl(e,t,n){if(e.subtreeFlags&Ti)for(e=e.child;e!==null;)fp(e,t,n),e=e.sibling}function fp(e,t,n){switch(e.tag){case 26:vl(e,t,n),e.flags&Ti&&e.memoizedState!==null&&ox(n,on,e.memoizedState,e.memoizedProps);break;case 5:vl(e,t,n);break;case 3:case 4:var a=on;on=or(e.stateNode.containerInfo),vl(e,t,n),on=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Ti,Ti=16777216,vl(e,t,n),Ti=a):vl(e,t,n));break;default:vl(e,t,n)}}function dp(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ei(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];st=a,pp(a,e)}dp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)hp(e),e=e.sibling}function hp(e){switch(e.tag){case 0:case 11:case 15:Ei(e),e.flags&2048&&Pn(9,e,e.return);break;case 3:Ei(e);break;case 12:Ei(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Zo(e)):Ei(e);break;default:Ei(e)}}function Zo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];st=a,pp(a,e)}dp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Pn(8,t,t.return),Zo(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Zo(t));break;default:Zo(t)}e=e.sibling}}function pp(e,t){for(;st!==null;){var n=st;switch(n.tag){case 0:case 11:case 15:Pn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:ri(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,st=a;else e:for(n=e;st!==null;){a=st;var i=a.sibling,o=a.return;if(lp(a),a===n){st=null;break e}if(i!==null){i.return=o,st=i;break e}st=o}}}var Sv={getCacheForType:function(e){var t=gt(nt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return gt(nt).controller.signal}},Cv=typeof WeakMap=="function"?WeakMap:Map,$e=0,Ye=null,ye=null,ve=0,je=0,qt=null,ea=!1,xl=!1,wc=!1,Rn=0,Fe=0,ta=0,Da=0,_c=0,Lt=0,Sl=0,zi=null,_t=null,Oc=!1,Ko=0,gp=0,Jo=1/0,Wo=null,na=null,ot=0,aa=null,Cl=null,Nn=0,$c=0,Bc=null,mp=null,Ai=0,Dc=null;function Yt(){return($e&2)!==0&&ve!==0?ve&-ve:$.T!==null?Uc():Bf()}function yp(){if(Lt===0)if((ve&536870912)===0||Se){var e=ao;ao<<=1,(ao&3932160)===0&&(ao=262144),Lt=e}else Lt=536870912;return e=kt.current,e!==null&&(e.flags|=32),Lt}function Ot(e,t,n){(e===Ye&&(je===2||je===9)||e.cancelPendingCommit!==null)&&(Tl(e,0),la(e,ve,Lt,!1)),Zl(e,n),(($e&2)===0||e!==Ye)&&(e===Ye&&(($e&2)===0&&(Da|=n),Fe===4&&la(e,ve,Lt,!1)),mn(e))}function bp(e,t,n){if(($e&6)!==0)throw Error(u(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Vl(e,t),i=a?zv(e,t):Nc(e,t,!0),o=a;do{if(i===0){xl&&!a&&la(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!Tv(n)){i=Nc(e,t,!1),o=!1;continue}if(i===2){if(o=t,e.errorRecoveryDisabledLanes&o)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var f=e;i=zi;var m=f.current.memoizedState.isDehydrated;if(m&&(Tl(f,c).flags|=256),c=Nc(f,c,!1),c!==2){if(wc&&!m){f.errorRecoveryDisabledLanes|=o,Da|=o,i=4;break e}o=_t,_t=i,o!==null&&(_t===null?_t=o:_t.push.apply(_t,o))}i=c}if(o=!1,i!==2)continue}}if(i===1){Tl(e,0),la(e,t,0,!0);break}e:{switch(a=e,o=i,o){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:la(a,t,Lt,!ea);break e;case 2:_t=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(i=Ko+300-Re(),10<i)){if(la(a,t,Lt,!ea),io(a,0,!0)!==0)break e;Nn=t,a.timeoutHandle=Jp(vp.bind(null,a,n,_t,Wo,Oc,t,Lt,Da,Sl,ea,o,"Throttled",-0,0),i);break e}vp(a,n,_t,Wo,Oc,t,Lt,Da,Sl,ea,o,null,-0,0)}}break}while(!0);mn(e)}function vp(e,t,n,a,i,o,c,f,m,w,B,H,_,O){if(e.timeoutHandle=-1,H=t.subtreeFlags,H&8192||(H&16785408)===16785408){H={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:xn},fp(t,o,H);var I=(o&62914560)===o?Ko-Re():(o&4194048)===o?gp-Re():0;if(I=rx(H,I),I!==null){Nn=o,e.cancelPendingCommit=I(Mp.bind(null,e,t,o,n,a,i,c,f,m,B,H,null,_,O)),la(e,o,c,!w);return}}Mp(e,t,o,n,a,i,c,f,m)}function Tv(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var i=n[a],o=i.getSnapshot;i=i.value;try{if(!jt(o(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function la(e,t,n,a){t&=~_c,t&=~Da,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var i=t;0<i;){var o=31-Nt(i),c=1<<o;a[o]=-1,i&=~c}n!==0&&_f(e,n,t)}function Fo(){return($e&6)===0?(Mi(0),!1):!0}function Rc(){if(ye!==null){if(je===0)var e=ye.return;else e=ye,En=Ea=null,Wu(e),hl=null,ci=0,e=ye;for(;e!==null;)Wh(e.alternate,e),e=e.return;ye=null}}function Tl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Gv(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Nn=0,Rc(),Ye=e,ye=n=Cn(e.current,null),ve=t,je=0,qt=null,ea=!1,xl=Vl(e,t),wc=!1,Sl=Lt=_c=Da=ta=Fe=0,_t=zi=null,Oc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var i=31-Nt(a),o=1<<i;t|=e[i],a&=~o}return Rn=t,bo(),n}function xp(e,t){de=null,$.H=yi,t===dl||t===Ao?(t=jd(),je=3):t===ku?(t=jd(),je=4):je=t===dc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,qt=t,ye===null&&(Fe=1,qo(e,Zt(t,e.current)))}function Sp(){var e=kt.current;return e===null?!0:(ve&4194048)===ve?Ft===null:(ve&62914560)===ve||(ve&536870912)!==0?e===Ft:!1}function Cp(){var e=$.H;return $.H=yi,e===null?yi:e}function Tp(){var e=$.A;return $.A=Sv,e}function Io(){Fe=4,ea||(ve&4194048)!==ve&&kt.current!==null||(xl=!0),(ta&134217727)===0&&(Da&134217727)===0||Ye===null||la(Ye,ve,Lt,!1)}function Nc(e,t,n){var a=$e;$e|=2;var i=Cp(),o=Tp();(Ye!==e||ve!==t)&&(Wo=null,Tl(e,t)),t=!1;var c=Fe;e:do try{if(je!==0&&ye!==null){var f=ye,m=qt;switch(je){case 8:Rc(),c=6;break e;case 3:case 2:case 9:case 6:kt.current===null&&(t=!0);var w=je;if(je=0,qt=null,El(e,f,m,w),n&&xl){c=0;break e}break;default:w=je,je=0,qt=null,El(e,f,m,w)}}Ev(),c=Fe;break}catch(B){xp(e,B)}while(!0);return t&&e.shellSuspendCounter++,En=Ea=null,$e=a,$.H=i,$.A=o,ye===null&&(Ye=null,ve=0,bo()),c}function Ev(){for(;ye!==null;)Ep(ye)}function zv(e,t){var n=$e;$e|=2;var a=Cp(),i=Tp();Ye!==e||ve!==t?(Wo=null,Jo=Re()+500,Tl(e,t)):xl=Vl(e,t);e:do try{if(je!==0&&ye!==null){t=ye;var o=qt;t:switch(je){case 1:je=0,qt=null,El(e,t,o,1);break;case 2:case 9:if(Rd(o)){je=0,qt=null,zp(t);break}t=function(){je!==2&&je!==9||Ye!==e||(je=7),mn(e)},o.then(t,t);break e;case 3:je=7;break e;case 4:je=5;break e;case 7:Rd(o)?(je=0,qt=null,zp(t)):(je=0,qt=null,El(e,t,o,7));break;case 5:var c=null;switch(ye.tag){case 26:c=ye.memoizedState;case 5:case 27:var f=ye;if(c?sg(c):f.stateNode.complete){je=0,qt=null;var m=f.sibling;if(m!==null)ye=m;else{var w=f.return;w!==null?(ye=w,Po(w)):ye=null}break t}}je=0,qt=null,El(e,t,o,5);break;case 6:je=0,qt=null,El(e,t,o,6);break;case 8:Rc(),Fe=6;break e;default:throw Error(u(462))}}Av();break}catch(B){xp(e,B)}while(!0);return En=Ea=null,$.H=a,$.A=i,$e=n,ye!==null?0:(Ye=null,ve=0,bo(),Fe)}function Av(){for(;ye!==null&&!Ne();)Ep(ye)}function Ep(e){var t=Kh(e.alternate,e,Rn);e.memoizedProps=e.pendingProps,t===null?Po(e):ye=t}function zp(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Yh(n,t,t.pendingProps,t.type,void 0,ve);break;case 11:t=Yh(n,t,t.pendingProps,t.type.render,t.ref,ve);break;case 5:Wu(t);default:Wh(n,t),t=ye=Td(t,Rn),t=Kh(n,t,Rn)}e.memoizedProps=e.pendingProps,t===null?Po(e):ye=t}function El(e,t,n,a){En=Ea=null,Wu(t),hl=null,ci=0;var i=t.return;try{if(pv(e,i,t,n,ve)){Fe=1,qo(e,Zt(n,e.current)),ye=null;return}}catch(o){if(i!==null)throw ye=i,o;Fe=1,qo(e,Zt(n,e.current)),ye=null;return}t.flags&32768?(Se||a===1?e=!0:xl||(ve&536870912)!==0?e=!1:(ea=e=!0,(a===2||a===9||a===3||a===6)&&(a=kt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Ap(t,e)):Po(t)}function Po(e){var t=e;do{if((t.flags&32768)!==0){Ap(t,ea);return}e=t.return;var n=yv(t.alternate,t,Rn);if(n!==null){ye=n;return}if(t=t.sibling,t!==null){ye=t;return}ye=t=e}while(t!==null);Fe===0&&(Fe=5)}function Ap(e,t){do{var n=bv(e.alternate,e);if(n!==null){n.flags&=32767,ye=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ye=e;return}ye=e=n}while(e!==null);Fe=6,ye=null}function Mp(e,t,n,a,i,o,c,f,m){e.cancelPendingCommit=null;do er();while(ot!==0);if(($e&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(o=t.lanes|t.childLanes,o|=Tu,i1(e,n,o,c,f,m),e===Ye&&(ye=Ye=null,ve=0),Cl=t,aa=e,Nn=n,$c=o,Bc=i,mp=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Ov(to,function(){return Bp(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=$.T,$.T=null,i=K.p,K.p=2,c=$e,$e|=4;try{vv(e,t,n)}finally{$e=c,K.p=i,$.T=a}}ot=1,wp(),_p(),Op()}}function wp(){if(ot===1){ot=0;var e=aa,t=Cl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=$.T,$.T=null;var a=K.p;K.p=2;var i=$e;$e|=4;try{up(t,e);var o=Zc,c=pd(e.containerInfo),f=o.focusedElem,m=o.selectionRange;if(c!==f&&f&&f.ownerDocument&&hd(f.ownerDocument.documentElement,f)){if(m!==null&&bu(f)){var w=m.start,B=m.end;if(B===void 0&&(B=w),"selectionStart"in f)f.selectionStart=w,f.selectionEnd=Math.min(B,f.value.length);else{var H=f.ownerDocument||document,_=H&&H.defaultView||window;if(_.getSelection){var O=_.getSelection(),I=f.textContent.length,ie=Math.min(m.start,I),Le=m.end===void 0?ie:Math.min(m.end,I);!O.extend&&ie>Le&&(c=Le,Le=ie,ie=c);var E=dd(f,ie),b=dd(f,Le);if(E&&b&&(O.rangeCount!==1||O.anchorNode!==E.node||O.anchorOffset!==E.offset||O.focusNode!==b.node||O.focusOffset!==b.offset)){var M=H.createRange();M.setStart(E.node,E.offset),O.removeAllRanges(),ie>Le?(O.addRange(M),O.extend(b.node,b.offset)):(M.setEnd(b.node,b.offset),O.addRange(M))}}}}for(H=[],O=f;O=O.parentNode;)O.nodeType===1&&H.push({element:O,left:O.scrollLeft,top:O.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<H.length;f++){var N=H[f];N.element.scrollLeft=N.left,N.element.scrollTop=N.top}}dr=!!Vc,Zc=Vc=null}finally{$e=i,K.p=a,$.T=n}}e.current=t,ot=2}}function _p(){if(ot===2){ot=0;var e=aa,t=Cl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=$.T,$.T=null;var a=K.p;K.p=2;var i=$e;$e|=4;try{ap(e,t.alternate,t)}finally{$e=i,K.p=a,$.T=n}}ot=3}}function Op(){if(ot===4||ot===3){ot=0,Je();var e=aa,t=Cl,n=Nn,a=mp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ot=5:(ot=0,Cl=aa=null,$p(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(na=null),Pr(n),t=t.stateNode,Rt&&typeof Rt.onCommitFiberRoot=="function")try{Rt.onCommitFiberRoot(Xl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=$.T,i=K.p,K.p=2,$.T=null;try{for(var o=e.onRecoverableError,c=0;c<a.length;c++){var f=a[c];o(f.value,{componentStack:f.stack})}}finally{$.T=t,K.p=i}}(Nn&3)!==0&&er(),mn(e),i=e.pendingLanes,(n&261930)!==0&&(i&42)!==0?e===Dc?Ai++:(Ai=0,Dc=e):Ai=0,Mi(0)}}function $p(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ri(t)))}function er(){return wp(),_p(),Op(),Bp()}function Bp(){if(ot!==5)return!1;var e=aa,t=$c;$c=0;var n=Pr(Nn),a=$.T,i=K.p;try{K.p=32>n?32:n,$.T=null,n=Bc,Bc=null;var o=aa,c=Nn;if(ot=0,Cl=aa=null,Nn=0,($e&6)!==0)throw Error(u(331));var f=$e;if($e|=4,hp(o.current),sp(o,o.current,c,n),$e=f,Mi(0,!1),Rt&&typeof Rt.onPostCommitFiberRoot=="function")try{Rt.onPostCommitFiberRoot(Xl,o)}catch{}return!0}finally{K.p=i,$.T=a,$p(e,t)}}function Dp(e,t,n){t=Zt(n,t),t=fc(e.stateNode,t,2),e=Wn(e,t,2),e!==null&&(Zl(e,2),mn(e))}function He(e,t,n){if(e.tag===3)Dp(e,e,n);else for(;t!==null;){if(t.tag===3){Dp(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(na===null||!na.has(a))){e=Zt(n,e),n=Rh(2),a=Wn(t,n,2),a!==null&&(Nh(n,a,t,e),Zl(a,2),mn(a));break}}t=t.return}}function jc(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new Cv;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(n)||(wc=!0,i.add(n),e=Mv.bind(null,e,t,n),t.then(e,e))}function Mv(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ye===e&&(ve&n)===n&&(Fe===4||Fe===3&&(ve&62914560)===ve&&300>Re()-Ko?($e&2)===0&&Tl(e,0):_c|=n,Sl===ve&&(Sl=0)),mn(e)}function Rp(e,t){t===0&&(t=wf()),e=Sa(e,t),e!==null&&(Zl(e,t),mn(e))}function wv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Rp(e,n)}function _v(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),Rp(e,n)}function Ov(e,t){return De(e,t)}var tr=null,zl=null,Hc=!1,nr=!1,kc=!1,ia=0;function mn(e){e!==zl&&e.next===null&&(zl===null?tr=zl=e:zl=zl.next=e),nr=!0,Hc||(Hc=!0,Bv())}function Mi(e,t){if(!kc&&nr){kc=!0;do for(var n=!1,a=tr;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var o=0;else{var c=a.suspendedLanes,f=a.pingedLanes;o=(1<<31-Nt(42|e)+1)-1,o&=i&~(c&~f),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,kp(a,o))}else o=ve,o=io(a,a===Ye?o:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(o&3)===0||Vl(a,o)||(n=!0,kp(a,o));a=a.next}while(n);kc=!1}}function $v(){Np()}function Np(){nr=Hc=!1;var e=0;ia!==0&&Yv()&&(e=ia);for(var t=Re(),n=null,a=tr;a!==null;){var i=a.next,o=jp(a,t);o===0?(a.next=null,n===null?tr=i:n.next=i,i===null&&(zl=n)):(n=a,(e!==0||(o&3)!==0)&&(nr=!0)),a=i}ot!==0&&ot!==5||Mi(e),ia!==0&&(ia=0)}function jp(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var c=31-Nt(o),f=1<<c,m=i[c];m===-1?((f&n)===0||(f&a)!==0)&&(i[c]=l1(f,t)):m<=t&&(e.expiredLanes|=f),o&=~f}if(t=Ye,n=ve,n=io(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(je===2||je===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&fe(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Vl(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&fe(a),Pr(n)){case 2:case 8:n=Af;break;case 32:n=to;break;case 268435456:n=Mf;break;default:n=to}return a=Hp.bind(null,e),n=De(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&fe(a),e.callbackPriority=2,e.callbackNode=null,2}function Hp(e,t){if(ot!==0&&ot!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(er()&&e.callbackNode!==n)return null;var a=ve;return a=io(e,e===Ye?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(bp(e,a,t),jp(e,Re()),e.callbackNode!=null&&e.callbackNode===n?Hp.bind(null,e):null)}function kp(e,t){if(er())return null;bp(e,t,!0)}function Bv(){Qv(function(){($e&6)!==0?De(zf,$v):Np()})}function Uc(){if(ia===0){var e=sl;e===0&&(e=no,no<<=1,(no&261888)===0&&(no=256)),ia=e}return ia}function Up(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:co(""+e)}function qp(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Dv(e,t,n,a,i){if(t==="submit"&&n&&n.stateNode===i){var o=Up((i[Et]||null).action),c=a.submitter;c&&(t=(t=c[Et]||null)?Up(t.formAction):c.getAttribute("formAction"),t!==null&&(o=t,c=null));var f=new po("action","action",null,a,i);e.push({event:f,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(ia!==0){var m=c?qp(i,c):new FormData(i);ic(n,{pending:!0,data:m,method:i.method,action:o},null,m)}}else typeof o=="function"&&(f.preventDefault(),m=c?qp(i,c):new FormData(i),ic(n,{pending:!0,data:m,method:i.method,action:o},o,m))},currentTarget:i}]})}}for(var qc=0;qc<Cu.length;qc++){var Lc=Cu[qc],Rv=Lc.toLowerCase(),Nv=Lc[0].toUpperCase()+Lc.slice(1);ln(Rv,"on"+Nv)}ln(yd,"onAnimationEnd"),ln(bd,"onAnimationIteration"),ln(vd,"onAnimationStart"),ln("dblclick","onDoubleClick"),ln("focusin","onFocus"),ln("focusout","onBlur"),ln(F1,"onTransitionRun"),ln(I1,"onTransitionStart"),ln(P1,"onTransitionCancel"),ln(xd,"onTransitionEnd"),Wa("onMouseEnter",["mouseout","mouseover"]),Wa("onMouseLeave",["mouseout","mouseover"]),Wa("onPointerEnter",["pointerout","pointerover"]),Wa("onPointerLeave",["pointerout","pointerover"]),ya("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ya("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ya("onBeforeInput",["compositionend","keypress","textInput","paste"]),ya("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ya("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ya("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),jv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(wi));function Lp(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],i=a.event;a=a.listeners;e:{var o=void 0;if(t)for(var c=a.length-1;0<=c;c--){var f=a[c],m=f.instance,w=f.currentTarget;if(f=f.listener,m!==o&&i.isPropagationStopped())break e;o=f,i.currentTarget=w;try{o(i)}catch(B){yo(B)}i.currentTarget=null,o=m}else for(c=0;c<a.length;c++){if(f=a[c],m=f.instance,w=f.currentTarget,f=f.listener,m!==o&&i.isPropagationStopped())break e;o=f,i.currentTarget=w;try{o(i)}catch(B){yo(B)}i.currentTarget=null,o=m}}}}function be(e,t){var n=t[eu];n===void 0&&(n=t[eu]=new Set);var a=e+"__bubble";n.has(a)||(Yp(t,e,2,!1),n.add(a))}function Yc(e,t,n){var a=0;t&&(a|=4),Yp(n,e,a,t)}var ar="_reactListening"+Math.random().toString(36).slice(2);function Gc(e){if(!e[ar]){e[ar]=!0,Nf.forEach(function(n){n!=="selectionchange"&&(jv.has(n)||Yc(n,!1,e),Yc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ar]||(t[ar]=!0,Yc("selectionchange",!1,t))}}function Yp(e,t,n,a){switch(yg(t)){case 2:var i=sx;break;case 8:i=fx;break;default:i=ls}n=i.bind(null,t,n,e),i=void 0,!cu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),a?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Qc(e,t,n,a,i){var o=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var c=a.tag;if(c===3||c===4){var f=a.stateNode.containerInfo;if(f===i)break;if(c===4)for(c=a.return;c!==null;){var m=c.tag;if((m===3||m===4)&&c.stateNode.containerInfo===i)return;c=c.return}for(;f!==null;){if(c=Za(f),c===null)return;if(m=c.tag,m===5||m===6||m===26||m===27){a=o=c;continue e}f=f.parentNode}}a=a.return}Zf(function(){var w=o,B=ru(n),H=[];e:{var _=Sd.get(e);if(_!==void 0){var O=po,I=e;switch(e){case"keypress":if(fo(n)===0)break e;case"keydown":case"keyup":O=_1;break;case"focusin":I="focus",O=hu;break;case"focusout":I="blur",O=hu;break;case"beforeblur":case"afterblur":O=hu;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":O=Wf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=y1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=B1;break;case yd:case bd:case vd:O=x1;break;case xd:O=R1;break;case"scroll":case"scrollend":O=g1;break;case"wheel":O=j1;break;case"copy":case"cut":case"paste":O=C1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=If;break;case"toggle":case"beforetoggle":O=k1}var ie=(t&4)!==0,Le=!ie&&(e==="scroll"||e==="scrollend"),E=ie?_!==null?_+"Capture":null:_;ie=[];for(var b=w,M;b!==null;){var N=b;if(M=N.stateNode,N=N.tag,N!==5&&N!==26&&N!==27||M===null||E===null||(N=Wl(b,E),N!=null&&ie.push(_i(b,N,M))),Le)break;b=b.return}0<ie.length&&(_=new O(_,I,null,n,B),H.push({event:_,listeners:ie}))}}if((t&7)===0){e:{if(_=e==="mouseover"||e==="pointerover",O=e==="mouseout"||e==="pointerout",_&&n!==ou&&(I=n.relatedTarget||n.fromElement)&&(Za(I)||I[Va]))break e;if((O||_)&&(_=B.window===B?B:(_=B.ownerDocument)?_.defaultView||_.parentWindow:window,O?(I=n.relatedTarget||n.toElement,O=w,I=I?Za(I):null,I!==null&&(Le=h(I),ie=I.tag,I!==Le||ie!==5&&ie!==27&&ie!==6)&&(I=null)):(O=null,I=w),O!==I)){if(ie=Wf,N="onMouseLeave",E="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(ie=If,N="onPointerLeave",E="onPointerEnter",b="pointer"),Le=O==null?_:Jl(O),M=I==null?_:Jl(I),_=new ie(N,b+"leave",O,n,B),_.target=Le,_.relatedTarget=M,N=null,Za(B)===w&&(ie=new ie(E,b+"enter",I,n,B),ie.target=M,ie.relatedTarget=Le,N=ie),Le=N,O&&I)t:{for(ie=Hv,E=O,b=I,M=0,N=E;N;N=ie(N))M++;N=0;for(var ae=b;ae;ae=ie(ae))N++;for(;0<M-N;)E=ie(E),M--;for(;0<N-M;)b=ie(b),N--;for(;M--;){if(E===b||b!==null&&E===b.alternate){ie=E;break t}E=ie(E),b=ie(b)}ie=null}else ie=null;O!==null&&Gp(H,_,O,ie,!1),I!==null&&Le!==null&&Gp(H,Le,I,ie,!0)}}e:{if(_=w?Jl(w):window,O=_.nodeName&&_.nodeName.toLowerCase(),O==="select"||O==="input"&&_.type==="file")var Ee=od;else if(ld(_))if(rd)Ee=K1;else{Ee=V1;var te=X1}else O=_.nodeName,!O||O.toLowerCase()!=="input"||_.type!=="checkbox"&&_.type!=="radio"?w&&iu(w.elementType)&&(Ee=od):Ee=Z1;if(Ee&&(Ee=Ee(e,w))){id(H,Ee,n,B);break e}te&&te(e,_,w),e==="focusout"&&w&&_.type==="number"&&w.memoizedProps.value!=null&&lu(_,"number",_.value)}switch(te=w?Jl(w):window,e){case"focusin":(ld(te)||te.contentEditable==="true")&&(nl=te,vu=w,li=null);break;case"focusout":li=vu=nl=null;break;case"mousedown":xu=!0;break;case"contextmenu":case"mouseup":case"dragend":xu=!1,gd(H,n,B);break;case"selectionchange":if(W1)break;case"keydown":case"keyup":gd(H,n,B)}var he;if(gu)e:{switch(e){case"compositionstart":var xe="onCompositionStart";break e;case"compositionend":xe="onCompositionEnd";break e;case"compositionupdate":xe="onCompositionUpdate";break e}xe=void 0}else tl?nd(e,n)&&(xe="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(xe="onCompositionStart");xe&&(Pf&&n.locale!=="ko"&&(tl||xe!=="onCompositionStart"?xe==="onCompositionEnd"&&tl&&(he=Kf()):(Gn=B,su="value"in Gn?Gn.value:Gn.textContent,tl=!0)),te=lr(w,xe),0<te.length&&(xe=new Ff(xe,e,null,n,B),H.push({event:xe,listeners:te}),he?xe.data=he:(he=ad(n),he!==null&&(xe.data=he)))),(he=q1?L1(e,n):Y1(e,n))&&(xe=lr(w,"onBeforeInput"),0<xe.length&&(te=new Ff("onBeforeInput","beforeinput",null,n,B),H.push({event:te,listeners:xe}),te.data=he)),Dv(H,e,w,n,B)}Lp(H,t)})}function _i(e,t,n){return{instance:e,listener:t,currentTarget:n}}function lr(e,t){for(var n=t+"Capture",a=[];e!==null;){var i=e,o=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||o===null||(i=Wl(e,n),i!=null&&a.unshift(_i(e,i,o)),i=Wl(e,t),i!=null&&a.push(_i(e,i,o))),e.tag===3)return a;e=e.return}return[]}function Hv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Gp(e,t,n,a,i){for(var o=t._reactName,c=[];n!==null&&n!==a;){var f=n,m=f.alternate,w=f.stateNode;if(f=f.tag,m!==null&&m===a)break;f!==5&&f!==26&&f!==27||w===null||(m=w,i?(w=Wl(n,o),w!=null&&c.unshift(_i(n,w,m))):i||(w=Wl(n,o),w!=null&&c.push(_i(n,w,m)))),n=n.return}c.length!==0&&e.push({event:t,listeners:c})}var kv=/\r\n?/g,Uv=/\u0000|\uFFFD/g;function Qp(e){return(typeof e=="string"?e:""+e).replace(kv,`
|
|
9
|
-
`).replace(Uv,"")}function Xp(e,t){return t=Qp(t),Qp(e)===t}function qe(e,t,n,a,i,o){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Ia(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Ia(e,""+a);break;case"className":ro(e,"class",a);break;case"tabIndex":ro(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":ro(e,n,a);break;case"style":Xf(e,a,o);break;case"data":if(t!=="object"){ro(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=co(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(t!=="input"&&qe(e,t,"name",i.name,i,null),qe(e,t,"formEncType",i.formEncType,i,null),qe(e,t,"formMethod",i.formMethod,i,null),qe(e,t,"formTarget",i.formTarget,i,null)):(qe(e,t,"encType",i.encType,i,null),qe(e,t,"method",i.method,i,null),qe(e,t,"target",i.target,i,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=co(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=xn);break;case"onScroll":a!=null&&be("scroll",e);break;case"onScrollEnd":a!=null&&be("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(u(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(u(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=co(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":be("beforetoggle",e),be("toggle",e),oo(e,"popover",a);break;case"xlinkActuate":vn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":vn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":vn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":vn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":vn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":vn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":vn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":vn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":vn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":oo(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=h1.get(n)||n,oo(e,n,a))}}function Xc(e,t,n,a,i,o){switch(n){case"style":Xf(e,a,o);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(u(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(u(60));e.innerHTML=n}}break;case"children":typeof a=="string"?Ia(e,a):(typeof a=="number"||typeof a=="bigint")&&Ia(e,""+a);break;case"onScroll":a!=null&&be("scroll",e);break;case"onScrollEnd":a!=null&&be("scrollend",e);break;case"onClick":a!=null&&(e.onclick=xn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!jf.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),o=e[Et]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,i),typeof a=="function")){typeof o!="function"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,i);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):oo(e,n,a)}}}function yt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":be("error",e),be("load",e);var a=!1,i=!1,o;for(o in n)if(n.hasOwnProperty(o)){var c=n[o];if(c!=null)switch(o){case"src":a=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:qe(e,t,o,c,n,null)}}i&&qe(e,t,"srcSet",n.srcSet,n,null),a&&qe(e,t,"src",n.src,n,null);return;case"input":be("invalid",e);var f=o=c=i=null,m=null,w=null;for(a in n)if(n.hasOwnProperty(a)){var B=n[a];if(B!=null)switch(a){case"name":i=B;break;case"type":c=B;break;case"checked":m=B;break;case"defaultChecked":w=B;break;case"value":o=B;break;case"defaultValue":f=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(u(137,t));break;default:qe(e,t,a,B,n,null)}}Lf(e,o,f,m,w,c,i,!1);return;case"select":be("invalid",e),a=c=o=null;for(i in n)if(n.hasOwnProperty(i)&&(f=n[i],f!=null))switch(i){case"value":o=f;break;case"defaultValue":c=f;break;case"multiple":a=f;default:qe(e,t,i,f,n,null)}t=o,n=c,e.multiple=!!a,t!=null?Fa(e,!!a,t,!1):n!=null&&Fa(e,!!a,n,!0);return;case"textarea":be("invalid",e),o=i=a=null;for(c in n)if(n.hasOwnProperty(c)&&(f=n[c],f!=null))switch(c){case"value":a=f;break;case"defaultValue":i=f;break;case"children":o=f;break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(u(91));break;default:qe(e,t,c,f,n,null)}Gf(e,a,i,o);return;case"option":for(m in n)n.hasOwnProperty(m)&&(a=n[m],a!=null)&&(m==="selected"?e.selected=a&&typeof a!="function"&&typeof a!="symbol":qe(e,t,m,a,n,null));return;case"dialog":be("beforetoggle",e),be("toggle",e),be("cancel",e),be("close",e);break;case"iframe":case"object":be("load",e);break;case"video":case"audio":for(a=0;a<wi.length;a++)be(wi[a],e);break;case"image":be("error",e),be("load",e);break;case"details":be("toggle",e);break;case"embed":case"source":case"link":be("error",e),be("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(w in n)if(n.hasOwnProperty(w)&&(a=n[w],a!=null))switch(w){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:qe(e,t,w,a,n,null)}return;default:if(iu(t)){for(B in n)n.hasOwnProperty(B)&&(a=n[B],a!==void 0&&Xc(e,t,B,a,n,void 0));return}}for(f in n)n.hasOwnProperty(f)&&(a=n[f],a!=null&&qe(e,t,f,a,n,null))}function qv(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,o=null,c=null,f=null,m=null,w=null,B=null;for(O in n){var H=n[O];if(n.hasOwnProperty(O)&&H!=null)switch(O){case"checked":break;case"value":break;case"defaultValue":m=H;default:a.hasOwnProperty(O)||qe(e,t,O,null,a,H)}}for(var _ in a){var O=a[_];if(H=n[_],a.hasOwnProperty(_)&&(O!=null||H!=null))switch(_){case"type":o=O;break;case"name":i=O;break;case"checked":w=O;break;case"defaultChecked":B=O;break;case"value":c=O;break;case"defaultValue":f=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(u(137,t));break;default:O!==H&&qe(e,t,_,O,a,H)}}au(e,c,f,m,w,B,o,i);return;case"select":O=c=f=_=null;for(o in n)if(m=n[o],n.hasOwnProperty(o)&&m!=null)switch(o){case"value":break;case"multiple":O=m;default:a.hasOwnProperty(o)||qe(e,t,o,null,a,m)}for(i in a)if(o=a[i],m=n[i],a.hasOwnProperty(i)&&(o!=null||m!=null))switch(i){case"value":_=o;break;case"defaultValue":f=o;break;case"multiple":c=o;default:o!==m&&qe(e,t,i,o,a,m)}t=f,n=c,a=O,_!=null?Fa(e,!!n,_,!1):!!a!=!!n&&(t!=null?Fa(e,!!n,t,!0):Fa(e,!!n,n?[]:"",!1));return;case"textarea":O=_=null;for(f in n)if(i=n[f],n.hasOwnProperty(f)&&i!=null&&!a.hasOwnProperty(f))switch(f){case"value":break;case"children":break;default:qe(e,t,f,null,a,i)}for(c in a)if(i=a[c],o=n[c],a.hasOwnProperty(c)&&(i!=null||o!=null))switch(c){case"value":_=i;break;case"defaultValue":O=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(u(91));break;default:i!==o&&qe(e,t,c,i,a,o)}Yf(e,_,O);return;case"option":for(var I in n)_=n[I],n.hasOwnProperty(I)&&_!=null&&!a.hasOwnProperty(I)&&(I==="selected"?e.selected=!1:qe(e,t,I,null,a,_));for(m in a)_=a[m],O=n[m],a.hasOwnProperty(m)&&_!==O&&(_!=null||O!=null)&&(m==="selected"?e.selected=_&&typeof _!="function"&&typeof _!="symbol":qe(e,t,m,_,a,O));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ie in n)_=n[ie],n.hasOwnProperty(ie)&&_!=null&&!a.hasOwnProperty(ie)&&qe(e,t,ie,null,a,_);for(w in a)if(_=a[w],O=n[w],a.hasOwnProperty(w)&&_!==O&&(_!=null||O!=null))switch(w){case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(u(137,t));break;default:qe(e,t,w,_,a,O)}return;default:if(iu(t)){for(var Le in n)_=n[Le],n.hasOwnProperty(Le)&&_!==void 0&&!a.hasOwnProperty(Le)&&Xc(e,t,Le,void 0,a,_);for(B in a)_=a[B],O=n[B],!a.hasOwnProperty(B)||_===O||_===void 0&&O===void 0||Xc(e,t,B,_,a,O);return}}for(var E in n)_=n[E],n.hasOwnProperty(E)&&_!=null&&!a.hasOwnProperty(E)&&qe(e,t,E,null,a,_);for(H in a)_=a[H],O=n[H],!a.hasOwnProperty(H)||_===O||_==null&&O==null||qe(e,t,H,_,a,O)}function Vp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Lv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var i=n[a],o=i.transferSize,c=i.initiatorType,f=i.duration;if(o&&f&&Vp(c)){for(c=0,f=i.responseEnd,a+=1;a<n.length;a++){var m=n[a],w=m.startTime;if(w>f)break;var B=m.transferSize,H=m.initiatorType;B&&Vp(H)&&(m=m.responseEnd,c+=B*(m<f?1:(f-w)/(m-w)))}if(--a,t+=8*(o+c)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Vc=null,Zc=null;function ir(e){return e.nodeType===9?e:e.ownerDocument}function Zp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Kp(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Kc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Jc=null;function Yv(){var e=window.event;return e&&e.type==="popstate"?e===Jc?!1:(Jc=e,!0):(Jc=null,!1)}var Jp=typeof setTimeout=="function"?setTimeout:void 0,Gv=typeof clearTimeout=="function"?clearTimeout:void 0,Wp=typeof Promise=="function"?Promise:void 0,Qv=typeof queueMicrotask=="function"?queueMicrotask:typeof Wp<"u"?function(e){return Wp.resolve(null).then(e).catch(Xv)}:Jp;function Xv(e){setTimeout(function(){throw e})}function oa(e){return e==="head"}function Fp(e,t){var n=t,a=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(i),_l(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")Oi(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Oi(n);for(var o=n.firstChild;o;){var c=o.nextSibling,f=o.nodeName;o[Kl]||f==="SCRIPT"||f==="STYLE"||f==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=c}}else n==="body"&&Oi(e.ownerDocument.body);n=i}while(n);_l(t)}function Ip(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function Wc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Wc(n),tu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Vv(e,t,n,a){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Kl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=It(e.nextSibling),e===null)break}return null}function Zv(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=It(e.nextSibling),e===null))return null;return e}function Pp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=It(e.nextSibling),e===null))return null;return e}function Fc(e){return e.data==="$?"||e.data==="$~"}function Ic(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Kv(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function It(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Pc=null;function eg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return It(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function tg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function ng(e,t,n){switch(t=ir(n),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function Oi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);tu(e)}var Pt=new Map,ag=new Set;function or(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var jn=K.d;K.d={f:Jv,r:Wv,D:Fv,C:Iv,L:Pv,m:ex,X:nx,S:tx,M:ax};function Jv(){var e=jn.f(),t=Fo();return e||t}function Wv(e){var t=Ka(e);t!==null&&t.tag===5&&t.type==="form"?xh(t):jn.r(e)}var Al=typeof document>"u"?null:document;function lg(e,t,n){var a=Al;if(a&&typeof t=="string"&&t){var i=Xt(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),ag.has(i)||(ag.add(i),e={rel:e,crossOrigin:n,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),yt(t,"link",e),ct(t),a.head.appendChild(t)))}}function Fv(e){jn.D(e),lg("dns-prefetch",e,null)}function Iv(e,t){jn.C(e,t),lg("preconnect",e,t)}function Pv(e,t,n){jn.L(e,t,n);var a=Al;if(a&&e&&t){var i='link[rel="preload"][as="'+Xt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+Xt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+Xt(n.imageSizes)+'"]')):i+='[href="'+Xt(e)+'"]';var o=i;switch(t){case"style":o=Ml(e);break;case"script":o=wl(e)}Pt.has(o)||(e=z({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Pt.set(o,e),a.querySelector(i)!==null||t==="style"&&a.querySelector($i(o))||t==="script"&&a.querySelector(Bi(o))||(t=a.createElement("link"),yt(t,"link",e),ct(t),a.head.appendChild(t)))}}function ex(e,t){jn.m(e,t);var n=Al;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+Xt(a)+'"][href="'+Xt(e)+'"]',o=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=wl(e)}if(!Pt.has(o)&&(e=z({rel:"modulepreload",href:e},t),Pt.set(o,e),n.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Bi(o)))return}a=n.createElement("link"),yt(a,"link",e),ct(a),n.head.appendChild(a)}}}function tx(e,t,n){jn.S(e,t,n);var a=Al;if(a&&e){var i=Ja(a).hoistableStyles,o=Ml(e);t=t||"default";var c=i.get(o);if(!c){var f={loading:0,preload:null};if(c=a.querySelector($i(o)))f.loading=5;else{e=z({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Pt.get(o))&&es(e,n);var m=c=a.createElement("link");ct(m),yt(m,"link",e),m._p=new Promise(function(w,B){m.onload=w,m.onerror=B}),m.addEventListener("load",function(){f.loading|=1}),m.addEventListener("error",function(){f.loading|=2}),f.loading|=4,rr(c,t,a)}c={type:"stylesheet",instance:c,count:1,state:f},i.set(o,c)}}}function nx(e,t){jn.X(e,t);var n=Al;if(n&&e){var a=Ja(n).hoistableScripts,i=wl(e),o=a.get(i);o||(o=n.querySelector(Bi(i)),o||(e=z({src:e,async:!0},t),(t=Pt.get(i))&&ts(e,t),o=n.createElement("script"),ct(o),yt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(i,o))}}function ax(e,t){jn.M(e,t);var n=Al;if(n&&e){var a=Ja(n).hoistableScripts,i=wl(e),o=a.get(i);o||(o=n.querySelector(Bi(i)),o||(e=z({src:e,async:!0,type:"module"},t),(t=Pt.get(i))&&ts(e,t),o=n.createElement("script"),ct(o),yt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(i,o))}}function ig(e,t,n,a){var i=(i=ue.current)?or(i):null;if(!i)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Ml(n.href),n=Ja(i).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ml(n.href);var o=Ja(i).hoistableStyles,c=o.get(e);if(c||(i=i.ownerDocument||i,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,c),(o=i.querySelector($i(e)))&&!o._p&&(c.instance=o,c.state.loading=5),Pt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Pt.set(e,n),o||lx(i,e,n,c.state))),t&&a===null)throw Error(u(528,""));return c}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=wl(n),n=Ja(i).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Ml(e){return'href="'+Xt(e)+'"'}function $i(e){return'link[rel="stylesheet"]['+e+"]"}function og(e){return z({},e,{"data-precedence":e.precedence,precedence:null})}function lx(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),yt(t,"link",n),ct(t),e.head.appendChild(t))}function wl(e){return'[src="'+Xt(e)+'"]'}function Bi(e){return"script[async]"+e}function rg(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Xt(n.href)+'"]');if(a)return t.instance=a,ct(a),a;var i=z({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),ct(a),yt(a,"style",i),rr(a,n.precedence,e),t.instance=a;case"stylesheet":i=Ml(n.href);var o=e.querySelector($i(i));if(o)return t.state.loading|=4,t.instance=o,ct(o),o;a=og(n),(i=Pt.get(i))&&es(a,i),o=(e.ownerDocument||e).createElement("link"),ct(o);var c=o;return c._p=new Promise(function(f,m){c.onload=f,c.onerror=m}),yt(o,"link",a),t.state.loading|=4,rr(o,n.precedence,e),t.instance=o;case"script":return o=wl(n.src),(i=e.querySelector(Bi(o)))?(t.instance=i,ct(i),i):(a=n,(i=Pt.get(o))&&(a=z({},n),ts(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),ct(i),yt(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,rr(a,n.precedence,e));return t.instance}function rr(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,o=i,c=0;c<a.length;c++){var f=a[c];if(f.dataset.precedence===t)o=f;else if(o!==i)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function es(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ts(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ur=null;function ug(e,t,n){if(ur===null){var a=new Map,i=ur=new Map;i.set(n,a)}else i=ur,a=i.get(n),a||(a=new Map,i.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var o=n[i];if(!(o[Kl]||o[ht]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var c=o.getAttribute(t)||"";c=e+c;var f=a.get(c);f?f.push(o):a.set(c,[o])}}return a}function cg(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function ix(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function sg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function ox(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var i=Ml(a.href),o=t.querySelector($i(i));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=cr.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,ct(o);return}o=t.ownerDocument||t,a=og(a),(i=Pt.get(i))&&es(a,i),o=o.createElement("link"),ct(o);var c=o;c._p=new Promise(function(f,m){c.onload=f,c.onerror=m}),yt(o,"link",a),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=cr.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var ns=0;function rx(e,t){return e.stylesheets&&e.count===0&&fr(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&fr(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&ns===0&&(ns=62500*Lv());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&fr(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>ns?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function cr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)fr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var sr=null;function fr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,sr=new Map,t.forEach(ux,e),sr=null,cr.call(e))}function ux(e,t){if(!(t.state.loading&4)){var n=sr.get(e);if(n)var a=n.get(null);else{n=new Map,sr.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<i.length;o++){var c=i[o];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(n.set(c.dataset.precedence,c),a=c)}a&&n.set(null,a)}i=t.instance,c=i.getAttribute("data-precedence"),o=n.get(c)||a,o===a&&n.set(null,i),n.set(c,i),this.count++,a=cr.bind(this),i.addEventListener("load",a),i.addEventListener("error",a),o?o.parentNode.insertBefore(i,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Di={$$typeof:V,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function cx(e,t,n,a,i,o,c,f,m){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Fr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fr(0),this.hiddenUpdates=Fr(null),this.identifierPrefix=a,this.onUncaughtError=i,this.onCaughtError=o,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,this.incompleteTransitions=new Map}function fg(e,t,n,a,i,o,c,f,m,w,B,H){return e=new cx(e,t,n,c,m,w,B,H,f),t=1,o===!0&&(t|=24),o=Ht(3,null,null,t),e.current=o,o.stateNode=e,t=Nu(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:a,isDehydrated:n,cache:t},Uu(o),e}function dg(e){return e?(e=il,e):il}function hg(e,t,n,a,i,o){i=dg(i),a.context===null?a.context=i:a.pendingContext=i,a=Jn(t),a.payload={element:n},o=o===void 0?null:o,o!==null&&(a.callback=o),n=Wn(e,a,t),n!==null&&(Ot(n,e,t),fi(n,e,t))}function pg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function as(e,t){pg(e,t),(e=e.alternate)&&pg(e,t)}function gg(e){if(e.tag===13||e.tag===31){var t=Sa(e,67108864);t!==null&&Ot(t,e,67108864),as(e,67108864)}}function mg(e){if(e.tag===13||e.tag===31){var t=Yt();t=Ir(t);var n=Sa(e,t);n!==null&&Ot(n,e,t),as(e,t)}}var dr=!0;function sx(e,t,n,a){var i=$.T;$.T=null;var o=K.p;try{K.p=2,ls(e,t,n,a)}finally{K.p=o,$.T=i}}function fx(e,t,n,a){var i=$.T;$.T=null;var o=K.p;try{K.p=8,ls(e,t,n,a)}finally{K.p=o,$.T=i}}function ls(e,t,n,a){if(dr){var i=is(a);if(i===null)Qc(e,t,a,hr,n),bg(e,a);else if(hx(i,e,t,n,a))a.stopPropagation();else if(bg(e,a),t&4&&-1<dx.indexOf(e)){for(;i!==null;){var o=Ka(i);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var c=ma(o.pendingLanes);if(c!==0){var f=o;for(f.pendingLanes|=2,f.entangledLanes|=2;c;){var m=1<<31-Nt(c);f.entanglements[1]|=m,c&=~m}mn(o),($e&6)===0&&(Jo=Re()+500,Mi(0))}}break;case 31:case 13:f=Sa(o,2),f!==null&&Ot(f,o,2),Fo(),as(o,2)}if(o=is(a),o===null&&Qc(e,t,a,hr,n),o===i)break;i=o}i!==null&&a.stopPropagation()}else Qc(e,t,a,null,n)}}function is(e){return e=ru(e),os(e)}var hr=null;function os(e){if(hr=null,e=Za(e),e!==null){var t=h(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=y(t),e!==null)return e;e=null}else if(n===31){if(e=T(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return hr=e,null}function yg(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(bn()){case zf:return 2;case Af:return 8;case to:case Ib:return 32;case Mf:return 268435456;default:return 32}default:return 32}}var rs=!1,ra=null,ua=null,ca=null,Ri=new Map,Ni=new Map,sa=[],dx="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function bg(e,t){switch(e){case"focusin":case"focusout":ra=null;break;case"dragenter":case"dragleave":ua=null;break;case"mouseover":case"mouseout":ca=null;break;case"pointerover":case"pointerout":Ri.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ni.delete(t.pointerId)}}function ji(e,t,n,a,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Ka(t),t!==null&&gg(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function hx(e,t,n,a,i){switch(t){case"focusin":return ra=ji(ra,e,t,n,a,i),!0;case"dragenter":return ua=ji(ua,e,t,n,a,i),!0;case"mouseover":return ca=ji(ca,e,t,n,a,i),!0;case"pointerover":var o=i.pointerId;return Ri.set(o,ji(Ri.get(o)||null,e,t,n,a,i)),!0;case"gotpointercapture":return o=i.pointerId,Ni.set(o,ji(Ni.get(o)||null,e,t,n,a,i)),!0}return!1}function vg(e){var t=Za(e.target);if(t!==null){var n=h(t);if(n!==null){if(t=n.tag,t===13){if(t=y(n),t!==null){e.blockedOn=t,Df(e.priority,function(){mg(n)});return}}else if(t===31){if(t=T(n),t!==null){e.blockedOn=t,Df(e.priority,function(){mg(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function pr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=is(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);ou=a,n.target.dispatchEvent(a),ou=null}else return t=Ka(n),t!==null&&gg(t),e.blockedOn=n,!1;t.shift()}return!0}function xg(e,t,n){pr(e)&&n.delete(t)}function px(){rs=!1,ra!==null&&pr(ra)&&(ra=null),ua!==null&&pr(ua)&&(ua=null),ca!==null&&pr(ca)&&(ca=null),Ri.forEach(xg),Ni.forEach(xg)}function gr(e,t){e.blockedOn===t&&(e.blockedOn=null,rs||(rs=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,px)))}var mr=null;function Sg(e){mr!==e&&(mr=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){mr===e&&(mr=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],i=e[t+2];if(typeof a!="function"){if(os(a||n)===null)continue;break}var o=Ka(n);o!==null&&(e.splice(t,3),t-=3,ic(o,{pending:!0,data:i,method:n.method,action:a},a,i))}}))}function _l(e){function t(m){return gr(m,e)}ra!==null&&gr(ra,e),ua!==null&&gr(ua,e),ca!==null&&gr(ca,e),Ri.forEach(t),Ni.forEach(t);for(var n=0;n<sa.length;n++){var a=sa[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<sa.length&&(n=sa[0],n.blockedOn===null);)vg(n),n.blockedOn===null&&sa.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var i=n[a],o=n[a+1],c=i[Et]||null;if(typeof o=="function")c||Sg(n);else if(c){var f=null;if(o&&o.hasAttribute("formAction")){if(i=o,c=o[Et]||null)f=c.formAction;else if(os(i)!==null)continue}else f=c.action;typeof f=="function"?n[a+1]=f:(n.splice(a,3),a-=3),Sg(n)}}}function Cg(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(c){return i=c})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function us(e){this._internalRoot=e}yr.prototype.render=us.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var n=t.current,a=Yt();hg(n,a,e,t,null,null)},yr.prototype.unmount=us.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;hg(e.current,2,null,e,null,null),Fo(),t[Va]=null}};function yr(e){this._internalRoot=e}yr.prototype.unstable_scheduleHydration=function(e){if(e){var t=Bf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<sa.length&&t!==0&&t<sa[n].priority;n++);sa.splice(n,0,e),n===0&&vg(e)}};var Tg=r.version;if(Tg!=="19.2.3")throw Error(u(527,Tg,"19.2.3"));K.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=g(t),e=e!==null?A(e):null,e=e===null?null:e.stateNode,e};var gx={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:$,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var br=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!br.isDisabled&&br.supportsFiber)try{Xl=br.inject(gx),Rt=br}catch{}}return Dl.createRoot=function(e,t){if(!d(e))throw Error(u(299));var n=!1,a="",i=Oh,o=$h,c=Bh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=fg(e,1,!1,null,null,n,a,null,i,o,c,Cg),e[Va]=t.current,Gc(e),new us(t)},Dl.hydrateRoot=function(e,t,n){if(!d(e))throw Error(u(299));var a=!1,i="",o=Oh,c=$h,f=Bh,m=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(c=n.onCaughtError),n.onRecoverableError!==void 0&&(f=n.onRecoverableError),n.formState!==void 0&&(m=n.formState)),t=fg(e,1,!0,t,n??null,a,i,m,o,c,f,Cg),t.context=dg(null),n=t.current,a=Yt(),a=Ir(a),i=Jn(a),i.callback=null,Wn(n,i,a),n=a,t.current.lanes=n,Zl(t,n),mn(t),e[Va]=t.current,Gc(e),new yr(t)},Dl.version="19.2.3",Dl}var bs;function Bg(){if(bs)return xr.exports;bs=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(r){console.error(r)}}return l(),xr.exports=$g(),xr.exports}var vs=Bg();function Dg(l){if(l.sheet)return l.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===l)return document.styleSheets[r]}function Rg(l){var r=document.createElement("style");return r.setAttribute("data-emotion",l.key),l.nonce!==void 0&&r.setAttribute("nonce",l.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var Ng=(function(){function l(s){var u=this;this._insertTag=function(d){var h;u.tags.length===0?u.insertionPoint?h=u.insertionPoint.nextSibling:u.prepend?h=u.container.firstChild:h=u.before:h=u.tags[u.tags.length-1].nextSibling,u.container.insertBefore(d,h),u.tags.push(d)},this.isSpeedy=s.speedy===void 0?!0:s.speedy,this.tags=[],this.ctr=0,this.nonce=s.nonce,this.key=s.key,this.container=s.container,this.prepend=s.prepend,this.insertionPoint=s.insertionPoint,this.before=null}var r=l.prototype;return r.hydrate=function(u){u.forEach(this._insertTag)},r.insert=function(u){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Rg(this));var d=this.tags[this.tags.length-1];if(this.isSpeedy){var h=Dg(d);try{h.insertRule(u,h.cssRules.length)}catch{}}else d.appendChild(document.createTextNode(u));this.ctr++},r.flush=function(){this.tags.forEach(function(u){var d;return(d=u.parentNode)==null?void 0:d.removeChild(u)}),this.tags=[],this.ctr=0},l})(),vt="-ms-",Hi="-moz-",Ae="-webkit-",xs="comm",Ar="rule",Mr="decl",jg="@import",Ss="@keyframes",Hg="@layer",kg=Math.abs,ki=String.fromCharCode,Ug=Object.assign;function qg(l,r){return ft(l,0)^45?(((r<<2^ft(l,0))<<2^ft(l,1))<<2^ft(l,2))<<2^ft(l,3):0}function Cs(l){return l.trim()}function Lg(l,r){return(l=r.exec(l))?l[0]:l}function Me(l,r,s){return l.replace(r,s)}function wr(l,r){return l.indexOf(r)}function ft(l,r){return l.charCodeAt(r)|0}function Rl(l,r,s){return l.slice(r,s)}function un(l){return l.length}function _r(l){return l.length}function Ui(l,r){return r.push(l),l}function Yg(l,r){return l.map(r).join("")}var qi=1,Ra=1,Ts=0,Tt=0,et=0,Na="";function Li(l,r,s,u,d,h,y){return{value:l,root:r,parent:s,type:u,props:d,children:h,line:qi,column:Ra,length:y,return:""}}function Nl(l,r){return Ug(Li("",null,null,"",null,null,0),l,{length:-l.length},r)}function Gg(){return et}function Qg(){return et=Tt>0?ft(Na,--Tt):0,Ra--,et===10&&(Ra=1,qi--),et}function $t(){return et=Tt<Ts?ft(Na,Tt++):0,Ra++,et===10&&(Ra=1,qi++),et}function cn(){return ft(Na,Tt)}function Yi(){return Tt}function jl(l,r){return Rl(Na,l,r)}function Hl(l){switch(l){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Es(l){return qi=Ra=1,Ts=un(Na=l),Tt=0,[]}function zs(l){return Na="",l}function Gi(l){return Cs(jl(Tt-1,Or(l===91?l+2:l===40?l+1:l)))}function Xg(l){for(;(et=cn())&&et<33;)$t();return Hl(l)>2||Hl(et)>3?"":" "}function Vg(l,r){for(;--r&&$t()&&!(et<48||et>102||et>57&&et<65||et>70&&et<97););return jl(l,Yi()+(r<6&&cn()==32&&$t()==32))}function Or(l){for(;$t();)switch(et){case l:return Tt;case 34:case 39:l!==34&&l!==39&&Or(et);break;case 40:l===41&&Or(l);break;case 92:$t();break}return Tt}function Zg(l,r){for(;$t()&&l+et!==57;)if(l+et===84&&cn()===47)break;return"/*"+jl(r,Tt-1)+"*"+ki(l===47?l:$t())}function Kg(l){for(;!Hl(cn());)$t();return jl(l,Tt)}function Jg(l){return zs(Qi("",null,null,null,[""],l=Es(l),0,[0],l))}function Qi(l,r,s,u,d,h,y,T,C){for(var g=0,A=0,z=y,U=0,X=0,G=0,Y=1,R=1,Z=1,ee=0,V="",re=d,q=h,F=u,W=V;R;)switch(G=ee,ee=$t()){case 40:if(G!=108&&ft(W,z-1)==58){wr(W+=Me(Gi(ee),"&","&\f"),"&\f")!=-1&&(Z=-1);break}case 34:case 39:case 91:W+=Gi(ee);break;case 9:case 10:case 13:case 32:W+=Xg(G);break;case 92:W+=Vg(Yi()-1,7);continue;case 47:switch(cn()){case 42:case 47:Ui(Wg(Zg($t(),Yi()),r,s),C);break;default:W+="/"}break;case 123*Y:T[g++]=un(W)*Z;case 125*Y:case 59:case 0:switch(ee){case 0:case 125:R=0;case 59+A:Z==-1&&(W=Me(W,/\f/g,"")),X>0&&un(W)-z&&Ui(X>32?Ms(W+";",u,s,z-1):Ms(Me(W," ","")+";",u,s,z-2),C);break;case 59:W+=";";default:if(Ui(F=As(W,r,s,g,A,d,T,V,re=[],q=[],z),h),ee===123)if(A===0)Qi(W,r,F,F,re,h,z,T,q);else switch(U===99&&ft(W,3)===110?100:U){case 100:case 108:case 109:case 115:Qi(l,F,F,u&&Ui(As(l,F,F,0,0,d,T,V,d,re=[],z),q),d,q,z,T,u?re:q);break;default:Qi(W,F,F,F,[""],q,0,T,q)}}g=A=X=0,Y=Z=1,V=W="",z=y;break;case 58:z=1+un(W),X=G;default:if(Y<1){if(ee==123)--Y;else if(ee==125&&Y++==0&&Qg()==125)continue}switch(W+=ki(ee),ee*Y){case 38:Z=A>0?1:(W+="\f",-1);break;case 44:T[g++]=(un(W)-1)*Z,Z=1;break;case 64:cn()===45&&(W+=Gi($t())),U=cn(),A=z=un(V=W+=Kg(Yi())),ee++;break;case 45:G===45&&un(W)==2&&(Y=0)}}return h}function As(l,r,s,u,d,h,y,T,C,g,A){for(var z=d-1,U=d===0?h:[""],X=_r(U),G=0,Y=0,R=0;G<u;++G)for(var Z=0,ee=Rl(l,z+1,z=kg(Y=y[G])),V=l;Z<X;++Z)(V=Cs(Y>0?U[Z]+" "+ee:Me(ee,/&\f/g,U[Z])))&&(C[R++]=V);return Li(l,r,s,d===0?Ar:T,C,g,A)}function Wg(l,r,s){return Li(l,r,s,xs,ki(Gg()),Rl(l,2,-2),0)}function Ms(l,r,s,u){return Li(l,r,s,Mr,Rl(l,0,u),Rl(l,u+1,-1),u)}function ja(l,r){for(var s="",u=_r(l),d=0;d<u;d++)s+=r(l[d],d,l,r)||"";return s}function Fg(l,r,s,u){switch(l.type){case Hg:if(l.children.length)break;case jg:case Mr:return l.return=l.return||l.value;case xs:return"";case Ss:return l.return=l.value+"{"+ja(l.children,u)+"}";case Ar:l.value=l.props.join(",")}return un(s=ja(l.children,u))?l.return=l.value+"{"+s+"}":""}function Ig(l){var r=_r(l);return function(s,u,d,h){for(var y="",T=0;T<r;T++)y+=l[T](s,u,d,h)||"";return y}}function Pg(l){return function(r){r.root||(r=r.return)&&l(r)}}function ws(l){var r=Object.create(null);return function(s){return r[s]===void 0&&(r[s]=l(s)),r[s]}}var em=function(r,s,u){for(var d=0,h=0;d=h,h=cn(),d===38&&h===12&&(s[u]=1),!Hl(h);)$t();return jl(r,Tt)},tm=function(r,s){var u=-1,d=44;do switch(Hl(d)){case 0:d===38&&cn()===12&&(s[u]=1),r[u]+=em(Tt-1,s,u);break;case 2:r[u]+=Gi(d);break;case 4:if(d===44){r[++u]=cn()===58?"&\f":"",s[u]=r[u].length;break}default:r[u]+=ki(d)}while(d=$t());return r},nm=function(r,s){return zs(tm(Es(r),s))},_s=new WeakMap,am=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var s=r.value,u=r.parent,d=r.column===u.column&&r.line===u.line;u.type!=="rule";)if(u=u.parent,!u)return;if(!(r.props.length===1&&s.charCodeAt(0)!==58&&!_s.get(u))&&!d){_s.set(r,!0);for(var h=[],y=nm(s,h),T=u.props,C=0,g=0;C<y.length;C++)for(var A=0;A<T.length;A++,g++)r.props[g]=h[C]?y[C].replace(/&\f/g,T[A]):T[A]+" "+y[C]}}},lm=function(r){if(r.type==="decl"){var s=r.value;s.charCodeAt(0)===108&&s.charCodeAt(2)===98&&(r.return="",r.value="")}};function Os(l,r){switch(qg(l,r)){case 5103:return Ae+"print-"+l+l;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ae+l+l;case 5349:case 4246:case 4810:case 6968:case 2756:return Ae+l+Hi+l+vt+l+l;case 6828:case 4268:return Ae+l+vt+l+l;case 6165:return Ae+l+vt+"flex-"+l+l;case 5187:return Ae+l+Me(l,/(\w+).+(:[^]+)/,Ae+"box-$1$2"+vt+"flex-$1$2")+l;case 5443:return Ae+l+vt+"flex-item-"+Me(l,/flex-|-self/,"")+l;case 4675:return Ae+l+vt+"flex-line-pack"+Me(l,/align-content|flex-|-self/,"")+l;case 5548:return Ae+l+vt+Me(l,"shrink","negative")+l;case 5292:return Ae+l+vt+Me(l,"basis","preferred-size")+l;case 6060:return Ae+"box-"+Me(l,"-grow","")+Ae+l+vt+Me(l,"grow","positive")+l;case 4554:return Ae+Me(l,/([^-])(transform)/g,"$1"+Ae+"$2")+l;case 6187:return Me(Me(Me(l,/(zoom-|grab)/,Ae+"$1"),/(image-set)/,Ae+"$1"),l,"")+l;case 5495:case 3959:return Me(l,/(image-set\([^]*)/,Ae+"$1$`$1");case 4968:return Me(Me(l,/(.+:)(flex-)?(.*)/,Ae+"box-pack:$3"+vt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ae+l+l;case 4095:case 3583:case 4068:case 2532:return Me(l,/(.+)-inline(.+)/,Ae+"$1$2")+l;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(un(l)-1-r>6)switch(ft(l,r+1)){case 109:if(ft(l,r+4)!==45)break;case 102:return Me(l,/(.+:)(.+)-([^]+)/,"$1"+Ae+"$2-$3$1"+Hi+(ft(l,r+3)==108?"$3":"$2-$3"))+l;case 115:return~wr(l,"stretch")?Os(Me(l,"stretch","fill-available"),r)+l:l}break;case 4949:if(ft(l,r+1)!==115)break;case 6444:switch(ft(l,un(l)-3-(~wr(l,"!important")&&10))){case 107:return Me(l,":",":"+Ae)+l;case 101:return Me(l,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ae+(ft(l,14)===45?"inline-":"")+"box$3$1"+Ae+"$2$3$1"+vt+"$2box$3")+l}break;case 5936:switch(ft(l,r+11)){case 114:return Ae+l+vt+Me(l,/[svh]\w+-[tblr]{2}/,"tb")+l;case 108:return Ae+l+vt+Me(l,/[svh]\w+-[tblr]{2}/,"tb-rl")+l;case 45:return Ae+l+vt+Me(l,/[svh]\w+-[tblr]{2}/,"lr")+l}return Ae+l+vt+l+l}return l}var im=function(r,s,u,d){if(r.length>-1&&!r.return)switch(r.type){case Mr:r.return=Os(r.value,r.length);break;case Ss:return ja([Nl(r,{value:Me(r.value,"@","@"+Ae)})],d);case Ar:if(r.length)return Yg(r.props,function(h){switch(Lg(h,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ja([Nl(r,{props:[Me(h,/:(read-\w+)/,":"+Hi+"$1")]})],d);case"::placeholder":return ja([Nl(r,{props:[Me(h,/:(plac\w+)/,":"+Ae+"input-$1")]}),Nl(r,{props:[Me(h,/:(plac\w+)/,":"+Hi+"$1")]}),Nl(r,{props:[Me(h,/:(plac\w+)/,vt+"input-$1")]})],d)}return""})}},om=[im],$r=function(r){var s=r.key;if(s==="css"){var u=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(u,function(Y){var R=Y.getAttribute("data-emotion");R.indexOf(" ")!==-1&&(document.head.appendChild(Y),Y.setAttribute("data-s",""))})}var d=r.stylisPlugins||om,h={},y,T=[];y=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+s+' "]'),function(Y){for(var R=Y.getAttribute("data-emotion").split(" "),Z=1;Z<R.length;Z++)h[R[Z]]=!0;T.push(Y)});var C,g=[am,lm];{var A,z=[Fg,Pg(function(Y){A.insert(Y)})],U=Ig(g.concat(d,z)),X=function(R){return ja(Jg(R),U)};C=function(R,Z,ee,V){A=ee,X(R?R+"{"+Z.styles+"}":Z.styles),V&&(G.inserted[Z.name]=!0)}}var G={key:s,sheet:new Ng({key:s,container:y,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:h,registered:{},insert:C};return G.sheet.hydrate(T),G},S=Er();const $s=Ol({__proto__:null,default:$l(S)},[S]);function Br(){return Br=Object.assign?Object.assign.bind():function(l){for(var r=1;r<arguments.length;r++){var s=arguments[r];for(var u in s)({}).hasOwnProperty.call(s,u)&&(l[u]=s[u])}return l},Br.apply(null,arguments)}var Dr={exports:{}},Be={};var Bs;function rm(){if(Bs)return Be;Bs=1;var l=typeof Symbol=="function"&&Symbol.for,r=l?Symbol.for("react.element"):60103,s=l?Symbol.for("react.portal"):60106,u=l?Symbol.for("react.fragment"):60107,d=l?Symbol.for("react.strict_mode"):60108,h=l?Symbol.for("react.profiler"):60114,y=l?Symbol.for("react.provider"):60109,T=l?Symbol.for("react.context"):60110,C=l?Symbol.for("react.async_mode"):60111,g=l?Symbol.for("react.concurrent_mode"):60111,A=l?Symbol.for("react.forward_ref"):60112,z=l?Symbol.for("react.suspense"):60113,U=l?Symbol.for("react.suspense_list"):60120,X=l?Symbol.for("react.memo"):60115,G=l?Symbol.for("react.lazy"):60116,Y=l?Symbol.for("react.block"):60121,R=l?Symbol.for("react.fundamental"):60117,Z=l?Symbol.for("react.responder"):60118,ee=l?Symbol.for("react.scope"):60119;function V(q){if(typeof q=="object"&&q!==null){var F=q.$$typeof;switch(F){case r:switch(q=q.type,q){case C:case g:case u:case h:case d:case z:return q;default:switch(q=q&&q.$$typeof,q){case T:case A:case G:case X:case y:return q;default:return F}}case s:return F}}}function re(q){return V(q)===g}return Be.AsyncMode=C,Be.ConcurrentMode=g,Be.ContextConsumer=T,Be.ContextProvider=y,Be.Element=r,Be.ForwardRef=A,Be.Fragment=u,Be.Lazy=G,Be.Memo=X,Be.Portal=s,Be.Profiler=h,Be.StrictMode=d,Be.Suspense=z,Be.isAsyncMode=function(q){return re(q)||V(q)===C},Be.isConcurrentMode=re,Be.isContextConsumer=function(q){return V(q)===T},Be.isContextProvider=function(q){return V(q)===y},Be.isElement=function(q){return typeof q=="object"&&q!==null&&q.$$typeof===r},Be.isForwardRef=function(q){return V(q)===A},Be.isFragment=function(q){return V(q)===u},Be.isLazy=function(q){return V(q)===G},Be.isMemo=function(q){return V(q)===X},Be.isPortal=function(q){return V(q)===s},Be.isProfiler=function(q){return V(q)===h},Be.isStrictMode=function(q){return V(q)===d},Be.isSuspense=function(q){return V(q)===z},Be.isValidElementType=function(q){return typeof q=="string"||typeof q=="function"||q===u||q===g||q===h||q===d||q===z||q===U||typeof q=="object"&&q!==null&&(q.$$typeof===G||q.$$typeof===X||q.$$typeof===y||q.$$typeof===T||q.$$typeof===A||q.$$typeof===R||q.$$typeof===Z||q.$$typeof===ee||q.$$typeof===Y)},Be.typeOf=V,Be}var Ds;function um(){return Ds||(Ds=1,Dr.exports=rm()),Dr.exports}var Rr,Rs;function cm(){if(Rs)return Rr;Rs=1;var l=um(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},u={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},d={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},h={};h[l.ForwardRef]=u,h[l.Memo]=d;function y(G){return l.isMemo(G)?d:h[G.$$typeof]||r}var T=Object.defineProperty,C=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,A=Object.getOwnPropertyDescriptor,z=Object.getPrototypeOf,U=Object.prototype;function X(G,Y,R){if(typeof Y!="string"){if(U){var Z=z(Y);Z&&Z!==U&&X(G,Z,R)}var ee=C(Y);g&&(ee=ee.concat(g(Y)));for(var V=y(G),re=y(Y),q=0;q<ee.length;++q){var F=ee[q];if(!s[F]&&!(R&&R[F])&&!(re&&re[F])&&!(V&&V[F])){var W=A(Y,F);try{T(G,F,W)}catch{}}}}return G}return Rr=X,Rr}cm();var sm=!0;function Ns(l,r,s){var u="";return s.split(" ").forEach(function(d){l[d]!==void 0?r.push(l[d]+";"):d&&(u+=d+" ")}),u}var Nr=function(r,s,u){var d=r.key+"-"+s.name;(u===!1||sm===!1)&&r.registered[d]===void 0&&(r.registered[d]=s.styles)},jr=function(r,s,u){Nr(r,s,u);var d=r.key+"-"+s.name;if(r.inserted[s.name]===void 0){var h=s;do r.insert(s===h?"."+d:"",h,r.sheet,!0),h=h.next;while(h!==void 0)}};function fm(l){for(var r=0,s,u=0,d=l.length;d>=4;++u,d-=4)s=l.charCodeAt(u)&255|(l.charCodeAt(++u)&255)<<8|(l.charCodeAt(++u)&255)<<16|(l.charCodeAt(++u)&255)<<24,s=(s&65535)*1540483477+((s>>>16)*59797<<16),s^=s>>>24,r=(s&65535)*1540483477+((s>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(d){case 3:r^=(l.charCodeAt(u+2)&255)<<16;case 2:r^=(l.charCodeAt(u+1)&255)<<8;case 1:r^=l.charCodeAt(u)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var dm={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hm=/[A-Z]|^ms/g,pm=/_EMO_([^_]+?)_([^]*?)_EMO_/g,js=function(r){return r.charCodeAt(1)===45},Hs=function(r){return r!=null&&typeof r!="boolean"},Hr=ws(function(l){return js(l)?l:l.replace(hm,"-$&").toLowerCase()}),ks=function(r,s){switch(r){case"animation":case"animationName":if(typeof s=="string")return s.replace(pm,function(u,d,h){return sn={name:d,styles:h,next:sn},d})}return dm[r]!==1&&!js(r)&&typeof s=="number"&&s!==0?s+"px":s};function kl(l,r,s){if(s==null)return"";var u=s;if(u.__emotion_styles!==void 0)return u;switch(typeof s){case"boolean":return"";case"object":{var d=s;if(d.anim===1)return sn={name:d.name,styles:d.styles,next:sn},d.name;var h=s;if(h.styles!==void 0){var y=h.next;if(y!==void 0)for(;y!==void 0;)sn={name:y.name,styles:y.styles,next:sn},y=y.next;var T=h.styles+";";return T}return gm(l,r,s)}case"function":{if(l!==void 0){var C=sn,g=s(l);return sn=C,kl(l,r,g)}break}}var A=s;if(r==null)return A;var z=r[A];return z!==void 0?z:A}function gm(l,r,s){var u="";if(Array.isArray(s))for(var d=0;d<s.length;d++)u+=kl(l,r,s[d])+";";else for(var h in s){var y=s[h];if(typeof y!="object"){var T=y;r!=null&&r[T]!==void 0?u+=h+"{"+r[T]+"}":Hs(T)&&(u+=Hr(h)+":"+ks(h,T)+";")}else if(Array.isArray(y)&&typeof y[0]=="string"&&(r==null||r[y[0]]===void 0))for(var C=0;C<y.length;C++)Hs(y[C])&&(u+=Hr(h)+":"+ks(h,y[C])+";");else{var g=kl(l,r,y);switch(h){case"animation":case"animationName":{u+=Hr(h)+":"+g+";";break}default:u+=h+"{"+g+"}"}}}return u}var Us=/label:\s*([^\s;{]+)\s*(;|$)/g,sn;function Xi(l,r,s){if(l.length===1&&typeof l[0]=="object"&&l[0]!==null&&l[0].styles!==void 0)return l[0];var u=!0,d="";sn=void 0;var h=l[0];if(h==null||h.raw===void 0)u=!1,d+=kl(s,r,h);else{var y=h;d+=y[0]}for(var T=1;T<l.length;T++)if(d+=kl(s,r,l[T]),u){var C=h;d+=C[T]}Us.lastIndex=0;for(var g="",A;(A=Us.exec(d))!==null;)g+="-"+A[1];var z=fm(d)+g;return{name:z,styles:d,next:sn}}var mm=function(r){return r()},qs=$s.useInsertionEffect?$s.useInsertionEffect:!1,Ls=qs||mm,Ys=qs||S.useLayoutEffect,Gs=S.createContext(typeof HTMLElement<"u"?$r({key:"css"}):null),kr=Gs.Provider,Ur=function(r){return S.forwardRef(function(s,u){var d=S.useContext(Gs);return r(s,d,u)})},qr=S.createContext({}),Ul={}.hasOwnProperty,Lr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Yr=function(r,s){var u={};for(var d in s)Ul.call(s,d)&&(u[d]=s[d]);return u[Lr]=r,u},ym=function(r){var s=r.cache,u=r.serialized,d=r.isStringTag;return Nr(s,u,d),Ls(function(){return jr(s,u,d)}),null},bm=Ur(function(l,r,s){var u=l.css;typeof u=="string"&&r.registered[u]!==void 0&&(u=r.registered[u]);var d=l[Lr],h=[u],y="";typeof l.className=="string"?y=Ns(r.registered,h,l.className):l.className!=null&&(y=l.className+" ");var T=Xi(h,void 0,S.useContext(qr));y+=r.key+"-"+T.name;var C={};for(var g in l)Ul.call(l,g)&&g!=="css"&&g!==Lr&&(C[g]=l[g]);return C.className=y,s&&(C.ref=s),S.createElement(S.Fragment,null,S.createElement(ym,{cache:r,serialized:T,isStringTag:typeof d=="string"}),S.createElement(d,C))}),Gr=bm,Qs=function(r,s){var u=arguments;if(s==null||!Ul.call(s,"css"))return S.createElement.apply(void 0,u);var d=u.length,h=new Array(d);h[0]=Gr,h[1]=Yr(r,s);for(var y=2;y<d;y++)h[y]=u[y];return S.createElement.apply(null,h)};(function(l){var r;r||(r=l.JSX||(l.JSX={}))})(Qs||(Qs={}));var vm=Ur(function(l,r){var s=l.styles,u=Xi([s],void 0,S.useContext(qr)),d=S.useRef();return Ys(function(){var h=r.key+"-global",y=new r.sheet.constructor({key:h,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy}),T=!1,C=document.querySelector('style[data-emotion="'+h+" "+u.name+'"]');return r.sheet.tags.length&&(y.before=r.sheet.tags[0]),C!==null&&(T=!0,C.setAttribute("data-emotion",h),y.hydrate([C])),d.current=[y,T],function(){y.flush()}},[r]),Ys(function(){var h=d.current,y=h[0],T=h[1];if(T){h[1]=!1;return}if(u.next!==void 0&&jr(r,u.next,!0),y.tags.length){var C=y.tags[y.tags.length-1].nextElementSibling;y.before=C,y.flush()}r.insert("",u,y,!1)},[r,u.name]),null});function Q(){for(var l=arguments.length,r=new Array(l),s=0;s<l;s++)r[s]=arguments[s];return Xi(r)}function en(){var l=Q.apply(void 0,arguments),r="animation-"+l.name;return{name:r,styles:"@keyframes "+r+"{"+l.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var ql=v.Fragment,k=function(r,s,u){return Ul.call(s,"css")?v.jsx(Gr,Yr(r,s),u):v.jsx(r,s,u)},le=function(r,s,u){return Ul.call(s,"css")?v.jsxs(Gr,Yr(r,s),u):v.jsxs(r,s,u)};const ne={apiEndpoint:"https://preprodapi.mypatientspace.com/api/chat",token:"",userType:"patient",loadHistory:!0,sessionId:"",assistantId:"",contextPatientId:"",floatingMode:!1,position:"bottom-right",colorMode:"light",hideExpandButton:!1,showCloseSlot:!1,headerIcon:"https://web.mypatientspace.com/img/logo-symbol.png",fabIcon:"https://web.mypatientspace.com/img/logo-symbol.png",primaryColor:"#00c2d1",secondaryColor:"#3c4d73",userBubbleColor:"#00c2d1",userBubbleTextColor:"#ffffff",botBubbleColor:"#e0f7fa",botBubbleTextColor:"#3c4d73",fontFamily:"system-ui, -apple-system, sans-serif",borderRadius:"12px",shadow:"0 4px 24px rgba(60, 77, 115, 0.15)",headerTitle:"AI Doctor",headerSubtitle:"",greeting:"Hello! Welcome to our healthcare support. How can I assist you today?",placeholder:"Type a message...",brandingText:"Developed by myPatientSpace",disclaimerText:"AI can make mistakes. Verify important information.",quickActions:["I would like to book an appointment","What are your operating hours?","How can I contact you?","Where are you located?"]},Xs=S.createContext(null),Gt=()=>{const l=S.useContext(Xs);if(!l)throw new Error("useDemoContext must be used within a DemoProvider");return l},xm=({children:l,demoConfig:r,onReinitWidget:s,onUpdateWidget:u})=>{const[d,h]=S.useState("form"),[y,T]=S.useState(!1),[C,g]=S.useState(null),[A,z]=S.useState(!1),[U,X]=S.useState(0),G=S.useRef(null),Y=S.useCallback(L=>{G.current=L},[]),[R,Z]=S.useState(()=>{const L=r.initialConfig;return L?{...ne,apiEndpoint:L.apiEndpoint??ne.apiEndpoint,token:L.token??ne.token,userType:L.userType??ne.userType,loadHistory:L.loadHistory??ne.loadHistory,sessionId:L.sessionId??ne.sessionId,assistantId:L.assistantId??ne.assistantId,contextPatientId:L.contextPatientId??ne.contextPatientId,floatingMode:L.floatingMode??ne.floatingMode,position:L.position??ne.position,colorMode:L.colorMode??ne.colorMode,hideExpandButton:L.hideExpandButton??ne.hideExpandButton,showCloseSlot:L.showCloseSlot??ne.showCloseSlot,headerIcon:L.headerIcon??ne.headerIcon,fabIcon:L.fabIcon??ne.fabIcon,headerTitle:L.headerTitle??ne.headerTitle,headerSubtitle:L.headerSubtitle??ne.headerSubtitle,greeting:L.greeting??ne.greeting,placeholder:L.placeholder??ne.placeholder,brandingText:L.brandingText??ne.brandingText,disclaimerText:L.disclaimerText??ne.disclaimerText,quickActions:L.quickActions??ne.quickActions,primaryColor:L.theme?.colors?.primary??ne.primaryColor,secondaryColor:L.theme?.colors?.secondary??ne.secondaryColor,userBubbleColor:L.theme?.colors?.userBubble??ne.userBubbleColor,userBubbleTextColor:L.theme?.colors?.userBubbleText??ne.userBubbleTextColor,botBubbleColor:L.theme?.colors?.botBubble??ne.botBubbleColor,botBubbleTextColor:L.theme?.colors?.botBubbleText??ne.botBubbleTextColor,fontFamily:L.theme?.fontFamily??ne.fontFamily,borderRadius:L.theme?.borderRadius??ne.borderRadius,shadow:L.theme?.shadow??ne.shadow}:ne}),ee=S.useCallback(()=>{const L={containerElement:G.current||void 0,floatingMode:R.floatingMode,useAbsolutePositioning:!0,position:R.position,colorMode:R.colorMode,headerTitle:R.headerTitle,headerSubtitle:R.headerSubtitle||void 0,headerIcon:R.headerIcon||void 0,fabIcon:R.fabIcon||void 0,greeting:R.greeting,placeholder:R.placeholder,brandingText:R.brandingText,disclaimerText:R.disclaimerText||void 0,hideExpandButton:R.hideExpandButton||void 0,showCloseSlot:R.showCloseSlot||void 0,loadHistory:R.loadHistory,quickActions:R.quickActions,theme:{colors:{primary:R.primaryColor,secondary:R.secondaryColor,userBubble:R.userBubbleColor,userBubbleText:R.userBubbleTextColor,botBubble:R.botBubbleColor,botBubbleText:R.botBubbleTextColor},fontFamily:R.fontFamily,borderRadius:R.borderRadius,shadow:R.shadow}};return y||(L.apiEndpoint=R.apiEndpoint||void 0,L.token=R.token||void 0,L.userType=R.userType||void 0),R.sessionId&&(L.sessionId=R.sessionId),R.assistantId&&(L.assistantId=R.assistantId),R.contextPatientId&&(L.contextPatientId=R.contextPatientId),L},[R,y]),V=S.useRef(r.onConfigChange);S.useEffect(()=>{V.current=r.onConfigChange},[r.onConfigChange]);const re=S.useCallback(L=>{const Ce={containerElement:G.current||void 0,floatingMode:L.floatingMode,useAbsolutePositioning:!0,position:L.position,colorMode:L.colorMode,headerTitle:L.headerTitle,headerSubtitle:L.headerSubtitle||void 0,headerIcon:L.headerIcon||void 0,fabIcon:L.fabIcon||void 0,greeting:L.greeting,placeholder:L.placeholder,brandingText:L.brandingText,disclaimerText:L.disclaimerText||void 0,hideExpandButton:L.hideExpandButton||void 0,showCloseSlot:L.showCloseSlot||void 0,loadHistory:L.loadHistory,quickActions:L.quickActions,theme:{colors:{primary:L.primaryColor,secondary:L.secondaryColor,userBubble:L.userBubbleColor,userBubbleText:L.userBubbleTextColor,botBubble:L.botBubbleColor,botBubbleText:L.botBubbleTextColor},fontFamily:L.fontFamily,borderRadius:L.borderRadius,shadow:L.shadow}};return y||(Ce.apiEndpoint=L.apiEndpoint||void 0,Ce.token=L.token||void 0,Ce.userType=L.userType||void 0),L.sessionId&&(Ce.sessionId=L.sessionId),L.assistantId&&(Ce.assistantId=L.assistantId),L.contextPatientId&&(Ce.contextPatientId=L.contextPatientId),Ce},[y]),q=S.useCallback((L,Ce=!1)=>{Z(Ke=>{const we={...Ke,...L};if(Ce){const tt=re(we);u(tt)}return setTimeout(()=>{if(V.current){const tt=re(we);V.current(tt)}},0),we})},[re,u]),F=S.useCallback(L=>{Z(L)},[]),W=S.useCallback(()=>{X(L=>L+1),s()},[s]),ke=S.useCallback(()=>{u(ee())},[u,ee]),Xe=S.useMemo(()=>({demoConfig:r,viewMode:d,setViewMode:h,mockEnabled:y,setMockEnabled:T,widgetApi:C,setWidgetApi:g,widgetConfig:R,updateWidgetConfig:q,setWidgetConfig:F,reinitWidget:W,updateWidget:ke,getWidgetConfig:ee,widgetWasOpen:A,setWidgetWasOpen:z,setContainerElement:Y,reinitTrigger:U}),[r,d,y,C,R,q,F,W,ke,ee,A,Y,U]);return v.jsx(Xs.Provider,{value:Xe,children:l})};const Vs=(...l)=>l.filter((r,s,u)=>!!r&&r.trim()!==""&&u.indexOf(r)===s).join(" ").trim();const Sm=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Cm=l=>l.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,s,u)=>u?u.toUpperCase():s.toLowerCase());const Zs=l=>{const r=Cm(l);return r.charAt(0).toUpperCase()+r.slice(1)};var Tm={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Em=l=>{for(const r in l)if(r.startsWith("aria-")||r==="role"||r==="title")return!0;return!1};const zm=S.forwardRef(({color:l="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:u,className:d="",children:h,iconNode:y,...T},C)=>S.createElement("svg",{ref:C,...Tm,width:r,height:r,stroke:l,strokeWidth:u?Number(s)*24/Number(r):s,className:Vs("lucide",d),...!h&&!Em(T)&&{"aria-hidden":"true"},...T},[...y.map(([g,A])=>S.createElement(g,A)),...Array.isArray(h)?h:[h]]));const rt=(l,r)=>{const s=S.forwardRef(({className:u,...d},h)=>S.createElement(zm,{ref:h,iconNode:r,className:Vs(`lucide-${Sm(Zs(l))}`,`lucide-${l}`,u),...d}));return s.displayName=Zs(l),s};const Am=rt("braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);const Mm=rt("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const wm=rt("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const _m=rt("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const Om=rt("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);const $m=rt("layout-grid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);const Ks=rt("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]);const Bm=rt("message-square-plus",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 8v6",key:"1ib9pf"}],["path",{d:"M9 11h6",key:"1fldmi"}]]);const Js=rt("mic",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]);const Ws=rt("minimize-2",[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]]);const Dm=rt("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);const Rm=rt("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const Nm=rt("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);const Ha=rt("send-horizontal",[["path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",key:"117uat"}],["path",{d:"M6 12h16",key:"s4cdu5"}]]);const jm=rt("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]);const Hm=rt("volume-2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);const km=rt("volume-x",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]]);const Ll=rt("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),p={colors:{panelBackground:"#ffffff",panelBorder:"#e2e8f0",pageBackground:"linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%)",sectionBackground:"#f8fafc",sectionBorder:"#e2e8f0",sectionLabel:"#475569",inputBackground:"#ffffff",inputBorder:"#e2e8f0",inputBorderFocus:"#00c2d1",inputText:"#3c4d73",inputPlaceholder:"#9ca3af",buttonPrimary:"#00c2d1",buttonPrimaryHover:"#00a8b5",buttonPrimaryText:"#ffffff",buttonSecondary:"#f1f5f9",buttonSecondaryHover:"#e2e8f0",buttonSecondaryText:"#64748b",buttonSecondaryActiveText:"#3c4d73",text:"#3c4d73",textLight:"#6b7280",textMuted:"#9ca3af",toggleTrack:"#e2e8f0",toggleTrackActive:"#00c2d1",toggleThumb:"#ffffff",tagBackground:"#e0f2fe",tagText:"#0369a1",tagRemove:"#64748b",tagRemoveHover:"#ef4444",jsonBackground:"#1e293b",jsonText:"#e2e8f0",jsonBorder:"#1e293b",accent:"#00c2d1",error:"#ef4444"},spacing:{xs:"4px",sm:"8px",md:"12px",lg:"16px",xl:"20px"},borderRadius:{sm:"4px",md:"6px",lg:"8px",xl:"12px"},fontFamily:"system-ui, -apple-system, sans-serif",fontFamilyMono:"'Monaco', 'Menlo', 'Ubuntu Mono', monospace",fontSize:{xs:"11px",sm:"12px",xxl:"18px"},fontWeight:{normal:400,medium:500,semibold:600},shadows:{md:"0 1px 3px rgba(0, 0, 0, 0.1)",focus:"0 0 0 2px rgba(0, 194, 209, 0.2)"},transitions:{fast:"0.15s ease"},breakpoints:{mobile:"900px"},layout:{controlsPanelWidth:"400px",minPreviewHeight:"600px"}},da={container:Q`
|
|
8
|
+
`+a.stack}}var ge=Object.prototype.hasOwnProperty,De=l.unstable_scheduleCallback,ce=l.unstable_cancelCallback,Ye=l.unstable_shouldYield,Je=l.unstable_requestPaint,Re=l.unstable_now,bn=l.unstable_getCurrentPriorityLevel,Af=l.unstable_ImmediatePriority,Mf=l.unstable_UserBlockingPriority,to=l.unstable_NormalPriority,Ib=l.unstable_LowPriority,wf=l.unstable_IdlePriority,Pb=l.log,e1=l.unstable_setDisableYieldValue,Xl=null,Rt=null;function Ln(e){if(typeof Pb=="function"&&e1(e),Rt&&typeof Rt.setStrictMode=="function")try{Rt.setStrictMode(Xl,e)}catch{}}var Nt=Math.clz32?Math.clz32:a1,t1=Math.log,n1=Math.LN2;function a1(e){return e>>>=0,e===0?32:31-(t1(e)/n1|0)|0}var no=256,ao=262144,lo=4194304;function ma(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function io(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var i=0,o=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var f=a&134217727;return f!==0?(a=f&~o,a!==0?i=ma(a):(c&=f,c!==0?i=ma(c):n||(n=f&~e,n!==0&&(i=ma(n))))):(f=a&~o,f!==0?i=ma(f):c!==0?i=ma(c):n||(n=a&~e,n!==0&&(i=ma(n)))),i===0?0:t!==0&&t!==i&&(t&o)===0&&(o=i&-i,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:i}function Vl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function l1(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function _f(){var e=lo;return lo<<=1,(lo&62914560)===0&&(lo=4194304),e}function Fr(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Zl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function i1(e,t,n,a,i,o){var c=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var f=e.entanglements,m=e.expirationTimes,w=e.hiddenUpdates;for(n=c&~n;0<n;){var B=31-Nt(n),H=1<<B;f[B]=0,m[B]=-1;var _=w[B];if(_!==null)for(w[B]=null,B=0;B<_.length;B++){var O=_[B];O!==null&&(O.lane&=-536870913)}n&=~H}a!==0&&Of(e,a,0),o!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=o&~(c&~t))}function Of(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Nt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function $f(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-Nt(n),i=1<<a;i&t|e[a]&t&&(e[a]|=t),n&=~i}}function Bf(e,t){var n=t&-t;return n=(n&42)!==0?1:Ir(n),(n&(e.suspendedLanes|t))!==0?0:n}function Ir(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Pr(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Df(){var e=J.p;return e!==0?e:(e=window.event,e===void 0?32:bg(e.type))}function Rf(e,t){var n=J.p;try{return J.p=e,t()}finally{J.p=n}}var Yn=Math.random().toString(36).slice(2),pt="__reactFiber$"+Yn,zt="__reactProps$"+Yn,Va="__reactContainer$"+Yn,eu="__reactEvents$"+Yn,o1="__reactListeners$"+Yn,r1="__reactHandles$"+Yn,Nf="__reactResources$"+Yn,Kl="__reactMarker$"+Yn;function tu(e){delete e[pt],delete e[zt],delete e[eu],delete e[o1],delete e[r1]}function Za(e){var t=e[pt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Va]||n[pt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ng(e);e!==null;){if(n=e[pt])return n;e=ng(e)}return t}e=n,n=e.parentNode}return null}function Ka(e){if(e=e[pt]||e[Va]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Jl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Ja(e){var t=e[Nf];return t||(t=e[Nf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ct(e){e[Kl]=!0}var jf=new Set,Hf={};function ya(e,t){Wa(e,t),Wa(e+"Capture",t)}function Wa(e,t){for(Hf[e]=t,e=0;e<t.length;e++)jf.add(t[e])}var u1=RegExp("^[: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]*$"),kf={},Uf={};function c1(e){return ge.call(Uf,e)?!0:ge.call(kf,e)?!1:u1.test(e)?Uf[e]=!0:(kf[e]=!0,!1)}function oo(e,t,n){if(c1(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function ro(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function vn(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function Qt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function qf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function s1(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var i=a.get,o=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(c){n=""+c,o.call(this,c)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(c){n=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function nu(e){if(!e._valueTracker){var t=qf(e)?"checked":"value";e._valueTracker=s1(e,t,""+e[t])}}function Lf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=qf(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function uo(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}}var f1=/[\n"\\]/g;function Xt(e){return e.replace(f1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function au(e,t,n,a,i,o,c,f){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Qt(t)):e.value!==""+Qt(t)&&(e.value=""+Qt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?lu(e,c,Qt(t)):n!=null?lu(e,c,Qt(n)):a!=null&&e.removeAttribute("value"),i==null&&o!=null&&(e.defaultChecked=!!o),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.name=""+Qt(f):e.removeAttribute("name")}function Yf(e,t,n,a,i,o,c,f){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){nu(e);return}n=n!=null?""+Qt(n):"",t=t!=null?""+Qt(t):n,f||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=f?e.checked:!!a,e.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),nu(e)}function lu(e,t,n){t==="number"&&uo(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Fa(e,t,n,a){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Qt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,a&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Gf(e,t,n){if(t!=null&&(t=""+Qt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Qt(n):""}function Qf(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(u(92));if(Dt(a)){if(1<a.length)throw Error(u(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=Qt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),nu(e)}function Ia(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var d1=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Xf(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||d1.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Vf(e,t,n){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var i in t)a=t[i],t.hasOwnProperty(i)&&n[i]!==a&&Xf(e,i,a)}else for(var o in t)t.hasOwnProperty(o)&&Xf(e,o,t[o])}function iu(e){if(e.indexOf("-")===-1)return!1;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 h1=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),p1=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function co(e){return p1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function xn(){}var ou=null;function ru(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Pa=null,el=null;function Zf(e){var t=Ka(e);if(t&&(e=t.stateNode)){var n=e[zt]||null;e:switch(e=t.stateNode,t.type){case"input":if(au(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Xt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var i=a[zt]||null;if(!i)throw Error(u(90));au(a,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&Lf(a)}break e;case"textarea":Gf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Fa(e,!!n.multiple,t,!1)}}}var uu=!1;function Kf(e,t,n){if(uu)return e(t,n);uu=!0;try{var a=e(t);return a}finally{if(uu=!1,(Pa!==null||el!==null)&&(Fo(),Pa&&(t=Pa,e=el,el=Pa=null,Zf(t),e)))for(t=0;t<e.length;t++)Zf(e[t])}}function Wl(e,t){var n=e.stateNode;if(n===null)return null;var a=n[zt]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(u(231,t,typeof n));return n}var Sn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cu=!1;if(Sn)try{var Fl={};Object.defineProperty(Fl,"passive",{get:function(){cu=!0}}),window.addEventListener("test",Fl,Fl),window.removeEventListener("test",Fl,Fl)}catch{cu=!1}var Gn=null,su=null,so=null;function Jf(){if(so)return so;var e,t=su,n=t.length,a,i="value"in Gn?Gn.value:Gn.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var c=n-e;for(a=1;a<=c&&t[n-a]===i[o-a];a++);return so=i.slice(e,1<a?1-a:void 0)}function fo(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ho(){return!0}function Wf(){return!1}function At(e){function t(n,a,i,o,c){this._reactName=n,this._targetInst=i,this.type=a,this.nativeEvent=o,this.target=c,this.currentTarget=null;for(var f in e)e.hasOwnProperty(f)&&(n=e[f],this[f]=n?n(o):o[f]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?ho:Wf,this.isPropagationStopped=Wf,this}return z(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ho)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ho)},persist:function(){},isPersistent:ho}),t}var ba={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},po=At(ba),Il=z({},ba,{view:0,detail:0}),g1=At(Il),fu,du,Pl,go=z({},Il,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Pl&&(Pl&&e.type==="mousemove"?(fu=e.screenX-Pl.screenX,du=e.screenY-Pl.screenY):du=fu=0,Pl=e),fu)},movementY:function(e){return"movementY"in e?e.movementY:du}}),Ff=At(go),m1=z({},go,{dataTransfer:0}),y1=At(m1),b1=z({},Il,{relatedTarget:0}),hu=At(b1),v1=z({},ba,{animationName:0,elapsedTime:0,pseudoElement:0}),x1=At(v1),S1=z({},ba,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),C1=At(S1),T1=z({},ba,{data:0}),If=At(T1),E1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},z1={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},A1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function M1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=A1[e])?!!t[e]:!1}function pu(){return M1}var w1=z({},Il,{key:function(e){if(e.key){var t=E1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=fo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?z1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pu,charCode:function(e){return e.type==="keypress"?fo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?fo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),_1=At(w1),O1=z({},go,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Pf=At(O1),$1=z({},Il,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pu}),B1=At($1),D1=z({},ba,{propertyName:0,elapsedTime:0,pseudoElement:0}),R1=At(D1),N1=z({},go,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),j1=At(N1),H1=z({},ba,{newState:0,oldState:0}),k1=At(H1),U1=[9,13,27,32],gu=Sn&&"CompositionEvent"in window,ei=null;Sn&&"documentMode"in document&&(ei=document.documentMode);var q1=Sn&&"TextEvent"in window&&!ei,ed=Sn&&(!gu||ei&&8<ei&&11>=ei),td=" ",nd=!1;function ad(e,t){switch(e){case"keyup":return U1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ld(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var tl=!1;function L1(e,t){switch(e){case"compositionend":return ld(t);case"keypress":return t.which!==32?null:(nd=!0,td);case"textInput":return e=t.data,e===td&&nd?null:e;default:return null}}function Y1(e,t){if(tl)return e==="compositionend"||!gu&&ad(e,t)?(e=Jf(),so=su=Gn=null,tl=!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.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ed&&t.locale!=="ko"?null:t.data;default:return null}}var G1={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function id(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!G1[e.type]:t==="textarea"}function od(e,t,n,a){Pa?el?el.push(a):el=[a]:Pa=a,t=lr(t,"onChange"),0<t.length&&(n=new po("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var ti=null,ni=null;function Q1(e){Yp(e,0)}function mo(e){var t=Jl(e);if(Lf(t))return e}function rd(e,t){if(e==="change")return t}var ud=!1;if(Sn){var mu;if(Sn){var yu="oninput"in document;if(!yu){var cd=document.createElement("div");cd.setAttribute("oninput","return;"),yu=typeof cd.oninput=="function"}mu=yu}else mu=!1;ud=mu&&(!document.documentMode||9<document.documentMode)}function sd(){ti&&(ti.detachEvent("onpropertychange",fd),ni=ti=null)}function fd(e){if(e.propertyName==="value"&&mo(ni)){var t=[];od(t,ni,e,ru(e)),Kf(Q1,t)}}function X1(e,t,n){e==="focusin"?(sd(),ti=t,ni=n,ti.attachEvent("onpropertychange",fd)):e==="focusout"&&sd()}function V1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return mo(ni)}function Z1(e,t){if(e==="click")return mo(t)}function K1(e,t){if(e==="input"||e==="change")return mo(t)}function J1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jt=typeof Object.is=="function"?Object.is:J1;function ai(e,t){if(jt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var i=n[a];if(!ge.call(t,i)||!jt(e[i],t[i]))return!1}return!0}function dd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hd(e,t){var n=dd(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=dd(n)}}function pd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function gd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=uo(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=uo(e.document)}return t}function bu(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")}var W1=Sn&&"documentMode"in document&&11>=document.documentMode,nl=null,vu=null,li=null,xu=!1;function md(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;xu||nl==null||nl!==uo(a)||(a=nl,"selectionStart"in a&&bu(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),li&&ai(li,a)||(li=a,a=lr(vu,"onSelect"),0<a.length&&(t=new po("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=nl)))}function va(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var al={animationend:va("Animation","AnimationEnd"),animationiteration:va("Animation","AnimationIteration"),animationstart:va("Animation","AnimationStart"),transitionrun:va("Transition","TransitionRun"),transitionstart:va("Transition","TransitionStart"),transitioncancel:va("Transition","TransitionCancel"),transitionend:va("Transition","TransitionEnd")},Su={},yd={};Sn&&(yd=document.createElement("div").style,"AnimationEvent"in window||(delete al.animationend.animation,delete al.animationiteration.animation,delete al.animationstart.animation),"TransitionEvent"in window||delete al.transitionend.transition);function xa(e){if(Su[e])return Su[e];if(!al[e])return e;var t=al[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in yd)return Su[e]=t[n];return e}var bd=xa("animationend"),vd=xa("animationiteration"),xd=xa("animationstart"),F1=xa("transitionrun"),I1=xa("transitionstart"),P1=xa("transitioncancel"),Sd=xa("transitionend"),Cd=new Map,Cu="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Cu.push("scrollEnd");function ln(e,t){Cd.set(e,t),ya(t,[e])}var yo=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Vt=[],ll=0,Tu=0;function bo(){for(var e=ll,t=Tu=ll=0;t<e;){var n=Vt[t];Vt[t++]=null;var a=Vt[t];Vt[t++]=null;var i=Vt[t];Vt[t++]=null;var o=Vt[t];if(Vt[t++]=null,a!==null&&i!==null){var c=a.pending;c===null?i.next=i:(i.next=c.next,c.next=i),a.pending=i}o!==0&&Td(n,i,o)}}function vo(e,t,n,a){Vt[ll++]=e,Vt[ll++]=t,Vt[ll++]=n,Vt[ll++]=a,Tu|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Eu(e,t,n,a){return vo(e,t,n,a),xo(e)}function Sa(e,t){return vo(e,null,null,t),xo(e)}function Td(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var i=!1,o=e.return;o!==null;)o.childLanes|=n,a=o.alternate,a!==null&&(a.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(i=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,i&&t!==null&&(i=31-Nt(n),e=o.hiddenUpdates,a=e[i],a===null?e[i]=[t]:a.push(t),t.lane=n|536870912),o):null}function xo(e){if(50<Ai)throw Ai=0,Dc=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var il={};function ev(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ht(e,t,n,a){return new ev(e,t,n,a)}function zu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Cn(e,t){var n=e.alternate;return n===null?(n=Ht(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&65011712,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.refCleanup=e.refCleanup,n}function Ed(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function So(e,t,n,a,i,o){var c=0;if(a=e,typeof e=="function")zu(e)&&(c=1);else if(typeof e=="string")c=ix(e,n,I.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Xe:return e=Ht(31,n,t,i),e.elementType=Xe,e.lanes=o,e;case Y:return Ca(n.children,i,o,t);case D:c=8,i|=24;break;case K:return e=Ht(12,n,t,i|2),e.elementType=K,e.lanes=o,e;case L:return e=Ht(13,n,t,i),e.elementType=L,e.lanes=o,e;case ae:return e=Ht(19,n,t,i),e.elementType=ae,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Z:c=10;break e;case P:c=9;break e;case re:c=11;break e;case G:c=14;break e;case He:c=16,a=null;break e}c=29,n=Error(u(130,e===null?"null":typeof e,"")),a=null}return t=Ht(c,n,t,i),t.elementType=e,t.type=a,t.lanes=o,t}function Ca(e,t,n,a){return e=Ht(7,e,a,t),e.lanes=n,e}function Au(e,t,n){return e=Ht(6,e,null,t),e.lanes=n,e}function zd(e){var t=Ht(18,null,null,0);return t.stateNode=e,t}function Mu(e,t,n){return t=Ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ad=new WeakMap;function Zt(e,t){if(typeof e=="object"&&e!==null){var n=Ad.get(e);return n!==void 0?n:(t={value:e,source:t,stack:me(t)},Ad.set(e,t),t)}return{value:e,source:t,stack:me(t)}}var ol=[],rl=0,Co=null,ii=0,Kt=[],Jt=0,Qn=null,hn=1,pn="";function Tn(e,t){ol[rl++]=ii,ol[rl++]=Co,Co=e,ii=t}function Md(e,t,n){Kt[Jt++]=hn,Kt[Jt++]=pn,Kt[Jt++]=Qn,Qn=e;var a=hn;e=pn;var i=32-Nt(a)-1;a&=~(1<<i),n+=1;var o=32-Nt(t)+i;if(30<o){var c=i-i%5;o=(a&(1<<c)-1).toString(32),a>>=c,i-=c,hn=1<<32-Nt(t)+i|n<<i|a,pn=o+e}else hn=1<<o|n<<i|a,pn=e}function wu(e){e.return!==null&&(Tn(e,1),Md(e,1,0))}function _u(e){for(;e===Co;)Co=ol[--rl],ol[rl]=null,ii=ol[--rl],ol[rl]=null;for(;e===Qn;)Qn=Kt[--Jt],Kt[Jt]=null,pn=Kt[--Jt],Kt[Jt]=null,hn=Kt[--Jt],Kt[Jt]=null}function wd(e,t){Kt[Jt++]=hn,Kt[Jt++]=pn,Kt[Jt++]=Qn,hn=t.id,pn=t.overflow,Qn=e}var gt=null,Ge=null,Se=!1,Xn=null,Wt=!1,Ou=Error(u(519));function Vn(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw oi(Zt(t,e)),Ou}function _d(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[pt]=e,t[zt]=a,n){case"dialog":be("cancel",t),be("close",t);break;case"iframe":case"object":case"embed":be("load",t);break;case"video":case"audio":for(n=0;n<wi.length;n++)be(wi[n],t);break;case"source":be("error",t);break;case"img":case"image":case"link":be("error",t),be("load",t);break;case"details":be("toggle",t);break;case"input":be("invalid",t),Yf(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":be("invalid",t);break;case"textarea":be("invalid",t),Qf(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||Vp(t.textContent,n)?(a.popover!=null&&(be("beforetoggle",t),be("toggle",t)),a.onScroll!=null&&be("scroll",t),a.onScrollEnd!=null&&be("scrollend",t),a.onClick!=null&&(t.onclick=xn),t=!0):t=!1,t||Vn(e,!0)}function Od(e){for(gt=e.return;gt;)switch(gt.tag){case 5:case 31:case 13:Wt=!1;return;case 27:case 3:Wt=!0;return;default:gt=gt.return}}function ul(e){if(e!==gt)return!1;if(!Se)return Od(e),Se=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Kc(e.type,e.memoizedProps)),n=!n),n&&Ge&&Vn(e),Od(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ge=tg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ge=tg(e)}else t===27?(t=Ge,oa(e.type)?(e=Pc,Pc=null,Ge=e):Ge=t):Ge=gt?It(e.stateNode.nextSibling):null;return!0}function Ta(){Ge=gt=null,Se=!1}function $u(){var e=Xn;return e!==null&&(Ot===null?Ot=e:Ot.push.apply(Ot,e),Xn=null),e}function oi(e){Xn===null?Xn=[e]:Xn.push(e)}var Bu=x(null),Ea=null,En=null;function Zn(e,t,n){W(Bu,t._currentValue),t._currentValue=n}function zn(e){e._currentValue=Bu.current,j(Bu)}function Du(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function Ru(e,t,n,a){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var o=i.dependencies;if(o!==null){var c=i.child;o=o.firstContext;e:for(;o!==null;){var f=o;o=i;for(var m=0;m<t.length;m++)if(f.context===t[m]){o.lanes|=n,f=o.alternate,f!==null&&(f.lanes|=n),Du(o.return,n,e),a||(c=null);break e}o=f.next}}else if(i.tag===18){if(c=i.return,c===null)throw Error(u(341));c.lanes|=n,o=c.alternate,o!==null&&(o.lanes|=n),Du(c,n,e),c=null}else c=i.child;if(c!==null)c.return=i;else for(c=i;c!==null;){if(c===e){c=null;break}if(i=c.sibling,i!==null){i.return=c.return,c=i;break}c=c.return}i=c}}function cl(e,t,n,a){e=null;for(var i=t,o=!1;i!==null;){if(!o){if((i.flags&524288)!==0)o=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var c=i.alternate;if(c===null)throw Error(u(387));if(c=c.memoizedProps,c!==null){var f=i.type;jt(i.pendingProps.value,c.value)||(e!==null?e.push(f):e=[f])}}else if(i===Te.current){if(c=i.alternate,c===null)throw Error(u(387));c.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(Di):e=[Di])}i=i.return}e!==null&&Ru(t,e,n,a),t.flags|=262144}function To(e){for(e=e.firstContext;e!==null;){if(!jt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function za(e){Ea=e,En=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function mt(e){return $d(Ea,e)}function Eo(e,t){return Ea===null&&za(e),$d(e,t)}function $d(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},En===null){if(e===null)throw Error(u(308));En=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else En=En.next=t;return n}var tv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},nv=l.unstable_scheduleCallback,av=l.unstable_NormalPriority,nt={$$typeof:Z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Nu(){return{controller:new tv,data:new Map,refCount:0}}function ri(e){e.refCount--,e.refCount===0&&nv(av,function(){e.controller.abort()})}var ui=null,ju=0,sl=0,fl=null;function lv(e,t){if(ui===null){var n=ui=[];ju=0,sl=Uc(),fl={status:"pending",value:void 0,then:function(a){n.push(a)}}}return ju++,t.then(Bd,Bd),t}function Bd(){if(--ju===0&&ui!==null){fl!==null&&(fl.status="fulfilled");var e=ui;ui=null,sl=0,fl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function iv(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var i=0;i<n.length;i++)(0,n[i])(t)},function(i){for(a.status="rejected",a.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),a}var Dd=$.S;$.S=function(e,t){mp=Re(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&lv(e,t),Dd!==null&&Dd(e,t)};var Aa=x(null);function Hu(){var e=Aa.current;return e!==null?e:Le.pooledCache}function zo(e,t){t===null?W(Aa,Aa.current):W(Aa,t.pool)}function Rd(){var e=Hu();return e===null?null:{parent:nt._currentValue,pool:e}}var dl=Error(u(460)),ku=Error(u(474)),Ao=Error(u(542)),Mo={then:function(){}};function Nd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function jd(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(xn,xn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,kd(e),e;default:if(typeof t.status=="string")t.then(xn,xn);else{if(e=Le,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=a}},function(a){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,kd(e),e}throw wa=t,dl}}function Ma(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(wa=n,dl):n}}var wa=null;function Hd(){if(wa===null)throw Error(u(459));var e=wa;return wa=null,e}function kd(e){if(e===dl||e===Ao)throw Error(u(483))}var hl=null,ci=0;function wo(e){var t=ci;return ci+=1,hl===null&&(hl=[]),jd(hl,e,t)}function si(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function _o(e,t){throw t.$$typeof===U?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Ud(e){function t(E,b){if(e){var M=E.deletions;M===null?(E.deletions=[b],E.flags|=16):M.push(b)}}function n(E,b){if(!e)return null;for(;b!==null;)t(E,b),b=b.sibling;return null}function a(E){for(var b=new Map;E!==null;)E.key!==null?b.set(E.key,E):b.set(E.index,E),E=E.sibling;return b}function i(E,b){return E=Cn(E,b),E.index=0,E.sibling=null,E}function o(E,b,M){return E.index=M,e?(M=E.alternate,M!==null?(M=M.index,M<b?(E.flags|=67108866,b):M):(E.flags|=67108866,b)):(E.flags|=1048576,b)}function c(E){return e&&E.alternate===null&&(E.flags|=67108866),E}function f(E,b,M,N){return b===null||b.tag!==6?(b=Au(M,E.mode,N),b.return=E,b):(b=i(b,M),b.return=E,b)}function m(E,b,M,N){var ne=M.type;return ne===Y?B(E,b,M.props.children,N,M.key):b!==null&&(b.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===He&&Ma(ne)===b.type)?(b=i(b,M.props),si(b,M),b.return=E,b):(b=So(M.type,M.key,M.props,null,E.mode,N),si(b,M),b.return=E,b)}function w(E,b,M,N){return b===null||b.tag!==4||b.stateNode.containerInfo!==M.containerInfo||b.stateNode.implementation!==M.implementation?(b=Mu(M,E.mode,N),b.return=E,b):(b=i(b,M.children||[]),b.return=E,b)}function B(E,b,M,N,ne){return b===null||b.tag!==7?(b=Ca(M,E.mode,N,ne),b.return=E,b):(b=i(b,M),b.return=E,b)}function H(E,b,M){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return b=Au(""+b,E.mode,M),b.return=E,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case V:return M=So(b.type,b.key,b.props,null,E.mode,M),si(M,b),M.return=E,M;case Q:return b=Mu(b,E.mode,M),b.return=E,b;case He:return b=Ma(b),H(E,b,M)}if(Dt(b)||Ke(b))return b=Ca(b,E.mode,M,null),b.return=E,b;if(typeof b.then=="function")return H(E,wo(b),M);if(b.$$typeof===Z)return H(E,Eo(E,b),M);_o(E,b)}return null}function _(E,b,M,N){var ne=b!==null?b.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return ne!==null?null:f(E,b,""+M,N);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case V:return M.key===ne?m(E,b,M,N):null;case Q:return M.key===ne?w(E,b,M,N):null;case He:return M=Ma(M),_(E,b,M,N)}if(Dt(M)||Ke(M))return ne!==null?null:B(E,b,M,N,null);if(typeof M.then=="function")return _(E,b,wo(M),N);if(M.$$typeof===Z)return _(E,b,Eo(E,M),N);_o(E,M)}return null}function O(E,b,M,N,ne){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return E=E.get(M)||null,f(b,E,""+N,ne);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case V:return E=E.get(N.key===null?M:N.key)||null,m(b,E,N,ne);case Q:return E=E.get(N.key===null?M:N.key)||null,w(b,E,N,ne);case He:return N=Ma(N),O(E,b,M,N,ne)}if(Dt(N)||Ke(N))return E=E.get(M)||null,B(b,E,N,ne,null);if(typeof N.then=="function")return O(E,b,M,wo(N),ne);if(N.$$typeof===Z)return O(E,b,M,Eo(b,N),ne);_o(b,N)}return null}function F(E,b,M,N){for(var ne=null,Ee=null,te=b,he=b=0,xe=null;te!==null&&he<M.length;he++){te.index>he?(xe=te,te=null):xe=te.sibling;var ze=_(E,te,M[he],N);if(ze===null){te===null&&(te=xe);break}e&&te&&ze.alternate===null&&t(E,te),b=o(ze,b,he),Ee===null?ne=ze:Ee.sibling=ze,Ee=ze,te=xe}if(he===M.length)return n(E,te),Se&&Tn(E,he),ne;if(te===null){for(;he<M.length;he++)te=H(E,M[he],N),te!==null&&(b=o(te,b,he),Ee===null?ne=te:Ee.sibling=te,Ee=te);return Se&&Tn(E,he),ne}for(te=a(te);he<M.length;he++)xe=O(te,E,he,M[he],N),xe!==null&&(e&&xe.alternate!==null&&te.delete(xe.key===null?he:xe.key),b=o(xe,b,he),Ee===null?ne=xe:Ee.sibling=xe,Ee=xe);return e&&te.forEach(function(fa){return t(E,fa)}),Se&&Tn(E,he),ne}function ie(E,b,M,N){if(M==null)throw Error(u(151));for(var ne=null,Ee=null,te=b,he=b=0,xe=null,ze=M.next();te!==null&&!ze.done;he++,ze=M.next()){te.index>he?(xe=te,te=null):xe=te.sibling;var fa=_(E,te,ze.value,N);if(fa===null){te===null&&(te=xe);break}e&&te&&fa.alternate===null&&t(E,te),b=o(fa,b,he),Ee===null?ne=fa:Ee.sibling=fa,Ee=fa,te=xe}if(ze.done)return n(E,te),Se&&Tn(E,he),ne;if(te===null){for(;!ze.done;he++,ze=M.next())ze=H(E,ze.value,N),ze!==null&&(b=o(ze,b,he),Ee===null?ne=ze:Ee.sibling=ze,Ee=ze);return Se&&Tn(E,he),ne}for(te=a(te);!ze.done;he++,ze=M.next())ze=O(te,E,he,ze.value,N),ze!==null&&(e&&ze.alternate!==null&&te.delete(ze.key===null?he:ze.key),b=o(ze,b,he),Ee===null?ne=ze:Ee.sibling=ze,Ee=ze);return e&&te.forEach(function(mx){return t(E,mx)}),Se&&Tn(E,he),ne}function qe(E,b,M,N){if(typeof M=="object"&&M!==null&&M.type===Y&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case V:e:{for(var ne=M.key;b!==null;){if(b.key===ne){if(ne=M.type,ne===Y){if(b.tag===7){n(E,b.sibling),N=i(b,M.props.children),N.return=E,E=N;break e}}else if(b.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===He&&Ma(ne)===b.type){n(E,b.sibling),N=i(b,M.props),si(N,M),N.return=E,E=N;break e}n(E,b);break}else t(E,b);b=b.sibling}M.type===Y?(N=Ca(M.props.children,E.mode,N,M.key),N.return=E,E=N):(N=So(M.type,M.key,M.props,null,E.mode,N),si(N,M),N.return=E,E=N)}return c(E);case Q:e:{for(ne=M.key;b!==null;){if(b.key===ne)if(b.tag===4&&b.stateNode.containerInfo===M.containerInfo&&b.stateNode.implementation===M.implementation){n(E,b.sibling),N=i(b,M.children||[]),N.return=E,E=N;break e}else{n(E,b);break}else t(E,b);b=b.sibling}N=Mu(M,E.mode,N),N.return=E,E=N}return c(E);case He:return M=Ma(M),qe(E,b,M,N)}if(Dt(M))return F(E,b,M,N);if(Ke(M)){if(ne=Ke(M),typeof ne!="function")throw Error(u(150));return M=ne.call(M),ie(E,b,M,N)}if(typeof M.then=="function")return qe(E,b,wo(M),N);if(M.$$typeof===Z)return qe(E,b,Eo(E,M),N);_o(E,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,b!==null&&b.tag===6?(n(E,b.sibling),N=i(b,M),N.return=E,E=N):(n(E,b),N=Au(M,E.mode,N),N.return=E,E=N),c(E)):n(E,b)}return function(E,b,M,N){try{ci=0;var ne=qe(E,b,M,N);return hl=null,ne}catch(te){if(te===dl||te===Ao)throw te;var Ee=Ht(29,te,null,E.mode);return Ee.lanes=N,Ee.return=E,Ee}}}var _a=Ud(!0),qd=Ud(!1),Kn=!1;function Uu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function qu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Jn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Wn(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,($e&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=xo(e),Td(e,null,n),t}return vo(e,a,t,n),xo(e)}function fi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,$f(e,n)}}function Lu(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var c={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?i=o=c:o=o.next=c,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Yu=!1;function di(){if(Yu){var e=fl;if(e!==null)throw e}}function hi(e,t,n,a){Yu=!1;var i=e.updateQueue;Kn=!1;var o=i.firstBaseUpdate,c=i.lastBaseUpdate,f=i.shared.pending;if(f!==null){i.shared.pending=null;var m=f,w=m.next;m.next=null,c===null?o=w:c.next=w,c=m;var B=e.alternate;B!==null&&(B=B.updateQueue,f=B.lastBaseUpdate,f!==c&&(f===null?B.firstBaseUpdate=w:f.next=w,B.lastBaseUpdate=m))}if(o!==null){var H=i.baseState;c=0,B=w=m=null,f=o;do{var _=f.lane&-536870913,O=_!==f.lane;if(O?(ve&_)===_:(a&_)===_){_!==0&&_===sl&&(Yu=!0),B!==null&&(B=B.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});e:{var F=e,ie=f;_=t;var qe=n;switch(ie.tag){case 1:if(F=ie.payload,typeof F=="function"){H=F.call(qe,H,_);break e}H=F;break e;case 3:F.flags=F.flags&-65537|128;case 0:if(F=ie.payload,_=typeof F=="function"?F.call(qe,H,_):F,_==null)break e;H=z({},H,_);break e;case 2:Kn=!0}}_=f.callback,_!==null&&(e.flags|=64,O&&(e.flags|=8192),O=i.callbacks,O===null?i.callbacks=[_]:O.push(_))}else O={lane:_,tag:f.tag,payload:f.payload,callback:f.callback,next:null},B===null?(w=B=O,m=H):B=B.next=O,c|=_;if(f=f.next,f===null){if(f=i.shared.pending,f===null)break;O=f,f=O.next,O.next=null,i.lastBaseUpdate=O,i.shared.pending=null}}while(!0);B===null&&(m=H),i.baseState=m,i.firstBaseUpdate=w,i.lastBaseUpdate=B,o===null&&(i.shared.lanes=0),ta|=c,e.lanes=c,e.memoizedState=H}}function Ld(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Yd(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ld(n[e],t)}var pl=x(null),Oo=x(0);function Gd(e,t){e=Rn,W(Oo,e),W(pl,t),Rn=e|t.baseLanes}function Gu(){W(Oo,Rn),W(pl,pl.current)}function Qu(){Rn=Oo.current,j(pl),j(Oo)}var kt=x(null),Ft=null;function Fn(e){var t=e.alternate;W(Ie,Ie.current&1),W(kt,e),Ft===null&&(t===null||pl.current!==null||t.memoizedState!==null)&&(Ft=e)}function Xu(e){W(Ie,Ie.current),W(kt,e),Ft===null&&(Ft=e)}function Qd(e){e.tag===22?(W(Ie,Ie.current),W(kt,e),Ft===null&&(Ft=e)):In()}function In(){W(Ie,Ie.current),W(kt,kt.current)}function Ut(e){j(kt),Ft===e&&(Ft=null),j(Ie)}var Ie=x(0);function $o(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Fc(n)||Ic(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)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 An=0,de=null,ke=null,at=null,Bo=!1,gl=!1,Oa=!1,Do=0,pi=0,ml=null,ov=0;function We(){throw Error(u(321))}function Vu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!jt(e[n],t[n]))return!1;return!0}function Zu(e,t,n,a,i,o){return An=o,de=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,$.H=e===null||e.memoizedState===null?Mh:uc,Oa=!1,o=n(a,i),Oa=!1,gl&&(o=Vd(t,n,a,i)),Xd(e),o}function Xd(e){$.H=yi;var t=ke!==null&&ke.next!==null;if(An=0,at=ke=de=null,Bo=!1,pi=0,ml=null,t)throw Error(u(300));e===null||lt||(e=e.dependencies,e!==null&&To(e)&&(lt=!0))}function Vd(e,t,n,a){de=e;var i=0;do{if(gl&&(ml=null),pi=0,gl=!1,25<=i)throw Error(u(301));if(i+=1,at=ke=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}$.H=wh,o=t(n,a)}while(gl);return o}function rv(){var e=$.H,t=e.useState()[0];return t=typeof t.then=="function"?gi(t):t,e=e.useState()[0],(ke!==null?ke.memoizedState:null)!==e&&(de.flags|=1024),t}function Ku(){var e=Do!==0;return Do=0,e}function Ju(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Wu(e){if(Bo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Bo=!1}An=0,at=ke=de=null,gl=!1,pi=Do=0,ml=null}function Ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return at===null?de.memoizedState=at=e:at=at.next=e,at}function Pe(){if(ke===null){var e=de.alternate;e=e!==null?e.memoizedState:null}else e=ke.next;var t=at===null?de.memoizedState:at.next;if(t!==null)at=t,ke=e;else{if(e===null)throw de.alternate===null?Error(u(467)):Error(u(310));ke=e,e={memoizedState:ke.memoizedState,baseState:ke.baseState,baseQueue:ke.baseQueue,queue:ke.queue,next:null},at===null?de.memoizedState=at=e:at=at.next=e}return at}function Ro(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function gi(e){var t=pi;return pi+=1,ml===null&&(ml=[]),e=jd(ml,e,t),t=de,(at===null?t.memoizedState:at.next)===null&&(t=t.alternate,$.H=t===null||t.memoizedState===null?Mh:uc),e}function No(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return gi(e);if(e.$$typeof===Z)return mt(e)}throw Error(u(438,String(e)))}function Fu(e){var t=null,n=de.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=de.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Ro(),de.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=q;return t.index++,n}function Mn(e,t){return typeof t=="function"?t(e):t}function jo(e){var t=Pe();return Iu(t,ke,e)}function Iu(e,t,n){var a=e.queue;if(a===null)throw Error(u(311));a.lastRenderedReducer=n;var i=e.baseQueue,o=a.pending;if(o!==null){if(i!==null){var c=i.next;i.next=o.next,o.next=c}t.baseQueue=i=o,a.pending=null}if(o=e.baseState,i===null)e.memoizedState=o;else{t=i.next;var f=c=null,m=null,w=t,B=!1;do{var H=w.lane&-536870913;if(H!==w.lane?(ve&H)===H:(An&H)===H){var _=w.revertLane;if(_===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null}),H===sl&&(B=!0);else if((An&_)===_){w=w.next,_===sl&&(B=!0);continue}else H={lane:0,revertLane:w.revertLane,gesture:null,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null},m===null?(f=m=H,c=o):m=m.next=H,de.lanes|=_,ta|=_;H=w.action,Oa&&n(o,H),o=w.hasEagerState?w.eagerState:n(o,H)}else _={lane:H,revertLane:w.revertLane,gesture:w.gesture,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null},m===null?(f=m=_,c=o):m=m.next=_,de.lanes|=H,ta|=H;w=w.next}while(w!==null&&w!==t);if(m===null?c=o:m.next=f,!jt(o,e.memoizedState)&&(lt=!0,B&&(n=fl,n!==null)))throw n;e.memoizedState=o,e.baseState=c,e.baseQueue=m,a.lastRenderedState=o}return i===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Pu(e){var t=Pe(),n=t.queue;if(n===null)throw Error(u(311));n.lastRenderedReducer=e;var a=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var c=i=i.next;do o=e(o,c.action),c=c.next;while(c!==i);jt(o,t.memoizedState)||(lt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,a]}function Zd(e,t,n){var a=de,i=Pe(),o=Se;if(o){if(n===void 0)throw Error(u(407));n=n()}else n=t();var c=!jt((ke||i).memoizedState,n);if(c&&(i.memoizedState=n,lt=!0),i=i.queue,nc(Wd.bind(null,a,i,e),[e]),i.getSnapshot!==t||c||at!==null&&at.memoizedState.tag&1){if(a.flags|=2048,yl(9,{destroy:void 0},Jd.bind(null,a,i,n,t),null),Le===null)throw Error(u(349));o||(An&127)!==0||Kd(a,t,n)}return n}function Kd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=de.updateQueue,t===null?(t=Ro(),de.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Jd(e,t,n,a){t.value=n,t.getSnapshot=a,Fd(t)&&Id(e)}function Wd(e,t,n){return n(function(){Fd(t)&&Id(e)})}function Fd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!jt(e,n)}catch{return!0}}function Id(e){var t=Sa(e,2);t!==null&&$t(t,e,2)}function ec(e){var t=Ct();if(typeof e=="function"){var n=e;if(e=n(),Oa){Ln(!0);try{n()}finally{Ln(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mn,lastRenderedState:e},t}function Pd(e,t,n,a){return e.baseState=n,Iu(e,ke,typeof a=="function"?a:Mn)}function uv(e,t,n,a,i){if(Uo(e))throw Error(u(485));if(e=t.action,e!==null){var o={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){o.listeners.push(c)}};$.T!==null?n(!0):o.isTransition=!1,a(o),n=t.pending,n===null?(o.next=t.pending=o,eh(t,o)):(o.next=n.next,t.pending=n.next=o)}}function eh(e,t){var n=t.action,a=t.payload,i=e.state;if(t.isTransition){var o=$.T,c={};$.T=c;try{var f=n(i,a),m=$.S;m!==null&&m(c,f),th(e,t,f)}catch(w){tc(e,t,w)}finally{o!==null&&c.types!==null&&(o.types=c.types),$.T=o}}else try{o=n(i,a),th(e,t,o)}catch(w){tc(e,t,w)}}function th(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){nh(e,t,a)},function(a){return tc(e,t,a)}):nh(e,t,n)}function nh(e,t,n){t.status="fulfilled",t.value=n,ah(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,eh(e,n)))}function tc(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,ah(t),t=t.next;while(t!==a)}e.action=null}function ah(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function lh(e,t){return t}function ih(e,t){if(Se){var n=Le.formState;if(n!==null){e:{var a=de;if(Se){if(Ge){t:{for(var i=Ge,o=Wt;i.nodeType!==8;){if(!o){i=null;break t}if(i=It(i.nextSibling),i===null){i=null;break t}}o=i.data,i=o==="F!"||o==="F"?i:null}if(i){Ge=It(i.nextSibling),a=i.data==="F!";break e}}Vn(a)}a=!1}a&&(t=n[0])}}return n=Ct(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:lh,lastRenderedState:t},n.queue=a,n=Eh.bind(null,de,a),a.dispatch=n,a=ec(!1),o=rc.bind(null,de,!1,a.queue),a=Ct(),i={state:t,dispatch:null,action:e,pending:null},a.queue=i,n=uv.bind(null,de,i,o,n),i.dispatch=n,a.memoizedState=e,[t,n,!1]}function oh(e){var t=Pe();return rh(t,ke,e)}function rh(e,t,n){if(t=Iu(e,t,lh)[0],e=jo(Mn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=gi(t)}catch(c){throw c===dl?Ao:c}else a=t;t=Pe();var i=t.queue,o=i.dispatch;return n!==t.memoizedState&&(de.flags|=2048,yl(9,{destroy:void 0},cv.bind(null,i,n),null)),[a,o,e]}function cv(e,t){e.action=t}function uh(e){var t=Pe(),n=ke;if(n!==null)return rh(t,n,e);Pe(),t=t.memoizedState,n=Pe();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function yl(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=de.updateQueue,t===null&&(t=Ro(),de.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function ch(){return Pe().memoizedState}function Ho(e,t,n,a){var i=Ct();de.flags|=e,i.memoizedState=yl(1|t,{destroy:void 0},n,a===void 0?null:a)}function ko(e,t,n,a){var i=Pe();a=a===void 0?null:a;var o=i.memoizedState.inst;ke!==null&&a!==null&&Vu(a,ke.memoizedState.deps)?i.memoizedState=yl(t,o,n,a):(de.flags|=e,i.memoizedState=yl(1|t,o,n,a))}function sh(e,t){Ho(8390656,8,e,t)}function nc(e,t){ko(2048,8,e,t)}function sv(e){de.flags|=4;var t=de.updateQueue;if(t===null)t=Ro(),de.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function fh(e){var t=Pe().memoizedState;return sv({ref:t,nextImpl:e}),function(){if(($e&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function dh(e,t){return ko(4,2,e,t)}function hh(e,t){return ko(4,4,e,t)}function ph(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function gh(e,t,n){n=n!=null?n.concat([e]):null,ko(4,4,ph.bind(null,t,e),n)}function ac(){}function mh(e,t){var n=Pe();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Vu(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function yh(e,t){var n=Pe();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Vu(t,a[1]))return a[0];if(a=e(),Oa){Ln(!0);try{e()}finally{Ln(!1)}}return n.memoizedState=[a,t],a}function lc(e,t,n){return n===void 0||(An&1073741824)!==0&&(ve&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=bp(),de.lanes|=e,ta|=e,n)}function bh(e,t,n,a){return jt(n,t)?n:pl.current!==null?(e=lc(e,n,a),jt(e,t)||(lt=!0),e):(An&42)===0||(An&1073741824)!==0&&(ve&261930)===0?(lt=!0,e.memoizedState=n):(e=bp(),de.lanes|=e,ta|=e,t)}function vh(e,t,n,a,i){var o=J.p;J.p=o!==0&&8>o?o:8;var c=$.T,f={};$.T=f,rc(e,!1,t,n);try{var m=i(),w=$.S;if(w!==null&&w(f,m),m!==null&&typeof m=="object"&&typeof m.then=="function"){var B=iv(m,a);mi(e,t,B,Yt(e))}else mi(e,t,a,Yt(e))}catch(H){mi(e,t,{then:function(){},status:"rejected",reason:H},Yt())}finally{J.p=o,c!==null&&f.types!==null&&(c.types=f.types),$.T=c}}function fv(){}function ic(e,t,n,a){if(e.tag!==5)throw Error(u(476));var i=xh(e).queue;vh(e,i,t,oe,n===null?fv:function(){return Sh(e),n(a)})}function xh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mn,lastRenderedState:oe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Sh(e){var t=xh(e);t.next===null&&(t=e.alternate.memoizedState),mi(e,t.next.queue,{},Yt())}function oc(){return mt(Di)}function Ch(){return Pe().memoizedState}function Th(){return Pe().memoizedState}function dv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Yt();e=Jn(n);var a=Wn(t,e,n);a!==null&&($t(a,t,n),fi(a,t,n)),t={cache:Nu()},e.payload=t;return}t=t.return}}function hv(e,t,n){var a=Yt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Uo(e)?zh(t,n):(n=Eu(e,t,n,a),n!==null&&($t(n,e,a),Ah(n,t,a)))}function Eh(e,t,n){var a=Yt();mi(e,t,n,a)}function mi(e,t,n,a){var i={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Uo(e))zh(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var c=t.lastRenderedState,f=o(c,n);if(i.hasEagerState=!0,i.eagerState=f,jt(f,c))return vo(e,t,i,0),Le===null&&bo(),!1}catch{}if(n=Eu(e,t,i,a),n!==null)return $t(n,e,a),Ah(n,t,a),!0}return!1}function rc(e,t,n,a){if(a={lane:2,revertLane:Uc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Uo(e)){if(t)throw Error(u(479))}else t=Eu(e,n,a,2),t!==null&&$t(t,e,2)}function Uo(e){var t=e.alternate;return e===de||t!==null&&t===de}function zh(e,t){gl=Bo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ah(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,$f(e,n)}}var yi={readContext:mt,use:No,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useLayoutEffect:We,useInsertionEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useSyncExternalStore:We,useId:We,useHostTransitionStatus:We,useFormState:We,useActionState:We,useOptimistic:We,useMemoCache:We,useCacheRefresh:We};yi.useEffectEvent=We;var Mh={readContext:mt,use:No,useCallback:function(e,t){return Ct().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:sh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Ho(4194308,4,ph.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ho(4194308,4,e,t)},useInsertionEffect:function(e,t){Ho(4,2,e,t)},useMemo:function(e,t){var n=Ct();t=t===void 0?null:t;var a=e();if(Oa){Ln(!0);try{e()}finally{Ln(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=Ct();if(n!==void 0){var i=n(t);if(Oa){Ln(!0);try{n(t)}finally{Ln(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=hv.bind(null,de,e),[a.memoizedState,e]},useRef:function(e){var t=Ct();return e={current:e},t.memoizedState=e},useState:function(e){e=ec(e);var t=e.queue,n=Eh.bind(null,de,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ac,useDeferredValue:function(e,t){var n=Ct();return lc(n,e,t)},useTransition:function(){var e=ec(!1);return e=vh.bind(null,de,e.queue,!0,!1),Ct().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=de,i=Ct();if(Se){if(n===void 0)throw Error(u(407));n=n()}else{if(n=t(),Le===null)throw Error(u(349));(ve&127)!==0||Kd(a,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,sh(Wd.bind(null,a,o,e),[e]),a.flags|=2048,yl(9,{destroy:void 0},Jd.bind(null,a,o,n,t),null),n},useId:function(){var e=Ct(),t=Le.identifierPrefix;if(Se){var n=pn,a=hn;n=(a&~(1<<32-Nt(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Do++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=ov++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:oc,useFormState:ih,useActionState:ih,useOptimistic:function(e){var t=Ct();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=rc.bind(null,de,!0,n),n.dispatch=t,[e,t]},useMemoCache:Fu,useCacheRefresh:function(){return Ct().memoizedState=dv.bind(null,de)},useEffectEvent:function(e){var t=Ct(),n={impl:e};return t.memoizedState=n,function(){if(($e&2)!==0)throw Error(u(440));return n.impl.apply(void 0,arguments)}}},uc={readContext:mt,use:No,useCallback:mh,useContext:mt,useEffect:nc,useImperativeHandle:gh,useInsertionEffect:dh,useLayoutEffect:hh,useMemo:yh,useReducer:jo,useRef:ch,useState:function(){return jo(Mn)},useDebugValue:ac,useDeferredValue:function(e,t){var n=Pe();return bh(n,ke.memoizedState,e,t)},useTransition:function(){var e=jo(Mn)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:gi(e),t]},useSyncExternalStore:Zd,useId:Ch,useHostTransitionStatus:oc,useFormState:oh,useActionState:oh,useOptimistic:function(e,t){var n=Pe();return Pd(n,ke,e,t)},useMemoCache:Fu,useCacheRefresh:Th};uc.useEffectEvent=fh;var wh={readContext:mt,use:No,useCallback:mh,useContext:mt,useEffect:nc,useImperativeHandle:gh,useInsertionEffect:dh,useLayoutEffect:hh,useMemo:yh,useReducer:Pu,useRef:ch,useState:function(){return Pu(Mn)},useDebugValue:ac,useDeferredValue:function(e,t){var n=Pe();return ke===null?lc(n,e,t):bh(n,ke.memoizedState,e,t)},useTransition:function(){var e=Pu(Mn)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:gi(e),t]},useSyncExternalStore:Zd,useId:Ch,useHostTransitionStatus:oc,useFormState:uh,useActionState:uh,useOptimistic:function(e,t){var n=Pe();return ke!==null?Pd(n,ke,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Fu,useCacheRefresh:Th};wh.useEffectEvent=fh;function cc(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:z({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var sc={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Yt(),i=Jn(a);i.payload=t,n!=null&&(i.callback=n),t=Wn(e,i,a),t!==null&&($t(t,e,a),fi(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Yt(),i=Jn(a);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Wn(e,i,a),t!==null&&($t(t,e,a),fi(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Yt(),a=Jn(n);a.tag=2,t!=null&&(a.callback=t),t=Wn(e,a,n),t!==null&&($t(t,e,n),fi(t,e,n))}};function _h(e,t,n,a,i,o,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,o,c):t.prototype&&t.prototype.isPureReactComponent?!ai(n,a)||!ai(i,o):!0}function Oh(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&sc.enqueueReplaceState(t,t.state,null)}function $a(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=z({},n));for(var i in e)n[i]===void 0&&(n[i]=e[i])}return n}function $h(e){yo(e)}function Bh(e){console.error(e)}function Dh(e){yo(e)}function qo(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Rh(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function fc(e,t,n){return n=Jn(n),n.tag=3,n.payload={element:null},n.callback=function(){qo(e,t)},n}function Nh(e){return e=Jn(e),e.tag=3,e}function jh(e,t,n,a){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var o=a.value;e.payload=function(){return i(o)},e.callback=function(){Rh(t,n,a)}}var c=n.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){Rh(t,n,a),typeof i!="function"&&(na===null?na=new Set([this]):na.add(this));var f=a.stack;this.componentDidCatch(a.value,{componentStack:f!==null?f:""})})}function pv(e,t,n,a,i){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&cl(t,n,i,!0),n=kt.current,n!==null){switch(n.tag){case 31:case 13:return Ft===null?Io():n.alternate===null&&Fe===0&&(Fe=3),n.flags&=-257,n.flags|=65536,n.lanes=i,a===Mo?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),jc(e,a,i)),!1;case 22:return n.flags|=65536,a===Mo?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),jc(e,a,i)),!1}throw Error(u(435,n.tag))}return jc(e,a,i),Io(),!1}if(Se)return t=kt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,a!==Ou&&(e=Error(u(422),{cause:a}),oi(Zt(e,n)))):(a!==Ou&&(t=Error(u(423),{cause:a}),oi(Zt(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,a=Zt(a,n),i=fc(e.stateNode,a,i),Lu(e,i),Fe!==4&&(Fe=2)),!1;var o=Error(u(520),{cause:a});if(o=Zt(o,n),zi===null?zi=[o]:zi.push(o),Fe!==4&&(Fe=2),t===null)return!0;a=Zt(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=fc(n.stateNode,a,e),Lu(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(na===null||!na.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,i=Nh(i),jh(i,e,n,a),Lu(n,i),!1}n=n.return}while(n!==null);return!1}var dc=Error(u(461)),lt=!1;function yt(e,t,n,a){t.child=e===null?qd(t,null,n,a):_a(t,e.child,n,a)}function Hh(e,t,n,a,i){n=n.render;var o=t.ref;if("ref"in a){var c={};for(var f in a)f!=="ref"&&(c[f]=a[f])}else c=a;return za(t),a=Zu(e,t,n,c,o,i),f=Ku(),e!==null&&!lt?(Ju(e,t,i),wn(e,t,i)):(Se&&f&&wu(t),t.flags|=1,yt(e,t,a,i),t.child)}function kh(e,t,n,a,i){if(e===null){var o=n.type;return typeof o=="function"&&!zu(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,Uh(e,t,o,a,i)):(e=So(n.type,null,a,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!xc(e,i)){var c=o.memoizedProps;if(n=n.compare,n=n!==null?n:ai,n(c,a)&&e.ref===t.ref)return wn(e,t,i)}return t.flags|=1,e=Cn(o,a),e.ref=t.ref,e.return=t,t.child=e}function Uh(e,t,n,a,i){if(e!==null){var o=e.memoizedProps;if(ai(o,a)&&e.ref===t.ref)if(lt=!1,t.pendingProps=a=o,xc(e,i))(e.flags&131072)!==0&&(lt=!0);else return t.lanes=e.lanes,wn(e,t,i)}return hc(e,t,n,a,i)}function qh(e,t,n,a){var i=a.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,e!==null){for(a=t.child=e.child,i=0;a!==null;)i=i|a.lanes|a.childLanes,a=a.sibling;a=i&~o}else a=0,t.child=null;return Lh(e,t,o,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&zo(t,o!==null?o.cachePool:null),o!==null?Gd(t,o):Gu(),Qd(t);else return a=t.lanes=536870912,Lh(e,t,o!==null?o.baseLanes|n:n,n,a)}else o!==null?(zo(t,o.cachePool),Gd(t,o),In(),t.memoizedState=null):(e!==null&&zo(t,null),Gu(),In());return yt(e,t,i,n),t.child}function bi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Lh(e,t,n,a,i){var o=Hu();return o=o===null?null:{parent:nt._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&zo(t,null),Gu(),Qd(t),e!==null&&cl(e,t,a,!0),t.childLanes=i,null}function Lo(e,t){return t=Go({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Yh(e,t,n){return _a(t,e.child,null,n),e=Lo(t,t.pendingProps),e.flags|=2,Ut(t),t.memoizedState=null,e}function gv(e,t,n){var a=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Se){if(a.mode==="hidden")return e=Lo(t,a),t.lanes=536870912,bi(null,e);if(Xu(t),(e=Ge)?(e=eg(e,Wt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Qn!==null?{id:hn,overflow:pn}:null,retryLane:536870912,hydrationErrors:null},n=zd(e),n.return=t,t.child=n,gt=t,Ge=null)):e=null,e===null)throw Vn(t);return t.lanes=536870912,null}return Lo(t,a)}var o=e.memoizedState;if(o!==null){var c=o.dehydrated;if(Xu(t),i)if(t.flags&256)t.flags&=-257,t=Yh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(lt||cl(e,t,n,!1),i=(n&e.childLanes)!==0,lt||i){if(a=Le,a!==null&&(c=Bf(a,n),c!==0&&c!==o.retryLane))throw o.retryLane=c,Sa(e,c),$t(a,e,c),dc;Io(),t=Yh(e,t,n)}else e=o.treeContext,Ge=It(c.nextSibling),gt=t,Se=!0,Xn=null,Wt=!1,e!==null&&wd(t,e),t=Lo(t,a),t.flags|=4096;return t}return e=Cn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Yo(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(u(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function hc(e,t,n,a,i){return za(t),n=Zu(e,t,n,a,void 0,i),a=Ku(),e!==null&&!lt?(Ju(e,t,i),wn(e,t,i)):(Se&&a&&wu(t),t.flags|=1,yt(e,t,n,i),t.child)}function Gh(e,t,n,a,i,o){return za(t),t.updateQueue=null,n=Vd(t,a,n,i),Xd(e),a=Ku(),e!==null&&!lt?(Ju(e,t,o),wn(e,t,o)):(Se&&a&&wu(t),t.flags|=1,yt(e,t,n,o),t.child)}function Qh(e,t,n,a,i){if(za(t),t.stateNode===null){var o=il,c=n.contextType;typeof c=="object"&&c!==null&&(o=mt(c)),o=new n(a,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=sc,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=a,o.state=t.memoizedState,o.refs={},Uu(t),c=n.contextType,o.context=typeof c=="object"&&c!==null?mt(c):il,o.state=t.memoizedState,c=n.getDerivedStateFromProps,typeof c=="function"&&(cc(t,n,c,a),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(c=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),c!==o.state&&sc.enqueueReplaceState(o,o.state,null),hi(t,a,o,i),di(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){o=t.stateNode;var f=t.memoizedProps,m=$a(n,f);o.props=m;var w=o.context,B=n.contextType;c=il,typeof B=="object"&&B!==null&&(c=mt(B));var H=n.getDerivedStateFromProps;B=typeof H=="function"||typeof o.getSnapshotBeforeUpdate=="function",f=t.pendingProps!==f,B||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(f||w!==c)&&Oh(t,o,a,c),Kn=!1;var _=t.memoizedState;o.state=_,hi(t,a,o,i),di(),w=t.memoizedState,f||_!==w||Kn?(typeof H=="function"&&(cc(t,n,H,a),w=t.memoizedState),(m=Kn||_h(t,n,m,a,_,w,c))?(B||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=w),o.props=a,o.state=w,o.context=c,a=m):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{o=t.stateNode,qu(e,t),c=t.memoizedProps,B=$a(n,c),o.props=B,H=t.pendingProps,_=o.context,w=n.contextType,m=il,typeof w=="object"&&w!==null&&(m=mt(w)),f=n.getDerivedStateFromProps,(w=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(c!==H||_!==m)&&Oh(t,o,a,m),Kn=!1,_=t.memoizedState,o.state=_,hi(t,a,o,i),di();var O=t.memoizedState;c!==H||_!==O||Kn||e!==null&&e.dependencies!==null&&To(e.dependencies)?(typeof f=="function"&&(cc(t,n,f,a),O=t.memoizedState),(B=Kn||_h(t,n,B,a,_,O,m)||e!==null&&e.dependencies!==null&&To(e.dependencies))?(w||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(a,O,m),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(a,O,m)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||c===e.memoizedProps&&_===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&_===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=O),o.props=a,o.state=O,o.context=m,a=B):(typeof o.componentDidUpdate!="function"||c===e.memoizedProps&&_===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&_===e.memoizedState||(t.flags|=1024),a=!1)}return o=a,Yo(e,t),a=(t.flags&128)!==0,o||a?(o=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&a?(t.child=_a(t,e.child,null,i),t.child=_a(t,null,n,i)):yt(e,t,n,i),t.memoizedState=o.state,e=t.child):e=wn(e,t,i),e}function Xh(e,t,n,a){return Ta(),t.flags|=256,yt(e,t,n,a),t.child}var pc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function gc(e){return{baseLanes:e,cachePool:Rd()}}function mc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Lt),e}function Vh(e,t,n){var a=t.pendingProps,i=!1,o=(t.flags&128)!==0,c;if((c=o)||(c=e!==null&&e.memoizedState===null?!1:(Ie.current&2)!==0),c&&(i=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(Se){if(i?Fn(t):In(),(e=Ge)?(e=eg(e,Wt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Qn!==null?{id:hn,overflow:pn}:null,retryLane:536870912,hydrationErrors:null},n=zd(e),n.return=t,t.child=n,gt=t,Ge=null)):e=null,e===null)throw Vn(t);return Ic(e)?t.lanes=32:t.lanes=536870912,null}var f=a.children;return a=a.fallback,i?(In(),i=t.mode,f=Go({mode:"hidden",children:f},i),a=Ca(a,i,n,null),f.return=t,a.return=t,f.sibling=a,t.child=f,a=t.child,a.memoizedState=gc(n),a.childLanes=mc(e,c,n),t.memoizedState=pc,bi(null,a)):(Fn(t),yc(t,f))}var m=e.memoizedState;if(m!==null&&(f=m.dehydrated,f!==null)){if(o)t.flags&256?(Fn(t),t.flags&=-257,t=bc(e,t,n)):t.memoizedState!==null?(In(),t.child=e.child,t.flags|=128,t=null):(In(),f=a.fallback,i=t.mode,a=Go({mode:"visible",children:a.children},i),f=Ca(f,i,n,null),f.flags|=2,a.return=t,f.return=t,a.sibling=f,t.child=a,_a(t,e.child,null,n),a=t.child,a.memoizedState=gc(n),a.childLanes=mc(e,c,n),t.memoizedState=pc,t=bi(null,a));else if(Fn(t),Ic(f)){if(c=f.nextSibling&&f.nextSibling.dataset,c)var w=c.dgst;c=w,a=Error(u(419)),a.stack="",a.digest=c,oi({value:a,source:null,stack:null}),t=bc(e,t,n)}else if(lt||cl(e,t,n,!1),c=(n&e.childLanes)!==0,lt||c){if(c=Le,c!==null&&(a=Bf(c,n),a!==0&&a!==m.retryLane))throw m.retryLane=a,Sa(e,a),$t(c,e,a),dc;Fc(f)||Io(),t=bc(e,t,n)}else Fc(f)?(t.flags|=192,t.child=e.child,t=null):(e=m.treeContext,Ge=It(f.nextSibling),gt=t,Se=!0,Xn=null,Wt=!1,e!==null&&wd(t,e),t=yc(t,a.children),t.flags|=4096);return t}return i?(In(),f=a.fallback,i=t.mode,m=e.child,w=m.sibling,a=Cn(m,{mode:"hidden",children:a.children}),a.subtreeFlags=m.subtreeFlags&65011712,w!==null?f=Cn(w,f):(f=Ca(f,i,n,null),f.flags|=2),f.return=t,a.return=t,a.sibling=f,t.child=a,bi(null,a),a=t.child,f=e.child.memoizedState,f===null?f=gc(n):(i=f.cachePool,i!==null?(m=nt._currentValue,i=i.parent!==m?{parent:m,pool:m}:i):i=Rd(),f={baseLanes:f.baseLanes|n,cachePool:i}),a.memoizedState=f,a.childLanes=mc(e,c,n),t.memoizedState=pc,bi(e.child,a)):(Fn(t),n=e.child,e=n.sibling,n=Cn(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=n,t.memoizedState=null,n)}function yc(e,t){return t=Go({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Go(e,t){return e=Ht(22,e,null,t),e.lanes=0,e}function bc(e,t,n){return _a(t,e.child,null,n),e=yc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Zh(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Du(e.return,t,n)}function vc(e,t,n,a,i,o){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:i,treeForkCount:o}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=n,c.tailMode=i,c.treeForkCount=o)}function Kh(e,t,n){var a=t.pendingProps,i=a.revealOrder,o=a.tail;a=a.children;var c=Ie.current,f=(c&2)!==0;if(f?(c=c&1|2,t.flags|=128):c&=1,W(Ie,c),yt(e,t,a,n),a=Se?ii:0,!f&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Zh(e,n,t);else if(e.tag===19)Zh(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}switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&$o(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),vc(t,!1,i,n,o,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&$o(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}vc(t,!0,n,null,o,a);break;case"together":vc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function wn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ta|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(cl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,n=Cn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Cn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function xc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&To(e)))}function mv(e,t,n){switch(t.tag){case 3:ht(t,t.stateNode.containerInfo),Zn(t,nt,e.memoizedState.cache),Ta();break;case 27:case 5:ga(t);break;case 4:ht(t,t.stateNode.containerInfo);break;case 10:Zn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Xu(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Fn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Vh(e,t,n):(Fn(t),e=wn(e,t,n),e!==null?e.sibling:null);Fn(t);break;case 19:var i=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(cl(e,t,n,!1),a=(n&t.childLanes)!==0),i){if(a)return Kh(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),W(Ie,Ie.current),a)break;return null;case 22:return t.lanes=0,qh(e,t,n,t.pendingProps);case 24:Zn(t,nt,e.memoizedState.cache)}return wn(e,t,n)}function Jh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)lt=!0;else{if(!xc(e,n)&&(t.flags&128)===0)return lt=!1,mv(e,t,n);lt=(e.flags&131072)!==0}else lt=!1,Se&&(t.flags&1048576)!==0&&Md(t,ii,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Ma(t.elementType),t.type=e,typeof e=="function")zu(e)?(a=$a(e,a),t.tag=1,t=Qh(null,t,e,a,n)):(t.tag=0,t=hc(null,t,e,a,n));else{if(e!=null){var i=e.$$typeof;if(i===re){t.tag=11,t=Hh(null,t,e,a,n);break e}else if(i===G){t.tag=14,t=kh(null,t,e,a,n);break e}}throw t=tt(e)||e,Error(u(306,t,""))}}return t;case 0:return hc(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,i=$a(a,t.pendingProps),Qh(e,t,a,i,n);case 3:e:{if(ht(t,t.stateNode.containerInfo),e===null)throw Error(u(387));a=t.pendingProps;var o=t.memoizedState;i=o.element,qu(e,t),hi(t,a,null,n);var c=t.memoizedState;if(a=c.cache,Zn(t,nt,a),a!==o.cache&&Ru(t,[nt],n,!0),di(),a=c.element,o.isDehydrated)if(o={element:a,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Xh(e,t,a,n);break e}else if(a!==i){i=Zt(Error(u(424)),t),oi(i),t=Xh(e,t,a,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ge=It(e.firstChild),gt=t,Se=!0,Xn=null,Wt=!0,n=qd(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ta(),a===i){t=wn(e,t,n);break e}yt(e,t,a,n)}t=t.child}return t;case 26:return Yo(e,t),e===null?(n=og(t.type,null,t.pendingProps,null))?t.memoizedState=n:Se||(n=t.type,e=t.pendingProps,a=ir(ue.current).createElement(n),a[pt]=t,a[zt]=e,bt(a,n,e),ct(a),t.stateNode=a):t.memoizedState=og(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ga(t),e===null&&Se&&(a=t.stateNode=ag(t.type,t.pendingProps,ue.current),gt=t,Wt=!0,i=Ge,oa(t.type)?(Pc=i,Ge=It(a.firstChild)):Ge=i),yt(e,t,t.pendingProps.children,n),Yo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Se&&((i=a=Ge)&&(a=Vv(a,t.type,t.pendingProps,Wt),a!==null?(t.stateNode=a,gt=t,Ge=It(a.firstChild),Wt=!1,i=!0):i=!1),i||Vn(t)),ga(t),i=t.type,o=t.pendingProps,c=e!==null?e.memoizedProps:null,a=o.children,Kc(i,o)?a=null:c!==null&&Kc(i,c)&&(t.flags|=32),t.memoizedState!==null&&(i=Zu(e,t,rv,null,null,n),Di._currentValue=i),Yo(e,t),yt(e,t,a,n),t.child;case 6:return e===null&&Se&&((e=n=Ge)&&(n=Zv(n,t.pendingProps,Wt),n!==null?(t.stateNode=n,gt=t,Ge=null,e=!0):e=!1),e||Vn(t)),null;case 13:return Vh(e,t,n);case 4:return ht(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=_a(t,null,a,n):yt(e,t,a,n),t.child;case 11:return Hh(e,t,t.type,t.pendingProps,n);case 7:return yt(e,t,t.pendingProps,n),t.child;case 8:return yt(e,t,t.pendingProps.children,n),t.child;case 12:return yt(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,Zn(t,t.type,a.value),yt(e,t,a.children,n),t.child;case 9:return i=t.type._context,a=t.pendingProps.children,za(t),i=mt(i),a=a(i),t.flags|=1,yt(e,t,a,n),t.child;case 14:return kh(e,t,t.type,t.pendingProps,n);case 15:return Uh(e,t,t.type,t.pendingProps,n);case 19:return Kh(e,t,n);case 31:return gv(e,t,n);case 22:return qh(e,t,n,t.pendingProps);case 24:return za(t),a=mt(nt),e===null?(i=Hu(),i===null&&(i=Le,o=Nu(),i.pooledCache=o,o.refCount++,o!==null&&(i.pooledCacheLanes|=n),i=o),t.memoizedState={parent:a,cache:i},Uu(t),Zn(t,nt,i)):((e.lanes&n)!==0&&(qu(e,t),hi(t,null,null,n),di()),i=e.memoizedState,o=t.memoizedState,i.parent!==a?(i={parent:a,cache:a},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Zn(t,nt,a)):(a=o.cache,Zn(t,nt,a),a!==i.cache&&Ru(t,[nt],n,!0))),yt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function _n(e){e.flags|=4}function Sc(e,t,n,a,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Cp())e.flags|=8192;else throw wa=Mo,ku}else e.flags&=-16777217}function Wh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!fg(t))if(Cp())e.flags|=8192;else throw wa=Mo,ku}function Qo(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?_f():536870912,e.lanes|=t,Sl|=t)}function vi(e,t){if(!Se)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 a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags&65011712,a|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags,a|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function yv(e,t,n){var a=t.pendingProps;switch(_u(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qe(t),null;case 1:return Qe(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),zn(nt),Ze(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ul(t)?_n(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,$u())),Qe(t),null;case 26:var i=t.type,o=t.memoizedState;return e===null?(_n(t),o!==null?(Qe(t),Wh(t,o)):(Qe(t),Sc(t,i,null,a,n))):o?o!==e.memoizedState?(_n(t),Qe(t),Wh(t,o)):(Qe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&_n(t),Qe(t),Sc(t,i,e,a,n)),null;case 27:if(Qa(t),n=ue.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&_n(t);else{if(!a){if(t.stateNode===null)throw Error(u(166));return Qe(t),null}e=I.current,ul(t)?_d(t):(e=ag(i,a,n),t.stateNode=e,_n(t))}return Qe(t),null;case 5:if(Qa(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&_n(t);else{if(!a){if(t.stateNode===null)throw Error(u(166));return Qe(t),null}if(o=I.current,ul(t))_d(t);else{var c=ir(ue.current);switch(o){case 1:o=c.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:o=c.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":o=c.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":o=c.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":o=c.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof a.is=="string"?c.createElement("select",{is:a.is}):c.createElement("select"),a.multiple?o.multiple=!0:a.size&&(o.size=a.size);break;default:o=typeof a.is=="string"?c.createElement(i,{is:a.is}):c.createElement(i)}}o[pt]=t,o[zt]=a;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)o.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=o;e:switch(bt(o,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&_n(t)}}return Qe(t),Sc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&_n(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=ue.current,ul(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,i=gt,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[pt]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Vp(e.nodeValue,n)),e||Vn(t,!0)}else e=ir(e).createTextNode(a),e[pt]=t,t.stateNode=e}return Qe(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=ul(t),n!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[pt]=t}else Ta(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Qe(t),e=!1}else n=$u(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Ut(t),t):(Ut(t),null);if((t.flags&128)!==0)throw Error(u(558))}return Qe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=ul(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(u(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));i[pt]=t}else Ta(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Qe(t),i=!1}else i=$u(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Ut(t),t):(Ut(t),null)}return Ut(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==i&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Qo(t,t.updateQueue),Qe(t),null);case 4:return Ze(),e===null&&Gc(t.stateNode.containerInfo),Qe(t),null;case 10:return zn(t.type),Qe(t),null;case 19:if(j(Ie),a=t.memoizedState,a===null)return Qe(t),null;if(i=(t.flags&128)!==0,o=a.rendering,o===null)if(i)vi(a,!1);else{if(Fe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=$o(e),o!==null){for(t.flags|=128,vi(a,!1),e=o.updateQueue,t.updateQueue=e,Qo(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Ed(n,e),n=n.sibling;return W(Ie,Ie.current&1|2),Se&&Tn(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Re()>Jo&&(t.flags|=128,i=!0,vi(a,!1),t.lanes=4194304)}else{if(!i)if(e=$o(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Qo(t,e),vi(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Se)return Qe(t),null}else 2*Re()-a.renderingStartTime>Jo&&n!==536870912&&(t.flags|=128,i=!0,vi(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(e=a.last,e!==null?e.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Re(),e.sibling=null,n=Ie.current,W(Ie,i?n&1|2:n&1),Se&&Tn(t,a.treeForkCount),e):(Qe(t),null);case 22:case 23:return Ut(t),Qu(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(Qe(t),t.subtreeFlags&6&&(t.flags|=8192)):Qe(t),n=t.updateQueue,n!==null&&Qo(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&j(Aa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),zn(nt),Qe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function bv(e,t){switch(_u(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return zn(nt),Ze(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Qa(t),null;case 31:if(t.memoizedState!==null){if(Ut(t),t.alternate===null)throw Error(u(340));Ta()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ut(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));Ta()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return j(Ie),null;case 4:return Ze(),null;case 10:return zn(t.type),null;case 22:case 23:return Ut(t),Qu(),e!==null&&j(Aa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return zn(nt),null;case 25:return null;default:return null}}function Fh(e,t){switch(_u(t),t.tag){case 3:zn(nt),Ze();break;case 26:case 27:case 5:Qa(t);break;case 4:Ze();break;case 31:t.memoizedState!==null&&Ut(t);break;case 13:Ut(t);break;case 19:j(Ie);break;case 10:zn(t.type);break;case 22:case 23:Ut(t),Qu(),e!==null&&j(Aa);break;case 24:zn(nt)}}function xi(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&e)===e){a=void 0;var o=n.create,c=n.inst;a=o(),c.destroy=a}n=n.next}while(n!==i)}}catch(f){je(t,t.return,f)}}function Pn(e,t,n){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var o=i.next;a=o;do{if((a.tag&e)===e){var c=a.inst,f=c.destroy;if(f!==void 0){c.destroy=void 0,i=t;var m=n,w=f;try{w()}catch(B){je(i,m,B)}}}a=a.next}while(a!==o)}}catch(B){je(t,t.return,B)}}function Ih(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Yd(t,n)}catch(a){je(e,e.return,a)}}}function Ph(e,t,n){n.props=$a(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){je(e,t,a)}}function Si(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(i){je(e,t,i)}}function gn(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(i){je(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){je(e,t,i)}else n.current=null}function ep(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(i){je(e,e.return,i)}}function Cc(e,t,n){try{var a=e.stateNode;qv(a,e.type,n,t),a[zt]=t}catch(i){je(e,e.return,i)}}function tp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&oa(e.type)||e.tag===4}function Tc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||tp(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.tag===27&&oa(e.type)||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 Ec(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=xn));else if(a!==4&&(a===27&&oa(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Ec(e,t,n),e=e.sibling;e!==null;)Ec(e,t,n),e=e.sibling}function Xo(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&oa(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Xo(e,t,n),e=e.sibling;e!==null;)Xo(e,t,n),e=e.sibling}function np(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);bt(t,a,n),t[pt]=e,t[zt]=n}catch(o){je(e,e.return,o)}}var On=!1,it=!1,zc=!1,ap=typeof WeakSet=="function"?WeakSet:Set,st=null;function vv(e,t){if(e=e.containerInfo,Vc=dr,e=gd(e),bu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var i=a.anchorOffset,o=a.focusNode;a=a.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var c=0,f=-1,m=-1,w=0,B=0,H=e,_=null;t:for(;;){for(var O;H!==n||i!==0&&H.nodeType!==3||(f=c+i),H!==o||a!==0&&H.nodeType!==3||(m=c+a),H.nodeType===3&&(c+=H.nodeValue.length),(O=H.firstChild)!==null;)_=H,H=O;for(;;){if(H===e)break t;if(_===n&&++w===i&&(f=c),_===o&&++B===a&&(m=c),(O=H.nextSibling)!==null)break;H=_,_=H.parentNode}H=O}n=f===-1||m===-1?null:{start:f,end:m}}else n=null}n=n||{start:0,end:0}}else n=null;for(Zc={focusedElem:e,selectionRange:n},dr=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,o=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,n=t,i=o.memoizedProps,o=o.memoizedState,a=n.stateNode;try{var F=$a(n.type,i);e=a.getSnapshotBeforeUpdate(F,o),a.__reactInternalSnapshotBeforeUpdate=e}catch(ie){je(n,n.return,ie)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Wc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Wc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(u(163))}if(e=t.sibling,e!==null){e.return=t.return,st=e;break}st=t.return}}function lp(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Bn(e,n),a&4&&xi(5,n);break;case 1:if(Bn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(c){je(n,n.return,c)}else{var i=$a(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){je(n,n.return,c)}}a&64&&Ih(n),a&512&&Si(n,n.return);break;case 3:if(Bn(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Yd(e,t)}catch(c){je(n,n.return,c)}}break;case 27:t===null&&a&4&&np(n);case 26:case 5:Bn(e,n),t===null&&a&4&&ep(n),a&512&&Si(n,n.return);break;case 12:Bn(e,n);break;case 31:Bn(e,n),a&4&&rp(e,n);break;case 13:Bn(e,n),a&4&&up(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=wv.bind(null,n),Kv(e,n))));break;case 22:if(a=n.memoizedState!==null||On,!a){t=t!==null&&t.memoizedState!==null||it,i=On;var o=it;On=a,(it=t)&&!o?Dn(e,n,(n.subtreeFlags&8772)!==0):Bn(e,n),On=i,it=o}break;case 30:break;default:Bn(e,n)}}function ip(e){var t=e.alternate;t!==null&&(e.alternate=null,ip(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&tu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ve=null,Mt=!1;function $n(e,t,n){for(n=n.child;n!==null;)op(e,t,n),n=n.sibling}function op(e,t,n){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount(Xl,n)}catch{}switch(n.tag){case 26:it||gn(n,t),$n(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:it||gn(n,t);var a=Ve,i=Mt;oa(n.type)&&(Ve=n.stateNode,Mt=!1),$n(e,t,n),Oi(n.stateNode),Ve=a,Mt=i;break;case 5:it||gn(n,t);case 6:if(a=Ve,i=Mt,Ve=null,$n(e,t,n),Ve=a,Mt=i,Ve!==null)if(Mt)try{(Ve.nodeType===9?Ve.body:Ve.nodeName==="HTML"?Ve.ownerDocument.body:Ve).removeChild(n.stateNode)}catch(o){je(n,t,o)}else try{Ve.removeChild(n.stateNode)}catch(o){je(n,t,o)}break;case 18:Ve!==null&&(Mt?(e=Ve,Ip(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),_l(e)):Ip(Ve,n.stateNode));break;case 4:a=Ve,i=Mt,Ve=n.stateNode.containerInfo,Mt=!0,$n(e,t,n),Ve=a,Mt=i;break;case 0:case 11:case 14:case 15:Pn(2,n,t),it||Pn(4,n,t),$n(e,t,n);break;case 1:it||(gn(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Ph(n,t,a)),$n(e,t,n);break;case 21:$n(e,t,n);break;case 22:it=(a=it)||n.memoizedState!==null,$n(e,t,n),it=a;break;default:$n(e,t,n)}}function rp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{_l(e)}catch(n){je(t,t.return,n)}}}function up(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{_l(e)}catch(n){je(t,t.return,n)}}function xv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ap),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ap),t;default:throw Error(u(435,e.tag))}}function Vo(e,t){var n=xv(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var i=_v.bind(null,e,a);a.then(i,i)}})}function wt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var i=n[a],o=e,c=t,f=c;e:for(;f!==null;){switch(f.tag){case 27:if(oa(f.type)){Ve=f.stateNode,Mt=!1;break e}break;case 5:Ve=f.stateNode,Mt=!1;break e;case 3:case 4:Ve=f.stateNode.containerInfo,Mt=!0;break e}f=f.return}if(Ve===null)throw Error(u(160));op(o,c,i),Ve=null,Mt=!1,o=i.alternate,o!==null&&(o.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)cp(t,e),t=t.sibling}var on=null;function cp(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:wt(t,e),_t(e),a&4&&(Pn(3,e,e.return),xi(3,e),Pn(5,e,e.return));break;case 1:wt(t,e),_t(e),a&512&&(it||n===null||gn(n,n.return)),a&64&&On&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var i=on;if(wt(t,e),_t(e),a&512&&(it||n===null||gn(n,n.return)),a&4){var o=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(a){case"title":o=i.getElementsByTagName("title")[0],(!o||o[Kl]||o[pt]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=i.createElement(a),i.head.insertBefore(o,i.querySelector("head > title"))),bt(o,a,n),o[pt]=e,ct(o),a=o;break e;case"link":var c=cg("link","href",i).get(a+(n.href||""));if(c){for(var f=0;f<c.length;f++)if(o=c[f],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){c.splice(f,1);break t}}o=i.createElement(a),bt(o,a,n),i.head.appendChild(o);break;case"meta":if(c=cg("meta","content",i).get(a+(n.content||""))){for(f=0;f<c.length;f++)if(o=c[f],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){c.splice(f,1);break t}}o=i.createElement(a),bt(o,a,n),i.head.appendChild(o);break;default:throw Error(u(468,a))}o[pt]=e,ct(o),a=o}e.stateNode=a}else sg(i,e.type,e.stateNode);else e.stateNode=ug(i,a,e.memoizedProps);else o!==a?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,a===null?sg(i,e.type,e.stateNode):ug(i,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Cc(e,e.memoizedProps,n.memoizedProps)}break;case 27:wt(t,e),_t(e),a&512&&(it||n===null||gn(n,n.return)),n!==null&&a&4&&Cc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(wt(t,e),_t(e),a&512&&(it||n===null||gn(n,n.return)),e.flags&32){i=e.stateNode;try{Ia(i,"")}catch(F){je(e,e.return,F)}}a&4&&e.stateNode!=null&&(i=e.memoizedProps,Cc(e,i,n!==null?n.memoizedProps:i)),a&1024&&(zc=!0);break;case 6:if(wt(t,e),_t(e),a&4){if(e.stateNode===null)throw Error(u(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(F){je(e,e.return,F)}}break;case 3:if(ur=null,i=on,on=or(t.containerInfo),wt(t,e),on=i,_t(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{_l(t.containerInfo)}catch(F){je(e,e.return,F)}zc&&(zc=!1,sp(e));break;case 4:a=on,on=or(e.stateNode.containerInfo),wt(t,e),_t(e),on=a;break;case 12:wt(t,e),_t(e);break;case 31:wt(t,e),_t(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Vo(e,a)));break;case 13:wt(t,e),_t(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Ko=Re()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Vo(e,a)));break;case 22:i=e.memoizedState!==null;var m=n!==null&&n.memoizedState!==null,w=On,B=it;if(On=w||i,it=B||m,wt(t,e),it=B,On=w,_t(e),a&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||m||On||it||Ba(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){m=n=t;try{if(o=m.stateNode,i)c=o.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{f=m.stateNode;var H=m.memoizedProps.style,_=H!=null&&H.hasOwnProperty("display")?H.display:null;f.style.display=_==null||typeof _=="boolean"?"":(""+_).trim()}}catch(F){je(m,m.return,F)}}}else if(t.tag===6){if(n===null){m=t;try{m.stateNode.nodeValue=i?"":m.memoizedProps}catch(F){je(m,m.return,F)}}}else if(t.tag===18){if(n===null){m=t;try{var O=m.stateNode;i?Pp(O,!0):Pp(m.stateNode,!1)}catch(F){je(m,m.return,F)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,Vo(e,n))));break;case 19:wt(t,e),_t(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Vo(e,a)));break;case 30:break;case 21:break;default:wt(t,e),_t(e)}}function _t(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(tp(a)){n=a;break}a=a.return}if(n==null)throw Error(u(160));switch(n.tag){case 27:var i=n.stateNode,o=Tc(e);Xo(e,o,i);break;case 5:var c=n.stateNode;n.flags&32&&(Ia(c,""),n.flags&=-33);var f=Tc(e);Xo(e,f,c);break;case 3:case 4:var m=n.stateNode.containerInfo,w=Tc(e);Ec(e,w,m);break;default:throw Error(u(161))}}catch(B){je(e,e.return,B)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function sp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;sp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Bn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)lp(e,t.alternate,t),t=t.sibling}function Ba(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Pn(4,t,t.return),Ba(t);break;case 1:gn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Ph(t,t.return,n),Ba(t);break;case 27:Oi(t.stateNode);case 26:case 5:gn(t,t.return),Ba(t);break;case 22:t.memoizedState===null&&Ba(t);break;case 30:Ba(t);break;default:Ba(t)}e=e.sibling}}function Dn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,i=e,o=t,c=o.flags;switch(o.tag){case 0:case 11:case 15:Dn(i,o,n),xi(4,o);break;case 1:if(Dn(i,o,n),a=o,i=a.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(w){je(a,a.return,w)}if(a=o,i=a.updateQueue,i!==null){var f=a.stateNode;try{var m=i.shared.hiddenCallbacks;if(m!==null)for(i.shared.hiddenCallbacks=null,i=0;i<m.length;i++)Ld(m[i],f)}catch(w){je(a,a.return,w)}}n&&c&64&&Ih(o),Si(o,o.return);break;case 27:np(o);case 26:case 5:Dn(i,o,n),n&&a===null&&c&4&&ep(o),Si(o,o.return);break;case 12:Dn(i,o,n);break;case 31:Dn(i,o,n),n&&c&4&&rp(i,o);break;case 13:Dn(i,o,n),n&&c&4&&up(i,o);break;case 22:o.memoizedState===null&&Dn(i,o,n),Si(o,o.return);break;case 30:break;default:Dn(i,o,n)}t=t.sibling}}function Ac(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ri(n))}function Mc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ri(e))}function rn(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)fp(e,t,n,a),t=t.sibling}function fp(e,t,n,a){var i=t.flags;switch(t.tag){case 0:case 11:case 15:rn(e,t,n,a),i&2048&&xi(9,t);break;case 1:rn(e,t,n,a);break;case 3:rn(e,t,n,a),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ri(e)));break;case 12:if(i&2048){rn(e,t,n,a),e=t.stateNode;try{var o=t.memoizedProps,c=o.id,f=o.onPostCommit;typeof f=="function"&&f(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(m){je(t,t.return,m)}}else rn(e,t,n,a);break;case 31:rn(e,t,n,a);break;case 13:rn(e,t,n,a);break;case 23:break;case 22:o=t.stateNode,c=t.alternate,t.memoizedState!==null?o._visibility&2?rn(e,t,n,a):Ci(e,t):o._visibility&2?rn(e,t,n,a):(o._visibility|=2,bl(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),i&2048&&Ac(c,t);break;case 24:rn(e,t,n,a),i&2048&&Mc(t.alternate,t);break;default:rn(e,t,n,a)}}function bl(e,t,n,a,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,c=t,f=n,m=a,w=c.flags;switch(c.tag){case 0:case 11:case 15:bl(o,c,f,m,i),xi(8,c);break;case 23:break;case 22:var B=c.stateNode;c.memoizedState!==null?B._visibility&2?bl(o,c,f,m,i):Ci(o,c):(B._visibility|=2,bl(o,c,f,m,i)),i&&w&2048&&Ac(c.alternate,c);break;case 24:bl(o,c,f,m,i),i&&w&2048&&Mc(c.alternate,c);break;default:bl(o,c,f,m,i)}t=t.sibling}}function Ci(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,i=a.flags;switch(a.tag){case 22:Ci(n,a),i&2048&&Ac(a.alternate,a);break;case 24:Ci(n,a),i&2048&&Mc(a.alternate,a);break;default:Ci(n,a)}t=t.sibling}}var Ti=8192;function vl(e,t,n){if(e.subtreeFlags&Ti)for(e=e.child;e!==null;)dp(e,t,n),e=e.sibling}function dp(e,t,n){switch(e.tag){case 26:vl(e,t,n),e.flags&Ti&&e.memoizedState!==null&&ox(n,on,e.memoizedState,e.memoizedProps);break;case 5:vl(e,t,n);break;case 3:case 4:var a=on;on=or(e.stateNode.containerInfo),vl(e,t,n),on=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Ti,Ti=16777216,vl(e,t,n),Ti=a):vl(e,t,n));break;default:vl(e,t,n)}}function hp(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ei(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];st=a,gp(a,e)}hp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)pp(e),e=e.sibling}function pp(e){switch(e.tag){case 0:case 11:case 15:Ei(e),e.flags&2048&&Pn(9,e,e.return);break;case 3:Ei(e);break;case 12:Ei(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Zo(e)):Ei(e);break;default:Ei(e)}}function Zo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];st=a,gp(a,e)}hp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Pn(8,t,t.return),Zo(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Zo(t));break;default:Zo(t)}e=e.sibling}}function gp(e,t){for(;st!==null;){var n=st;switch(n.tag){case 0:case 11:case 15:Pn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:ri(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,st=a;else e:for(n=e;st!==null;){a=st;var i=a.sibling,o=a.return;if(ip(a),a===n){st=null;break e}if(i!==null){i.return=o,st=i;break e}st=o}}}var Sv={getCacheForType:function(e){var t=mt(nt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return mt(nt).controller.signal}},Cv=typeof WeakMap=="function"?WeakMap:Map,$e=0,Le=null,ye=null,ve=0,Ne=0,qt=null,ea=!1,xl=!1,wc=!1,Rn=0,Fe=0,ta=0,Da=0,_c=0,Lt=0,Sl=0,zi=null,Ot=null,Oc=!1,Ko=0,mp=0,Jo=1/0,Wo=null,na=null,ot=0,aa=null,Cl=null,Nn=0,$c=0,Bc=null,yp=null,Ai=0,Dc=null;function Yt(){return($e&2)!==0&&ve!==0?ve&-ve:$.T!==null?Uc():Df()}function bp(){if(Lt===0)if((ve&536870912)===0||Se){var e=ao;ao<<=1,(ao&3932160)===0&&(ao=262144),Lt=e}else Lt=536870912;return e=kt.current,e!==null&&(e.flags|=32),Lt}function $t(e,t,n){(e===Le&&(Ne===2||Ne===9)||e.cancelPendingCommit!==null)&&(Tl(e,0),la(e,ve,Lt,!1)),Zl(e,n),(($e&2)===0||e!==Le)&&(e===Le&&(($e&2)===0&&(Da|=n),Fe===4&&la(e,ve,Lt,!1)),mn(e))}function vp(e,t,n){if(($e&6)!==0)throw Error(u(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Vl(e,t),i=a?zv(e,t):Nc(e,t,!0),o=a;do{if(i===0){xl&&!a&&la(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!Tv(n)){i=Nc(e,t,!1),o=!1;continue}if(i===2){if(o=t,e.errorRecoveryDisabledLanes&o)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var f=e;i=zi;var m=f.current.memoizedState.isDehydrated;if(m&&(Tl(f,c).flags|=256),c=Nc(f,c,!1),c!==2){if(wc&&!m){f.errorRecoveryDisabledLanes|=o,Da|=o,i=4;break e}o=Ot,Ot=i,o!==null&&(Ot===null?Ot=o:Ot.push.apply(Ot,o))}i=c}if(o=!1,i!==2)continue}}if(i===1){Tl(e,0),la(e,t,0,!0);break}e:{switch(a=e,o=i,o){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:la(a,t,Lt,!ea);break e;case 2:Ot=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(i=Ko+300-Re(),10<i)){if(la(a,t,Lt,!ea),io(a,0,!0)!==0)break e;Nn=t,a.timeoutHandle=Wp(xp.bind(null,a,n,Ot,Wo,Oc,t,Lt,Da,Sl,ea,o,"Throttled",-0,0),i);break e}xp(a,n,Ot,Wo,Oc,t,Lt,Da,Sl,ea,o,null,-0,0)}}break}while(!0);mn(e)}function xp(e,t,n,a,i,o,c,f,m,w,B,H,_,O){if(e.timeoutHandle=-1,H=t.subtreeFlags,H&8192||(H&16785408)===16785408){H={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:xn},dp(t,o,H);var F=(o&62914560)===o?Ko-Re():(o&4194048)===o?mp-Re():0;if(F=rx(H,F),F!==null){Nn=o,e.cancelPendingCommit=F(wp.bind(null,e,t,o,n,a,i,c,f,m,B,H,null,_,O)),la(e,o,c,!w);return}}wp(e,t,o,n,a,i,c,f,m)}function Tv(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var i=n[a],o=i.getSnapshot;i=i.value;try{if(!jt(o(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function la(e,t,n,a){t&=~_c,t&=~Da,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var i=t;0<i;){var o=31-Nt(i),c=1<<o;a[o]=-1,i&=~c}n!==0&&Of(e,n,t)}function Fo(){return($e&6)===0?(Mi(0),!1):!0}function Rc(){if(ye!==null){if(Ne===0)var e=ye.return;else e=ye,En=Ea=null,Wu(e),hl=null,ci=0,e=ye;for(;e!==null;)Fh(e.alternate,e),e=e.return;ye=null}}function Tl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Gv(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Nn=0,Rc(),Le=e,ye=n=Cn(e.current,null),ve=t,Ne=0,qt=null,ea=!1,xl=Vl(e,t),wc=!1,Sl=Lt=_c=Da=ta=Fe=0,Ot=zi=null,Oc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var i=31-Nt(a),o=1<<i;t|=e[i],a&=~o}return Rn=t,bo(),n}function Sp(e,t){de=null,$.H=yi,t===dl||t===Ao?(t=Hd(),Ne=3):t===ku?(t=Hd(),Ne=4):Ne=t===dc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,qt=t,ye===null&&(Fe=1,qo(e,Zt(t,e.current)))}function Cp(){var e=kt.current;return e===null?!0:(ve&4194048)===ve?Ft===null:(ve&62914560)===ve||(ve&536870912)!==0?e===Ft:!1}function Tp(){var e=$.H;return $.H=yi,e===null?yi:e}function Ep(){var e=$.A;return $.A=Sv,e}function Io(){Fe=4,ea||(ve&4194048)!==ve&&kt.current!==null||(xl=!0),(ta&134217727)===0&&(Da&134217727)===0||Le===null||la(Le,ve,Lt,!1)}function Nc(e,t,n){var a=$e;$e|=2;var i=Tp(),o=Ep();(Le!==e||ve!==t)&&(Wo=null,Tl(e,t)),t=!1;var c=Fe;e:do try{if(Ne!==0&&ye!==null){var f=ye,m=qt;switch(Ne){case 8:Rc(),c=6;break e;case 3:case 2:case 9:case 6:kt.current===null&&(t=!0);var w=Ne;if(Ne=0,qt=null,El(e,f,m,w),n&&xl){c=0;break e}break;default:w=Ne,Ne=0,qt=null,El(e,f,m,w)}}Ev(),c=Fe;break}catch(B){Sp(e,B)}while(!0);return t&&e.shellSuspendCounter++,En=Ea=null,$e=a,$.H=i,$.A=o,ye===null&&(Le=null,ve=0,bo()),c}function Ev(){for(;ye!==null;)zp(ye)}function zv(e,t){var n=$e;$e|=2;var a=Tp(),i=Ep();Le!==e||ve!==t?(Wo=null,Jo=Re()+500,Tl(e,t)):xl=Vl(e,t);e:do try{if(Ne!==0&&ye!==null){t=ye;var o=qt;t:switch(Ne){case 1:Ne=0,qt=null,El(e,t,o,1);break;case 2:case 9:if(Nd(o)){Ne=0,qt=null,Ap(t);break}t=function(){Ne!==2&&Ne!==9||Le!==e||(Ne=7),mn(e)},o.then(t,t);break e;case 3:Ne=7;break e;case 4:Ne=5;break e;case 7:Nd(o)?(Ne=0,qt=null,Ap(t)):(Ne=0,qt=null,El(e,t,o,7));break;case 5:var c=null;switch(ye.tag){case 26:c=ye.memoizedState;case 5:case 27:var f=ye;if(c?fg(c):f.stateNode.complete){Ne=0,qt=null;var m=f.sibling;if(m!==null)ye=m;else{var w=f.return;w!==null?(ye=w,Po(w)):ye=null}break t}}Ne=0,qt=null,El(e,t,o,5);break;case 6:Ne=0,qt=null,El(e,t,o,6);break;case 8:Rc(),Fe=6;break e;default:throw Error(u(462))}}Av();break}catch(B){Sp(e,B)}while(!0);return En=Ea=null,$.H=a,$.A=i,$e=n,ye!==null?0:(Le=null,ve=0,bo(),Fe)}function Av(){for(;ye!==null&&!Ye();)zp(ye)}function zp(e){var t=Jh(e.alternate,e,Rn);e.memoizedProps=e.pendingProps,t===null?Po(e):ye=t}function Ap(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Gh(n,t,t.pendingProps,t.type,void 0,ve);break;case 11:t=Gh(n,t,t.pendingProps,t.type.render,t.ref,ve);break;case 5:Wu(t);default:Fh(n,t),t=ye=Ed(t,Rn),t=Jh(n,t,Rn)}e.memoizedProps=e.pendingProps,t===null?Po(e):ye=t}function El(e,t,n,a){En=Ea=null,Wu(t),hl=null,ci=0;var i=t.return;try{if(pv(e,i,t,n,ve)){Fe=1,qo(e,Zt(n,e.current)),ye=null;return}}catch(o){if(i!==null)throw ye=i,o;Fe=1,qo(e,Zt(n,e.current)),ye=null;return}t.flags&32768?(Se||a===1?e=!0:xl||(ve&536870912)!==0?e=!1:(ea=e=!0,(a===2||a===9||a===3||a===6)&&(a=kt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Mp(t,e)):Po(t)}function Po(e){var t=e;do{if((t.flags&32768)!==0){Mp(t,ea);return}e=t.return;var n=yv(t.alternate,t,Rn);if(n!==null){ye=n;return}if(t=t.sibling,t!==null){ye=t;return}ye=t=e}while(t!==null);Fe===0&&(Fe=5)}function Mp(e,t){do{var n=bv(e.alternate,e);if(n!==null){n.flags&=32767,ye=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ye=e;return}ye=e=n}while(e!==null);Fe=6,ye=null}function wp(e,t,n,a,i,o,c,f,m){e.cancelPendingCommit=null;do er();while(ot!==0);if(($e&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(o=t.lanes|t.childLanes,o|=Tu,i1(e,n,o,c,f,m),e===Le&&(ye=Le=null,ve=0),Cl=t,aa=e,Nn=n,$c=o,Bc=i,yp=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Ov(to,function(){return Dp(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=$.T,$.T=null,i=J.p,J.p=2,c=$e,$e|=4;try{vv(e,t,n)}finally{$e=c,J.p=i,$.T=a}}ot=1,_p(),Op(),$p()}}function _p(){if(ot===1){ot=0;var e=aa,t=Cl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=$.T,$.T=null;var a=J.p;J.p=2;var i=$e;$e|=4;try{cp(t,e);var o=Zc,c=gd(e.containerInfo),f=o.focusedElem,m=o.selectionRange;if(c!==f&&f&&f.ownerDocument&&pd(f.ownerDocument.documentElement,f)){if(m!==null&&bu(f)){var w=m.start,B=m.end;if(B===void 0&&(B=w),"selectionStart"in f)f.selectionStart=w,f.selectionEnd=Math.min(B,f.value.length);else{var H=f.ownerDocument||document,_=H&&H.defaultView||window;if(_.getSelection){var O=_.getSelection(),F=f.textContent.length,ie=Math.min(m.start,F),qe=m.end===void 0?ie:Math.min(m.end,F);!O.extend&&ie>qe&&(c=qe,qe=ie,ie=c);var E=hd(f,ie),b=hd(f,qe);if(E&&b&&(O.rangeCount!==1||O.anchorNode!==E.node||O.anchorOffset!==E.offset||O.focusNode!==b.node||O.focusOffset!==b.offset)){var M=H.createRange();M.setStart(E.node,E.offset),O.removeAllRanges(),ie>qe?(O.addRange(M),O.extend(b.node,b.offset)):(M.setEnd(b.node,b.offset),O.addRange(M))}}}}for(H=[],O=f;O=O.parentNode;)O.nodeType===1&&H.push({element:O,left:O.scrollLeft,top:O.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<H.length;f++){var N=H[f];N.element.scrollLeft=N.left,N.element.scrollTop=N.top}}dr=!!Vc,Zc=Vc=null}finally{$e=i,J.p=a,$.T=n}}e.current=t,ot=2}}function Op(){if(ot===2){ot=0;var e=aa,t=Cl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=$.T,$.T=null;var a=J.p;J.p=2;var i=$e;$e|=4;try{lp(e,t.alternate,t)}finally{$e=i,J.p=a,$.T=n}}ot=3}}function $p(){if(ot===4||ot===3){ot=0,Je();var e=aa,t=Cl,n=Nn,a=yp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ot=5:(ot=0,Cl=aa=null,Bp(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(na=null),Pr(n),t=t.stateNode,Rt&&typeof Rt.onCommitFiberRoot=="function")try{Rt.onCommitFiberRoot(Xl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=$.T,i=J.p,J.p=2,$.T=null;try{for(var o=e.onRecoverableError,c=0;c<a.length;c++){var f=a[c];o(f.value,{componentStack:f.stack})}}finally{$.T=t,J.p=i}}(Nn&3)!==0&&er(),mn(e),i=e.pendingLanes,(n&261930)!==0&&(i&42)!==0?e===Dc?Ai++:(Ai=0,Dc=e):Ai=0,Mi(0)}}function Bp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ri(t)))}function er(){return _p(),Op(),$p(),Dp()}function Dp(){if(ot!==5)return!1;var e=aa,t=$c;$c=0;var n=Pr(Nn),a=$.T,i=J.p;try{J.p=32>n?32:n,$.T=null,n=Bc,Bc=null;var o=aa,c=Nn;if(ot=0,Cl=aa=null,Nn=0,($e&6)!==0)throw Error(u(331));var f=$e;if($e|=4,pp(o.current),fp(o,o.current,c,n),$e=f,Mi(0,!1),Rt&&typeof Rt.onPostCommitFiberRoot=="function")try{Rt.onPostCommitFiberRoot(Xl,o)}catch{}return!0}finally{J.p=i,$.T=a,Bp(e,t)}}function Rp(e,t,n){t=Zt(n,t),t=fc(e.stateNode,t,2),e=Wn(e,t,2),e!==null&&(Zl(e,2),mn(e))}function je(e,t,n){if(e.tag===3)Rp(e,e,n);else for(;t!==null;){if(t.tag===3){Rp(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(na===null||!na.has(a))){e=Zt(n,e),n=Nh(2),a=Wn(t,n,2),a!==null&&(jh(n,a,t,e),Zl(a,2),mn(a));break}}t=t.return}}function jc(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new Cv;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(n)||(wc=!0,i.add(n),e=Mv.bind(null,e,t,n),t.then(e,e))}function Mv(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Le===e&&(ve&n)===n&&(Fe===4||Fe===3&&(ve&62914560)===ve&&300>Re()-Ko?($e&2)===0&&Tl(e,0):_c|=n,Sl===ve&&(Sl=0)),mn(e)}function Np(e,t){t===0&&(t=_f()),e=Sa(e,t),e!==null&&(Zl(e,t),mn(e))}function wv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Np(e,n)}function _v(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),Np(e,n)}function Ov(e,t){return De(e,t)}var tr=null,zl=null,Hc=!1,nr=!1,kc=!1,ia=0;function mn(e){e!==zl&&e.next===null&&(zl===null?tr=zl=e:zl=zl.next=e),nr=!0,Hc||(Hc=!0,Bv())}function Mi(e,t){if(!kc&&nr){kc=!0;do for(var n=!1,a=tr;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var o=0;else{var c=a.suspendedLanes,f=a.pingedLanes;o=(1<<31-Nt(42|e)+1)-1,o&=i&~(c&~f),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,Up(a,o))}else o=ve,o=io(a,a===Le?o:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(o&3)===0||Vl(a,o)||(n=!0,Up(a,o));a=a.next}while(n);kc=!1}}function $v(){jp()}function jp(){nr=Hc=!1;var e=0;ia!==0&&Yv()&&(e=ia);for(var t=Re(),n=null,a=tr;a!==null;){var i=a.next,o=Hp(a,t);o===0?(a.next=null,n===null?tr=i:n.next=i,i===null&&(zl=n)):(n=a,(e!==0||(o&3)!==0)&&(nr=!0)),a=i}ot!==0&&ot!==5||Mi(e),ia!==0&&(ia=0)}function Hp(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var c=31-Nt(o),f=1<<c,m=i[c];m===-1?((f&n)===0||(f&a)!==0)&&(i[c]=l1(f,t)):m<=t&&(e.expiredLanes|=f),o&=~f}if(t=Le,n=ve,n=io(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(Ne===2||Ne===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&ce(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Vl(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&ce(a),Pr(n)){case 2:case 8:n=Mf;break;case 32:n=to;break;case 268435456:n=wf;break;default:n=to}return a=kp.bind(null,e),n=De(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&ce(a),e.callbackPriority=2,e.callbackNode=null,2}function kp(e,t){if(ot!==0&&ot!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(er()&&e.callbackNode!==n)return null;var a=ve;return a=io(e,e===Le?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(vp(e,a,t),Hp(e,Re()),e.callbackNode!=null&&e.callbackNode===n?kp.bind(null,e):null)}function Up(e,t){if(er())return null;vp(e,t,!0)}function Bv(){Qv(function(){($e&6)!==0?De(Af,$v):jp()})}function Uc(){if(ia===0){var e=sl;e===0&&(e=no,no<<=1,(no&261888)===0&&(no=256)),ia=e}return ia}function qp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:co(""+e)}function Lp(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Dv(e,t,n,a,i){if(t==="submit"&&n&&n.stateNode===i){var o=qp((i[zt]||null).action),c=a.submitter;c&&(t=(t=c[zt]||null)?qp(t.formAction):c.getAttribute("formAction"),t!==null&&(o=t,c=null));var f=new po("action","action",null,a,i);e.push({event:f,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(ia!==0){var m=c?Lp(i,c):new FormData(i);ic(n,{pending:!0,data:m,method:i.method,action:o},null,m)}}else typeof o=="function"&&(f.preventDefault(),m=c?Lp(i,c):new FormData(i),ic(n,{pending:!0,data:m,method:i.method,action:o},o,m))},currentTarget:i}]})}}for(var qc=0;qc<Cu.length;qc++){var Lc=Cu[qc],Rv=Lc.toLowerCase(),Nv=Lc[0].toUpperCase()+Lc.slice(1);ln(Rv,"on"+Nv)}ln(bd,"onAnimationEnd"),ln(vd,"onAnimationIteration"),ln(xd,"onAnimationStart"),ln("dblclick","onDoubleClick"),ln("focusin","onFocus"),ln("focusout","onBlur"),ln(F1,"onTransitionRun"),ln(I1,"onTransitionStart"),ln(P1,"onTransitionCancel"),ln(Sd,"onTransitionEnd"),Wa("onMouseEnter",["mouseout","mouseover"]),Wa("onMouseLeave",["mouseout","mouseover"]),Wa("onPointerEnter",["pointerout","pointerover"]),Wa("onPointerLeave",["pointerout","pointerover"]),ya("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ya("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ya("onBeforeInput",["compositionend","keypress","textInput","paste"]),ya("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ya("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ya("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),jv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(wi));function Yp(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],i=a.event;a=a.listeners;e:{var o=void 0;if(t)for(var c=a.length-1;0<=c;c--){var f=a[c],m=f.instance,w=f.currentTarget;if(f=f.listener,m!==o&&i.isPropagationStopped())break e;o=f,i.currentTarget=w;try{o(i)}catch(B){yo(B)}i.currentTarget=null,o=m}else for(c=0;c<a.length;c++){if(f=a[c],m=f.instance,w=f.currentTarget,f=f.listener,m!==o&&i.isPropagationStopped())break e;o=f,i.currentTarget=w;try{o(i)}catch(B){yo(B)}i.currentTarget=null,o=m}}}}function be(e,t){var n=t[eu];n===void 0&&(n=t[eu]=new Set);var a=e+"__bubble";n.has(a)||(Gp(t,e,2,!1),n.add(a))}function Yc(e,t,n){var a=0;t&&(a|=4),Gp(n,e,a,t)}var ar="_reactListening"+Math.random().toString(36).slice(2);function Gc(e){if(!e[ar]){e[ar]=!0,jf.forEach(function(n){n!=="selectionchange"&&(jv.has(n)||Yc(n,!1,e),Yc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ar]||(t[ar]=!0,Yc("selectionchange",!1,t))}}function Gp(e,t,n,a){switch(bg(t)){case 2:var i=sx;break;case 8:i=fx;break;default:i=ls}n=i.bind(null,t,n,e),i=void 0,!cu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),a?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Qc(e,t,n,a,i){var o=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var c=a.tag;if(c===3||c===4){var f=a.stateNode.containerInfo;if(f===i)break;if(c===4)for(c=a.return;c!==null;){var m=c.tag;if((m===3||m===4)&&c.stateNode.containerInfo===i)return;c=c.return}for(;f!==null;){if(c=Za(f),c===null)return;if(m=c.tag,m===5||m===6||m===26||m===27){a=o=c;continue e}f=f.parentNode}}a=a.return}Kf(function(){var w=o,B=ru(n),H=[];e:{var _=Cd.get(e);if(_!==void 0){var O=po,F=e;switch(e){case"keypress":if(fo(n)===0)break e;case"keydown":case"keyup":O=_1;break;case"focusin":F="focus",O=hu;break;case"focusout":F="blur",O=hu;break;case"beforeblur":case"afterblur":O=hu;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":O=Ff;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=y1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=B1;break;case bd:case vd:case xd:O=x1;break;case Sd:O=R1;break;case"scroll":case"scrollend":O=g1;break;case"wheel":O=j1;break;case"copy":case"cut":case"paste":O=C1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=Pf;break;case"toggle":case"beforetoggle":O=k1}var ie=(t&4)!==0,qe=!ie&&(e==="scroll"||e==="scrollend"),E=ie?_!==null?_+"Capture":null:_;ie=[];for(var b=w,M;b!==null;){var N=b;if(M=N.stateNode,N=N.tag,N!==5&&N!==26&&N!==27||M===null||E===null||(N=Wl(b,E),N!=null&&ie.push(_i(b,N,M))),qe)break;b=b.return}0<ie.length&&(_=new O(_,F,null,n,B),H.push({event:_,listeners:ie}))}}if((t&7)===0){e:{if(_=e==="mouseover"||e==="pointerover",O=e==="mouseout"||e==="pointerout",_&&n!==ou&&(F=n.relatedTarget||n.fromElement)&&(Za(F)||F[Va]))break e;if((O||_)&&(_=B.window===B?B:(_=B.ownerDocument)?_.defaultView||_.parentWindow:window,O?(F=n.relatedTarget||n.toElement,O=w,F=F?Za(F):null,F!==null&&(qe=h(F),ie=F.tag,F!==qe||ie!==5&&ie!==27&&ie!==6)&&(F=null)):(O=null,F=w),O!==F)){if(ie=Ff,N="onMouseLeave",E="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(ie=Pf,N="onPointerLeave",E="onPointerEnter",b="pointer"),qe=O==null?_:Jl(O),M=F==null?_:Jl(F),_=new ie(N,b+"leave",O,n,B),_.target=qe,_.relatedTarget=M,N=null,Za(B)===w&&(ie=new ie(E,b+"enter",F,n,B),ie.target=M,ie.relatedTarget=qe,N=ie),qe=N,O&&F)t:{for(ie=Hv,E=O,b=F,M=0,N=E;N;N=ie(N))M++;N=0;for(var ne=b;ne;ne=ie(ne))N++;for(;0<M-N;)E=ie(E),M--;for(;0<N-M;)b=ie(b),N--;for(;M--;){if(E===b||b!==null&&E===b.alternate){ie=E;break t}E=ie(E),b=ie(b)}ie=null}else ie=null;O!==null&&Qp(H,_,O,ie,!1),F!==null&&qe!==null&&Qp(H,qe,F,ie,!0)}}e:{if(_=w?Jl(w):window,O=_.nodeName&&_.nodeName.toLowerCase(),O==="select"||O==="input"&&_.type==="file")var Ee=rd;else if(id(_))if(ud)Ee=K1;else{Ee=V1;var te=X1}else O=_.nodeName,!O||O.toLowerCase()!=="input"||_.type!=="checkbox"&&_.type!=="radio"?w&&iu(w.elementType)&&(Ee=rd):Ee=Z1;if(Ee&&(Ee=Ee(e,w))){od(H,Ee,n,B);break e}te&&te(e,_,w),e==="focusout"&&w&&_.type==="number"&&w.memoizedProps.value!=null&&lu(_,"number",_.value)}switch(te=w?Jl(w):window,e){case"focusin":(id(te)||te.contentEditable==="true")&&(nl=te,vu=w,li=null);break;case"focusout":li=vu=nl=null;break;case"mousedown":xu=!0;break;case"contextmenu":case"mouseup":case"dragend":xu=!1,md(H,n,B);break;case"selectionchange":if(W1)break;case"keydown":case"keyup":md(H,n,B)}var he;if(gu)e:{switch(e){case"compositionstart":var xe="onCompositionStart";break e;case"compositionend":xe="onCompositionEnd";break e;case"compositionupdate":xe="onCompositionUpdate";break e}xe=void 0}else tl?ad(e,n)&&(xe="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(xe="onCompositionStart");xe&&(ed&&n.locale!=="ko"&&(tl||xe!=="onCompositionStart"?xe==="onCompositionEnd"&&tl&&(he=Jf()):(Gn=B,su="value"in Gn?Gn.value:Gn.textContent,tl=!0)),te=lr(w,xe),0<te.length&&(xe=new If(xe,e,null,n,B),H.push({event:xe,listeners:te}),he?xe.data=he:(he=ld(n),he!==null&&(xe.data=he)))),(he=q1?L1(e,n):Y1(e,n))&&(xe=lr(w,"onBeforeInput"),0<xe.length&&(te=new If("onBeforeInput","beforeinput",null,n,B),H.push({event:te,listeners:xe}),te.data=he)),Dv(H,e,w,n,B)}Yp(H,t)})}function _i(e,t,n){return{instance:e,listener:t,currentTarget:n}}function lr(e,t){for(var n=t+"Capture",a=[];e!==null;){var i=e,o=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||o===null||(i=Wl(e,n),i!=null&&a.unshift(_i(e,i,o)),i=Wl(e,t),i!=null&&a.push(_i(e,i,o))),e.tag===3)return a;e=e.return}return[]}function Hv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Qp(e,t,n,a,i){for(var o=t._reactName,c=[];n!==null&&n!==a;){var f=n,m=f.alternate,w=f.stateNode;if(f=f.tag,m!==null&&m===a)break;f!==5&&f!==26&&f!==27||w===null||(m=w,i?(w=Wl(n,o),w!=null&&c.unshift(_i(n,w,m))):i||(w=Wl(n,o),w!=null&&c.push(_i(n,w,m)))),n=n.return}c.length!==0&&e.push({event:t,listeners:c})}var kv=/\r\n?/g,Uv=/\u0000|\uFFFD/g;function Xp(e){return(typeof e=="string"?e:""+e).replace(kv,`
|
|
9
|
+
`).replace(Uv,"")}function Vp(e,t){return t=Xp(t),Xp(e)===t}function Ue(e,t,n,a,i,o){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Ia(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Ia(e,""+a);break;case"className":ro(e,"class",a);break;case"tabIndex":ro(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":ro(e,n,a);break;case"style":Vf(e,a,o);break;case"data":if(t!=="object"){ro(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=co(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(t!=="input"&&Ue(e,t,"name",i.name,i,null),Ue(e,t,"formEncType",i.formEncType,i,null),Ue(e,t,"formMethod",i.formMethod,i,null),Ue(e,t,"formTarget",i.formTarget,i,null)):(Ue(e,t,"encType",i.encType,i,null),Ue(e,t,"method",i.method,i,null),Ue(e,t,"target",i.target,i,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=co(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=xn);break;case"onScroll":a!=null&&be("scroll",e);break;case"onScrollEnd":a!=null&&be("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(u(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(u(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=co(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":be("beforetoggle",e),be("toggle",e),oo(e,"popover",a);break;case"xlinkActuate":vn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":vn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":vn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":vn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":vn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":vn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":vn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":vn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":vn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":oo(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=h1.get(n)||n,oo(e,n,a))}}function Xc(e,t,n,a,i,o){switch(n){case"style":Vf(e,a,o);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(u(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(u(60));e.innerHTML=n}}break;case"children":typeof a=="string"?Ia(e,a):(typeof a=="number"||typeof a=="bigint")&&Ia(e,""+a);break;case"onScroll":a!=null&&be("scroll",e);break;case"onScrollEnd":a!=null&&be("scrollend",e);break;case"onClick":a!=null&&(e.onclick=xn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Hf.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),o=e[zt]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,i),typeof a=="function")){typeof o!="function"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,i);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):oo(e,n,a)}}}function bt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":be("error",e),be("load",e);var a=!1,i=!1,o;for(o in n)if(n.hasOwnProperty(o)){var c=n[o];if(c!=null)switch(o){case"src":a=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Ue(e,t,o,c,n,null)}}i&&Ue(e,t,"srcSet",n.srcSet,n,null),a&&Ue(e,t,"src",n.src,n,null);return;case"input":be("invalid",e);var f=o=c=i=null,m=null,w=null;for(a in n)if(n.hasOwnProperty(a)){var B=n[a];if(B!=null)switch(a){case"name":i=B;break;case"type":c=B;break;case"checked":m=B;break;case"defaultChecked":w=B;break;case"value":o=B;break;case"defaultValue":f=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(u(137,t));break;default:Ue(e,t,a,B,n,null)}}Yf(e,o,f,m,w,c,i,!1);return;case"select":be("invalid",e),a=c=o=null;for(i in n)if(n.hasOwnProperty(i)&&(f=n[i],f!=null))switch(i){case"value":o=f;break;case"defaultValue":c=f;break;case"multiple":a=f;default:Ue(e,t,i,f,n,null)}t=o,n=c,e.multiple=!!a,t!=null?Fa(e,!!a,t,!1):n!=null&&Fa(e,!!a,n,!0);return;case"textarea":be("invalid",e),o=i=a=null;for(c in n)if(n.hasOwnProperty(c)&&(f=n[c],f!=null))switch(c){case"value":a=f;break;case"defaultValue":i=f;break;case"children":o=f;break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(u(91));break;default:Ue(e,t,c,f,n,null)}Qf(e,a,i,o);return;case"option":for(m in n)n.hasOwnProperty(m)&&(a=n[m],a!=null)&&(m==="selected"?e.selected=a&&typeof a!="function"&&typeof a!="symbol":Ue(e,t,m,a,n,null));return;case"dialog":be("beforetoggle",e),be("toggle",e),be("cancel",e),be("close",e);break;case"iframe":case"object":be("load",e);break;case"video":case"audio":for(a=0;a<wi.length;a++)be(wi[a],e);break;case"image":be("error",e),be("load",e);break;case"details":be("toggle",e);break;case"embed":case"source":case"link":be("error",e),be("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(w in n)if(n.hasOwnProperty(w)&&(a=n[w],a!=null))switch(w){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Ue(e,t,w,a,n,null)}return;default:if(iu(t)){for(B in n)n.hasOwnProperty(B)&&(a=n[B],a!==void 0&&Xc(e,t,B,a,n,void 0));return}}for(f in n)n.hasOwnProperty(f)&&(a=n[f],a!=null&&Ue(e,t,f,a,n,null))}function qv(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,o=null,c=null,f=null,m=null,w=null,B=null;for(O in n){var H=n[O];if(n.hasOwnProperty(O)&&H!=null)switch(O){case"checked":break;case"value":break;case"defaultValue":m=H;default:a.hasOwnProperty(O)||Ue(e,t,O,null,a,H)}}for(var _ in a){var O=a[_];if(H=n[_],a.hasOwnProperty(_)&&(O!=null||H!=null))switch(_){case"type":o=O;break;case"name":i=O;break;case"checked":w=O;break;case"defaultChecked":B=O;break;case"value":c=O;break;case"defaultValue":f=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(u(137,t));break;default:O!==H&&Ue(e,t,_,O,a,H)}}au(e,c,f,m,w,B,o,i);return;case"select":O=c=f=_=null;for(o in n)if(m=n[o],n.hasOwnProperty(o)&&m!=null)switch(o){case"value":break;case"multiple":O=m;default:a.hasOwnProperty(o)||Ue(e,t,o,null,a,m)}for(i in a)if(o=a[i],m=n[i],a.hasOwnProperty(i)&&(o!=null||m!=null))switch(i){case"value":_=o;break;case"defaultValue":f=o;break;case"multiple":c=o;default:o!==m&&Ue(e,t,i,o,a,m)}t=f,n=c,a=O,_!=null?Fa(e,!!n,_,!1):!!a!=!!n&&(t!=null?Fa(e,!!n,t,!0):Fa(e,!!n,n?[]:"",!1));return;case"textarea":O=_=null;for(f in n)if(i=n[f],n.hasOwnProperty(f)&&i!=null&&!a.hasOwnProperty(f))switch(f){case"value":break;case"children":break;default:Ue(e,t,f,null,a,i)}for(c in a)if(i=a[c],o=n[c],a.hasOwnProperty(c)&&(i!=null||o!=null))switch(c){case"value":_=i;break;case"defaultValue":O=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(u(91));break;default:i!==o&&Ue(e,t,c,i,a,o)}Gf(e,_,O);return;case"option":for(var F in n)_=n[F],n.hasOwnProperty(F)&&_!=null&&!a.hasOwnProperty(F)&&(F==="selected"?e.selected=!1:Ue(e,t,F,null,a,_));for(m in a)_=a[m],O=n[m],a.hasOwnProperty(m)&&_!==O&&(_!=null||O!=null)&&(m==="selected"?e.selected=_&&typeof _!="function"&&typeof _!="symbol":Ue(e,t,m,_,a,O));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ie in n)_=n[ie],n.hasOwnProperty(ie)&&_!=null&&!a.hasOwnProperty(ie)&&Ue(e,t,ie,null,a,_);for(w in a)if(_=a[w],O=n[w],a.hasOwnProperty(w)&&_!==O&&(_!=null||O!=null))switch(w){case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(u(137,t));break;default:Ue(e,t,w,_,a,O)}return;default:if(iu(t)){for(var qe in n)_=n[qe],n.hasOwnProperty(qe)&&_!==void 0&&!a.hasOwnProperty(qe)&&Xc(e,t,qe,void 0,a,_);for(B in a)_=a[B],O=n[B],!a.hasOwnProperty(B)||_===O||_===void 0&&O===void 0||Xc(e,t,B,_,a,O);return}}for(var E in n)_=n[E],n.hasOwnProperty(E)&&_!=null&&!a.hasOwnProperty(E)&&Ue(e,t,E,null,a,_);for(H in a)_=a[H],O=n[H],!a.hasOwnProperty(H)||_===O||_==null&&O==null||Ue(e,t,H,_,a,O)}function Zp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Lv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var i=n[a],o=i.transferSize,c=i.initiatorType,f=i.duration;if(o&&f&&Zp(c)){for(c=0,f=i.responseEnd,a+=1;a<n.length;a++){var m=n[a],w=m.startTime;if(w>f)break;var B=m.transferSize,H=m.initiatorType;B&&Zp(H)&&(m=m.responseEnd,c+=B*(m<f?1:(f-w)/(m-w)))}if(--a,t+=8*(o+c)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Vc=null,Zc=null;function ir(e){return e.nodeType===9?e:e.ownerDocument}function Kp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Jp(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Kc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Jc=null;function Yv(){var e=window.event;return e&&e.type==="popstate"?e===Jc?!1:(Jc=e,!0):(Jc=null,!1)}var Wp=typeof setTimeout=="function"?setTimeout:void 0,Gv=typeof clearTimeout=="function"?clearTimeout:void 0,Fp=typeof Promise=="function"?Promise:void 0,Qv=typeof queueMicrotask=="function"?queueMicrotask:typeof Fp<"u"?function(e){return Fp.resolve(null).then(e).catch(Xv)}:Wp;function Xv(e){setTimeout(function(){throw e})}function oa(e){return e==="head"}function Ip(e,t){var n=t,a=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(i),_l(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")Oi(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Oi(n);for(var o=n.firstChild;o;){var c=o.nextSibling,f=o.nodeName;o[Kl]||f==="SCRIPT"||f==="STYLE"||f==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=c}}else n==="body"&&Oi(e.ownerDocument.body);n=i}while(n);_l(t)}function Pp(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function Wc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Wc(n),tu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Vv(e,t,n,a){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Kl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=It(e.nextSibling),e===null)break}return null}function Zv(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=It(e.nextSibling),e===null))return null;return e}function eg(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=It(e.nextSibling),e===null))return null;return e}function Fc(e){return e.data==="$?"||e.data==="$~"}function Ic(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Kv(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function It(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Pc=null;function tg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return It(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function ng(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function ag(e,t,n){switch(t=ir(n),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function Oi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);tu(e)}var Pt=new Map,lg=new Set;function or(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var jn=J.d;J.d={f:Jv,r:Wv,D:Fv,C:Iv,L:Pv,m:ex,X:nx,S:tx,M:ax};function Jv(){var e=jn.f(),t=Fo();return e||t}function Wv(e){var t=Ka(e);t!==null&&t.tag===5&&t.type==="form"?Sh(t):jn.r(e)}var Al=typeof document>"u"?null:document;function ig(e,t,n){var a=Al;if(a&&typeof t=="string"&&t){var i=Xt(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),lg.has(i)||(lg.add(i),e={rel:e,crossOrigin:n,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),bt(t,"link",e),ct(t),a.head.appendChild(t)))}}function Fv(e){jn.D(e),ig("dns-prefetch",e,null)}function Iv(e,t){jn.C(e,t),ig("preconnect",e,t)}function Pv(e,t,n){jn.L(e,t,n);var a=Al;if(a&&e&&t){var i='link[rel="preload"][as="'+Xt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+Xt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+Xt(n.imageSizes)+'"]')):i+='[href="'+Xt(e)+'"]';var o=i;switch(t){case"style":o=Ml(e);break;case"script":o=wl(e)}Pt.has(o)||(e=z({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Pt.set(o,e),a.querySelector(i)!==null||t==="style"&&a.querySelector($i(o))||t==="script"&&a.querySelector(Bi(o))||(t=a.createElement("link"),bt(t,"link",e),ct(t),a.head.appendChild(t)))}}function ex(e,t){jn.m(e,t);var n=Al;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+Xt(a)+'"][href="'+Xt(e)+'"]',o=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=wl(e)}if(!Pt.has(o)&&(e=z({rel:"modulepreload",href:e},t),Pt.set(o,e),n.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Bi(o)))return}a=n.createElement("link"),bt(a,"link",e),ct(a),n.head.appendChild(a)}}}function tx(e,t,n){jn.S(e,t,n);var a=Al;if(a&&e){var i=Ja(a).hoistableStyles,o=Ml(e);t=t||"default";var c=i.get(o);if(!c){var f={loading:0,preload:null};if(c=a.querySelector($i(o)))f.loading=5;else{e=z({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Pt.get(o))&&es(e,n);var m=c=a.createElement("link");ct(m),bt(m,"link",e),m._p=new Promise(function(w,B){m.onload=w,m.onerror=B}),m.addEventListener("load",function(){f.loading|=1}),m.addEventListener("error",function(){f.loading|=2}),f.loading|=4,rr(c,t,a)}c={type:"stylesheet",instance:c,count:1,state:f},i.set(o,c)}}}function nx(e,t){jn.X(e,t);var n=Al;if(n&&e){var a=Ja(n).hoistableScripts,i=wl(e),o=a.get(i);o||(o=n.querySelector(Bi(i)),o||(e=z({src:e,async:!0},t),(t=Pt.get(i))&&ts(e,t),o=n.createElement("script"),ct(o),bt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(i,o))}}function ax(e,t){jn.M(e,t);var n=Al;if(n&&e){var a=Ja(n).hoistableScripts,i=wl(e),o=a.get(i);o||(o=n.querySelector(Bi(i)),o||(e=z({src:e,async:!0,type:"module"},t),(t=Pt.get(i))&&ts(e,t),o=n.createElement("script"),ct(o),bt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(i,o))}}function og(e,t,n,a){var i=(i=ue.current)?or(i):null;if(!i)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Ml(n.href),n=Ja(i).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ml(n.href);var o=Ja(i).hoistableStyles,c=o.get(e);if(c||(i=i.ownerDocument||i,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,c),(o=i.querySelector($i(e)))&&!o._p&&(c.instance=o,c.state.loading=5),Pt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Pt.set(e,n),o||lx(i,e,n,c.state))),t&&a===null)throw Error(u(528,""));return c}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=wl(n),n=Ja(i).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Ml(e){return'href="'+Xt(e)+'"'}function $i(e){return'link[rel="stylesheet"]['+e+"]"}function rg(e){return z({},e,{"data-precedence":e.precedence,precedence:null})}function lx(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),bt(t,"link",n),ct(t),e.head.appendChild(t))}function wl(e){return'[src="'+Xt(e)+'"]'}function Bi(e){return"script[async]"+e}function ug(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Xt(n.href)+'"]');if(a)return t.instance=a,ct(a),a;var i=z({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),ct(a),bt(a,"style",i),rr(a,n.precedence,e),t.instance=a;case"stylesheet":i=Ml(n.href);var o=e.querySelector($i(i));if(o)return t.state.loading|=4,t.instance=o,ct(o),o;a=rg(n),(i=Pt.get(i))&&es(a,i),o=(e.ownerDocument||e).createElement("link"),ct(o);var c=o;return c._p=new Promise(function(f,m){c.onload=f,c.onerror=m}),bt(o,"link",a),t.state.loading|=4,rr(o,n.precedence,e),t.instance=o;case"script":return o=wl(n.src),(i=e.querySelector(Bi(o)))?(t.instance=i,ct(i),i):(a=n,(i=Pt.get(o))&&(a=z({},n),ts(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),ct(i),bt(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,rr(a,n.precedence,e));return t.instance}function rr(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,o=i,c=0;c<a.length;c++){var f=a[c];if(f.dataset.precedence===t)o=f;else if(o!==i)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function es(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ts(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ur=null;function cg(e,t,n){if(ur===null){var a=new Map,i=ur=new Map;i.set(n,a)}else i=ur,a=i.get(n),a||(a=new Map,i.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var o=n[i];if(!(o[Kl]||o[pt]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var c=o.getAttribute(t)||"";c=e+c;var f=a.get(c);f?f.push(o):a.set(c,[o])}}return a}function sg(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function ix(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function fg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function ox(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var i=Ml(a.href),o=t.querySelector($i(i));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=cr.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,ct(o);return}o=t.ownerDocument||t,a=rg(a),(i=Pt.get(i))&&es(a,i),o=o.createElement("link"),ct(o);var c=o;c._p=new Promise(function(f,m){c.onload=f,c.onerror=m}),bt(o,"link",a),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=cr.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var ns=0;function rx(e,t){return e.stylesheets&&e.count===0&&fr(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&fr(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&ns===0&&(ns=62500*Lv());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&fr(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>ns?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function cr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)fr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var sr=null;function fr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,sr=new Map,t.forEach(ux,e),sr=null,cr.call(e))}function ux(e,t){if(!(t.state.loading&4)){var n=sr.get(e);if(n)var a=n.get(null);else{n=new Map,sr.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<i.length;o++){var c=i[o];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(n.set(c.dataset.precedence,c),a=c)}a&&n.set(null,a)}i=t.instance,c=i.getAttribute("data-precedence"),o=n.get(c)||a,o===a&&n.set(null,i),n.set(c,i),this.count++,a=cr.bind(this),i.addEventListener("load",a),i.addEventListener("error",a),o?o.parentNode.insertBefore(i,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Di={$$typeof:Z,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function cx(e,t,n,a,i,o,c,f,m){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Fr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fr(0),this.hiddenUpdates=Fr(null),this.identifierPrefix=a,this.onUncaughtError=i,this.onCaughtError=o,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,this.incompleteTransitions=new Map}function dg(e,t,n,a,i,o,c,f,m,w,B,H){return e=new cx(e,t,n,c,m,w,B,H,f),t=1,o===!0&&(t|=24),o=Ht(3,null,null,t),e.current=o,o.stateNode=e,t=Nu(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:a,isDehydrated:n,cache:t},Uu(o),e}function hg(e){return e?(e=il,e):il}function pg(e,t,n,a,i,o){i=hg(i),a.context===null?a.context=i:a.pendingContext=i,a=Jn(t),a.payload={element:n},o=o===void 0?null:o,o!==null&&(a.callback=o),n=Wn(e,a,t),n!==null&&($t(n,e,t),fi(n,e,t))}function gg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function as(e,t){gg(e,t),(e=e.alternate)&&gg(e,t)}function mg(e){if(e.tag===13||e.tag===31){var t=Sa(e,67108864);t!==null&&$t(t,e,67108864),as(e,67108864)}}function yg(e){if(e.tag===13||e.tag===31){var t=Yt();t=Ir(t);var n=Sa(e,t);n!==null&&$t(n,e,t),as(e,t)}}var dr=!0;function sx(e,t,n,a){var i=$.T;$.T=null;var o=J.p;try{J.p=2,ls(e,t,n,a)}finally{J.p=o,$.T=i}}function fx(e,t,n,a){var i=$.T;$.T=null;var o=J.p;try{J.p=8,ls(e,t,n,a)}finally{J.p=o,$.T=i}}function ls(e,t,n,a){if(dr){var i=is(a);if(i===null)Qc(e,t,a,hr,n),vg(e,a);else if(hx(i,e,t,n,a))a.stopPropagation();else if(vg(e,a),t&4&&-1<dx.indexOf(e)){for(;i!==null;){var o=Ka(i);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var c=ma(o.pendingLanes);if(c!==0){var f=o;for(f.pendingLanes|=2,f.entangledLanes|=2;c;){var m=1<<31-Nt(c);f.entanglements[1]|=m,c&=~m}mn(o),($e&6)===0&&(Jo=Re()+500,Mi(0))}}break;case 31:case 13:f=Sa(o,2),f!==null&&$t(f,o,2),Fo(),as(o,2)}if(o=is(a),o===null&&Qc(e,t,a,hr,n),o===i)break;i=o}i!==null&&a.stopPropagation()}else Qc(e,t,a,null,n)}}function is(e){return e=ru(e),os(e)}var hr=null;function os(e){if(hr=null,e=Za(e),e!==null){var t=h(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=y(t),e!==null)return e;e=null}else if(n===31){if(e=T(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return hr=e,null}function bg(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(bn()){case Af:return 2;case Mf:return 8;case to:case Ib:return 32;case wf:return 268435456;default:return 32}default:return 32}}var rs=!1,ra=null,ua=null,ca=null,Ri=new Map,Ni=new Map,sa=[],dx="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function vg(e,t){switch(e){case"focusin":case"focusout":ra=null;break;case"dragenter":case"dragleave":ua=null;break;case"mouseover":case"mouseout":ca=null;break;case"pointerover":case"pointerout":Ri.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ni.delete(t.pointerId)}}function ji(e,t,n,a,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Ka(t),t!==null&&mg(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function hx(e,t,n,a,i){switch(t){case"focusin":return ra=ji(ra,e,t,n,a,i),!0;case"dragenter":return ua=ji(ua,e,t,n,a,i),!0;case"mouseover":return ca=ji(ca,e,t,n,a,i),!0;case"pointerover":var o=i.pointerId;return Ri.set(o,ji(Ri.get(o)||null,e,t,n,a,i)),!0;case"gotpointercapture":return o=i.pointerId,Ni.set(o,ji(Ni.get(o)||null,e,t,n,a,i)),!0}return!1}function xg(e){var t=Za(e.target);if(t!==null){var n=h(t);if(n!==null){if(t=n.tag,t===13){if(t=y(n),t!==null){e.blockedOn=t,Rf(e.priority,function(){yg(n)});return}}else if(t===31){if(t=T(n),t!==null){e.blockedOn=t,Rf(e.priority,function(){yg(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function pr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=is(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);ou=a,n.target.dispatchEvent(a),ou=null}else return t=Ka(n),t!==null&&mg(t),e.blockedOn=n,!1;t.shift()}return!0}function Sg(e,t,n){pr(e)&&n.delete(t)}function px(){rs=!1,ra!==null&&pr(ra)&&(ra=null),ua!==null&&pr(ua)&&(ua=null),ca!==null&&pr(ca)&&(ca=null),Ri.forEach(Sg),Ni.forEach(Sg)}function gr(e,t){e.blockedOn===t&&(e.blockedOn=null,rs||(rs=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,px)))}var mr=null;function Cg(e){mr!==e&&(mr=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){mr===e&&(mr=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],i=e[t+2];if(typeof a!="function"){if(os(a||n)===null)continue;break}var o=Ka(n);o!==null&&(e.splice(t,3),t-=3,ic(o,{pending:!0,data:i,method:n.method,action:a},a,i))}}))}function _l(e){function t(m){return gr(m,e)}ra!==null&&gr(ra,e),ua!==null&&gr(ua,e),ca!==null&&gr(ca,e),Ri.forEach(t),Ni.forEach(t);for(var n=0;n<sa.length;n++){var a=sa[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<sa.length&&(n=sa[0],n.blockedOn===null);)xg(n),n.blockedOn===null&&sa.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var i=n[a],o=n[a+1],c=i[zt]||null;if(typeof o=="function")c||Cg(n);else if(c){var f=null;if(o&&o.hasAttribute("formAction")){if(i=o,c=o[zt]||null)f=c.formAction;else if(os(i)!==null)continue}else f=c.action;typeof f=="function"?n[a+1]=f:(n.splice(a,3),a-=3),Cg(n)}}}function Tg(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(c){return i=c})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function us(e){this._internalRoot=e}yr.prototype.render=us.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var n=t.current,a=Yt();pg(n,a,e,t,null,null)},yr.prototype.unmount=us.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;pg(e.current,2,null,e,null,null),Fo(),t[Va]=null}};function yr(e){this._internalRoot=e}yr.prototype.unstable_scheduleHydration=function(e){if(e){var t=Df();e={blockedOn:null,target:e,priority:t};for(var n=0;n<sa.length&&t!==0&&t<sa[n].priority;n++);sa.splice(n,0,e),n===0&&xg(e)}};var Eg=r.version;if(Eg!=="19.2.3")throw Error(u(527,Eg,"19.2.3"));J.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=g(t),e=e!==null?A(e):null,e=e===null?null:e.stateNode,e};var gx={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:$,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var br=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!br.isDisabled&&br.supportsFiber)try{Xl=br.inject(gx),Rt=br}catch{}}return Dl.createRoot=function(e,t){if(!d(e))throw Error(u(299));var n=!1,a="",i=$h,o=Bh,c=Dh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=dg(e,1,!1,null,null,n,a,null,i,o,c,Tg),e[Va]=t.current,Gc(e),new us(t)},Dl.hydrateRoot=function(e,t,n){if(!d(e))throw Error(u(299));var a=!1,i="",o=$h,c=Bh,f=Dh,m=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(c=n.onCaughtError),n.onRecoverableError!==void 0&&(f=n.onRecoverableError),n.formState!==void 0&&(m=n.formState)),t=dg(e,1,!0,t,n??null,a,i,m,o,c,f,Tg),t.context=hg(null),n=t.current,a=Yt(),a=Ir(a),i=Jn(a),i.callback=null,Wn(n,i,a),n=a,t.current.lanes=n,Zl(t,n),mn(t),e[Va]=t.current,Gc(e),new yr(t)},Dl.version="19.2.3",Dl}var bs;function Dg(){if(bs)return xr.exports;bs=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(r){console.error(r)}}return l(),xr.exports=Bg(),xr.exports}var vs=Dg();function Rg(l){if(l.sheet)return l.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===l)return document.styleSheets[r]}function Ng(l){var r=document.createElement("style");return r.setAttribute("data-emotion",l.key),l.nonce!==void 0&&r.setAttribute("nonce",l.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var jg=(function(){function l(s){var u=this;this._insertTag=function(d){var h;u.tags.length===0?u.insertionPoint?h=u.insertionPoint.nextSibling:u.prepend?h=u.container.firstChild:h=u.before:h=u.tags[u.tags.length-1].nextSibling,u.container.insertBefore(d,h),u.tags.push(d)},this.isSpeedy=s.speedy===void 0?!0:s.speedy,this.tags=[],this.ctr=0,this.nonce=s.nonce,this.key=s.key,this.container=s.container,this.prepend=s.prepend,this.insertionPoint=s.insertionPoint,this.before=null}var r=l.prototype;return r.hydrate=function(u){u.forEach(this._insertTag)},r.insert=function(u){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Ng(this));var d=this.tags[this.tags.length-1];if(this.isSpeedy){var h=Rg(d);try{h.insertRule(u,h.cssRules.length)}catch{}}else d.appendChild(document.createTextNode(u));this.ctr++},r.flush=function(){this.tags.forEach(function(u){var d;return(d=u.parentNode)==null?void 0:d.removeChild(u)}),this.tags=[],this.ctr=0},l})(),xt="-ms-",Hi="-moz-",Ae="-webkit-",xs="comm",Ar="rule",Mr="decl",Hg="@import",Ss="@keyframes",kg="@layer",Ug=Math.abs,ki=String.fromCharCode,qg=Object.assign;function Lg(l,r){return ft(l,0)^45?(((r<<2^ft(l,0))<<2^ft(l,1))<<2^ft(l,2))<<2^ft(l,3):0}function Cs(l){return l.trim()}function Yg(l,r){return(l=r.exec(l))?l[0]:l}function Me(l,r,s){return l.replace(r,s)}function wr(l,r){return l.indexOf(r)}function ft(l,r){return l.charCodeAt(r)|0}function Rl(l,r,s){return l.slice(r,s)}function un(l){return l.length}function _r(l){return l.length}function Ui(l,r){return r.push(l),l}function Gg(l,r){return l.map(r).join("")}var qi=1,Ra=1,Ts=0,Tt=0,et=0,Na="";function Li(l,r,s,u,d,h,y){return{value:l,root:r,parent:s,type:u,props:d,children:h,line:qi,column:Ra,length:y,return:""}}function Nl(l,r){return qg(Li("",null,null,"",null,null,0),l,{length:-l.length},r)}function Qg(){return et}function Xg(){return et=Tt>0?ft(Na,--Tt):0,Ra--,et===10&&(Ra=1,qi--),et}function Bt(){return et=Tt<Ts?ft(Na,Tt++):0,Ra++,et===10&&(Ra=1,qi++),et}function cn(){return ft(Na,Tt)}function Yi(){return Tt}function jl(l,r){return Rl(Na,l,r)}function Hl(l){switch(l){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Es(l){return qi=Ra=1,Ts=un(Na=l),Tt=0,[]}function zs(l){return Na="",l}function Gi(l){return Cs(jl(Tt-1,Or(l===91?l+2:l===40?l+1:l)))}function Vg(l){for(;(et=cn())&&et<33;)Bt();return Hl(l)>2||Hl(et)>3?"":" "}function Zg(l,r){for(;--r&&Bt()&&!(et<48||et>102||et>57&&et<65||et>70&&et<97););return jl(l,Yi()+(r<6&&cn()==32&&Bt()==32))}function Or(l){for(;Bt();)switch(et){case l:return Tt;case 34:case 39:l!==34&&l!==39&&Or(et);break;case 40:l===41&&Or(l);break;case 92:Bt();break}return Tt}function Kg(l,r){for(;Bt()&&l+et!==57;)if(l+et===84&&cn()===47)break;return"/*"+jl(r,Tt-1)+"*"+ki(l===47?l:Bt())}function Jg(l){for(;!Hl(cn());)Bt();return jl(l,Tt)}function Wg(l){return zs(Qi("",null,null,null,[""],l=Es(l),0,[0],l))}function Qi(l,r,s,u,d,h,y,T,S){for(var g=0,A=0,z=y,U=0,V=0,Q=0,Y=1,D=1,K=1,P=0,Z="",re=d,L=h,ae=u,G=Z;D;)switch(Q=P,P=Bt()){case 40:if(Q!=108&&ft(G,z-1)==58){wr(G+=Me(Gi(P),"&","&\f"),"&\f")!=-1&&(K=-1);break}case 34:case 39:case 91:G+=Gi(P);break;case 9:case 10:case 13:case 32:G+=Vg(Q);break;case 92:G+=Zg(Yi()-1,7);continue;case 47:switch(cn()){case 42:case 47:Ui(Fg(Kg(Bt(),Yi()),r,s),S);break;default:G+="/"}break;case 123*Y:T[g++]=un(G)*K;case 125*Y:case 59:case 0:switch(P){case 0:case 125:D=0;case 59+A:K==-1&&(G=Me(G,/\f/g,"")),V>0&&un(G)-z&&Ui(V>32?Ms(G+";",u,s,z-1):Ms(Me(G," ","")+";",u,s,z-2),S);break;case 59:G+=";";default:if(Ui(ae=As(G,r,s,g,A,d,T,Z,re=[],L=[],z),h),P===123)if(A===0)Qi(G,r,ae,ae,re,h,z,T,L);else switch(U===99&&ft(G,3)===110?100:U){case 100:case 108:case 109:case 115:Qi(l,ae,ae,u&&Ui(As(l,ae,ae,0,0,d,T,Z,d,re=[],z),L),d,L,z,T,u?re:L);break;default:Qi(G,ae,ae,ae,[""],L,0,T,L)}}g=A=V=0,Y=K=1,Z=G="",z=y;break;case 58:z=1+un(G),V=Q;default:if(Y<1){if(P==123)--Y;else if(P==125&&Y++==0&&Xg()==125)continue}switch(G+=ki(P),P*Y){case 38:K=A>0?1:(G+="\f",-1);break;case 44:T[g++]=(un(G)-1)*K,K=1;break;case 64:cn()===45&&(G+=Gi(Bt())),U=cn(),A=z=un(Z=G+=Jg(Yi())),P++;break;case 45:Q===45&&un(G)==2&&(Y=0)}}return h}function As(l,r,s,u,d,h,y,T,S,g,A){for(var z=d-1,U=d===0?h:[""],V=_r(U),Q=0,Y=0,D=0;Q<u;++Q)for(var K=0,P=Rl(l,z+1,z=Ug(Y=y[Q])),Z=l;K<V;++K)(Z=Cs(Y>0?U[K]+" "+P:Me(P,/&\f/g,U[K])))&&(S[D++]=Z);return Li(l,r,s,d===0?Ar:T,S,g,A)}function Fg(l,r,s){return Li(l,r,s,xs,ki(Qg()),Rl(l,2,-2),0)}function Ms(l,r,s,u){return Li(l,r,s,Mr,Rl(l,0,u),Rl(l,u+1,-1),u)}function ja(l,r){for(var s="",u=_r(l),d=0;d<u;d++)s+=r(l[d],d,l,r)||"";return s}function Ig(l,r,s,u){switch(l.type){case kg:if(l.children.length)break;case Hg:case Mr:return l.return=l.return||l.value;case xs:return"";case Ss:return l.return=l.value+"{"+ja(l.children,u)+"}";case Ar:l.value=l.props.join(",")}return un(s=ja(l.children,u))?l.return=l.value+"{"+s+"}":""}function Pg(l){var r=_r(l);return function(s,u,d,h){for(var y="",T=0;T<r;T++)y+=l[T](s,u,d,h)||"";return y}}function em(l){return function(r){r.root||(r=r.return)&&l(r)}}function ws(l){var r=Object.create(null);return function(s){return r[s]===void 0&&(r[s]=l(s)),r[s]}}var tm=function(r,s,u){for(var d=0,h=0;d=h,h=cn(),d===38&&h===12&&(s[u]=1),!Hl(h);)Bt();return jl(r,Tt)},nm=function(r,s){var u=-1,d=44;do switch(Hl(d)){case 0:d===38&&cn()===12&&(s[u]=1),r[u]+=tm(Tt-1,s,u);break;case 2:r[u]+=Gi(d);break;case 4:if(d===44){r[++u]=cn()===58?"&\f":"",s[u]=r[u].length;break}default:r[u]+=ki(d)}while(d=Bt());return r},am=function(r,s){return zs(nm(Es(r),s))},_s=new WeakMap,lm=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var s=r.value,u=r.parent,d=r.column===u.column&&r.line===u.line;u.type!=="rule";)if(u=u.parent,!u)return;if(!(r.props.length===1&&s.charCodeAt(0)!==58&&!_s.get(u))&&!d){_s.set(r,!0);for(var h=[],y=am(s,h),T=u.props,S=0,g=0;S<y.length;S++)for(var A=0;A<T.length;A++,g++)r.props[g]=h[S]?y[S].replace(/&\f/g,T[A]):T[A]+" "+y[S]}}},im=function(r){if(r.type==="decl"){var s=r.value;s.charCodeAt(0)===108&&s.charCodeAt(2)===98&&(r.return="",r.value="")}};function Os(l,r){switch(Lg(l,r)){case 5103:return Ae+"print-"+l+l;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ae+l+l;case 5349:case 4246:case 4810:case 6968:case 2756:return Ae+l+Hi+l+xt+l+l;case 6828:case 4268:return Ae+l+xt+l+l;case 6165:return Ae+l+xt+"flex-"+l+l;case 5187:return Ae+l+Me(l,/(\w+).+(:[^]+)/,Ae+"box-$1$2"+xt+"flex-$1$2")+l;case 5443:return Ae+l+xt+"flex-item-"+Me(l,/flex-|-self/,"")+l;case 4675:return Ae+l+xt+"flex-line-pack"+Me(l,/align-content|flex-|-self/,"")+l;case 5548:return Ae+l+xt+Me(l,"shrink","negative")+l;case 5292:return Ae+l+xt+Me(l,"basis","preferred-size")+l;case 6060:return Ae+"box-"+Me(l,"-grow","")+Ae+l+xt+Me(l,"grow","positive")+l;case 4554:return Ae+Me(l,/([^-])(transform)/g,"$1"+Ae+"$2")+l;case 6187:return Me(Me(Me(l,/(zoom-|grab)/,Ae+"$1"),/(image-set)/,Ae+"$1"),l,"")+l;case 5495:case 3959:return Me(l,/(image-set\([^]*)/,Ae+"$1$`$1");case 4968:return Me(Me(l,/(.+:)(flex-)?(.*)/,Ae+"box-pack:$3"+xt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ae+l+l;case 4095:case 3583:case 4068:case 2532:return Me(l,/(.+)-inline(.+)/,Ae+"$1$2")+l;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(un(l)-1-r>6)switch(ft(l,r+1)){case 109:if(ft(l,r+4)!==45)break;case 102:return Me(l,/(.+:)(.+)-([^]+)/,"$1"+Ae+"$2-$3$1"+Hi+(ft(l,r+3)==108?"$3":"$2-$3"))+l;case 115:return~wr(l,"stretch")?Os(Me(l,"stretch","fill-available"),r)+l:l}break;case 4949:if(ft(l,r+1)!==115)break;case 6444:switch(ft(l,un(l)-3-(~wr(l,"!important")&&10))){case 107:return Me(l,":",":"+Ae)+l;case 101:return Me(l,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ae+(ft(l,14)===45?"inline-":"")+"box$3$1"+Ae+"$2$3$1"+xt+"$2box$3")+l}break;case 5936:switch(ft(l,r+11)){case 114:return Ae+l+xt+Me(l,/[svh]\w+-[tblr]{2}/,"tb")+l;case 108:return Ae+l+xt+Me(l,/[svh]\w+-[tblr]{2}/,"tb-rl")+l;case 45:return Ae+l+xt+Me(l,/[svh]\w+-[tblr]{2}/,"lr")+l}return Ae+l+xt+l+l}return l}var om=function(r,s,u,d){if(r.length>-1&&!r.return)switch(r.type){case Mr:r.return=Os(r.value,r.length);break;case Ss:return ja([Nl(r,{value:Me(r.value,"@","@"+Ae)})],d);case Ar:if(r.length)return Gg(r.props,function(h){switch(Yg(h,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ja([Nl(r,{props:[Me(h,/:(read-\w+)/,":"+Hi+"$1")]})],d);case"::placeholder":return ja([Nl(r,{props:[Me(h,/:(plac\w+)/,":"+Ae+"input-$1")]}),Nl(r,{props:[Me(h,/:(plac\w+)/,":"+Hi+"$1")]}),Nl(r,{props:[Me(h,/:(plac\w+)/,xt+"input-$1")]})],d)}return""})}},rm=[om],$r=function(r){var s=r.key;if(s==="css"){var u=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(u,function(Y){var D=Y.getAttribute("data-emotion");D.indexOf(" ")!==-1&&(document.head.appendChild(Y),Y.setAttribute("data-s",""))})}var d=r.stylisPlugins||rm,h={},y,T=[];y=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+s+' "]'),function(Y){for(var D=Y.getAttribute("data-emotion").split(" "),K=1;K<D.length;K++)h[D[K]]=!0;T.push(Y)});var S,g=[lm,im];{var A,z=[Ig,em(function(Y){A.insert(Y)})],U=Pg(g.concat(d,z)),V=function(D){return ja(Wg(D),U)};S=function(D,K,P,Z){A=P,V(D?D+"{"+K.styles+"}":K.styles),Z&&(Q.inserted[K.name]=!0)}}var Q={key:s,sheet:new jg({key:s,container:y,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:h,registered:{},insert:S};return Q.sheet.hydrate(T),Q},C=Er();const $s=Ol({__proto__:null,default:$l(C)},[C]);function Br(){return Br=Object.assign?Object.assign.bind():function(l){for(var r=1;r<arguments.length;r++){var s=arguments[r];for(var u in s)({}).hasOwnProperty.call(s,u)&&(l[u]=s[u])}return l},Br.apply(null,arguments)}var Dr={exports:{}},Be={};var Bs;function um(){if(Bs)return Be;Bs=1;var l=typeof Symbol=="function"&&Symbol.for,r=l?Symbol.for("react.element"):60103,s=l?Symbol.for("react.portal"):60106,u=l?Symbol.for("react.fragment"):60107,d=l?Symbol.for("react.strict_mode"):60108,h=l?Symbol.for("react.profiler"):60114,y=l?Symbol.for("react.provider"):60109,T=l?Symbol.for("react.context"):60110,S=l?Symbol.for("react.async_mode"):60111,g=l?Symbol.for("react.concurrent_mode"):60111,A=l?Symbol.for("react.forward_ref"):60112,z=l?Symbol.for("react.suspense"):60113,U=l?Symbol.for("react.suspense_list"):60120,V=l?Symbol.for("react.memo"):60115,Q=l?Symbol.for("react.lazy"):60116,Y=l?Symbol.for("react.block"):60121,D=l?Symbol.for("react.fundamental"):60117,K=l?Symbol.for("react.responder"):60118,P=l?Symbol.for("react.scope"):60119;function Z(L){if(typeof L=="object"&&L!==null){var ae=L.$$typeof;switch(ae){case r:switch(L=L.type,L){case S:case g:case u:case h:case d:case z:return L;default:switch(L=L&&L.$$typeof,L){case T:case A:case Q:case V:case y:return L;default:return ae}}case s:return ae}}}function re(L){return Z(L)===g}return Be.AsyncMode=S,Be.ConcurrentMode=g,Be.ContextConsumer=T,Be.ContextProvider=y,Be.Element=r,Be.ForwardRef=A,Be.Fragment=u,Be.Lazy=Q,Be.Memo=V,Be.Portal=s,Be.Profiler=h,Be.StrictMode=d,Be.Suspense=z,Be.isAsyncMode=function(L){return re(L)||Z(L)===S},Be.isConcurrentMode=re,Be.isContextConsumer=function(L){return Z(L)===T},Be.isContextProvider=function(L){return Z(L)===y},Be.isElement=function(L){return typeof L=="object"&&L!==null&&L.$$typeof===r},Be.isForwardRef=function(L){return Z(L)===A},Be.isFragment=function(L){return Z(L)===u},Be.isLazy=function(L){return Z(L)===Q},Be.isMemo=function(L){return Z(L)===V},Be.isPortal=function(L){return Z(L)===s},Be.isProfiler=function(L){return Z(L)===h},Be.isStrictMode=function(L){return Z(L)===d},Be.isSuspense=function(L){return Z(L)===z},Be.isValidElementType=function(L){return typeof L=="string"||typeof L=="function"||L===u||L===g||L===h||L===d||L===z||L===U||typeof L=="object"&&L!==null&&(L.$$typeof===Q||L.$$typeof===V||L.$$typeof===y||L.$$typeof===T||L.$$typeof===A||L.$$typeof===D||L.$$typeof===K||L.$$typeof===P||L.$$typeof===Y)},Be.typeOf=Z,Be}var Ds;function cm(){return Ds||(Ds=1,Dr.exports=um()),Dr.exports}var Rr,Rs;function sm(){if(Rs)return Rr;Rs=1;var l=cm(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},u={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},d={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},h={};h[l.ForwardRef]=u,h[l.Memo]=d;function y(Q){return l.isMemo(Q)?d:h[Q.$$typeof]||r}var T=Object.defineProperty,S=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,A=Object.getOwnPropertyDescriptor,z=Object.getPrototypeOf,U=Object.prototype;function V(Q,Y,D){if(typeof Y!="string"){if(U){var K=z(Y);K&&K!==U&&V(Q,K,D)}var P=S(Y);g&&(P=P.concat(g(Y)));for(var Z=y(Q),re=y(Y),L=0;L<P.length;++L){var ae=P[L];if(!s[ae]&&!(D&&D[ae])&&!(re&&re[ae])&&!(Z&&Z[ae])){var G=A(Y,ae);try{T(Q,ae,G)}catch{}}}}return Q}return Rr=V,Rr}sm();var fm=!0;function Ns(l,r,s){var u="";return s.split(" ").forEach(function(d){l[d]!==void 0?r.push(l[d]+";"):d&&(u+=d+" ")}),u}var Nr=function(r,s,u){var d=r.key+"-"+s.name;(u===!1||fm===!1)&&r.registered[d]===void 0&&(r.registered[d]=s.styles)},jr=function(r,s,u){Nr(r,s,u);var d=r.key+"-"+s.name;if(r.inserted[s.name]===void 0){var h=s;do r.insert(s===h?"."+d:"",h,r.sheet,!0),h=h.next;while(h!==void 0)}};function dm(l){for(var r=0,s,u=0,d=l.length;d>=4;++u,d-=4)s=l.charCodeAt(u)&255|(l.charCodeAt(++u)&255)<<8|(l.charCodeAt(++u)&255)<<16|(l.charCodeAt(++u)&255)<<24,s=(s&65535)*1540483477+((s>>>16)*59797<<16),s^=s>>>24,r=(s&65535)*1540483477+((s>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(d){case 3:r^=(l.charCodeAt(u+2)&255)<<16;case 2:r^=(l.charCodeAt(u+1)&255)<<8;case 1:r^=l.charCodeAt(u)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var hm={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},pm=/[A-Z]|^ms/g,gm=/_EMO_([^_]+?)_([^]*?)_EMO_/g,js=function(r){return r.charCodeAt(1)===45},Hs=function(r){return r!=null&&typeof r!="boolean"},Hr=ws(function(l){return js(l)?l:l.replace(pm,"-$&").toLowerCase()}),ks=function(r,s){switch(r){case"animation":case"animationName":if(typeof s=="string")return s.replace(gm,function(u,d,h){return sn={name:d,styles:h,next:sn},d})}return hm[r]!==1&&!js(r)&&typeof s=="number"&&s!==0?s+"px":s};function kl(l,r,s){if(s==null)return"";var u=s;if(u.__emotion_styles!==void 0)return u;switch(typeof s){case"boolean":return"";case"object":{var d=s;if(d.anim===1)return sn={name:d.name,styles:d.styles,next:sn},d.name;var h=s;if(h.styles!==void 0){var y=h.next;if(y!==void 0)for(;y!==void 0;)sn={name:y.name,styles:y.styles,next:sn},y=y.next;var T=h.styles+";";return T}return mm(l,r,s)}case"function":{if(l!==void 0){var S=sn,g=s(l);return sn=S,kl(l,r,g)}break}}var A=s;if(r==null)return A;var z=r[A];return z!==void 0?z:A}function mm(l,r,s){var u="";if(Array.isArray(s))for(var d=0;d<s.length;d++)u+=kl(l,r,s[d])+";";else for(var h in s){var y=s[h];if(typeof y!="object"){var T=y;r!=null&&r[T]!==void 0?u+=h+"{"+r[T]+"}":Hs(T)&&(u+=Hr(h)+":"+ks(h,T)+";")}else if(Array.isArray(y)&&typeof y[0]=="string"&&(r==null||r[y[0]]===void 0))for(var S=0;S<y.length;S++)Hs(y[S])&&(u+=Hr(h)+":"+ks(h,y[S])+";");else{var g=kl(l,r,y);switch(h){case"animation":case"animationName":{u+=Hr(h)+":"+g+";";break}default:u+=h+"{"+g+"}"}}}return u}var Us=/label:\s*([^\s;{]+)\s*(;|$)/g,sn;function Xi(l,r,s){if(l.length===1&&typeof l[0]=="object"&&l[0]!==null&&l[0].styles!==void 0)return l[0];var u=!0,d="";sn=void 0;var h=l[0];if(h==null||h.raw===void 0)u=!1,d+=kl(s,r,h);else{var y=h;d+=y[0]}for(var T=1;T<l.length;T++)if(d+=kl(s,r,l[T]),u){var S=h;d+=S[T]}Us.lastIndex=0;for(var g="",A;(A=Us.exec(d))!==null;)g+="-"+A[1];var z=dm(d)+g;return{name:z,styles:d,next:sn}}var ym=function(r){return r()},qs=$s.useInsertionEffect?$s.useInsertionEffect:!1,Ls=qs||ym,Ys=qs||C.useLayoutEffect,Gs=C.createContext(typeof HTMLElement<"u"?$r({key:"css"}):null),kr=Gs.Provider,Ur=function(r){return C.forwardRef(function(s,u){var d=C.useContext(Gs);return r(s,d,u)})},qr=C.createContext({}),Ul={}.hasOwnProperty,Lr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Yr=function(r,s){var u={};for(var d in s)Ul.call(s,d)&&(u[d]=s[d]);return u[Lr]=r,u},bm=function(r){var s=r.cache,u=r.serialized,d=r.isStringTag;return Nr(s,u,d),Ls(function(){return jr(s,u,d)}),null},vm=Ur(function(l,r,s){var u=l.css;typeof u=="string"&&r.registered[u]!==void 0&&(u=r.registered[u]);var d=l[Lr],h=[u],y="";typeof l.className=="string"?y=Ns(r.registered,h,l.className):l.className!=null&&(y=l.className+" ");var T=Xi(h,void 0,C.useContext(qr));y+=r.key+"-"+T.name;var S={};for(var g in l)Ul.call(l,g)&&g!=="css"&&g!==Lr&&(S[g]=l[g]);return S.className=y,s&&(S.ref=s),C.createElement(C.Fragment,null,C.createElement(bm,{cache:r,serialized:T,isStringTag:typeof d=="string"}),C.createElement(d,S))}),Gr=vm,Qs=function(r,s){var u=arguments;if(s==null||!Ul.call(s,"css"))return C.createElement.apply(void 0,u);var d=u.length,h=new Array(d);h[0]=Gr,h[1]=Yr(r,s);for(var y=2;y<d;y++)h[y]=u[y];return C.createElement.apply(null,h)};(function(l){var r;r||(r=l.JSX||(l.JSX={}))})(Qs||(Qs={}));var xm=Ur(function(l,r){var s=l.styles,u=Xi([s],void 0,C.useContext(qr)),d=C.useRef();return Ys(function(){var h=r.key+"-global",y=new r.sheet.constructor({key:h,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy}),T=!1,S=document.querySelector('style[data-emotion="'+h+" "+u.name+'"]');return r.sheet.tags.length&&(y.before=r.sheet.tags[0]),S!==null&&(T=!0,S.setAttribute("data-emotion",h),y.hydrate([S])),d.current=[y,T],function(){y.flush()}},[r]),Ys(function(){var h=d.current,y=h[0],T=h[1];if(T){h[1]=!1;return}if(u.next!==void 0&&jr(r,u.next,!0),y.tags.length){var S=y.tags[y.tags.length-1].nextElementSibling;y.before=S,y.flush()}r.insert("",u,y,!1)},[r,u.name]),null});function X(){for(var l=arguments.length,r=new Array(l),s=0;s<l;s++)r[s]=arguments[s];return Xi(r)}function en(){var l=X.apply(void 0,arguments),r="animation-"+l.name;return{name:r,styles:"@keyframes "+r+"{"+l.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var ql=v.Fragment,k=function(r,s,u){return Ul.call(s,"css")?v.jsx(Gr,Yr(r,s),u):v.jsx(r,s,u)},le=function(r,s,u){return Ul.call(s,"css")?v.jsxs(Gr,Yr(r,s),u):v.jsxs(r,s,u)};const ee={apiEndpoint:"https://preprodapi.mypatientspace.com",token:"",userType:"patient",loadHistory:!0,sessionId:"",assistantId:"",contextPatientId:"",patientTypeId:"",floatingMode:!1,position:"bottom-right",colorMode:"light",hideExpandButton:!1,showCloseSlot:!1,headerIcon:"https://web.mypatientspace.com/img/logo-symbol.png",fabIcon:"https://web.mypatientspace.com/img/logo-symbol.png",primaryColor:"#00c2d1",secondaryColor:"#3c4d73",userBubbleColor:"#00c2d1",userBubbleTextColor:"#ffffff",botBubbleColor:"#e0f7fa",botBubbleTextColor:"#3c4d73",fontFamily:"system-ui, -apple-system, sans-serif",borderRadius:"12px",shadow:"0 4px 24px rgba(60, 77, 115, 0.15)",headerTitle:"AI Doctor",headerSubtitle:"",greeting:"Hello! Welcome to our healthcare support. How can I assist you today?",placeholder:"Type a message...",brandingText:"Developed by myPatientSpace",disclaimerText:"AI can make mistakes. Verify important information.",quickActions:["I would like to book an appointment","What are your operating hours?","How can I contact you?","Where are you located?"]},Xs=C.createContext(null),Gt=()=>{const l=C.useContext(Xs);if(!l)throw new Error("useDemoContext must be used within a DemoProvider");return l},Sm=({children:l,demoConfig:r,onReinitWidget:s,onUpdateWidget:u})=>{const[d,h]=C.useState("form"),[y,T]=C.useState(!1),[S,g]=C.useState(null),[A,z]=C.useState(!1),[U,V]=C.useState(0),Q=C.useRef(null),Y=C.useCallback(q=>{Q.current=q},[]),[D,K]=C.useState(()=>{const q=r.initialConfig;return q?{...ee,apiEndpoint:q.apiEndpoint??ee.apiEndpoint,token:q.token??ee.token,userType:q.userType??ee.userType,loadHistory:q.loadHistory??ee.loadHistory,sessionId:q.sessionId??ee.sessionId,assistantId:q.assistantId??ee.assistantId,contextPatientId:q.contextPatientId??ee.contextPatientId,patientTypeId:q.patientTypeId??ee.patientTypeId,floatingMode:q.floatingMode??ee.floatingMode,position:q.position??ee.position,colorMode:q.colorMode??ee.colorMode,hideExpandButton:q.hideExpandButton??ee.hideExpandButton,showCloseSlot:q.showCloseSlot??ee.showCloseSlot,headerIcon:q.headerIcon??ee.headerIcon,fabIcon:q.fabIcon??ee.fabIcon,headerTitle:q.headerTitle??ee.headerTitle,headerSubtitle:q.headerSubtitle??ee.headerSubtitle,greeting:q.greeting??ee.greeting,placeholder:q.placeholder??ee.placeholder,brandingText:q.brandingText??ee.brandingText,disclaimerText:q.disclaimerText??ee.disclaimerText,quickActions:q.quickActions??ee.quickActions,primaryColor:q.theme?.colors?.primary??ee.primaryColor,secondaryColor:q.theme?.colors?.secondary??ee.secondaryColor,userBubbleColor:q.theme?.colors?.userBubble??ee.userBubbleColor,userBubbleTextColor:q.theme?.colors?.userBubbleText??ee.userBubbleTextColor,botBubbleColor:q.theme?.colors?.botBubble??ee.botBubbleColor,botBubbleTextColor:q.theme?.colors?.botBubbleText??ee.botBubbleTextColor,fontFamily:q.theme?.fontFamily??ee.fontFamily,borderRadius:q.theme?.borderRadius??ee.borderRadius,shadow:q.theme?.shadow??ee.shadow}:ee}),P=C.useCallback(()=>{const q={containerElement:Q.current||void 0,floatingMode:D.floatingMode,useAbsolutePositioning:!0,position:D.position,colorMode:D.colorMode,headerTitle:D.headerTitle,headerSubtitle:D.headerSubtitle||void 0,headerIcon:D.headerIcon||void 0,fabIcon:D.fabIcon||void 0,greeting:D.greeting,placeholder:D.placeholder,brandingText:D.brandingText,disclaimerText:D.disclaimerText||void 0,hideExpandButton:D.hideExpandButton||void 0,showCloseSlot:D.showCloseSlot||void 0,loadHistory:D.loadHistory,quickActions:D.quickActions,theme:{colors:{primary:D.primaryColor,secondary:D.secondaryColor,userBubble:D.userBubbleColor,userBubbleText:D.userBubbleTextColor,botBubble:D.botBubbleColor,botBubbleText:D.botBubbleTextColor},fontFamily:D.fontFamily,borderRadius:D.borderRadius,shadow:D.shadow}};return y||(q.apiEndpoint=D.apiEndpoint||void 0,q.token=D.token||void 0,q.userType=D.userType||void 0),D.sessionId&&(q.sessionId=D.sessionId),D.assistantId&&(q.assistantId=D.assistantId),D.contextPatientId&&(q.contextPatientId=D.contextPatientId),D.patientTypeId&&(q.patientTypeId=D.patientTypeId),q},[D,y]),Z=C.useRef(r.onConfigChange);C.useEffect(()=>{Z.current=r.onConfigChange},[r.onConfigChange]);const re=C.useCallback(q=>{const Ce={containerElement:Q.current||void 0,floatingMode:q.floatingMode,useAbsolutePositioning:!0,position:q.position,colorMode:q.colorMode,headerTitle:q.headerTitle,headerSubtitle:q.headerSubtitle||void 0,headerIcon:q.headerIcon||void 0,fabIcon:q.fabIcon||void 0,greeting:q.greeting,placeholder:q.placeholder,brandingText:q.brandingText,disclaimerText:q.disclaimerText||void 0,hideExpandButton:q.hideExpandButton||void 0,showCloseSlot:q.showCloseSlot||void 0,loadHistory:q.loadHistory,quickActions:q.quickActions,theme:{colors:{primary:q.primaryColor,secondary:q.secondaryColor,userBubble:q.userBubbleColor,userBubbleText:q.userBubbleTextColor,botBubble:q.botBubbleColor,botBubbleText:q.botBubbleTextColor},fontFamily:q.fontFamily,borderRadius:q.borderRadius,shadow:q.shadow}};return y||(Ce.apiEndpoint=q.apiEndpoint||void 0,Ce.token=q.token||void 0,Ce.userType=q.userType||void 0),q.sessionId&&(Ce.sessionId=q.sessionId),q.assistantId&&(Ce.assistantId=q.assistantId),q.contextPatientId&&(Ce.contextPatientId=q.contextPatientId),q.patientTypeId&&(Ce.patientTypeId=q.patientTypeId),Ce},[y]),L=C.useCallback((q,Ce=!1)=>{K(Ke=>{const we={...Ke,...q};if(Ce){const tt=re(we);u(tt)}return setTimeout(()=>{if(Z.current){const tt=re(we);Z.current(tt)}},0),we})},[re,u]),ae=C.useCallback(q=>{K(q)},[]),G=C.useCallback(()=>{V(q=>q+1),s()},[s]),He=C.useCallback(()=>{u(P())},[u,P]),Xe=C.useMemo(()=>({demoConfig:r,viewMode:d,setViewMode:h,mockEnabled:y,setMockEnabled:T,widgetApi:S,setWidgetApi:g,widgetConfig:D,updateWidgetConfig:L,setWidgetConfig:ae,reinitWidget:G,updateWidget:He,getWidgetConfig:P,widgetWasOpen:A,setWidgetWasOpen:z,setContainerElement:Y,reinitTrigger:U}),[r,d,y,S,D,L,ae,G,He,P,A,Y,U]);return v.jsx(Xs.Provider,{value:Xe,children:l})};const Vs=(...l)=>l.filter((r,s,u)=>!!r&&r.trim()!==""&&u.indexOf(r)===s).join(" ").trim();const Cm=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Tm=l=>l.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,s,u)=>u?u.toUpperCase():s.toLowerCase());const Zs=l=>{const r=Tm(l);return r.charAt(0).toUpperCase()+r.slice(1)};var Em={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const zm=l=>{for(const r in l)if(r.startsWith("aria-")||r==="role"||r==="title")return!0;return!1};const Am=C.forwardRef(({color:l="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:u,className:d="",children:h,iconNode:y,...T},S)=>C.createElement("svg",{ref:S,...Em,width:r,height:r,stroke:l,strokeWidth:u?Number(s)*24/Number(r):s,className:Vs("lucide",d),...!h&&!zm(T)&&{"aria-hidden":"true"},...T},[...y.map(([g,A])=>C.createElement(g,A)),...Array.isArray(h)?h:[h]]));const rt=(l,r)=>{const s=C.forwardRef(({className:u,...d},h)=>C.createElement(Am,{ref:h,iconNode:r,className:Vs(`lucide-${Cm(Zs(l))}`,`lucide-${l}`,u),...d}));return s.displayName=Zs(l),s};const Mm=rt("braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);const wm=rt("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const _m=rt("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const Om=rt("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const $m=rt("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);const Bm=rt("layout-grid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);const Ks=rt("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]);const Dm=rt("message-square-plus",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 8v6",key:"1ib9pf"}],["path",{d:"M9 11h6",key:"1fldmi"}]]);const Js=rt("mic",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]);const Ws=rt("minimize-2",[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]]);const Rm=rt("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);const Nm=rt("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const jm=rt("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);const Ha=rt("send-horizontal",[["path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",key:"117uat"}],["path",{d:"M6 12h16",key:"s4cdu5"}]]);const Hm=rt("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]);const km=rt("volume-2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);const Um=rt("volume-x",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]]);const Ll=rt("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),p={colors:{panelBackground:"#ffffff",panelBorder:"#e2e8f0",pageBackground:"linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%)",sectionBackground:"#f8fafc",sectionBorder:"#e2e8f0",sectionLabel:"#475569",inputBackground:"#ffffff",inputBorder:"#e2e8f0",inputBorderFocus:"#00c2d1",inputText:"#3c4d73",inputPlaceholder:"#9ca3af",buttonPrimary:"#00c2d1",buttonPrimaryHover:"#00a8b5",buttonPrimaryText:"#ffffff",buttonSecondary:"#f1f5f9",buttonSecondaryHover:"#e2e8f0",buttonSecondaryText:"#64748b",buttonSecondaryActiveText:"#3c4d73",text:"#3c4d73",textLight:"#6b7280",textMuted:"#9ca3af",toggleTrack:"#e2e8f0",toggleTrackActive:"#00c2d1",toggleThumb:"#ffffff",tagBackground:"#e0f2fe",tagText:"#0369a1",tagRemove:"#64748b",tagRemoveHover:"#ef4444",jsonBackground:"#1e293b",jsonText:"#e2e8f0",jsonBorder:"#1e293b",accent:"#00c2d1",error:"#ef4444"},spacing:{xs:"4px",sm:"8px",md:"12px",lg:"16px",xl:"20px"},borderRadius:{sm:"4px",md:"6px",lg:"8px",xl:"12px"},fontFamily:"system-ui, -apple-system, sans-serif",fontFamilyMono:"'Monaco', 'Menlo', 'Ubuntu Mono', monospace",fontSize:{xs:"11px",sm:"12px",xxl:"18px"},fontWeight:{normal:400,medium:500,semibold:600},shadows:{md:"0 1px 3px rgba(0, 0, 0, 0.1)",focus:"0 0 0 2px rgba(0, 194, 209, 0.2)"},transitions:{fast:"0.15s ease"},breakpoints:{mobile:"900px"},layout:{controlsPanelWidth:"400px",minPreviewHeight:"600px"}},da={container:X`
|
|
10
10
|
display: flex;
|
|
11
11
|
align-items: center;
|
|
12
12
|
justify-content: space-between;
|
|
13
13
|
gap: ${p.spacing.sm};
|
|
14
14
|
padding: 6px 0;
|
|
15
|
-
`,labelContainer:
|
|
15
|
+
`,labelContainer:X`
|
|
16
16
|
flex: 1;
|
|
17
17
|
min-width: 0;
|
|
18
|
-
`,label:
|
|
18
|
+
`,label:X`
|
|
19
19
|
display: flex;
|
|
20
20
|
align-items: center;
|
|
21
21
|
gap: 6px;
|
|
22
22
|
font-size: 12px;
|
|
23
23
|
font-weight: ${p.fontWeight.medium};
|
|
24
24
|
color: ${p.colors.text};
|
|
25
|
-
`,paramName:
|
|
25
|
+
`,paramName:X`
|
|
26
26
|
font-size: 10px;
|
|
27
27
|
color: ${p.colors.textMuted};
|
|
28
28
|
font-family: ${p.fontFamilyMono};
|
|
29
29
|
font-weight: ${p.fontWeight.normal};
|
|
30
|
-
`,description:
|
|
30
|
+
`,description:X`
|
|
31
31
|
font-size: 10px;
|
|
32
32
|
color: ${p.colors.textLight};
|
|
33
33
|
margin-top: 2px;
|
|
34
|
-
`,toggle:
|
|
34
|
+
`,toggle:X`
|
|
35
35
|
position: relative;
|
|
36
36
|
width: 40px;
|
|
37
37
|
height: 22px;
|
|
@@ -44,7 +44,7 @@ Error generating stack: `+a.message+`
|
|
|
44
44
|
&.active {
|
|
45
45
|
background: ${p.colors.toggleTrackActive};
|
|
46
46
|
}
|
|
47
|
-
`,thumb:
|
|
47
|
+
`,thumb:X`
|
|
48
48
|
position: absolute;
|
|
49
49
|
top: 2px;
|
|
50
50
|
left: 2px;
|
|
@@ -58,27 +58,27 @@ Error generating stack: `+a.message+`
|
|
|
58
58
|
.active & {
|
|
59
59
|
transform: translateX(18px);
|
|
60
60
|
}
|
|
61
|
-
`},Vi=
|
|
61
|
+
`},Vi=C.memo(function({label:r,description:s,paramName:u,checked:d,onChange:h}){return le("div",{css:da.container,children:[le("div",{css:da.labelContainer,children:[le("div",{css:da.label,children:[r,u&&le("span",{css:da.paramName,children:["(",u,")"]})]}),s&&k("div",{css:da.description,children:s})]}),k("div",{css:da.toggle,className:d?"active":"",onClick:()=>h(!d),children:k("div",{css:da.thumb})})]})}),ha={container:X`
|
|
62
62
|
display: flex;
|
|
63
63
|
flex-direction: column;
|
|
64
64
|
gap: 4px;
|
|
65
65
|
padding: 6px 0;
|
|
66
|
-
`,label:
|
|
66
|
+
`,label:X`
|
|
67
67
|
display: flex;
|
|
68
68
|
align-items: center;
|
|
69
69
|
gap: 6px;
|
|
70
70
|
font-size: 12px;
|
|
71
71
|
font-weight: ${p.fontWeight.medium};
|
|
72
72
|
color: ${p.colors.sectionLabel};
|
|
73
|
-
`,paramName:
|
|
73
|
+
`,paramName:X`
|
|
74
74
|
font-size: 10px;
|
|
75
75
|
color: ${p.colors.textMuted};
|
|
76
76
|
font-family: ${p.fontFamilyMono};
|
|
77
77
|
font-weight: ${p.fontWeight.normal};
|
|
78
|
-
`,required:
|
|
78
|
+
`,required:X`
|
|
79
79
|
color: ${p.colors.error};
|
|
80
80
|
margin-left: 2px;
|
|
81
|
-
`,input:
|
|
81
|
+
`,input:X`
|
|
82
82
|
width: 100%;
|
|
83
83
|
padding: 6px 10px;
|
|
84
84
|
border: 1px solid ${p.colors.inputBorder};
|
|
@@ -98,16 +98,16 @@ Error generating stack: `+a.message+`
|
|
|
98
98
|
border-color: ${p.colors.inputBorderFocus};
|
|
99
99
|
box-shadow: ${p.shadows.focus};
|
|
100
100
|
}
|
|
101
|
-
`,textarea:
|
|
101
|
+
`,textarea:X`
|
|
102
102
|
resize: vertical;
|
|
103
103
|
min-height: 60px;
|
|
104
|
-
`},
|
|
104
|
+
`},dt=C.memo(function({label:r,paramName:s,value:u,onChange:d,placeholder:h,type:y="text",multiline:T=!1,rows:S=3,required:g=!1}){const A={value:u,onChange:z=>d(z.target.value),placeholder:h};return le("div",{css:ha.container,children:[le("label",{css:ha.label,children:[r,g&&k("span",{css:ha.required,children:"*"}),s&&le("span",{css:ha.paramName,children:["(",s,")"]})]}),T?k("textarea",{css:[ha.input,ha.textarea],rows:S,...A}):k("input",{css:ha.input,type:y,...A})]})}),Hn={container:X`
|
|
105
105
|
display: flex;
|
|
106
106
|
align-items: center;
|
|
107
107
|
justify-content: space-between;
|
|
108
108
|
gap: ${p.spacing.sm};
|
|
109
109
|
padding: 4px 0;
|
|
110
|
-
`,label:
|
|
110
|
+
`,label:X`
|
|
111
111
|
display: flex;
|
|
112
112
|
align-items: center;
|
|
113
113
|
gap: 6px;
|
|
@@ -115,20 +115,20 @@ Error generating stack: `+a.message+`
|
|
|
115
115
|
font-weight: ${p.fontWeight.medium};
|
|
116
116
|
color: ${p.colors.sectionLabel};
|
|
117
117
|
flex: 1;
|
|
118
|
-
`,paramName:
|
|
118
|
+
`,paramName:X`
|
|
119
119
|
font-size: 10px;
|
|
120
120
|
color: ${p.colors.textMuted};
|
|
121
121
|
font-family: ${p.fontFamilyMono};
|
|
122
122
|
font-weight: ${p.fontWeight.normal};
|
|
123
|
-
`,inputWrapper:
|
|
123
|
+
`,inputWrapper:X`
|
|
124
124
|
display: flex;
|
|
125
125
|
align-items: center;
|
|
126
126
|
gap: 6px;
|
|
127
|
-
`,colorPreviewWrapper:
|
|
127
|
+
`,colorPreviewWrapper:X`
|
|
128
128
|
position: relative;
|
|
129
129
|
width: 24px;
|
|
130
130
|
height: 24px;
|
|
131
|
-
`,colorPreview:
|
|
131
|
+
`,colorPreview:X`
|
|
132
132
|
width: 24px;
|
|
133
133
|
height: 24px;
|
|
134
134
|
border-radius: 4px;
|
|
@@ -139,7 +139,7 @@ Error generating stack: `+a.message+`
|
|
|
139
139
|
&:hover {
|
|
140
140
|
border-color: ${p.colors.inputBorderFocus};
|
|
141
141
|
}
|
|
142
|
-
`,colorInput:
|
|
142
|
+
`,colorInput:X`
|
|
143
143
|
position: absolute;
|
|
144
144
|
top: 0;
|
|
145
145
|
left: 0;
|
|
@@ -149,7 +149,7 @@ Error generating stack: `+a.message+`
|
|
|
149
149
|
cursor: pointer;
|
|
150
150
|
border: none;
|
|
151
151
|
padding: 0;
|
|
152
|
-
`,textInput:
|
|
152
|
+
`,textInput:X`
|
|
153
153
|
width: 80px;
|
|
154
154
|
padding: 4px 6px;
|
|
155
155
|
border: 1px solid ${p.colors.inputBorder};
|
|
@@ -166,28 +166,28 @@ Error generating stack: `+a.message+`
|
|
|
166
166
|
border-color: ${p.colors.inputBorderFocus};
|
|
167
167
|
box-shadow: ${p.shadows.focus};
|
|
168
168
|
}
|
|
169
|
-
`},ka=
|
|
169
|
+
`},ka=C.memo(function({label:r,paramName:s,value:u,onChange:d}){const h=y=>{let T=y.target.value;T&&!T.startsWith("#")&&(T="#"+T),d(T)};return le("div",{css:Hn.container,children:[le("div",{css:Hn.label,children:[r,s&&le("span",{css:Hn.paramName,children:["(",s,")"]})]}),le("div",{css:Hn.inputWrapper,children:[le("div",{css:Hn.colorPreviewWrapper,children:[k("div",{css:Hn.colorPreview,style:{backgroundColor:u}}),k("input",{css:Hn.colorInput,type:"color",value:u,onChange:y=>d(y.target.value)})]}),k("input",{css:Hn.textInput,type:"text",value:u,onChange:h})]})]})}),Ua={container:X`
|
|
170
170
|
display: flex;
|
|
171
171
|
flex-direction: column;
|
|
172
172
|
gap: 4px;
|
|
173
173
|
padding: 6px 0;
|
|
174
|
-
`,label:
|
|
174
|
+
`,label:X`
|
|
175
175
|
display: flex;
|
|
176
176
|
align-items: center;
|
|
177
177
|
gap: 6px;
|
|
178
178
|
font-size: 12px;
|
|
179
179
|
font-weight: ${p.fontWeight.medium};
|
|
180
180
|
color: ${p.colors.sectionLabel};
|
|
181
|
-
`,paramName:
|
|
181
|
+
`,paramName:X`
|
|
182
182
|
font-size: 10px;
|
|
183
183
|
color: ${p.colors.textMuted};
|
|
184
184
|
font-family: ${p.fontFamilyMono};
|
|
185
185
|
font-weight: ${p.fontWeight.normal};
|
|
186
|
-
`,selectWrapper:
|
|
186
|
+
`,selectWrapper:X`
|
|
187
187
|
position: relative;
|
|
188
188
|
display: flex;
|
|
189
189
|
align-items: center;
|
|
190
|
-
`,select:
|
|
190
|
+
`,select:X`
|
|
191
191
|
width: 100%;
|
|
192
192
|
padding: 6px 10px;
|
|
193
193
|
padding-right: 30px;
|
|
@@ -206,32 +206,32 @@ Error generating stack: `+a.message+`
|
|
|
206
206
|
border-color: ${p.colors.inputBorderFocus};
|
|
207
207
|
box-shadow: ${p.shadows.focus};
|
|
208
208
|
}
|
|
209
|
-
`,icon:
|
|
209
|
+
`,icon:X`
|
|
210
210
|
position: absolute;
|
|
211
211
|
right: 10px;
|
|
212
212
|
pointer-events: none;
|
|
213
213
|
color: ${p.colors.textLight};
|
|
214
|
-
`},Qr=
|
|
214
|
+
`},Qr=C.memo(function({label:r,paramName:s,value:u,onChange:d,options:h}){return le("div",{css:Ua.container,children:[le("label",{css:Ua.label,children:[r,s&&le("span",{css:Ua.paramName,children:["(",s,")"]})]}),le("div",{css:Ua.selectWrapper,children:[k("select",{css:Ua.select,value:u,onChange:y=>d(y.target.value),children:h.map(y=>k("option",{value:y.value,children:y.label},y.value))}),k(_m,{css:Ua.icon,size:16})]})]})}),tn={container:X`
|
|
215
215
|
display: flex;
|
|
216
216
|
flex-direction: column;
|
|
217
217
|
gap: 4px;
|
|
218
218
|
padding: 6px 0;
|
|
219
|
-
`,label:
|
|
219
|
+
`,label:X`
|
|
220
220
|
display: flex;
|
|
221
221
|
align-items: center;
|
|
222
222
|
gap: 6px;
|
|
223
223
|
font-size: 12px;
|
|
224
224
|
font-weight: ${p.fontWeight.medium};
|
|
225
225
|
color: ${p.colors.sectionLabel};
|
|
226
|
-
`,paramName:
|
|
226
|
+
`,paramName:X`
|
|
227
227
|
font-size: 10px;
|
|
228
228
|
color: ${p.colors.textMuted};
|
|
229
229
|
font-family: ${p.fontFamilyMono};
|
|
230
230
|
font-weight: ${p.fontWeight.normal};
|
|
231
|
-
`,inputRow:
|
|
231
|
+
`,inputRow:X`
|
|
232
232
|
display: flex;
|
|
233
233
|
gap: 6px;
|
|
234
|
-
`,input:
|
|
234
|
+
`,input:X`
|
|
235
235
|
flex: 1;
|
|
236
236
|
padding: 6px 10px;
|
|
237
237
|
border: 1px solid ${p.colors.inputBorder};
|
|
@@ -251,7 +251,7 @@ Error generating stack: `+a.message+`
|
|
|
251
251
|
border-color: ${p.colors.inputBorderFocus};
|
|
252
252
|
box-shadow: ${p.shadows.focus};
|
|
253
253
|
}
|
|
254
|
-
`,addButton:
|
|
254
|
+
`,addButton:X`
|
|
255
255
|
display: flex;
|
|
256
256
|
align-items: center;
|
|
257
257
|
justify-content: center;
|
|
@@ -272,12 +272,12 @@ Error generating stack: `+a.message+`
|
|
|
272
272
|
opacity: 0.5;
|
|
273
273
|
cursor: not-allowed;
|
|
274
274
|
}
|
|
275
|
-
`,tagsContainer:
|
|
275
|
+
`,tagsContainer:X`
|
|
276
276
|
display: flex;
|
|
277
277
|
flex-wrap: wrap;
|
|
278
278
|
gap: 6px;
|
|
279
279
|
margin-top: 4px;
|
|
280
|
-
`,tag:
|
|
280
|
+
`,tag:X`
|
|
281
281
|
display: flex;
|
|
282
282
|
align-items: center;
|
|
283
283
|
gap: 4px;
|
|
@@ -286,12 +286,12 @@ Error generating stack: `+a.message+`
|
|
|
286
286
|
border-radius: 12px;
|
|
287
287
|
font-size: 11px;
|
|
288
288
|
color: ${p.colors.tagText};
|
|
289
|
-
`,tagText:
|
|
289
|
+
`,tagText:X`
|
|
290
290
|
max-width: 180px;
|
|
291
291
|
overflow: hidden;
|
|
292
292
|
text-overflow: ellipsis;
|
|
293
293
|
white-space: nowrap;
|
|
294
|
-
`,removeButton:
|
|
294
|
+
`,removeButton:X`
|
|
295
295
|
display: flex;
|
|
296
296
|
align-items: center;
|
|
297
297
|
justify-content: center;
|
|
@@ -307,53 +307,53 @@ Error generating stack: `+a.message+`
|
|
|
307
307
|
&:hover {
|
|
308
308
|
color: ${p.colors.tagRemoveHover};
|
|
309
309
|
}
|
|
310
|
-
`,emptyMessage:
|
|
310
|
+
`,emptyMessage:X`
|
|
311
311
|
font-size: 11px;
|
|
312
312
|
color: ${p.colors.textMuted};
|
|
313
313
|
font-style: italic;
|
|
314
|
-
`},
|
|
314
|
+
`},qm=C.memo(function({label:r,paramName:s,values:u,onChange:d,placeholder:h="Add item..."}){const[y,T]=C.useState(""),S=()=>{const z=y.trim();z&&!u.includes(z)&&(d([...u,z]),T(""))},g=z=>{d(u.filter((U,V)=>V!==z))},A=z=>{z.key==="Enter"&&(z.preventDefault(),S())};return le("div",{css:tn.container,children:[le("label",{css:tn.label,children:[r,s&&le("span",{css:tn.paramName,children:["(",s,")"]})]}),le("div",{css:tn.inputRow,children:[k("input",{css:tn.input,type:"text",value:y,onChange:z=>T(z.target.value),onKeyDown:A,placeholder:h}),k("button",{css:tn.addButton,onClick:S,disabled:!y.trim(),children:k(Nm,{size:18})})]}),k("div",{css:tn.tagsContainer,children:u.length===0?k("span",{css:tn.emptyMessage,children:"No items added"}):u.map((z,U)=>le("div",{css:tn.tag,children:[k("span",{css:tn.tagText,children:z}),k("button",{css:tn.removeButton,onClick:()=>g(U),children:k(Ll,{size:14})})]},U))})]})}),Zi={section:X`
|
|
315
315
|
padding: ${p.spacing.md} ${p.spacing.lg};
|
|
316
316
|
border-bottom: 1px solid ${p.colors.sectionBorder};
|
|
317
317
|
|
|
318
318
|
&:last-child {
|
|
319
319
|
border-bottom: none;
|
|
320
320
|
}
|
|
321
|
-
`,titleRow:
|
|
321
|
+
`,titleRow:X`
|
|
322
322
|
display: flex;
|
|
323
323
|
align-items: center;
|
|
324
324
|
justify-content: space-between;
|
|
325
325
|
margin-bottom: ${p.spacing.xs};
|
|
326
|
-
`,title:
|
|
326
|
+
`,title:X`
|
|
327
327
|
font-size: 10px;
|
|
328
328
|
font-weight: ${p.fontWeight.semibold};
|
|
329
329
|
color: ${p.colors.textMuted};
|
|
330
330
|
text-transform: uppercase;
|
|
331
331
|
letter-spacing: 0.05em;
|
|
332
|
-
`,content:
|
|
332
|
+
`,content:X`
|
|
333
333
|
display: flex;
|
|
334
334
|
flex-direction: column;
|
|
335
335
|
gap: 2px;
|
|
336
|
-
`},nn=
|
|
336
|
+
`},nn=C.memo(function({title:r,children:s,action:u}){return le("div",{css:Zi.section,children:[le("div",{css:Zi.titleRow,children:[k("div",{css:Zi.title,children:r}),u]}),k("div",{css:Zi.content,children:s})]})}),yn={groupedControls:X`
|
|
337
337
|
background: ${p.colors.sectionBackground};
|
|
338
338
|
border-radius: ${p.borderRadius.md};
|
|
339
339
|
margin-bottom: ${p.spacing.xs};
|
|
340
340
|
overflow: hidden;
|
|
341
|
-
`,nestedControl:
|
|
341
|
+
`,nestedControl:X`
|
|
342
342
|
padding: 0 ${p.spacing.sm};
|
|
343
343
|
border-top: 1px solid ${p.colors.sectionBorder};
|
|
344
|
-
`,toggleContainer:
|
|
344
|
+
`,toggleContainer:X`
|
|
345
345
|
padding: 0 ${p.spacing.sm};
|
|
346
|
-
`},
|
|
346
|
+
`},Lm=C.memo(function(){const{widgetConfig:r,updateWidgetConfig:s}=Gt(),u=T=>{s({floatingMode:T},!0)},d=T=>{s({position:T},!0)},h=T=>{s({fabIcon:T})},y=T=>{s({colorMode:T},!0)};return le(nn,{title:"Display Settings",children:[k("div",{css:yn.groupedControls,children:k("div",{css:yn.toggleContainer,children:k(Qr,{label:"Color Mode",paramName:"colorMode",value:r.colorMode,onChange:y,options:[{value:"light",label:"Light"},{value:"dark",label:"Dark"},{value:"system",label:"System (auto)"}]})})}),le("div",{css:yn.groupedControls,children:[k("div",{css:yn.toggleContainer,children:k(Vi,{label:"Floating Mode",paramName:"floatingMode",description:"Show FAB button instead of inline",checked:r.floatingMode,onChange:u})}),r.floatingMode&&le(ql,{children:[k("div",{css:yn.nestedControl,children:k(Qr,{label:"Position",paramName:"position",value:r.position,onChange:d,options:[{value:"bottom-right",label:"Bottom Right"},{value:"bottom-left",label:"Bottom Left"}]})}),k("div",{css:yn.nestedControl,children:k(dt,{label:"FAB Icon URL",paramName:"fabIcon",value:r.fabIcon,onChange:h,placeholder:"https://example.com/icon.png"})})]})]}),le("div",{css:yn.groupedControls,children:[k("div",{css:yn.toggleContainer,children:k(Vi,{label:"Hide Expand Button",paramName:"hideExpandButton",description:"Hide the expand/minimize button from header",checked:r.hideExpandButton,onChange:T=>s({hideExpandButton:T},!0)})}),k("div",{css:yn.nestedControl,children:k(Vi,{label:"Show Close Slot",paramName:"showCloseSlot",description:"Show empty placeholder for custom close button",checked:r.showCloseSlot,onChange:T=>s({showCloseSlot:T},!0)})})]})]})});function Ym(l){const r={},s=l.match(/curl\s+['"]([^'"]+)['"]/);s&&(r.apiEndpoint=s[1].replace(/\/api\/(patient|staff)\/chat(\/.*)?$/,""));const u=l.match(/-H\s+['"]Authorization:\s*Bearer\s+([^'"]+)['"]/);u&&(r.token=u[1].trim());const d=l.match(/--data-raw\s+'(\{[^']+\})/)||l.match(/--data-raw\s+"(\{[^"]+\})/)||l.match(/-d\s+'(\{[^']+\})/)||l.match(/-d\s+"(\{[^"]+\})/);if(d)try{const h=JSON.parse(d[1]);h.sessionId&&(r.sessionId=h.sessionId),h.assistantId&&(r.assistantId=h.assistantId)}catch{}return r}const Et={groupedControls:X`
|
|
347
347
|
background: ${p.colors.sectionBackground};
|
|
348
348
|
border-radius: ${p.borderRadius.md};
|
|
349
349
|
margin-bottom: ${p.spacing.xs};
|
|
350
350
|
overflow: hidden;
|
|
351
|
-
`,nestedControl:
|
|
351
|
+
`,nestedControl:X`
|
|
352
352
|
padding: 0 ${p.spacing.sm};
|
|
353
353
|
border-top: 1px solid ${p.colors.sectionBorder};
|
|
354
|
-
`,toggleContainer:
|
|
354
|
+
`,toggleContainer:X`
|
|
355
355
|
padding: 0 ${p.spacing.sm};
|
|
356
|
-
`,syncButton:
|
|
356
|
+
`,syncButton:X`
|
|
357
357
|
display: flex;
|
|
358
358
|
align-items: center;
|
|
359
359
|
justify-content: center;
|
|
@@ -387,7 +387,7 @@ Error generating stack: `+a.message+`
|
|
|
387
387
|
background: ${p.colors.buttonSecondary};
|
|
388
388
|
}
|
|
389
389
|
}
|
|
390
|
-
`,importButton:
|
|
390
|
+
`,importButton:X`
|
|
391
391
|
display: flex;
|
|
392
392
|
align-items: center;
|
|
393
393
|
gap: ${p.spacing.xs};
|
|
@@ -404,9 +404,9 @@ Error generating stack: `+a.message+`
|
|
|
404
404
|
color: ${p.colors.text};
|
|
405
405
|
border-color: ${p.colors.textMuted};
|
|
406
406
|
}
|
|
407
|
-
`,curlArea:
|
|
407
|
+
`,curlArea:X`
|
|
408
408
|
margin-bottom: ${p.spacing.sm};
|
|
409
|
-
`,curlTextarea:
|
|
409
|
+
`,curlTextarea:X`
|
|
410
410
|
width: 100%;
|
|
411
411
|
min-height: 80px;
|
|
412
412
|
padding: ${p.spacing.sm};
|
|
@@ -428,7 +428,7 @@ Error generating stack: `+a.message+`
|
|
|
428
428
|
&::placeholder {
|
|
429
429
|
color: ${p.colors.textMuted};
|
|
430
430
|
}
|
|
431
|
-
`,parseButton:
|
|
431
|
+
`,parseButton:X`
|
|
432
432
|
display: flex;
|
|
433
433
|
align-items: center;
|
|
434
434
|
justify-content: center;
|
|
@@ -453,13 +453,13 @@ Error generating stack: `+a.message+`
|
|
|
453
453
|
color: ${p.colors.textMuted};
|
|
454
454
|
cursor: not-allowed;
|
|
455
455
|
}
|
|
456
|
-
`},
|
|
456
|
+
`},Gm=C.memo(function(){const{widgetConfig:r,updateWidgetConfig:s,mockEnabled:u,setMockEnabled:d,reinitWidget:h}=Gt(),[y,T]=C.useState(!1),[S,g]=C.useState(""),[A,z]=C.useState(!1),U=G=>{s({userType:G})},V=G=>{s({apiEndpoint:G})},Q=G=>{s({token:G})},Y=G=>{s({loadHistory:G})},D=G=>{s({sessionId:G})},K=G=>{s({assistantId:G})},P=G=>{s({contextPatientId:G})},Z=G=>{s({patientTypeId:G})},re=()=>{h()},L=C.useCallback(()=>{const G=Ym(S);s(G),z(!0),setTimeout(()=>{z(!1),T(!1),g("")},1e3)},[S,s]),ae=!!(r.apiEndpoint&&r.token);return le(nn,{title:"API Configuration",action:le("button",{type:"button",css:Et.importButton,onClick:()=>T(!y),children:[k(Hm,{size:12}),"Import cURL"]}),children:[y&&le("div",{css:Et.curlArea,children:[k("textarea",{css:Et.curlTextarea,value:S,onChange:G=>g(G.target.value),placeholder:"Paste cURL command here..."}),k("button",{type:"button",css:Et.parseButton,onClick:L,disabled:!S.trim(),children:A?le(ql,{children:[k(wm,{size:12})," Imported"]}):"Parse & Fill"})]}),le("div",{css:Et.groupedControls,children:[!1,le(ql,{children:[k("div",{css:Et.toggleContainer,children:k(Qr,{label:"User Type",paramName:"userType",value:r.userType,onChange:U,options:[{value:"patient",label:"Patient"},{value:"staff",label:"Staff"}]})}),k("div",{css:Et.nestedControl,children:k(dt,{label:"API Endpoint",paramName:"apiEndpoint",value:r.apiEndpoint,onChange:V,placeholder:"https://your-api.com",required:!0})}),k("div",{css:Et.nestedControl,children:k(dt,{label:"Auth Token",paramName:"token",value:r.token,onChange:Q,type:"password",placeholder:"your-auth-token",required:!0})}),k("div",{css:Et.nestedControl,children:k(dt,{label:"Session ID",paramName:"sessionId",value:r.sessionId,onChange:D,placeholder:"Existing session to resume"})}),k("div",{css:Et.nestedControl,children:k(dt,{label:"Assistant ID",paramName:"assistantId",value:r.assistantId,onChange:K,placeholder:"Specific assistant to use"})}),k("div",{css:Et.nestedControl,children:k(dt,{label:"Context Patient ID",paramName:"contextPatientId",value:r.contextPatientId,onChange:P,placeholder:"Patient context"})}),r.userType==="staff"&&k("div",{css:Et.nestedControl,children:k(dt,{label:"Patient Type ID",paramName:"patientTypeId",value:r.patientTypeId,onChange:Z,placeholder:"Patient type for assistant lookup"})}),k("div",{css:Et.nestedControl,children:k(Vi,{label:"Load History",paramName:"loadHistory",description:"Load previous messages",checked:r.loadHistory,onChange:Y})})]})]}),le("button",{type:"button",css:Et.syncButton,onClick:re,disabled:!ae,children:[k(jm,{size:16}),"Sync"]})]})}),Qm=C.memo(function(){const{widgetConfig:r,updateWidgetConfig:s}=Gt(),u=d=>{s({headerIcon:d},!0)};return k(nn,{title:"Appearance",children:k(dt,{label:"Header Icon URL",paramName:"headerIcon",value:r.headerIcon,onChange:u,placeholder:"https://example.com/icon.png"})})}),Xm=C.memo(function(){const{widgetConfig:r,updateWidgetConfig:s}=Gt(),u=(d,h)=>{s({[d]:h},!0)};return le(nn,{title:"Theme Colors",children:[k(ka,{label:"Primary",paramName:"primary",value:r.primaryColor,onChange:d=>u("primaryColor",d)}),k(ka,{label:"Secondary",paramName:"secondary",value:r.secondaryColor,onChange:d=>u("secondaryColor",d)}),k(ka,{label:"User Bubble",paramName:"userBubble",value:r.userBubbleColor,onChange:d=>u("userBubbleColor",d)}),k(ka,{label:"User Bubble Text",paramName:"userBubbleText",value:r.userBubbleTextColor,onChange:d=>u("userBubbleTextColor",d)}),k(ka,{label:"Bot Bubble",paramName:"botBubble",value:r.botBubbleColor,onChange:d=>u("botBubbleColor",d)}),k(ka,{label:"Bot Bubble Text",paramName:"botBubbleText",value:r.botBubbleTextColor,onChange:d=>u("botBubbleTextColor",d)})]})}),Vm=C.memo(function(){const{widgetConfig:r,updateWidgetConfig:s}=Gt(),u=(d,h)=>{s({[d]:h},!0)};return le(nn,{title:"Theme Properties",children:[k(dt,{label:"Font Family",paramName:"fontFamily",value:r.fontFamily,onChange:d=>u("fontFamily",d),placeholder:"Font family"}),k(dt,{label:"Border Radius",paramName:"borderRadius",value:r.borderRadius,onChange:d=>u("borderRadius",d),placeholder:"e.g. 12px"}),k(dt,{label:"Box Shadow",paramName:"shadow",value:r.shadow,onChange:d=>u("shadow",d),placeholder:"CSS box-shadow"})]})}),Zm=C.memo(function(){const{widgetConfig:r,updateWidgetConfig:s}=Gt(),u=(d,h)=>{s({[d]:h},!0)};return le(nn,{title:"Header",children:[k(dt,{label:"Title",paramName:"headerTitle",value:r.headerTitle,onChange:d=>u("headerTitle",d),placeholder:"Header title"}),k(dt,{label:"Subtitle",paramName:"headerSubtitle",value:r.headerSubtitle,onChange:d=>u("headerSubtitle",d),placeholder:"Optional subtitle"})]})}),Km=C.memo(function(){const{widgetConfig:r,updateWidgetConfig:s}=Gt(),u=(d,h)=>{s({[d]:h},!0)};return le(nn,{title:"Content",children:[k(dt,{label:"Greeting Message",paramName:"greeting",value:r.greeting,onChange:d=>u("greeting",d),placeholder:"Initial bot message"}),k(dt,{label:"Input Placeholder",paramName:"placeholder",value:r.placeholder,onChange:d=>u("placeholder",d),placeholder:"Placeholder text"}),k(dt,{label:"Disclaimer Text",paramName:"disclaimerText",value:r.disclaimerText,onChange:d=>u("disclaimerText",d),placeholder:"AI can make mistakes. Verify important information."})]})}),Jm=C.memo(function(){const{widgetConfig:r,updateWidgetConfig:s}=Gt(),u=d=>{s({brandingText:d},!0)};return k(nn,{title:"Branding",children:k(dt,{label:"Branding Text",paramName:"brandingText",value:r.brandingText,onChange:u,placeholder:"Footer text"})})}),Wm=C.memo(function(){const{widgetConfig:r,updateWidgetConfig:s,reinitWidget:u}=Gt(),d=h=>{s({quickActions:h}),u()};return k(nn,{title:"Quick Actions",children:k(qm,{label:"Add Action",paramName:"quickActions",values:r.quickActions,onChange:d,placeholder:"e.g. Book appointment"})})}),kn={container:X`
|
|
457
457
|
display: flex;
|
|
458
458
|
flex-direction: column;
|
|
459
459
|
flex: 1;
|
|
460
460
|
min-height: 0;
|
|
461
461
|
padding: 0 ${p.spacing.xl} ${p.spacing.xl} ${p.spacing.xl};
|
|
462
|
-
`,textarea:
|
|
462
|
+
`,textarea:X`
|
|
463
463
|
width: 100%;
|
|
464
464
|
flex: 1;
|
|
465
465
|
min-height: 200px;
|
|
@@ -478,13 +478,13 @@ Error generating stack: `+a.message+`
|
|
|
478
478
|
border-color: ${p.colors.accent};
|
|
479
479
|
box-shadow: ${p.shadows.focus};
|
|
480
480
|
}
|
|
481
|
-
`,actions:
|
|
481
|
+
`,actions:X`
|
|
482
482
|
display: flex;
|
|
483
483
|
justify-content: flex-end;
|
|
484
484
|
gap: ${p.spacing.sm};
|
|
485
485
|
margin-top: ${p.spacing.sm};
|
|
486
486
|
flex-shrink: 0;
|
|
487
|
-
`,button:
|
|
487
|
+
`,button:X`
|
|
488
488
|
padding: 6px 14px;
|
|
489
489
|
border: none;
|
|
490
490
|
border-radius: 4px;
|
|
@@ -492,33 +492,33 @@ Error generating stack: `+a.message+`
|
|
|
492
492
|
font-weight: ${p.fontWeight.medium};
|
|
493
493
|
cursor: pointer;
|
|
494
494
|
transition: background ${p.transitions.fast};
|
|
495
|
-
`,primaryButton:
|
|
495
|
+
`,primaryButton:X`
|
|
496
496
|
background: ${p.colors.buttonPrimary};
|
|
497
497
|
color: ${p.colors.buttonPrimaryText};
|
|
498
498
|
|
|
499
499
|
&:hover {
|
|
500
500
|
background: ${p.colors.buttonPrimaryHover};
|
|
501
501
|
}
|
|
502
|
-
`,secondaryButton:
|
|
502
|
+
`,secondaryButton:X`
|
|
503
503
|
background: ${p.colors.buttonSecondary};
|
|
504
504
|
color: ${p.colors.buttonSecondaryText};
|
|
505
505
|
|
|
506
506
|
&:hover {
|
|
507
507
|
background: ${p.colors.buttonSecondaryHover};
|
|
508
508
|
}
|
|
509
|
-
`,error:
|
|
509
|
+
`,error:X`
|
|
510
510
|
color: ${p.colors.error};
|
|
511
511
|
font-size: ${p.fontSize.sm};
|
|
512
512
|
margin-top: ${p.spacing.sm};
|
|
513
|
-
`};function
|
|
513
|
+
`};function Fm(l){return{floatingMode:l.floatingMode,position:l.position,headerTitle:l.headerTitle,headerSubtitle:l.headerSubtitle||void 0,headerIcon:l.headerIcon||void 0,fabIcon:l.fabIcon||void 0,greeting:l.greeting,placeholder:l.placeholder,brandingText:l.brandingText,loadHistory:l.loadHistory,quickActions:l.quickActions,theme:{colors:{primary:l.primaryColor,secondary:l.secondaryColor,userBubble:l.userBubbleColor,userBubbleText:l.userBubbleTextColor,botBubble:l.botBubbleColor,botBubbleText:l.botBubbleTextColor},fontFamily:l.fontFamily,borderRadius:l.borderRadius,shadow:l.shadow}}}function Im(l){const r=l.theme||{},s=r.colors||{};return{...ee,apiEndpoint:l.apiEndpoint||ee.apiEndpoint,token:l.token||ee.token,userType:l.userType||ee.userType,loadHistory:l.loadHistory!==void 0?!!l.loadHistory:ee.loadHistory,sessionId:l.sessionId||ee.sessionId,assistantId:l.assistantId||ee.assistantId,contextPatientId:l.contextPatientId||ee.contextPatientId,patientTypeId:l.patientTypeId||ee.patientTypeId,floatingMode:l.floatingMode!==void 0?!!l.floatingMode:ee.floatingMode,position:l.position||ee.position,headerIcon:l.headerIcon||ee.headerIcon,fabIcon:l.fabIcon||ee.fabIcon,headerTitle:l.headerTitle||ee.headerTitle,headerSubtitle:l.headerSubtitle||ee.headerSubtitle,greeting:l.greeting||ee.greeting,placeholder:l.placeholder||ee.placeholder,brandingText:l.brandingText||ee.brandingText,quickActions:Array.isArray(l.quickActions)?l.quickActions:ee.quickActions,primaryColor:s.primary||ee.primaryColor,secondaryColor:s.secondary||ee.secondaryColor,userBubbleColor:s.userBubble||ee.userBubbleColor,userBubbleTextColor:s.userBubbleText||ee.userBubbleTextColor,botBubbleColor:s.botBubble||ee.botBubbleColor,botBubbleTextColor:s.botBubbleText||ee.botBubbleTextColor,fontFamily:r.fontFamily||ee.fontFamily,borderRadius:r.borderRadius||ee.borderRadius,shadow:r.shadow||ee.shadow}}const Pm=C.memo(function(){const{widgetConfig:r,setWidgetConfig:s,reinitWidget:u}=Gt(),[d,h]=C.useState(""),[y,T]=C.useState("");C.useEffect(()=>{const A=Fm(r);h(JSON.stringify(A,null,2)),T("")},[r]);const S=()=>{try{const A=JSON.parse(d),z=Im(A);s(z),u(),T("")}catch(A){T(A instanceof Error?A.message:"Invalid JSON")}},g=async()=>{try{await navigator.clipboard.writeText(d)}catch(A){console.error("Failed to copy:",A)}};return le("div",{css:kn.container,children:[k("textarea",{css:kn.textarea,value:d,onChange:A=>h(A.target.value),spellCheck:!1}),le("div",{css:kn.actions,children:[k("button",{css:[kn.button,kn.primaryButton],onClick:S,children:"Apply"}),k("button",{css:[kn.button,kn.secondaryButton],onClick:g,children:"Copy"})]}),y&&k("div",{css:kn.error,children:y})]})}),ey=[{id:"q1",type:"CHOICE",question:"How would you rate your overall health?",options:["Excellent","Good","Fair","Poor"],allowOther:!0,required:!1},{id:"q2",type:"CHOICE_WITH_SCALE",question:"On a scale of 1-10, how much pain are you experiencing?",scale:{min:1,max:10,minLabel:"No pain",maxLabel:"Severe pain"},required:!0},{id:"q3",type:"BOOLEAN",question:"Have you taken any medications today?",required:!0},{id:"q4",type:"STRING",question:"Please describe your symptoms in detail.",placeholder:"Describe how you are feeling...",required:!1},{id:"q5",type:"INTEGER",question:"How many hours of sleep did you get last night?",placeholder:"Enter hours...",required:!0},{id:"q6",type:"DATE",question:"When did your symptoms first appear?",required:!1},{id:"q7",type:"CHOICE",question:"What's your favorite season?",options:["Spring","Summer","Autumn","Winter"],allowOther:!0,required:!1}],Fs=l=>ey.find(r=>r.type===l),Xr={container:X`
|
|
514
514
|
display: flex;
|
|
515
515
|
flex-direction: column;
|
|
516
516
|
gap: ${p.spacing.sm};
|
|
517
|
-
`,buttonGrid:
|
|
517
|
+
`,buttonGrid:X`
|
|
518
518
|
display: grid;
|
|
519
519
|
grid-template-columns: repeat(2, 1fr);
|
|
520
520
|
gap: ${p.spacing.xs};
|
|
521
|
-
`,button:
|
|
521
|
+
`,button:X`
|
|
522
522
|
display: flex;
|
|
523
523
|
align-items: center;
|
|
524
524
|
justify-content: center;
|
|
@@ -546,11 +546,11 @@ Error generating stack: `+a.message+`
|
|
|
546
546
|
opacity: 0.5;
|
|
547
547
|
cursor: not-allowed;
|
|
548
548
|
}
|
|
549
|
-
`},Is={CHOICE:"Choice",CHOICE_WITH_SCALE:"Scale",STRING:"Text",INTEGER:"Number",DECIMAL:"Decimal",BOOLEAN:"Yes/No",DATE:"Date",DATE_TIME:"DateTime",CHOICE_WITH_IMAGES:"Images"},
|
|
549
|
+
`},Is={CHOICE:"Choice",CHOICE_WITH_SCALE:"Scale",STRING:"Text",INTEGER:"Number",DECIMAL:"Decimal",BOOLEAN:"Yes/No",DATE:"Date",DATE_TIME:"DateTime",CHOICE_WITH_IMAGES:"Images"},ty=C.memo(function({widgetApi:r}){const s=C.useCallback(d=>{if(!r)return;const h=Fs(d);h&&r.triggerSurveyQuestion(h,{currentIndex:0,totalQuestions:1})},[r]),u=r!==null;return k(nn,{title:"Survey Questions Preview",children:k("div",{css:Xr.container,children:k("div",{css:Xr.buttonGrid,children:Object.keys(Is).filter(d=>Fs(d)).map(d=>k("button",{type:"button",css:Xr.button,onClick:()=>s(d),disabled:!u,children:Is[d]},d))})})})}),Ps={container:X`
|
|
550
550
|
display: flex;
|
|
551
551
|
flex-direction: column;
|
|
552
552
|
gap: ${p.spacing.sm};
|
|
553
|
-
`,button:
|
|
553
|
+
`,button:X`
|
|
554
554
|
display: flex;
|
|
555
555
|
align-items: center;
|
|
556
556
|
justify-content: center;
|
|
@@ -578,7 +578,7 @@ Error generating stack: `+a.message+`
|
|
|
578
578
|
opacity: 0.5;
|
|
579
579
|
cursor: not-allowed;
|
|
580
580
|
}
|
|
581
|
-
`},
|
|
581
|
+
`},ny=[{id:"1",thumbnail:"https://picsum.photos/seed/sleep1/300/200",title:"Coach Paul's Top Tips For Unwinding Before Bed",description:"Learn relaxation techniques for better sleep",content:"https://picsum.photos/seed/sleep1/600/400",createdAt:new Date().toISOString(),source:"EXPERIENCE LIFE",contentType:"Article",contentFormat:"IMAGE"},{id:"2",thumbnail:"https://picsum.photos/seed/sleep2/300/200",title:"Guided Sleep Meditation Video",description:"A calming video to help you fall asleep",content:"https://www.w3schools.com/html/mov_bbb.mp4",createdAt:new Date().toISOString(),source:"WELLNESS TV",contentType:"Video",contentFormat:"VIDEO"},{id:"3",thumbnail:"https://picsum.photos/seed/health3/300/200",title:"Patient Health Guide",description:"Comprehensive health information PDF",content:"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",createdAt:new Date().toISOString(),source:"HEALTH DOCS",contentType:"PDF",contentFormat:"PDF"},{id:"4",thumbnail:"https://picsum.photos/seed/exercise4/300/200",title:"Relaxation Audio Session",description:"Listen to calming sounds for relaxation",content:"https://www.w3schools.com/html/horse.ogg",createdAt:new Date().toISOString(),source:"AUDIO WELLNESS",contentType:"Audio",contentFormat:"AUDIO"}],ay=C.memo(function({widgetApi:r}){const s=C.useCallback(()=>{r&&r.triggerCitations(ny)},[r]),u=r!==null;return k(nn,{title:"Content Preview",children:k("div",{css:Ps.container,children:k("button",{type:"button",css:Ps.button,onClick:s,disabled:!u,children:"Show Content Cards"})})})}),fn={panel:X`
|
|
582
582
|
display: flex;
|
|
583
583
|
flex-direction: column;
|
|
584
584
|
background: ${p.colors.panelBackground};
|
|
@@ -591,26 +591,26 @@ Error generating stack: `+a.message+`
|
|
|
591
591
|
max-height: none;
|
|
592
592
|
overflow-y: visible;
|
|
593
593
|
}
|
|
594
|
-
`,header:
|
|
594
|
+
`,header:X`
|
|
595
595
|
padding: ${p.spacing.xl} ${p.spacing.xl} 0 ${p.spacing.xl};
|
|
596
596
|
margin-bottom: ${p.spacing.xl};
|
|
597
597
|
flex-shrink: 0;
|
|
598
|
-
`,title:
|
|
598
|
+
`,title:X`
|
|
599
599
|
font-size: ${p.fontSize.xxl};
|
|
600
600
|
font-weight: ${p.fontWeight.semibold};
|
|
601
601
|
color: ${p.colors.text};
|
|
602
602
|
margin-bottom: ${p.spacing.xs};
|
|
603
|
-
`,subtitle:
|
|
603
|
+
`,subtitle:X`
|
|
604
604
|
font-size: ${p.fontSize.sm};
|
|
605
605
|
color: ${p.colors.textLight};
|
|
606
606
|
margin-bottom: ${p.spacing.md};
|
|
607
|
-
`,modeSwitcher:
|
|
607
|
+
`,modeSwitcher:X`
|
|
608
608
|
display: flex;
|
|
609
609
|
background: ${p.colors.buttonSecondary};
|
|
610
610
|
border-radius: 6px;
|
|
611
611
|
padding: 3px;
|
|
612
612
|
gap: 2px;
|
|
613
|
-
`,modeButton:
|
|
613
|
+
`,modeButton:X`
|
|
614
614
|
flex: 1;
|
|
615
615
|
display: flex;
|
|
616
616
|
align-items: center;
|
|
@@ -630,11 +630,11 @@ Error generating stack: `+a.message+`
|
|
|
630
630
|
color: ${p.colors.buttonSecondaryActiveText};
|
|
631
631
|
background: rgba(255, 255, 255, 0.5);
|
|
632
632
|
}
|
|
633
|
-
`,modeButtonActive:
|
|
633
|
+
`,modeButtonActive:X`
|
|
634
634
|
background: ${p.colors.panelBackground};
|
|
635
635
|
color: ${p.colors.buttonSecondaryActiveText};
|
|
636
636
|
box-shadow: ${p.shadows.md};
|
|
637
|
-
`,formContainer:
|
|
637
|
+
`,formContainer:X`
|
|
638
638
|
flex: 1;
|
|
639
639
|
overflow-y: auto;
|
|
640
640
|
padding: 0 ${p.spacing.xl} ${p.spacing.xl} ${p.spacing.xl};
|
|
@@ -658,9 +658,9 @@ Error generating stack: `+a.message+`
|
|
|
658
658
|
&::-webkit-scrollbar-thumb:hover {
|
|
659
659
|
background-color: rgba(60, 77, 115, 0.3);
|
|
660
660
|
}
|
|
661
|
-
`,hidden:
|
|
661
|
+
`,hidden:X`
|
|
662
662
|
display: none;
|
|
663
|
-
`},
|
|
663
|
+
`},ly=C.memo(function({showJsonEditor:r=!0,showDisplaySettings:s=!0,showApiSettings:u=!0,showAppearanceSettings:d=!0,showThemeSettings:h=!0,showContentSettings:y=!0,showQuickActions:T=!0}){const{viewMode:S,setViewMode:g,widgetApi:A}=Gt();return le("div",{css:fn.panel,children:[le("div",{css:fn.header,children:[k("h1",{css:fn.title,children:"Widget Demo"}),k("p",{css:fn.subtitle,children:"Configure and preview the chatbot widget"}),r&&le("div",{css:fn.modeSwitcher,children:[le("button",{type:"button",css:[fn.modeButton,S==="form"&&fn.modeButtonActive],onClick:()=>g("form"),children:[k(Bm,{size:14}),"Form"]}),le("button",{type:"button",css:[fn.modeButton,S==="json"&&fn.modeButtonActive],onClick:()=>g("json"),children:[k(Mm,{size:14}),"JSON"]})]})]}),r&&S==="json"?k(Pm,{}):le("div",{css:fn.formContainer,children:[u&&k(Gm,{}),s&&k(Lm,{}),d&&k(Qm,{}),h&&le(ql,{children:[k(Xm,{}),k(Vm,{})]}),y&&le(ql,{children:[k(Zm,{}),k(Km,{}),k(Jm,{})]}),T&&k(Wm,{}),k(ty,{widgetApi:A}),k(ay,{widgetApi:A})]})]})}),qa={panel:X`
|
|
664
664
|
display: flex;
|
|
665
665
|
flex-direction: column;
|
|
666
666
|
padding: ${p.spacing.xl};
|
|
@@ -673,30 +673,30 @@ Error generating stack: `+a.message+`
|
|
|
673
673
|
height: auto;
|
|
674
674
|
min-height: ${p.layout.minPreviewHeight};
|
|
675
675
|
}
|
|
676
|
-
`,header:
|
|
676
|
+
`,header:X`
|
|
677
677
|
margin-bottom: ${p.spacing.md};
|
|
678
678
|
flex-shrink: 0;
|
|
679
|
-
`,title:
|
|
679
|
+
`,title:X`
|
|
680
680
|
font-size: ${p.fontSize.xxl};
|
|
681
681
|
font-weight: ${p.fontWeight.semibold};
|
|
682
682
|
color: ${p.colors.text};
|
|
683
683
|
margin-bottom: ${p.spacing.xs};
|
|
684
684
|
padding: 0;
|
|
685
|
-
`,subtitle:
|
|
685
|
+
`,subtitle:X`
|
|
686
686
|
font-size: ${p.fontSize.sm};
|
|
687
687
|
color: ${p.colors.textLight};
|
|
688
|
-
`,container:
|
|
688
|
+
`,container:X`
|
|
689
689
|
flex: 1;
|
|
690
690
|
min-height: 0;
|
|
691
691
|
background: ${p.colors.panelBackground};
|
|
692
692
|
border-radius: ${p.borderRadius.xl};
|
|
693
693
|
box-shadow: 0 4px 24px rgba(60, 77, 115, 0.1);
|
|
694
694
|
position: relative;
|
|
695
|
-
`,containerFloating:
|
|
695
|
+
`,containerFloating:X`
|
|
696
696
|
background: transparent;
|
|
697
697
|
border-radius: 0;
|
|
698
698
|
box-shadow: none;
|
|
699
|
-
`},
|
|
699
|
+
`},iy=C.memo(function({widgetContainerId:r="demo-widget-container"}){const{widgetConfig:s,getWidgetConfig:u,mockEnabled:d,widgetWasOpen:h,setWidgetWasOpen:y,setContainerElement:T,reinitTrigger:S,setWidgetApi:g,updateWidgetConfig:A}=Gt(),z=C.useRef(null),U=C.useRef(!1),V=C.useRef(null);C.useEffect(()=>(T(z.current),()=>T(null)),[T]);const Q=C.useCallback(()=>{if(!window.ChatbotWidget){console.warn("ChatbotWidget not found");return}const P=h;window.ChatbotWidget.destroy();const Z=u();d&&(Z.apiEndpoint="/api/chat"),Z.onOpen=()=>y(!0),Z.onClose=()=>y(!1),Z.onNewChat=()=>A({sessionId:""}),Z.onWidgetReady=re=>g(re),window.ChatbotWidget.init(Z),U.current=!0,P&&s.floatingMode&&setTimeout(()=>{window.ChatbotWidget.open()},100)},[u,d,h,y,g,A,s.floatingMode]);C.useEffect(()=>{const P=setTimeout(()=>{Q()},50);return()=>{clearTimeout(P),window.ChatbotWidget&&window.ChatbotWidget.destroy(),g(null)}},[g]),C.useEffect(()=>(V.current&&clearTimeout(V.current),U.current&&(V.current=setTimeout(()=>{Q()},50)),()=>{V.current&&clearTimeout(V.current)}),[d,s.quickActions,S]);const Y=s.floatingMode,D=Y?"Floating Preview":"Embedded Preview",K=Y?"Click the FAB button in the corner to open the chat":"The widget is rendered inside this container";return le("div",{css:qa.panel,children:[le("div",{css:qa.header,children:[k("h2",{css:qa.title,children:D}),k("p",{css:qa.subtitle,children:K})]}),k("div",{ref:z,id:r,css:[qa.container,Y&&qa.containerFloating]})]})}),La={global:X`
|
|
700
700
|
.chatbot-demo-root {
|
|
701
701
|
* {
|
|
702
702
|
box-sizing: border-box;
|
|
@@ -709,7 +709,7 @@ Error generating stack: `+a.message+`
|
|
|
709
709
|
-webkit-font-smoothing: antialiased;
|
|
710
710
|
-moz-osx-font-smoothing: grayscale;
|
|
711
711
|
}
|
|
712
|
-
`,layout:
|
|
712
|
+
`,layout:X`
|
|
713
713
|
display: grid;
|
|
714
714
|
grid-template-columns: ${p.layout.controlsPanelWidth} 1fr;
|
|
715
715
|
height: 100%;
|
|
@@ -720,19 +720,19 @@ Error generating stack: `+a.message+`
|
|
|
720
720
|
height: auto;
|
|
721
721
|
min-height: 100%;
|
|
722
722
|
}
|
|
723
|
-
`,layoutPreviewOnly:
|
|
723
|
+
`,layoutPreviewOnly:X`
|
|
724
724
|
grid-template-columns: 1fr;
|
|
725
|
-
`,layoutConfigOnly:
|
|
725
|
+
`,layoutConfigOnly:X`
|
|
726
726
|
grid-template-columns: 1fr;
|
|
727
|
-
`},
|
|
727
|
+
`},oy=C.memo(function({demoConfig:r}){const s=r.showConfigPanel!==!1,u=r.showPreviewPanel!==!1;let d=La.layout;return s?u||(d=X`
|
|
728
728
|
${La.layout}
|
|
729
729
|
${La.layoutConfigOnly}
|
|
730
|
-
`):d=
|
|
730
|
+
`):d=X`
|
|
731
731
|
${La.layout}
|
|
732
732
|
${La.layoutPreviewOnly}
|
|
733
|
-
`,le("div",{className:"chatbot-demo-root",css:d,children:[k(
|
|
734
|
-
`);for(const
|
|
735
|
-
`);U=Z.pop()||"";for(const ee of Z)if(G(ee))break;if(X)break}}catch(C){const g=C instanceof Error?C.message:"Unknown error";s.onError(g)}},dy=l=>l.replace(/<[^>]*>/g,"").replace(/\s+/g," ").trim(),hy=(l,r)=>{if(r){const s=r.toUpperCase();if(s==="VIDEO")return"Video";if(s==="PDF")return"PDF";if(s==="AUDIO")return"Audio";if(s==="IMAGE")return"Article"}if(l&&l.toUpperCase()==="CONTENT_LIBRARY")return"Article"},nf=l=>({id:l.id,thumbnail:l.icon?.thumbnailURL||l.contents?.[0]?.thumbnailURL||l.icon?.contentURL||"",title:l.title||l.name||"",description:l.detailText?dy(l.detailText):"",content:l.contents?.[0]?.contentURL||l.icon?.contentURL||"",createdAt:l.createdOn?new Date(l.createdOn).toISOString():new Date().toISOString(),source:l.patientTypeText||void 0,contentType:hy(l.type,l.contents?.[0]?.format),contentFormat:l.contents?.[0]?.format?.toUpperCase()||void 0,audioRenditions:l.libraryRenditions?.map(r=>r.contentURL).filter(r=>!!r)||void 0,detailHtml:l.detailText||void 0}),py=l=>{const r=l.trim();if(!r||r.startsWith(":"))return null;if(r.startsWith("data:")){const s=r.slice(5).trim();if(s==="[DONE]")return null;try{const u=JSON.parse(s);if(u.type)switch(u.type){case"token":return null;case"thinking":return{type:"status",value:"thinking"};case"reasoning":return{type:"status",value:"reasoning"};case"tool_start":case"tool_call":case"function_call":return{type:"status",value:"tool_start"};case"tool_end":case"tool_result":case"function_result":return{type:"status",value:"tool_end"};case"searching":case"search":return{type:"status",value:"searching"};case"reading":case"retrieving":return{type:"status",value:"reading"};case"generating":case"writing":return{type:"status",value:"generating"};case"summarizing":return{type:"status",value:"summarizing"};case"processing":return{type:"status",value:"processing"};case"audio":return u.audio?{type:"audio",value:u.audio}:null;case"canvas":return null;case"error":return{type:"error",value:u.message||u.error||"Unknown error"};case"final":return{type:"final",value:u.session_id||"",content:u.reply||"",askingQuestion:u.asking_question||!1,questionInfo:u.current_question_info,surveyProgress:u.survey_progress,citations:Array.isArray(u.citations)?u.citations.map(nf):void 0};case"close":case"message":case"response":case"complete":case"done":case"end":return null;default:return null}const d=u.delta?.content;return d?{type:"content",value:d}:null}catch{return{type:"content",value:s}}}return null},gy=async(l,r)=>{const{apiEndpoint:s}=l;if(!s)return{success:!1,error:"No API endpoint configured"};const u=Ki(l),d=`${Vr(s,l.userType)}/messages?sessionId=${encodeURIComponent(r)}`,h={};u&&(h.Authorization=`Bearer ${u}`);try{const y=await fetch(d,{method:"DELETE",headers:h});if(!y.ok)throw new Error(`HTTP error! status: ${y.status}`);return{success:!0}}catch(y){return{success:!1,error:y instanceof Error?y.message:"Failed to delete chat messages"}}},af=async(l,r)=>{const{apiEndpoint:s}=l;if(!s)return{messages:[],error:"No API endpoint configured"};const u=Ki(l),d=`${Vr(s,l.userType)}/messages`,h=new URLSearchParams;l.assistantId&&h.append("assistantId",l.assistantId),l.contextPatientId&&h.append("contextPatientId",l.contextPatientId),h.append("page",String(r?.page??0)),h.append("size",String(r?.size??10)),r?.sort&&h.append("sort",r.sort);const y=`${d}?${h.toString()}`,T={};u&&(T.Authorization=`Bearer ${u}`);try{const C=await fetch(y,{method:"GET",headers:T});if(!C.ok){if(C.status===404)return{messages:[]};throw new Error(`HTTP error! status: ${C.status}`)}const g=await C.json();let A,z,U=!1;const X=g._embedded?Object.keys(g._embedded)[0]:null;if(X&&Array.isArray(g._embedded[X])?(A=g._embedded[X],g.page&&(z={size:g.page.size,totalElements:g.page.totalElements,totalPages:g.page.totalPages,number:g.page.number}),U=!!g._links?.next):A=g.messages||g.data||g,!Array.isArray(A))return{messages:[]};const G=A[0]?.sessionId;return{messages:A.map(R=>{const Z=R.role==="ai"?"bot":R.role==="human"?"user":R.sender||"bot";return{id:R.id||"",content:R.content,sender:Z,timestamp:R.createdOn?new Date(R.createdOn).toISOString():R.timestamp||new Date().toISOString(),status:["sending","sent","error"].includes(R.status||"")?R.status:void 0,citations:Array.isArray(R.citations)?R.citations.map(nf):void 0}}),sessionId:G,page:z,hasNextPage:U}}catch(C){const g=C instanceof Error?C.message:"Unknown error";return{messages:[],error:g}}},my=async l=>{const{apiEndpoint:r}=l;if(!r)return{assistants:[],error:"No API endpoint configured"};const s=Ki(l),u=sy(r),d=l.userType||"patient",h=`${u}/api/${d}/assistants/list`,y={};s&&(y.Authorization=`Bearer ${s}`);try{const T=await fetch(h,{method:"GET",headers:y});if(!T.ok)throw new Error(`HTTP error! status: ${T.status}`);const C=await T.json(),g=C.assistants||C.data||C;return Array.isArray(g)?{assistants:g.map(z=>({...z,id:z.id||"",name:z.name||""}))}:{assistants:[]}}catch(T){const C=T instanceof Error?T.message:"Unknown error";return{assistants:[],error:C}}},yy=l=>{const[r,s]=S.useState(()=>typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light");return S.useEffect(()=>{if(l!=="system")return;const u=window.matchMedia("(prefers-color-scheme: dark)");s(u.matches?"dark":"light");const d=h=>{s(h.matches?"dark":"light")};return u.addEventListener("change",d),()=>u.removeEventListener("change",d)},[l]),l==="system"?r:l==="dark"?"dark":"light"},lf=S.createContext(null),Un=()=>`${Date.now()}-${Math.random().toString(36).substr(2,9)}`,by=[{id:"1",thumbnail:"https://picsum.photos/seed/sleep1/300/200",title:"Coach Paul's Top Tips For Unwinding Before Bed",description:"Learn relaxation techniques for better sleep",content:"https://example.com/article/1",createdAt:new Date().toISOString(),source:"EXPERIENCE LIFE"},{id:"2",thumbnail:"https://picsum.photos/seed/sleep2/300/200",title:"4 Surprising Strategies To Maximize Quality Sleep",description:"Science-backed methods for deeper rest",content:"https://example.com/article/2",createdAt:new Date().toISOString(),source:"EXPERIENCE LIFE"},{id:"3",thumbnail:"https://picsum.photos/seed/health3/300/200",title:"Why Morning Routines Matter For Your Health",description:"Start your day right with these habits",content:"https://example.com/article/3",createdAt:new Date().toISOString(),source:"WELLNESS TIPS"},{id:"4",thumbnail:"https://picsum.photos/seed/exercise4/300/200",title:"Simple Exercises You Can Do At Home",description:"Stay active without a gym membership",content:"https://example.com/article/4",createdAt:new Date().toISOString(),source:"FITNESS TODAY"}],vy=({config:l,children:r,onConfigUpdate:s})=>{const[u,d]=S.useState(l),[h,y]=S.useState([]),[T,C]=S.useState(!(u.floatingMode??!1)),[g,A]=S.useState(!1),[z,U]=S.useState(!1),[X,G]=S.useState(void 0),[Y,R]=S.useState(!1),[Z,ee]=S.useState(!1),[V,re]=S.useState(null),[q,F]=S.useState(null),[W,ke]=S.useState(null),[Xe,L]=S.useState(null),[Ce,Ke]=S.useState(!1),[we,tt]=S.useState(null),[Dt,$]=S.useState(null),K=yy(u.colorMode),oe=S.useMemo(()=>{const pe=V?.chatUiConfig?.theme,me=u.theme,ge=uy(K);return{colors:{...ge.colors,...pe?.colors,...me?.colors},fontFamily:me?.fontFamily||pe?.fontFamily||ge.fontFamily,borderRadius:me?.borderRadius||pe?.borderRadius||ge.borderRadius,shadow:me?.shadow||pe?.shadow||ge.shadow}},[u.theme,K,V?.chatUiConfig?.theme]),_e=S.useCallback(pe=>{d(me=>({...me,...pe}))},[]);S.useEffect(()=>{s?.(_e)},[s,_e]);const Oe=S.useRef(null),x=S.useRef(!1);S.useEffect(()=>{(async()=>{if(!(!T||Z)){if(ke(null),u.loadHistory===!1){ee(!0);return}try{if(!u.token){ee(!0);return}let me=u.assistantId;if(!me){const fe=await my(u);if(fe.error){console.error("Failed to load assistants:",fe.error),ke(fe.error),ee(!0);return}const Ne=fe.assistants[0];if(!Ne){console.warn("No assistants found"),ee(!0);return}re(Ne),me=Ne.id}const ge={...u,assistantId:me},De=await af(ge,{page:0,size:10});if(De.error){console.error("Failed to load messages:",De.error),ke(De.error),ee(!0);return}if(De.sessionId&&F(De.sessionId),De.page&&L({currentPage:De.page.number,totalPages:De.page.totalPages,totalElements:De.page.totalElements,hasMore:De.hasNextPage??!1,isLoadingMore:!1}),De.messages.length>0){const fe=De.messages.map(Ne=>({id:Ne.id||Un(),content:Ne.content,sender:Ne.sender,timestamp:new Date(Ne.timestamp),status:Ne.status||"sent",citations:Ne.citations})).reverse();y(fe),R(!0)}}catch(me){console.error("Failed to load chat history:",me)}ee(!0)}})()},[T,Z,u]),S.useEffect(()=>{if(T&&!Y&&Z){if(W){const me={id:Un(),content:`Unable to connect: ${W}`,sender:"bot",timestamp:new Date,status:"error"};y([me]),R(!0);return}const pe=u.greeting||V?.chatUiConfig?.welcomeMessage||"Hello! Welcome to our healthcare support. How can I assist you today?";{const me={id:Un(),content:pe,sender:"bot",timestamp:new Date,status:"sent",citations:u.apiEndpoint?void 0:by};y(ge=>ge.length===0?[me]:ge)}R(!0)}},[T,Y,u.greeting,Z,V,W]);const j=S.useCallback(()=>{C(!0),u.onOpen?.()},[u]),J=S.useCallback(()=>{C(!1),A(!1),u.onClose?.()},[u]),P=S.useCallback(()=>{A(pe=>!pe)},[]),se=S.useCallback(()=>{T?J():j()},[T,j,J]),ue=S.useCallback(async pe=>{if(!pe.trim())return;const me={id:Un(),content:pe.trim(),sender:"user",timestamp:new Date,status:"sending"};y(fe=>[...fe,{...me,status:"sent"}]),u.onMessageSent?.(me),U(!0),G("thinking");const ge=Un();Oe.current=ge,x.current=!1;const De={...u,...V&&{assistantId:V.id},...q&&{sessionId:q}};await fy(pe,De,{onChunk:fe=>{if(x.current)y(Ne=>Ne.map(Je=>Je.id===ge?{...Je,content:Je.content+fe}:Je));else{x.current=!0,G(void 0);const Ne={id:ge,content:fe,sender:"bot",timestamp:new Date,status:"sending"};y(Je=>[...Je,Ne])}u.onStreamChunk?.(fe)},onStatus:fe=>{fe==="complete"?(G(void 0),U(!1)):G(fe)},onSessionId:fe=>{F(fe)},onAudio:fe=>{const Ne=`data:audio/mp3;base64,${fe}`;y(Je=>Je.map(Re=>Re.id===ge?{...Re,audioUrl:Ne}:Re))},onComplete:fe=>{U(!1),G(void 0),Oe.current=null,x.current&&y(Ne=>{const Je=Ne.map(bn=>bn.id===ge?{...bn,content:fe,status:"sent"}:bn),Re=Je.find(bn=>bn.id===ge);return Re&&u.onMessageReceived?.(Re),Je})},onError:fe=>{U(!1),G(void 0),Oe.current=null,console.error("Stream error:",fe),y(Ne=>{const Je=Ne.filter(bn=>bn.id!==ge),Re={id:ge,content:`Error: ${fe}`,sender:"bot",timestamp:new Date,status:"error"};return[...Je,Re]})},onSurveyQuestion:(fe,Ne)=>{tt(fe),$(Ne||null),y(Je=>Je.map(Re=>Re.id===ge?{...Re,askingQuestion:!0,questionInfo:fe,surveyProgress:Ne}:Re))},onCitations:fe=>{y(Ne=>Ne.map(Je=>Je.id===ge?{...Je,citations:fe}:Je))}})},[u,V,q]),Te=S.useCallback(async pe=>{if(!we)return;let me;Array.isArray(pe)?me=pe.join(", "):typeof pe=="boolean"?me=pe?"Yes":"No":me=String(pe);const ge=`Q: ${we.question}<br>A: ${me}`;tt(null),$(null),await ue(ge)},[we,ue]),dt=S.useCallback(async()=>{we&&(tt(null),$(null),await ue("Skip"))},[we,ue]),Ze=S.useCallback(async()=>{if(!(!Xe||Xe.isLoadingMore||!Xe.hasMore)){L(pe=>pe&&{...pe,isLoadingMore:!0});try{const pe=Xe.currentPage+1,me={...u,...V&&{assistantId:V.id}},ge=await af(me,{page:pe,size:10});if(ge.error){console.error("Failed to load more messages:",ge.error),L(De=>De&&{...De,isLoadingMore:!1});return}if(ge.messages.length>0){const De=ge.messages.map(fe=>({id:fe.id||Un(),content:fe.content,sender:fe.sender,timestamp:new Date(fe.timestamp),status:fe.status||"sent",citations:fe.citations})).reverse();y(fe=>{const Ne=new Set(fe.map(Re=>Re.id));return[...De.filter(Re=>!Ne.has(Re.id)),...fe]})}L(De=>De&&{...De,currentPage:pe,hasMore:ge.hasNextPage??!1,isLoadingMore:!1,...ge.page&&{totalPages:ge.page.totalPages,totalElements:ge.page.totalElements}})}catch(pe){console.error("Failed to load more messages:",pe),L(me=>me&&{...me,isLoadingMore:!1})}}},[Xe,u,V]),ga=S.useCallback(()=>{q&&u.apiEndpoint&&gy(u,q).catch(pe=>{console.error("Failed to delete chat messages:",pe)}),y([]),F(null),R(!1),tt(null),$(null),U(!1),G(void 0),ke(null),L(null),u.onNewChat?.(),Ke(!1)},[u,q]),Qa=S.useCallback(()=>{Ke(!0)},[]),Gl=S.useCallback(()=>{Ke(!1)},[]),eo=S.useCallback(async()=>{tt(null),$(null),await ue("Cancel survey")},[ue]),an=S.useCallback((pe,me)=>{const ge={id:Un(),content:pe.question,sender:"bot",timestamp:new Date,status:"sent",askingQuestion:!0,questionInfo:pe,surveyProgress:me};y(De=>[...De,ge]),tt(pe),$(me||null)},[]),Xa=S.useCallback(pe=>{const me={id:Un(),content:"Here are some resources that might help you:",sender:"bot",timestamp:new Date,status:"sent",citations:pe};y(ge=>[...ge,me])},[]);S.useEffect(()=>{Z&&u.onWidgetReady&&u.onWidgetReady({triggerSurveyQuestion:an,triggerCitations:Xa})},[Z,u.onWidgetReady,an,Xa]);const Ql={messages:h,isOpen:T,isTyping:z,isLoading:!Z,isExpanded:g,streamingStatus:X,config:u,theme:oe,assistant:V,sendMessage:ue,open:j,close:J,toggle:se,toggleExpanded:P,currentQuestion:we,surveyProgress:Dt,submitSurveyAnswer:Te,skipSurveyQuestion:dt,cancelSurvey:eo,triggerSurveyQuestion:an,startNewChat:ga,showNewChatConfirm:Ce,requestNewChat:Qa,cancelNewChat:Gl,pagination:Xe,loadMoreMessages:Ze};return v.jsx(lf.Provider,{value:Ql,children:r})};var xy=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Sy=ws(function(l){return xy.test(l)||l.charCodeAt(0)===111&&l.charCodeAt(1)===110&&l.charCodeAt(2)<91}),Cy=Sy,Ty=function(r){return r!=="theme"},of=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?Cy:Ty},rf=function(r,s,u){var d;if(s){var h=s.shouldForwardProp;d=r.__emotion_forwardProp&&h?function(y){return r.__emotion_forwardProp(y)&&h(y)}:h}return typeof d!="function"&&u&&(d=r.__emotion_forwardProp),d},Ey=function(r){var s=r.cache,u=r.serialized,d=r.isStringTag;return Nr(s,u,d),Ls(function(){return jr(s,u,d)}),null},zy=function l(r,s){var u=r.__emotion_real===r,d=u&&r.__emotion_base||r,h,y;s!==void 0&&(h=s.label,y=s.target);var T=rf(r,s,u),C=T||of(d),g=!C("as");return function(){var A=arguments,z=u&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(h!==void 0&&z.push("label:"+h+";"),A[0]==null||A[0].raw===void 0)z.push.apply(z,A);else{var U=A[0];z.push(U[0]);for(var X=A.length,G=1;G<X;G++)z.push(A[G],U[G])}var Y=Ur(function(R,Z,ee){var V=g&&R.as||d,re="",q=[],F=R;if(R.theme==null){F={};for(var W in R)F[W]=R[W];F.theme=S.useContext(qr)}typeof R.className=="string"?re=Ns(Z.registered,q,R.className):R.className!=null&&(re=R.className+" ");var ke=Xi(z.concat(q),Z.registered,F);re+=Z.key+"-"+ke.name,y!==void 0&&(re+=" "+y);var Xe=g&&T===void 0?of(V):C,L={};for(var Ce in R)g&&Ce==="as"||Xe(Ce)&&(L[Ce]=R[Ce]);return L.className=re,ee&&(L.ref=ee),S.createElement(S.Fragment,null,S.createElement(Ey,{cache:Z,serialized:ke,isStringTag:typeof V=="string"}),S.createElement(V,L))});return Y.displayName=h!==void 0?h:"Styled("+(typeof d=="string"?d:d.displayName||d.name||"Component")+")",Y.defaultProps=r.defaultProps,Y.__emotion_real=Y,Y.__emotion_base=d,Y.__emotion_styles=z,Y.__emotion_forwardProp=T,Object.defineProperty(Y,"toString",{value:function(){return"."+y}}),Y.withComponent=function(R,Z){var ee=l(R,Br({},s,Z,{shouldForwardProp:rf(Y,Z,!0)}));return ee.apply(void 0,z)},Y}},Ay=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],D=zy.bind(null);Ay.forEach(function(l){D[l]=D(l)});const pa=()=>{const l=S.useContext(lf);if(!l)throw new Error("useChat must be used within a ChatProvider");return l},My=D.div`
|
|
733
|
+
`,le("div",{className:"chatbot-demo-root",css:d,children:[k(xm,{styles:La.global}),s&&k(ly,{showJsonEditor:r.showJsonEditor!==!1,showDisplaySettings:r.showDisplaySettings!==!1,showApiSettings:r.showApiSettings!==!1,showAppearanceSettings:r.showAppearanceSettings!==!1,showThemeSettings:r.showThemeSettings!==!1,showContentSettings:r.showContentSettings!==!1,showQuickActions:r.showQuickActions!==!1}),u&&k(iy,{})]})}),ef=C.memo(function({config:r}){const s=C.useCallback(()=>{},[]),u=C.useCallback(d=>{window.ChatbotWidget&&window.ChatbotWidget.update(d)},[]);return k(Sm,{demoConfig:r,onReinitWidget:s,onUpdateWidget:u,children:k(oy,{demoConfig:r})})}),ry={primary:"#00c2d1",primaryDark:"#017992",secondary:"#3c4d73",accent:"#33b1e6",accentLight:"#b8ebff",success:"#00dec4",info:"#30d7ed",background:"#ffffff",surface:"#fdfefe",text:"#3c4d73",textLight:"#6b7280",userBubble:"#00c2d1",userBubbleText:"#ffffff",botBubble:"#e0f7fa",botBubbleText:"#3c4d73",border:"#d1d5db",borderLight:"#e5e7eb",error:"#ef4444",errorBackground:"#fef2f2",white:"#ffffff",recording:"#ef4444",headerText:"#ffffff",scrollbarThumb:"rgba(60, 77, 115, 0.2)",scrollbarThumbHover:"rgba(60, 77, 115, 0.3)",surveyOptionBg:"#ffffff",surveyOptionBgHover:"#f8f9fa",surveyOptionBgSelected:"#e0f7fa",surveyOptionBorder:"#e5e7eb",surveyOptionBorderSelected:"#00c2d1",surveyNumberBg:"#3c4d73",surveyNumberText:"#ffffff",contentCardBg:"#ffffff",contentCardBorder:"#e5e7eb",contentCardText:"#3c4d73",contentCardTextLight:"#6b7280",contentCardOverlay:"rgba(0, 0, 0, 0.4)"},uy={primary:"#00d4e5",primaryDark:"#00a8b8",secondary:"#1e2b4a",accent:"#4fc3f7",accentLight:"#1a3a4a",success:"#00dec4",info:"#30d7ed",background:"#121820",surface:"#1a2330",text:"#e8eaed",textLight:"#9aa0a6",userBubble:"#00b8c9",userBubbleText:"#ffffff",botBubble:"#1e2b3a",botBubbleText:"#e8eaed",border:"#2d3a4a",borderLight:"#252f3f",error:"#f87171",errorBackground:"#2d1f1f",white:"#ffffff",recording:"#ef4444",headerText:"#ffffff",scrollbarThumb:"rgba(255, 255, 255, 0.2)",scrollbarThumbHover:"rgba(255, 255, 255, 0.3)",surveyOptionBg:"#1a2330",surveyOptionBgHover:"#252f3f",surveyOptionBgSelected:"#1a3a4a",surveyOptionBorder:"#2d3a4a",surveyOptionBorderSelected:"#00d4e5",surveyNumberBg:"#2d3a4a",surveyNumberText:"#e8eaed",contentCardBg:"#1a2330",contentCardBorder:"#2d3a4a",contentCardText:"#e8eaed",contentCardTextLight:"#9aa0a6",contentCardOverlay:"rgba(0, 0, 0, 0.6)"},tf={fontFamily:"system-ui, -apple-system, sans-serif",borderRadius:"12px"},cy=(l,r)=>{const s=l==="dark"?uy:ry,u=l==="dark"?"0 4px 24px rgba(0, 0, 0, 0.4)":"0 4px 24px rgba(60, 77, 115, 0.15)";return{colors:{...s,...r?.colors},fontFamily:r?.fontFamily||tf.fontFamily,borderRadius:r?.borderRadius||tf.borderRadius,shadow:r?.shadow||u}},sy=(l,r)=>{let{fullMessage:s}=r;const{callbacks:u}=r;return l.type==="content"?(s+=l.value,u.onChunk(l.value)):l.type==="status"?u.onStatus?.(l.value):l.type==="session_id"?u.onSessionId?.(l.value):l.type==="audio"?u.onAudio?.(l.value):l.type==="final"&&(u.onStatus?.("complete"),l.value&&u.onSessionId?.(l.value),l.content&&(s=l.content,u.onChunk(l.content)),l.askingQuestion&&l.questionInfo&&u.onSurveyQuestion?.(l.questionInfo,l.surveyProgress),l.citations&&l.citations.length>0&&u.onCitations?.(l.citations)),s},Ki=l=>l.token,nf=l=>l.replace(/\/api\/(patient\/|staff\/)?chat(\/.*)?$/i,"").replace(/\/+$/,""),Vr=(l,r="patient")=>`${nf(l)}/api/${r}/chat`,fy=async(l,r,s)=>{const{apiEndpoint:u}=r;if(!u){s.onError("No API endpoint configured");return}const d=Ki(r),h=`${Vr(u,r.userType)}/stream`,y={"Content-Type":"application/json",Accept:"text/event-stream"};d&&(y.Authorization=`Bearer ${d}`);const T={message:l};r.assistantId&&(T.assistantId=r.assistantId),r.contextPatientId&&(T.contextPatientId=r.contextPatientId),r.sessionId&&(T.sessionId=r.sessionId);try{const S=await fetch(h,{method:"POST",headers:y,body:JSON.stringify(T)});if(!S.ok)throw new Error(`HTTP error! status: ${S.status}`);const g=S.body?.getReader();if(!g)throw new Error("Response body is not readable");const A=new TextDecoder;let z="",U="",V=!1;const Q=Y=>{const D=py(Y);if(D){if(D.type==="error")return V=!0,s.onError(D.value),!0;z=sy(D,{fullMessage:z,callbacks:s})}return!1};for(;;){const{done:Y,value:D}=await g.read();if(Y){if(U.trim()&&!V){const P=U.split(`
|
|
734
|
+
`);for(const Z of P)if(Q(Z))break}V||s.onComplete(z);break}U+=A.decode(D,{stream:!0});const K=U.split(`
|
|
735
|
+
`);U=K.pop()||"";for(const P of K)if(Q(P))break;if(V)break}}catch(S){const g=S instanceof Error?S.message:"Unknown error";s.onError(g)}},dy=l=>l.replace(/<[^>]*>/g,"").replace(/\s+/g," ").trim(),hy=(l,r)=>{if(r){const s=r.toUpperCase();if(s==="VIDEO")return"Video";if(s==="PDF")return"PDF";if(s==="AUDIO")return"Audio";if(s==="IMAGE")return"Article"}if(l&&l.toUpperCase()==="CONTENT_LIBRARY")return"Article"},af=l=>({id:l.id,thumbnail:l.icon?.thumbnailURL||l.contents?.[0]?.thumbnailURL||l.icon?.contentURL||"",title:l.title||l.name||"",description:l.detailText?dy(l.detailText):"",content:l.contents?.[0]?.contentURL||l.icon?.contentURL||"",createdAt:l.createdOn?new Date(l.createdOn).toISOString():new Date().toISOString(),source:l.patientTypeText||void 0,contentType:hy(l.type,l.contents?.[0]?.format),contentFormat:l.contents?.[0]?.format?.toUpperCase()||void 0,audioRenditions:l.libraryRenditions?.map(r=>r.contentURL).filter(r=>!!r)||void 0,detailHtml:l.detailText||void 0}),py=l=>{const r=l.trim();if(!r||r.startsWith(":"))return null;if(r.startsWith("data:")){const s=r.slice(5).trim();if(s==="[DONE]")return null;try{const u=JSON.parse(s);if(u.type)switch(u.type){case"token":return null;case"thinking":return{type:"status",value:"thinking"};case"reasoning":return{type:"status",value:"reasoning"};case"tool_start":case"tool_call":case"function_call":return{type:"status",value:"tool_start"};case"tool_end":case"tool_result":case"function_result":return{type:"status",value:"tool_end"};case"searching":case"search":return{type:"status",value:"searching"};case"reading":case"retrieving":return{type:"status",value:"reading"};case"generating":case"writing":return{type:"status",value:"generating"};case"summarizing":return{type:"status",value:"summarizing"};case"processing":return{type:"status",value:"processing"};case"audio":return u.audio?{type:"audio",value:u.audio}:null;case"canvas":return null;case"error":return{type:"error",value:u.message||u.error||"Unknown error"};case"final":return{type:"final",value:u.session_id||"",content:u.reply||"",askingQuestion:u.asking_question||!1,questionInfo:u.current_question_info,surveyProgress:u.survey_progress,citations:Array.isArray(u.citations)?u.citations.map(af):void 0};case"close":case"message":case"response":case"complete":case"done":case"end":return null;default:return null}const d=u.delta?.content;return d?{type:"content",value:d}:null}catch{return{type:"content",value:s}}}return null},gy=async(l,r)=>{const{apiEndpoint:s}=l;if(!s)return{success:!1,error:"No API endpoint configured"};const u=Ki(l),d=`${Vr(s,l.userType)}/messages?sessionId=${encodeURIComponent(r)}`,h={};u&&(h.Authorization=`Bearer ${u}`);try{const y=await fetch(d,{method:"DELETE",headers:h});if(!y.ok)throw new Error(`HTTP error! status: ${y.status}`);return{success:!0}}catch(y){return{success:!1,error:y instanceof Error?y.message:"Failed to delete chat messages"}}},lf=async(l,r)=>{const{apiEndpoint:s}=l;if(!s)return{messages:[],error:"No API endpoint configured"};const u=Ki(l),d=`${Vr(s,l.userType)}/messages`,h=new URLSearchParams;l.assistantId&&h.append("assistantId",l.assistantId),l.contextPatientId&&h.append("contextPatientId",l.contextPatientId),h.append("page",String(r?.page??0)),h.append("size",String(r?.size??10)),r?.sort&&h.append("sort",r.sort);const y=`${d}?${h.toString()}`,T={};u&&(T.Authorization=`Bearer ${u}`);try{const S=await fetch(y,{method:"GET",headers:T});if(!S.ok){if(S.status===404)return{messages:[]};throw new Error(`HTTP error! status: ${S.status}`)}const g=await S.json();let A,z,U=!1;const V=g._embedded?Object.keys(g._embedded)[0]:null;if(V&&Array.isArray(g._embedded[V])?(A=g._embedded[V],g.page&&(z={size:g.page.size,totalElements:g.page.totalElements,totalPages:g.page.totalPages,number:g.page.number}),U=!!g._links?.next):A=g.messages||g.data||g,!Array.isArray(A))return{messages:[]};const Q=A[0]?.sessionId;return{messages:A.map(D=>{const K=D.role==="ai"?"bot":D.role==="human"?"user":D.sender||"bot";return{id:D.id||"",content:D.content,sender:K,timestamp:D.createdOn?new Date(D.createdOn).toISOString():D.timestamp||new Date().toISOString(),status:["sending","sent","error"].includes(D.status||"")?D.status:void 0,citations:Array.isArray(D.citations)?D.citations.map(af):void 0}}),sessionId:Q,page:z,hasNextPage:U}}catch(S){const g=S instanceof Error?S.message:"Unknown error";return{messages:[],error:g}}},my=async l=>{const{apiEndpoint:r}=l;if(!r)return{assistant:null,error:"No API endpoint configured"};const s=Ki(l),u=nf(r),d=l.userType||"patient";let h;if(d==="staff"){if(!l.patientTypeId)return{assistant:null,error:"patientTypeId is required for staff assistant lookup"};h=`${u}/api/staff/assistant/${encodeURIComponent(l.patientTypeId)}`}else h=`${u}/api/patient/assistant`;const y={};s&&(y.Authorization=`Bearer ${s}`);try{const T=await fetch(h,{method:"GET",headers:y});if(!T.ok)throw new Error(`HTTP error! status: ${T.status}`);const S=await T.json();return!S||!S.id?{assistant:null}:{assistant:{...S,id:S.id||"",name:S.name||""}}}catch(T){return{assistant:null,error:T instanceof Error?T.message:"Unknown error"}}},yy=l=>{const[r,s]=C.useState(()=>typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light");return C.useEffect(()=>{if(l!=="system")return;const u=window.matchMedia("(prefers-color-scheme: dark)");s(u.matches?"dark":"light");const d=h=>{s(h.matches?"dark":"light")};return u.addEventListener("change",d),()=>u.removeEventListener("change",d)},[l]),l==="system"?r:l==="dark"?"dark":"light"},of=C.createContext(null),Un=()=>`${Date.now()}-${Math.random().toString(36).substr(2,9)}`,by=[{id:"1",thumbnail:"https://picsum.photos/seed/sleep1/300/200",title:"Coach Paul's Top Tips For Unwinding Before Bed",description:"Learn relaxation techniques for better sleep",content:"https://example.com/article/1",createdAt:new Date().toISOString(),source:"EXPERIENCE LIFE"},{id:"2",thumbnail:"https://picsum.photos/seed/sleep2/300/200",title:"4 Surprising Strategies To Maximize Quality Sleep",description:"Science-backed methods for deeper rest",content:"https://example.com/article/2",createdAt:new Date().toISOString(),source:"EXPERIENCE LIFE"},{id:"3",thumbnail:"https://picsum.photos/seed/health3/300/200",title:"Why Morning Routines Matter For Your Health",description:"Start your day right with these habits",content:"https://example.com/article/3",createdAt:new Date().toISOString(),source:"WELLNESS TIPS"},{id:"4",thumbnail:"https://picsum.photos/seed/exercise4/300/200",title:"Simple Exercises You Can Do At Home",description:"Stay active without a gym membership",content:"https://example.com/article/4",createdAt:new Date().toISOString(),source:"FITNESS TODAY"}],vy=({config:l,children:r,onConfigUpdate:s})=>{const[u,d]=C.useState(l),[h,y]=C.useState([]),[T,S]=C.useState(!(u.floatingMode??!1)),[g,A]=C.useState(!1),[z,U]=C.useState(!1),[V,Q]=C.useState(void 0),[Y,D]=C.useState(!1),[K,P]=C.useState(!1),[Z,re]=C.useState(null),[L,ae]=C.useState(null),[G,He]=C.useState(null),[Xe,q]=C.useState(null),[Ce,Ke]=C.useState(!1),[we,tt]=C.useState(null),[Dt,$]=C.useState(null),J=yy(u.colorMode),oe=C.useMemo(()=>{const pe=Z?.chatUiConfig?.theme,me=u.theme,ge=cy(J);return{colors:{...ge.colors,...pe?.colors,...me?.colors},fontFamily:me?.fontFamily||pe?.fontFamily||ge.fontFamily,borderRadius:me?.borderRadius||pe?.borderRadius||ge.borderRadius,shadow:me?.shadow||pe?.shadow||ge.shadow}},[u.theme,J,Z?.chatUiConfig?.theme]),_e=C.useCallback(pe=>{d(me=>({...me,...pe}))},[]);C.useEffect(()=>{s?.(_e)},[s,_e]);const Oe=C.useRef(null),x=C.useRef(!1);C.useEffect(()=>{(async()=>{if(!(!T||K)){if(He(null),u.loadHistory===!1){P(!0);return}try{if(!u.token){P(!0);return}let me=u.assistantId;if(!me){const ce=await my(u);if(ce.error){console.error("Failed to load assistant:",ce.error),He(ce.error),P(!0);return}if(!ce.assistant){console.warn("No assistant found"),P(!0);return}re(ce.assistant),me=ce.assistant.id}const ge={...u,assistantId:me},De=await lf(ge,{page:0,size:10});if(De.error){console.error("Failed to load messages:",De.error),He(De.error),P(!0);return}if(De.sessionId&&ae(De.sessionId),De.page&&q({currentPage:De.page.number,totalPages:De.page.totalPages,totalElements:De.page.totalElements,hasMore:De.hasNextPage??!1,isLoadingMore:!1}),De.messages.length>0){const ce=De.messages.map(Ye=>({id:Ye.id||Un(),content:Ye.content,sender:Ye.sender,timestamp:new Date(Ye.timestamp),status:Ye.status||"sent",citations:Ye.citations})).reverse();y(ce),D(!0)}}catch(me){console.error("Failed to load chat history:",me)}P(!0)}})()},[T,K,u]),C.useEffect(()=>{if(T&&!Y&&K){if(G){const me={id:Un(),content:`Unable to connect: ${G}`,sender:"bot",timestamp:new Date,status:"error"};y([me]),D(!0);return}const pe=u.greeting||Z?.chatUiConfig?.welcomeMessage||"Hello! Welcome to our healthcare support. How can I assist you today?";{const me={id:Un(),content:pe,sender:"bot",timestamp:new Date,status:"sent",citations:u.apiEndpoint?void 0:by};y(ge=>ge.length===0?[me]:ge)}D(!0)}},[T,Y,u.greeting,K,Z,G]);const j=C.useCallback(()=>{S(!0),u.onOpen?.()},[u]),W=C.useCallback(()=>{S(!1),A(!1),u.onClose?.()},[u]),I=C.useCallback(()=>{A(pe=>!pe)},[]),fe=C.useCallback(()=>{T?W():j()},[T,j,W]),ue=C.useCallback(async pe=>{if(!pe.trim())return;const me={id:Un(),content:pe.trim(),sender:"user",timestamp:new Date,status:"sending"};y(ce=>[...ce,{...me,status:"sent"}]),u.onMessageSent?.(me),U(!0),Q("thinking");const ge=Un();Oe.current=ge,x.current=!1;const De={...u,...Z&&{assistantId:Z.id},...L&&{sessionId:L}};await fy(pe,De,{onChunk:ce=>{if(x.current)y(Ye=>Ye.map(Je=>Je.id===ge?{...Je,content:Je.content+ce}:Je));else{x.current=!0,Q(void 0);const Ye={id:ge,content:ce,sender:"bot",timestamp:new Date,status:"sending"};y(Je=>[...Je,Ye])}u.onStreamChunk?.(ce)},onStatus:ce=>{ce==="complete"?(Q(void 0),U(!1)):Q(ce)},onSessionId:ce=>{ae(ce)},onAudio:ce=>{const Ye=`data:audio/mp3;base64,${ce}`;y(Je=>Je.map(Re=>Re.id===ge?{...Re,audioUrl:Ye}:Re))},onComplete:ce=>{U(!1),Q(void 0),Oe.current=null,x.current&&y(Ye=>{const Je=Ye.map(bn=>bn.id===ge?{...bn,content:ce,status:"sent"}:bn),Re=Je.find(bn=>bn.id===ge);return Re&&u.onMessageReceived?.(Re),Je})},onError:ce=>{U(!1),Q(void 0),Oe.current=null,console.error("Stream error:",ce),y(Ye=>{const Je=Ye.filter(bn=>bn.id!==ge),Re={id:ge,content:`Error: ${ce}`,sender:"bot",timestamp:new Date,status:"error"};return[...Je,Re]})},onSurveyQuestion:(ce,Ye)=>{tt(ce),$(Ye||null),y(Je=>Je.map(Re=>Re.id===ge?{...Re,askingQuestion:!0,questionInfo:ce,surveyProgress:Ye}:Re))},onCitations:ce=>{y(Ye=>Ye.map(Je=>Je.id===ge?{...Je,citations:ce}:Je))}})},[u,Z,L]),Te=C.useCallback(async pe=>{if(!we)return;let me;Array.isArray(pe)?me=pe.join(", "):typeof pe=="boolean"?me=pe?"Yes":"No":me=String(pe);const ge=`Q: ${we.question}<br>A: ${me}`;tt(null),$(null),await ue(ge)},[we,ue]),ht=C.useCallback(async()=>{we&&(tt(null),$(null),await ue("Skip"))},[we,ue]),Ze=C.useCallback(async()=>{if(!(!Xe||Xe.isLoadingMore||!Xe.hasMore)){q(pe=>pe&&{...pe,isLoadingMore:!0});try{const pe=Xe.currentPage+1,me={...u,...Z&&{assistantId:Z.id}},ge=await lf(me,{page:pe,size:10});if(ge.error){console.error("Failed to load more messages:",ge.error),q(De=>De&&{...De,isLoadingMore:!1});return}if(ge.messages.length>0){const De=ge.messages.map(ce=>({id:ce.id||Un(),content:ce.content,sender:ce.sender,timestamp:new Date(ce.timestamp),status:ce.status||"sent",citations:ce.citations})).reverse();y(ce=>{const Ye=new Set(ce.map(Re=>Re.id));return[...De.filter(Re=>!Ye.has(Re.id)),...ce]})}q(De=>De&&{...De,currentPage:pe,hasMore:ge.hasNextPage??!1,isLoadingMore:!1,...ge.page&&{totalPages:ge.page.totalPages,totalElements:ge.page.totalElements}})}catch(pe){console.error("Failed to load more messages:",pe),q(me=>me&&{...me,isLoadingMore:!1})}}},[Xe,u,Z]),ga=C.useCallback(()=>{L&&u.apiEndpoint&&gy(u,L).catch(pe=>{console.error("Failed to delete chat messages:",pe)}),y([]),ae(null),D(!1),tt(null),$(null),U(!1),Q(void 0),He(null),q(null),u.onNewChat?.(),Ke(!1)},[u,L]),Qa=C.useCallback(()=>{Ke(!0)},[]),Gl=C.useCallback(()=>{Ke(!1)},[]),eo=C.useCallback(async()=>{tt(null),$(null),await ue("Cancel survey")},[ue]),an=C.useCallback((pe,me)=>{const ge={id:Un(),content:pe.question,sender:"bot",timestamp:new Date,status:"sent",askingQuestion:!0,questionInfo:pe,surveyProgress:me};y(De=>[...De,ge]),tt(pe),$(me||null)},[]),Xa=C.useCallback(pe=>{const me={id:Un(),content:"Here are some resources that might help you:",sender:"bot",timestamp:new Date,status:"sent",citations:pe};y(ge=>[...ge,me])},[]);C.useEffect(()=>{K&&u.onWidgetReady&&u.onWidgetReady({triggerSurveyQuestion:an,triggerCitations:Xa})},[K,u.onWidgetReady,an,Xa]);const Ql={messages:h,isOpen:T,isTyping:z,isLoading:!K,isExpanded:g,streamingStatus:V,config:u,theme:oe,assistant:Z,sendMessage:ue,open:j,close:W,toggle:fe,toggleExpanded:I,currentQuestion:we,surveyProgress:Dt,submitSurveyAnswer:Te,skipSurveyQuestion:ht,cancelSurvey:eo,triggerSurveyQuestion:an,startNewChat:ga,showNewChatConfirm:Ce,requestNewChat:Qa,cancelNewChat:Gl,pagination:Xe,loadMoreMessages:Ze};return v.jsx(of.Provider,{value:Ql,children:r})};var xy=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Sy=ws(function(l){return xy.test(l)||l.charCodeAt(0)===111&&l.charCodeAt(1)===110&&l.charCodeAt(2)<91}),Cy=Sy,Ty=function(r){return r!=="theme"},rf=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?Cy:Ty},uf=function(r,s,u){var d;if(s){var h=s.shouldForwardProp;d=r.__emotion_forwardProp&&h?function(y){return r.__emotion_forwardProp(y)&&h(y)}:h}return typeof d!="function"&&u&&(d=r.__emotion_forwardProp),d},Ey=function(r){var s=r.cache,u=r.serialized,d=r.isStringTag;return Nr(s,u,d),Ls(function(){return jr(s,u,d)}),null},zy=function l(r,s){var u=r.__emotion_real===r,d=u&&r.__emotion_base||r,h,y;s!==void 0&&(h=s.label,y=s.target);var T=uf(r,s,u),S=T||rf(d),g=!S("as");return function(){var A=arguments,z=u&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(h!==void 0&&z.push("label:"+h+";"),A[0]==null||A[0].raw===void 0)z.push.apply(z,A);else{var U=A[0];z.push(U[0]);for(var V=A.length,Q=1;Q<V;Q++)z.push(A[Q],U[Q])}var Y=Ur(function(D,K,P){var Z=g&&D.as||d,re="",L=[],ae=D;if(D.theme==null){ae={};for(var G in D)ae[G]=D[G];ae.theme=C.useContext(qr)}typeof D.className=="string"?re=Ns(K.registered,L,D.className):D.className!=null&&(re=D.className+" ");var He=Xi(z.concat(L),K.registered,ae);re+=K.key+"-"+He.name,y!==void 0&&(re+=" "+y);var Xe=g&&T===void 0?rf(Z):S,q={};for(var Ce in D)g&&Ce==="as"||Xe(Ce)&&(q[Ce]=D[Ce]);return q.className=re,P&&(q.ref=P),C.createElement(C.Fragment,null,C.createElement(Ey,{cache:K,serialized:He,isStringTag:typeof Z=="string"}),C.createElement(Z,q))});return Y.displayName=h!==void 0?h:"Styled("+(typeof d=="string"?d:d.displayName||d.name||"Component")+")",Y.defaultProps=r.defaultProps,Y.__emotion_real=Y,Y.__emotion_base=d,Y.__emotion_styles=z,Y.__emotion_forwardProp=T,Object.defineProperty(Y,"toString",{value:function(){return"."+y}}),Y.withComponent=function(D,K){var P=l(D,Br({},s,K,{shouldForwardProp:uf(Y,K,!0)}));return P.apply(void 0,z)},Y}},Ay=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],R=zy.bind(null);Ay.forEach(function(l){R[l]=R(l)});const pa=()=>{const l=C.useContext(of);if(!l)throw new Error("useChat must be used within a ChatProvider");return l},My=R.div`
|
|
736
736
|
display: flex;
|
|
737
737
|
align-items: center;
|
|
738
738
|
justify-content: space-between;
|
|
@@ -744,11 +744,11 @@ Error generating stack: `+a.message+`
|
|
|
744
744
|
@media (max-width: 420px) {
|
|
745
745
|
${({floatingMode:l})=>l&&"border-radius: 0;"}
|
|
746
746
|
}
|
|
747
|
-
`,wy=
|
|
747
|
+
`,wy=R.div`
|
|
748
748
|
display: flex;
|
|
749
749
|
align-items: center;
|
|
750
750
|
gap: 12px;
|
|
751
|
-
`,_y=
|
|
751
|
+
`,_y=R.div`
|
|
752
752
|
display: flex;
|
|
753
753
|
align-items: center;
|
|
754
754
|
justify-content: center;
|
|
@@ -756,27 +756,27 @@ Error generating stack: `+a.message+`
|
|
|
756
756
|
height: 40px;
|
|
757
757
|
border-radius: ${({hasCustomIcon:l})=>l?"0":"50%"};
|
|
758
758
|
background-color: ${({hasCustomIcon:l,theme:r})=>l?"transparent":`${r.colors.headerText}33`};
|
|
759
|
-
`,Oy=
|
|
759
|
+
`,Oy=R.img`
|
|
760
760
|
width: 100%;
|
|
761
761
|
height: 100%;
|
|
762
762
|
object-fit: contain;
|
|
763
|
-
`,$y=
|
|
763
|
+
`,$y=R.div`
|
|
764
764
|
display: flex;
|
|
765
765
|
flex-direction: column;
|
|
766
|
-
`,By=
|
|
766
|
+
`,By=R.h2`
|
|
767
767
|
margin: 0;
|
|
768
768
|
font-size: 16px;
|
|
769
769
|
font-weight: 600;
|
|
770
770
|
font-family: ${({fontFamily:l})=>l};
|
|
771
771
|
line-height: 1.2;
|
|
772
|
-
`,Dy=
|
|
772
|
+
`,Dy=R.span`
|
|
773
773
|
margin: 0;
|
|
774
774
|
font-size: 12px;
|
|
775
775
|
font-weight: 400;
|
|
776
776
|
font-family: ${({fontFamily:l})=>l};
|
|
777
777
|
opacity: 0.9;
|
|
778
778
|
line-height: 1.2;
|
|
779
|
-
`,Ry=
|
|
779
|
+
`,Ry=R.div`
|
|
780
780
|
display: flex;
|
|
781
781
|
align-items: center;
|
|
782
782
|
gap: 4px;
|
|
@@ -786,7 +786,7 @@ Error generating stack: `+a.message+`
|
|
|
786
786
|
font-family: ${({fontFamily:l})=>l};
|
|
787
787
|
opacity: 0.8;
|
|
788
788
|
line-height: 1.2;
|
|
789
|
-
`,Ji=
|
|
789
|
+
`,Ji=R.button`
|
|
790
790
|
display: flex;
|
|
791
791
|
align-items: center;
|
|
792
792
|
justify-content: center;
|
|
@@ -806,17 +806,17 @@ Error generating stack: `+a.message+`
|
|
|
806
806
|
&:active {
|
|
807
807
|
background-color: ${({theme:l})=>`${l.colors.headerText}66`};
|
|
808
808
|
}
|
|
809
|
-
`,Ny=
|
|
809
|
+
`,Ny=R.div`
|
|
810
810
|
display: flex;
|
|
811
811
|
align-items: center;
|
|
812
812
|
gap: 6px;
|
|
813
|
-
`,jy=
|
|
813
|
+
`,jy=R.div`
|
|
814
814
|
display: flex;
|
|
815
815
|
|
|
816
816
|
@media (max-width: 420px) {
|
|
817
817
|
${({floatingMode:l})=>l&&"display: none;"}
|
|
818
818
|
}
|
|
819
|
-
`,Hy=()=>{const{close:l,config:r,theme:s,assistant:u,isExpanded:d,toggleExpanded:h,requestNewChat:y}=pa(),T=r.headerTitle||u?.chatUiConfig?.avatarTitle||"AI Doctor",
|
|
819
|
+
`,Hy=()=>{const{close:l,config:r,theme:s,assistant:u,isExpanded:d,toggleExpanded:h,requestNewChat:y}=pa(),T=r.headerTitle||u?.chatUiConfig?.avatarTitle||"AI Doctor",S=r.headerIcon||u?.chatUiConfig?.avatarImage?.iconURL||u?.chatUiConfig?.avatarImage?.thumbnailURL||"https://web.mypatientspace.com/img/logo-symbol.png",g=r.headerSubtitle||u?.chatUiConfig?.headerSubtitle,A=r.brandingText||u?.chatUiConfig?.brandingText||"Developed by myPatientSpace";return v.jsxs(My,{theme:s,floatingMode:r.floatingMode,children:[v.jsxs(wy,{children:[v.jsx(_y,{theme:s,hasCustomIcon:!0,children:v.jsx(Oy,{src:S,alt:""})}),v.jsxs($y,{children:[v.jsx(By,{fontFamily:s.fontFamily,children:T}),g&&v.jsx(Dy,{fontFamily:s.fontFamily,children:g}),v.jsxs(Ry,{fontFamily:s.fontFamily,children:[A," v","1.0.76"]})]})]}),v.jsxs(Ny,{children:[v.jsx(Ji,{theme:s,onClick:y,"aria-label":"Start new chat",children:v.jsx(Dm,{size:16})}),!r.hideExpandButton&&v.jsx(jy,{floatingMode:r.floatingMode,children:v.jsx(Ji,{theme:s,onClick:h,"aria-label":d?"Collapse chat":"Expand chat",children:d?v.jsx(Ws,{size:16}):v.jsx(Ks,{size:16})})}),r.showCloseSlot?v.jsx(Ji,{theme:s,"aria-label":"Close chat slot"}):r.floatingMode?v.jsx(Ji,{theme:s,onClick:l,"aria-label":"Close chat",children:v.jsx(Ll,{size:16})}):null]})]})},ky=R.div`
|
|
820
820
|
position: relative;
|
|
821
821
|
background-color: ${({theme:l})=>l.colors.background};
|
|
822
822
|
border-bottom: 1px solid ${({theme:l})=>l.colors.borderLight};
|
|
@@ -826,7 +826,7 @@ Error generating stack: `+a.message+`
|
|
|
826
826
|
opacity: 1;
|
|
827
827
|
}
|
|
828
828
|
}
|
|
829
|
-
`,Uy=
|
|
829
|
+
`,Uy=R.button`
|
|
830
830
|
position: absolute;
|
|
831
831
|
top: 0;
|
|
832
832
|
right: 0;
|
|
@@ -855,7 +855,7 @@ Error generating stack: `+a.message+`
|
|
|
855
855
|
@media (hover: none) {
|
|
856
856
|
opacity: 1;
|
|
857
857
|
}
|
|
858
|
-
`,qy=
|
|
858
|
+
`,qy=R.div`
|
|
859
859
|
display: flex;
|
|
860
860
|
gap: 6px;
|
|
861
861
|
padding: 16px 12px 8px;
|
|
@@ -867,7 +867,7 @@ Error generating stack: `+a.message+`
|
|
|
867
867
|
&::-webkit-scrollbar {
|
|
868
868
|
display: none;
|
|
869
869
|
}
|
|
870
|
-
`,Ly=
|
|
870
|
+
`,Ly=R.button`
|
|
871
871
|
display: flex;
|
|
872
872
|
align-items: center;
|
|
873
873
|
gap: 4px;
|
|
@@ -900,7 +900,7 @@ Error generating stack: `+a.message+`
|
|
|
900
900
|
cursor: not-allowed;
|
|
901
901
|
transform: none;
|
|
902
902
|
}
|
|
903
|
-
`,Yy=()=>{const{config:l,theme:r,sendMessage:s,assistant:u,isTyping:d}=pa(),h=
|
|
903
|
+
`,Yy=()=>{const{config:l,theme:r,sendMessage:s,assistant:u,isTyping:d}=pa(),h=C.useRef(null),[y,T]=C.useState(!1),S=l.quickActions?.length?l.quickActions:u?.chatUiConfig?.initialPrompts||[];if(S.length===0||y)return null;const g=z=>{l.onQuickAction?.(z),s(z)},A=z=>{h.current&&z.deltaY!==0&&(z.preventDefault(),h.current.scrollLeft+=z.deltaY)};return v.jsxs(ky,{theme:r,children:[v.jsx(Uy,{className:"close-button",theme:r,onClick:()=>T(!0),"aria-label":"Dismiss quick actions",children:v.jsx(Ll,{size:10})}),v.jsx(qy,{ref:h,onWheel:A,children:S.map((z,U)=>v.jsx(Ly,{theme:r,onClick:()=>g(z),disabled:d,"aria-label":z,children:z},U))})]})},Gy=R.div`
|
|
904
904
|
display: flex;
|
|
905
905
|
gap: 12px;
|
|
906
906
|
padding: 12px 0;
|
|
@@ -912,7 +912,7 @@ Error generating stack: `+a.message+`
|
|
|
912
912
|
&::-webkit-scrollbar {
|
|
913
913
|
display: none;
|
|
914
914
|
}
|
|
915
|
-
`,Qy=
|
|
915
|
+
`,Qy=R.button`
|
|
916
916
|
flex-shrink: 0;
|
|
917
917
|
width: 160px;
|
|
918
918
|
padding: 0;
|
|
@@ -934,17 +934,17 @@ Error generating stack: `+a.message+`
|
|
|
934
934
|
&:active {
|
|
935
935
|
transform: translateY(0);
|
|
936
936
|
}
|
|
937
|
-
`,Xy=
|
|
937
|
+
`,Xy=R.div`
|
|
938
938
|
position: relative;
|
|
939
939
|
width: 100%;
|
|
940
940
|
height: 100px;
|
|
941
941
|
background-color: ${({theme:l})=>l.colors.surface};
|
|
942
942
|
overflow: hidden;
|
|
943
|
-
`,Vy=
|
|
943
|
+
`,Vy=R.img`
|
|
944
944
|
width: 100%;
|
|
945
945
|
height: 100%;
|
|
946
946
|
object-fit: cover;
|
|
947
|
-
`,Zy=
|
|
947
|
+
`,Zy=R.div`
|
|
948
948
|
width: 100%;
|
|
949
949
|
height: 100%;
|
|
950
950
|
display: flex;
|
|
@@ -953,10 +953,10 @@ Error generating stack: `+a.message+`
|
|
|
953
953
|
background-color: ${({theme:l})=>l.colors.surface};
|
|
954
954
|
color: ${({theme:l})=>l.colors.contentCardTextLight};
|
|
955
955
|
font-size: 12px;
|
|
956
|
-
`,Ky=
|
|
956
|
+
`,Ky=R.div`
|
|
957
957
|
padding: 10px 12px;
|
|
958
958
|
flex: 1;
|
|
959
|
-
`,Jy=
|
|
959
|
+
`,Jy=R.h4`
|
|
960
960
|
margin: 0 0 4px 0;
|
|
961
961
|
font-family: ${({theme:l})=>l.fontFamily};
|
|
962
962
|
font-size: 13px;
|
|
@@ -968,7 +968,7 @@ Error generating stack: `+a.message+`
|
|
|
968
968
|
-webkit-box-orient: vertical;
|
|
969
969
|
overflow: hidden;
|
|
970
970
|
text-overflow: ellipsis;
|
|
971
|
-
`,Wy=
|
|
971
|
+
`,Wy=R.span`
|
|
972
972
|
position: absolute;
|
|
973
973
|
top: 8px;
|
|
974
974
|
left: 8px;
|
|
@@ -981,7 +981,7 @@ Error generating stack: `+a.message+`
|
|
|
981
981
|
background-color: rgba(0, 0, 0, 0.5);
|
|
982
982
|
border-radius: 6px;
|
|
983
983
|
backdrop-filter: blur(4px);
|
|
984
|
-
`,Fy=
|
|
984
|
+
`,Fy=C.memo(function({citation:r,theme:s,onClick:u}){return v.jsxs(Qy,{theme:s,onClick:u,"aria-label":r.title,children:[v.jsxs(Xy,{theme:s,children:[r.thumbnail?v.jsx(Vy,{src:r.thumbnail,alt:r.title,loading:"lazy",onError:d=>{d.target.style.display="none"}}):v.jsx(Zy,{theme:s,children:"No image"}),r.contentType&&v.jsx(Wy,{theme:s,children:r.contentType})]}),v.jsx(Ky,{theme:s,children:v.jsx(Jy,{theme:s,children:r.title})})]})}),Iy=C.memo(function({citations:r,theme:s,onCitationClick:u,onCardExpand:d}){const h=C.useRef(null);if(!r||r.length===0)return null;const y=S=>{u?.(S),d?d(S):S.content&&window.open(S.content,"_blank","noopener,noreferrer")},T=S=>{h.current&&S.deltaY!==0&&(S.preventDefault(),h.current.scrollLeft+=S.deltaY)};return v.jsx(Gy,{ref:h,onWheel:T,children:r.map(S=>v.jsx(Fy,{citation:S,theme:s,onClick:()=>y(S)},S.id))})}),Py=en`
|
|
985
985
|
from {
|
|
986
986
|
opacity: 0;
|
|
987
987
|
transform: translateY(8px);
|
|
@@ -990,7 +990,7 @@ Error generating stack: `+a.message+`
|
|
|
990
990
|
opacity: 1;
|
|
991
991
|
transform: translateY(0);
|
|
992
992
|
}
|
|
993
|
-
`,e0=
|
|
993
|
+
`,e0=R.div`
|
|
994
994
|
display: flex;
|
|
995
995
|
flex-direction: column;
|
|
996
996
|
align-items: ${({isUser:l})=>l?"flex-end":"flex-start"};
|
|
@@ -1000,7 +1000,7 @@ Error generating stack: `+a.message+`
|
|
|
1000
1000
|
@media (prefers-reduced-motion: reduce) {
|
|
1001
1001
|
animation: none;
|
|
1002
1002
|
}
|
|
1003
|
-
`,t0=
|
|
1003
|
+
`,t0=R.div`
|
|
1004
1004
|
max-width: ${({isUser:l})=>l?"80%":"100%"};
|
|
1005
1005
|
padding: ${({isUser:l})=>l?"12px 16px":"0"};
|
|
1006
1006
|
border-radius: ${({isUser:l})=>l?"16px":"0"};
|
|
@@ -1043,16 +1043,16 @@ Error generating stack: `+a.message+`
|
|
|
1043
1043
|
font-family: monospace;
|
|
1044
1044
|
font-size: 13px;
|
|
1045
1045
|
}
|
|
1046
|
-
`,n0=
|
|
1046
|
+
`,n0=R.span`
|
|
1047
1047
|
font-size: 11px;
|
|
1048
1048
|
color: ${({theme:l})=>l.colors.textLight};
|
|
1049
1049
|
margin-top: 4px;
|
|
1050
1050
|
font-family: ${({theme:l})=>l.fontFamily};
|
|
1051
|
-
`,a0=
|
|
1051
|
+
`,a0=R.span`
|
|
1052
1052
|
font-size: 11px;
|
|
1053
1053
|
margin-left: 6px;
|
|
1054
1054
|
color: ${({status:l,theme:r})=>{switch(l){case"sending":return r.colors.textLight;case"error":return r.colors.error;default:return r.colors.textLight}}};
|
|
1055
|
-
`,l0=
|
|
1055
|
+
`,l0=R.button`
|
|
1056
1056
|
display: flex;
|
|
1057
1057
|
align-items: center;
|
|
1058
1058
|
justify-content: center;
|
|
@@ -1070,7 +1070,7 @@ Error generating stack: `+a.message+`
|
|
|
1070
1070
|
background-color: ${({theme:l})=>l.colors.primary};
|
|
1071
1071
|
color: ${({theme:l})=>l.colors.white};
|
|
1072
1072
|
}
|
|
1073
|
-
`,i0=l=>l.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}),o0=
|
|
1073
|
+
`,i0=l=>l.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}),o0=C.memo(({message:l,theme:r,onCitationClick:s,onCardExpand:u})=>{const d=l.sender==="user",[h,y]=C.useState(!1),T=C.useRef(null),S=()=>{T.current&&(h?(T.current.pause(),T.current.currentTime=0,y(!1)):(T.current.play(),y(!0)))},g=()=>{y(!1)};return v.jsxs(e0,{isUser:d,children:[v.jsx(t0,{isUser:d,isError:l.status==="error",theme:r,dangerouslySetInnerHTML:{__html:l.content.replace(/\n/g,"<br>")}}),!d&&l.citations&&l.citations.length>0&&v.jsx(Iy,{citations:l.citations,theme:r,onCitationClick:s,onCardExpand:u}),l.audioUrl&&v.jsxs(v.Fragment,{children:[v.jsx("audio",{ref:T,src:l.audioUrl,onEnded:g,style:{display:"none"}}),v.jsx(l0,{theme:r,isPlaying:h,onClick:S,"aria-label":h?"Stop audio":"Play audio",title:h?"Stop audio":"Play audio",children:h?v.jsx(Um,{size:16}):v.jsx(km,{size:16})})]}),d&&v.jsxs(n0,{theme:r,children:[i0(l.timestamp),l.status!=="sent"&&v.jsx(a0,{status:l.status,theme:r,children:l.status==="sending"?"Sending...":"Failed"})]})]})}),r0=en`
|
|
1074
1074
|
from {
|
|
1075
1075
|
opacity: 0;
|
|
1076
1076
|
transform: translateY(4px);
|
|
@@ -1086,23 +1086,23 @@ Error generating stack: `+a.message+`
|
|
|
1086
1086
|
30% {
|
|
1087
1087
|
transform: translateY(-4px);
|
|
1088
1088
|
}
|
|
1089
|
-
`,c0=
|
|
1089
|
+
`,c0=R.div`
|
|
1090
1090
|
display: flex;
|
|
1091
1091
|
align-items: center;
|
|
1092
1092
|
gap: 8px;
|
|
1093
1093
|
padding: 8px 4px;
|
|
1094
1094
|
animation: ${r0} 0.2s ease-out;
|
|
1095
|
-
`,s0=
|
|
1095
|
+
`,s0=R.span`
|
|
1096
1096
|
font-size: 13px;
|
|
1097
1097
|
font-family: ${({theme:l})=>l.fontFamily};
|
|
1098
1098
|
color: ${({theme:l})=>l.colors.textLight};
|
|
1099
1099
|
font-style: italic;
|
|
1100
|
-
`,f0=
|
|
1100
|
+
`,f0=R.span`
|
|
1101
1101
|
display: inline-flex;
|
|
1102
1102
|
align-items: center;
|
|
1103
1103
|
gap: 3px;
|
|
1104
1104
|
margin-left: 2px;
|
|
1105
|
-
`,Zr=
|
|
1105
|
+
`,Zr=R.span`
|
|
1106
1106
|
width: 5px;
|
|
1107
1107
|
height: 5px;
|
|
1108
1108
|
border-radius: 50%;
|
|
@@ -1114,7 +1114,7 @@ Error generating stack: `+a.message+`
|
|
|
1114
1114
|
animation: none;
|
|
1115
1115
|
opacity: 0.6;
|
|
1116
1116
|
}
|
|
1117
|
-
`,d0=l=>{switch(l){case"thinking":return"Thinking";case"reasoning":return"Reasoning";case"tool_start":return"Using tools";case"tool_end":return"Processing results";case"searching":return"Searching";case"reading":return"Reading information";case"generating":return"Generating response";case"summarizing":return"Summarizing";case"processing":return"Processing";default:return"Thinking"}},h0=({theme:l,status:r})=>{const s=d0(r),[u,d]=
|
|
1117
|
+
`,d0=l=>{switch(l){case"thinking":return"Thinking";case"reasoning":return"Reasoning";case"tool_start":return"Using tools";case"tool_end":return"Processing results";case"searching":return"Searching";case"reading":return"Reading information";case"generating":return"Generating response";case"summarizing":return"Summarizing";case"processing":return"Processing";default:return"Thinking"}},h0=({theme:l,status:r})=>{const s=d0(r),[u,d]=C.useState(""),[h,y]=C.useState(!1),T=C.useRef(s),S=C.useRef(null);return C.useEffect(()=>{S.current&&clearTimeout(S.current),(s!==T.current||u==="")&&(T.current=s,d(""),y(!0))},[s]),C.useEffect(()=>{if(!h)return;const g=T.current;return u.length<g.length?S.current=setTimeout(()=>{d(g.slice(0,u.length+1))},25):y(!1),()=>{S.current&&clearTimeout(S.current)}},[u,h]),v.jsxs(c0,{children:[v.jsx(s0,{theme:l,children:u}),v.jsxs(f0,{children:[v.jsx(Zr,{delay:0,theme:l}),v.jsx(Zr,{delay:150,theme:l}),v.jsx(Zr,{delay:300,theme:l})]})]})},p0=R.div`
|
|
1118
1118
|
flex: 1;
|
|
1119
1119
|
overflow-y: auto;
|
|
1120
1120
|
padding: 16px;
|
|
@@ -1152,7 +1152,7 @@ Error generating stack: `+a.message+`
|
|
|
1152
1152
|
&:hover::-webkit-scrollbar-thumb:hover {
|
|
1153
1153
|
background-color: ${({scrollbarThumbHover:l})=>l};
|
|
1154
1154
|
}
|
|
1155
|
-
`,g0=
|
|
1155
|
+
`,g0=R.div`
|
|
1156
1156
|
display: flex;
|
|
1157
1157
|
flex: 1;
|
|
1158
1158
|
align-items: center;
|
|
@@ -1161,7 +1161,7 @@ Error generating stack: `+a.message+`
|
|
|
1161
1161
|
font-size: 14px;
|
|
1162
1162
|
text-align: center;
|
|
1163
1163
|
padding: 20px;
|
|
1164
|
-
`,m0=
|
|
1164
|
+
`,m0=R.div`
|
|
1165
1165
|
display: flex;
|
|
1166
1166
|
flex: 1;
|
|
1167
1167
|
flex-direction: column;
|
|
@@ -1170,7 +1170,7 @@ Error generating stack: `+a.message+`
|
|
|
1170
1170
|
gap: 12px;
|
|
1171
1171
|
color: ${({color:l})=>l};
|
|
1172
1172
|
font-size: 14px;
|
|
1173
|
-
`,y0=
|
|
1173
|
+
`,y0=R.div`
|
|
1174
1174
|
width: 32px;
|
|
1175
1175
|
height: 32px;
|
|
1176
1176
|
border: 3px solid ${({color:l})=>l}20;
|
|
@@ -1183,12 +1183,12 @@ Error generating stack: `+a.message+`
|
|
|
1183
1183
|
transform: rotate(360deg);
|
|
1184
1184
|
}
|
|
1185
1185
|
}
|
|
1186
|
-
`,b0=
|
|
1186
|
+
`,b0=R.div`
|
|
1187
1187
|
display: flex;
|
|
1188
1188
|
align-items: center;
|
|
1189
1189
|
justify-content: center;
|
|
1190
1190
|
padding: 12px 0;
|
|
1191
|
-
`,v0=
|
|
1191
|
+
`,v0=R.div`
|
|
1192
1192
|
width: 20px;
|
|
1193
1193
|
height: 20px;
|
|
1194
1194
|
border: 2px solid ${({color:l})=>l}20;
|
|
@@ -1201,34 +1201,34 @@ Error generating stack: `+a.message+`
|
|
|
1201
1201
|
transform: rotate(360deg);
|
|
1202
1202
|
}
|
|
1203
1203
|
}
|
|
1204
|
-
`,x0=({onCardExpand:l})=>{const{messages:r,isTyping:s,isLoading:u,streamingStatus:d,theme:h,config:y,pagination:T,loadMoreMessages:
|
|
1204
|
+
`,x0=({onCardExpand:l})=>{const{messages:r,isTyping:s,isLoading:u,streamingStatus:d,theme:h,config:y,pagination:T,loadMoreMessages:S}=pa(),g=C.useRef(null),A=C.useRef(0),z=C.useRef(!1),U=C.useRef(null);C.useLayoutEffect(()=>{const Q=g.current;if(!Q||u||r.length===0)return;const Y=r[0]?.id??null;if(z.current&&A.current>0&&U.current!==null&&Y!==U.current){const K=Q.scrollHeight-A.current;Q.scrollTop=K,A.current=0,requestAnimationFrame(()=>{z.current=!1})}else z.current||(Q.scrollTop=Q.scrollHeight);U.current=Y},[r,s,u]);const V=C.useCallback(()=>{const Q=g.current;!Q||z.current||Q.scrollTop<=50&&T?.hasMore&&!T.isLoadingMore&&(A.current=Q.scrollHeight,z.current=!0,S())},[T,S]);return C.useEffect(()=>{const Q=g.current;if(Q)return Q.addEventListener("scroll",V,{passive:!0}),()=>Q.removeEventListener("scroll",V)},[V]),v.jsx(p0,{ref:g,fontFamily:h.fontFamily,scrollbarThumb:h.colors.scrollbarThumb,scrollbarThumbHover:h.colors.scrollbarThumbHover,background:h.colors.background,children:u?v.jsxs(m0,{color:h.colors.textLight,children:[v.jsx(y0,{color:h.colors.primary}),"Loading..."]}):r.length===0&&!s?v.jsx(g0,{color:h.colors.textLight,children:"Send a message to start the conversation"}):v.jsxs(v.Fragment,{children:[T?.isLoadingMore&&v.jsx(b0,{children:v.jsx(v0,{color:h.colors.primary})}),r.map(Q=>v.jsx(o0,{message:Q,theme:h,onCitationClick:y.onCitationClick,onCardExpand:l},Q.id)),s&&v.jsx(h0,{theme:h,status:d})]})})},cf=(l={})=>{const{onTranscript:r,onError:s,language:u="en-US"}=l,[d,h]=C.useState(!1),[y,T]=C.useState(""),[S,g]=C.useState(!1),A=C.useRef(null);C.useEffect(()=>{const Y=window.SpeechRecognition||window.webkitSpeechRecognition;return Y&&(g(!0),A.current=new Y,A.current.continuous=!0,A.current.interimResults=!0,A.current.lang=u),()=>{A.current&&A.current.abort()}},[u]);const z=C.useCallback(()=>{if(!(!A.current||d)){T(""),A.current.onstart=()=>{h(!0)},A.current.onresult=Y=>{let D="",K="";for(let Z=Y.resultIndex;Z<Y.results.length;Z++){const re=Y.results[Z];re.isFinal?D+=re[0].transcript:K+=re[0].transcript}T(D||K),D&&r&&r(D)},A.current.onerror=Y=>{h(!1),s&&s(Y.error)},A.current.onend=()=>{h(!1)};try{A.current.start()}catch{s&&s("Failed to start recording")}}},[d,r,s]),U=C.useCallback(()=>{A.current&&d&&(A.current.stop(),h(!1))},[d]),V=C.useCallback(()=>{d?U():z()},[d,z,U]),Q=C.useCallback(()=>{T("")},[]);return{isRecording:d,isSupported:S,transcript:y,startRecording:z,stopRecording:U,toggleRecording:V,clearTranscript:Q}},S0=R.div`
|
|
1205
1205
|
display: flex;
|
|
1206
1206
|
flex-direction: column;
|
|
1207
1207
|
gap: 4px;
|
|
1208
1208
|
padding: 10px 12px;
|
|
1209
|
-
`,C0=
|
|
1209
|
+
`,C0=R.div`
|
|
1210
1210
|
display: flex;
|
|
1211
1211
|
align-items: center;
|
|
1212
1212
|
justify-content: space-between;
|
|
1213
1213
|
gap: 8px;
|
|
1214
|
-
`,T0=
|
|
1214
|
+
`,T0=R.span`
|
|
1215
1215
|
font-family: ${({theme:l})=>l.fontFamily};
|
|
1216
1216
|
font-size: 11px;
|
|
1217
1217
|
color: ${({theme:l})=>l.colors.textLight};
|
|
1218
1218
|
flex-shrink: 0;
|
|
1219
|
-
`,E0=
|
|
1219
|
+
`,E0=R.span`
|
|
1220
1220
|
flex: 1;
|
|
1221
1221
|
font-family: ${({theme:l})=>l.fontFamily};
|
|
1222
1222
|
font-size: 14px;
|
|
1223
1223
|
font-weight: 600;
|
|
1224
1224
|
color: ${({theme:l})=>l.colors.text};
|
|
1225
1225
|
line-height: 1.3;
|
|
1226
|
-
`,z0=
|
|
1226
|
+
`,z0=R.div`
|
|
1227
1227
|
display: flex;
|
|
1228
1228
|
align-items: center;
|
|
1229
1229
|
gap: 4px;
|
|
1230
1230
|
flex-shrink: 0;
|
|
1231
|
-
`,A0=
|
|
1231
|
+
`,A0=R.button`
|
|
1232
1232
|
padding: 4px 8px;
|
|
1233
1233
|
border: none;
|
|
1234
1234
|
border-radius: 6px;
|
|
@@ -1244,7 +1244,7 @@ Error generating stack: `+a.message+`
|
|
|
1244
1244
|
background-color: ${({theme:l})=>l.colors.surface};
|
|
1245
1245
|
color: ${({theme:l})=>l.colors.text};
|
|
1246
1246
|
}
|
|
1247
|
-
`,M0=
|
|
1247
|
+
`,M0=R.button`
|
|
1248
1248
|
display: flex;
|
|
1249
1249
|
align-items: center;
|
|
1250
1250
|
justify-content: center;
|
|
@@ -1262,7 +1262,7 @@ Error generating stack: `+a.message+`
|
|
|
1262
1262
|
background-color: ${({theme:l})=>l.colors.surface};
|
|
1263
1263
|
color: ${({theme:l})=>l.colors.text};
|
|
1264
1264
|
}
|
|
1265
|
-
`,
|
|
1265
|
+
`,sf=C.memo(({question:l,progress:r,onCancel:s,onSkip:u,theme:d})=>v.jsx(S0,{children:v.jsxs(C0,{children:[r&&v.jsxs(T0,{theme:d,children:[r.currentIndex+1,"/",r.totalQuestions]}),v.jsx(E0,{theme:d,children:l}),v.jsxs(z0,{children:[u&&v.jsx(A0,{theme:d,onClick:u,type:"button",children:"Skip"}),v.jsx(M0,{theme:d,onClick:s,"aria-label":"Cancel survey",children:v.jsx(Ll,{size:16})})]})]})}));sf.displayName="SurveyHeader";const w0=R.button`
|
|
1266
1266
|
display: flex;
|
|
1267
1267
|
align-items: center;
|
|
1268
1268
|
gap: 8px;
|
|
@@ -1287,7 +1287,7 @@ Error generating stack: `+a.message+`
|
|
|
1287
1287
|
&:active {
|
|
1288
1288
|
transform: scale(0.99);
|
|
1289
1289
|
}
|
|
1290
|
-
`,_0=
|
|
1290
|
+
`,_0=R.span`
|
|
1291
1291
|
display: flex;
|
|
1292
1292
|
align-items: center;
|
|
1293
1293
|
justify-content: center;
|
|
@@ -1300,22 +1300,22 @@ Error generating stack: `+a.message+`
|
|
|
1300
1300
|
font-family: ${({theme:l})=>l.fontFamily};
|
|
1301
1301
|
font-size: 11px;
|
|
1302
1302
|
font-weight: 600;
|
|
1303
|
-
`,O0=
|
|
1303
|
+
`,O0=R.span`
|
|
1304
1304
|
flex: 1;
|
|
1305
1305
|
font-family: ${({theme:l})=>l.fontFamily};
|
|
1306
1306
|
font-size: 13px;
|
|
1307
1307
|
color: ${({theme:l})=>l.colors.text};
|
|
1308
|
-
`,$0=
|
|
1308
|
+
`,$0=R.span`
|
|
1309
1309
|
display: flex;
|
|
1310
1310
|
align-items: center;
|
|
1311
1311
|
color: ${({theme:l})=>l.colors.textLight};
|
|
1312
1312
|
opacity: ${({isVisible:l})=>l?1:0};
|
|
1313
1313
|
transition: opacity 0.2s ease;
|
|
1314
|
-
`,
|
|
1314
|
+
`,ff=C.memo(({label:l,index:r,isSelected:s,onSelect:u,theme:d})=>v.jsxs(w0,{theme:d,isSelected:s,onClick:u,type:"button",children:[v.jsx(_0,{theme:d,isSelected:s,children:r+1}),v.jsx(O0,{theme:d,children:l}),v.jsx($0,{theme:d,isVisible:s,className:"choice-arrow",children:v.jsx(Om,{size:16})})]}));ff.displayName="ChoiceOption";const B0=R.div`
|
|
1315
1315
|
display: flex;
|
|
1316
1316
|
flex-direction: column;
|
|
1317
1317
|
gap: 6px;
|
|
1318
|
-
`,D0=
|
|
1318
|
+
`,D0=R.button`
|
|
1319
1319
|
display: flex;
|
|
1320
1320
|
align-items: center;
|
|
1321
1321
|
gap: 8px;
|
|
@@ -1331,7 +1331,7 @@ Error generating stack: `+a.message+`
|
|
|
1331
1331
|
&:hover {
|
|
1332
1332
|
background-color: ${({theme:l})=>l.colors.surveyOptionBgHover};
|
|
1333
1333
|
}
|
|
1334
|
-
`,R0=
|
|
1334
|
+
`,R0=R.span`
|
|
1335
1335
|
display: flex;
|
|
1336
1336
|
align-items: center;
|
|
1337
1337
|
justify-content: center;
|
|
@@ -1341,16 +1341,16 @@ Error generating stack: `+a.message+`
|
|
|
1341
1341
|
border-radius: 5px;
|
|
1342
1342
|
background-color: ${({theme:l})=>l.colors.surveyNumberBg};
|
|
1343
1343
|
color: ${({theme:l})=>l.colors.surveyNumberText};
|
|
1344
|
-
`,N0=
|
|
1344
|
+
`,N0=R.span`
|
|
1345
1345
|
flex: 1;
|
|
1346
1346
|
font-family: ${({theme:l})=>l.fontFamily};
|
|
1347
1347
|
font-size: 13px;
|
|
1348
1348
|
color: ${({theme:l})=>l.colors.textLight};
|
|
1349
|
-
`,j0=
|
|
1349
|
+
`,j0=R.div`
|
|
1350
1350
|
display: flex;
|
|
1351
1351
|
gap: 8px;
|
|
1352
1352
|
align-items: center;
|
|
1353
|
-
`,H0=
|
|
1353
|
+
`,H0=R.input`
|
|
1354
1354
|
flex: 1;
|
|
1355
1355
|
padding: 8px 12px;
|
|
1356
1356
|
border: 1px solid ${({theme:l})=>l.colors.border};
|
|
@@ -1369,7 +1369,7 @@ Error generating stack: `+a.message+`
|
|
|
1369
1369
|
&::placeholder {
|
|
1370
1370
|
color: ${({theme:l})=>l.colors.textLight};
|
|
1371
1371
|
}
|
|
1372
|
-
`,k0=
|
|
1372
|
+
`,k0=R.button`
|
|
1373
1373
|
display: flex;
|
|
1374
1374
|
align-items: center;
|
|
1375
1375
|
justify-content: center;
|
|
@@ -1389,24 +1389,24 @@ Error generating stack: `+a.message+`
|
|
|
1389
1389
|
&:active:not(:disabled) {
|
|
1390
1390
|
transform: scale(0.95);
|
|
1391
1391
|
}
|
|
1392
|
-
`,
|
|
1392
|
+
`,df=C.memo(({onSubmit:l,theme:r,placeholder:s="Type your answer..."})=>{const[u,d]=C.useState(!1),[h,y]=C.useState(""),T=()=>{h.trim()&&l(h.trim())},S=g=>{g.key==="Enter"&&!g.shiftKey&&(g.preventDefault(),T())};return u?v.jsx(B0,{children:v.jsxs(j0,{theme:r,children:[v.jsx(H0,{theme:r,value:h,onChange:g=>y(g.target.value),onKeyDown:S,placeholder:s,autoFocus:!0}),v.jsx(k0,{theme:r,onClick:T,disabled:!h.trim(),type:"button",children:v.jsx(Ha,{size:18})})]})}):v.jsxs(D0,{theme:r,isActive:!1,onClick:()=>d(!0),type:"button",children:[v.jsx(R0,{theme:r,children:v.jsx(Rm,{size:12})}),v.jsx(N0,{theme:r,children:"Something else"})]})});df.displayName="OtherOption";const U0=R.div`
|
|
1393
1393
|
display: flex;
|
|
1394
1394
|
flex-direction: column;
|
|
1395
1395
|
gap: 4px;
|
|
1396
|
-
`,Wi=
|
|
1396
|
+
`,Wi=C.memo(({options:l,allowMultiple:r=!1,allowOther:s=!1,onSelect:u,theme:d})=>{const[h,y]=C.useState(new Set),T=g=>{if(r){const A=new Set(h);A.has(g)?A.delete(g):A.add(g),y(A);const z=Array.from(A).map(U=>l[U]);u(z)}else y(new Set([g])),u(l[g])},S=g=>{u(g)};return v.jsxs(U0,{children:[l.map((g,A)=>v.jsx(ff,{label:g,index:A,isSelected:h.has(A),onSelect:()=>T(A),theme:d},A)),s&&v.jsx(df,{onSubmit:S,theme:d})]})});Wi.displayName="ChoiceOptions";const q0=R.div`
|
|
1397
1397
|
display: flex;
|
|
1398
1398
|
flex-direction: column;
|
|
1399
1399
|
gap: 8px;
|
|
1400
|
-
`,L0=
|
|
1400
|
+
`,L0=R.div`
|
|
1401
1401
|
display: flex;
|
|
1402
1402
|
flex-direction: column;
|
|
1403
1403
|
gap: 4px;
|
|
1404
|
-
`,Y0=
|
|
1404
|
+
`,Y0=R.div`
|
|
1405
1405
|
position: relative;
|
|
1406
1406
|
height: 8px;
|
|
1407
1407
|
border-radius: 4px;
|
|
1408
1408
|
background-color: ${({theme:l})=>l.colors.borderLight};
|
|
1409
|
-
`,G0=
|
|
1409
|
+
`,G0=R.div`
|
|
1410
1410
|
position: absolute;
|
|
1411
1411
|
left: 0;
|
|
1412
1412
|
top: 0;
|
|
@@ -1415,7 +1415,7 @@ Error generating stack: `+a.message+`
|
|
|
1415
1415
|
border-radius: 4px;
|
|
1416
1416
|
background-color: ${({theme:l})=>l.colors.primary};
|
|
1417
1417
|
transition: width 0.1s ease;
|
|
1418
|
-
`,Q0=
|
|
1418
|
+
`,Q0=R.input`
|
|
1419
1419
|
position: absolute;
|
|
1420
1420
|
top: -6px;
|
|
1421
1421
|
left: 0;
|
|
@@ -1424,9 +1424,9 @@ Error generating stack: `+a.message+`
|
|
|
1424
1424
|
margin: 0;
|
|
1425
1425
|
opacity: 0;
|
|
1426
1426
|
cursor: pointer;
|
|
1427
|
-
`,X0=
|
|
1427
|
+
`,X0=R.div`
|
|
1428
1428
|
position: relative;
|
|
1429
|
-
`,V0=
|
|
1429
|
+
`,V0=R.div`
|
|
1430
1430
|
display: flex;
|
|
1431
1431
|
align-items: center;
|
|
1432
1432
|
justify-content: center;
|
|
@@ -1437,18 +1437,18 @@ Error generating stack: `+a.message+`
|
|
|
1437
1437
|
font-size: 18px;
|
|
1438
1438
|
font-weight: 600;
|
|
1439
1439
|
color: ${({theme:l})=>l.colors.primary};
|
|
1440
|
-
`,Z0=
|
|
1440
|
+
`,Z0=R.div`
|
|
1441
1441
|
display: flex;
|
|
1442
1442
|
justify-content: space-between;
|
|
1443
|
-
`,
|
|
1443
|
+
`,hf=R.span`
|
|
1444
1444
|
font-family: ${({theme:l})=>l.fontFamily};
|
|
1445
1445
|
font-size: 11px;
|
|
1446
1446
|
color: ${({theme:l})=>l.colors.textLight};
|
|
1447
|
-
`,K0=
|
|
1447
|
+
`,K0=R.div`
|
|
1448
1448
|
display: flex;
|
|
1449
1449
|
justify-content: space-between;
|
|
1450
1450
|
align-items: center;
|
|
1451
|
-
`,J0=
|
|
1451
|
+
`,J0=R.button`
|
|
1452
1452
|
display: flex;
|
|
1453
1453
|
align-items: center;
|
|
1454
1454
|
justify-content: center;
|
|
@@ -1468,7 +1468,7 @@ Error generating stack: `+a.message+`
|
|
|
1468
1468
|
&:active {
|
|
1469
1469
|
transform: scale(0.95);
|
|
1470
1470
|
}
|
|
1471
|
-
`,
|
|
1471
|
+
`,pf=C.memo(({scale:l,onSubmit:r,theme:s})=>{const{min:u,max:d,minLabel:h,maxLabel:y}=l,[T,S]=C.useState(Math.floor((u+d)/2)),g=(T-u)/(d-u)*100,A=z=>{S(parseInt(z.target.value,10))};return v.jsxs(q0,{children:[v.jsxs(L0,{children:[v.jsxs(X0,{children:[v.jsx(Y0,{theme:s,children:v.jsx(G0,{theme:s,percentage:g})}),v.jsx(Q0,{theme:s,type:"range",min:u,max:d,value:T,onChange:A})]}),v.jsxs(Z0,{children:[v.jsx(hf,{theme:s,children:h||u}),v.jsx(hf,{theme:s,children:y||d})]})]}),v.jsxs(K0,{children:[v.jsx(V0,{theme:s,children:T}),v.jsx(J0,{theme:s,onClick:()=>r(T),type:"button",children:v.jsx(Ha,{size:18})})]})]})});pf.displayName="ScaleInput";const W0=R.div`
|
|
1472
1472
|
display: flex;
|
|
1473
1473
|
flex-direction: column;
|
|
1474
1474
|
border: 1.5px solid ${({theme:l})=>l.colors.border};
|
|
@@ -1480,7 +1480,7 @@ Error generating stack: `+a.message+`
|
|
|
1480
1480
|
border-color: ${({theme:l})=>l.colors.primary};
|
|
1481
1481
|
box-shadow: 0 0 0 3px ${({theme:l})=>l.colors.accentLight};
|
|
1482
1482
|
}
|
|
1483
|
-
`,F0=
|
|
1483
|
+
`,F0=R.textarea`
|
|
1484
1484
|
flex: 1;
|
|
1485
1485
|
padding: 12px 16px 8px;
|
|
1486
1486
|
border: none;
|
|
@@ -1498,13 +1498,13 @@ Error generating stack: `+a.message+`
|
|
|
1498
1498
|
&::placeholder {
|
|
1499
1499
|
color: ${({theme:l})=>l.colors.textLight};
|
|
1500
1500
|
}
|
|
1501
|
-
`,I0=
|
|
1501
|
+
`,I0=R.div`
|
|
1502
1502
|
display: flex;
|
|
1503
1503
|
justify-content: flex-end;
|
|
1504
1504
|
align-items: center;
|
|
1505
1505
|
gap: 8px;
|
|
1506
1506
|
padding: 4px 12px 8px;
|
|
1507
|
-
`,P0=
|
|
1507
|
+
`,P0=R.button`
|
|
1508
1508
|
display: flex;
|
|
1509
1509
|
align-items: center;
|
|
1510
1510
|
justify-content: center;
|
|
@@ -1534,7 +1534,7 @@ Error generating stack: `+a.message+`
|
|
|
1534
1534
|
100% {
|
|
1535
1535
|
box-shadow: 0 0 0 0 ${l}00;
|
|
1536
1536
|
}
|
|
1537
|
-
`,tb=
|
|
1537
|
+
`,tb=R.button`
|
|
1538
1538
|
display: flex;
|
|
1539
1539
|
align-items: center;
|
|
1540
1540
|
justify-content: center;
|
|
@@ -1556,15 +1556,15 @@ Error generating stack: `+a.message+`
|
|
|
1556
1556
|
&:active {
|
|
1557
1557
|
transform: scale(0.95);
|
|
1558
1558
|
}
|
|
1559
|
-
`,Kr=
|
|
1559
|
+
`,Kr=C.memo(({onSubmit:l,theme:r,placeholder:s="Type your answer..."})=>{const[u,d]=C.useState(""),{isRecording:h,isSupported:y,transcript:T,toggleRecording:S,clearTranscript:g}=cf({onError:V=>{console.error("Voice recording error:",V)}});C.useEffect(()=>{T&&d(T)},[T]);const A=()=>{u.trim()&&(l(u.trim()),g())},z=V=>{V.key==="Enter"&&!V.shiftKey&&(V.preventDefault(),A())},U=()=>h?"Listening...":s;return v.jsxs(W0,{theme:r,children:[v.jsx(F0,{theme:r,value:u,onChange:V=>d(V.target.value),onKeyDown:z,placeholder:U(),rows:1}),v.jsxs(I0,{children:[y&&v.jsx(tb,{theme:r,onClick:S,isRecording:h,"aria-label":h?"Stop recording":"Start voice recording",title:h?"Stop recording":"Start voice recording",type:"button",children:v.jsx(Js,{size:18})}),v.jsx(P0,{theme:r,onClick:A,disabled:!u.trim(),type:"button",children:v.jsx(Ha,{size:18})})]})]})});Kr.displayName="TextInput";const nb=R.div`
|
|
1560
1560
|
display: flex;
|
|
1561
1561
|
flex-direction: column;
|
|
1562
1562
|
gap: 8px;
|
|
1563
|
-
`,ab=
|
|
1563
|
+
`,ab=R.div`
|
|
1564
1564
|
display: flex;
|
|
1565
1565
|
gap: 8px;
|
|
1566
1566
|
align-items: center;
|
|
1567
|
-
`,lb=
|
|
1567
|
+
`,lb=R.input`
|
|
1568
1568
|
flex: 1;
|
|
1569
1569
|
padding: 10px 12px;
|
|
1570
1570
|
border: 1px solid ${({theme:l})=>l.colors.border};
|
|
@@ -1591,7 +1591,7 @@ Error generating stack: `+a.message+`
|
|
|
1591
1591
|
margin: 0;
|
|
1592
1592
|
}
|
|
1593
1593
|
-moz-appearance: textfield;
|
|
1594
|
-
`,ib=
|
|
1594
|
+
`,ib=R.button`
|
|
1595
1595
|
display: flex;
|
|
1596
1596
|
align-items: center;
|
|
1597
1597
|
justify-content: center;
|
|
@@ -1611,10 +1611,10 @@ Error generating stack: `+a.message+`
|
|
|
1611
1611
|
&:active:not(:disabled) {
|
|
1612
1612
|
transform: scale(0.95);
|
|
1613
1613
|
}
|
|
1614
|
-
`,Jr=
|
|
1614
|
+
`,Jr=C.memo(({onSubmit:l,theme:r,placeholder:s="Enter a number...",allowDecimal:u=!1,min:d,max:h})=>{const[y,T]=C.useState(""),S=U=>{const V=U.target.value;if(V===""||V==="-"){T(V);return}(u?/^-?\d*\.?\d*$/:/^-?\d*$/).test(V)&&T(V)},g=()=>{const U=u?parseFloat(y):parseInt(y,10);isNaN(U)||d!==void 0&&U<d||h!==void 0&&U>h||l(U)},A=U=>{U.key==="Enter"&&(U.preventDefault(),g())},z=()=>{if(y===""||y==="-")return!1;const U=u?parseFloat(y):parseInt(y,10);return!(isNaN(U)||d!==void 0&&U<d||h!==void 0&&U>h)};return v.jsx(nb,{children:v.jsxs(ab,{children:[v.jsx(lb,{theme:r,type:"text",inputMode:u?"decimal":"numeric",value:y,onChange:S,onKeyDown:A,placeholder:s}),v.jsx(ib,{theme:r,onClick:g,disabled:!z(),type:"button",children:v.jsx(Ha,{size:18})})]})})});Jr.displayName="NumberInput";const ob=R.div`
|
|
1615
1615
|
display: flex;
|
|
1616
1616
|
gap: 8px;
|
|
1617
|
-
`,
|
|
1617
|
+
`,gf=R.button`
|
|
1618
1618
|
flex: 1;
|
|
1619
1619
|
display: flex;
|
|
1620
1620
|
align-items: center;
|
|
@@ -1639,15 +1639,15 @@ Error generating stack: `+a.message+`
|
|
|
1639
1639
|
&:active {
|
|
1640
1640
|
transform: scale(0.98);
|
|
1641
1641
|
}
|
|
1642
|
-
`,
|
|
1642
|
+
`,mf=C.memo(({onSubmit:l,theme:r,yesLabel:s="Yes",noLabel:u="No"})=>v.jsxs(ob,{children:[v.jsx(gf,{theme:r,variant:"yes",onClick:()=>l(!0),type:"button",children:s}),v.jsx(gf,{theme:r,variant:"no",onClick:()=>l(!1),type:"button",children:u})]}));mf.displayName="BooleanInput";const rb=R.div`
|
|
1643
1643
|
display: flex;
|
|
1644
1644
|
flex-direction: column;
|
|
1645
1645
|
gap: 8px;
|
|
1646
|
-
`,ub=
|
|
1646
|
+
`,ub=R.div`
|
|
1647
1647
|
display: flex;
|
|
1648
1648
|
gap: 8px;
|
|
1649
1649
|
align-items: center;
|
|
1650
|
-
`,cb=
|
|
1650
|
+
`,cb=R.input`
|
|
1651
1651
|
flex: 1;
|
|
1652
1652
|
padding: 10px 12px;
|
|
1653
1653
|
border: 1px solid ${({theme:l})=>l.colors.border};
|
|
@@ -1673,7 +1673,7 @@ Error generating stack: `+a.message+`
|
|
|
1673
1673
|
opacity: 1;
|
|
1674
1674
|
}
|
|
1675
1675
|
}
|
|
1676
|
-
`,sb=
|
|
1676
|
+
`,sb=R.button`
|
|
1677
1677
|
display: flex;
|
|
1678
1678
|
align-items: center;
|
|
1679
1679
|
justify-content: center;
|
|
@@ -1693,7 +1693,7 @@ Error generating stack: `+a.message+`
|
|
|
1693
1693
|
&:active:not(:disabled) {
|
|
1694
1694
|
transform: scale(0.95);
|
|
1695
1695
|
}
|
|
1696
|
-
`,Wr=
|
|
1696
|
+
`,Wr=C.memo(({onSubmit:l,theme:r,includeTime:s=!1})=>{const[u,d]=C.useState(""),h=()=>{u&&l(u)},y=T=>{T.key==="Enter"&&(T.preventDefault(),h())};return v.jsx(rb,{children:v.jsxs(ub,{children:[v.jsx(cb,{theme:r,type:s?"datetime-local":"date",value:u,onChange:T=>d(T.target.value),onKeyDown:y}),v.jsx(sb,{theme:r,onClick:h,disabled:!u,type:"button",children:v.jsx(Ha,{size:18})})]})})});Wr.displayName="DateInput";const fb=R.div`
|
|
1697
1697
|
display: flex;
|
|
1698
1698
|
flex-direction: column;
|
|
1699
1699
|
margin: 12px 16px 6px;
|
|
@@ -1703,12 +1703,12 @@ Error generating stack: `+a.message+`
|
|
|
1703
1703
|
overflow: hidden;
|
|
1704
1704
|
max-height: 350px;
|
|
1705
1705
|
overflow-y: auto;
|
|
1706
|
-
`,db=
|
|
1706
|
+
`,db=R.div`
|
|
1707
1707
|
padding: 0 12px 12px;
|
|
1708
|
-
`,
|
|
1708
|
+
`,yf=C.memo(({questionInfo:l,progress:r,onAnswer:s,onSkip:u,onCancel:d,theme:h})=>{const{type:y,question:T,options:S,scale:g,allowMultiple:A,allowOther:z,placeholder:U}=l,V=()=>{switch(y){case"CHOICE":return v.jsx(Wi,{options:S||[],allowMultiple:A,allowOther:z,onSelect:s,theme:h});case"CHOICE_WITH_SCALE":return g?v.jsx(pf,{scale:g,onSubmit:s,theme:h}):v.jsx(Wi,{options:S||[],onSelect:s,theme:h});case"CHOICE_WITH_IMAGES":return v.jsx(Wi,{options:S||[],allowOther:z,onSelect:s,theme:h});case"STRING":return v.jsx(Kr,{onSubmit:s,theme:h,placeholder:U});case"INTEGER":return v.jsx(Jr,{onSubmit:s,theme:h,placeholder:U,allowDecimal:!1});case"DECIMAL":return v.jsx(Jr,{onSubmit:s,theme:h,placeholder:U,allowDecimal:!0});case"BOOLEAN":return v.jsx(mf,{onSubmit:s,theme:h});case"DATE":return v.jsx(Wr,{onSubmit:s,theme:h,includeTime:!1});case"DATE_TIME":return v.jsx(Wr,{onSubmit:s,theme:h,includeTime:!0});default:return v.jsx(Kr,{onSubmit:s,theme:h,placeholder:U})}};return v.jsxs(fb,{theme:h,children:[v.jsx(sf,{question:T,progress:r,onCancel:d,onSkip:u,theme:h}),v.jsx(db,{children:V()})]})});yf.displayName="SurveyContainer";const bf=R.div`
|
|
1709
1709
|
background-color: ${({theme:l})=>l.colors.background};
|
|
1710
1710
|
border-radius: 0 0 ${({theme:l})=>l.borderRadius} ${({theme:l})=>l.borderRadius};
|
|
1711
|
-
`,hb=
|
|
1711
|
+
`,hb=R.div`
|
|
1712
1712
|
display: flex;
|
|
1713
1713
|
flex-direction: column;
|
|
1714
1714
|
border: 1.5px solid ${({theme:l})=>l.colors.border};
|
|
@@ -1721,7 +1721,7 @@ Error generating stack: `+a.message+`
|
|
|
1721
1721
|
border-color: ${({theme:l})=>l.colors.primary};
|
|
1722
1722
|
box-shadow: 0 0 0 3px ${({theme:l})=>l.colors.accentLight};
|
|
1723
1723
|
}
|
|
1724
|
-
`,pb=
|
|
1724
|
+
`,pb=R.textarea`
|
|
1725
1725
|
flex: 1;
|
|
1726
1726
|
padding: 12px 16px 8px;
|
|
1727
1727
|
border: none;
|
|
@@ -1743,19 +1743,19 @@ Error generating stack: `+a.message+`
|
|
|
1743
1743
|
&:disabled {
|
|
1744
1744
|
cursor: not-allowed;
|
|
1745
1745
|
}
|
|
1746
|
-
`,gb=
|
|
1746
|
+
`,gb=R.div`
|
|
1747
1747
|
display: flex;
|
|
1748
1748
|
justify-content: flex-end;
|
|
1749
1749
|
align-items: center;
|
|
1750
1750
|
gap: 8px;
|
|
1751
1751
|
padding: 4px 12px 8px;
|
|
1752
|
-
`,
|
|
1752
|
+
`,vf=R.div`
|
|
1753
1753
|
padding: 0 16px 10px;
|
|
1754
1754
|
text-align: center;
|
|
1755
1755
|
font-size: 10px;
|
|
1756
1756
|
color: ${({theme:l})=>l.colors.textLight};
|
|
1757
1757
|
font-family: ${({theme:l})=>l.fontFamily};
|
|
1758
|
-
`,mb=
|
|
1758
|
+
`,mb=R.button`
|
|
1759
1759
|
display: flex;
|
|
1760
1760
|
align-items: center;
|
|
1761
1761
|
justify-content: center;
|
|
@@ -1785,7 +1785,7 @@ Error generating stack: `+a.message+`
|
|
|
1785
1785
|
100% {
|
|
1786
1786
|
box-shadow: 0 0 0 0 ${l}00;
|
|
1787
1787
|
}
|
|
1788
|
-
`,bb=
|
|
1788
|
+
`,bb=R.button`
|
|
1789
1789
|
display: flex;
|
|
1790
1790
|
align-items: center;
|
|
1791
1791
|
justify-content: center;
|
|
@@ -1807,13 +1807,13 @@ Error generating stack: `+a.message+`
|
|
|
1807
1807
|
&:active {
|
|
1808
1808
|
transform: scale(0.95);
|
|
1809
1809
|
}
|
|
1810
|
-
`,vb=()=>{const{sendMessage:l,isTyping:r,config:s,theme:u,assistant:d,currentQuestion:h,surveyProgress:y,submitSurveyAnswer:T,skipSurveyQuestion:
|
|
1810
|
+
`,vb=()=>{const{sendMessage:l,isTyping:r,config:s,theme:u,assistant:d,currentQuestion:h,surveyProgress:y,submitSurveyAnswer:T,skipSurveyQuestion:S,cancelSurvey:g}=pa(),A=h!==null,[z,U]=C.useState(""),V=C.useRef(null),Q=s.placeholder||d?.chatUiConfig?.placeholder||"Type a message...",{isRecording:Y,isSupported:D,transcript:K,toggleRecording:P,clearTranscript:Z}=cf({onError:we=>{console.error("Voice recording error:",we)}});C.useEffect(()=>{K&&U(K)},[K]);const re=C.useCallback(()=>{const we=V.current;we&&(we.style.height="auto",we.style.height=`${Math.min(we.scrollHeight,150)}px`)},[]);C.useEffect(()=>{re()},[z,re]);const L=C.useCallback(()=>{z.trim()&&!r&&(l(z),U(""),Z(),V.current&&(V.current.style.height="auto",V.current.focus()))},[z,r,l,Z]),ae=C.useCallback(we=>{we.key==="Enter"&&!we.shiftKey&&(we.preventDefault(),L())},[L]),G=C.useCallback(we=>{U(we.target.value)},[]),He=C.useCallback(()=>{P()},[P]),Xe=!1,q=r||!z.trim(),Ce=s.disclaimerText??d?.chatUiConfig?.cautionaryMessageOnCompletions??"AI can make mistakes. Verify important information.";C.useEffect(()=>{!A&&!r&&V.current&&V.current.focus()},[A,r]);const Ke=()=>Y?"Listening...":Q;return A&&h?v.jsxs(bf,{theme:u,children:[v.jsx(yf,{questionInfo:h,progress:y,onAnswer:T,onSkip:S,onCancel:g,theme:u}),Ce&&v.jsx(vf,{theme:u,children:Ce})]}):v.jsxs(bf,{theme:u,children:[v.jsxs(hb,{theme:u,disabled:Xe,children:[v.jsx(pb,{ref:V,theme:u,value:z,onChange:G,onKeyDown:ae,placeholder:Ke(),disabled:Xe,"aria-label":"Message input",rows:1}),v.jsxs(gb,{children:[D&&v.jsx(bb,{theme:u,onClick:He,isRecording:Y,"aria-label":Y?"Stop recording":"Start voice recording",title:Y?"Stop recording":"Start voice recording",children:v.jsx(Js,{size:18})}),v.jsx(mb,{theme:u,onClick:L,disabled:q,"aria-label":"Send message",children:v.jsx(Ha,{size:18})})]})]}),Ce&&v.jsx(vf,{theme:u,children:Ce})]})},xb=en`
|
|
1811
1811
|
from { opacity: 0; }
|
|
1812
1812
|
to { opacity: 1; }
|
|
1813
1813
|
`,Sb=en`
|
|
1814
1814
|
from { opacity: 1; }
|
|
1815
1815
|
to { opacity: 0; }
|
|
1816
|
-
`,Cb=
|
|
1816
|
+
`,Cb=R.div`
|
|
1817
1817
|
position: absolute;
|
|
1818
1818
|
inset: 0;
|
|
1819
1819
|
z-index: 10;
|
|
@@ -1822,12 +1822,12 @@ Error generating stack: `+a.message+`
|
|
|
1822
1822
|
background-color: ${({theme:l})=>l.colors.background};
|
|
1823
1823
|
border-radius: inherit;
|
|
1824
1824
|
overflow: hidden;
|
|
1825
|
-
animation: ${({isClosing:l})=>l?
|
|
1825
|
+
animation: ${({isClosing:l})=>l?X`${Sb} 0.2s ease-in forwards`:X`${xb} 0.2s ease-out`};
|
|
1826
1826
|
|
|
1827
1827
|
@media (prefers-reduced-motion: reduce) {
|
|
1828
1828
|
animation: none;
|
|
1829
1829
|
}
|
|
1830
|
-
`,Tb=
|
|
1830
|
+
`,Tb=R.div`
|
|
1831
1831
|
display: flex;
|
|
1832
1832
|
align-items: center;
|
|
1833
1833
|
justify-content: space-between;
|
|
@@ -1835,7 +1835,7 @@ Error generating stack: `+a.message+`
|
|
|
1835
1835
|
background-color: ${({theme:l})=>l.colors.secondary};
|
|
1836
1836
|
color: ${({theme:l})=>l.colors.headerText};
|
|
1837
1837
|
flex-shrink: 0;
|
|
1838
|
-
`,Eb=
|
|
1838
|
+
`,Eb=R.h3`
|
|
1839
1839
|
margin: 0;
|
|
1840
1840
|
font-family: ${({theme:l})=>l.fontFamily};
|
|
1841
1841
|
font-size: 16px;
|
|
@@ -1846,11 +1846,11 @@ Error generating stack: `+a.message+`
|
|
|
1846
1846
|
white-space: nowrap;
|
|
1847
1847
|
flex: 1;
|
|
1848
1848
|
margin-right: 8px;
|
|
1849
|
-
`,zb=
|
|
1849
|
+
`,zb=R.div`
|
|
1850
1850
|
display: flex;
|
|
1851
1851
|
align-items: center;
|
|
1852
1852
|
gap: 6px;
|
|
1853
|
-
`,
|
|
1853
|
+
`,xf=R.button`
|
|
1854
1854
|
display: flex;
|
|
1855
1855
|
align-items: center;
|
|
1856
1856
|
justify-content: center;
|
|
@@ -1872,7 +1872,7 @@ Error generating stack: `+a.message+`
|
|
|
1872
1872
|
&:active {
|
|
1873
1873
|
background-color: ${({theme:l})=>`${l.colors.headerText}66`};
|
|
1874
1874
|
}
|
|
1875
|
-
`,Ab=
|
|
1875
|
+
`,Ab=R.div`
|
|
1876
1876
|
flex: 1;
|
|
1877
1877
|
overflow-y: auto;
|
|
1878
1878
|
-webkit-overflow-scrolling: touch;
|
|
@@ -1892,21 +1892,21 @@ Error generating stack: `+a.message+`
|
|
|
1892
1892
|
&::-webkit-scrollbar-thumb:hover {
|
|
1893
1893
|
background-color: ${({theme:l})=>l.colors.scrollbarThumbHover};
|
|
1894
1894
|
}
|
|
1895
|
-
`,Mb=
|
|
1895
|
+
`,Mb=R.img`
|
|
1896
1896
|
max-width: 100%;
|
|
1897
1897
|
max-height: 35%;
|
|
1898
1898
|
height: auto;
|
|
1899
1899
|
display: block;
|
|
1900
1900
|
margin: 16px auto 0;
|
|
1901
1901
|
border-radius: 8px;
|
|
1902
|
-
`,wb=
|
|
1902
|
+
`,wb=R.video`
|
|
1903
1903
|
max-width: 90%;
|
|
1904
1904
|
max-height: 360px;
|
|
1905
1905
|
display: block;
|
|
1906
1906
|
margin: 16px auto 0;
|
|
1907
1907
|
border-radius: 8px;
|
|
1908
1908
|
background-color: ${({theme:l})=>l.colors.surface};
|
|
1909
|
-
`,
|
|
1909
|
+
`,Sf=R.div`
|
|
1910
1910
|
max-width: 90%;
|
|
1911
1911
|
margin: 16px auto 0;
|
|
1912
1912
|
padding: 16px;
|
|
@@ -1916,14 +1916,14 @@ Error generating stack: `+a.message+`
|
|
|
1916
1916
|
flex-direction: column;
|
|
1917
1917
|
align-items: center;
|
|
1918
1918
|
gap: 12px;
|
|
1919
|
-
`,
|
|
1919
|
+
`,Cf=R.audio`
|
|
1920
1920
|
width: 100%;
|
|
1921
|
-
`,_b=
|
|
1921
|
+
`,_b=R.img`
|
|
1922
1922
|
width: 80px;
|
|
1923
1923
|
height: 80px;
|
|
1924
1924
|
border-radius: 8px;
|
|
1925
1925
|
object-fit: cover;
|
|
1926
|
-
`,Ob=
|
|
1926
|
+
`,Ob=R.div`
|
|
1927
1927
|
max-width: 90%;
|
|
1928
1928
|
margin: 16px auto 0;
|
|
1929
1929
|
padding: 16px;
|
|
@@ -1933,7 +1933,7 @@ Error generating stack: `+a.message+`
|
|
|
1933
1933
|
align-items: center;
|
|
1934
1934
|
gap: 12px;
|
|
1935
1935
|
background-color: ${({theme:l})=>l.colors.surface};
|
|
1936
|
-
`,$b=
|
|
1936
|
+
`,$b=R.a`
|
|
1937
1937
|
display: inline-flex;
|
|
1938
1938
|
align-items: center;
|
|
1939
1939
|
gap: 8px;
|
|
@@ -1950,12 +1950,12 @@ Error generating stack: `+a.message+`
|
|
|
1950
1950
|
&:hover {
|
|
1951
1951
|
background-color: ${({theme:l})=>l.colors.primaryDark};
|
|
1952
1952
|
}
|
|
1953
|
-
`,Bb=
|
|
1953
|
+
`,Bb=R.img`
|
|
1954
1954
|
width: 100%;
|
|
1955
1955
|
max-height: 120px;
|
|
1956
1956
|
object-fit: cover;
|
|
1957
1957
|
border-radius: 8px;
|
|
1958
|
-
`,
|
|
1958
|
+
`,Tf=R.div`
|
|
1959
1959
|
padding: 16px;
|
|
1960
1960
|
font-family: ${({theme:l})=>l.fontFamily};
|
|
1961
1961
|
font-size: 14px;
|
|
@@ -2007,7 +2007,7 @@ Error generating stack: `+a.message+`
|
|
|
2007
2007
|
em {
|
|
2008
2008
|
font-style: italic;
|
|
2009
2009
|
}
|
|
2010
|
-
`,Db=
|
|
2010
|
+
`,Db=C.memo(function({citation:r,theme:s,onClose:u}){const{isExpanded:d,toggleExpanded:h}=pa(),[y,T]=C.useState(!1),S=C.useCallback(()=>{T(!0)},[]);C.useEffect(()=>{if(!y)return;const A=setTimeout(u,200);return()=>clearTimeout(A)},[y,u]);const g=()=>{if(!r.content)return null;switch(r.contentFormat?.toUpperCase()){case"VIDEO":return v.jsx(wb,{theme:s,src:r.content,poster:r.thumbnail||void 0,controls:!0,preload:"metadata",onError:z=>{z.target.style.display="none"},children:"Your browser does not support video playback."});case"AUDIO":return v.jsxs(Sf,{theme:s,children:[r.thumbnail&&v.jsx(_b,{src:r.thumbnail,alt:r.title,onError:z=>{z.target.style.display="none"}}),v.jsx(Cf,{src:r.content,controls:!0,preload:"metadata",children:"Your browser does not support audio playback."})]});case"PDF":return v.jsxs(Ob,{theme:s,children:[r.thumbnail&&v.jsx(Bb,{src:r.thumbnail,alt:r.title,onError:z=>{z.target.style.display="none"}}),v.jsxs($b,{theme:s,href:r.content,target:"_blank",rel:"noopener noreferrer",children:[v.jsx($m,{size:16}),"Open PDF"]})]});default:return v.jsx(Mb,{src:r.content,alt:r.title,onError:z=>{z.target.style.display="none"}})}};return v.jsxs(Cb,{theme:s,isClosing:y,children:[v.jsxs(Tb,{theme:s,children:[v.jsx(Eb,{theme:s,children:r.title}),v.jsxs(zb,{children:[v.jsx(xf,{theme:s,onClick:h,"aria-label":d?"Collapse chat":"Expand chat",children:d?v.jsx(Ws,{size:16}):v.jsx(Ks,{size:16})}),v.jsx(xf,{theme:s,onClick:S,"aria-label":"Close",children:v.jsx(Ll,{size:16})})]})]}),v.jsxs(Ab,{theme:s,children:[g(),r.audioRenditions&&r.audioRenditions.length>0&&v.jsx(Sf,{theme:s,children:r.audioRenditions.map((A,z)=>v.jsx(Cf,{src:A,controls:!0,preload:"metadata",children:"Your browser does not support audio playback."},z))}),r.detailHtml?v.jsx(Tf,{theme:s,dangerouslySetInnerHTML:{__html:r.detailHtml}}):r.description?v.jsx(Tf,{theme:s,children:v.jsx("p",{children:r.description})}):null]})]})}),Rb=en`
|
|
2011
2011
|
from {
|
|
2012
2012
|
opacity: 0;
|
|
2013
2013
|
transform: translateY(20px) scale(0.95);
|
|
@@ -2032,7 +2032,7 @@ Error generating stack: `+a.message+`
|
|
|
2032
2032
|
to {
|
|
2033
2033
|
opacity: 1;
|
|
2034
2034
|
}
|
|
2035
|
-
`,Hb=
|
|
2035
|
+
`,Hb=R.div`
|
|
2036
2036
|
display: ${({isVisible:l})=>l?"block":"none"};
|
|
2037
2037
|
position: fixed;
|
|
2038
2038
|
top: 0;
|
|
@@ -2047,7 +2047,7 @@ Error generating stack: `+a.message+`
|
|
|
2047
2047
|
@media (prefers-reduced-motion: reduce) {
|
|
2048
2048
|
animation: none;
|
|
2049
2049
|
}
|
|
2050
|
-
`,kb=
|
|
2050
|
+
`,kb=R.div`
|
|
2051
2051
|
position: ${({floatingMode:l,useAbsolutePositioning:r,isExpanded:s})=>s?"fixed":r?"absolute":l?"fixed":"relative"};
|
|
2052
2052
|
${({floatingMode:l,position:r,isExpanded:s,useAbsolutePositioning:u})=>s?`
|
|
2053
2053
|
top: 20px;
|
|
@@ -2091,7 +2091,7 @@ Error generating stack: `+a.message+`
|
|
|
2091
2091
|
bottom: 0;
|
|
2092
2092
|
`}
|
|
2093
2093
|
}
|
|
2094
|
-
`,Ub=
|
|
2094
|
+
`,Ub=R.button`
|
|
2095
2095
|
display: ${({isOpen:l})=>l?"none":"flex"};
|
|
2096
2096
|
align-items: center;
|
|
2097
2097
|
justify-content: center;
|
|
@@ -2115,11 +2115,11 @@ Error generating stack: `+a.message+`
|
|
|
2115
2115
|
&:active {
|
|
2116
2116
|
transform: scale(0.95);
|
|
2117
2117
|
}
|
|
2118
|
-
`,qb=
|
|
2118
|
+
`,qb=R.img`
|
|
2119
2119
|
width: 100%;
|
|
2120
2120
|
height: 100%;
|
|
2121
2121
|
object-fit: contain;
|
|
2122
|
-
`,Lb=
|
|
2122
|
+
`,Lb=R.div`
|
|
2123
2123
|
display: ${({floatingMode:l,isOpen:r,isClosing:s})=>l?r||s?"flex":"none":"flex"};
|
|
2124
2124
|
flex-direction: column;
|
|
2125
2125
|
width: ${({floatingMode:l,isExpanded:r,useAbsolutePositioning:s})=>l?r?"calc(100vw - 40px)":"380px":s?"auto":"100%"};
|
|
@@ -2136,7 +2136,7 @@ Error generating stack: `+a.message+`
|
|
|
2136
2136
|
box-shadow: ${({theme:l,floatingMode:r,isExpanded:s})=>r||s?l.shadow:"none"};
|
|
2137
2137
|
overflow: hidden;
|
|
2138
2138
|
transition: width 0.25s ease, height 0.25s ease, max-height 0.25s ease, border-radius 0.25s ease, box-shadow 0.25s ease;
|
|
2139
|
-
animation: ${({floatingMode:l,isClosing:r})=>l?r?
|
|
2139
|
+
animation: ${({floatingMode:l,isClosing:r})=>l?r?X`${Nb} 0.2s ease-out forwards`:X`${Rb} 0.3s ease-out`:"none"};
|
|
2140
2140
|
|
|
2141
2141
|
@media (prefers-reduced-motion: reduce) {
|
|
2142
2142
|
animation: none;
|
|
@@ -2151,7 +2151,7 @@ Error generating stack: `+a.message+`
|
|
|
2151
2151
|
border-radius: 0;
|
|
2152
2152
|
`}
|
|
2153
2153
|
}
|
|
2154
|
-
`,Yb=
|
|
2154
|
+
`,Yb=R.div`
|
|
2155
2155
|
position: relative;
|
|
2156
2156
|
display: flex;
|
|
2157
2157
|
flex-direction: column;
|
|
@@ -2160,7 +2160,7 @@ Error generating stack: `+a.message+`
|
|
|
2160
2160
|
`,Gb=en`
|
|
2161
2161
|
from { opacity: 0; }
|
|
2162
2162
|
to { opacity: 1; }
|
|
2163
|
-
`,Qb=
|
|
2163
|
+
`,Qb=R.div`
|
|
2164
2164
|
position: absolute;
|
|
2165
2165
|
inset: 0;
|
|
2166
2166
|
z-index: 5;
|
|
@@ -2176,7 +2176,7 @@ Error generating stack: `+a.message+`
|
|
|
2176
2176
|
@media (prefers-reduced-motion: reduce) {
|
|
2177
2177
|
animation: none;
|
|
2178
2178
|
}
|
|
2179
|
-
`,Xb=
|
|
2179
|
+
`,Xb=R.p`
|
|
2180
2180
|
margin: 0;
|
|
2181
2181
|
padding: 0 32px;
|
|
2182
2182
|
font-family: ${({theme:l})=>l.fontFamily};
|
|
@@ -2184,10 +2184,10 @@ Error generating stack: `+a.message+`
|
|
|
2184
2184
|
line-height: 1.5;
|
|
2185
2185
|
color: ${({theme:l})=>l.colors.text};
|
|
2186
2186
|
text-align: center;
|
|
2187
|
-
`,Vb=
|
|
2187
|
+
`,Vb=R.div`
|
|
2188
2188
|
display: flex;
|
|
2189
2189
|
gap: 8px;
|
|
2190
|
-
`,
|
|
2190
|
+
`,Ef=R.button`
|
|
2191
2191
|
padding: 8px 20px;
|
|
2192
2192
|
border: 1px solid ${({theme:l,variant:r})=>r==="cancel"?l.colors.border:"transparent"};
|
|
2193
2193
|
border-radius: 8px;
|
|
@@ -2206,4 +2206,4 @@ Error generating stack: `+a.message+`
|
|
|
2206
2206
|
&:active {
|
|
2207
2207
|
${({theme:l,variant:r})=>r==="cancel"?`background-color: ${l.colors.borderLight};`:"opacity: 0.8;"}
|
|
2208
2208
|
}
|
|
2209
|
-
`,Zb=()=>{const{isOpen:l,toggle:r,config:s,theme:u,assistant:d,isExpanded:h,showNewChatConfirm:y,startNewChat:T,cancelNewChat:
|
|
2209
|
+
`,Zb=()=>{const{isOpen:l,toggle:r,config:s,theme:u,assistant:d,isExpanded:h,showNewChatConfirm:y,startNewChat:T,cancelNewChat:S}=pa(),g=s.floatingMode??!1,[A,z]=C.useState(null),U=C.useCallback(Y=>{z(Y)},[]),V=C.useCallback(()=>{z(null)},[]),Q=s.fabIcon||d?.chatUiConfig?.fabIcon||"https://web.mypatientspace.com/img/logo-symbol.png";return v.jsxs(v.Fragment,{children:[v.jsx(Hb,{isVisible:h}),v.jsxs(kb,{position:s.position||"bottom-right",floatingMode:g,useAbsolutePositioning:s.useAbsolutePositioning,isExpanded:h,isOpen:l,children:[g&&v.jsx(Ub,{theme:u,isOpen:l,hasCustomIcon:!0,onClick:r,"aria-label":"Open chat","aria-expanded":l,children:v.jsx(qb,{src:Q,alt:"Chat"})}),v.jsxs(Lb,{theme:u,isOpen:l,isClosing:!1,floatingMode:g,isExpanded:h,useAbsolutePositioning:s.useAbsolutePositioning,children:[v.jsx(Hy,{}),v.jsxs(Yb,{children:[v.jsx(Yy,{}),v.jsx(x0,{onCardExpand:U}),v.jsx(vb,{}),A&&v.jsx(Db,{citation:A,theme:u,onClose:V}),y&&v.jsxs(Qb,{theme:u,children:[v.jsx(Xb,{theme:u,children:"Start a new conversation? Your current messages will be permanently deleted."}),v.jsxs(Vb,{children:[v.jsx(Ef,{theme:u,variant:"cancel",onClick:S,children:"Cancel"}),v.jsx(Ef,{theme:u,variant:"confirm",onClick:T,children:"New Chat"})]})]})]})]})]})]})},Kb={position:"bottom-right",colorMode:"light"};let Ya=null,ut=null,Fi=null;const St={open:()=>{console.warn("ChatbotWidget: Widget not initialized. Call init() first.")},close:()=>{console.warn("ChatbotWidget: Widget not initialized. Call init() first.")},toggle:()=>{console.warn("ChatbotWidget: Widget not initialized. Call init() first.")},updateConfig:l=>{console.warn("ChatbotWidget: Widget not initialized. Call init() first.")},startNewChat:()=>{console.warn("ChatbotWidget: Widget not initialized. Call init() first.")}},Jb=({config:l,onMount:r})=>{const s=C.useRef(null),u=C.useCallback(d=>{s.current=d},[]);return v.jsx(vy,{config:l,onConfigUpdate:u,children:v.jsx(Wb,{onMount:r,updateConfigRef:s})})},Wb=({onMount:l,updateConfigRef:r})=>{const{open:s,close:u,toggle:d,startNewChat:h}=pa();return C.useEffect(()=>{l({open:s,close:u,toggle:d,updateConfig:y=>{r.current?.(y)},startNewChat:h})},[s,u,d,h,l,r]),v.jsx(Zb,{})},Fb={init:l=>{if(Ya){console.warn("ChatbotWidget: Already initialized. Call destroy() first to reinitialize.");return}const r={...Kb,...l,floatingMode:l.floatingMode??!1};if(l.containerElement)ut=document.createElement("div"),ut.style.cssText="width: 100%; height: 100%; border-radius: inherit; overflow: hidden;",l.containerElement.appendChild(ut);else if(r.floatingMode)ut=document.createElement("div"),ut.id="chatbot-widget-root",document.body.appendChild(ut);else if(l.containerSelector){const d=document.querySelector(l.containerSelector);if(!d){console.error(`ChatbotWidget: Container not found for selector "${l.containerSelector}".`);return}ut=document.createElement("div"),ut.style.cssText="width: 100%; height: 100%; border-radius: inherit; overflow: hidden;",d.appendChild(ut)}else ut=document.createElement("div"),ut.id="chatbot-widget-root",document.body.appendChild(ut);Fi=ut.attachShadow({mode:"open"});const s=document.createElement("div");s.style.cssText="width: 100%; height: 100%; border-radius: inherit; overflow: hidden;",Fi.appendChild(s);const u=$r({key:"mps-chatbot",container:Fi});Ya=vs.createRoot(s),Ya.render(v.jsx(kr,{value:u,children:v.jsx(Jb,{config:r,onMount:d=>{St.open=d.open,St.close=d.close,St.toggle=d.toggle,St.updateConfig=d.updateConfig,St.startNewChat=d.startNewChat}})})),console.log("ChatbotWidget: Initialized successfully.")},destroy:()=>{Ya&&(Ya.unmount(),Ya=null),ut&&ut.parentNode&&ut.parentNode.removeChild(ut),ut=null,Fi=null,St.open=()=>{console.warn("ChatbotWidget: Widget not initialized. Call init() first.")},St.close=()=>{console.warn("ChatbotWidget: Widget not initialized. Call init() first.")},St.toggle=()=>{console.warn("ChatbotWidget: Widget not initialized. Call init() first.")},St.updateConfig=()=>{console.warn("ChatbotWidget: Widget not initialized. Call init() first.")},St.startNewChat=()=>{console.warn("ChatbotWidget: Widget not initialized. Call init() first.")},console.log("ChatbotWidget: Destroyed successfully.")},open:()=>St.open(),close:()=>St.close(),toggle:()=>St.toggle(),update:l=>St.updateConfig(l),startNewChat:()=>St.startNewChat()};window.ChatbotWidget=Fb;let qn=null,dn=null,Ii=null,Yl=null,Ga=null,Pi=!1;const zf={init:l=>{if(qn){console.warn("ChatbotWidgetDemo: Already initialized. Call destroy() first to reinitialize.");return}if(l.containerSelector){const s=document.querySelector(l.containerSelector);if(!s){console.error(`ChatbotWidgetDemo: Container not found for selector "${l.containerSelector}".`);return}dn=s,Pi=!0}else dn=document.createElement("div"),dn.id="chatbot-demo-root",document.body.appendChild(dn),Pi=!1;Ii=dn.attachShadow({mode:"open"});const r=document.createElement("div");r.style.cssText="width: 100%; height: 100%;",Ii.appendChild(r),Yl=$r({key:"mps-demo",container:Ii}),Ga=l,qn=vs.createRoot(r),qn.render(v.jsx(kr,{value:Yl,children:v.jsx(ef,{config:l})})),console.log("ChatbotWidgetDemo: Initialized successfully.")},destroy:()=>{qn&&(qn.unmount(),qn=null),window.ChatbotWidget&&window.ChatbotWidget.destroy(),dn&&!Pi&&dn.parentNode&&dn.parentNode.removeChild(dn),dn=null,Ii=null,Yl=null,Pi=!1,Ga=null,console.log("ChatbotWidgetDemo: Destroyed successfully.")},update:l=>{if(!qn||!Ga||!Yl){console.warn("ChatbotWidgetDemo: Not initialized. Call init() first.");return}Ga={...Ga,...l},qn.render(v.jsx(kr,{value:Yl,children:v.jsx(ef,{config:Ga})}))},getConfig:()=>window.ChatbotWidget?{}:(console.warn("ChatbotWidgetDemo: Widget not available."),{})};return window.ChatbotWidgetDemo=zf,zf}));
|