@mypatientspace/chatbot-widget 1.0.74 → 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 +193 -154
- package/dist/mypatientspace-demo.es.js +7205 -7048
- package/dist/mypatientspace-demo.umd.js +343 -284
- package/dist/mypatientspace-widget.es.js +4921 -4827
- package/dist/mypatientspace-widget.umd.js +197 -138
- package/package.json +1 -1
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
(function(wl,Ol){typeof exports=="object"&&typeof module<"u"?module.exports=Ol():typeof define=="function"&&define.amd?define(Ol):(wl=typeof globalThis<"u"?globalThis:wl||self,wl.ChatbotWidgetDemo=Ol())})(this,(function(){"use strict";function wl(l,u){for(var s=0;s<u.length;s++){const r=u[s];if(typeof r!="string"&&!Array.isArray(r)){for(const d in r)if(d!=="default"&&!(d in l)){const h=Object.getOwnPropertyDescriptor(r,d);h&&Object.defineProperty(l,d,h.get?h:{enumerable:!0,get:()=>r[d]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}function Ol(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var hu={exports:{}},$l={};var as;function xg(){if(as)return $l;as=1;var l=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function s(r,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:r,key:y,ref:d!==void 0?d:null,props:h}}return $l.Fragment=u,$l.jsx=s,$l.jsxs=s,$l}var ls;function Sg(){return ls||(ls=1,hu.exports=xg()),hu.exports}var x=Sg(),pu={exports:{}},Dl={},gu={exports:{}},mu={};var is;function Cg(){return is||(is=1,(function(l){function u(D,K){var at=D.length;D.push(K);t:for(;0<at;){var Tt=at-1>>>1,wt=D[Tt];if(0<d(wt,K))D[Tt]=K,D[at]=wt,at=Tt;else break t}}function s(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var K=D[0],at=D.pop();if(at!==K){D[0]=at;t:for(var Tt=0,wt=D.length,v=wt>>>1;Tt<v;){var U=2*(Tt+1)-1,W=D[U],F=U+1,ct=D[F];if(0>d(W,at))F<wt&&0>d(ct,W)?(D[Tt]=ct,D[F]=at,Tt=F):(D[Tt]=W,D[U]=at,Tt=U);else if(F<wt&&0>d(ct,at))D[Tt]=ct,D[F]=at,Tt=F;else break t}}return K}function d(D,K){var at=D.sortIndex-K.sortIndex;return at!==0?at:D.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 S=[],g=[],A=1,z=null,k=3,X=!1,Q=!1,Y=!1,R=!1,Z=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,V=typeof setImmediate<"u"?setImmediate:null;function ut(D){for(var K=s(g);K!==null;){if(K.callback===null)r(g);else if(K.startTime<=D)r(g),K.sortIndex=K.expirationTime,u(S,K);else break;K=s(g)}}function H(D){if(Y=!1,ut(D),!Q)if(s(S)!==null)Q=!0,ot||(ot=!0,Yt());else{var K=s(g);K!==null&&Ee(H,K.startTime-D)}}var ot=!1,J=-1,jt=5,Xt=-1;function L(){return R?!0:!(l.unstable_now()-Xt<jt)}function vt(){if(R=!1,ot){var D=l.unstable_now();Xt=D;var K=!0;try{t:{Q=!1,Y&&(Y=!1,P(J),J=-1),X=!0;var at=k;try{e:{for(ut(D),z=s(S);z!==null&&!(z.expirationTime>D&&L());){var Tt=z.callback;if(typeof Tt=="function"){z.callback=null,k=z.priorityLevel;var wt=Tt(z.expirationTime<=D);if(D=l.unstable_now(),typeof wt=="function"){z.callback=wt,ut(D),K=!0;break e}z===s(S)&&r(S),ut(D)}else r(S);z=s(S)}if(z!==null)K=!0;else{var v=s(g);v!==null&&Ee(H,v.startTime-D),K=!1}}break t}finally{z=null,k=at,X=!1}K=void 0}}finally{K?Yt():ot=!1}}}var Yt;if(typeof V=="function")Yt=function(){V(vt)};else if(typeof MessageChannel<"u"){var Lt=new MessageChannel,te=Lt.port2;Lt.port1.onmessage=vt,Yt=function(){te.postMessage(null)}}else Yt=function(){Z(vt,0)};function Ee(D,K){J=Z(function(){D(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(D){D.callback=null},l.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):jt=0<D?Math.floor(1e3/D):5},l.unstable_getCurrentPriorityLevel=function(){return k},l.unstable_next=function(D){switch(k){case 1:case 2:case 3:var K=3;break;default:K=k}var at=k;k=K;try{return D()}finally{k=at}},l.unstable_requestPaint=function(){R=!0},l.unstable_runWithPriority=function(D,K){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var at=k;k=D;try{return K()}finally{k=at}},l.unstable_scheduleCallback=function(D,K,at){var Tt=l.unstable_now();switch(typeof at=="object"&&at!==null?(at=at.delay,at=typeof at=="number"&&0<at?Tt+at:Tt):at=Tt,D){case 1:var wt=-1;break;case 2:wt=250;break;case 5:wt=1073741823;break;case 4:wt=1e4;break;default:wt=5e3}return wt=at+wt,D={id:A++,callback:K,priorityLevel:D,startTime:at,expirationTime:wt,sortIndex:-1},at>Tt?(D.sortIndex=at,u(g,D),s(S)===null&&D===s(g)&&(Y?(P(J),J=-1):Y=!0,Ee(H,at-Tt))):(D.sortIndex=wt,u(S,D),Q||X||(Q=!0,ot||(ot=!0,Yt()))),D},l.unstable_shouldYield=L,l.unstable_wrapCallback=function(D){var K=k;return function(){var at=k;k=K;try{return D.apply(this,arguments)}finally{k=at}}}})(mu)),mu}var os;function Tg(){return os||(os=1,gu.exports=Cg()),gu.exports}var yu={exports:{}},rt={};var us;function Eg(){if(us)return rt;us=1;var l=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),r=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"),k=Symbol.iterator;function X(v){return v===null||typeof v!="object"?null:(v=k&&v[k]||v["@@iterator"],typeof v=="function"?v:null)}var Q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Y=Object.assign,R={};function Z(v,U,W){this.props=v,this.context=U,this.refs=R,this.updater=W||Q}Z.prototype.isReactComponent={},Z.prototype.setState=function(v,U){if(typeof v!="object"&&typeof v!="function"&&v!=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,v,U,"setState")},Z.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate")};function P(){}P.prototype=Z.prototype;function V(v,U,W){this.props=v,this.context=U,this.refs=R,this.updater=W||Q}var ut=V.prototype=new P;ut.constructor=V,Y(ut,Z.prototype),ut.isPureReactComponent=!0;var H=Array.isArray;function ot(){}var J={H:null,A:null,T:null,S:null},jt=Object.prototype.hasOwnProperty;function Xt(v,U,W){var F=W.ref;return{$$typeof:l,type:v,key:U,ref:F!==void 0?F:null,props:W}}function L(v,U){return Xt(v.type,U,v.props)}function vt(v){return typeof v=="object"&&v!==null&&v.$$typeof===l}function Yt(v){var U={"=":"=0",":":"=2"};return"$"+v.replace(/[=:]/g,function(W){return U[W]})}var Lt=/\/+/g;function te(v,U){return typeof v=="object"&&v!==null&&v.key!=null?Yt(""+v.key):U.toString(36)}function Ee(v){switch(v.status){case"fulfilled":return v.value;case"rejected":throw v.reason;default:switch(typeof v.status=="string"?v.then(ot,ot):(v.status="pending",v.then(function(U){v.status==="pending"&&(v.status="fulfilled",v.value=U)},function(U){v.status==="pending"&&(v.status="rejected",v.reason=U)})),v.status){case"fulfilled":return v.value;case"rejected":throw v.reason}}throw v}function D(v,U,W,F,ct){var pt=typeof v;(pt==="undefined"||pt==="boolean")&&(v=null);var Et=!1;if(v===null)Et=!0;else switch(pt){case"bigint":case"string":case"number":Et=!0;break;case"object":switch(v.$$typeof){case l:case u:Et=!0;break;case A:return Et=v._init,D(Et(v._payload),U,W,F,ct)}}if(Et)return ct=ct(v),Et=F===""?"."+te(v,0):F,H(ct)?(W="",Et!=null&&(W=Et.replace(Lt,"$&/")+"/"),D(ct,U,W,"",function(bn){return bn})):ct!=null&&(vt(ct)&&(ct=L(ct,W+(ct.key==null||v&&v.key===ct.key?"":(""+ct.key).replace(Lt,"$&/")+"/")+Et)),U.push(ct)),1;Et=0;var de=F===""?".":F+":";if(H(v))for(var Kt=0;Kt<v.length;Kt++)F=v[Kt],pt=de+te(F,Kt),Et+=D(F,U,W,pt,ct);else if(Kt=X(v),typeof Kt=="function")for(v=Kt.call(v),Kt=0;!(F=v.next()).done;)F=F.value,pt=de+te(F,Kt++),Et+=D(F,U,W,pt,ct);else if(pt==="object"){if(typeof v.then=="function")return D(Ee(v),U,W,F,ct);throw U=String(v),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return Et}function K(v,U,W){if(v==null)return v;var F=[],ct=0;return D(v,F,"","",function(pt){return U.call(W,pt,ct++)}),F}function at(v){if(v._status===-1){var U=v._result;U=U(),U.then(function(W){(v._status===0||v._status===-1)&&(v._status=1,v._result=W)},function(W){(v._status===0||v._status===-1)&&(v._status=2,v._result=W)}),v._status===-1&&(v._status=0,v._result=U)}if(v._status===1)return v._result.default;throw v._result}var Tt=typeof reportError=="function"?reportError:function(v){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof v=="object"&&v!==null&&typeof v.message=="string"?String(v.message):String(v),error:v});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",v);return}console.error(v)},wt={map:K,forEach:function(v,U,W){K(v,function(){U.apply(this,arguments)},W)},count:function(v){var U=0;return K(v,function(){U++}),U},toArray:function(v){return K(v,function(U){return U})||[]},only:function(v){if(!vt(v))throw Error("React.Children.only expected to receive a single React element child.");return v}};return rt.Activity=z,rt.Children=wt,rt.Component=Z,rt.Fragment=s,rt.Profiler=d,rt.PureComponent=V,rt.StrictMode=r,rt.Suspense=S,rt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=J,rt.__COMPILER_RUNTIME={__proto__:null,c:function(v){return J.H.useMemoCache(v)}},rt.cache=function(v){return function(){return v.apply(null,arguments)}},rt.cacheSignal=function(){return null},rt.cloneElement=function(v,U,W){if(v==null)throw Error("The argument must be a React element, but you passed "+v+".");var F=Y({},v.props),ct=v.key;if(U!=null)for(pt in U.key!==void 0&&(ct=""+U.key),U)!jt.call(U,pt)||pt==="key"||pt==="__self"||pt==="__source"||pt==="ref"&&U.ref===void 0||(F[pt]=U[pt]);var pt=arguments.length-2;if(pt===1)F.children=W;else if(1<pt){for(var Et=Array(pt),de=0;de<pt;de++)Et[de]=arguments[de+2];F.children=Et}return Xt(v.type,ct,F)},rt.createContext=function(v){return v={$$typeof:y,_currentValue:v,_currentValue2:v,_threadCount:0,Provider:null,Consumer:null},v.Provider=v,v.Consumer={$$typeof:h,_context:v},v},rt.createElement=function(v,U,W){var F,ct={},pt=null;if(U!=null)for(F in U.key!==void 0&&(pt=""+U.key),U)jt.call(U,F)&&F!=="key"&&F!=="__self"&&F!=="__source"&&(ct[F]=U[F]);var Et=arguments.length-2;if(Et===1)ct.children=W;else if(1<Et){for(var de=Array(Et),Kt=0;Kt<Et;Kt++)de[Kt]=arguments[Kt+2];ct.children=de}if(v&&v.defaultProps)for(F in Et=v.defaultProps,Et)ct[F]===void 0&&(ct[F]=Et[F]);return Xt(v,pt,ct)},rt.createRef=function(){return{current:null}},rt.forwardRef=function(v){return{$$typeof:T,render:v}},rt.isValidElement=vt,rt.lazy=function(v){return{$$typeof:A,_payload:{_status:-1,_result:v},_init:at}},rt.memo=function(v,U){return{$$typeof:g,type:v,compare:U===void 0?null:U}},rt.startTransition=function(v){var U=J.T,W={};J.T=W;try{var F=v(),ct=J.S;ct!==null&&ct(W,F),typeof F=="object"&&F!==null&&typeof F.then=="function"&&F.then(ot,Tt)}catch(pt){Tt(pt)}finally{U!==null&&W.types!==null&&(U.types=W.types),J.T=U}},rt.unstable_useCacheRefresh=function(){return J.H.useCacheRefresh()},rt.use=function(v){return J.H.use(v)},rt.useActionState=function(v,U,W){return J.H.useActionState(v,U,W)},rt.useCallback=function(v,U){return J.H.useCallback(v,U)},rt.useContext=function(v){return J.H.useContext(v)},rt.useDebugValue=function(){},rt.useDeferredValue=function(v,U){return J.H.useDeferredValue(v,U)},rt.useEffect=function(v,U){return J.H.useEffect(v,U)},rt.useEffectEvent=function(v){return J.H.useEffectEvent(v)},rt.useId=function(){return J.H.useId()},rt.useImperativeHandle=function(v,U,W){return J.H.useImperativeHandle(v,U,W)},rt.useInsertionEffect=function(v,U){return J.H.useInsertionEffect(v,U)},rt.useLayoutEffect=function(v,U){return J.H.useLayoutEffect(v,U)},rt.useMemo=function(v,U){return J.H.useMemo(v,U)},rt.useOptimistic=function(v,U){return J.H.useOptimistic(v,U)},rt.useReducer=function(v,U,W){return J.H.useReducer(v,U,W)},rt.useRef=function(v){return J.H.useRef(v)},rt.useState=function(v){return J.H.useState(v)},rt.useSyncExternalStore=function(v,U,W){return J.H.useSyncExternalStore(v,U,W)},rt.useTransition=function(){return J.H.useTransition()},rt.version="19.2.3",rt}var rs;function bu(){return rs||(rs=1,yu.exports=Eg()),yu.exports}var vu={exports:{}},be={};var cs;function zg(){if(cs)return be;cs=1;var l=bu();function u(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 r={d:{f:s,r:function(){throw Error(u(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 be.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,be.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(u(299));return h(S,g,null,A)},be.flushSync=function(S){var g=y.T,A=r.p;try{if(y.T=null,r.p=2,S)return S()}finally{y.T=g,r.p=A,r.d.f()}},be.preconnect=function(S,g){typeof S=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,r.d.C(S,g))},be.prefetchDNS=function(S){typeof S=="string"&&r.d.D(S)},be.preinit=function(S,g){if(typeof S=="string"&&g&&typeof g.as=="string"){var A=g.as,z=T(A,g.crossOrigin),k=typeof g.integrity=="string"?g.integrity:void 0,X=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;A==="style"?r.d.S(S,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:z,integrity:k,fetchPriority:X}):A==="script"&&r.d.X(S,{crossOrigin:z,integrity:k,fetchPriority:X,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},be.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);r.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&&r.d.M(S)},be.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);r.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})}},be.preloadModule=function(S,g){if(typeof S=="string")if(g){var A=T(g.as,g.crossOrigin);r.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 r.d.m(S)},be.requestFormReset=function(S){r.d.r(S)},be.unstable_batchedUpdates=function(S,g){return S(g)},be.useFormState=function(S,g,A){return y.H.useFormState(S,g,A)},be.useFormStatus=function(){return y.H.useHostTransitionStatus()},be.version="19.2.3",be}var ss;function Ag(){if(ss)return vu.exports;ss=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(u){console.error(u)}}return l(),vu.exports=zg(),vu.exports}var fs;function Mg(){if(fs)return Dl;fs=1;var l=Tg(),u=bu(),s=Ag();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function h(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function y(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function T(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function S(t){if(h(t)!==t)throw Error(r(188))}function g(t){var e=t.alternate;if(!e){if(e=h(t),e===null)throw Error(r(188));return e!==t?null:t}for(var n=t,a=e;;){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),t;if(o===a)return S(i),e;o=o.sibling}throw Error(r(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(r(189))}}if(n.alternate!==a)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?t:e}function A(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=A(t),e!==null)return e;t=t.sibling}return null}var z=Object.assign,k=Symbol.for("react.element"),X=Symbol.for("react.transitional.element"),Q=Symbol.for("react.portal"),Y=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),V=Symbol.for("react.context"),ut=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),ot=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),jt=Symbol.for("react.lazy"),Xt=Symbol.for("react.activity"),L=Symbol.for("react.memo_cache_sentinel"),vt=Symbol.iterator;function Yt(t){return t===null||typeof t!="object"?null:(t=vt&&t[vt]||t["@@iterator"],typeof t=="function"?t:null)}var Lt=Symbol.for("react.client.reference");function te(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Lt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Y:return"Fragment";case Z:return"Profiler";case R:return"StrictMode";case H:return"Suspense";case ot:return"SuspenseList";case Xt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case Q:return"Portal";case V:return t.displayName||"Context";case P:return(t._context.displayName||"Context")+".Consumer";case ut:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case J:return e=t.displayName||null,e!==null?e:te(t.type)||"Memo";case jt:e=t._payload,t=t._init;try{return te(t(e))}catch{}}return null}var Ee=Array.isArray,D=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,at={pending:!1,data:null,method:null,action:null},Tt=[],wt=-1;function v(t){return{current:t}}function U(t){0>wt||(t.current=Tt[wt],Tt[wt]=null,wt--)}function W(t,e){wt++,Tt[wt]=t.current,t.current=e}var F=v(null),ct=v(null),pt=v(null),Et=v(null);function de(t,e){switch(W(pt,e),W(ct,t),W(F,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Gp(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Gp(e),t=Qp(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}U(F),W(F,t)}function Kt(){U(F),U(ct),U(pt)}function bn(t){t.memoizedState!==null&&W(Et,t);var e=F.current,n=Qp(e,t.type);e!==n&&(W(ct,t),W(F,n))}function ga(t){ct.current===t&&(U(F),U(ct)),Et.current===t&&(U(Et),$i._currentValue=at)}var Yl,gt;function st(t){if(Yl===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Yl=e&&e[1]||"",gt=-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
|
-
`+
|
|
4
|
-
`),
|
|
5
|
-
`);for(i=a=0;a<m.length&&!m[a].includes("DetermineComponentFrameRoot");)a++;for(;i<
|
|
6
|
-
`+m[a].replace(" at new "," at ");return
|
|
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
|
+
`),w=f.split(`
|
|
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
|
+
`+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 Vt=Object.prototype.hasOwnProperty,ee=l.unstable_scheduleCallback,an=l.unstable_cancelCallback,Yb=l.unstable_shouldYield,Gb=l.unstable_requestPaint,Be=l.unstable_now,Qb=l.unstable_getCurrentPriorityLevel,Sf=l.unstable_ImmediatePriority,Cf=l.unstable_UserBlockingPriority,Ji=l.unstable_NormalPriority,Xb=l.unstable_LowPriority,Tf=l.unstable_IdlePriority,Vb=l.log,Zb=l.unstable_setDisableYieldValue,Gl=null,Re=null;function Ln(t){if(typeof Vb=="function"&&Zb(t),Re&&typeof Re.setStrictMode=="function")try{Re.setStrictMode(Gl,t)}catch{}}var Ne=Math.clz32?Math.clz32:Wb,Kb=Math.log,Jb=Math.LN2;function Wb(t){return t>>>=0,t===0?32:31-(Kb(t)/Jb|0)|0}var Wi=256,Fi=262144,Ii=4194304;function ma(t){var e=t&42;if(e!==0)return e;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Pi(t,e,n){var a=t.pendingLanes;if(a===0)return 0;var i=0,o=t.suspendedLanes,c=t.pingedLanes;t=t.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&~t,n!==0&&(i=ma(n))))):(f=a&~o,f!==0?i=ma(f):c!==0?i=ma(c):n||(n=a&~t,n!==0&&(i=ma(n)))),i===0?0:e!==0&&e!==i&&(e&o)===0&&(o=i&-i,n=e&-e,o>=n||o===32&&(n&4194048)!==0)?e:i}function Ql(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Fb(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 Ef(){var t=Ii;return Ii<<=1,(Ii&62914560)===0&&(Ii=4194304),t}function Xu(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Xl(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Ib(t,e,n,a,i,o){var c=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var f=t.entanglements,m=t.expirationTimes,_=t.hiddenUpdates;for(n=c&~n;0<n;){var $=31-Ne(n),N=1<<$;f[$]=0,m[$]=-1;var w=_[$];if(w!==null)for(_[$]=null,$=0;$<w.length;$++){var O=w[$];O!==null&&(O.lane&=-536870913)}n&=~N}a!==0&&zf(t,a,0),o!==0&&i===0&&t.tag!==0&&(t.suspendedLanes|=o&~(c&~e))}function zf(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-Ne(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|n&261930}function Af(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var a=31-Ne(n),i=1<<a;i&e|t[a]&e&&(t[a]|=e),n&=~i}}function Mf(t,e){var n=e&-e;return n=(n&42)!==0?1:Vu(n),(n&(t.suspendedLanes|e))!==0?0:n}function Vu(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Zu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function _f(){var t=K.p;return t!==0?t:(t=window.event,t===void 0?32:hg(t.type))}function wf(t,e){var n=K.p;try{return K.p=t,e()}finally{K.p=n}}var Yn=Math.random().toString(36).slice(2),he="__reactFiber$"+Yn,ze="__reactProps$"+Yn,Xa="__reactContainer$"+Yn,Ku="__reactEvents$"+Yn,Pb="__reactListeners$"+Yn,t1="__reactHandles$"+Yn,Of="__reactResources$"+Yn,Vl="__reactMarker$"+Yn;function Ju(t){delete t[he],delete t[ze],delete t[Ku],delete t[Pb],delete t[t1]}function Va(t){var e=t[he];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Xa]||n[he]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Fp(t);t!==null;){if(n=t[he])return n;t=Fp(t)}return e}t=n,n=t.parentNode}return null}function Za(t){if(t=t[he]||t[Xa]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Zl(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function Ka(t){var e=t[Of];return e||(e=t[Of]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function ce(t){t[Vl]=!0}var $f=new Set,Df={};function ya(t,e){Ja(t,e),Ja(t+"Capture",e)}function Ja(t,e){for(Df[t]=e,t=0;t<e.length;t++)$f.add(e[t])}var e1=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]*$"),Bf={},Rf={};function n1(t){return Vt.call(Rf,t)?!0:Vt.call(Bf,t)?!1:e1.test(t)?Rf[t]=!0:(Bf[t]=!0,!1)}function to(t,e,n){if(n1(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function eo(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function vn(t,e,n,a){if(a===null)t.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+a)}}function Xe(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Nf(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function a1(t,e,n){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var i=a.get,o=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(c){n=""+c,o.call(this,c)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(c){n=""+c},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Wu(t){if(!t._valueTracker){var e=Nf(t)?"checked":"value";t._valueTracker=a1(t,e,""+t[e])}}function jf(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),a="";return t&&(a=Nf(t)?t.checked?"true":"false":t.value),t=a,t!==n?(e.setValue(t),!0):!1}function no(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var l1=/[\n"\\]/g;function Ve(t){return t.replace(l1,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Fu(t,e,n,a,i,o,c,f){t.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?t.type=c:t.removeAttribute("type"),e!=null?c==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Xe(e)):t.value!==""+Xe(e)&&(t.value=""+Xe(e)):c!=="submit"&&c!=="reset"||t.removeAttribute("value"),e!=null?Iu(t,c,Xe(e)):n!=null?Iu(t,c,Xe(n)):a!=null&&t.removeAttribute("value"),i==null&&o!=null&&(t.defaultChecked=!!o),i!=null&&(t.checked=i&&typeof i!="function"&&typeof i!="symbol"),f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.name=""+Xe(f):t.removeAttribute("name")}function Hf(t,e,n,a,i,o,c,f){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(t.type=o),e!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||e!=null)){Wu(t);return}n=n!=null?""+Xe(n):"",e=e!=null?""+Xe(e):n,f||e===t.value||(t.value=e),t.defaultValue=e}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=f?t.checked:!!a,t.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(t.name=c),Wu(t)}function Iu(t,e,n){e==="number"&&no(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Wa(t,e,n,a){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&a&&(t[n].defaultSelected=!0)}else{for(n=""+Xe(n),e=null,i=0;i<t.length;i++){if(t[i].value===n){t[i].selected=!0,a&&(t[i].defaultSelected=!0);return}e!==null||t[i].disabled||(e=t[i])}e!==null&&(e.selected=!0)}}function Uf(t,e,n){if(e!=null&&(e=""+Xe(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Xe(n):""}function kf(t,e,n,a){if(e==null){if(a!=null){if(n!=null)throw Error(r(92));if(Ee(a)){if(1<a.length)throw Error(r(93));a=a[0]}n=a}n==null&&(n=""),e=n}n=Xe(e),t.defaultValue=n,a=t.textContent,a===n&&a!==""&&a!==null&&(t.value=a),Wu(t)}function Fa(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var i1=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(t,e,n){var a=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,n):typeof n!="number"||n===0||i1.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Lf(t,e,n){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var i in e)a=e[i],e.hasOwnProperty(i)&&n[i]!==a&&qf(t,i,a)}else for(var o in e)e.hasOwnProperty(o)&&qf(t,o,e[o])}function Pu(t){if(t.indexOf("-")===-1)return!1;switch(t){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 o1=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"]]),u1=/^[\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 ao(t){return u1.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function xn(){}var tr=null;function er(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ia=null,Pa=null;function Yf(t){var e=Za(t);if(e&&(t=e.stateNode)){var n=t[ze]||null;t:switch(t=e.stateNode,e.type){case"input":if(Fu(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Ve(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var a=n[e];if(a!==t&&a.form===t.form){var i=a[ze]||null;if(!i)throw Error(r(90));Fu(a,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(e=0;e<n.length;e++)a=n[e],a.form===t.form&&jf(a)}break t;case"textarea":Uf(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Wa(t,!!n.multiple,e,!1)}}}var nr=!1;function Gf(t,e,n){if(nr)return t(e,n);nr=!0;try{var a=t(e);return a}finally{if(nr=!1,(Ia!==null||Pa!==null)&&(Xo(),Ia&&(e=Ia,t=Pa,Pa=Ia=null,Yf(e),t)))for(e=0;e<t.length;e++)Yf(t[e])}}function Kl(t,e){var n=t.stateNode;if(n===null)return null;var a=n[ze]||null;if(a===null)return null;n=a[e];t:switch(e){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)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(r(231,e,typeof n));return n}var Sn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ar=!1;if(Sn)try{var Jl={};Object.defineProperty(Jl,"passive",{get:function(){ar=!0}}),window.addEventListener("test",Jl,Jl),window.removeEventListener("test",Jl,Jl)}catch{ar=!1}var Gn=null,lr=null,lo=null;function Qf(){if(lo)return lo;var t,e=lr,n=e.length,a,i="value"in Gn?Gn.value:Gn.textContent,o=i.length;for(t=0;t<n&&e[t]===i[t];t++);var c=n-t;for(a=1;a<=c&&e[n-a]===i[o-a];a++);return lo=i.slice(t,1<a?1-a:void 0)}function io(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function oo(){return!0}function Xf(){return!1}function Ae(t){function e(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 t)t.hasOwnProperty(f)&&(n=t[f],this[f]=n?n(o):o[f]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?oo:Xf,this.isPropagationStopped=Xf,this}return z(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=oo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=oo)},persist:function(){},isPersistent:oo}),e}var ba={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},uo=Ae(ba),Wl=z({},ba,{view:0,detail:0}),r1=Ae(Wl),ir,or,Fl,ro=z({},Wl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:rr,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Fl&&(Fl&&t.type==="mousemove"?(ir=t.screenX-Fl.screenX,or=t.screenY-Fl.screenY):or=ir=0,Fl=t),ir)},movementY:function(t){return"movementY"in t?t.movementY:or}}),Vf=Ae(ro),c1=z({},ro,{dataTransfer:0}),s1=Ae(c1),f1=z({},Wl,{relatedTarget:0}),ur=Ae(f1),d1=z({},ba,{animationName:0,elapsedTime:0,pseudoElement:0}),h1=Ae(d1),p1=z({},ba,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),g1=Ae(p1),m1=z({},ba,{data:0}),Zf=Ae(m1),y1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},b1={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"},v1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function x1(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=v1[t])?!!e[t]:!1}function rr(){return x1}var S1=z({},Wl,{key:function(t){if(t.key){var e=y1[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=io(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?b1[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:rr,charCode:function(t){return t.type==="keypress"?io(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?io(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),C1=Ae(S1),T1=z({},ro,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Kf=Ae(T1),E1=z({},Wl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:rr}),z1=Ae(E1),A1=z({},ba,{propertyName:0,elapsedTime:0,pseudoElement:0}),M1=Ae(A1),_1=z({},ro,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),w1=Ae(_1),O1=z({},ba,{newState:0,oldState:0}),$1=Ae(O1),D1=[9,13,27,32],cr=Sn&&"CompositionEvent"in window,Il=null;Sn&&"documentMode"in document&&(Il=document.documentMode);var B1=Sn&&"TextEvent"in window&&!Il,Jf=Sn&&(!cr||Il&&8<Il&&11>=Il),Wf=" ",Ff=!1;function If(t,e){switch(t){case"keyup":return D1.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var tl=!1;function R1(t,e){switch(t){case"compositionend":return Pf(e);case"keypress":return e.which!==32?null:(Ff=!0,Wf);case"textInput":return t=e.data,t===Wf&&Ff?null:t;default:return null}}function N1(t,e){if(tl)return t==="compositionend"||!cr&&If(t,e)?(t=Qf(),lo=lr=Gn=null,tl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Jf&&e.locale!=="ko"?null:e.data;default:return null}}var j1={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 td(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!j1[t.type]:e==="textarea"}function ed(t,e,n,a){Ia?Pa?Pa.push(a):Pa=[a]:Ia=a,e=Io(e,"onChange"),0<e.length&&(n=new uo("onChange","change",null,n,a),t.push({event:n,listeners:e}))}var Pl=null,ti=null;function H1(t){Hp(t,0)}function co(t){var e=Zl(t);if(jf(e))return t}function nd(t,e){if(t==="change")return e}var ad=!1;if(Sn){var sr;if(Sn){var fr="oninput"in document;if(!fr){var ld=document.createElement("div");ld.setAttribute("oninput","return;"),fr=typeof ld.oninput=="function"}sr=fr}else sr=!1;ad=sr&&(!document.documentMode||9<document.documentMode)}function id(){Pl&&(Pl.detachEvent("onpropertychange",od),ti=Pl=null)}function od(t){if(t.propertyName==="value"&&co(ti)){var e=[];ed(e,ti,t,er(t)),Gf(H1,e)}}function U1(t,e,n){t==="focusin"?(id(),Pl=e,ti=n,Pl.attachEvent("onpropertychange",od)):t==="focusout"&&id()}function k1(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return co(ti)}function q1(t,e){if(t==="click")return co(e)}function L1(t,e){if(t==="input"||t==="change")return co(e)}function Y1(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var je=typeof Object.is=="function"?Object.is:Y1;function ei(t,e){if(je(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),a=Object.keys(e);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var i=n[a];if(!Vt.call(e,i)||!je(t[i],e[i]))return!1}return!0}function ud(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function rd(t,e){var n=ud(t);t=0;for(var a;n;){if(n.nodeType===3){if(a=t+n.textContent.length,t<=e&&a>=e)return{node:n,offset:e-t};t=a}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=ud(n)}}function cd(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?cd(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function sd(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=no(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=no(t.document)}return e}function dr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var G1=Sn&&"documentMode"in document&&11>=document.documentMode,el=null,hr=null,ni=null,pr=!1;function fd(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;pr||el==null||el!==no(a)||(a=el,"selectionStart"in a&&dr(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}),ni&&ei(ni,a)||(ni=a,a=Io(hr,"onSelect"),0<a.length&&(e=new uo("onSelect","select",null,e,n),t.push({event:e,listeners:a}),e.target=el)))}function va(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var nl={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")},gr={},dd={};Sn&&(dd=document.createElement("div").style,"AnimationEvent"in window||(delete nl.animationend.animation,delete nl.animationiteration.animation,delete nl.animationstart.animation),"TransitionEvent"in window||delete nl.transitionend.transition);function xa(t){if(gr[t])return gr[t];if(!nl[t])return t;var e=nl[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in dd)return gr[t]=e[n];return t}var hd=xa("animationend"),pd=xa("animationiteration"),gd=xa("animationstart"),Q1=xa("transitionrun"),X1=xa("transitionstart"),V1=xa("transitioncancel"),md=xa("transitionend"),yd=new Map,mr="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(" ");mr.push("scrollEnd");function ln(t,e){yd.set(t,e),ya(e,[t])}var so=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Ze=[],al=0,yr=0;function fo(){for(var t=al,e=yr=al=0;e<t;){var n=Ze[e];Ze[e++]=null;var a=Ze[e];Ze[e++]=null;var i=Ze[e];Ze[e++]=null;var o=Ze[e];if(Ze[e++]=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&&bd(n,i,o)}}function ho(t,e,n,a){Ze[al++]=t,Ze[al++]=e,Ze[al++]=n,Ze[al++]=a,yr|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function br(t,e,n,a){return ho(t,e,n,a),po(t)}function Sa(t,e){return ho(t,null,null,e),po(t)}function bd(t,e,n){t.lanes|=n;var a=t.alternate;a!==null&&(a.lanes|=n);for(var i=!1,o=t.return;o!==null;)o.childLanes|=n,a=o.alternate,a!==null&&(a.childLanes|=n),o.tag===22&&(t=o.stateNode,t===null||t._visibility&1||(i=!0)),t=o,o=o.return;return t.tag===3?(o=t.stateNode,i&&e!==null&&(i=31-Ne(n),t=o.hiddenUpdates,a=t[i],a===null?t[i]=[e]:a.push(e),e.lane=n|536870912),o):null}function po(t){if(50<Ei)throw Ei=0,Mc=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var ll={};function Z1(t,e,n,a){this.tag=t,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=e,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 He(t,e,n,a){return new Z1(t,e,n,a)}function vr(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Cn(t,e){var n=t.alternate;return n===null?(n=He(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function vd(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function go(t,e,n,a,i,o){var c=0;if(a=t,typeof t=="function")vr(t)&&(c=1);else if(typeof t=="string")c=Iv(t,n,F.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Xt:return t=He(31,n,e,i),t.elementType=Xt,t.lanes=o,t;case Y:return Ca(n.children,i,o,e);case R:c=8,i|=24;break;case Z:return t=He(12,n,e,i|2),t.elementType=Z,t.lanes=o,t;case H:return t=He(13,n,e,i),t.elementType=H,t.lanes=o,t;case ot:return t=He(19,n,e,i),t.elementType=ot,t.lanes=o,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case V:c=10;break t;case P:c=9;break t;case ut:c=11;break t;case J:c=14;break t;case jt:c=16,a=null;break t}c=29,n=Error(r(130,t===null?"null":typeof t,"")),a=null}return e=He(c,n,e,i),e.elementType=t,e.type=a,e.lanes=o,e}function Ca(t,e,n,a){return t=He(7,t,a,e),t.lanes=n,t}function xr(t,e,n){return t=He(6,t,null,e),t.lanes=n,t}function xd(t){var e=He(18,null,null,0);return e.stateNode=t,e}function Sr(t,e,n){return e=He(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Sd=new WeakMap;function Ke(t,e){if(typeof t=="object"&&t!==null){var n=Sd.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Bt(e)},Sd.set(t,e),e)}return{value:t,source:e,stack:Bt(e)}}var il=[],ol=0,mo=null,ai=0,Je=[],We=0,Qn=null,pn=1,gn="";function Tn(t,e){il[ol++]=ai,il[ol++]=mo,mo=t,ai=e}function Cd(t,e,n){Je[We++]=pn,Je[We++]=gn,Je[We++]=Qn,Qn=t;var a=pn;t=gn;var i=32-Ne(a)-1;a&=~(1<<i),n+=1;var o=32-Ne(e)+i;if(30<o){var c=i-i%5;o=(a&(1<<c)-1).toString(32),a>>=c,i-=c,pn=1<<32-Ne(e)+i|n<<i|a,gn=o+t}else pn=1<<o|n<<i|a,gn=t}function Cr(t){t.return!==null&&(Tn(t,1),Cd(t,1,0))}function Tr(t){for(;t===mo;)mo=il[--ol],il[ol]=null,ai=il[--ol],il[ol]=null;for(;t===Qn;)Qn=Je[--We],Je[We]=null,gn=Je[--We],Je[We]=null,pn=Je[--We],Je[We]=null}function Td(t,e){Je[We++]=pn,Je[We++]=gn,Je[We++]=Qn,pn=e.id,gn=e.overflow,Qn=t}var pe=null,Gt=null,Ct=!1,Xn=null,Fe=!1,Er=Error(r(519));function Vn(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw li(Ke(e,t)),Er}function Ed(t){var e=t.stateNode,n=t.type,a=t.memoizedProps;switch(e[he]=t,e[ze]=a,n){case"dialog":bt("cancel",e),bt("close",e);break;case"iframe":case"object":case"embed":bt("load",e);break;case"video":case"audio":for(n=0;n<Ai.length;n++)bt(Ai[n],e);break;case"source":bt("error",e);break;case"img":case"image":case"link":bt("error",e),bt("load",e);break;case"details":bt("toggle",e);break;case"input":bt("invalid",e),Hf(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":bt("invalid",e);break;case"textarea":bt("invalid",e),kf(e,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||a.suppressHydrationWarning===!0||Lp(e.textContent,n)?(a.popover!=null&&(bt("beforetoggle",e),bt("toggle",e)),a.onScroll!=null&&bt("scroll",e),a.onScrollEnd!=null&&bt("scrollend",e),a.onClick!=null&&(e.onclick=xn),e=!0):e=!1,e||Vn(t,!0)}function zd(t){for(pe=t.return;pe;)switch(pe.tag){case 5:case 31:case 13:Fe=!1;return;case 27:case 3:Fe=!0;return;default:pe=pe.return}}function ul(t){if(t!==pe)return!1;if(!Ct)return zd(t),Ct=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||Yc(t.type,t.memoizedProps)),n=!n),n&&Gt&&Vn(t),zd(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Gt=Wp(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Gt=Wp(t)}else e===27?(e=Gt,oa(t.type)?(t=Zc,Zc=null,Gt=t):Gt=e):Gt=pe?Pe(t.stateNode.nextSibling):null;return!0}function Ta(){Gt=pe=null,Ct=!1}function zr(){var t=Xn;return t!==null&&(Oe===null?Oe=t:Oe.push.apply(Oe,t),Xn=null),t}function li(t){Xn===null?Xn=[t]:Xn.push(t)}var Ar=v(null),Ea=null,En=null;function Zn(t,e,n){W(Ar,e._currentValue),e._currentValue=n}function zn(t){t._currentValue=Ar.current,U(Ar)}function Mr(t,e,n){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===n)break;t=t.return}}function _r(t,e,n,a){var i=t.child;for(i!==null&&(i.return=t);i!==null;){var o=i.dependencies;if(o!==null){var c=i.child;o=o.firstContext;t:for(;o!==null;){var f=o;o=i;for(var m=0;m<e.length;m++)if(f.context===e[m]){o.lanes|=n,f=o.alternate,f!==null&&(f.lanes|=n),Mr(o.return,n,t),a||(c=null);break t}o=f.next}}else if(i.tag===18){if(c=i.return,c===null)throw Error(r(341));c.lanes|=n,o=c.alternate,o!==null&&(o.lanes|=n),Mr(c,n,t),c=null}else c=i.child;if(c!==null)c.return=i;else for(c=i;c!==null;){if(c===t){c=null;break}if(i=c.sibling,i!==null){i.return=c.return,c=i;break}c=c.return}i=c}}function rl(t,e,n,a){t=null;for(var i=e,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(r(387));if(c=c.memoizedProps,c!==null){var f=i.type;je(i.pendingProps.value,c.value)||(t!==null?t.push(f):t=[f])}}else if(i===Et.current){if(c=i.alternate,c===null)throw Error(r(387));c.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(t!==null?t.push($i):t=[$i])}i=i.return}t!==null&&_r(e,t,n,a),e.flags|=262144}function yo(t){for(t=t.firstContext;t!==null;){if(!je(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function za(t){Ea=t,En=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ge(t){return Ad(Ea,t)}function bo(t,e){return Ea===null&&za(t),Ad(t,e)}function Ad(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},En===null){if(t===null)throw Error(r(308));En=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else En=En.next=e;return n}var K1=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},J1=l.unstable_scheduleCallback,W1=l.unstable_NormalPriority,ne={$$typeof:V,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function wr(){return{controller:new K1,data:new Map,refCount:0}}function ii(t){t.refCount--,t.refCount===0&&J1(W1,function(){t.controller.abort()})}var oi=null,Or=0,cl=0,sl=null;function F1(t,e){if(oi===null){var n=oi=[];Or=0,cl=Bc(),sl={status:"pending",value:void 0,then:function(a){n.push(a)}}}return Or++,e.then(Md,Md),e}function Md(){if(--Or===0&&oi!==null){sl!==null&&(sl.status="fulfilled");var t=oi;oi=null,cl=0,sl=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function I1(t,e){var n=[],a={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var i=0;i<n.length;i++)(0,n[i])(e)},function(i){for(a.status="rejected",a.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),a}var _d=D.S;D.S=function(t,e){fp=Be(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&F1(t,e),_d!==null&&_d(t,e)};var Aa=v(null);function $r(){var t=Aa.current;return t!==null?t:qt.pooledCache}function vo(t,e){e===null?W(Aa,Aa.current):W(Aa,e.pool)}function wd(){var t=$r();return t===null?null:{parent:ne._currentValue,pool:t}}var fl=Error(r(460)),Dr=Error(r(474)),xo=Error(r(542)),So={then:function(){}};function Od(t){return t=t.status,t==="fulfilled"||t==="rejected"}function $d(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(xn,xn),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Bd(t),t;default:if(typeof e.status=="string")e.then(xn,xn);else{if(t=qt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var i=e;i.status="fulfilled",i.value=a}},function(a){if(e.status==="pending"){var i=e;i.status="rejected",i.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Bd(t),t}throw _a=e,fl}}function Ma(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(_a=n,fl):n}}var _a=null;function Dd(){if(_a===null)throw Error(r(459));var t=_a;return _a=null,t}function Bd(t){if(t===fl||t===xo)throw Error(r(483))}var dl=null,ui=0;function Co(t){var e=ui;return ui+=1,dl===null&&(dl=[]),$d(dl,t,e)}function ri(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function To(t,e){throw e.$$typeof===k?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Rd(t){function e(E,b){if(t){var M=E.deletions;M===null?(E.deletions=[b],E.flags|=16):M.push(b)}}function n(E,b){if(!t)return null;for(;b!==null;)e(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,t?(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 t&&E.alternate===null&&(E.flags|=67108866),E}function f(E,b,M,B){return b===null||b.tag!==6?(b=xr(M,E.mode,B),b.return=E,b):(b=i(b,M),b.return=E,b)}function m(E,b,M,B){var nt=M.type;return nt===Y?$(E,b,M.props.children,B,M.key):b!==null&&(b.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===jt&&Ma(nt)===b.type)?(b=i(b,M.props),ri(b,M),b.return=E,b):(b=go(M.type,M.key,M.props,null,E.mode,B),ri(b,M),b.return=E,b)}function _(E,b,M,B){return b===null||b.tag!==4||b.stateNode.containerInfo!==M.containerInfo||b.stateNode.implementation!==M.implementation?(b=Sr(M,E.mode,B),b.return=E,b):(b=i(b,M.children||[]),b.return=E,b)}function $(E,b,M,B,nt){return b===null||b.tag!==7?(b=Ca(M,E.mode,B,nt),b.return=E,b):(b=i(b,M),b.return=E,b)}function N(E,b,M){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return b=xr(""+b,E.mode,M),b.return=E,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case X:return M=go(b.type,b.key,b.props,null,E.mode,M),ri(M,b),M.return=E,M;case Q:return b=Sr(b,E.mode,M),b.return=E,b;case jt:return b=Ma(b),N(E,b,M)}if(Ee(b)||Yt(b))return b=Ca(b,E.mode,M,null),b.return=E,b;if(typeof b.then=="function")return N(E,Co(b),M);if(b.$$typeof===V)return N(E,bo(E,b),M);To(E,b)}return null}function w(E,b,M,B){var nt=b!==null?b.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return nt!==null?null:f(E,b,""+M,B);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case X:return M.key===nt?m(E,b,M,B):null;case Q:return M.key===nt?_(E,b,M,B):null;case jt:return M=Ma(M),w(E,b,M,B)}if(Ee(M)||Yt(M))return nt!==null?null:$(E,b,M,B,null);if(typeof M.then=="function")return w(E,b,Co(M),B);if(M.$$typeof===V)return w(E,b,bo(E,M),B);To(E,M)}return null}function O(E,b,M,B,nt){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return E=E.get(M)||null,f(b,E,""+B,nt);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case X:return E=E.get(B.key===null?M:B.key)||null,m(b,E,B,nt);case Q:return E=E.get(B.key===null?M:B.key)||null,_(b,E,B,nt);case jt:return B=Ma(B),O(E,b,M,B,nt)}if(Ee(B)||Yt(B))return E=E.get(M)||null,$(b,E,B,nt,null);if(typeof B.then=="function")return O(E,b,M,Co(B),nt);if(B.$$typeof===V)return O(E,b,M,bo(b,B),nt);To(b,B)}return null}function I(E,b,M,B){for(var nt=null,zt=null,tt=b,ht=b=0,St=null;tt!==null&&ht<M.length;ht++){tt.index>ht?(St=tt,tt=null):St=tt.sibling;var At=w(E,tt,M[ht],B);if(At===null){tt===null&&(tt=St);break}t&&tt&&At.alternate===null&&e(E,tt),b=o(At,b,ht),zt===null?nt=At:zt.sibling=At,zt=At,tt=St}if(ht===M.length)return n(E,tt),Ct&&Tn(E,ht),nt;if(tt===null){for(;ht<M.length;ht++)tt=N(E,M[ht],B),tt!==null&&(b=o(tt,b,ht),zt===null?nt=tt:zt.sibling=tt,zt=tt);return Ct&&Tn(E,ht),nt}for(tt=a(tt);ht<M.length;ht++)St=O(tt,E,ht,M[ht],B),St!==null&&(t&&St.alternate!==null&&tt.delete(St.key===null?ht:St.key),b=o(St,b,ht),zt===null?nt=St:zt.sibling=St,zt=St);return t&&tt.forEach(function(fa){return e(E,fa)}),Ct&&Tn(E,ht),nt}function lt(E,b,M,B){if(M==null)throw Error(r(151));for(var nt=null,zt=null,tt=b,ht=b=0,St=null,At=M.next();tt!==null&&!At.done;ht++,At=M.next()){tt.index>ht?(St=tt,tt=null):St=tt.sibling;var fa=w(E,tt,At.value,B);if(fa===null){tt===null&&(tt=St);break}t&&tt&&fa.alternate===null&&e(E,tt),b=o(fa,b,ht),zt===null?nt=fa:zt.sibling=fa,zt=fa,tt=St}if(At.done)return n(E,tt),Ct&&Tn(E,ht),nt;if(tt===null){for(;!At.done;ht++,At=M.next())At=N(E,At.value,B),At!==null&&(b=o(At,b,ht),zt===null?nt=At:zt.sibling=At,zt=At);return Ct&&Tn(E,ht),nt}for(tt=a(tt);!At.done;ht++,At=M.next())At=O(tt,E,ht,At.value,B),At!==null&&(t&&At.alternate!==null&&tt.delete(At.key===null?ht:At.key),b=o(At,b,ht),zt===null?nt=At:zt.sibling=At,zt=At);return t&&tt.forEach(function(cx){return e(E,cx)}),Ct&&Tn(E,ht),nt}function kt(E,b,M,B){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:t:{for(var nt=M.key;b!==null;){if(b.key===nt){if(nt=M.type,nt===Y){if(b.tag===7){n(E,b.sibling),B=i(b,M.props.children),B.return=E,E=B;break t}}else if(b.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===jt&&Ma(nt)===b.type){n(E,b.sibling),B=i(b,M.props),ri(B,M),B.return=E,E=B;break t}n(E,b);break}else e(E,b);b=b.sibling}M.type===Y?(B=Ca(M.props.children,E.mode,B,M.key),B.return=E,E=B):(B=go(M.type,M.key,M.props,null,E.mode,B),ri(B,M),B.return=E,E=B)}return c(E);case Q:t:{for(nt=M.key;b!==null;){if(b.key===nt)if(b.tag===4&&b.stateNode.containerInfo===M.containerInfo&&b.stateNode.implementation===M.implementation){n(E,b.sibling),B=i(b,M.children||[]),B.return=E,E=B;break t}else{n(E,b);break}else e(E,b);b=b.sibling}B=Sr(M,E.mode,B),B.return=E,E=B}return c(E);case jt:return M=Ma(M),kt(E,b,M,B)}if(Ee(M))return I(E,b,M,B);if(Yt(M)){if(nt=Yt(M),typeof nt!="function")throw Error(r(150));return M=nt.call(M),lt(E,b,M,B)}if(typeof M.then=="function")return kt(E,b,Co(M),B);if(M.$$typeof===V)return kt(E,b,bo(E,M),B);To(E,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,b!==null&&b.tag===6?(n(E,b.sibling),B=i(b,M),B.return=E,E=B):(n(E,b),B=xr(M,E.mode,B),B.return=E,E=B),c(E)):n(E,b)}return function(E,b,M,B){try{ui=0;var nt=kt(E,b,M,B);return dl=null,nt}catch(tt){if(tt===fl||tt===xo)throw tt;var zt=He(29,tt,null,E.mode);return zt.lanes=B,zt.return=E,zt}}}var wa=Rd(!0),Nd=Rd(!1),Kn=!1;function Br(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Rr(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Jn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Wn(t,e,n){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(Ot&2)!==0){var i=a.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),a.pending=e,e=po(t),bd(t,null,n),e}return ho(t,a,e,n),po(t)}function ci(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,Af(t,n)}}function Nr(t,e){var n=t.updateQueue,a=t.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=e:o=o.next=e}else i=o=e;n={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:a.shared,callbacks:a.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var jr=!1;function si(){if(jr){var t=sl;if(t!==null)throw t}}function fi(t,e,n,a){jr=!1;var i=t.updateQueue;Kn=!1;var o=i.firstBaseUpdate,c=i.lastBaseUpdate,f=i.shared.pending;if(f!==null){i.shared.pending=null;var m=f,_=m.next;m.next=null,c===null?o=_:c.next=_,c=m;var $=t.alternate;$!==null&&($=$.updateQueue,f=$.lastBaseUpdate,f!==c&&(f===null?$.firstBaseUpdate=_:f.next=_,$.lastBaseUpdate=m))}if(o!==null){var N=i.baseState;c=0,$=_=m=null,f=o;do{var w=f.lane&-536870913,O=w!==f.lane;if(O?(xt&w)===w:(a&w)===w){w!==0&&w===cl&&(jr=!0),$!==null&&($=$.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});t:{var I=t,lt=f;w=e;var kt=n;switch(lt.tag){case 1:if(I=lt.payload,typeof I=="function"){N=I.call(kt,N,w);break t}N=I;break t;case 3:I.flags=I.flags&-65537|128;case 0:if(I=lt.payload,w=typeof I=="function"?I.call(kt,N,w):I,w==null)break t;N=z({},N,w);break t;case 2:Kn=!0}}w=f.callback,w!==null&&(t.flags|=64,O&&(t.flags|=8192),O=i.callbacks,O===null?i.callbacks=[w]:O.push(w))}else O={lane:w,tag:f.tag,payload:f.payload,callback:f.callback,next:null},$===null?(_=$=O,m=N):$=$.next=O,c|=w;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);$===null&&(m=N),i.baseState=m,i.firstBaseUpdate=_,i.lastBaseUpdate=$,o===null&&(i.shared.lanes=0),ea|=c,t.lanes=c,t.memoizedState=N}}function jd(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function Hd(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)jd(n[t],e)}var hl=v(null),Eo=v(0);function Ud(t,e){t=Rn,W(Eo,t),W(hl,e),Rn=t|e.baseLanes}function Hr(){W(Eo,Rn),W(hl,hl.current)}function Ur(){Rn=Eo.current,U(hl),U(Eo)}var Ue=v(null),Ie=null;function Fn(t){var e=t.alternate;W(Ft,Ft.current&1),W(Ue,t),Ie===null&&(e===null||hl.current!==null||e.memoizedState!==null)&&(Ie=t)}function kr(t){W(Ft,Ft.current),W(Ue,t),Ie===null&&(Ie=t)}function kd(t){t.tag===22?(W(Ft,Ft.current),W(Ue,t),Ie===null&&(Ie=t)):In()}function In(){W(Ft,Ft.current),W(Ue,Ue.current)}function ke(t){U(Ue),Ie===t&&(Ie=null),U(Ft)}var Ft=v(0);function zo(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Xc(n)||Vc(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var An=0,ft=null,Ht=null,ae=null,Ao=!1,pl=!1,Oa=!1,Mo=0,di=0,gl=null,P1=0;function Jt(){throw Error(r(321))}function qr(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!je(t[n],e[n]))return!1;return!0}function Lr(t,e,n,a,i,o){return An=o,ft=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,D.H=t===null||t.memoizedState===null?Ch:nc,Oa=!1,o=n(a,i),Oa=!1,pl&&(o=Ld(e,n,a,i)),qd(t),o}function qd(t){D.H=gi;var e=Ht!==null&&Ht.next!==null;if(An=0,ae=Ht=ft=null,Ao=!1,di=0,gl=null,e)throw Error(r(300));t===null||le||(t=t.dependencies,t!==null&&yo(t)&&(le=!0))}function Ld(t,e,n,a){ft=t;var i=0;do{if(pl&&(gl=null),di=0,pl=!1,25<=i)throw Error(r(301));if(i+=1,ae=Ht=null,t.updateQueue!=null){var o=t.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}D.H=Th,o=e(n,a)}while(pl);return o}function tv(){var t=D.H,e=t.useState()[0];return e=typeof e.then=="function"?hi(e):e,t=t.useState()[0],(Ht!==null?Ht.memoizedState:null)!==t&&(ft.flags|=1024),e}function Yr(){var t=Mo!==0;return Mo=0,t}function Gr(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function Qr(t){if(Ao){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Ao=!1}An=0,ae=Ht=ft=null,pl=!1,di=Mo=0,gl=null}function Ce(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ae===null?ft.memoizedState=ae=t:ae=ae.next=t,ae}function It(){if(Ht===null){var t=ft.alternate;t=t!==null?t.memoizedState:null}else t=Ht.next;var e=ae===null?ft.memoizedState:ae.next;if(e!==null)ae=e,Ht=t;else{if(t===null)throw ft.alternate===null?Error(r(467)):Error(r(310));Ht=t,t={memoizedState:Ht.memoizedState,baseState:Ht.baseState,baseQueue:Ht.baseQueue,queue:Ht.queue,next:null},ae===null?ft.memoizedState=ae=t:ae=ae.next=t}return ae}function _o(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function hi(t){var e=di;return di+=1,gl===null&&(gl=[]),t=$d(gl,t,e),e=ft,(ae===null?e.memoizedState:ae.next)===null&&(e=e.alternate,D.H=e===null||e.memoizedState===null?Ch:nc),t}function wo(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return hi(t);if(t.$$typeof===V)return ge(t)}throw Error(r(438,String(t)))}function Xr(t){var e=null,n=ft.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var a=ft.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(i){return i.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=_o(),ft.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),a=0;a<t;a++)n[a]=L;return e.index++,n}function Mn(t,e){return typeof e=="function"?e(t):e}function Oo(t){var e=It();return Vr(e,Ht,t)}function Vr(t,e,n){var a=t.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=n;var i=t.baseQueue,o=a.pending;if(o!==null){if(i!==null){var c=i.next;i.next=o.next,o.next=c}e.baseQueue=i=o,a.pending=null}if(o=t.baseState,i===null)t.memoizedState=o;else{e=i.next;var f=c=null,m=null,_=e,$=!1;do{var N=_.lane&-536870913;if(N!==_.lane?(xt&N)===N:(An&N)===N){var w=_.revertLane;if(w===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null}),N===cl&&($=!0);else if((An&w)===w){_=_.next,w===cl&&($=!0);continue}else N={lane:0,revertLane:_.revertLane,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},m===null?(f=m=N,c=o):m=m.next=N,ft.lanes|=w,ea|=w;N=_.action,Oa&&n(o,N),o=_.hasEagerState?_.eagerState:n(o,N)}else w={lane:N,revertLane:_.revertLane,gesture:_.gesture,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},m===null?(f=m=w,c=o):m=m.next=w,ft.lanes|=N,ea|=N;_=_.next}while(_!==null&&_!==e);if(m===null?c=o:m.next=f,!je(o,t.memoizedState)&&(le=!0,$&&(n=sl,n!==null)))throw n;t.memoizedState=o,t.baseState=c,t.baseQueue=m,a.lastRenderedState=o}return i===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function Zr(t){var e=It(),n=e.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=t;var a=n.dispatch,i=n.pending,o=e.memoizedState;if(i!==null){n.pending=null;var c=i=i.next;do o=t(o,c.action),c=c.next;while(c!==i);je(o,e.memoizedState)||(le=!0),e.memoizedState=o,e.baseQueue===null&&(e.baseState=o),n.lastRenderedState=o}return[o,a]}function Yd(t,e,n){var a=ft,i=It(),o=Ct;if(o){if(n===void 0)throw Error(r(407));n=n()}else n=e();var c=!je((Ht||i).memoizedState,n);if(c&&(i.memoizedState=n,le=!0),i=i.queue,Wr(Xd.bind(null,a,i,t),[t]),i.getSnapshot!==e||c||ae!==null&&ae.memoizedState.tag&1){if(a.flags|=2048,ml(9,{destroy:void 0},Qd.bind(null,a,i,n,e),null),qt===null)throw Error(r(349));o||(An&127)!==0||Gd(a,e,n)}return n}function Gd(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ft.updateQueue,e===null?(e=_o(),ft.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Qd(t,e,n,a){e.value=n,e.getSnapshot=a,Vd(e)&&Zd(t)}function Xd(t,e,n){return n(function(){Vd(e)&&Zd(t)})}function Vd(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!je(t,n)}catch{return!0}}function Zd(t){var e=Sa(t,2);e!==null&&$e(e,t,2)}function Kr(t){var e=Ce();if(typeof t=="function"){var n=t;if(t=n(),Oa){Ln(!0);try{n()}finally{Ln(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mn,lastRenderedState:t},e}function Kd(t,e,n,a){return t.baseState=n,Vr(t,Ht,typeof a=="function"?a:Mn)}function ev(t,e,n,a,i){if(Bo(t))throw Error(r(485));if(t=e.action,t!==null){var o={payload:i,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){o.listeners.push(c)}};D.T!==null?n(!0):o.isTransition=!1,a(o),n=e.pending,n===null?(o.next=e.pending=o,Jd(e,o)):(o.next=n.next,e.pending=n.next=o)}}function Jd(t,e){var n=e.action,a=e.payload,i=t.state;if(e.isTransition){var o=D.T,c={};D.T=c;try{var f=n(i,a),m=D.S;m!==null&&m(c,f),Wd(t,e,f)}catch(_){Jr(t,e,_)}finally{o!==null&&c.types!==null&&(o.types=c.types),D.T=o}}else try{o=n(i,a),Wd(t,e,o)}catch(_){Jr(t,e,_)}}function Wd(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Fd(t,e,a)},function(a){return Jr(t,e,a)}):Fd(t,e,n)}function Fd(t,e,n){e.status="fulfilled",e.value=n,Id(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,Jd(t,n)))}function Jr(t,e,n){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=n,Id(e),e=e.next;while(e!==a)}t.action=null}function Id(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Pd(t,e){return e}function th(t,e){if(Ct){var n=qt.formState;if(n!==null){t:{var a=ft;if(Ct){if(Gt){e:{for(var i=Gt,o=Fe;i.nodeType!==8;){if(!o){i=null;break e}if(i=Pe(i.nextSibling),i===null){i=null;break e}}o=i.data,i=o==="F!"||o==="F"?i:null}if(i){Gt=Pe(i.nextSibling),a=i.data==="F!";break t}}Vn(a)}a=!1}a&&(e=n[0])}}return n=Ce(),n.memoizedState=n.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pd,lastRenderedState:e},n.queue=a,n=vh.bind(null,ft,a),a.dispatch=n,a=Kr(!1),o=ec.bind(null,ft,!1,a.queue),a=Ce(),i={state:e,dispatch:null,action:t,pending:null},a.queue=i,n=ev.bind(null,ft,i,o,n),i.dispatch=n,a.memoizedState=t,[e,n,!1]}function eh(t){var e=It();return nh(e,Ht,t)}function nh(t,e,n){if(e=Vr(t,e,Pd)[0],t=Oo(Mn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=hi(e)}catch(c){throw c===fl?xo:c}else a=e;e=It();var i=e.queue,o=i.dispatch;return n!==e.memoizedState&&(ft.flags|=2048,ml(9,{destroy:void 0},nv.bind(null,i,n),null)),[a,o,t]}function nv(t,e){t.action=e}function ah(t){var e=It(),n=Ht;if(n!==null)return nh(e,n,t);It(),e=e.memoizedState,n=It();var a=n.queue.dispatch;return n.memoizedState=t,[e,a,!1]}function ml(t,e,n,a){return t={tag:t,create:n,deps:a,inst:e,next:null},e=ft.updateQueue,e===null&&(e=_o(),ft.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(a=n.next,n.next=t,t.next=a,e.lastEffect=t),t}function lh(){return It().memoizedState}function $o(t,e,n,a){var i=Ce();ft.flags|=t,i.memoizedState=ml(1|e,{destroy:void 0},n,a===void 0?null:a)}function Do(t,e,n,a){var i=It();a=a===void 0?null:a;var o=i.memoizedState.inst;Ht!==null&&a!==null&&qr(a,Ht.memoizedState.deps)?i.memoizedState=ml(e,o,n,a):(ft.flags|=t,i.memoizedState=ml(1|e,o,n,a))}function ih(t,e){$o(8390656,8,t,e)}function Wr(t,e){Do(2048,8,t,e)}function av(t){ft.flags|=4;var e=ft.updateQueue;if(e===null)e=_o(),ft.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function oh(t){var e=It().memoizedState;return av({ref:e,nextImpl:t}),function(){if((Ot&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function uh(t,e){return Do(4,2,t,e)}function rh(t,e){return Do(4,4,t,e)}function ch(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function sh(t,e,n){n=n!=null?n.concat([t]):null,Do(4,4,ch.bind(null,e,t),n)}function Fr(){}function fh(t,e){var n=It();e=e===void 0?null:e;var a=n.memoizedState;return e!==null&&qr(e,a[1])?a[0]:(n.memoizedState=[t,e],t)}function dh(t,e){var n=It();e=e===void 0?null:e;var a=n.memoizedState;if(e!==null&&qr(e,a[1]))return a[0];if(a=t(),Oa){Ln(!0);try{t()}finally{Ln(!1)}}return n.memoizedState=[a,e],a}function Ir(t,e,n){return n===void 0||(An&1073741824)!==0&&(xt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=hp(),ft.lanes|=t,ea|=t,n)}function hh(t,e,n,a){return je(n,e)?n:hl.current!==null?(t=Ir(t,n,a),je(t,e)||(le=!0),t):(An&42)===0||(An&1073741824)!==0&&(xt&261930)===0?(le=!0,t.memoizedState=n):(t=hp(),ft.lanes|=t,ea|=t,e)}function ph(t,e,n,a,i){var o=K.p;K.p=o!==0&&8>o?o:8;var c=D.T,f={};D.T=f,ec(t,!1,e,n);try{var m=i(),_=D.S;if(_!==null&&_(f,m),m!==null&&typeof m=="object"&&typeof m.then=="function"){var $=I1(m,a);pi(t,e,$,Ye(t))}else pi(t,e,a,Ye(t))}catch(N){pi(t,e,{then:function(){},status:"rejected",reason:N},Ye())}finally{K.p=o,c!==null&&f.types!==null&&(c.types=f.types),D.T=c}}function lv(){}function Pr(t,e,n,a){if(t.tag!==5)throw Error(r(476));var i=gh(t).queue;ph(t,i,e,at,n===null?lv:function(){return mh(t),n(a)})}function gh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:at,baseState:at,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mn,lastRenderedState:at},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function mh(t){var e=gh(t);e.next===null&&(e=t.alternate.memoizedState),pi(t,e.next.queue,{},Ye())}function tc(){return ge($i)}function yh(){return It().memoizedState}function bh(){return It().memoizedState}function iv(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Ye();t=Jn(n);var a=Wn(e,t,n);a!==null&&($e(a,e,n),ci(a,e,n)),e={cache:wr()},t.payload=e;return}e=e.return}}function ov(t,e,n){var a=Ye();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Bo(t)?xh(e,n):(n=br(t,e,n,a),n!==null&&($e(n,t,a),Sh(n,e,a)))}function vh(t,e,n){var a=Ye();pi(t,e,n,a)}function pi(t,e,n,a){var i={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Bo(t))xh(e,i);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var c=e.lastRenderedState,f=o(c,n);if(i.hasEagerState=!0,i.eagerState=f,je(f,c))return ho(t,e,i,0),qt===null&&fo(),!1}catch{}if(n=br(t,e,i,a),n!==null)return $e(n,t,a),Sh(n,e,a),!0}return!1}function ec(t,e,n,a){if(a={lane:2,revertLane:Bc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Bo(t)){if(e)throw Error(r(479))}else e=br(t,n,a,2),e!==null&&$e(e,t,2)}function Bo(t){var e=t.alternate;return t===ft||e!==null&&e===ft}function xh(t,e){pl=Ao=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Sh(t,e,n){if((n&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,Af(t,n)}}var gi={readContext:ge,use:wo,useCallback:Jt,useContext:Jt,useEffect:Jt,useImperativeHandle:Jt,useLayoutEffect:Jt,useInsertionEffect:Jt,useMemo:Jt,useReducer:Jt,useRef:Jt,useState:Jt,useDebugValue:Jt,useDeferredValue:Jt,useTransition:Jt,useSyncExternalStore:Jt,useId:Jt,useHostTransitionStatus:Jt,useFormState:Jt,useActionState:Jt,useOptimistic:Jt,useMemoCache:Jt,useCacheRefresh:Jt};gi.useEffectEvent=Jt;var Ch={readContext:ge,use:wo,useCallback:function(t,e){return Ce().memoizedState=[t,e===void 0?null:e],t},useContext:ge,useEffect:ih,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,$o(4194308,4,ch.bind(null,e,t),n)},useLayoutEffect:function(t,e){return $o(4194308,4,t,e)},useInsertionEffect:function(t,e){$o(4,2,t,e)},useMemo:function(t,e){var n=Ce();e=e===void 0?null:e;var a=t();if(Oa){Ln(!0);try{t()}finally{Ln(!1)}}return n.memoizedState=[a,e],a},useReducer:function(t,e,n){var a=Ce();if(n!==void 0){var i=n(e);if(Oa){Ln(!0);try{n(e)}finally{Ln(!1)}}}else i=e;return a.memoizedState=a.baseState=i,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:i},a.queue=t,t=t.dispatch=ov.bind(null,ft,t),[a.memoizedState,t]},useRef:function(t){var e=Ce();return t={current:t},e.memoizedState=t},useState:function(t){t=Kr(t);var e=t.queue,n=vh.bind(null,ft,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Fr,useDeferredValue:function(t,e){var n=Ce();return Ir(n,t,e)},useTransition:function(){var t=Kr(!1);return t=ph.bind(null,ft,t.queue,!0,!1),Ce().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var a=ft,i=Ce();if(Ct){if(n===void 0)throw Error(r(407));n=n()}else{if(n=e(),qt===null)throw Error(r(349));(xt&127)!==0||Gd(a,e,n)}i.memoizedState=n;var o={value:n,getSnapshot:e};return i.queue=o,ih(Xd.bind(null,a,o,t),[t]),a.flags|=2048,ml(9,{destroy:void 0},Qd.bind(null,a,o,n,e),null),n},useId:function(){var t=Ce(),e=qt.identifierPrefix;if(Ct){var n=gn,a=pn;n=(a&~(1<<32-Ne(a)-1)).toString(32)+n,e="_"+e+"R_"+n,n=Mo++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=P1++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:tc,useFormState:th,useActionState:th,useOptimistic:function(t){var e=Ce();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=ec.bind(null,ft,!0,n),n.dispatch=e,[t,e]},useMemoCache:Xr,useCacheRefresh:function(){return Ce().memoizedState=iv.bind(null,ft)},useEffectEvent:function(t){var e=Ce(),n={impl:t};return e.memoizedState=n,function(){if((Ot&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},nc={readContext:ge,use:wo,useCallback:fh,useContext:ge,useEffect:Wr,useImperativeHandle:sh,useInsertionEffect:uh,useLayoutEffect:rh,useMemo:dh,useReducer:Oo,useRef:lh,useState:function(){return Oo(Mn)},useDebugValue:Fr,useDeferredValue:function(t,e){var n=It();return hh(n,Ht.memoizedState,t,e)},useTransition:function(){var t=Oo(Mn)[0],e=It().memoizedState;return[typeof t=="boolean"?t:hi(t),e]},useSyncExternalStore:Yd,useId:yh,useHostTransitionStatus:tc,useFormState:eh,useActionState:eh,useOptimistic:function(t,e){var n=It();return Kd(n,Ht,t,e)},useMemoCache:Xr,useCacheRefresh:bh};nc.useEffectEvent=oh;var Th={readContext:ge,use:wo,useCallback:fh,useContext:ge,useEffect:Wr,useImperativeHandle:sh,useInsertionEffect:uh,useLayoutEffect:rh,useMemo:dh,useReducer:Zr,useRef:lh,useState:function(){return Zr(Mn)},useDebugValue:Fr,useDeferredValue:function(t,e){var n=It();return Ht===null?Ir(n,t,e):hh(n,Ht.memoizedState,t,e)},useTransition:function(){var t=Zr(Mn)[0],e=It().memoizedState;return[typeof t=="boolean"?t:hi(t),e]},useSyncExternalStore:Yd,useId:yh,useHostTransitionStatus:tc,useFormState:ah,useActionState:ah,useOptimistic:function(t,e){var n=It();return Ht!==null?Kd(n,Ht,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:Xr,useCacheRefresh:bh};Th.useEffectEvent=oh;function ac(t,e,n,a){e=t.memoizedState,n=n(a,e),n=n==null?e:z({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var lc={enqueueSetState:function(t,e,n){t=t._reactInternals;var a=Ye(),i=Jn(a);i.payload=e,n!=null&&(i.callback=n),e=Wn(t,i,a),e!==null&&($e(e,t,a),ci(e,t,a))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var a=Ye(),i=Jn(a);i.tag=1,i.payload=e,n!=null&&(i.callback=n),e=Wn(t,i,a),e!==null&&($e(e,t,a),ci(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Ye(),a=Jn(n);a.tag=2,e!=null&&(a.callback=e),e=Wn(t,a,n),e!==null&&($e(e,t,n),ci(e,t,n))}};function Eh(t,e,n,a,i,o,c){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,o,c):e.prototype&&e.prototype.isPureReactComponent?!ei(n,a)||!ei(i,o):!0}function zh(t,e,n,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,a),e.state!==t&&lc.enqueueReplaceState(e,e.state,null)}function $a(t,e){var n=e;if("ref"in e){n={};for(var a in e)a!=="ref"&&(n[a]=e[a])}if(t=t.defaultProps){n===e&&(n=z({},n));for(var i in t)n[i]===void 0&&(n[i]=t[i])}return n}function Ah(t){so(t)}function Mh(t){console.error(t)}function _h(t){so(t)}function Ro(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function wh(t,e,n){try{var a=t.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function ic(t,e,n){return n=Jn(n),n.tag=3,n.payload={element:null},n.callback=function(){Ro(t,e)},n}function Oh(t){return t=Jn(t),t.tag=3,t}function $h(t,e,n,a){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var o=a.value;t.payload=function(){return i(o)},t.callback=function(){wh(e,n,a)}}var c=n.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(t.callback=function(){wh(e,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 uv(t,e,n,a,i){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=n.alternate,e!==null&&rl(e,n,i,!0),n=Ue.current,n!==null){switch(n.tag){case 31:case 13:return Ie===null?Vo():n.alternate===null&&Wt===0&&(Wt=3),n.flags&=-257,n.flags|=65536,n.lanes=i,a===So?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([a]):e.add(a),Oc(t,a,i)),!1;case 22:return n.flags|=65536,a===So?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([a]):n.add(a)),Oc(t,a,i)),!1}throw Error(r(435,n.tag))}return Oc(t,a,i),Vo(),!1}if(Ct)return e=Ue.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=i,a!==Er&&(t=Error(r(422),{cause:a}),li(Ke(t,n)))):(a!==Er&&(e=Error(r(423),{cause:a}),li(Ke(e,n))),t=t.current.alternate,t.flags|=65536,i&=-i,t.lanes|=i,a=Ke(a,n),i=ic(t.stateNode,a,i),Nr(t,i),Wt!==4&&(Wt=2)),!1;var o=Error(r(520),{cause:a});if(o=Ke(o,n),Ti===null?Ti=[o]:Ti.push(o),Wt!==4&&(Wt=2),e===null)return!0;a=Ke(a,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=i&-i,n.lanes|=t,t=ic(n.stateNode,a,t),Nr(n,t),!1;case 1:if(e=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(na===null||!na.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,i=Oh(i),$h(i,t,n,a),Nr(n,i),!1}n=n.return}while(n!==null);return!1}var oc=Error(r(461)),le=!1;function me(t,e,n,a){e.child=t===null?Nd(e,null,n,a):wa(e,t.child,n,a)}function Dh(t,e,n,a,i){n=n.render;var o=e.ref;if("ref"in a){var c={};for(var f in a)f!=="ref"&&(c[f]=a[f])}else c=a;return za(e),a=Lr(t,e,n,c,o,i),f=Yr(),t!==null&&!le?(Gr(t,e,i),_n(t,e,i)):(Ct&&f&&Cr(e),e.flags|=1,me(t,e,a,i),e.child)}function Bh(t,e,n,a,i){if(t===null){var o=n.type;return typeof o=="function"&&!vr(o)&&o.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=o,Rh(t,e,o,a,i)):(t=go(n.type,null,a,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(o=t.child,!pc(t,i)){var c=o.memoizedProps;if(n=n.compare,n=n!==null?n:ei,n(c,a)&&t.ref===e.ref)return _n(t,e,i)}return e.flags|=1,t=Cn(o,a),t.ref=e.ref,t.return=e,e.child=t}function Rh(t,e,n,a,i){if(t!==null){var o=t.memoizedProps;if(ei(o,a)&&t.ref===e.ref)if(le=!1,e.pendingProps=a=o,pc(t,i))(t.flags&131072)!==0&&(le=!0);else return e.lanes=t.lanes,_n(t,e,i)}return uc(t,e,n,a,i)}function Nh(t,e,n,a){var i=a.children,o=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((e.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,t!==null){for(a=e.child=t.child,i=0;a!==null;)i=i|a.lanes|a.childLanes,a=a.sibling;a=i&~o}else a=0,e.child=null;return jh(t,e,o,n,a)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&vo(e,o!==null?o.cachePool:null),o!==null?Ud(e,o):Hr(),kd(e);else return a=e.lanes=536870912,jh(t,e,o!==null?o.baseLanes|n:n,n,a)}else o!==null?(vo(e,o.cachePool),Ud(e,o),In(),e.memoizedState=null):(t!==null&&vo(e,null),Hr(),In());return me(t,e,i,n),e.child}function mi(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function jh(t,e,n,a,i){var o=$r();return o=o===null?null:{parent:ne._currentValue,pool:o},e.memoizedState={baseLanes:n,cachePool:o},t!==null&&vo(e,null),Hr(),kd(e),t!==null&&rl(t,e,a,!0),e.childLanes=i,null}function No(t,e){return e=Ho({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Hh(t,e,n){return wa(e,t.child,null,n),t=No(e,e.pendingProps),t.flags|=2,ke(e),e.memoizedState=null,t}function rv(t,e,n){var a=e.pendingProps,i=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(Ct){if(a.mode==="hidden")return t=No(e,a),e.lanes=536870912,mi(null,t);if(kr(e),(t=Gt)?(t=Jp(t,Fe),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Qn!==null?{id:pn,overflow:gn}:null,retryLane:536870912,hydrationErrors:null},n=xd(t),n.return=e,e.child=n,pe=e,Gt=null)):t=null,t===null)throw Vn(e);return e.lanes=536870912,null}return No(e,a)}var o=t.memoizedState;if(o!==null){var c=o.dehydrated;if(kr(e),i)if(e.flags&256)e.flags&=-257,e=Hh(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(le||rl(t,e,n,!1),i=(n&t.childLanes)!==0,le||i){if(a=qt,a!==null&&(c=Mf(a,n),c!==0&&c!==o.retryLane))throw o.retryLane=c,Sa(t,c),$e(a,t,c),oc;Vo(),e=Hh(t,e,n)}else t=o.treeContext,Gt=Pe(c.nextSibling),pe=e,Ct=!0,Xn=null,Fe=!1,t!==null&&Td(e,t),e=No(e,a),e.flags|=4096;return e}return t=Cn(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function jo(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function uc(t,e,n,a,i){return za(e),n=Lr(t,e,n,a,void 0,i),a=Yr(),t!==null&&!le?(Gr(t,e,i),_n(t,e,i)):(Ct&&a&&Cr(e),e.flags|=1,me(t,e,n,i),e.child)}function Uh(t,e,n,a,i,o){return za(e),e.updateQueue=null,n=Ld(e,a,n,i),qd(t),a=Yr(),t!==null&&!le?(Gr(t,e,o),_n(t,e,o)):(Ct&&a&&Cr(e),e.flags|=1,me(t,e,n,o),e.child)}function kh(t,e,n,a,i){if(za(e),e.stateNode===null){var o=ll,c=n.contextType;typeof c=="object"&&c!==null&&(o=ge(c)),o=new n(a,o),e.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=lc,e.stateNode=o,o._reactInternals=e,o=e.stateNode,o.props=a,o.state=e.memoizedState,o.refs={},Br(e),c=n.contextType,o.context=typeof c=="object"&&c!==null?ge(c):ll,o.state=e.memoizedState,c=n.getDerivedStateFromProps,typeof c=="function"&&(ac(e,n,c,a),o.state=e.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&&lc.enqueueReplaceState(o,o.state,null),fi(e,a,o,i),si(),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){o=e.stateNode;var f=e.memoizedProps,m=$a(n,f);o.props=m;var _=o.context,$=n.contextType;c=ll,typeof $=="object"&&$!==null&&(c=ge($));var N=n.getDerivedStateFromProps;$=typeof N=="function"||typeof o.getSnapshotBeforeUpdate=="function",f=e.pendingProps!==f,$||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(f||_!==c)&&zh(e,o,a,c),Kn=!1;var w=e.memoizedState;o.state=w,fi(e,a,o,i),si(),_=e.memoizedState,f||w!==_||Kn?(typeof N=="function"&&(ac(e,n,N,a),_=e.memoizedState),(m=Kn||Eh(e,n,m,a,w,_,c))?($||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"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=_),o.props=a,o.state=_,o.context=c,a=m):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{o=e.stateNode,Rr(t,e),c=e.memoizedProps,$=$a(n,c),o.props=$,N=e.pendingProps,w=o.context,_=n.contextType,m=ll,typeof _=="object"&&_!==null&&(m=ge(_)),f=n.getDerivedStateFromProps,(_=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(c!==N||w!==m)&&zh(e,o,a,m),Kn=!1,w=e.memoizedState,o.state=w,fi(e,a,o,i),si();var O=e.memoizedState;c!==N||w!==O||Kn||t!==null&&t.dependencies!==null&&yo(t.dependencies)?(typeof f=="function"&&(ac(e,n,f,a),O=e.memoizedState),($=Kn||Eh(e,n,$,a,w,O,m)||t!==null&&t.dependencies!==null&&yo(t.dependencies))?(_||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"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||c===t.memoizedProps&&w===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||c===t.memoizedProps&&w===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=O),o.props=a,o.state=O,o.context=m,a=$):(typeof o.componentDidUpdate!="function"||c===t.memoizedProps&&w===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||c===t.memoizedProps&&w===t.memoizedState||(e.flags|=1024),a=!1)}return o=a,jo(t,e),a=(e.flags&128)!==0,o||a?(o=e.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:o.render(),e.flags|=1,t!==null&&a?(e.child=wa(e,t.child,null,i),e.child=wa(e,null,n,i)):me(t,e,n,i),e.memoizedState=o.state,t=e.child):t=_n(t,e,i),t}function qh(t,e,n,a){return Ta(),e.flags|=256,me(t,e,n,a),e.child}var rc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function cc(t){return{baseLanes:t,cachePool:wd()}}function sc(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Le),t}function Lh(t,e,n){var a=e.pendingProps,i=!1,o=(e.flags&128)!==0,c;if((c=o)||(c=t!==null&&t.memoizedState===null?!1:(Ft.current&2)!==0),c&&(i=!0,e.flags&=-129),c=(e.flags&32)!==0,e.flags&=-33,t===null){if(Ct){if(i?Fn(e):In(),(t=Gt)?(t=Jp(t,Fe),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Qn!==null?{id:pn,overflow:gn}:null,retryLane:536870912,hydrationErrors:null},n=xd(t),n.return=e,e.child=n,pe=e,Gt=null)):t=null,t===null)throw Vn(e);return Vc(t)?e.lanes=32:e.lanes=536870912,null}var f=a.children;return a=a.fallback,i?(In(),i=e.mode,f=Ho({mode:"hidden",children:f},i),a=Ca(a,i,n,null),f.return=e,a.return=e,f.sibling=a,e.child=f,a=e.child,a.memoizedState=cc(n),a.childLanes=sc(t,c,n),e.memoizedState=rc,mi(null,a)):(Fn(e),fc(e,f))}var m=t.memoizedState;if(m!==null&&(f=m.dehydrated,f!==null)){if(o)e.flags&256?(Fn(e),e.flags&=-257,e=dc(t,e,n)):e.memoizedState!==null?(In(),e.child=t.child,e.flags|=128,e=null):(In(),f=a.fallback,i=e.mode,a=Ho({mode:"visible",children:a.children},i),f=Ca(f,i,n,null),f.flags|=2,a.return=e,f.return=e,a.sibling=f,e.child=a,wa(e,t.child,null,n),a=e.child,a.memoizedState=cc(n),a.childLanes=sc(t,c,n),e.memoizedState=rc,e=mi(null,a));else if(Fn(e),Vc(f)){if(c=f.nextSibling&&f.nextSibling.dataset,c)var _=c.dgst;c=_,a=Error(r(419)),a.stack="",a.digest=c,li({value:a,source:null,stack:null}),e=dc(t,e,n)}else if(le||rl(t,e,n,!1),c=(n&t.childLanes)!==0,le||c){if(c=qt,c!==null&&(a=Mf(c,n),a!==0&&a!==m.retryLane))throw m.retryLane=a,Sa(t,a),$e(c,t,a),oc;Xc(f)||Vo(),e=dc(t,e,n)}else Xc(f)?(e.flags|=192,e.child=t.child,e=null):(t=m.treeContext,Gt=Pe(f.nextSibling),pe=e,Ct=!0,Xn=null,Fe=!1,t!==null&&Td(e,t),e=fc(e,a.children),e.flags|=4096);return e}return i?(In(),f=a.fallback,i=e.mode,m=t.child,_=m.sibling,a=Cn(m,{mode:"hidden",children:a.children}),a.subtreeFlags=m.subtreeFlags&65011712,_!==null?f=Cn(_,f):(f=Ca(f,i,n,null),f.flags|=2),f.return=e,a.return=e,a.sibling=f,e.child=a,mi(null,a),a=e.child,f=t.child.memoizedState,f===null?f=cc(n):(i=f.cachePool,i!==null?(m=ne._currentValue,i=i.parent!==m?{parent:m,pool:m}:i):i=wd(),f={baseLanes:f.baseLanes|n,cachePool:i}),a.memoizedState=f,a.childLanes=sc(t,c,n),e.memoizedState=rc,mi(t.child,a)):(Fn(e),n=t.child,t=n.sibling,n=Cn(n,{mode:"visible",children:a.children}),n.return=e,n.sibling=null,t!==null&&(c=e.deletions,c===null?(e.deletions=[t],e.flags|=16):c.push(t)),e.child=n,e.memoizedState=null,n)}function fc(t,e){return e=Ho({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Ho(t,e){return t=He(22,t,null,e),t.lanes=0,t}function dc(t,e,n){return wa(e,t.child,null,n),t=fc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Yh(t,e,n){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),Mr(t.return,e,n)}function hc(t,e,n,a,i,o){var c=t.memoizedState;c===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:i,treeForkCount:o}:(c.isBackwards=e,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=n,c.tailMode=i,c.treeForkCount=o)}function Gh(t,e,n){var a=e.pendingProps,i=a.revealOrder,o=a.tail;a=a.children;var c=Ft.current,f=(c&2)!==0;if(f?(c=c&1|2,e.flags|=128):c&=1,W(Ft,c),me(t,e,a,n),a=Ct?ai:0,!f&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Yh(t,n,e);else if(t.tag===19)Yh(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(i){case"forwards":for(n=e.child,i=null;n!==null;)t=n.alternate,t!==null&&zo(t)===null&&(i=n),n=n.sibling;n=i,n===null?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),hc(e,!1,i,n,o,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&zo(t)===null){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}hc(e,!0,n,null,o,a);break;case"together":hc(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function _n(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),ea|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(rl(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,n=Cn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Cn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function pc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&yo(t)))}function cv(t,e,n){switch(e.tag){case 3:de(e,e.stateNode.containerInfo),Zn(e,ne,t.memoizedState.cache),Ta();break;case 27:case 5:bn(e);break;case 4:de(e,e.stateNode.containerInfo);break;case 10:Zn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,kr(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(Fn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?Lh(t,e,n):(Fn(e),t=_n(t,e,n),t!==null?t.sibling:null);Fn(e);break;case 19:var i=(t.flags&128)!==0;if(a=(n&e.childLanes)!==0,a||(rl(t,e,n,!1),a=(n&e.childLanes)!==0),i){if(a)return Gh(t,e,n);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),W(Ft,Ft.current),a)break;return null;case 22:return e.lanes=0,Nh(t,e,n,e.pendingProps);case 24:Zn(e,ne,t.memoizedState.cache)}return _n(t,e,n)}function Qh(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)le=!0;else{if(!pc(t,n)&&(e.flags&128)===0)return le=!1,cv(t,e,n);le=(t.flags&131072)!==0}else le=!1,Ct&&(e.flags&1048576)!==0&&Cd(e,ai,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=Ma(e.elementType),e.type=t,typeof t=="function")vr(t)?(a=$a(t,a),e.tag=1,e=kh(null,e,t,a,n)):(e.tag=0,e=uc(null,e,t,a,n));else{if(t!=null){var i=t.$$typeof;if(i===ut){e.tag=11,e=Dh(null,e,t,a,n);break t}else if(i===J){e.tag=14,e=Bh(null,e,t,a,n);break t}}throw e=te(t)||t,Error(r(306,e,""))}}return e;case 0:return uc(t,e,e.type,e.pendingProps,n);case 1:return a=e.type,i=$a(a,e.pendingProps),kh(t,e,a,i,n);case 3:t:{if(de(e,e.stateNode.containerInfo),t===null)throw Error(r(387));a=e.pendingProps;var o=e.memoizedState;i=o.element,Rr(t,e),fi(e,a,null,n);var c=e.memoizedState;if(a=c.cache,Zn(e,ne,a),a!==o.cache&&_r(e,[ne],n,!0),si(),a=c.element,o.isDehydrated)if(o={element:a,isDehydrated:!1,cache:c.cache},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){e=qh(t,e,a,n);break t}else if(a!==i){i=Ke(Error(r(424)),e),li(i),e=qh(t,e,a,n);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Gt=Pe(t.firstChild),pe=e,Ct=!0,Xn=null,Fe=!0,n=Nd(e,null,a,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ta(),a===i){e=_n(t,e,n);break t}me(t,e,a,n)}e=e.child}return e;case 26:return jo(t,e),t===null?(n=eg(e.type,null,e.pendingProps,null))?e.memoizedState=n:Ct||(n=e.type,t=e.pendingProps,a=Po(pt.current).createElement(n),a[he]=e,a[ze]=t,ye(a,n,t),ce(a),e.stateNode=a):e.memoizedState=eg(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return bn(e),t===null&&Ct&&(a=e.stateNode=Ip(e.type,e.pendingProps,pt.current),pe=e,Fe=!0,i=Gt,oa(e.type)?(Zc=i,Gt=Pe(a.firstChild)):Gt=i),me(t,e,e.pendingProps.children,n),jo(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Ct&&((i=a=Gt)&&(a=kv(a,e.type,e.pendingProps,Fe),a!==null?(e.stateNode=a,pe=e,Gt=Pe(a.firstChild),Fe=!1,i=!0):i=!1),i||Vn(e)),bn(e),i=e.type,o=e.pendingProps,c=t!==null?t.memoizedProps:null,a=o.children,Yc(i,o)?a=null:c!==null&&Yc(i,c)&&(e.flags|=32),e.memoizedState!==null&&(i=Lr(t,e,tv,null,null,n),$i._currentValue=i),jo(t,e),me(t,e,a,n),e.child;case 6:return t===null&&Ct&&((t=n=Gt)&&(n=qv(n,e.pendingProps,Fe),n!==null?(e.stateNode=n,pe=e,Gt=null,t=!0):t=!1),t||Vn(e)),null;case 13:return Lh(t,e,n);case 4:return de(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=wa(e,null,a,n):me(t,e,a,n),e.child;case 11:return Dh(t,e,e.type,e.pendingProps,n);case 7:return me(t,e,e.pendingProps,n),e.child;case 8:return me(t,e,e.pendingProps.children,n),e.child;case 12:return me(t,e,e.pendingProps.children,n),e.child;case 10:return a=e.pendingProps,Zn(e,e.type,a.value),me(t,e,a.children,n),e.child;case 9:return i=e.type._context,a=e.pendingProps.children,za(e),i=ge(i),a=a(i),e.flags|=1,me(t,e,a,n),e.child;case 14:return Bh(t,e,e.type,e.pendingProps,n);case 15:return Rh(t,e,e.type,e.pendingProps,n);case 19:return Gh(t,e,n);case 31:return rv(t,e,n);case 22:return Nh(t,e,n,e.pendingProps);case 24:return za(e),a=ge(ne),t===null?(i=$r(),i===null&&(i=qt,o=wr(),i.pooledCache=o,o.refCount++,o!==null&&(i.pooledCacheLanes|=n),i=o),e.memoizedState={parent:a,cache:i},Br(e),Zn(e,ne,i)):((t.lanes&n)!==0&&(Rr(t,e),fi(e,null,null,n),si()),i=t.memoizedState,o=e.memoizedState,i.parent!==a?(i={parent:a,cache:a},e.memoizedState=i,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=i),Zn(e,ne,a)):(a=o.cache,Zn(e,ne,a),a!==i.cache&&_r(e,[ne],n,!0))),me(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function wn(t){t.flags|=4}function gc(t,e,n,a,i){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(i&335544128)===i)if(t.stateNode.complete)t.flags|=8192;else if(yp())t.flags|=8192;else throw _a=So,Dr}else t.flags&=-16777217}function Xh(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!og(e))if(yp())t.flags|=8192;else throw _a=So,Dr}function Uo(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Ef():536870912,t.lanes|=e,xl|=e)}function yi(t,e){if(!Ct)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function Qt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,a=0;if(e)for(var i=t.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags&65011712,a|=i.flags&65011712,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags,a|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=a,t.childLanes=n,e}function sv(t,e,n){var a=e.pendingProps;switch(Tr(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qt(e),null;case 1:return Qt(e),null;case 3:return n=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),zn(ne),Kt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(ul(e)?wn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,zr())),Qt(e),null;case 26:var i=e.type,o=e.memoizedState;return t===null?(wn(e),o!==null?(Qt(e),Xh(e,o)):(Qt(e),gc(e,i,null,a,n))):o?o!==t.memoizedState?(wn(e),Qt(e),Xh(e,o)):(Qt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&wn(e),Qt(e),gc(e,i,t,a,n)),null;case 27:if(ga(e),n=pt.current,i=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&wn(e);else{if(!a){if(e.stateNode===null)throw Error(r(166));return Qt(e),null}t=F.current,ul(e)?Ed(e):(t=Ip(i,a,n),e.stateNode=t,wn(e))}return Qt(e),null;case 5:if(ga(e),i=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&wn(e);else{if(!a){if(e.stateNode===null)throw Error(r(166));return Qt(e),null}if(o=F.current,ul(e))Ed(e);else{var c=Po(pt.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[he]=e,o[ze]=a;t:for(c=e.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===e)break t;for(;c.sibling===null;){if(c.return===null||c.return===e)break t;c=c.return}c.sibling.return=c.return,c=c.sibling}e.stateNode=o;t:switch(ye(o,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&wn(e)}}return Qt(e),gc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&wn(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(r(166));if(t=pt.current,ul(e)){if(t=e.stateNode,n=e.memoizedProps,a=null,i=pe,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}t[he]=e,t=!!(t.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Lp(t.nodeValue,n)),t||Vn(e,!0)}else t=Po(t).createTextNode(a),t[he]=e,e.stateNode=t}return Qt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(a=ul(e),n!==null){if(t===null){if(!a)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[he]=e}else Ta(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Qt(e),t=!1}else n=zr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(ke(e),e):(ke(e),null);if((e.flags&128)!==0)throw Error(r(558))}return Qt(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(i=ul(e),a!==null&&a.dehydrated!==null){if(t===null){if(!i)throw Error(r(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));i[he]=e}else Ta(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Qt(e),i=!1}else i=zr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),i=!0;if(!i)return e.flags&256?(ke(e),e):(ke(e),null)}return ke(e),(e.flags&128)!==0?(e.lanes=n,e):(n=a!==null,t=t!==null&&t.memoizedState!==null,n&&(a=e.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!==t&&n&&(e.child.flags|=8192),Uo(e,e.updateQueue),Qt(e),null);case 4:return Kt(),t===null&&Hc(e.stateNode.containerInfo),Qt(e),null;case 10:return zn(e.type),Qt(e),null;case 19:if(U(Ft),a=e.memoizedState,a===null)return Qt(e),null;if(i=(e.flags&128)!==0,o=a.rendering,o===null)if(i)yi(a,!1);else{if(Wt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(o=zo(t),o!==null){for(e.flags|=128,yi(a,!1),t=o.updateQueue,e.updateQueue=t,Uo(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)vd(n,t),n=n.sibling;return W(Ft,Ft.current&1|2),Ct&&Tn(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&Be()>Go&&(e.flags|=128,i=!0,yi(a,!1),e.lanes=4194304)}else{if(!i)if(t=zo(o),t!==null){if(e.flags|=128,i=!0,t=t.updateQueue,e.updateQueue=t,Uo(e,t),yi(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Ct)return Qt(e),null}else 2*Be()-a.renderingStartTime>Go&&n!==536870912&&(e.flags|=128,i=!0,yi(a,!1),e.lanes=4194304);a.isBackwards?(o.sibling=e.child,e.child=o):(t=a.last,t!==null?t.sibling=o:e.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Be(),t.sibling=null,n=Ft.current,W(Ft,i?n&1|2:n&1),Ct&&Tn(e,a.treeForkCount),t):(Qt(e),null);case 22:case 23:return ke(e),Ur(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(n&536870912)!==0&&(e.flags&128)===0&&(Qt(e),e.subtreeFlags&6&&(e.flags|=8192)):Qt(e),n=e.updateQueue,n!==null&&Uo(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==n&&(e.flags|=2048),t!==null&&U(Aa),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),zn(ne),Qt(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function fv(t,e){switch(Tr(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return zn(ne),Kt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return ga(e),null;case 31:if(e.memoizedState!==null){if(ke(e),e.alternate===null)throw Error(r(340));Ta()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(ke(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));Ta()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return U(Ft),null;case 4:return Kt(),null;case 10:return zn(e.type),null;case 22:case 23:return ke(e),Ur(),t!==null&&U(Aa),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return zn(ne),null;case 25:return null;default:return null}}function Vh(t,e){switch(Tr(e),e.tag){case 3:zn(ne),Kt();break;case 26:case 27:case 5:ga(e);break;case 4:Kt();break;case 31:e.memoizedState!==null&&ke(e);break;case 13:ke(e);break;case 19:U(Ft);break;case 10:zn(e.type);break;case 22:case 23:ke(e),Ur(),t!==null&&U(Aa);break;case 24:zn(ne)}}function bi(t,e){try{var n=e.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&t)===t){a=void 0;var o=n.create,c=n.inst;a=o(),c.destroy=a}n=n.next}while(n!==i)}}catch(f){Nt(e,e.return,f)}}function Pn(t,e,n){try{var a=e.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var o=i.next;a=o;do{if((a.tag&t)===t){var c=a.inst,f=c.destroy;if(f!==void 0){c.destroy=void 0,i=e;var m=n,_=f;try{_()}catch($){Nt(i,m,$)}}}a=a.next}while(a!==o)}}catch($){Nt(e,e.return,$)}}function Zh(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Hd(e,n)}catch(a){Nt(t,t.return,a)}}}function Kh(t,e,n){n.props=$a(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(a){Nt(t,e,a)}}function vi(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof n=="function"?t.refCleanup=n(a):n.current=a}}catch(i){Nt(t,e,i)}}function mn(t,e){var n=t.ref,a=t.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(i){Nt(t,e,i)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){Nt(t,e,i)}else n.current=null}function Jh(t){var e=t.type,n=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break t;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(i){Nt(t,t.return,i)}}function mc(t,e,n){try{var a=t.stateNode;Bv(a,t.type,n,e),a[ze]=e}catch(i){Nt(t,t.return,i)}}function Wh(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&oa(t.type)||t.tag===4}function yc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Wh(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&oa(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function bc(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=xn));else if(a!==4&&(a===27&&oa(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(bc(t,e,n),t=t.sibling;t!==null;)bc(t,e,n),t=t.sibling}function ko(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(a!==4&&(a===27&&oa(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(ko(t,e,n),t=t.sibling;t!==null;)ko(t,e,n),t=t.sibling}function Fh(t){var e=t.stateNode,n=t.memoizedProps;try{for(var a=t.type,i=e.attributes;i.length;)e.removeAttributeNode(i[0]);ye(e,a,n),e[he]=t,e[ze]=n}catch(o){Nt(t,t.return,o)}}var On=!1,ie=!1,vc=!1,Ih=typeof WeakSet=="function"?WeakSet:Set,se=null;function dv(t,e){if(t=t.containerInfo,qc=ou,t=sd(t),dr(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.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 t}var c=0,f=-1,m=-1,_=0,$=0,N=t,w=null;e:for(;;){for(var O;N!==n||i!==0&&N.nodeType!==3||(f=c+i),N!==o||a!==0&&N.nodeType!==3||(m=c+a),N.nodeType===3&&(c+=N.nodeValue.length),(O=N.firstChild)!==null;)w=N,N=O;for(;;){if(N===t)break e;if(w===n&&++_===i&&(f=c),w===o&&++$===a&&(m=c),(O=N.nextSibling)!==null)break;N=w,w=N.parentNode}N=O}n=f===-1||m===-1?null:{start:f,end:m}}else n=null}n=n||{start:0,end:0}}else n=null;for(Lc={focusedElem:t,selectionRange:n},ou=!1,se=e;se!==null;)if(e=se,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,se=t;else for(;se!==null;){switch(e=se,o=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)i=t[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&o!==null){t=void 0,n=e,i=o.memoizedProps,o=o.memoizedState,a=n.stateNode;try{var I=$a(n.type,i);t=a.getSnapshotBeforeUpdate(I,o),a.__reactInternalSnapshotBeforeUpdate=t}catch(lt){Nt(n,n.return,lt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)Qc(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Qc(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,se=t;break}se=e.return}}function Ph(t,e,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Dn(t,n),a&4&&bi(5,n);break;case 1:if(Dn(t,n),a&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(c){Nt(n,n.return,c)}else{var i=$a(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(i,e,t.__reactInternalSnapshotBeforeUpdate)}catch(c){Nt(n,n.return,c)}}a&64&&Zh(n),a&512&&vi(n,n.return);break;case 3:if(Dn(t,n),a&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{Hd(t,e)}catch(c){Nt(n,n.return,c)}}break;case 27:e===null&&a&4&&Fh(n);case 26:case 5:Dn(t,n),e===null&&a&4&&Jh(n),a&512&&vi(n,n.return);break;case 12:Dn(t,n);break;case 31:Dn(t,n),a&4&&np(t,n);break;case 13:Dn(t,n),a&4&&ap(t,n),a&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=Sv.bind(null,n),Lv(t,n))));break;case 22:if(a=n.memoizedState!==null||On,!a){e=e!==null&&e.memoizedState!==null||ie,i=On;var o=ie;On=a,(ie=e)&&!o?Bn(t,n,(n.subtreeFlags&8772)!==0):Dn(t,n),On=i,ie=o}break;case 30:break;default:Dn(t,n)}}function tp(t){var e=t.alternate;e!==null&&(t.alternate=null,tp(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Ju(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Zt=null,Me=!1;function $n(t,e,n){for(n=n.child;n!==null;)ep(t,e,n),n=n.sibling}function ep(t,e,n){if(Re&&typeof Re.onCommitFiberUnmount=="function")try{Re.onCommitFiberUnmount(Gl,n)}catch{}switch(n.tag){case 26:ie||mn(n,e),$n(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ie||mn(n,e);var a=Zt,i=Me;oa(n.type)&&(Zt=n.stateNode,Me=!1),$n(t,e,n),_i(n.stateNode),Zt=a,Me=i;break;case 5:ie||mn(n,e);case 6:if(a=Zt,i=Me,Zt=null,$n(t,e,n),Zt=a,Me=i,Zt!==null)if(Me)try{(Zt.nodeType===9?Zt.body:Zt.nodeName==="HTML"?Zt.ownerDocument.body:Zt).removeChild(n.stateNode)}catch(o){Nt(n,e,o)}else try{Zt.removeChild(n.stateNode)}catch(o){Nt(n,e,o)}break;case 18:Zt!==null&&(Me?(t=Zt,Zp(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),_l(t)):Zp(Zt,n.stateNode));break;case 4:a=Zt,i=Me,Zt=n.stateNode.containerInfo,Me=!0,$n(t,e,n),Zt=a,Me=i;break;case 0:case 11:case 14:case 15:Pn(2,n,e),ie||Pn(4,n,e),$n(t,e,n);break;case 1:ie||(mn(n,e),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Kh(n,e,a)),$n(t,e,n);break;case 21:$n(t,e,n);break;case 22:ie=(a=ie)||n.memoizedState!==null,$n(t,e,n),ie=a;break;default:$n(t,e,n)}}function np(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{_l(t)}catch(n){Nt(e,e.return,n)}}}function ap(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{_l(t)}catch(n){Nt(e,e.return,n)}}function hv(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Ih),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Ih),e;default:throw Error(r(435,t.tag))}}function qo(t,e){var n=hv(t);e.forEach(function(a){if(!n.has(a)){n.add(a);var i=Cv.bind(null,t,a);a.then(i,i)}})}function _e(t,e){var n=e.deletions;if(n!==null)for(var a=0;a<n.length;a++){var i=n[a],o=t,c=e,f=c;t:for(;f!==null;){switch(f.tag){case 27:if(oa(f.type)){Zt=f.stateNode,Me=!1;break t}break;case 5:Zt=f.stateNode,Me=!1;break t;case 3:case 4:Zt=f.stateNode.containerInfo,Me=!0;break t}f=f.return}if(Zt===null)throw Error(r(160));ep(o,c,i),Zt=null,Me=!1,o=i.alternate,o!==null&&(o.return=null),i.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)lp(e,t),e=e.sibling}var on=null;function lp(t,e){var n=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:_e(e,t),we(t),a&4&&(Pn(3,t,t.return),bi(3,t),Pn(5,t,t.return));break;case 1:_e(e,t),we(t),a&512&&(ie||n===null||mn(n,n.return)),a&64&&On&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var i=on;if(_e(e,t),we(t),a&512&&(ie||n===null||mn(n,n.return)),a&4){var o=n!==null?n.memoizedState:null;if(a=t.memoizedState,n===null)if(a===null)if(t.stateNode===null){t:{a=t.type,n=t.memoizedProps,i=i.ownerDocument||i;e:switch(a){case"title":o=i.getElementsByTagName("title")[0],(!o||o[Vl]||o[he]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=i.createElement(a),i.head.insertBefore(o,i.querySelector("head > title"))),ye(o,a,n),o[he]=t,ce(o),a=o;break t;case"link":var c=lg("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 e}}o=i.createElement(a),ye(o,a,n),i.head.appendChild(o);break;case"meta":if(c=lg("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 e}}o=i.createElement(a),ye(o,a,n),i.head.appendChild(o);break;default:throw Error(r(468,a))}o[he]=t,ce(o),a=o}t.stateNode=a}else ig(i,t.type,t.stateNode);else t.stateNode=ag(i,a,t.memoizedProps);else o!==a?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,a===null?ig(i,t.type,t.stateNode):ag(i,a,t.memoizedProps)):a===null&&t.stateNode!==null&&mc(t,t.memoizedProps,n.memoizedProps)}break;case 27:_e(e,t),we(t),a&512&&(ie||n===null||mn(n,n.return)),n!==null&&a&4&&mc(t,t.memoizedProps,n.memoizedProps);break;case 5:if(_e(e,t),we(t),a&512&&(ie||n===null||mn(n,n.return)),t.flags&32){i=t.stateNode;try{Fa(i,"")}catch(I){Nt(t,t.return,I)}}a&4&&t.stateNode!=null&&(i=t.memoizedProps,mc(t,i,n!==null?n.memoizedProps:i)),a&1024&&(vc=!0);break;case 6:if(_e(e,t),we(t),a&4){if(t.stateNode===null)throw Error(r(162));a=t.memoizedProps,n=t.stateNode;try{n.nodeValue=a}catch(I){Nt(t,t.return,I)}}break;case 3:if(nu=null,i=on,on=tu(e.containerInfo),_e(e,t),on=i,we(t),a&4&&n!==null&&n.memoizedState.isDehydrated)try{_l(e.containerInfo)}catch(I){Nt(t,t.return,I)}vc&&(vc=!1,ip(t));break;case 4:a=on,on=tu(t.stateNode.containerInfo),_e(e,t),we(t),on=a;break;case 12:_e(e,t),we(t);break;case 31:_e(e,t),we(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,qo(t,a)));break;case 13:_e(e,t),we(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Yo=Be()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,qo(t,a)));break;case 22:i=t.memoizedState!==null;var m=n!==null&&n.memoizedState!==null,_=On,$=ie;if(On=_||i,ie=$||m,_e(e,t),ie=$,On=_,we(t),a&8192)t:for(e=t.stateNode,e._visibility=i?e._visibility&-2:e._visibility|1,i&&(n===null||m||On||ie||Da(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){m=n=e;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 N=m.memoizedProps.style,w=N!=null&&N.hasOwnProperty("display")?N.display:null;f.style.display=w==null||typeof w=="boolean"?"":(""+w).trim()}}catch(I){Nt(m,m.return,I)}}}else if(e.tag===6){if(n===null){m=e;try{m.stateNode.nodeValue=i?"":m.memoizedProps}catch(I){Nt(m,m.return,I)}}}else if(e.tag===18){if(n===null){m=e;try{var O=m.stateNode;i?Kp(O,!0):Kp(m.stateNode,!1)}catch(I){Nt(m,m.return,I)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}a&4&&(a=t.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,qo(t,n))));break;case 19:_e(e,t),we(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,qo(t,a)));break;case 30:break;case 21:break;default:_e(e,t),we(t)}}function we(t){var e=t.flags;if(e&2){try{for(var n,a=t.return;a!==null;){if(Wh(a)){n=a;break}a=a.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var i=n.stateNode,o=yc(t);ko(t,o,i);break;case 5:var c=n.stateNode;n.flags&32&&(Fa(c,""),n.flags&=-33);var f=yc(t);ko(t,f,c);break;case 3:case 4:var m=n.stateNode.containerInfo,_=yc(t);bc(t,_,m);break;default:throw Error(r(161))}}catch($){Nt(t,t.return,$)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function ip(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;ip(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Dn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Ph(t,e.alternate,e),e=e.sibling}function Da(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Pn(4,e,e.return),Da(e);break;case 1:mn(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Kh(e,e.return,n),Da(e);break;case 27:_i(e.stateNode);case 26:case 5:mn(e,e.return),Da(e);break;case 22:e.memoizedState===null&&Da(e);break;case 30:Da(e);break;default:Da(e)}t=t.sibling}}function Bn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,i=t,o=e,c=o.flags;switch(o.tag){case 0:case 11:case 15:Bn(i,o,n),bi(4,o);break;case 1:if(Bn(i,o,n),a=o,i=a.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(_){Nt(a,a.return,_)}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++)jd(m[i],f)}catch(_){Nt(a,a.return,_)}}n&&c&64&&Zh(o),vi(o,o.return);break;case 27:Fh(o);case 26:case 5:Bn(i,o,n),n&&a===null&&c&4&&Jh(o),vi(o,o.return);break;case 12:Bn(i,o,n);break;case 31:Bn(i,o,n),n&&c&4&&np(i,o);break;case 13:Bn(i,o,n),n&&c&4&&ap(i,o);break;case 22:o.memoizedState===null&&Bn(i,o,n),vi(o,o.return);break;case 30:break;default:Bn(i,o,n)}e=e.sibling}}function xc(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&ii(n))}function Sc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ii(t))}function un(t,e,n,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)op(t,e,n,a),e=e.sibling}function op(t,e,n,a){var i=e.flags;switch(e.tag){case 0:case 11:case 15:un(t,e,n,a),i&2048&&bi(9,e);break;case 1:un(t,e,n,a);break;case 3:un(t,e,n,a),i&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ii(t)));break;case 12:if(i&2048){un(t,e,n,a),t=e.stateNode;try{var o=e.memoizedProps,c=o.id,f=o.onPostCommit;typeof f=="function"&&f(c,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(m){Nt(e,e.return,m)}}else un(t,e,n,a);break;case 31:un(t,e,n,a);break;case 13:un(t,e,n,a);break;case 23:break;case 22:o=e.stateNode,c=e.alternate,e.memoizedState!==null?o._visibility&2?un(t,e,n,a):xi(t,e):o._visibility&2?un(t,e,n,a):(o._visibility|=2,yl(t,e,n,a,(e.subtreeFlags&10256)!==0||!1)),i&2048&&xc(c,e);break;case 24:un(t,e,n,a),i&2048&&Sc(e.alternate,e);break;default:un(t,e,n,a)}}function yl(t,e,n,a,i){for(i=i&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var o=t,c=e,f=n,m=a,_=c.flags;switch(c.tag){case 0:case 11:case 15:yl(o,c,f,m,i),bi(8,c);break;case 23:break;case 22:var $=c.stateNode;c.memoizedState!==null?$._visibility&2?yl(o,c,f,m,i):xi(o,c):($._visibility|=2,yl(o,c,f,m,i)),i&&_&2048&&xc(c.alternate,c);break;case 24:yl(o,c,f,m,i),i&&_&2048&&Sc(c.alternate,c);break;default:yl(o,c,f,m,i)}e=e.sibling}}function xi(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,a=e,i=a.flags;switch(a.tag){case 22:xi(n,a),i&2048&&xc(a.alternate,a);break;case 24:xi(n,a),i&2048&&Sc(a.alternate,a);break;default:xi(n,a)}e=e.sibling}}var Si=8192;function bl(t,e,n){if(t.subtreeFlags&Si)for(t=t.child;t!==null;)up(t,e,n),t=t.sibling}function up(t,e,n){switch(t.tag){case 26:bl(t,e,n),t.flags&Si&&t.memoizedState!==null&&Pv(n,on,t.memoizedState,t.memoizedProps);break;case 5:bl(t,e,n);break;case 3:case 4:var a=on;on=tu(t.stateNode.containerInfo),bl(t,e,n),on=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=Si,Si=16777216,bl(t,e,n),Si=a):bl(t,e,n));break;default:bl(t,e,n)}}function rp(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Ci(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var a=e[n];se=a,sp(a,t)}rp(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)cp(t),t=t.sibling}function cp(t){switch(t.tag){case 0:case 11:case 15:Ci(t),t.flags&2048&&Pn(9,t,t.return);break;case 3:Ci(t);break;case 12:Ci(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Lo(t)):Ci(t);break;default:Ci(t)}}function Lo(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var a=e[n];se=a,sp(a,t)}rp(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Pn(8,e,e.return),Lo(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Lo(e));break;default:Lo(e)}t=t.sibling}}function sp(t,e){for(;se!==null;){var n=se;switch(n.tag){case 0:case 11:case 15:Pn(8,n,e);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:ii(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,se=a;else t:for(n=t;se!==null;){a=se;var i=a.sibling,o=a.return;if(tp(a),a===n){se=null;break t}if(i!==null){i.return=o,se=i;break t}se=o}}}var pv={getCacheForType:function(t){var e=ge(ne),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return ge(ne).controller.signal}},gv=typeof WeakMap=="function"?WeakMap:Map,Ot=0,qt=null,yt=null,xt=0,Rt=0,qe=null,ta=!1,vl=!1,Cc=!1,Rn=0,Wt=0,ea=0,Ba=0,Tc=0,Le=0,xl=0,Ti=null,Oe=null,Ec=!1,Yo=0,fp=0,Go=1/0,Qo=null,na=null,oe=0,aa=null,Sl=null,Nn=0,zc=0,Ac=null,dp=null,Ei=0,Mc=null;function Ye(){return(Ot&2)!==0&&xt!==0?xt&-xt:D.T!==null?Bc():_f()}function hp(){if(Le===0)if((xt&536870912)===0||Ct){var t=Fi;Fi<<=1,(Fi&3932160)===0&&(Fi=262144),Le=t}else Le=536870912;return t=Ue.current,t!==null&&(t.flags|=32),Le}function $e(t,e,n){(t===qt&&(Rt===2||Rt===9)||t.cancelPendingCommit!==null)&&(Cl(t,0),la(t,xt,Le,!1)),Xl(t,n),((Ot&2)===0||t!==qt)&&(t===qt&&((Ot&2)===0&&(Ba|=n),Wt===4&&la(t,xt,Le,!1)),yn(t))}function pp(t,e,n){if((Ot&6)!==0)throw Error(r(327));var a=!n&&(e&127)===0&&(e&t.expiredLanes)===0||Ql(t,e),i=a?bv(t,e):wc(t,e,!0),o=a;do{if(i===0){vl&&!a&&la(t,e,0,!1);break}else{if(n=t.current.alternate,o&&!mv(n)){i=wc(t,e,!1),o=!1;continue}if(i===2){if(o=e,t.errorRecoveryDisabledLanes&o)var c=0;else c=t.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){e=c;t:{var f=t;i=Ti;var m=f.current.memoizedState.isDehydrated;if(m&&(Cl(f,c).flags|=256),c=wc(f,c,!1),c!==2){if(Cc&&!m){f.errorRecoveryDisabledLanes|=o,Ba|=o,i=4;break t}o=Oe,Oe=i,o!==null&&(Oe===null?Oe=o:Oe.push.apply(Oe,o))}i=c}if(o=!1,i!==2)continue}}if(i===1){Cl(t,0),la(t,e,0,!0);break}t:{switch(a=t,o=i,o){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:la(a,e,Le,!ta);break t;case 2:Oe=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(i=Yo+300-Be(),10<i)){if(la(a,e,Le,!ta),Pi(a,0,!0)!==0)break t;Nn=e,a.timeoutHandle=Xp(gp.bind(null,a,n,Oe,Qo,Ec,e,Le,Ba,xl,ta,o,"Throttled",-0,0),i);break t}gp(a,n,Oe,Qo,Ec,e,Le,Ba,xl,ta,o,null,-0,0)}}break}while(!0);yn(t)}function gp(t,e,n,a,i,o,c,f,m,_,$,N,w,O){if(t.timeoutHandle=-1,N=e.subtreeFlags,N&8192||(N&16785408)===16785408){N={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:xn},up(e,o,N);var I=(o&62914560)===o?Yo-Be():(o&4194048)===o?fp-Be():0;if(I=tx(N,I),I!==null){Nn=o,t.cancelPendingCommit=I(Tp.bind(null,t,e,o,n,a,i,c,f,m,$,N,null,w,O)),la(t,o,c,!_);return}}Tp(t,e,o,n,a,i,c,f,m)}function mv(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.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(!je(o(),i))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function la(t,e,n,a){e&=~Tc,e&=~Ba,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var i=e;0<i;){var o=31-Ne(i),c=1<<o;a[o]=-1,i&=~c}n!==0&&zf(t,n,e)}function Xo(){return(Ot&6)===0?(zi(0),!1):!0}function _c(){if(yt!==null){if(Rt===0)var t=yt.return;else t=yt,En=Ea=null,Qr(t),dl=null,ui=0,t=yt;for(;t!==null;)Vh(t.alternate,t),t=t.return;yt=null}}function Cl(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,jv(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),Nn=0,_c(),qt=t,yt=n=Cn(t.current,null),xt=e,Rt=0,qe=null,ta=!1,vl=Ql(t,e),Cc=!1,xl=Le=Tc=Ba=ea=Wt=0,Oe=Ti=null,Ec=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var i=31-Ne(a),o=1<<i;e|=t[i],a&=~o}return Rn=e,fo(),n}function mp(t,e){ft=null,D.H=gi,e===fl||e===xo?(e=Dd(),Rt=3):e===Dr?(e=Dd(),Rt=4):Rt=e===oc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,qe=e,yt===null&&(Wt=1,Ro(t,Ke(e,t.current)))}function yp(){var t=Ue.current;return t===null?!0:(xt&4194048)===xt?Ie===null:(xt&62914560)===xt||(xt&536870912)!==0?t===Ie:!1}function bp(){var t=D.H;return D.H=gi,t===null?gi:t}function vp(){var t=D.A;return D.A=pv,t}function Vo(){Wt=4,ta||(xt&4194048)!==xt&&Ue.current!==null||(vl=!0),(ea&134217727)===0&&(Ba&134217727)===0||qt===null||la(qt,xt,Le,!1)}function wc(t,e,n){var a=Ot;Ot|=2;var i=bp(),o=vp();(qt!==t||xt!==e)&&(Qo=null,Cl(t,e)),e=!1;var c=Wt;t:do try{if(Rt!==0&&yt!==null){var f=yt,m=qe;switch(Rt){case 8:_c(),c=6;break t;case 3:case 2:case 9:case 6:Ue.current===null&&(e=!0);var _=Rt;if(Rt=0,qe=null,Tl(t,f,m,_),n&&vl){c=0;break t}break;default:_=Rt,Rt=0,qe=null,Tl(t,f,m,_)}}yv(),c=Wt;break}catch($){mp(t,$)}while(!0);return e&&t.shellSuspendCounter++,En=Ea=null,Ot=a,D.H=i,D.A=o,yt===null&&(qt=null,xt=0,fo()),c}function yv(){for(;yt!==null;)xp(yt)}function bv(t,e){var n=Ot;Ot|=2;var a=bp(),i=vp();qt!==t||xt!==e?(Qo=null,Go=Be()+500,Cl(t,e)):vl=Ql(t,e);t:do try{if(Rt!==0&&yt!==null){e=yt;var o=qe;e:switch(Rt){case 1:Rt=0,qe=null,Tl(t,e,o,1);break;case 2:case 9:if(Od(o)){Rt=0,qe=null,Sp(e);break}e=function(){Rt!==2&&Rt!==9||qt!==t||(Rt=7),yn(t)},o.then(e,e);break t;case 3:Rt=7;break t;case 4:Rt=5;break t;case 7:Od(o)?(Rt=0,qe=null,Sp(e)):(Rt=0,qe=null,Tl(t,e,o,7));break;case 5:var c=null;switch(yt.tag){case 26:c=yt.memoizedState;case 5:case 27:var f=yt;if(c?og(c):f.stateNode.complete){Rt=0,qe=null;var m=f.sibling;if(m!==null)yt=m;else{var _=f.return;_!==null?(yt=_,Zo(_)):yt=null}break e}}Rt=0,qe=null,Tl(t,e,o,5);break;case 6:Rt=0,qe=null,Tl(t,e,o,6);break;case 8:_c(),Wt=6;break t;default:throw Error(r(462))}}vv();break}catch($){mp(t,$)}while(!0);return En=Ea=null,D.H=a,D.A=i,Ot=n,yt!==null?0:(qt=null,xt=0,fo(),Wt)}function vv(){for(;yt!==null&&!Yb();)xp(yt)}function xp(t){var e=Qh(t.alternate,t,Rn);t.memoizedProps=t.pendingProps,e===null?Zo(t):yt=e}function Sp(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Uh(n,e,e.pendingProps,e.type,void 0,xt);break;case 11:e=Uh(n,e,e.pendingProps,e.type.render,e.ref,xt);break;case 5:Qr(e);default:Vh(n,e),e=yt=vd(e,Rn),e=Qh(n,e,Rn)}t.memoizedProps=t.pendingProps,e===null?Zo(t):yt=e}function Tl(t,e,n,a){En=Ea=null,Qr(e),dl=null,ui=0;var i=e.return;try{if(uv(t,i,e,n,xt)){Wt=1,Ro(t,Ke(n,t.current)),yt=null;return}}catch(o){if(i!==null)throw yt=i,o;Wt=1,Ro(t,Ke(n,t.current)),yt=null;return}e.flags&32768?(Ct||a===1?t=!0:vl||(xt&536870912)!==0?t=!1:(ta=t=!0,(a===2||a===9||a===3||a===6)&&(a=Ue.current,a!==null&&a.tag===13&&(a.flags|=16384))),Cp(e,t)):Zo(e)}function Zo(t){var e=t;do{if((e.flags&32768)!==0){Cp(e,ta);return}t=e.return;var n=sv(e.alternate,e,Rn);if(n!==null){yt=n;return}if(e=e.sibling,e!==null){yt=e;return}yt=e=t}while(e!==null);Wt===0&&(Wt=5)}function Cp(t,e){do{var n=fv(t.alternate,t);if(n!==null){n.flags&=32767,yt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){yt=t;return}yt=t=n}while(t!==null);Wt=6,yt=null}function Tp(t,e,n,a,i,o,c,f,m){t.cancelPendingCommit=null;do Ko();while(oe!==0);if((Ot&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(o=e.lanes|e.childLanes,o|=yr,Ib(t,n,o,c,f,m),t===qt&&(yt=qt=null,xt=0),Sl=e,aa=t,Nn=n,zc=o,Ac=i,dp=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Tv(Ji,function(){return _p(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=D.T,D.T=null,i=K.p,K.p=2,c=Ot,Ot|=4;try{dv(t,e,n)}finally{Ot=c,K.p=i,D.T=a}}oe=1,Ep(),zp(),Ap()}}function Ep(){if(oe===1){oe=0;var t=aa,e=Sl,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=D.T,D.T=null;var a=K.p;K.p=2;var i=Ot;Ot|=4;try{lp(e,t);var o=Lc,c=sd(t.containerInfo),f=o.focusedElem,m=o.selectionRange;if(c!==f&&f&&f.ownerDocument&&cd(f.ownerDocument.documentElement,f)){if(m!==null&&dr(f)){var _=m.start,$=m.end;if($===void 0&&($=_),"selectionStart"in f)f.selectionStart=_,f.selectionEnd=Math.min($,f.value.length);else{var N=f.ownerDocument||document,w=N&&N.defaultView||window;if(w.getSelection){var O=w.getSelection(),I=f.textContent.length,lt=Math.min(m.start,I),kt=m.end===void 0?lt:Math.min(m.end,I);!O.extend&<>kt&&(c=kt,kt=lt,lt=c);var E=rd(f,lt),b=rd(f,kt);if(E&&b&&(O.rangeCount!==1||O.anchorNode!==E.node||O.anchorOffset!==E.offset||O.focusNode!==b.node||O.focusOffset!==b.offset)){var M=N.createRange();M.setStart(E.node,E.offset),O.removeAllRanges(),lt>kt?(O.addRange(M),O.extend(b.node,b.offset)):(M.setEnd(b.node,b.offset),O.addRange(M))}}}}for(N=[],O=f;O=O.parentNode;)O.nodeType===1&&N.push({element:O,left:O.scrollLeft,top:O.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<N.length;f++){var B=N[f];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}ou=!!qc,Lc=qc=null}finally{Ot=i,K.p=a,D.T=n}}t.current=e,oe=2}}function zp(){if(oe===2){oe=0;var t=aa,e=Sl,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=D.T,D.T=null;var a=K.p;K.p=2;var i=Ot;Ot|=4;try{Ph(t,e.alternate,e)}finally{Ot=i,K.p=a,D.T=n}}oe=3}}function Ap(){if(oe===4||oe===3){oe=0,Gb();var t=aa,e=Sl,n=Nn,a=dp;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?oe=5:(oe=0,Sl=aa=null,Mp(t,t.pendingLanes));var i=t.pendingLanes;if(i===0&&(na=null),Zu(n),e=e.stateNode,Re&&typeof Re.onCommitFiberRoot=="function")try{Re.onCommitFiberRoot(Gl,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=D.T,i=K.p,K.p=2,D.T=null;try{for(var o=t.onRecoverableError,c=0;c<a.length;c++){var f=a[c];o(f.value,{componentStack:f.stack})}}finally{D.T=e,K.p=i}}(Nn&3)!==0&&Ko(),yn(t),i=t.pendingLanes,(n&261930)!==0&&(i&42)!==0?t===Mc?Ei++:(Ei=0,Mc=t):Ei=0,zi(0)}}function Mp(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,ii(e)))}function Ko(){return Ep(),zp(),Ap(),_p()}function _p(){if(oe!==5)return!1;var t=aa,e=zc;zc=0;var n=Zu(Nn),a=D.T,i=K.p;try{K.p=32>n?32:n,D.T=null,n=Ac,Ac=null;var o=aa,c=Nn;if(oe=0,Sl=aa=null,Nn=0,(Ot&6)!==0)throw Error(r(331));var f=Ot;if(Ot|=4,cp(o.current),op(o,o.current,c,n),Ot=f,zi(0,!1),Re&&typeof Re.onPostCommitFiberRoot=="function")try{Re.onPostCommitFiberRoot(Gl,o)}catch{}return!0}finally{K.p=i,D.T=a,Mp(t,e)}}function wp(t,e,n){e=Ke(n,e),e=ic(t.stateNode,e,2),t=Wn(t,e,2),t!==null&&(Xl(t,2),yn(t))}function Nt(t,e,n){if(t.tag===3)wp(t,t,n);else for(;e!==null;){if(e.tag===3){wp(e,t,n);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(na===null||!na.has(a))){t=Ke(n,t),n=Oh(2),a=Wn(e,n,2),a!==null&&($h(n,a,e,t),Xl(a,2),yn(a));break}}e=e.return}}function Oc(t,e,n){var a=t.pingCache;if(a===null){a=t.pingCache=new gv;var i=new Set;a.set(e,i)}else i=a.get(e),i===void 0&&(i=new Set,a.set(e,i));i.has(n)||(Cc=!0,i.add(n),t=xv.bind(null,t,e,n),e.then(t,t))}function xv(t,e,n){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,qt===t&&(xt&n)===n&&(Wt===4||Wt===3&&(xt&62914560)===xt&&300>Be()-Yo?(Ot&2)===0&&Cl(t,0):Tc|=n,xl===xt&&(xl=0)),yn(t)}function Op(t,e){e===0&&(e=Ef()),t=Sa(t,e),t!==null&&(Xl(t,e),yn(t))}function Sv(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Op(t,n)}function Cv(t,e){var n=0;switch(t.tag){case 31:case 13:var a=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(e),Op(t,n)}function Tv(t,e){return ee(t,e)}var Jo=null,El=null,$c=!1,Wo=!1,Dc=!1,ia=0;function yn(t){t!==El&&t.next===null&&(El===null?Jo=El=t:El=El.next=t),Wo=!0,$c||($c=!0,zv())}function zi(t,e){if(!Dc&&Wo){Dc=!0;do for(var n=!1,a=Jo;a!==null;){if(t!==0){var i=a.pendingLanes;if(i===0)var o=0;else{var c=a.suspendedLanes,f=a.pingedLanes;o=(1<<31-Ne(42|t)+1)-1,o&=i&~(c&~f),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,Rp(a,o))}else o=xt,o=Pi(a,a===qt?o:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(o&3)===0||Ql(a,o)||(n=!0,Rp(a,o));a=a.next}while(n);Dc=!1}}function Ev(){$p()}function $p(){Wo=$c=!1;var t=0;ia!==0&&Nv()&&(t=ia);for(var e=Be(),n=null,a=Jo;a!==null;){var i=a.next,o=Dp(a,e);o===0?(a.next=null,n===null?Jo=i:n.next=i,i===null&&(El=n)):(n=a,(t!==0||(o&3)!==0)&&(Wo=!0)),a=i}oe!==0&&oe!==5||zi(t),ia!==0&&(ia=0)}function Dp(t,e){for(var n=t.suspendedLanes,a=t.pingedLanes,i=t.expirationTimes,o=t.pendingLanes&-62914561;0<o;){var c=31-Ne(o),f=1<<c,m=i[c];m===-1?((f&n)===0||(f&a)!==0)&&(i[c]=Fb(f,e)):m<=e&&(t.expiredLanes|=f),o&=~f}if(e=qt,n=xt,n=Pi(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,n===0||t===e&&(Rt===2||Rt===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&an(a),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Ql(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(a!==null&&an(a),Zu(n)){case 2:case 8:n=Cf;break;case 32:n=Ji;break;case 268435456:n=Tf;break;default:n=Ji}return a=Bp.bind(null,t),n=ee(n,a),t.callbackPriority=e,t.callbackNode=n,e}return a!==null&&a!==null&&an(a),t.callbackPriority=2,t.callbackNode=null,2}function Bp(t,e){if(oe!==0&&oe!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Ko()&&t.callbackNode!==n)return null;var a=xt;return a=Pi(t,t===qt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(pp(t,a,e),Dp(t,Be()),t.callbackNode!=null&&t.callbackNode===n?Bp.bind(null,t):null)}function Rp(t,e){if(Ko())return null;pp(t,e,!0)}function zv(){Hv(function(){(Ot&6)!==0?ee(Sf,Ev):$p()})}function Bc(){if(ia===0){var t=cl;t===0&&(t=Wi,Wi<<=1,(Wi&261888)===0&&(Wi=256)),ia=t}return ia}function Np(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:ao(""+t)}function jp(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function Av(t,e,n,a,i){if(e==="submit"&&n&&n.stateNode===i){var o=Np((i[ze]||null).action),c=a.submitter;c&&(e=(e=c[ze]||null)?Np(e.formAction):c.getAttribute("formAction"),e!==null&&(o=e,c=null));var f=new uo("action","action",null,a,i);t.push({event:f,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(ia!==0){var m=c?jp(i,c):new FormData(i);Pr(n,{pending:!0,data:m,method:i.method,action:o},null,m)}}else typeof o=="function"&&(f.preventDefault(),m=c?jp(i,c):new FormData(i),Pr(n,{pending:!0,data:m,method:i.method,action:o},o,m))},currentTarget:i}]})}}for(var Rc=0;Rc<mr.length;Rc++){var Nc=mr[Rc],Mv=Nc.toLowerCase(),_v=Nc[0].toUpperCase()+Nc.slice(1);ln(Mv,"on"+_v)}ln(hd,"onAnimationEnd"),ln(pd,"onAnimationIteration"),ln(gd,"onAnimationStart"),ln("dblclick","onDoubleClick"),ln("focusin","onFocus"),ln("focusout","onBlur"),ln(Q1,"onTransitionRun"),ln(X1,"onTransitionStart"),ln(V1,"onTransitionCancel"),ln(md,"onTransitionEnd"),Ja("onMouseEnter",["mouseout","mouseover"]),Ja("onMouseLeave",["mouseout","mouseover"]),Ja("onPointerEnter",["pointerout","pointerover"]),Ja("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 Ai="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(" "),wv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ai));function Hp(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var a=t[n],i=a.event;a=a.listeners;t:{var o=void 0;if(e)for(var c=a.length-1;0<=c;c--){var f=a[c],m=f.instance,_=f.currentTarget;if(f=f.listener,m!==o&&i.isPropagationStopped())break t;o=f,i.currentTarget=_;try{o(i)}catch($){so($)}i.currentTarget=null,o=m}else for(c=0;c<a.length;c++){if(f=a[c],m=f.instance,_=f.currentTarget,f=f.listener,m!==o&&i.isPropagationStopped())break t;o=f,i.currentTarget=_;try{o(i)}catch($){so($)}i.currentTarget=null,o=m}}}}function bt(t,e){var n=e[Ku];n===void 0&&(n=e[Ku]=new Set);var a=t+"__bubble";n.has(a)||(Up(e,t,2,!1),n.add(a))}function jc(t,e,n){var a=0;e&&(a|=4),Up(n,t,a,e)}var Fo="_reactListening"+Math.random().toString(36).slice(2);function Hc(t){if(!t[Fo]){t[Fo]=!0,$f.forEach(function(n){n!=="selectionchange"&&(wv.has(n)||jc(n,!1,t),jc(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Fo]||(e[Fo]=!0,jc("selectionchange",!1,e))}}function Up(t,e,n,a){switch(hg(e)){case 2:var i=ax;break;case 8:i=lx;break;default:i=Ic}n=i.bind(null,e,n,t),i=void 0,!ar||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(i=!0),a?i!==void 0?t.addEventListener(e,n,{capture:!0,passive:i}):t.addEventListener(e,n,!0):i!==void 0?t.addEventListener(e,n,{passive:i}):t.addEventListener(e,n,!1)}function Uc(t,e,n,a,i){var o=a;if((e&1)===0&&(e&2)===0&&a!==null)t: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=Va(f),c===null)return;if(m=c.tag,m===5||m===6||m===26||m===27){a=o=c;continue t}f=f.parentNode}}a=a.return}Gf(function(){var _=o,$=er(n),N=[];t:{var w=yd.get(t);if(w!==void 0){var O=uo,I=t;switch(t){case"keypress":if(io(n)===0)break t;case"keydown":case"keyup":O=C1;break;case"focusin":I="focus",O=ur;break;case"focusout":I="blur",O=ur;break;case"beforeblur":case"afterblur":O=ur;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":O=Vf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=s1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=z1;break;case hd:case pd:case gd:O=h1;break;case md:O=M1;break;case"scroll":case"scrollend":O=r1;break;case"wheel":O=w1;break;case"copy":case"cut":case"paste":O=g1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=Kf;break;case"toggle":case"beforetoggle":O=$1}var lt=(e&4)!==0,kt=!lt&&(t==="scroll"||t==="scrollend"),E=lt?w!==null?w+"Capture":null:w;lt=[];for(var b=_,M;b!==null;){var B=b;if(M=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||M===null||E===null||(B=Kl(b,E),B!=null&<.push(Mi(b,B,M))),kt)break;b=b.return}0<lt.length&&(w=new O(w,I,null,n,$),N.push({event:w,listeners:lt}))}}if((e&7)===0){t:{if(w=t==="mouseover"||t==="pointerover",O=t==="mouseout"||t==="pointerout",w&&n!==tr&&(I=n.relatedTarget||n.fromElement)&&(Va(I)||I[Xa]))break t;if((O||w)&&(w=$.window===$?$:(w=$.ownerDocument)?w.defaultView||w.parentWindow:window,O?(I=n.relatedTarget||n.toElement,O=_,I=I?Va(I):null,I!==null&&(kt=h(I),lt=I.tag,I!==kt||lt!==5&<!==27&<!==6)&&(I=null)):(O=null,I=_),O!==I)){if(lt=Vf,B="onMouseLeave",E="onMouseEnter",b="mouse",(t==="pointerout"||t==="pointerover")&&(lt=Kf,B="onPointerLeave",E="onPointerEnter",b="pointer"),kt=O==null?w:Zl(O),M=I==null?w:Zl(I),w=new lt(B,b+"leave",O,n,$),w.target=kt,w.relatedTarget=M,B=null,Va($)===_&&(lt=new lt(E,b+"enter",I,n,$),lt.target=M,lt.relatedTarget=kt,B=lt),kt=B,O&&I)e:{for(lt=Ov,E=O,b=I,M=0,B=E;B;B=lt(B))M++;B=0;for(var nt=b;nt;nt=lt(nt))B++;for(;0<M-B;)E=lt(E),M--;for(;0<B-M;)b=lt(b),B--;for(;M--;){if(E===b||b!==null&&E===b.alternate){lt=E;break e}E=lt(E),b=lt(b)}lt=null}else lt=null;O!==null&&kp(N,w,O,lt,!1),I!==null&&kt!==null&&kp(N,kt,I,lt,!0)}}t:{if(w=_?Zl(_):window,O=w.nodeName&&w.nodeName.toLowerCase(),O==="select"||O==="input"&&w.type==="file")var zt=nd;else if(td(w))if(ad)zt=L1;else{zt=k1;var tt=U1}else O=w.nodeName,!O||O.toLowerCase()!=="input"||w.type!=="checkbox"&&w.type!=="radio"?_&&Pu(_.elementType)&&(zt=nd):zt=q1;if(zt&&(zt=zt(t,_))){ed(N,zt,n,$);break t}tt&&tt(t,w,_),t==="focusout"&&_&&w.type==="number"&&_.memoizedProps.value!=null&&Iu(w,"number",w.value)}switch(tt=_?Zl(_):window,t){case"focusin":(td(tt)||tt.contentEditable==="true")&&(el=tt,hr=_,ni=null);break;case"focusout":ni=hr=el=null;break;case"mousedown":pr=!0;break;case"contextmenu":case"mouseup":case"dragend":pr=!1,fd(N,n,$);break;case"selectionchange":if(G1)break;case"keydown":case"keyup":fd(N,n,$)}var ht;if(cr)t:{switch(t){case"compositionstart":var St="onCompositionStart";break t;case"compositionend":St="onCompositionEnd";break t;case"compositionupdate":St="onCompositionUpdate";break t}St=void 0}else tl?If(t,n)&&(St="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(St="onCompositionStart");St&&(Jf&&n.locale!=="ko"&&(tl||St!=="onCompositionStart"?St==="onCompositionEnd"&&tl&&(ht=Qf()):(Gn=$,lr="value"in Gn?Gn.value:Gn.textContent,tl=!0)),tt=Io(_,St),0<tt.length&&(St=new Zf(St,t,null,n,$),N.push({event:St,listeners:tt}),ht?St.data=ht:(ht=Pf(n),ht!==null&&(St.data=ht)))),(ht=B1?R1(t,n):N1(t,n))&&(St=Io(_,"onBeforeInput"),0<St.length&&(tt=new Zf("onBeforeInput","beforeinput",null,n,$),N.push({event:tt,listeners:St}),tt.data=ht)),Av(N,t,_,n,$)}Hp(N,e)})}function Mi(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Io(t,e){for(var n=e+"Capture",a=[];t!==null;){var i=t,o=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||o===null||(i=Kl(t,n),i!=null&&a.unshift(Mi(t,i,o)),i=Kl(t,e),i!=null&&a.push(Mi(t,i,o))),t.tag===3)return a;t=t.return}return[]}function Ov(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function kp(t,e,n,a,i){for(var o=e._reactName,c=[];n!==null&&n!==a;){var f=n,m=f.alternate,_=f.stateNode;if(f=f.tag,m!==null&&m===a)break;f!==5&&f!==26&&f!==27||_===null||(m=_,i?(_=Kl(n,o),_!=null&&c.unshift(Mi(n,_,m))):i||(_=Kl(n,o),_!=null&&c.push(Mi(n,_,m)))),n=n.return}c.length!==0&&t.push({event:e,listeners:c})}var $v=/\r\n?/g,Dv=/\u0000|\uFFFD/g;function qp(t){return(typeof t=="string"?t:""+t).replace($v,`
|
|
9
|
-
`).replace(Dv,"")}function Lp(t,e){return e=qp(e),qp(t)===e}function Ut(t,e,n,a,i,o){switch(n){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||Fa(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&Fa(t,""+a);break;case"className":eo(t,"class",a);break;case"tabIndex":eo(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":eo(t,n,a);break;case"style":Lf(t,a,o);break;case"data":if(e!=="object"){eo(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=ao(""+a),t.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){t.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"?(e!=="input"&&Ut(t,e,"name",i.name,i,null),Ut(t,e,"formEncType",i.formEncType,i,null),Ut(t,e,"formMethod",i.formMethod,i,null),Ut(t,e,"formTarget",i.formTarget,i,null)):(Ut(t,e,"encType",i.encType,i,null),Ut(t,e,"method",i.method,i,null),Ut(t,e,"target",i.target,i,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=ao(""+a),t.setAttribute(n,a);break;case"onClick":a!=null&&(t.onclick=xn);break;case"onScroll":a!=null&&bt("scroll",t);break;case"onScrollEnd":a!=null&&bt("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(r(60));t.innerHTML=n}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.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"){t.removeAttribute("xlink:href");break}n=ao(""+a),t.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"?t.setAttribute(n,""+a):t.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"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":a===!0?t.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,a):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(n,a):t.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(n):t.setAttribute(n,a);break;case"popover":bt("beforetoggle",t),bt("toggle",t),to(t,"popover",a);break;case"xlinkActuate":vn(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":vn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":vn(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":vn(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":vn(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":vn(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":vn(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":vn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":vn(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":to(t,"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=o1.get(n)||n,to(t,n,a))}}function kc(t,e,n,a,i,o){switch(n){case"style":Lf(t,a,o);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(r(60));t.innerHTML=n}}break;case"children":typeof a=="string"?Fa(t,a):(typeof a=="number"||typeof a=="bigint")&&Fa(t,""+a);break;case"onScroll":a!=null&&bt("scroll",t);break;case"onScrollEnd":a!=null&&bt("scrollend",t);break;case"onClick":a!=null&&(t.onclick=xn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Df.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),e=n.slice(2,i?n.length-7:void 0),o=t[ze]||null,o=o!=null?o[n]:null,typeof o=="function"&&t.removeEventListener(e,o,i),typeof a=="function")){typeof o!="function"&&o!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,a,i);break t}n in t?t[n]=a:a===!0?t.setAttribute(n,""):to(t,n,a)}}}function ye(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":bt("error",t),bt("load",t);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(r(137,e));default:Ut(t,e,o,c,n,null)}}i&&Ut(t,e,"srcSet",n.srcSet,n,null),a&&Ut(t,e,"src",n.src,n,null);return;case"input":bt("invalid",t);var f=o=c=i=null,m=null,_=null;for(a in n)if(n.hasOwnProperty(a)){var $=n[a];if($!=null)switch(a){case"name":i=$;break;case"type":c=$;break;case"checked":m=$;break;case"defaultChecked":_=$;break;case"value":o=$;break;case"defaultValue":f=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(r(137,e));break;default:Ut(t,e,a,$,n,null)}}Hf(t,o,f,m,_,c,i,!1);return;case"select":bt("invalid",t),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:Ut(t,e,i,f,n,null)}e=o,n=c,t.multiple=!!a,e!=null?Wa(t,!!a,e,!1):n!=null&&Wa(t,!!a,n,!0);return;case"textarea":bt("invalid",t),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(r(91));break;default:Ut(t,e,c,f,n,null)}kf(t,a,i,o);return;case"option":for(m in n)n.hasOwnProperty(m)&&(a=n[m],a!=null)&&(m==="selected"?t.selected=a&&typeof a!="function"&&typeof a!="symbol":Ut(t,e,m,a,n,null));return;case"dialog":bt("beforetoggle",t),bt("toggle",t),bt("cancel",t),bt("close",t);break;case"iframe":case"object":bt("load",t);break;case"video":case"audio":for(a=0;a<Ai.length;a++)bt(Ai[a],t);break;case"image":bt("error",t),bt("load",t);break;case"details":bt("toggle",t);break;case"embed":case"source":case"link":bt("error",t),bt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(_ in n)if(n.hasOwnProperty(_)&&(a=n[_],a!=null))switch(_){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Ut(t,e,_,a,n,null)}return;default:if(Pu(e)){for($ in n)n.hasOwnProperty($)&&(a=n[$],a!==void 0&&kc(t,e,$,a,n,void 0));return}}for(f in n)n.hasOwnProperty(f)&&(a=n[f],a!=null&&Ut(t,e,f,a,n,null))}function Bv(t,e,n,a){switch(e){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,_=null,$=null;for(O in n){var N=n[O];if(n.hasOwnProperty(O)&&N!=null)switch(O){case"checked":break;case"value":break;case"defaultValue":m=N;default:a.hasOwnProperty(O)||Ut(t,e,O,null,a,N)}}for(var w in a){var O=a[w];if(N=n[w],a.hasOwnProperty(w)&&(O!=null||N!=null))switch(w){case"type":o=O;break;case"name":i=O;break;case"checked":_=O;break;case"defaultChecked":$=O;break;case"value":c=O;break;case"defaultValue":f=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(137,e));break;default:O!==N&&Ut(t,e,w,O,a,N)}}Fu(t,c,f,m,_,$,o,i);return;case"select":O=c=f=w=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)||Ut(t,e,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":w=o;break;case"defaultValue":f=o;break;case"multiple":c=o;default:o!==m&&Ut(t,e,i,o,a,m)}e=f,n=c,a=O,w!=null?Wa(t,!!n,w,!1):!!a!=!!n&&(e!=null?Wa(t,!!n,e,!0):Wa(t,!!n,n?[]:"",!1));return;case"textarea":O=w=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:Ut(t,e,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":w=i;break;case"defaultValue":O=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(r(91));break;default:i!==o&&Ut(t,e,c,i,a,o)}Uf(t,w,O);return;case"option":for(var I in n)w=n[I],n.hasOwnProperty(I)&&w!=null&&!a.hasOwnProperty(I)&&(I==="selected"?t.selected=!1:Ut(t,e,I,null,a,w));for(m in a)w=a[m],O=n[m],a.hasOwnProperty(m)&&w!==O&&(w!=null||O!=null)&&(m==="selected"?t.selected=w&&typeof w!="function"&&typeof w!="symbol":Ut(t,e,m,w,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 lt in n)w=n[lt],n.hasOwnProperty(lt)&&w!=null&&!a.hasOwnProperty(lt)&&Ut(t,e,lt,null,a,w);for(_ in a)if(w=a[_],O=n[_],a.hasOwnProperty(_)&&w!==O&&(w!=null||O!=null))switch(_){case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(r(137,e));break;default:Ut(t,e,_,w,a,O)}return;default:if(Pu(e)){for(var kt in n)w=n[kt],n.hasOwnProperty(kt)&&w!==void 0&&!a.hasOwnProperty(kt)&&kc(t,e,kt,void 0,a,w);for($ in a)w=a[$],O=n[$],!a.hasOwnProperty($)||w===O||w===void 0&&O===void 0||kc(t,e,$,w,a,O);return}}for(var E in n)w=n[E],n.hasOwnProperty(E)&&w!=null&&!a.hasOwnProperty(E)&&Ut(t,e,E,null,a,w);for(N in a)w=a[N],O=n[N],!a.hasOwnProperty(N)||w===O||w==null&&O==null||Ut(t,e,N,w,a,O)}function Yp(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Rv(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=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&&Yp(c)){for(c=0,f=i.responseEnd,a+=1;a<n.length;a++){var m=n[a],_=m.startTime;if(_>f)break;var $=m.transferSize,N=m.initiatorType;$&&Yp(N)&&(m=m.responseEnd,c+=$*(m<f?1:(f-_)/(m-_)))}if(--a,e+=8*(o+c)/(i.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var qc=null,Lc=null;function Po(t){return t.nodeType===9?t:t.ownerDocument}function Gp(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Qp(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Yc(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Gc=null;function Nv(){var t=window.event;return t&&t.type==="popstate"?t===Gc?!1:(Gc=t,!0):(Gc=null,!1)}var Xp=typeof setTimeout=="function"?setTimeout:void 0,jv=typeof clearTimeout=="function"?clearTimeout:void 0,Vp=typeof Promise=="function"?Promise:void 0,Hv=typeof queueMicrotask=="function"?queueMicrotask:typeof Vp<"u"?function(t){return Vp.resolve(null).then(t).catch(Uv)}:Xp;function Uv(t){setTimeout(function(){throw t})}function oa(t){return t==="head"}function Zp(t,e){var n=e,a=0;do{var i=n.nextSibling;if(t.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"||n==="/&"){if(a===0){t.removeChild(i),_l(e);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")_i(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,_i(n);for(var o=n.firstChild;o;){var c=o.nextSibling,f=o.nodeName;o[Vl]||f==="SCRIPT"||f==="STYLE"||f==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=c}}else n==="body"&&_i(t.ownerDocument.body);n=i}while(n);_l(e)}function Kp(t,e){var n=t;t=0;do{var a=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=a}while(n)}function Qc(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Qc(n),Ju(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function kv(t,e,n,a){for(;t.nodeType===1;){var i=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[Vl])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(o=t.getAttribute("rel"),o==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(o!==i.rel||t.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||t.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||t.getAttribute("title")!==(i.title==null?null:i.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(o=t.getAttribute("src"),(o!==(i.src==null?null:i.src)||t.getAttribute("type")!==(i.type==null?null:i.type)||t.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&o&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var o=i.name==null?null:""+i.name;if(i.type==="hidden"&&t.getAttribute("name")===o)return t}else return t;if(t=Pe(t.nextSibling),t===null)break}return null}function qv(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Pe(t.nextSibling),t===null))return null;return t}function Jp(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Pe(t.nextSibling),t===null))return null;return t}function Xc(t){return t.data==="$?"||t.data==="$~"}function Vc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Lv(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var a=function(){e(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function Pe(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Zc=null;function Wp(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Pe(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function Fp(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function Ip(t,e,n){switch(e=Po(n),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function _i(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Ju(t)}var tn=new Map,Pp=new Set;function tu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var jn=K.d;K.d={f:Yv,r:Gv,D:Qv,C:Xv,L:Vv,m:Zv,X:Jv,S:Kv,M:Wv};function Yv(){var t=jn.f(),e=Xo();return t||e}function Gv(t){var e=Za(t);e!==null&&e.tag===5&&e.type==="form"?mh(e):jn.r(t)}var zl=typeof document>"u"?null:document;function tg(t,e,n){var a=zl;if(a&&typeof e=="string"&&e){var i=Ve(e);i='link[rel="'+t+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),Pp.has(i)||(Pp.add(i),t={rel:t,crossOrigin:n,href:e},a.querySelector(i)===null&&(e=a.createElement("link"),ye(e,"link",t),ce(e),a.head.appendChild(e)))}}function Qv(t){jn.D(t),tg("dns-prefetch",t,null)}function Xv(t,e){jn.C(t,e),tg("preconnect",t,e)}function Vv(t,e,n){jn.L(t,e,n);var a=zl;if(a&&t&&e){var i='link[rel="preload"][as="'+Ve(e)+'"]';e==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+Ve(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+Ve(n.imageSizes)+'"]')):i+='[href="'+Ve(t)+'"]';var o=i;switch(e){case"style":o=Al(t);break;case"script":o=Ml(t)}tn.has(o)||(t=z({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),tn.set(o,t),a.querySelector(i)!==null||e==="style"&&a.querySelector(wi(o))||e==="script"&&a.querySelector(Oi(o))||(e=a.createElement("link"),ye(e,"link",t),ce(e),a.head.appendChild(e)))}}function Zv(t,e){jn.m(t,e);var n=zl;if(n&&t){var a=e&&typeof e.as=="string"?e.as:"script",i='link[rel="modulepreload"][as="'+Ve(a)+'"][href="'+Ve(t)+'"]',o=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Ml(t)}if(!tn.has(o)&&(t=z({rel:"modulepreload",href:t},e),tn.set(o,t),n.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Oi(o)))return}a=n.createElement("link"),ye(a,"link",t),ce(a),n.head.appendChild(a)}}}function Kv(t,e,n){jn.S(t,e,n);var a=zl;if(a&&t){var i=Ka(a).hoistableStyles,o=Al(t);e=e||"default";var c=i.get(o);if(!c){var f={loading:0,preload:null};if(c=a.querySelector(wi(o)))f.loading=5;else{t=z({rel:"stylesheet",href:t,"data-precedence":e},n),(n=tn.get(o))&&Kc(t,n);var m=c=a.createElement("link");ce(m),ye(m,"link",t),m._p=new Promise(function(_,$){m.onload=_,m.onerror=$}),m.addEventListener("load",function(){f.loading|=1}),m.addEventListener("error",function(){f.loading|=2}),f.loading|=4,eu(c,e,a)}c={type:"stylesheet",instance:c,count:1,state:f},i.set(o,c)}}}function Jv(t,e){jn.X(t,e);var n=zl;if(n&&t){var a=Ka(n).hoistableScripts,i=Ml(t),o=a.get(i);o||(o=n.querySelector(Oi(i)),o||(t=z({src:t,async:!0},e),(e=tn.get(i))&&Jc(t,e),o=n.createElement("script"),ce(o),ye(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(i,o))}}function Wv(t,e){jn.M(t,e);var n=zl;if(n&&t){var a=Ka(n).hoistableScripts,i=Ml(t),o=a.get(i);o||(o=n.querySelector(Oi(i)),o||(t=z({src:t,async:!0,type:"module"},e),(e=tn.get(i))&&Jc(t,e),o=n.createElement("script"),ce(o),ye(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(i,o))}}function eg(t,e,n,a){var i=(i=pt.current)?tu(i):null;if(!i)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=Al(n.href),n=Ka(i).hoistableStyles,a=n.get(e),a||(a={type:"style",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=Al(n.href);var o=Ka(i).hoistableStyles,c=o.get(t);if(c||(i=i.ownerDocument||i,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(t,c),(o=i.querySelector(wi(t)))&&!o._p&&(c.instance=o,c.state.loading=5),tn.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},tn.set(t,n),o||Fv(i,t,n,c.state))),e&&a===null)throw Error(r(528,""));return c}if(e&&a!==null)throw Error(r(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Ml(n),n=Ka(i).hoistableScripts,a=n.get(e),a||(a={type:"script",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function Al(t){return'href="'+Ve(t)+'"'}function wi(t){return'link[rel="stylesheet"]['+t+"]"}function ng(t){return z({},t,{"data-precedence":t.precedence,precedence:null})}function Fv(t,e,n,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),ye(e,"link",n),ce(e),t.head.appendChild(e))}function Ml(t){return'[src="'+Ve(t)+'"]'}function Oi(t){return"script[async]"+t}function ag(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+Ve(n.href)+'"]');if(a)return e.instance=a,ce(a),a;var i=z({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),ce(a),ye(a,"style",i),eu(a,n.precedence,t),e.instance=a;case"stylesheet":i=Al(n.href);var o=t.querySelector(wi(i));if(o)return e.state.loading|=4,e.instance=o,ce(o),o;a=ng(n),(i=tn.get(i))&&Kc(a,i),o=(t.ownerDocument||t).createElement("link"),ce(o);var c=o;return c._p=new Promise(function(f,m){c.onload=f,c.onerror=m}),ye(o,"link",a),e.state.loading|=4,eu(o,n.precedence,t),e.instance=o;case"script":return o=Ml(n.src),(i=t.querySelector(Oi(o)))?(e.instance=i,ce(i),i):(a=n,(i=tn.get(o))&&(a=z({},n),Jc(a,i)),t=t.ownerDocument||t,i=t.createElement("script"),ce(i),ye(i,"link",a),t.head.appendChild(i),e.instance=i);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,eu(a,n.precedence,t));return e.instance}function eu(t,e,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===e)o=f;else if(o!==i)break}o?o.parentNode.insertBefore(t,o.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function Kc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Jc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var nu=null;function lg(t,e,n){if(nu===null){var a=new Map,i=nu=new Map;i.set(n,a)}else i=nu,a=i.get(n),a||(a=new Map,i.set(n,a));if(a.has(t))return a;for(a.set(t,null),n=n.getElementsByTagName(t),i=0;i<n.length;i++){var o=n[i];if(!(o[Vl]||o[he]||t==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var c=o.getAttribute(e)||"";c=t+c;var f=a.get(c);f?f.push(o):a.set(c,[o])}}return a}function ig(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function Iv(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function og(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Pv(t,e,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=Al(a.href),o=e.querySelector(wi(i));if(o){e=o._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=au.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=o,ce(o);return}o=e.ownerDocument||e,a=ng(a),(i=tn.get(i))&&Kc(a,i),o=o.createElement("link"),ce(o);var c=o;c._p=new Promise(function(f,m){c.onload=f,c.onerror=m}),ye(o,"link",a),n.instance=o}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=au.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Wc=0;function tx(t,e){return t.stylesheets&&t.count===0&&iu(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var a=setTimeout(function(){if(t.stylesheets&&iu(t,t.stylesheets),t.unsuspend){var o=t.unsuspend;t.unsuspend=null,o()}},6e4+e);0<t.imgBytes&&Wc===0&&(Wc=62500*Rv());var i=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&iu(t,t.stylesheets),t.unsuspend)){var o=t.unsuspend;t.unsuspend=null,o()}},(t.imgBytes>Wc?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function au(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)iu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var lu=null;function iu(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,lu=new Map,e.forEach(ex,t),lu=null,au.call(t))}function ex(t,e){if(!(e.state.loading&4)){var n=lu.get(t);if(n)var a=n.get(null);else{n=new Map,lu.set(t,n);for(var i=t.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=e.instance,c=i.getAttribute("data-precedence"),o=n.get(c)||a,o===a&&n.set(null,i),n.set(c,i),this.count++,a=au.bind(this),i.addEventListener("load",a),i.addEventListener("error",a),o?o.parentNode.insertBefore(i,o.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(i,t.firstChild)),e.state.loading|=4}}var $i={$$typeof:V,Provider:null,Consumer:null,_currentValue:at,_currentValue2:at,_threadCount:0};function nx(t,e,n,a,i,o,c,f,m){this.tag=1,this.containerInfo=t,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=Xu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xu(0),this.hiddenUpdates=Xu(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 ug(t,e,n,a,i,o,c,f,m,_,$,N){return t=new nx(t,e,n,c,m,_,$,N,f),e=1,o===!0&&(e|=24),o=He(3,null,null,e),t.current=o,o.stateNode=t,e=wr(),e.refCount++,t.pooledCache=e,e.refCount++,o.memoizedState={element:a,isDehydrated:n,cache:e},Br(o),t}function rg(t){return t?(t=ll,t):ll}function cg(t,e,n,a,i,o){i=rg(i),a.context===null?a.context=i:a.pendingContext=i,a=Jn(e),a.payload={element:n},o=o===void 0?null:o,o!==null&&(a.callback=o),n=Wn(t,a,e),n!==null&&($e(n,t,e),ci(n,t,e))}function sg(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Fc(t,e){sg(t,e),(t=t.alternate)&&sg(t,e)}function fg(t){if(t.tag===13||t.tag===31){var e=Sa(t,67108864);e!==null&&$e(e,t,67108864),Fc(t,67108864)}}function dg(t){if(t.tag===13||t.tag===31){var e=Ye();e=Vu(e);var n=Sa(t,e);n!==null&&$e(n,t,e),Fc(t,e)}}var ou=!0;function ax(t,e,n,a){var i=D.T;D.T=null;var o=K.p;try{K.p=2,Ic(t,e,n,a)}finally{K.p=o,D.T=i}}function lx(t,e,n,a){var i=D.T;D.T=null;var o=K.p;try{K.p=8,Ic(t,e,n,a)}finally{K.p=o,D.T=i}}function Ic(t,e,n,a){if(ou){var i=Pc(a);if(i===null)Uc(t,e,a,uu,n),pg(t,a);else if(ox(i,t,e,n,a))a.stopPropagation();else if(pg(t,a),e&4&&-1<ix.indexOf(t)){for(;i!==null;){var o=Za(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-Ne(c);f.entanglements[1]|=m,c&=~m}yn(o),(Ot&6)===0&&(Go=Be()+500,zi(0))}}break;case 31:case 13:f=Sa(o,2),f!==null&&$e(f,o,2),Xo(),Fc(o,2)}if(o=Pc(a),o===null&&Uc(t,e,a,uu,n),o===i)break;i=o}i!==null&&a.stopPropagation()}else Uc(t,e,a,null,n)}}function Pc(t){return t=er(t),ts(t)}var uu=null;function ts(t){if(uu=null,t=Va(t),t!==null){var e=h(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=y(e),t!==null)return t;t=null}else if(n===31){if(t=T(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return uu=t,null}function hg(t){switch(t){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(Qb()){case Sf:return 2;case Cf:return 8;case Ji:case Xb:return 32;case Tf:return 268435456;default:return 32}default:return 32}}var es=!1,ua=null,ra=null,ca=null,Di=new Map,Bi=new Map,sa=[],ix="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 pg(t,e){switch(t){case"focusin":case"focusout":ua=null;break;case"dragenter":case"dragleave":ra=null;break;case"mouseover":case"mouseout":ca=null;break;case"pointerover":case"pointerout":Di.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bi.delete(e.pointerId)}}function Ri(t,e,n,a,i,o){return t===null||t.nativeEvent!==o?(t={blockedOn:e,domEventName:n,eventSystemFlags:a,nativeEvent:o,targetContainers:[i]},e!==null&&(e=Za(e),e!==null&&fg(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),t)}function ox(t,e,n,a,i){switch(e){case"focusin":return ua=Ri(ua,t,e,n,a,i),!0;case"dragenter":return ra=Ri(ra,t,e,n,a,i),!0;case"mouseover":return ca=Ri(ca,t,e,n,a,i),!0;case"pointerover":var o=i.pointerId;return Di.set(o,Ri(Di.get(o)||null,t,e,n,a,i)),!0;case"gotpointercapture":return o=i.pointerId,Bi.set(o,Ri(Bi.get(o)||null,t,e,n,a,i)),!0}return!1}function gg(t){var e=Va(t.target);if(e!==null){var n=h(e);if(n!==null){if(e=n.tag,e===13){if(e=y(n),e!==null){t.blockedOn=e,wf(t.priority,function(){dg(n)});return}}else if(e===31){if(e=T(n),e!==null){t.blockedOn=e,wf(t.priority,function(){dg(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function ru(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Pc(t.nativeEvent);if(n===null){n=t.nativeEvent;var a=new n.constructor(n.type,n);tr=a,n.target.dispatchEvent(a),tr=null}else return e=Za(n),e!==null&&fg(e),t.blockedOn=n,!1;e.shift()}return!0}function mg(t,e,n){ru(t)&&n.delete(e)}function ux(){es=!1,ua!==null&&ru(ua)&&(ua=null),ra!==null&&ru(ra)&&(ra=null),ca!==null&&ru(ca)&&(ca=null),Di.forEach(mg),Bi.forEach(mg)}function cu(t,e){t.blockedOn===e&&(t.blockedOn=null,es||(es=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,ux)))}var su=null;function yg(t){su!==t&&(su=t,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){su===t&&(su=null);for(var e=0;e<t.length;e+=3){var n=t[e],a=t[e+1],i=t[e+2];if(typeof a!="function"){if(ts(a||n)===null)continue;break}var o=Za(n);o!==null&&(t.splice(e,3),e-=3,Pr(o,{pending:!0,data:i,method:n.method,action:a},a,i))}}))}function _l(t){function e(m){return cu(m,t)}ua!==null&&cu(ua,t),ra!==null&&cu(ra,t),ca!==null&&cu(ca,t),Di.forEach(e),Bi.forEach(e);for(var n=0;n<sa.length;n++){var a=sa[n];a.blockedOn===t&&(a.blockedOn=null)}for(;0<sa.length&&(n=sa[0],n.blockedOn===null);)gg(n),n.blockedOn===null&&sa.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var i=n[a],o=n[a+1],c=i[ze]||null;if(typeof o=="function")c||yg(n);else if(c){var f=null;if(o&&o.hasAttribute("formAction")){if(i=o,c=o[ze]||null)f=c.formAction;else if(ts(i)!==null)continue}else f=c.action;typeof f=="function"?n[a+1]=f:(n.splice(a,3),a-=3),yg(n)}}}function bg(){function t(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(c){return i=c})},focusReset:"manual",scroll:"manual"})}function e(){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",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),i!==null&&(i(),i=null)}}}function ns(t){this._internalRoot=t}fu.prototype.render=ns.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var n=e.current,a=Ye();cg(n,a,t,e,null,null)},fu.prototype.unmount=ns.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;cg(t.current,2,null,t,null,null),Xo(),e[Xa]=null}};function fu(t){this._internalRoot=t}fu.prototype.unstable_scheduleHydration=function(t){if(t){var e=_f();t={blockedOn:null,target:t,priority:e};for(var n=0;n<sa.length&&e!==0&&e<sa[n].priority;n++);sa.splice(n,0,t),n===0&&gg(t)}};var vg=u.version;if(vg!=="19.2.3")throw Error(r(527,vg,"19.2.3"));K.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=g(e),t=t!==null?A(t):null,t=t===null?null:t.stateNode,t};var rx={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var du=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!du.isDisabled&&du.supportsFiber)try{Gl=du.inject(rx),Re=du}catch{}}return Dl.createRoot=function(t,e){if(!d(t))throw Error(r(299));var n=!1,a="",i=Ah,o=Mh,c=_h;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(i=e.onUncaughtError),e.onCaughtError!==void 0&&(o=e.onCaughtError),e.onRecoverableError!==void 0&&(c=e.onRecoverableError)),e=ug(t,1,!1,null,null,n,a,null,i,o,c,bg),t[Xa]=e.current,Hc(t),new ns(e)},Dl.hydrateRoot=function(t,e,n){if(!d(t))throw Error(r(299));var a=!1,i="",o=Ah,c=Mh,f=_h,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)),e=ug(t,1,!0,e,n??null,a,i,m,o,c,f,bg),e.context=rg(null),n=e.current,a=Ye(),a=Vu(a),i=Jn(a),i.callback=null,Wn(n,i,a),n=a,e.current.lanes=n,Xl(e,n),yn(e),t[Xa]=e.current,Hc(t),new fu(e)},Dl.version="19.2.3",Dl}var ds;function _g(){if(ds)return pu.exports;ds=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(u){console.error(u)}}return l(),pu.exports=Mg(),pu.exports}var hs=_g();function wg(l){if(l.sheet)return l.sheet;for(var u=0;u<document.styleSheets.length;u++)if(document.styleSheets[u].ownerNode===l)return document.styleSheets[u]}function Og(l){var u=document.createElement("style");return u.setAttribute("data-emotion",l.key),l.nonce!==void 0&&u.setAttribute("nonce",l.nonce),u.appendChild(document.createTextNode("")),u.setAttribute("data-s",""),u}var $g=(function(){function l(s){var r=this;this._insertTag=function(d){var h;r.tags.length===0?r.insertionPoint?h=r.insertionPoint.nextSibling:r.prepend?h=r.container.firstChild:h=r.before:h=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(d,h),r.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 u=l.prototype;return u.hydrate=function(r){r.forEach(this._insertTag)},u.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Og(this));var d=this.tags[this.tags.length-1];if(this.isSpeedy){var h=wg(d);try{h.insertRule(r,h.cssRules.length)}catch{}}else d.appendChild(document.createTextNode(r));this.ctr++},u.flush=function(){this.tags.forEach(function(r){var d;return(d=r.parentNode)==null?void 0:d.removeChild(r)}),this.tags=[],this.ctr=0},l})(),ve="-ms-",Ni="-moz-",Mt="-webkit-",ps="comm",xu="rule",Su="decl",Dg="@import",gs="@keyframes",Bg="@layer",Rg=Math.abs,ji=String.fromCharCode,Ng=Object.assign;function jg(l,u){return fe(l,0)^45?(((u<<2^fe(l,0))<<2^fe(l,1))<<2^fe(l,2))<<2^fe(l,3):0}function ms(l){return l.trim()}function Hg(l,u){return(l=u.exec(l))?l[0]:l}function _t(l,u,s){return l.replace(u,s)}function Cu(l,u){return l.indexOf(u)}function fe(l,u){return l.charCodeAt(u)|0}function Bl(l,u,s){return l.slice(u,s)}function rn(l){return l.length}function Tu(l){return l.length}function Hi(l,u){return u.push(l),l}function Ug(l,u){return l.map(u).join("")}var Ui=1,Ra=1,ys=0,Te=0,Pt=0,Na="";function ki(l,u,s,r,d,h,y){return{value:l,root:u,parent:s,type:r,props:d,children:h,line:Ui,column:Ra,length:y,return:""}}function Rl(l,u){return Ng(ki("",null,null,"",null,null,0),l,{length:-l.length},u)}function kg(){return Pt}function qg(){return Pt=Te>0?fe(Na,--Te):0,Ra--,Pt===10&&(Ra=1,Ui--),Pt}function De(){return Pt=Te<ys?fe(Na,Te++):0,Ra++,Pt===10&&(Ra=1,Ui++),Pt}function cn(){return fe(Na,Te)}function qi(){return Te}function Nl(l,u){return Bl(Na,l,u)}function jl(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 bs(l){return Ui=Ra=1,ys=rn(Na=l),Te=0,[]}function vs(l){return Na="",l}function Li(l){return ms(Nl(Te-1,Eu(l===91?l+2:l===40?l+1:l)))}function Lg(l){for(;(Pt=cn())&&Pt<33;)De();return jl(l)>2||jl(Pt)>3?"":" "}function Yg(l,u){for(;--u&&De()&&!(Pt<48||Pt>102||Pt>57&&Pt<65||Pt>70&&Pt<97););return Nl(l,qi()+(u<6&&cn()==32&&De()==32))}function Eu(l){for(;De();)switch(Pt){case l:return Te;case 34:case 39:l!==34&&l!==39&&Eu(Pt);break;case 40:l===41&&Eu(l);break;case 92:De();break}return Te}function Gg(l,u){for(;De()&&l+Pt!==57;)if(l+Pt===84&&cn()===47)break;return"/*"+Nl(u,Te-1)+"*"+ji(l===47?l:De())}function Qg(l){for(;!jl(cn());)De();return Nl(l,Te)}function Xg(l){return vs(Yi("",null,null,null,[""],l=bs(l),0,[0],l))}function Yi(l,u,s,r,d,h,y,T,S){for(var g=0,A=0,z=y,k=0,X=0,Q=0,Y=1,R=1,Z=1,P=0,V="",ut=d,H=h,ot=r,J=V;R;)switch(Q=P,P=De()){case 40:if(Q!=108&&fe(J,z-1)==58){Cu(J+=_t(Li(P),"&","&\f"),"&\f")!=-1&&(Z=-1);break}case 34:case 39:case 91:J+=Li(P);break;case 9:case 10:case 13:case 32:J+=Lg(Q);break;case 92:J+=Yg(qi()-1,7);continue;case 47:switch(cn()){case 42:case 47:Hi(Vg(Gg(De(),qi()),u,s),S);break;default:J+="/"}break;case 123*Y:T[g++]=rn(J)*Z;case 125*Y:case 59:case 0:switch(P){case 0:case 125:R=0;case 59+A:Z==-1&&(J=_t(J,/\f/g,"")),X>0&&rn(J)-z&&Hi(X>32?Ss(J+";",r,s,z-1):Ss(_t(J," ","")+";",r,s,z-2),S);break;case 59:J+=";";default:if(Hi(ot=xs(J,u,s,g,A,d,T,V,ut=[],H=[],z),h),P===123)if(A===0)Yi(J,u,ot,ot,ut,h,z,T,H);else switch(k===99&&fe(J,3)===110?100:k){case 100:case 108:case 109:case 115:Yi(l,ot,ot,r&&Hi(xs(l,ot,ot,0,0,d,T,V,d,ut=[],z),H),d,H,z,T,r?ut:H);break;default:Yi(J,ot,ot,ot,[""],H,0,T,H)}}g=A=X=0,Y=Z=1,V=J="",z=y;break;case 58:z=1+rn(J),X=Q;default:if(Y<1){if(P==123)--Y;else if(P==125&&Y++==0&&qg()==125)continue}switch(J+=ji(P),P*Y){case 38:Z=A>0?1:(J+="\f",-1);break;case 44:T[g++]=(rn(J)-1)*Z,Z=1;break;case 64:cn()===45&&(J+=Li(De())),k=cn(),A=z=rn(V=J+=Qg(qi())),P++;break;case 45:Q===45&&rn(J)==2&&(Y=0)}}return h}function xs(l,u,s,r,d,h,y,T,S,g,A){for(var z=d-1,k=d===0?h:[""],X=Tu(k),Q=0,Y=0,R=0;Q<r;++Q)for(var Z=0,P=Bl(l,z+1,z=Rg(Y=y[Q])),V=l;Z<X;++Z)(V=ms(Y>0?k[Z]+" "+P:_t(P,/&\f/g,k[Z])))&&(S[R++]=V);return ki(l,u,s,d===0?xu:T,S,g,A)}function Vg(l,u,s){return ki(l,u,s,ps,ji(kg()),Bl(l,2,-2),0)}function Ss(l,u,s,r){return ki(l,u,s,Su,Bl(l,0,r),Bl(l,r+1,-1),r)}function ja(l,u){for(var s="",r=Tu(l),d=0;d<r;d++)s+=u(l[d],d,l,u)||"";return s}function Zg(l,u,s,r){switch(l.type){case Bg:if(l.children.length)break;case Dg:case Su:return l.return=l.return||l.value;case ps:return"";case gs:return l.return=l.value+"{"+ja(l.children,r)+"}";case xu:l.value=l.props.join(",")}return rn(s=ja(l.children,r))?l.return=l.value+"{"+s+"}":""}function Kg(l){var u=Tu(l);return function(s,r,d,h){for(var y="",T=0;T<u;T++)y+=l[T](s,r,d,h)||"";return y}}function Jg(l){return function(u){u.root||(u=u.return)&&l(u)}}function Cs(l){var u=Object.create(null);return function(s){return u[s]===void 0&&(u[s]=l(s)),u[s]}}var Wg=function(u,s,r){for(var d=0,h=0;d=h,h=cn(),d===38&&h===12&&(s[r]=1),!jl(h);)De();return Nl(u,Te)},Fg=function(u,s){var r=-1,d=44;do switch(jl(d)){case 0:d===38&&cn()===12&&(s[r]=1),u[r]+=Wg(Te-1,s,r);break;case 2:u[r]+=Li(d);break;case 4:if(d===44){u[++r]=cn()===58?"&\f":"",s[r]=u[r].length;break}default:u[r]+=ji(d)}while(d=De());return u},Ig=function(u,s){return vs(Fg(bs(u),s))},Ts=new WeakMap,Pg=function(u){if(!(u.type!=="rule"||!u.parent||u.length<1)){for(var s=u.value,r=u.parent,d=u.column===r.column&&u.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(u.props.length===1&&s.charCodeAt(0)!==58&&!Ts.get(r))&&!d){Ts.set(u,!0);for(var h=[],y=Ig(s,h),T=r.props,S=0,g=0;S<y.length;S++)for(var A=0;A<T.length;A++,g++)u.props[g]=h[S]?y[S].replace(/&\f/g,T[A]):T[A]+" "+y[S]}}},tm=function(u){if(u.type==="decl"){var s=u.value;s.charCodeAt(0)===108&&s.charCodeAt(2)===98&&(u.return="",u.value="")}};function Es(l,u){switch(jg(l,u)){case 5103:return Mt+"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 Mt+l+l;case 5349:case 4246:case 4810:case 6968:case 2756:return Mt+l+Ni+l+ve+l+l;case 6828:case 4268:return Mt+l+ve+l+l;case 6165:return Mt+l+ve+"flex-"+l+l;case 5187:return Mt+l+_t(l,/(\w+).+(:[^]+)/,Mt+"box-$1$2"+ve+"flex-$1$2")+l;case 5443:return Mt+l+ve+"flex-item-"+_t(l,/flex-|-self/,"")+l;case 4675:return Mt+l+ve+"flex-line-pack"+_t(l,/align-content|flex-|-self/,"")+l;case 5548:return Mt+l+ve+_t(l,"shrink","negative")+l;case 5292:return Mt+l+ve+_t(l,"basis","preferred-size")+l;case 6060:return Mt+"box-"+_t(l,"-grow","")+Mt+l+ve+_t(l,"grow","positive")+l;case 4554:return Mt+_t(l,/([^-])(transform)/g,"$1"+Mt+"$2")+l;case 6187:return _t(_t(_t(l,/(zoom-|grab)/,Mt+"$1"),/(image-set)/,Mt+"$1"),l,"")+l;case 5495:case 3959:return _t(l,/(image-set\([^]*)/,Mt+"$1$`$1");case 4968:return _t(_t(l,/(.+:)(flex-)?(.*)/,Mt+"box-pack:$3"+ve+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Mt+l+l;case 4095:case 3583:case 4068:case 2532:return _t(l,/(.+)-inline(.+)/,Mt+"$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(rn(l)-1-u>6)switch(fe(l,u+1)){case 109:if(fe(l,u+4)!==45)break;case 102:return _t(l,/(.+:)(.+)-([^]+)/,"$1"+Mt+"$2-$3$1"+Ni+(fe(l,u+3)==108?"$3":"$2-$3"))+l;case 115:return~Cu(l,"stretch")?Es(_t(l,"stretch","fill-available"),u)+l:l}break;case 4949:if(fe(l,u+1)!==115)break;case 6444:switch(fe(l,rn(l)-3-(~Cu(l,"!important")&&10))){case 107:return _t(l,":",":"+Mt)+l;case 101:return _t(l,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Mt+(fe(l,14)===45?"inline-":"")+"box$3$1"+Mt+"$2$3$1"+ve+"$2box$3")+l}break;case 5936:switch(fe(l,u+11)){case 114:return Mt+l+ve+_t(l,/[svh]\w+-[tblr]{2}/,"tb")+l;case 108:return Mt+l+ve+_t(l,/[svh]\w+-[tblr]{2}/,"tb-rl")+l;case 45:return Mt+l+ve+_t(l,/[svh]\w+-[tblr]{2}/,"lr")+l}return Mt+l+ve+l+l}return l}var em=function(u,s,r,d){if(u.length>-1&&!u.return)switch(u.type){case Su:u.return=Es(u.value,u.length);break;case gs:return ja([Rl(u,{value:_t(u.value,"@","@"+Mt)})],d);case xu:if(u.length)return Ug(u.props,function(h){switch(Hg(h,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ja([Rl(u,{props:[_t(h,/:(read-\w+)/,":"+Ni+"$1")]})],d);case"::placeholder":return ja([Rl(u,{props:[_t(h,/:(plac\w+)/,":"+Mt+"input-$1")]}),Rl(u,{props:[_t(h,/:(plac\w+)/,":"+Ni+"$1")]}),Rl(u,{props:[_t(h,/:(plac\w+)/,ve+"input-$1")]})],d)}return""})}},nm=[em],zu=function(u){var s=u.key;if(s==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(Y){var R=Y.getAttribute("data-emotion");R.indexOf(" ")!==-1&&(document.head.appendChild(Y),Y.setAttribute("data-s",""))})}var d=u.stylisPlugins||nm,h={},y,T=[];y=u.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 S,g=[Pg,tm];{var A,z=[Zg,Jg(function(Y){A.insert(Y)})],k=Kg(g.concat(d,z)),X=function(R){return ja(Xg(R),k)};S=function(R,Z,P,V){A=P,X(R?R+"{"+Z.styles+"}":Z.styles),V&&(Q.inserted[Z.name]=!0)}}var Q={key:s,sheet:new $g({key:s,container:y,nonce:u.nonce,speedy:u.speedy,prepend:u.prepend,insertionPoint:u.insertionPoint}),nonce:u.nonce,inserted:h,registered:{},insert:S};return Q.sheet.hydrate(T),Q},C=bu();const zs=wl({__proto__:null,default:Ol(C)},[C]);function Au(){return Au=Object.assign?Object.assign.bind():function(l){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var r in s)({}).hasOwnProperty.call(s,r)&&(l[r]=s[r])}return l},Au.apply(null,arguments)}var Mu={exports:{}},$t={};var As;function am(){if(As)return $t;As=1;var l=typeof Symbol=="function"&&Symbol.for,u=l?Symbol.for("react.element"):60103,s=l?Symbol.for("react.portal"):60106,r=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,k=l?Symbol.for("react.suspense_list"):60120,X=l?Symbol.for("react.memo"):60115,Q=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,P=l?Symbol.for("react.scope"):60119;function V(H){if(typeof H=="object"&&H!==null){var ot=H.$$typeof;switch(ot){case u:switch(H=H.type,H){case S:case g:case r:case h:case d:case z:return H;default:switch(H=H&&H.$$typeof,H){case T:case A:case Q:case X:case y:return H;default:return ot}}case s:return ot}}}function ut(H){return V(H)===g}return $t.AsyncMode=S,$t.ConcurrentMode=g,$t.ContextConsumer=T,$t.ContextProvider=y,$t.Element=u,$t.ForwardRef=A,$t.Fragment=r,$t.Lazy=Q,$t.Memo=X,$t.Portal=s,$t.Profiler=h,$t.StrictMode=d,$t.Suspense=z,$t.isAsyncMode=function(H){return ut(H)||V(H)===S},$t.isConcurrentMode=ut,$t.isContextConsumer=function(H){return V(H)===T},$t.isContextProvider=function(H){return V(H)===y},$t.isElement=function(H){return typeof H=="object"&&H!==null&&H.$$typeof===u},$t.isForwardRef=function(H){return V(H)===A},$t.isFragment=function(H){return V(H)===r},$t.isLazy=function(H){return V(H)===Q},$t.isMemo=function(H){return V(H)===X},$t.isPortal=function(H){return V(H)===s},$t.isProfiler=function(H){return V(H)===h},$t.isStrictMode=function(H){return V(H)===d},$t.isSuspense=function(H){return V(H)===z},$t.isValidElementType=function(H){return typeof H=="string"||typeof H=="function"||H===r||H===g||H===h||H===d||H===z||H===k||typeof H=="object"&&H!==null&&(H.$$typeof===Q||H.$$typeof===X||H.$$typeof===y||H.$$typeof===T||H.$$typeof===A||H.$$typeof===R||H.$$typeof===Z||H.$$typeof===P||H.$$typeof===Y)},$t.typeOf=V,$t}var Ms;function lm(){return Ms||(Ms=1,Mu.exports=am()),Mu.exports}var _u,_s;function im(){if(_s)return _u;_s=1;var l=lm(),u={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},r={$$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]=r,h[l.Memo]=d;function y(Q){return l.isMemo(Q)?d:h[Q.$$typeof]||u}var T=Object.defineProperty,S=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,A=Object.getOwnPropertyDescriptor,z=Object.getPrototypeOf,k=Object.prototype;function X(Q,Y,R){if(typeof Y!="string"){if(k){var Z=z(Y);Z&&Z!==k&&X(Q,Z,R)}var P=S(Y);g&&(P=P.concat(g(Y)));for(var V=y(Q),ut=y(Y),H=0;H<P.length;++H){var ot=P[H];if(!s[ot]&&!(R&&R[ot])&&!(ut&&ut[ot])&&!(V&&V[ot])){var J=A(Y,ot);try{T(Q,ot,J)}catch{}}}}return Q}return _u=X,_u}im();var om=!0;function ws(l,u,s){var r="";return s.split(" ").forEach(function(d){l[d]!==void 0?u.push(l[d]+";"):d&&(r+=d+" ")}),r}var wu=function(u,s,r){var d=u.key+"-"+s.name;(r===!1||om===!1)&&u.registered[d]===void 0&&(u.registered[d]=s.styles)},Ou=function(u,s,r){wu(u,s,r);var d=u.key+"-"+s.name;if(u.inserted[s.name]===void 0){var h=s;do u.insert(s===h?"."+d:"",h,u.sheet,!0),h=h.next;while(h!==void 0)}};function um(l){for(var u=0,s,r=0,d=l.length;d>=4;++r,d-=4)s=l.charCodeAt(r)&255|(l.charCodeAt(++r)&255)<<8|(l.charCodeAt(++r)&255)<<16|(l.charCodeAt(++r)&255)<<24,s=(s&65535)*1540483477+((s>>>16)*59797<<16),s^=s>>>24,u=(s&65535)*1540483477+((s>>>16)*59797<<16)^(u&65535)*1540483477+((u>>>16)*59797<<16);switch(d){case 3:u^=(l.charCodeAt(r+2)&255)<<16;case 2:u^=(l.charCodeAt(r+1)&255)<<8;case 1:u^=l.charCodeAt(r)&255,u=(u&65535)*1540483477+((u>>>16)*59797<<16)}return u^=u>>>13,u=(u&65535)*1540483477+((u>>>16)*59797<<16),((u^u>>>15)>>>0).toString(36)}var rm={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},cm=/[A-Z]|^ms/g,sm=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Os=function(u){return u.charCodeAt(1)===45},$s=function(u){return u!=null&&typeof u!="boolean"},$u=Cs(function(l){return Os(l)?l:l.replace(cm,"-$&").toLowerCase()}),Ds=function(u,s){switch(u){case"animation":case"animationName":if(typeof s=="string")return s.replace(sm,function(r,d,h){return sn={name:d,styles:h,next:sn},d})}return rm[u]!==1&&!Os(u)&&typeof s=="number"&&s!==0?s+"px":s};function Hl(l,u,s){if(s==null)return"";var r=s;if(r.__emotion_styles!==void 0)return r;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 fm(l,u,s)}case"function":{if(l!==void 0){var S=sn,g=s(l);return sn=S,Hl(l,u,g)}break}}var A=s;if(u==null)return A;var z=u[A];return z!==void 0?z:A}function fm(l,u,s){var r="";if(Array.isArray(s))for(var d=0;d<s.length;d++)r+=Hl(l,u,s[d])+";";else for(var h in s){var y=s[h];if(typeof y!="object"){var T=y;u!=null&&u[T]!==void 0?r+=h+"{"+u[T]+"}":$s(T)&&(r+=$u(h)+":"+Ds(h,T)+";")}else if(Array.isArray(y)&&typeof y[0]=="string"&&(u==null||u[y[0]]===void 0))for(var S=0;S<y.length;S++)$s(y[S])&&(r+=$u(h)+":"+Ds(h,y[S])+";");else{var g=Hl(l,u,y);switch(h){case"animation":case"animationName":{r+=$u(h)+":"+g+";";break}default:r+=h+"{"+g+"}"}}}return r}var Bs=/label:\s*([^\s;{]+)\s*(;|$)/g,sn;function Gi(l,u,s){if(l.length===1&&typeof l[0]=="object"&&l[0]!==null&&l[0].styles!==void 0)return l[0];var r=!0,d="";sn=void 0;var h=l[0];if(h==null||h.raw===void 0)r=!1,d+=Hl(s,u,h);else{var y=h;d+=y[0]}for(var T=1;T<l.length;T++)if(d+=Hl(s,u,l[T]),r){var S=h;d+=S[T]}Bs.lastIndex=0;for(var g="",A;(A=Bs.exec(d))!==null;)g+="-"+A[1];var z=um(d)+g;return{name:z,styles:d,next:sn}}var dm=function(u){return u()},Rs=zs.useInsertionEffect?zs.useInsertionEffect:!1,Ns=Rs||dm,js=Rs||C.useLayoutEffect,Hs=C.createContext(typeof HTMLElement<"u"?zu({key:"css"}):null),Du=Hs.Provider,Bu=function(u){return C.forwardRef(function(s,r){var d=C.useContext(Hs);return u(s,d,r)})},Ru=C.createContext({}),Ul={}.hasOwnProperty,Nu="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ju=function(u,s){var r={};for(var d in s)Ul.call(s,d)&&(r[d]=s[d]);return r[Nu]=u,r},hm=function(u){var s=u.cache,r=u.serialized,d=u.isStringTag;return wu(s,r,d),Ns(function(){return Ou(s,r,d)}),null},pm=Bu(function(l,u,s){var r=l.css;typeof r=="string"&&u.registered[r]!==void 0&&(r=u.registered[r]);var d=l[Nu],h=[r],y="";typeof l.className=="string"?y=ws(u.registered,h,l.className):l.className!=null&&(y=l.className+" ");var T=Gi(h,void 0,C.useContext(Ru));y+=u.key+"-"+T.name;var S={};for(var g in l)Ul.call(l,g)&&g!=="css"&&g!==Nu&&(S[g]=l[g]);return S.className=y,s&&(S.ref=s),C.createElement(C.Fragment,null,C.createElement(hm,{cache:u,serialized:T,isStringTag:typeof d=="string"}),C.createElement(d,S))}),Hu=pm,Us=function(u,s){var r=arguments;if(s==null||!Ul.call(s,"css"))return C.createElement.apply(void 0,r);var d=r.length,h=new Array(d);h[0]=Hu,h[1]=ju(u,s);for(var y=2;y<d;y++)h[y]=r[y];return C.createElement.apply(null,h)};(function(l){var u;u||(u=l.JSX||(l.JSX={}))})(Us||(Us={}));var gm=Bu(function(l,u){var s=l.styles,r=Gi([s],void 0,C.useContext(Ru)),d=C.useRef();return js(function(){var h=u.key+"-global",y=new u.sheet.constructor({key:h,nonce:u.sheet.nonce,container:u.sheet.container,speedy:u.sheet.isSpeedy}),T=!1,S=document.querySelector('style[data-emotion="'+h+" "+r.name+'"]');return u.sheet.tags.length&&(y.before=u.sheet.tags[0]),S!==null&&(T=!0,S.setAttribute("data-emotion",h),y.hydrate([S])),d.current=[y,T],function(){y.flush()}},[u]),js(function(){var h=d.current,y=h[0],T=h[1];if(T){h[1]=!1;return}if(r.next!==void 0&&Ou(u,r.next,!0),y.tags.length){var S=y.tags[y.tags.length-1].nextElementSibling;y.before=S,y.flush()}u.insert("",r,y,!1)},[u,r.name]),null});function G(){for(var l=arguments.length,u=new Array(l),s=0;s<l;s++)u[s]=arguments[s];return Gi(u)}function fn(){var l=G.apply(void 0,arguments),u="animation-"+l.name;return{name:u,styles:"@keyframes "+u+"{"+l.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var kl=x.Fragment,q=function(u,s,r){return Ul.call(s,"css")?x.jsx(Hu,ju(u,s),r):x.jsx(u,s,r)},it=function(u,s,r){return Ul.call(s,"css")?x.jsxs(Hu,ju(u,s),r):x.jsxs(u,s,r)};const et={apiEndpoint:"https://preprodapi.mypatientspace.com/api/chat",token:"",loadHistory:!0,sessionId:"",assistantId:"",contextPatientId:"",floatingMode:!1,position:"bottom-right",colorMode:"light",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?"]},ks=C.createContext(null),Ge=()=>{const l=C.useContext(ks);if(!l)throw new Error("useDemoContext must be used within a DemoProvider");return l},mm=({children:l,demoConfig:u,onReinitWidget:s,onUpdateWidget:r})=>{const[d,h]=C.useState("form"),[y,T]=C.useState(!1),[S,g]=C.useState(null),[A,z]=C.useState(!1),[k,X]=C.useState(0),Q=C.useRef(null),Y=C.useCallback(L=>{Q.current=L},[]),[R,Z]=C.useState(()=>{const L=u.initialConfig;return L?{...et,apiEndpoint:L.apiEndpoint??et.apiEndpoint,token:L.token??et.token,loadHistory:L.loadHistory??et.loadHistory,sessionId:L.sessionId??et.sessionId,assistantId:L.assistantId??et.assistantId,contextPatientId:L.contextPatientId??et.contextPatientId,floatingMode:L.floatingMode??et.floatingMode,position:L.position??et.position,colorMode:L.colorMode??et.colorMode,headerIcon:L.headerIcon??et.headerIcon,fabIcon:L.fabIcon??et.fabIcon,headerTitle:L.headerTitle??et.headerTitle,headerSubtitle:L.headerSubtitle??et.headerSubtitle,greeting:L.greeting??et.greeting,placeholder:L.placeholder??et.placeholder,brandingText:L.brandingText??et.brandingText,disclaimerText:L.disclaimerText??et.disclaimerText,quickActions:L.quickActions??et.quickActions,primaryColor:L.theme?.colors?.primary??et.primaryColor,secondaryColor:L.theme?.colors?.secondary??et.secondaryColor,userBubbleColor:L.theme?.colors?.userBubble??et.userBubbleColor,userBubbleTextColor:L.theme?.colors?.userBubbleText??et.userBubbleTextColor,botBubbleColor:L.theme?.colors?.botBubble??et.botBubbleColor,botBubbleTextColor:L.theme?.colors?.botBubbleText??et.botBubbleTextColor,fontFamily:L.theme?.fontFamily??et.fontFamily,borderRadius:L.theme?.borderRadius??et.borderRadius,shadow:L.theme?.shadow??et.shadow}:et}),P=C.useCallback(()=>{const L={containerElement:Q.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,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),R.sessionId&&(L.sessionId=R.sessionId),R.assistantId&&(L.assistantId=R.assistantId),R.contextPatientId&&(L.contextPatientId=R.contextPatientId),L},[R,y]),V=C.useRef(u.onConfigChange);C.useEffect(()=>{V.current=u.onConfigChange},[u.onConfigChange]);const ut=C.useCallback(L=>{const vt={containerElement:Q.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,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||(vt.apiEndpoint=L.apiEndpoint||void 0,vt.token=L.token||void 0),L.sessionId&&(vt.sessionId=L.sessionId),L.assistantId&&(vt.assistantId=L.assistantId),L.contextPatientId&&(vt.contextPatientId=L.contextPatientId),vt},[y]),H=C.useCallback((L,vt=!1)=>{Z(Yt=>{const Lt={...Yt,...L};if(vt){const te=ut(Lt);r(te)}return setTimeout(()=>{if(V.current){const te=ut(Lt);V.current(te)}},0),Lt})},[ut,r]),ot=C.useCallback(L=>{Z(L)},[]),J=C.useCallback(()=>{X(L=>L+1),s()},[s]),jt=C.useCallback(()=>{r(P())},[r,P]),Xt=C.useMemo(()=>({demoConfig:u,viewMode:d,setViewMode:h,mockEnabled:y,setMockEnabled:T,widgetApi:S,setWidgetApi:g,widgetConfig:R,updateWidgetConfig:H,setWidgetConfig:ot,reinitWidget:J,updateWidget:jt,getWidgetConfig:P,widgetWasOpen:A,setWidgetWasOpen:z,setContainerElement:Y,reinitTrigger:k}),[u,d,y,S,R,H,ot,J,jt,P,A,Y,k]);return x.jsx(ks.Provider,{value:Xt,children:l})};const qs=(...l)=>l.filter((u,s,r)=>!!u&&u.trim()!==""&&r.indexOf(u)===s).join(" ").trim();const ym=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const bm=l=>l.replace(/^([A-Z])|[\s-_]+(\w)/g,(u,s,r)=>r?r.toUpperCase():s.toLowerCase());const Ls=l=>{const u=bm(l);return u.charAt(0).toUpperCase()+u.slice(1)};var vm={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 xm=l=>{for(const u in l)if(u.startsWith("aria-")||u==="role"||u==="title")return!0;return!1};const Sm=C.forwardRef(({color:l="currentColor",size:u=24,strokeWidth:s=2,absoluteStrokeWidth:r,className:d="",children:h,iconNode:y,...T},S)=>C.createElement("svg",{ref:S,...vm,width:u,height:u,stroke:l,strokeWidth:r?Number(s)*24/Number(u):s,className:qs("lucide",d),...!h&&!xm(T)&&{"aria-hidden":"true"},...T},[...y.map(([g,A])=>C.createElement(g,A)),...Array.isArray(h)?h:[h]]));const ue=(l,u)=>{const s=C.forwardRef(({className:r,...d},h)=>C.createElement(Sm,{ref:h,iconNode:u,className:qs(`lucide-${ym(Ls(l))}`,`lucide-${l}`,r),...d}));return s.displayName=Ls(l),s};const Cm=ue("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 Tm=ue("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const Em=ue("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const zm=ue("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const Am=ue("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 Mm=ue("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 Ys=ue("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 Gs=ue("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 Qs=ue("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 _m=ue("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 wm=ue("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const Om=ue("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=ue("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 $m=ue("square-pen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);const Dm=ue("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]);const Bm=ue("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 Rm=ue("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 ql=ue("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:G`
|
|
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
|
-
`},
|
|
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
|
-
`},
|
|
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
|
-
`},
|
|
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=C.memo(function({title:
|
|
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
|
-
`},
|
|
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
|
-
`},
|
|
728
|
-
${
|
|
729
|
-
${
|
|
730
|
-
`):d=
|
|
731
|
-
${
|
|
732
|
-
${
|
|
733
|
-
`,
|
|
734
|
-
`);for(const
|
|
735
|
-
`);k=Z.pop()||"";for(const P of Z)if(Q(P))break;if(X)break}}catch(S){const g=S instanceof Error?S.message:"Unknown error";s.onError(g)}},r0=l=>l.replace(/<[^>]*>/g,"").replace(/\s+/g," ").trim(),c0=(l,u)=>{if(u){const s=u.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"},Ps=l=>({id:l.id,thumbnail:l.icon?.thumbnailURL||l.contents?.[0]?.thumbnailURL||l.icon?.contentURL||"",title:l.title||l.name||"",description:l.detailText?r0(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:c0(l.type,l.contents?.[0]?.format),contentFormat:l.contents?.[0]?.format?.toUpperCase()||void 0,audioRenditions:l.libraryRenditions?.map(u=>u.contentURL).filter(u=>!!u)||void 0,detailHtml:l.detailText||void 0}),s0=l=>{const u=l.trim();if(!u||u.startsWith(":"))return null;if(u.startsWith("data:")){const s=u.slice(5).trim();if(s==="[DONE]")return null;try{const r=JSON.parse(s);if(r.type)switch(r.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 r.audio?{type:"audio",value:r.audio}:null;case"canvas":return null;case"error":return{type:"error",value:r.message||r.error||"Unknown error"};case"final":return{type:"final",value:r.session_id||"",content:r.reply||"",askingQuestion:r.asking_question||!1,questionInfo:r.current_question_info,surveyProgress:r.survey_progress,citations:Array.isArray(r.citations)?r.citations.map(Ps):void 0};case"close":case"message":case"response":case"complete":case"done":case"end":return null;default:return null}const d=r.delta?.content;return d?{type:"content",value:d}:null}catch{return{type:"content",value:s}}}return null},tf=async(l,u)=>{const{apiEndpoint:s}=l;if(!s)return{messages:[],error:"No API endpoint configured"};const r=ku(l),d=`${Is(s)}/messages`,h=new URLSearchParams;l.assistantId&&h.append("assistantId",l.assistantId),l.contextPatientId&&h.append("contextPatientId",l.contextPatientId),h.append("page",String(u?.page??0)),h.append("size",String(u?.size??10)),u?.sort&&h.append("sort",u.sort);const y=`${d}?${h.toString()}`,T={};r&&(T.Authorization=`Bearer ${r}`);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,k=!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}),k=!!g._links?.next):A=g.messages||g.data||g,!Array.isArray(A))return{messages:[]};const Q=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(Ps):void 0}}),sessionId:Q,page:z,hasNextPage:k}}catch(S){const g=S instanceof Error?S.message:"Unknown error";return{messages:[],error:g}}},f0=async l=>{const{apiEndpoint:u}=l;if(!u)return{assistants:[],error:"No API endpoint configured"};const s=ku(l),d=`${o0(u)}/api/patient/assistants/list`,h={};s&&(h.Authorization=`Bearer ${s}`);try{const y=await fetch(d,{method:"GET",headers:h});if(!y.ok)throw new Error(`HTTP error! status: ${y.status}`);const T=await y.json(),S=T.assistants||T.data||T;return Array.isArray(S)?{assistants:S.map(A=>({...A,id:A.id||"",name:A.name||""}))}:{assistants:[]}}catch(y){const T=y instanceof Error?y.message:"Unknown error";return{assistants:[],error:T}}},d0=l=>{const[u,s]=C.useState(()=>typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light");return C.useEffect(()=>{if(l!=="system")return;const r=window.matchMedia("(prefers-color-scheme: dark)");s(r.matches?"dark":"light");const d=h=>{s(h.matches?"dark":"light")};return r.addEventListener("change",d),()=>r.removeEventListener("change",d)},[l]),l==="system"?u:l==="dark"?"dark":"light"},ef=C.createContext(null),kn=()=>`${Date.now()}-${Math.random().toString(36).substr(2,9)}`,h0=[{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"}],p0=({config:l,children:u,onConfigUpdate:s})=>{const[r,d]=C.useState(l),[h,y]=C.useState([]),[T,S]=C.useState(!(r.floatingMode??!1)),[g,A]=C.useState(!1),[z,k]=C.useState(!1),[X,Q]=C.useState(void 0),[Y,R]=C.useState(!1),[Z,P]=C.useState(!1),[V,ut]=C.useState(null),[H,ot]=C.useState(null),[J,jt]=C.useState(null),[Xt,L]=C.useState(null),[vt,Yt]=C.useState(null),[Lt,te]=C.useState(null),Ee=d0(r.colorMode),D=C.useMemo(()=>{const gt=V?.chatUiConfig?.theme,st=r.theme,mt=l0(Ee);return{colors:{...mt.colors,...gt?.colors,...st?.colors},fontFamily:st?.fontFamily||gt?.fontFamily||mt.fontFamily,borderRadius:st?.borderRadius||gt?.borderRadius||mt.borderRadius,shadow:st?.shadow||gt?.shadow||mt.shadow}},[r.theme,Ee,V?.chatUiConfig?.theme]),K=C.useCallback(gt=>{d(st=>({...st,...gt}))},[]);C.useEffect(()=>{s?.(K)},[s,K]);const at=C.useRef(null),Tt=C.useRef(!1);C.useEffect(()=>{(async()=>{if(!(!T||Z)){if(jt(null),r.loadHistory===!1){P(!0);return}try{if(!r.token){P(!0);return}let st=r.assistantId;if(!st){const dt=await f0(r);if(dt.error){console.error("Failed to load assistants:",dt.error),jt(dt.error),P(!0);return}const Bt=dt.assistants[0];if(!Bt){console.warn("No assistants found"),P(!0);return}ut(Bt),st=Bt.id}const mt={...r,assistantId:st},Dt=await tf(mt,{page:0,size:10});if(Dt.error){console.error("Failed to load messages:",Dt.error),jt(Dt.error),P(!0);return}if(Dt.sessionId&&ot(Dt.sessionId),Dt.page&&L({currentPage:Dt.page.number,totalPages:Dt.page.totalPages,totalElements:Dt.page.totalElements,hasMore:Dt.hasNextPage??!1,isLoadingMore:!1}),Dt.messages.length>0){const dt=Dt.messages.map(Bt=>({id:Bt.id||kn(),content:Bt.content,sender:Bt.sender,timestamp:new Date(Bt.timestamp),status:Bt.status||"sent",citations:Bt.citations})).reverse();y(dt),R(!0)}}catch(st){console.error("Failed to load chat history:",st)}P(!0)}})()},[T,Z,r]),C.useEffect(()=>{if(T&&!Y&&Z){if(J){const st={id:kn(),content:`Unable to connect: ${J}`,sender:"bot",timestamp:new Date,status:"error"};y([st]),R(!0);return}const gt=r.greeting||V?.chatUiConfig?.welcomeMessage||"Hello! Welcome to our healthcare support. How can I assist you today?";{const st={id:kn(),content:gt,sender:"bot",timestamp:new Date,status:"sent",citations:r.apiEndpoint?void 0:h0};y(mt=>mt.length===0?[st]:mt)}R(!0)}},[T,Y,r.greeting,Z,V,J]);const wt=C.useCallback(()=>{S(!0),r.onOpen?.()},[r]),v=C.useCallback(()=>{S(!1),A(!1),r.onClose?.()},[r]),U=C.useCallback(()=>{A(gt=>!gt)},[]),W=C.useCallback(()=>{T?v():wt()},[T,wt,v]),F=C.useCallback(async gt=>{if(!gt.trim())return;const st={id:kn(),content:gt.trim(),sender:"user",timestamp:new Date,status:"sending"};y(dt=>[...dt,{...st,status:"sent"}]),r.onMessageSent?.(st),k(!0),Q("thinking");const mt=kn();at.current=mt,Tt.current=!1;const Dt={...r,...V&&{assistantId:V.id},...H&&{sessionId:H}};await u0(gt,Dt,{onChunk:dt=>{if(Tt.current)y(Bt=>Bt.map(Vt=>Vt.id===mt?{...Vt,content:Vt.content+dt}:Vt));else{Tt.current=!0,Q(void 0);const Bt={id:mt,content:dt,sender:"bot",timestamp:new Date,status:"sending"};y(Vt=>[...Vt,Bt])}r.onStreamChunk?.(dt)},onStatus:dt=>{dt==="complete"?(Q(void 0),k(!1)):Q(dt)},onSessionId:dt=>{ot(dt)},onAudio:dt=>{const Bt=`data:audio/mp3;base64,${dt}`;y(Vt=>Vt.map(ee=>ee.id===mt?{...ee,audioUrl:Bt}:ee))},onComplete:dt=>{k(!1),Q(void 0),at.current=null,Tt.current&&y(Bt=>{const Vt=Bt.map(an=>an.id===mt?{...an,content:dt,status:"sent"}:an),ee=Vt.find(an=>an.id===mt);return ee&&r.onMessageReceived?.(ee),Vt})},onError:dt=>{k(!1),Q(void 0),at.current=null,console.error("Stream error:",dt),y(Bt=>{const Vt=Bt.filter(an=>an.id!==mt),ee={id:mt,content:`Error: ${dt}`,sender:"bot",timestamp:new Date,status:"error"};return[...Vt,ee]})},onSurveyQuestion:(dt,Bt)=>{Yt(dt),te(Bt||null),y(Vt=>Vt.map(ee=>ee.id===mt?{...ee,askingQuestion:!0,questionInfo:dt,surveyProgress:Bt}:ee))},onCitations:dt=>{y(Bt=>Bt.map(Vt=>Vt.id===mt?{...Vt,citations:dt}:Vt))}})},[r,V,H]),ct=C.useCallback(async gt=>{if(!vt)return;let st;Array.isArray(gt)?st=gt.join(", "):typeof gt=="boolean"?st=gt?"Yes":"No":st=String(gt);const mt=`Q: ${vt.question}<br>A: ${st}`;Yt(null),te(null),await F(mt)},[vt,F]),pt=C.useCallback(async()=>{vt&&(Yt(null),te(null),await F("Skip"))},[vt,F]),Et=C.useCallback(async()=>{if(!(!Xt||Xt.isLoadingMore||!Xt.hasMore)){L(gt=>gt&&{...gt,isLoadingMore:!0});try{const gt=Xt.currentPage+1,st={...r,...V&&{assistantId:V.id}},mt=await tf(st,{page:gt,size:10});if(mt.error){console.error("Failed to load more messages:",mt.error),L(Dt=>Dt&&{...Dt,isLoadingMore:!1});return}if(mt.messages.length>0){const Dt=mt.messages.map(dt=>({id:dt.id||kn(),content:dt.content,sender:dt.sender,timestamp:new Date(dt.timestamp),status:dt.status||"sent",citations:dt.citations})).reverse();y(dt=>{const Bt=new Set(dt.map(ee=>ee.id));return[...Dt.filter(ee=>!Bt.has(ee.id)),...dt]})}L(Dt=>Dt&&{...Dt,currentPage:gt,hasMore:mt.hasNextPage??!1,isLoadingMore:!1,...mt.page&&{totalPages:mt.page.totalPages,totalElements:mt.page.totalElements}})}catch(gt){console.error("Failed to load more messages:",gt),L(st=>st&&{...st,isLoadingMore:!1})}}},[Xt,r,V]),de=C.useCallback(()=>{y([]),ot(null),R(!1),Yt(null),te(null),k(!1),Q(void 0),jt(null),L(null),r.onNewChat?.()},[r]),Kt=C.useCallback(async()=>{Yt(null),te(null),await F("Cancel survey")},[F]),bn=C.useCallback((gt,st)=>{const mt={id:kn(),content:gt.question,sender:"bot",timestamp:new Date,status:"sent",askingQuestion:!0,questionInfo:gt,surveyProgress:st};y(Dt=>[...Dt,mt]),Yt(gt),te(st||null)},[]),ga=C.useCallback(gt=>{const st={id:kn(),content:"Here are some resources that might help you:",sender:"bot",timestamp:new Date,status:"sent",citations:gt};y(mt=>[...mt,st])},[]);C.useEffect(()=>{Z&&r.onWidgetReady&&r.onWidgetReady({triggerSurveyQuestion:bn,triggerCitations:ga})},[Z,r.onWidgetReady,bn,ga]);const Yl={messages:h,isOpen:T,isTyping:z,isLoading:!Z,isExpanded:g,streamingStatus:X,config:r,theme:D,assistant:V,sendMessage:F,open:wt,close:v,toggle:W,toggleExpanded:U,currentQuestion:vt,surveyProgress:Lt,submitSurveyAnswer:ct,skipSurveyQuestion:pt,cancelSurvey:Kt,triggerSurveyQuestion:bn,startNewChat:de,pagination:Xt,loadMoreMessages:Et};return x.jsx(ef.Provider,{value:Yl,children:u})};var g0=/^((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)-.*))$/,m0=Cs(function(l){return g0.test(l)||l.charCodeAt(0)===111&&l.charCodeAt(1)===110&&l.charCodeAt(2)<91}),y0=m0,b0=function(u){return u!=="theme"},nf=function(u){return typeof u=="string"&&u.charCodeAt(0)>96?y0:b0},af=function(u,s,r){var d;if(s){var h=s.shouldForwardProp;d=u.__emotion_forwardProp&&h?function(y){return u.__emotion_forwardProp(y)&&h(y)}:h}return typeof d!="function"&&r&&(d=u.__emotion_forwardProp),d},v0=function(u){var s=u.cache,r=u.serialized,d=u.isStringTag;return wu(s,r,d),Ns(function(){return Ou(s,r,d)}),null},x0=function l(u,s){var r=u.__emotion_real===u,d=r&&u.__emotion_base||u,h,y;s!==void 0&&(h=s.label,y=s.target);var T=af(u,s,r),S=T||nf(d),g=!S("as");return function(){var A=arguments,z=r&&u.__emotion_styles!==void 0?u.__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 k=A[0];z.push(k[0]);for(var X=A.length,Q=1;Q<X;Q++)z.push(A[Q],k[Q])}var Y=Bu(function(R,Z,P){var V=g&&R.as||d,ut="",H=[],ot=R;if(R.theme==null){ot={};for(var J in R)ot[J]=R[J];ot.theme=C.useContext(Ru)}typeof R.className=="string"?ut=ws(Z.registered,H,R.className):R.className!=null&&(ut=R.className+" ");var jt=Gi(z.concat(H),Z.registered,ot);ut+=Z.key+"-"+jt.name,y!==void 0&&(ut+=" "+y);var Xt=g&&T===void 0?nf(V):S,L={};for(var vt in R)g&&vt==="as"||Xt(vt)&&(L[vt]=R[vt]);return L.className=ut,P&&(L.ref=P),C.createElement(C.Fragment,null,C.createElement(v0,{cache:Z,serialized:jt,isStringTag:typeof V=="string"}),C.createElement(V,L))});return Y.displayName=h!==void 0?h:"Styled("+(typeof d=="string"?d:d.displayName||d.name||"Component")+")",Y.defaultProps=u.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 P=l(R,Au({},s,Z,{shouldForwardProp:af(Y,Z,!0)}));return P.apply(void 0,z)},Y}},S0=["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"],j=x0.bind(null);S0.forEach(function(l){j[l]=j(l)});const pa=()=>{const l=C.useContext(ef);if(!l)throw new Error("useChat must be used within a ChatProvider");return l},C0=j.div`
|
|
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
|
+
${La.layout}
|
|
729
|
+
${La.layoutConfigOnly}
|
|
730
|
+
`):d=X`
|
|
731
|
+
${La.layout}
|
|
732
|
+
${La.layoutPreviewOnly}
|
|
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;
|
|
@@ -740,39 +740,43 @@ Error generating stack: `+a.message+`
|
|
|
740
740
|
background-color: ${({theme:l})=>l.colors.secondary};
|
|
741
741
|
color: ${({theme:l})=>l.colors.headerText};
|
|
742
742
|
border-radius: ${({theme:l})=>l.borderRadius} ${({theme:l})=>l.borderRadius} 0 0;
|
|
743
|
-
|
|
743
|
+
|
|
744
|
+
@media (max-width: 420px) {
|
|
745
|
+
${({floatingMode:l})=>l&&"border-radius: 0;"}
|
|
746
|
+
}
|
|
747
|
+
`,wy=R.div`
|
|
744
748
|
display: flex;
|
|
745
749
|
align-items: center;
|
|
746
750
|
gap: 12px;
|
|
747
|
-
`,
|
|
751
|
+
`,_y=R.div`
|
|
748
752
|
display: flex;
|
|
749
753
|
align-items: center;
|
|
750
754
|
justify-content: center;
|
|
751
755
|
width: 40px;
|
|
752
756
|
height: 40px;
|
|
753
757
|
border-radius: ${({hasCustomIcon:l})=>l?"0":"50%"};
|
|
754
|
-
background-color: ${({hasCustomIcon:l,theme:
|
|
755
|
-
`,
|
|
758
|
+
background-color: ${({hasCustomIcon:l,theme:r})=>l?"transparent":`${r.colors.headerText}33`};
|
|
759
|
+
`,Oy=R.img`
|
|
756
760
|
width: 100%;
|
|
757
761
|
height: 100%;
|
|
758
762
|
object-fit: contain;
|
|
759
|
-
|
|
763
|
+
`,$y=R.div`
|
|
760
764
|
display: flex;
|
|
761
765
|
flex-direction: column;
|
|
762
|
-
`,
|
|
766
|
+
`,By=R.h2`
|
|
763
767
|
margin: 0;
|
|
764
768
|
font-size: 16px;
|
|
765
769
|
font-weight: 600;
|
|
766
770
|
font-family: ${({fontFamily:l})=>l};
|
|
767
771
|
line-height: 1.2;
|
|
768
|
-
`,
|
|
772
|
+
`,Dy=R.span`
|
|
769
773
|
margin: 0;
|
|
770
774
|
font-size: 12px;
|
|
771
775
|
font-weight: 400;
|
|
772
776
|
font-family: ${({fontFamily:l})=>l};
|
|
773
777
|
opacity: 0.9;
|
|
774
778
|
line-height: 1.2;
|
|
775
|
-
`,
|
|
779
|
+
`,Ry=R.div`
|
|
776
780
|
display: flex;
|
|
777
781
|
align-items: center;
|
|
778
782
|
gap: 4px;
|
|
@@ -782,7 +786,7 @@ Error generating stack: `+a.message+`
|
|
|
782
786
|
font-family: ${({fontFamily:l})=>l};
|
|
783
787
|
opacity: 0.8;
|
|
784
788
|
line-height: 1.2;
|
|
785
|
-
`,
|
|
789
|
+
`,Ji=R.button`
|
|
786
790
|
display: flex;
|
|
787
791
|
align-items: center;
|
|
788
792
|
justify-content: center;
|
|
@@ -802,17 +806,17 @@ Error generating stack: `+a.message+`
|
|
|
802
806
|
&:active {
|
|
803
807
|
background-color: ${({theme:l})=>`${l.colors.headerText}66`};
|
|
804
808
|
}
|
|
805
|
-
`,
|
|
809
|
+
`,Ny=R.div`
|
|
806
810
|
display: flex;
|
|
807
811
|
align-items: center;
|
|
808
812
|
gap: 6px;
|
|
809
|
-
|
|
813
|
+
`,jy=R.div`
|
|
810
814
|
display: flex;
|
|
811
815
|
|
|
812
816
|
@media (max-width: 420px) {
|
|
813
817
|
${({floatingMode:l})=>l&&"display: none;"}
|
|
814
818
|
}
|
|
815
|
-
`,
|
|
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`
|
|
816
820
|
position: relative;
|
|
817
821
|
background-color: ${({theme:l})=>l.colors.background};
|
|
818
822
|
border-bottom: 1px solid ${({theme:l})=>l.colors.borderLight};
|
|
@@ -822,7 +826,7 @@ Error generating stack: `+a.message+`
|
|
|
822
826
|
opacity: 1;
|
|
823
827
|
}
|
|
824
828
|
}
|
|
825
|
-
`,
|
|
829
|
+
`,Uy=R.button`
|
|
826
830
|
position: absolute;
|
|
827
831
|
top: 0;
|
|
828
832
|
right: 0;
|
|
@@ -851,7 +855,7 @@ Error generating stack: `+a.message+`
|
|
|
851
855
|
@media (hover: none) {
|
|
852
856
|
opacity: 1;
|
|
853
857
|
}
|
|
854
|
-
`,
|
|
858
|
+
`,qy=R.div`
|
|
855
859
|
display: flex;
|
|
856
860
|
gap: 6px;
|
|
857
861
|
padding: 16px 12px 8px;
|
|
@@ -863,15 +867,15 @@ Error generating stack: `+a.message+`
|
|
|
863
867
|
&::-webkit-scrollbar {
|
|
864
868
|
display: none;
|
|
865
869
|
}
|
|
866
|
-
`,
|
|
870
|
+
`,Ly=R.button`
|
|
867
871
|
display: flex;
|
|
868
872
|
align-items: center;
|
|
869
873
|
gap: 4px;
|
|
870
874
|
padding: 6px 12px;
|
|
871
|
-
border: 1px solid ${({theme:l,isActive:
|
|
875
|
+
border: 1px solid ${({theme:l,isActive:r})=>r?l.colors.primary:l.colors.border};
|
|
872
876
|
border-radius: 14px;
|
|
873
|
-
background-color: ${({theme:l,isActive:
|
|
874
|
-
color: ${({theme:l,isActive:
|
|
877
|
+
background-color: ${({theme:l,isActive:r})=>r?l.colors.primary:l.colors.background};
|
|
878
|
+
color: ${({theme:l,isActive:r})=>r?l.colors.white:l.colors.text};
|
|
875
879
|
font-family: ${({theme:l})=>l.fontFamily};
|
|
876
880
|
font-size: 12px;
|
|
877
881
|
font-weight: 500;
|
|
@@ -881,9 +885,9 @@ Error generating stack: `+a.message+`
|
|
|
881
885
|
|
|
882
886
|
@media (hover: hover) {
|
|
883
887
|
&:hover {
|
|
884
|
-
background-color: ${({theme:l,isActive:
|
|
885
|
-
border-color: ${({theme:l,isActive:
|
|
886
|
-
color: ${({theme:l,isActive:
|
|
888
|
+
background-color: ${({theme:l,isActive:r})=>r?l.colors.primaryDark:l.colors.surface};
|
|
889
|
+
border-color: ${({theme:l,isActive:r})=>r?l.colors.primaryDark:l.colors.primary};
|
|
890
|
+
color: ${({theme:l,isActive:r})=>r?l.colors.white:l.colors.text};
|
|
887
891
|
}
|
|
888
892
|
}
|
|
889
893
|
|
|
@@ -896,7 +900,7 @@ Error generating stack: `+a.message+`
|
|
|
896
900
|
cursor: not-allowed;
|
|
897
901
|
transform: none;
|
|
898
902
|
}
|
|
899
|
-
`,
|
|
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`
|
|
900
904
|
display: flex;
|
|
901
905
|
gap: 12px;
|
|
902
906
|
padding: 12px 0;
|
|
@@ -908,7 +912,7 @@ Error generating stack: `+a.message+`
|
|
|
908
912
|
&::-webkit-scrollbar {
|
|
909
913
|
display: none;
|
|
910
914
|
}
|
|
911
|
-
`,
|
|
915
|
+
`,Qy=R.button`
|
|
912
916
|
flex-shrink: 0;
|
|
913
917
|
width: 160px;
|
|
914
918
|
padding: 0;
|
|
@@ -930,17 +934,17 @@ Error generating stack: `+a.message+`
|
|
|
930
934
|
&:active {
|
|
931
935
|
transform: translateY(0);
|
|
932
936
|
}
|
|
933
|
-
`,
|
|
937
|
+
`,Xy=R.div`
|
|
934
938
|
position: relative;
|
|
935
939
|
width: 100%;
|
|
936
940
|
height: 100px;
|
|
937
941
|
background-color: ${({theme:l})=>l.colors.surface};
|
|
938
942
|
overflow: hidden;
|
|
939
|
-
`,
|
|
943
|
+
`,Vy=R.img`
|
|
940
944
|
width: 100%;
|
|
941
945
|
height: 100%;
|
|
942
946
|
object-fit: cover;
|
|
943
|
-
`,
|
|
947
|
+
`,Zy=R.div`
|
|
944
948
|
width: 100%;
|
|
945
949
|
height: 100%;
|
|
946
950
|
display: flex;
|
|
@@ -949,10 +953,10 @@ Error generating stack: `+a.message+`
|
|
|
949
953
|
background-color: ${({theme:l})=>l.colors.surface};
|
|
950
954
|
color: ${({theme:l})=>l.colors.contentCardTextLight};
|
|
951
955
|
font-size: 12px;
|
|
952
|
-
`,
|
|
956
|
+
`,Ky=R.div`
|
|
953
957
|
padding: 10px 12px;
|
|
954
958
|
flex: 1;
|
|
955
|
-
`,
|
|
959
|
+
`,Jy=R.h4`
|
|
956
960
|
margin: 0 0 4px 0;
|
|
957
961
|
font-family: ${({theme:l})=>l.fontFamily};
|
|
958
962
|
font-size: 13px;
|
|
@@ -964,7 +968,7 @@ Error generating stack: `+a.message+`
|
|
|
964
968
|
-webkit-box-orient: vertical;
|
|
965
969
|
overflow: hidden;
|
|
966
970
|
text-overflow: ellipsis;
|
|
967
|
-
`,
|
|
971
|
+
`,Wy=R.span`
|
|
968
972
|
position: absolute;
|
|
969
973
|
top: 8px;
|
|
970
974
|
left: 8px;
|
|
@@ -977,7 +981,7 @@ Error generating stack: `+a.message+`
|
|
|
977
981
|
background-color: rgba(0, 0, 0, 0.5);
|
|
978
982
|
border-radius: 6px;
|
|
979
983
|
backdrop-filter: blur(4px);
|
|
980
|
-
`,
|
|
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`
|
|
981
985
|
from {
|
|
982
986
|
opacity: 0;
|
|
983
987
|
transform: translateY(8px);
|
|
@@ -986,24 +990,24 @@ Error generating stack: `+a.message+`
|
|
|
986
990
|
opacity: 1;
|
|
987
991
|
transform: translateY(0);
|
|
988
992
|
}
|
|
989
|
-
`,
|
|
993
|
+
`,e0=R.div`
|
|
990
994
|
display: flex;
|
|
991
995
|
flex-direction: column;
|
|
992
996
|
align-items: ${({isUser:l})=>l?"flex-end":"flex-start"};
|
|
993
997
|
margin-bottom: 12px;
|
|
994
|
-
animation: ${
|
|
998
|
+
animation: ${Py} 0.3s ease-out;
|
|
995
999
|
|
|
996
1000
|
@media (prefers-reduced-motion: reduce) {
|
|
997
1001
|
animation: none;
|
|
998
1002
|
}
|
|
999
|
-
`,
|
|
1003
|
+
`,t0=R.div`
|
|
1000
1004
|
max-width: ${({isUser:l})=>l?"80%":"100%"};
|
|
1001
1005
|
padding: ${({isUser:l})=>l?"12px 16px":"0"};
|
|
1002
1006
|
border-radius: ${({isUser:l})=>l?"16px":"0"};
|
|
1003
1007
|
border-bottom-right-radius: ${({isUser:l})=>l?"4px":"0"};
|
|
1004
1008
|
border-bottom-left-radius: ${({isUser:l})=>l?"16px":"0"};
|
|
1005
|
-
background-color: ${({isUser:l,isError:
|
|
1006
|
-
color: ${({isUser:l,isError:
|
|
1009
|
+
background-color: ${({isUser:l,isError:r,theme:s})=>r?s.colors.errorBackground:l?s.colors.userBubble:"transparent"};
|
|
1010
|
+
color: ${({isUser:l,isError:r,theme:s})=>r?s.colors.error:l?s.colors.userBubbleText:s.colors.text};
|
|
1007
1011
|
font-family: ${({theme:l})=>l.fontFamily};
|
|
1008
1012
|
font-size: 14px;
|
|
1009
1013
|
line-height: 1.5;
|
|
@@ -1024,7 +1028,7 @@ Error generating stack: `+a.message+`
|
|
|
1024
1028
|
}
|
|
1025
1029
|
|
|
1026
1030
|
a {
|
|
1027
|
-
color: ${({isUser:l,theme:
|
|
1031
|
+
color: ${({isUser:l,theme:r})=>l?r.colors.white:r.colors.primary};
|
|
1028
1032
|
text-decoration: underline;
|
|
1029
1033
|
}
|
|
1030
1034
|
|
|
@@ -1039,16 +1043,16 @@ Error generating stack: `+a.message+`
|
|
|
1039
1043
|
font-family: monospace;
|
|
1040
1044
|
font-size: 13px;
|
|
1041
1045
|
}
|
|
1042
|
-
`,
|
|
1046
|
+
`,n0=R.span`
|
|
1043
1047
|
font-size: 11px;
|
|
1044
1048
|
color: ${({theme:l})=>l.colors.textLight};
|
|
1045
1049
|
margin-top: 4px;
|
|
1046
1050
|
font-family: ${({theme:l})=>l.fontFamily};
|
|
1047
|
-
`,
|
|
1051
|
+
`,a0=R.span`
|
|
1048
1052
|
font-size: 11px;
|
|
1049
1053
|
margin-left: 6px;
|
|
1050
|
-
color: ${({status:l,theme:
|
|
1051
|
-
`,
|
|
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=R.button`
|
|
1052
1056
|
display: flex;
|
|
1053
1057
|
align-items: center;
|
|
1054
1058
|
justify-content: center;
|
|
@@ -1056,8 +1060,8 @@ Error generating stack: `+a.message+`
|
|
|
1056
1060
|
height: 32px;
|
|
1057
1061
|
border: none;
|
|
1058
1062
|
border-radius: 50%;
|
|
1059
|
-
background-color: ${({theme:l,isPlaying:
|
|
1060
|
-
color: ${({theme:l,isPlaying:
|
|
1063
|
+
background-color: ${({theme:l,isPlaying:r})=>r?l.colors.primary:l.colors.surface};
|
|
1064
|
+
color: ${({theme:l,isPlaying:r})=>r?l.colors.white:l.colors.textLight};
|
|
1061
1065
|
cursor: pointer;
|
|
1062
1066
|
margin-top: 8px;
|
|
1063
1067
|
transition: background-color 0.2s ease, color 0.2s ease;
|
|
@@ -1066,7 +1070,7 @@ Error generating stack: `+a.message+`
|
|
|
1066
1070
|
background-color: ${({theme:l})=>l.colors.primary};
|
|
1067
1071
|
color: ${({theme:l})=>l.colors.white};
|
|
1068
1072
|
}
|
|
1069
|
-
`,
|
|
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`
|
|
1070
1074
|
from {
|
|
1071
1075
|
opacity: 0;
|
|
1072
1076
|
transform: translateY(4px);
|
|
@@ -1075,42 +1079,42 @@ Error generating stack: `+a.message+`
|
|
|
1075
1079
|
opacity: 1;
|
|
1076
1080
|
transform: translateY(0);
|
|
1077
1081
|
}
|
|
1078
|
-
`,
|
|
1082
|
+
`,u0=en`
|
|
1079
1083
|
0%, 60%, 100% {
|
|
1080
1084
|
transform: translateY(0);
|
|
1081
1085
|
}
|
|
1082
1086
|
30% {
|
|
1083
1087
|
transform: translateY(-4px);
|
|
1084
1088
|
}
|
|
1085
|
-
`,
|
|
1089
|
+
`,c0=R.div`
|
|
1086
1090
|
display: flex;
|
|
1087
1091
|
align-items: center;
|
|
1088
1092
|
gap: 8px;
|
|
1089
1093
|
padding: 8px 4px;
|
|
1090
|
-
animation: ${
|
|
1091
|
-
`,
|
|
1094
|
+
animation: ${r0} 0.2s ease-out;
|
|
1095
|
+
`,s0=R.span`
|
|
1092
1096
|
font-size: 13px;
|
|
1093
1097
|
font-family: ${({theme:l})=>l.fontFamily};
|
|
1094
1098
|
color: ${({theme:l})=>l.colors.textLight};
|
|
1095
1099
|
font-style: italic;
|
|
1096
|
-
`,
|
|
1100
|
+
`,f0=R.span`
|
|
1097
1101
|
display: inline-flex;
|
|
1098
1102
|
align-items: center;
|
|
1099
1103
|
gap: 3px;
|
|
1100
1104
|
margin-left: 2px;
|
|
1101
|
-
`,
|
|
1105
|
+
`,Zr=R.span`
|
|
1102
1106
|
width: 5px;
|
|
1103
1107
|
height: 5px;
|
|
1104
1108
|
border-radius: 50%;
|
|
1105
1109
|
background-color: ${({theme:l})=>l.colors.primary};
|
|
1106
|
-
animation: ${
|
|
1110
|
+
animation: ${u0} 1s infinite ease-in-out;
|
|
1107
1111
|
animation-delay: ${({delay:l})=>l}ms;
|
|
1108
1112
|
|
|
1109
1113
|
@media (prefers-reduced-motion: reduce) {
|
|
1110
1114
|
animation: none;
|
|
1111
1115
|
opacity: 0.6;
|
|
1112
1116
|
}
|
|
1113
|
-
`,
|
|
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`
|
|
1114
1118
|
flex: 1;
|
|
1115
1119
|
overflow-y: auto;
|
|
1116
1120
|
padding: 16px;
|
|
@@ -1148,7 +1152,7 @@ Error generating stack: `+a.message+`
|
|
|
1148
1152
|
&:hover::-webkit-scrollbar-thumb:hover {
|
|
1149
1153
|
background-color: ${({scrollbarThumbHover:l})=>l};
|
|
1150
1154
|
}
|
|
1151
|
-
`,
|
|
1155
|
+
`,g0=R.div`
|
|
1152
1156
|
display: flex;
|
|
1153
1157
|
flex: 1;
|
|
1154
1158
|
align-items: center;
|
|
@@ -1157,7 +1161,7 @@ Error generating stack: `+a.message+`
|
|
|
1157
1161
|
font-size: 14px;
|
|
1158
1162
|
text-align: center;
|
|
1159
1163
|
padding: 20px;
|
|
1160
|
-
`,
|
|
1164
|
+
`,m0=R.div`
|
|
1161
1165
|
display: flex;
|
|
1162
1166
|
flex: 1;
|
|
1163
1167
|
flex-direction: column;
|
|
@@ -1166,7 +1170,7 @@ Error generating stack: `+a.message+`
|
|
|
1166
1170
|
gap: 12px;
|
|
1167
1171
|
color: ${({color:l})=>l};
|
|
1168
1172
|
font-size: 14px;
|
|
1169
|
-
`,
|
|
1173
|
+
`,y0=R.div`
|
|
1170
1174
|
width: 32px;
|
|
1171
1175
|
height: 32px;
|
|
1172
1176
|
border: 3px solid ${({color:l})=>l}20;
|
|
@@ -1179,12 +1183,12 @@ Error generating stack: `+a.message+`
|
|
|
1179
1183
|
transform: rotate(360deg);
|
|
1180
1184
|
}
|
|
1181
1185
|
}
|
|
1182
|
-
`,
|
|
1186
|
+
`,b0=R.div`
|
|
1183
1187
|
display: flex;
|
|
1184
1188
|
align-items: center;
|
|
1185
1189
|
justify-content: center;
|
|
1186
1190
|
padding: 12px 0;
|
|
1187
|
-
`,
|
|
1191
|
+
`,v0=R.div`
|
|
1188
1192
|
width: 20px;
|
|
1189
1193
|
height: 20px;
|
|
1190
1194
|
border: 2px solid ${({color:l})=>l}20;
|
|
@@ -1197,34 +1201,34 @@ Error generating stack: `+a.message+`
|
|
|
1197
1201
|
transform: rotate(360deg);
|
|
1198
1202
|
}
|
|
1199
1203
|
}
|
|
1200
|
-
`,
|
|
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`
|
|
1201
1205
|
display: flex;
|
|
1202
1206
|
flex-direction: column;
|
|
1203
1207
|
gap: 4px;
|
|
1204
1208
|
padding: 10px 12px;
|
|
1205
|
-
`,
|
|
1209
|
+
`,C0=R.div`
|
|
1206
1210
|
display: flex;
|
|
1207
1211
|
align-items: center;
|
|
1208
1212
|
justify-content: space-between;
|
|
1209
1213
|
gap: 8px;
|
|
1210
|
-
`,
|
|
1214
|
+
`,T0=R.span`
|
|
1211
1215
|
font-family: ${({theme:l})=>l.fontFamily};
|
|
1212
1216
|
font-size: 11px;
|
|
1213
1217
|
color: ${({theme:l})=>l.colors.textLight};
|
|
1214
1218
|
flex-shrink: 0;
|
|
1215
|
-
`,
|
|
1219
|
+
`,E0=R.span`
|
|
1216
1220
|
flex: 1;
|
|
1217
1221
|
font-family: ${({theme:l})=>l.fontFamily};
|
|
1218
1222
|
font-size: 14px;
|
|
1219
1223
|
font-weight: 600;
|
|
1220
1224
|
color: ${({theme:l})=>l.colors.text};
|
|
1221
1225
|
line-height: 1.3;
|
|
1222
|
-
`,
|
|
1226
|
+
`,z0=R.div`
|
|
1223
1227
|
display: flex;
|
|
1224
1228
|
align-items: center;
|
|
1225
1229
|
gap: 4px;
|
|
1226
1230
|
flex-shrink: 0;
|
|
1227
|
-
`,
|
|
1231
|
+
`,A0=R.button`
|
|
1228
1232
|
padding: 4px 8px;
|
|
1229
1233
|
border: none;
|
|
1230
1234
|
border-radius: 6px;
|
|
@@ -1240,7 +1244,7 @@ Error generating stack: `+a.message+`
|
|
|
1240
1244
|
background-color: ${({theme:l})=>l.colors.surface};
|
|
1241
1245
|
color: ${({theme:l})=>l.colors.text};
|
|
1242
1246
|
}
|
|
1243
|
-
`,
|
|
1247
|
+
`,M0=R.button`
|
|
1244
1248
|
display: flex;
|
|
1245
1249
|
align-items: center;
|
|
1246
1250
|
justify-content: center;
|
|
@@ -1258,22 +1262,22 @@ Error generating stack: `+a.message+`
|
|
|
1258
1262
|
background-color: ${({theme:l})=>l.colors.surface};
|
|
1259
1263
|
color: ${({theme:l})=>l.colors.text};
|
|
1260
1264
|
}
|
|
1261
|
-
`,
|
|
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`
|
|
1262
1266
|
display: flex;
|
|
1263
1267
|
align-items: center;
|
|
1264
1268
|
gap: 8px;
|
|
1265
1269
|
width: 100%;
|
|
1266
1270
|
padding: 8px 10px;
|
|
1267
|
-
border: 1px solid ${({theme:l,isSelected:
|
|
1271
|
+
border: 1px solid ${({theme:l,isSelected:r})=>r?l.colors.surveyOptionBorderSelected:l.colors.surveyOptionBorder};
|
|
1268
1272
|
border-radius: 8px;
|
|
1269
|
-
background-color: ${({theme:l,isSelected:
|
|
1273
|
+
background-color: ${({theme:l,isSelected:r})=>r?l.colors.surveyOptionBgSelected:l.colors.surveyOptionBg};
|
|
1270
1274
|
cursor: pointer;
|
|
1271
1275
|
transition: all 0.2s ease;
|
|
1272
1276
|
text-align: left;
|
|
1273
1277
|
|
|
1274
1278
|
&:hover {
|
|
1275
|
-
background-color: ${({theme:l,isSelected:
|
|
1276
|
-
border-color: ${({theme:l,isSelected:
|
|
1279
|
+
background-color: ${({theme:l,isSelected:r})=>r?l.colors.surveyOptionBgSelected:l.colors.surveyOptionBgHover};
|
|
1280
|
+
border-color: ${({theme:l,isSelected:r})=>r?l.colors.surveyOptionBorderSelected:l.colors.primary};
|
|
1277
1281
|
|
|
1278
1282
|
.choice-arrow {
|
|
1279
1283
|
opacity: 1;
|
|
@@ -1283,7 +1287,7 @@ Error generating stack: `+a.message+`
|
|
|
1283
1287
|
&:active {
|
|
1284
1288
|
transform: scale(0.99);
|
|
1285
1289
|
}
|
|
1286
|
-
`,
|
|
1290
|
+
`,_0=R.span`
|
|
1287
1291
|
display: flex;
|
|
1288
1292
|
align-items: center;
|
|
1289
1293
|
justify-content: center;
|
|
@@ -1291,35 +1295,35 @@ Error generating stack: `+a.message+`
|
|
|
1291
1295
|
height: 20px;
|
|
1292
1296
|
padding: 0 5px;
|
|
1293
1297
|
border-radius: 5px;
|
|
1294
|
-
background-color: ${({theme:l,isSelected:
|
|
1298
|
+
background-color: ${({theme:l,isSelected:r})=>r?l.colors.primary:l.colors.surveyNumberBg};
|
|
1295
1299
|
color: ${({theme:l})=>l.colors.surveyNumberText};
|
|
1296
1300
|
font-family: ${({theme:l})=>l.fontFamily};
|
|
1297
1301
|
font-size: 11px;
|
|
1298
1302
|
font-weight: 600;
|
|
1299
|
-
`,
|
|
1303
|
+
`,O0=R.span`
|
|
1300
1304
|
flex: 1;
|
|
1301
1305
|
font-family: ${({theme:l})=>l.fontFamily};
|
|
1302
1306
|
font-size: 13px;
|
|
1303
1307
|
color: ${({theme:l})=>l.colors.text};
|
|
1304
|
-
|
|
1308
|
+
`,$0=R.span`
|
|
1305
1309
|
display: flex;
|
|
1306
1310
|
align-items: center;
|
|
1307
1311
|
color: ${({theme:l})=>l.colors.textLight};
|
|
1308
1312
|
opacity: ${({isVisible:l})=>l?1:0};
|
|
1309
1313
|
transition: opacity 0.2s ease;
|
|
1310
|
-
`,
|
|
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`
|
|
1311
1315
|
display: flex;
|
|
1312
1316
|
flex-direction: column;
|
|
1313
1317
|
gap: 6px;
|
|
1314
|
-
`,
|
|
1318
|
+
`,D0=R.button`
|
|
1315
1319
|
display: flex;
|
|
1316
1320
|
align-items: center;
|
|
1317
1321
|
gap: 8px;
|
|
1318
1322
|
width: 100%;
|
|
1319
1323
|
padding: 8px 10px;
|
|
1320
|
-
border: 1px solid ${({theme:l,isActive:
|
|
1324
|
+
border: 1px solid ${({theme:l,isActive:r})=>r?l.colors.surveyOptionBorderSelected:l.colors.surveyOptionBorder};
|
|
1321
1325
|
border-radius: 8px;
|
|
1322
|
-
background-color: ${({theme:l,isActive:
|
|
1326
|
+
background-color: ${({theme:l,isActive:r})=>r?l.colors.surveyOptionBgSelected:l.colors.surveyOptionBg};
|
|
1323
1327
|
cursor: pointer;
|
|
1324
1328
|
transition: all 0.2s ease;
|
|
1325
1329
|
text-align: left;
|
|
@@ -1327,7 +1331,7 @@ Error generating stack: `+a.message+`
|
|
|
1327
1331
|
&:hover {
|
|
1328
1332
|
background-color: ${({theme:l})=>l.colors.surveyOptionBgHover};
|
|
1329
1333
|
}
|
|
1330
|
-
`,
|
|
1334
|
+
`,R0=R.span`
|
|
1331
1335
|
display: flex;
|
|
1332
1336
|
align-items: center;
|
|
1333
1337
|
justify-content: center;
|
|
@@ -1337,16 +1341,16 @@ Error generating stack: `+a.message+`
|
|
|
1337
1341
|
border-radius: 5px;
|
|
1338
1342
|
background-color: ${({theme:l})=>l.colors.surveyNumberBg};
|
|
1339
1343
|
color: ${({theme:l})=>l.colors.surveyNumberText};
|
|
1340
|
-
`,
|
|
1344
|
+
`,N0=R.span`
|
|
1341
1345
|
flex: 1;
|
|
1342
1346
|
font-family: ${({theme:l})=>l.fontFamily};
|
|
1343
1347
|
font-size: 13px;
|
|
1344
1348
|
color: ${({theme:l})=>l.colors.textLight};
|
|
1345
|
-
|
|
1349
|
+
`,j0=R.div`
|
|
1346
1350
|
display: flex;
|
|
1347
1351
|
gap: 8px;
|
|
1348
1352
|
align-items: center;
|
|
1349
|
-
`,
|
|
1353
|
+
`,H0=R.input`
|
|
1350
1354
|
flex: 1;
|
|
1351
1355
|
padding: 8px 12px;
|
|
1352
1356
|
border: 1px solid ${({theme:l})=>l.colors.border};
|
|
@@ -1365,7 +1369,7 @@ Error generating stack: `+a.message+`
|
|
|
1365
1369
|
&::placeholder {
|
|
1366
1370
|
color: ${({theme:l})=>l.colors.textLight};
|
|
1367
1371
|
}
|
|
1368
|
-
`,
|
|
1372
|
+
`,k0=R.button`
|
|
1369
1373
|
display: flex;
|
|
1370
1374
|
align-items: center;
|
|
1371
1375
|
justify-content: center;
|
|
@@ -1373,7 +1377,7 @@ Error generating stack: `+a.message+`
|
|
|
1373
1377
|
height: 36px;
|
|
1374
1378
|
border: none;
|
|
1375
1379
|
border-radius: 50%;
|
|
1376
|
-
background-color: ${({theme:l,disabled:
|
|
1380
|
+
background-color: ${({theme:l,disabled:r})=>r?l.colors.textLight:l.colors.primary};
|
|
1377
1381
|
color: ${({theme:l})=>l.colors.white};
|
|
1378
1382
|
cursor: ${({disabled:l})=>l?"not-allowed":"pointer"};
|
|
1379
1383
|
transition: background-color 0.2s ease, transform 0.1s ease;
|
|
@@ -1385,24 +1389,24 @@ Error generating stack: `+a.message+`
|
|
|
1385
1389
|
&:active:not(:disabled) {
|
|
1386
1390
|
transform: scale(0.95);
|
|
1387
1391
|
}
|
|
1388
|
-
`,
|
|
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`
|
|
1389
1393
|
display: flex;
|
|
1390
1394
|
flex-direction: column;
|
|
1391
1395
|
gap: 4px;
|
|
1392
|
-
`,
|
|
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`
|
|
1393
1397
|
display: flex;
|
|
1394
1398
|
flex-direction: column;
|
|
1395
1399
|
gap: 8px;
|
|
1396
|
-
`,
|
|
1400
|
+
`,L0=R.div`
|
|
1397
1401
|
display: flex;
|
|
1398
1402
|
flex-direction: column;
|
|
1399
1403
|
gap: 4px;
|
|
1400
|
-
`,
|
|
1404
|
+
`,Y0=R.div`
|
|
1401
1405
|
position: relative;
|
|
1402
1406
|
height: 8px;
|
|
1403
1407
|
border-radius: 4px;
|
|
1404
1408
|
background-color: ${({theme:l})=>l.colors.borderLight};
|
|
1405
|
-
`,
|
|
1409
|
+
`,G0=R.div`
|
|
1406
1410
|
position: absolute;
|
|
1407
1411
|
left: 0;
|
|
1408
1412
|
top: 0;
|
|
@@ -1411,7 +1415,7 @@ Error generating stack: `+a.message+`
|
|
|
1411
1415
|
border-radius: 4px;
|
|
1412
1416
|
background-color: ${({theme:l})=>l.colors.primary};
|
|
1413
1417
|
transition: width 0.1s ease;
|
|
1414
|
-
`,
|
|
1418
|
+
`,Q0=R.input`
|
|
1415
1419
|
position: absolute;
|
|
1416
1420
|
top: -6px;
|
|
1417
1421
|
left: 0;
|
|
@@ -1420,9 +1424,9 @@ Error generating stack: `+a.message+`
|
|
|
1420
1424
|
margin: 0;
|
|
1421
1425
|
opacity: 0;
|
|
1422
1426
|
cursor: pointer;
|
|
1423
|
-
`,
|
|
1427
|
+
`,X0=R.div`
|
|
1424
1428
|
position: relative;
|
|
1425
|
-
`,
|
|
1429
|
+
`,V0=R.div`
|
|
1426
1430
|
display: flex;
|
|
1427
1431
|
align-items: center;
|
|
1428
1432
|
justify-content: center;
|
|
@@ -1433,18 +1437,18 @@ Error generating stack: `+a.message+`
|
|
|
1433
1437
|
font-size: 18px;
|
|
1434
1438
|
font-weight: 600;
|
|
1435
1439
|
color: ${({theme:l})=>l.colors.primary};
|
|
1436
|
-
`,
|
|
1440
|
+
`,Z0=R.div`
|
|
1437
1441
|
display: flex;
|
|
1438
1442
|
justify-content: space-between;
|
|
1439
|
-
`,
|
|
1443
|
+
`,hf=R.span`
|
|
1440
1444
|
font-family: ${({theme:l})=>l.fontFamily};
|
|
1441
1445
|
font-size: 11px;
|
|
1442
1446
|
color: ${({theme:l})=>l.colors.textLight};
|
|
1443
|
-
`,
|
|
1447
|
+
`,K0=R.div`
|
|
1444
1448
|
display: flex;
|
|
1445
1449
|
justify-content: space-between;
|
|
1446
1450
|
align-items: center;
|
|
1447
|
-
`,
|
|
1451
|
+
`,J0=R.button`
|
|
1448
1452
|
display: flex;
|
|
1449
1453
|
align-items: center;
|
|
1450
1454
|
justify-content: center;
|
|
@@ -1464,7 +1468,7 @@ Error generating stack: `+a.message+`
|
|
|
1464
1468
|
&:active {
|
|
1465
1469
|
transform: scale(0.95);
|
|
1466
1470
|
}
|
|
1467
|
-
`,
|
|
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`
|
|
1468
1472
|
display: flex;
|
|
1469
1473
|
flex-direction: column;
|
|
1470
1474
|
border: 1.5px solid ${({theme:l})=>l.colors.border};
|
|
@@ -1476,7 +1480,7 @@ Error generating stack: `+a.message+`
|
|
|
1476
1480
|
border-color: ${({theme:l})=>l.colors.primary};
|
|
1477
1481
|
box-shadow: 0 0 0 3px ${({theme:l})=>l.colors.accentLight};
|
|
1478
1482
|
}
|
|
1479
|
-
`,
|
|
1483
|
+
`,F0=R.textarea`
|
|
1480
1484
|
flex: 1;
|
|
1481
1485
|
padding: 12px 16px 8px;
|
|
1482
1486
|
border: none;
|
|
@@ -1494,13 +1498,13 @@ Error generating stack: `+a.message+`
|
|
|
1494
1498
|
&::placeholder {
|
|
1495
1499
|
color: ${({theme:l})=>l.colors.textLight};
|
|
1496
1500
|
}
|
|
1497
|
-
`,
|
|
1501
|
+
`,I0=R.div`
|
|
1498
1502
|
display: flex;
|
|
1499
1503
|
justify-content: flex-end;
|
|
1500
1504
|
align-items: center;
|
|
1501
1505
|
gap: 8px;
|
|
1502
1506
|
padding: 4px 12px 8px;
|
|
1503
|
-
`,
|
|
1507
|
+
`,P0=R.button`
|
|
1504
1508
|
display: flex;
|
|
1505
1509
|
align-items: center;
|
|
1506
1510
|
justify-content: center;
|
|
@@ -1508,7 +1512,7 @@ Error generating stack: `+a.message+`
|
|
|
1508
1512
|
height: 36px;
|
|
1509
1513
|
border: none;
|
|
1510
1514
|
border-radius: 50%;
|
|
1511
|
-
background-color: ${({theme:l,disabled:
|
|
1515
|
+
background-color: ${({theme:l,disabled:r})=>r?l.colors.textLight:l.colors.primary};
|
|
1512
1516
|
color: ${({theme:l})=>l.colors.white};
|
|
1513
1517
|
cursor: ${({disabled:l})=>l?"not-allowed":"pointer"};
|
|
1514
1518
|
transition: background-color 0.2s ease, transform 0.1s ease;
|
|
@@ -1520,7 +1524,7 @@ Error generating stack: `+a.message+`
|
|
|
1520
1524
|
&:active:not(:disabled) {
|
|
1521
1525
|
transform: scale(0.95);
|
|
1522
1526
|
}
|
|
1523
|
-
`,
|
|
1527
|
+
`,eb=l=>en`
|
|
1524
1528
|
0% {
|
|
1525
1529
|
box-shadow: 0 0 0 0 ${l}66;
|
|
1526
1530
|
}
|
|
@@ -1530,7 +1534,7 @@ Error generating stack: `+a.message+`
|
|
|
1530
1534
|
100% {
|
|
1531
1535
|
box-shadow: 0 0 0 0 ${l}00;
|
|
1532
1536
|
}
|
|
1533
|
-
`,
|
|
1537
|
+
`,tb=R.button`
|
|
1534
1538
|
display: flex;
|
|
1535
1539
|
align-items: center;
|
|
1536
1540
|
justify-content: center;
|
|
@@ -1538,29 +1542,29 @@ Error generating stack: `+a.message+`
|
|
|
1538
1542
|
height: 36px;
|
|
1539
1543
|
border: none;
|
|
1540
1544
|
border-radius: 50%;
|
|
1541
|
-
background-color: ${({theme:l,isRecording:
|
|
1542
|
-
color: ${({theme:l,isRecording:
|
|
1545
|
+
background-color: ${({theme:l,isRecording:r})=>r?l.colors.recording:l.colors.surface};
|
|
1546
|
+
color: ${({theme:l,isRecording:r})=>r?l.colors.white:l.colors.textLight};
|
|
1543
1547
|
cursor: pointer;
|
|
1544
1548
|
transition: background-color 0.2s ease, transform 0.1s ease, color 0.2s ease;
|
|
1545
|
-
animation: ${({isRecording:l,theme:
|
|
1549
|
+
animation: ${({isRecording:l,theme:r})=>l?eb(r.colors.recording):"none"} 1.5s infinite;
|
|
1546
1550
|
|
|
1547
1551
|
&:hover {
|
|
1548
|
-
background-color: ${({theme:l,isRecording:
|
|
1549
|
-
color: ${({theme:l,isRecording:
|
|
1552
|
+
background-color: ${({theme:l,isRecording:r})=>r?l.colors.recording:l.colors.border};
|
|
1553
|
+
color: ${({theme:l,isRecording:r})=>r?l.colors.white:l.colors.text};
|
|
1550
1554
|
}
|
|
1551
1555
|
|
|
1552
1556
|
&:active {
|
|
1553
1557
|
transform: scale(0.95);
|
|
1554
1558
|
}
|
|
1555
|
-
`,
|
|
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`
|
|
1556
1560
|
display: flex;
|
|
1557
1561
|
flex-direction: column;
|
|
1558
1562
|
gap: 8px;
|
|
1559
|
-
`,
|
|
1563
|
+
`,ab=R.div`
|
|
1560
1564
|
display: flex;
|
|
1561
1565
|
gap: 8px;
|
|
1562
1566
|
align-items: center;
|
|
1563
|
-
`,
|
|
1567
|
+
`,lb=R.input`
|
|
1564
1568
|
flex: 1;
|
|
1565
1569
|
padding: 10px 12px;
|
|
1566
1570
|
border: 1px solid ${({theme:l})=>l.colors.border};
|
|
@@ -1587,7 +1591,7 @@ Error generating stack: `+a.message+`
|
|
|
1587
1591
|
margin: 0;
|
|
1588
1592
|
}
|
|
1589
1593
|
-moz-appearance: textfield;
|
|
1590
|
-
`,
|
|
1594
|
+
`,ib=R.button`
|
|
1591
1595
|
display: flex;
|
|
1592
1596
|
align-items: center;
|
|
1593
1597
|
justify-content: center;
|
|
@@ -1595,7 +1599,7 @@ Error generating stack: `+a.message+`
|
|
|
1595
1599
|
height: 36px;
|
|
1596
1600
|
border: none;
|
|
1597
1601
|
border-radius: 50%;
|
|
1598
|
-
background-color: ${({theme:l,disabled:
|
|
1602
|
+
background-color: ${({theme:l,disabled:r})=>r?l.colors.textLight:l.colors.primary};
|
|
1599
1603
|
color: ${({theme:l})=>l.colors.white};
|
|
1600
1604
|
cursor: ${({disabled:l})=>l?"not-allowed":"pointer"};
|
|
1601
1605
|
transition: background-color 0.2s ease, transform 0.1s ease;
|
|
@@ -1607,10 +1611,10 @@ Error generating stack: `+a.message+`
|
|
|
1607
1611
|
&:active:not(:disabled) {
|
|
1608
1612
|
transform: scale(0.95);
|
|
1609
1613
|
}
|
|
1610
|
-
`,
|
|
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`
|
|
1611
1615
|
display: flex;
|
|
1612
1616
|
gap: 8px;
|
|
1613
|
-
`,
|
|
1617
|
+
`,gf=R.button`
|
|
1614
1618
|
flex: 1;
|
|
1615
1619
|
display: flex;
|
|
1616
1620
|
align-items: center;
|
|
@@ -1627,23 +1631,23 @@ Error generating stack: `+a.message+`
|
|
|
1627
1631
|
transition: all 0.2s ease;
|
|
1628
1632
|
|
|
1629
1633
|
&:hover {
|
|
1630
|
-
background-color: ${({theme:l,variant:
|
|
1631
|
-
border-color: ${({theme:l,variant:
|
|
1634
|
+
background-color: ${({theme:l,variant:r})=>r==="yes"?l.colors.success:l.colors.error};
|
|
1635
|
+
border-color: ${({theme:l,variant:r})=>r==="yes"?l.colors.success:l.colors.error};
|
|
1632
1636
|
color: ${({theme:l})=>l.colors.white};
|
|
1633
1637
|
}
|
|
1634
1638
|
|
|
1635
1639
|
&:active {
|
|
1636
1640
|
transform: scale(0.98);
|
|
1637
1641
|
}
|
|
1638
|
-
`,
|
|
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`
|
|
1639
1643
|
display: flex;
|
|
1640
1644
|
flex-direction: column;
|
|
1641
1645
|
gap: 8px;
|
|
1642
|
-
`,
|
|
1646
|
+
`,ub=R.div`
|
|
1643
1647
|
display: flex;
|
|
1644
1648
|
gap: 8px;
|
|
1645
1649
|
align-items: center;
|
|
1646
|
-
`,
|
|
1650
|
+
`,cb=R.input`
|
|
1647
1651
|
flex: 1;
|
|
1648
1652
|
padding: 10px 12px;
|
|
1649
1653
|
border: 1px solid ${({theme:l})=>l.colors.border};
|
|
@@ -1669,7 +1673,7 @@ Error generating stack: `+a.message+`
|
|
|
1669
1673
|
opacity: 1;
|
|
1670
1674
|
}
|
|
1671
1675
|
}
|
|
1672
|
-
`,
|
|
1676
|
+
`,sb=R.button`
|
|
1673
1677
|
display: flex;
|
|
1674
1678
|
align-items: center;
|
|
1675
1679
|
justify-content: center;
|
|
@@ -1677,7 +1681,7 @@ Error generating stack: `+a.message+`
|
|
|
1677
1681
|
height: 36px;
|
|
1678
1682
|
border: none;
|
|
1679
1683
|
border-radius: 50%;
|
|
1680
|
-
background-color: ${({theme:l,disabled:
|
|
1684
|
+
background-color: ${({theme:l,disabled:r})=>r?l.colors.textLight:l.colors.primary};
|
|
1681
1685
|
color: ${({theme:l})=>l.colors.white};
|
|
1682
1686
|
cursor: ${({disabled:l})=>l?"not-allowed":"pointer"};
|
|
1683
1687
|
transition: background-color 0.2s ease, transform 0.1s ease;
|
|
@@ -1689,7 +1693,7 @@ Error generating stack: `+a.message+`
|
|
|
1689
1693
|
&:active:not(:disabled) {
|
|
1690
1694
|
transform: scale(0.95);
|
|
1691
1695
|
}
|
|
1692
|
-
`,
|
|
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`
|
|
1693
1697
|
display: flex;
|
|
1694
1698
|
flex-direction: column;
|
|
1695
1699
|
margin: 12px 16px 6px;
|
|
@@ -1699,17 +1703,17 @@ Error generating stack: `+a.message+`
|
|
|
1699
1703
|
overflow: hidden;
|
|
1700
1704
|
max-height: 350px;
|
|
1701
1705
|
overflow-y: auto;
|
|
1702
|
-
`,
|
|
1706
|
+
`,db=R.div`
|
|
1703
1707
|
padding: 0 12px 12px;
|
|
1704
|
-
`,
|
|
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`
|
|
1705
1709
|
background-color: ${({theme:l})=>l.colors.background};
|
|
1706
1710
|
border-radius: 0 0 ${({theme:l})=>l.borderRadius} ${({theme:l})=>l.borderRadius};
|
|
1707
|
-
`,
|
|
1711
|
+
`,hb=R.div`
|
|
1708
1712
|
display: flex;
|
|
1709
1713
|
flex-direction: column;
|
|
1710
1714
|
border: 1.5px solid ${({theme:l})=>l.colors.border};
|
|
1711
1715
|
border-radius: 12px;
|
|
1712
|
-
background-color: ${({theme:l,disabled:
|
|
1716
|
+
background-color: ${({theme:l,disabled:r})=>r?l.colors.surface:l.colors.background};
|
|
1713
1717
|
margin: 12px 16px 6px;
|
|
1714
1718
|
transition: border-color 0.2s ease, box-shadow 0.2s ease;
|
|
1715
1719
|
|
|
@@ -1717,7 +1721,7 @@ Error generating stack: `+a.message+`
|
|
|
1717
1721
|
border-color: ${({theme:l})=>l.colors.primary};
|
|
1718
1722
|
box-shadow: 0 0 0 3px ${({theme:l})=>l.colors.accentLight};
|
|
1719
1723
|
}
|
|
1720
|
-
`,
|
|
1724
|
+
`,pb=R.textarea`
|
|
1721
1725
|
flex: 1;
|
|
1722
1726
|
padding: 12px 16px 8px;
|
|
1723
1727
|
border: none;
|
|
@@ -1739,19 +1743,19 @@ Error generating stack: `+a.message+`
|
|
|
1739
1743
|
&:disabled {
|
|
1740
1744
|
cursor: not-allowed;
|
|
1741
1745
|
}
|
|
1742
|
-
`,
|
|
1746
|
+
`,gb=R.div`
|
|
1743
1747
|
display: flex;
|
|
1744
1748
|
justify-content: flex-end;
|
|
1745
1749
|
align-items: center;
|
|
1746
1750
|
gap: 8px;
|
|
1747
1751
|
padding: 4px 12px 8px;
|
|
1748
|
-
`,
|
|
1752
|
+
`,vf=R.div`
|
|
1749
1753
|
padding: 0 16px 10px;
|
|
1750
1754
|
text-align: center;
|
|
1751
1755
|
font-size: 10px;
|
|
1752
1756
|
color: ${({theme:l})=>l.colors.textLight};
|
|
1753
1757
|
font-family: ${({theme:l})=>l.fontFamily};
|
|
1754
|
-
`,
|
|
1758
|
+
`,mb=R.button`
|
|
1755
1759
|
display: flex;
|
|
1756
1760
|
align-items: center;
|
|
1757
1761
|
justify-content: center;
|
|
@@ -1759,7 +1763,7 @@ Error generating stack: `+a.message+`
|
|
|
1759
1763
|
height: 36px;
|
|
1760
1764
|
border: none;
|
|
1761
1765
|
border-radius: 50%;
|
|
1762
|
-
background-color: ${({theme:l,disabled:
|
|
1766
|
+
background-color: ${({theme:l,disabled:r})=>r?l.colors.textLight:l.colors.primary};
|
|
1763
1767
|
color: ${({theme:l})=>l.colors.white};
|
|
1764
1768
|
cursor: ${({disabled:l})=>l?"not-allowed":"pointer"};
|
|
1765
1769
|
transition: background-color 0.2s ease, transform 0.1s ease;
|
|
@@ -1771,7 +1775,7 @@ Error generating stack: `+a.message+`
|
|
|
1771
1775
|
&:active:not(:disabled) {
|
|
1772
1776
|
transform: scale(0.95);
|
|
1773
1777
|
}
|
|
1774
|
-
`,
|
|
1778
|
+
`,yb=l=>en`
|
|
1775
1779
|
0% {
|
|
1776
1780
|
box-shadow: 0 0 0 0 ${l}66;
|
|
1777
1781
|
}
|
|
@@ -1781,7 +1785,7 @@ Error generating stack: `+a.message+`
|
|
|
1781
1785
|
100% {
|
|
1782
1786
|
box-shadow: 0 0 0 0 ${l}00;
|
|
1783
1787
|
}
|
|
1784
|
-
`,
|
|
1788
|
+
`,bb=R.button`
|
|
1785
1789
|
display: flex;
|
|
1786
1790
|
align-items: center;
|
|
1787
1791
|
justify-content: center;
|
|
@@ -1789,27 +1793,27 @@ Error generating stack: `+a.message+`
|
|
|
1789
1793
|
height: 36px;
|
|
1790
1794
|
border: none;
|
|
1791
1795
|
border-radius: 50%;
|
|
1792
|
-
background-color: ${({theme:l,isRecording:
|
|
1793
|
-
color: ${({theme:l,isRecording:
|
|
1796
|
+
background-color: ${({theme:l,isRecording:r})=>r?l.colors.recording:l.colors.surface};
|
|
1797
|
+
color: ${({theme:l,isRecording:r})=>r?l.colors.white:l.colors.textLight};
|
|
1794
1798
|
cursor: pointer;
|
|
1795
1799
|
transition: background-color 0.2s ease, transform 0.1s ease, color 0.2s ease;
|
|
1796
|
-
animation: ${({isRecording:l,theme:
|
|
1800
|
+
animation: ${({isRecording:l,theme:r})=>l?yb(r.colors.recording):"none"} 1.5s infinite;
|
|
1797
1801
|
|
|
1798
1802
|
&:hover {
|
|
1799
|
-
background-color: ${({theme:l,isRecording:
|
|
1800
|
-
color: ${({theme:l,isRecording:
|
|
1803
|
+
background-color: ${({theme:l,isRecording:r})=>r?l.colors.recording:l.colors.border};
|
|
1804
|
+
color: ${({theme:l,isRecording:r})=>r?l.colors.white:l.colors.text};
|
|
1801
1805
|
}
|
|
1802
1806
|
|
|
1803
1807
|
&:active {
|
|
1804
1808
|
transform: scale(0.95);
|
|
1805
1809
|
}
|
|
1806
|
-
`,
|
|
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`
|
|
1807
1811
|
from { opacity: 0; }
|
|
1808
1812
|
to { opacity: 1; }
|
|
1809
|
-
`,
|
|
1813
|
+
`,Sb=en`
|
|
1810
1814
|
from { opacity: 1; }
|
|
1811
1815
|
to { opacity: 0; }
|
|
1812
|
-
`,
|
|
1816
|
+
`,Cb=R.div`
|
|
1813
1817
|
position: absolute;
|
|
1814
1818
|
inset: 0;
|
|
1815
1819
|
z-index: 10;
|
|
@@ -1818,12 +1822,12 @@ Error generating stack: `+a.message+`
|
|
|
1818
1822
|
background-color: ${({theme:l})=>l.colors.background};
|
|
1819
1823
|
border-radius: inherit;
|
|
1820
1824
|
overflow: hidden;
|
|
1821
|
-
animation: ${({isClosing:l})=>l?
|
|
1825
|
+
animation: ${({isClosing:l})=>l?X`${Sb} 0.2s ease-in forwards`:X`${xb} 0.2s ease-out`};
|
|
1822
1826
|
|
|
1823
1827
|
@media (prefers-reduced-motion: reduce) {
|
|
1824
1828
|
animation: none;
|
|
1825
1829
|
}
|
|
1826
|
-
`,
|
|
1830
|
+
`,Tb=R.div`
|
|
1827
1831
|
display: flex;
|
|
1828
1832
|
align-items: center;
|
|
1829
1833
|
justify-content: space-between;
|
|
@@ -1831,7 +1835,7 @@ Error generating stack: `+a.message+`
|
|
|
1831
1835
|
background-color: ${({theme:l})=>l.colors.secondary};
|
|
1832
1836
|
color: ${({theme:l})=>l.colors.headerText};
|
|
1833
1837
|
flex-shrink: 0;
|
|
1834
|
-
`,
|
|
1838
|
+
`,Eb=R.h3`
|
|
1835
1839
|
margin: 0;
|
|
1836
1840
|
font-family: ${({theme:l})=>l.fontFamily};
|
|
1837
1841
|
font-size: 16px;
|
|
@@ -1842,11 +1846,11 @@ Error generating stack: `+a.message+`
|
|
|
1842
1846
|
white-space: nowrap;
|
|
1843
1847
|
flex: 1;
|
|
1844
1848
|
margin-right: 8px;
|
|
1845
|
-
`,
|
|
1849
|
+
`,zb=R.div`
|
|
1846
1850
|
display: flex;
|
|
1847
1851
|
align-items: center;
|
|
1848
1852
|
gap: 6px;
|
|
1849
|
-
`,
|
|
1853
|
+
`,xf=R.button`
|
|
1850
1854
|
display: flex;
|
|
1851
1855
|
align-items: center;
|
|
1852
1856
|
justify-content: center;
|
|
@@ -1868,7 +1872,7 @@ Error generating stack: `+a.message+`
|
|
|
1868
1872
|
&:active {
|
|
1869
1873
|
background-color: ${({theme:l})=>`${l.colors.headerText}66`};
|
|
1870
1874
|
}
|
|
1871
|
-
`,
|
|
1875
|
+
`,Ab=R.div`
|
|
1872
1876
|
flex: 1;
|
|
1873
1877
|
overflow-y: auto;
|
|
1874
1878
|
-webkit-overflow-scrolling: touch;
|
|
@@ -1888,21 +1892,21 @@ Error generating stack: `+a.message+`
|
|
|
1888
1892
|
&::-webkit-scrollbar-thumb:hover {
|
|
1889
1893
|
background-color: ${({theme:l})=>l.colors.scrollbarThumbHover};
|
|
1890
1894
|
}
|
|
1891
|
-
`,
|
|
1895
|
+
`,Mb=R.img`
|
|
1892
1896
|
max-width: 100%;
|
|
1893
1897
|
max-height: 35%;
|
|
1894
1898
|
height: auto;
|
|
1895
1899
|
display: block;
|
|
1896
1900
|
margin: 16px auto 0;
|
|
1897
1901
|
border-radius: 8px;
|
|
1898
|
-
`,
|
|
1902
|
+
`,wb=R.video`
|
|
1899
1903
|
max-width: 90%;
|
|
1900
1904
|
max-height: 360px;
|
|
1901
1905
|
display: block;
|
|
1902
1906
|
margin: 16px auto 0;
|
|
1903
1907
|
border-radius: 8px;
|
|
1904
1908
|
background-color: ${({theme:l})=>l.colors.surface};
|
|
1905
|
-
`,
|
|
1909
|
+
`,Sf=R.div`
|
|
1906
1910
|
max-width: 90%;
|
|
1907
1911
|
margin: 16px auto 0;
|
|
1908
1912
|
padding: 16px;
|
|
@@ -1912,14 +1916,14 @@ Error generating stack: `+a.message+`
|
|
|
1912
1916
|
flex-direction: column;
|
|
1913
1917
|
align-items: center;
|
|
1914
1918
|
gap: 12px;
|
|
1915
|
-
`,
|
|
1919
|
+
`,Cf=R.audio`
|
|
1916
1920
|
width: 100%;
|
|
1917
|
-
`,
|
|
1921
|
+
`,_b=R.img`
|
|
1918
1922
|
width: 80px;
|
|
1919
1923
|
height: 80px;
|
|
1920
1924
|
border-radius: 8px;
|
|
1921
1925
|
object-fit: cover;
|
|
1922
|
-
`,
|
|
1926
|
+
`,Ob=R.div`
|
|
1923
1927
|
max-width: 90%;
|
|
1924
1928
|
margin: 16px auto 0;
|
|
1925
1929
|
padding: 16px;
|
|
@@ -1929,7 +1933,7 @@ Error generating stack: `+a.message+`
|
|
|
1929
1933
|
align-items: center;
|
|
1930
1934
|
gap: 12px;
|
|
1931
1935
|
background-color: ${({theme:l})=>l.colors.surface};
|
|
1932
|
-
|
|
1936
|
+
`,$b=R.a`
|
|
1933
1937
|
display: inline-flex;
|
|
1934
1938
|
align-items: center;
|
|
1935
1939
|
gap: 8px;
|
|
@@ -1946,12 +1950,12 @@ Error generating stack: `+a.message+`
|
|
|
1946
1950
|
&:hover {
|
|
1947
1951
|
background-color: ${({theme:l})=>l.colors.primaryDark};
|
|
1948
1952
|
}
|
|
1949
|
-
`,
|
|
1953
|
+
`,Bb=R.img`
|
|
1950
1954
|
width: 100%;
|
|
1951
1955
|
max-height: 120px;
|
|
1952
1956
|
object-fit: cover;
|
|
1953
1957
|
border-radius: 8px;
|
|
1954
|
-
`,
|
|
1958
|
+
`,Tf=R.div`
|
|
1955
1959
|
padding: 16px;
|
|
1956
1960
|
font-family: ${({theme:l})=>l.fontFamily};
|
|
1957
1961
|
font-size: 14px;
|
|
@@ -2003,7 +2007,7 @@ Error generating stack: `+a.message+`
|
|
|
2003
2007
|
em {
|
|
2004
2008
|
font-style: italic;
|
|
2005
2009
|
}
|
|
2006
|
-
`,
|
|
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`
|
|
2007
2011
|
from {
|
|
2008
2012
|
opacity: 0;
|
|
2009
2013
|
transform: translateY(20px) scale(0.95);
|
|
@@ -2012,7 +2016,7 @@ Error generating stack: `+a.message+`
|
|
|
2012
2016
|
opacity: 1;
|
|
2013
2017
|
transform: translateY(0) scale(1);
|
|
2014
2018
|
}
|
|
2015
|
-
`,
|
|
2019
|
+
`,Nb=en`
|
|
2016
2020
|
from {
|
|
2017
2021
|
opacity: 1;
|
|
2018
2022
|
transform: translateY(0) scale(1);
|
|
@@ -2021,14 +2025,14 @@ Error generating stack: `+a.message+`
|
|
|
2021
2025
|
opacity: 0;
|
|
2022
2026
|
transform: translateY(20px) scale(0.95);
|
|
2023
2027
|
}
|
|
2024
|
-
|
|
2028
|
+
`,jb=en`
|
|
2025
2029
|
from {
|
|
2026
2030
|
opacity: 0;
|
|
2027
2031
|
}
|
|
2028
2032
|
to {
|
|
2029
2033
|
opacity: 1;
|
|
2030
2034
|
}
|
|
2031
|
-
`,
|
|
2035
|
+
`,Hb=R.div`
|
|
2032
2036
|
display: ${({isVisible:l})=>l?"block":"none"};
|
|
2033
2037
|
position: fixed;
|
|
2034
2038
|
top: 0;
|
|
@@ -2038,22 +2042,22 @@ Error generating stack: `+a.message+`
|
|
|
2038
2042
|
background-color: rgba(0, 0, 0, 0.5);
|
|
2039
2043
|
backdrop-filter: blur(4px);
|
|
2040
2044
|
z-index: 2147483646;
|
|
2041
|
-
animation: ${
|
|
2045
|
+
animation: ${jb} 0.2s ease-out;
|
|
2042
2046
|
|
|
2043
2047
|
@media (prefers-reduced-motion: reduce) {
|
|
2044
2048
|
animation: none;
|
|
2045
2049
|
}
|
|
2046
|
-
`,
|
|
2047
|
-
position: ${({floatingMode:l,useAbsolutePositioning:
|
|
2048
|
-
${({floatingMode:l,position:
|
|
2050
|
+
`,kb=R.div`
|
|
2051
|
+
position: ${({floatingMode:l,useAbsolutePositioning:r,isExpanded:s})=>s?"fixed":r?"absolute":l?"fixed":"relative"};
|
|
2052
|
+
${({floatingMode:l,position:r,isExpanded:s,useAbsolutePositioning:u})=>s?`
|
|
2049
2053
|
top: 20px;
|
|
2050
2054
|
left: 20px;
|
|
2051
2055
|
right: 20px;
|
|
2052
2056
|
bottom: 20px;
|
|
2053
|
-
`:
|
|
2057
|
+
`:u?l?`
|
|
2054
2058
|
top: auto;
|
|
2055
|
-
left: ${
|
|
2056
|
-
right: ${
|
|
2059
|
+
left: ${r==="bottom-left"?"20px":"auto"};
|
|
2060
|
+
right: ${r==="bottom-right"?"20px":"auto"};
|
|
2057
2061
|
bottom: 20px;
|
|
2058
2062
|
`:`
|
|
2059
2063
|
top: 0;
|
|
@@ -2062,13 +2066,13 @@ Error generating stack: `+a.message+`
|
|
|
2062
2066
|
bottom: 0;
|
|
2063
2067
|
`:l?`
|
|
2064
2068
|
bottom: 20px;
|
|
2065
|
-
${
|
|
2069
|
+
${r==="bottom-right"?"right: 20px;":"left: 20px;"}
|
|
2066
2070
|
`:""}
|
|
2067
|
-
${({floatingMode:l,isExpanded:
|
|
2071
|
+
${({floatingMode:l,isExpanded:r,useAbsolutePositioning:s})=>!l&&!r&&!s&&`
|
|
2068
2072
|
width: 100%;
|
|
2069
2073
|
height: 100%;
|
|
2070
2074
|
`}
|
|
2071
|
-
z-index: ${({floatingMode:l,isExpanded:
|
|
2075
|
+
z-index: ${({floatingMode:l,isExpanded:r})=>l||r?"2147483647":"auto"};
|
|
2072
2076
|
border-radius: ${({floatingMode:l})=>l?"0":"inherit"};
|
|
2073
2077
|
overflow: ${({floatingMode:l})=>l?"visible":"hidden"};
|
|
2074
2078
|
pointer-events: auto;
|
|
@@ -2080,14 +2084,14 @@ Error generating stack: `+a.message+`
|
|
|
2080
2084
|
}
|
|
2081
2085
|
|
|
2082
2086
|
@media (max-width: 420px) {
|
|
2083
|
-
${({floatingMode:l,isExpanded:
|
|
2087
|
+
${({floatingMode:l,isExpanded:r,isOpen:s})=>l&&!r&&s&&`
|
|
2084
2088
|
top: 0;
|
|
2085
2089
|
left: 0;
|
|
2086
2090
|
right: 0;
|
|
2087
2091
|
bottom: 0;
|
|
2088
2092
|
`}
|
|
2089
2093
|
}
|
|
2090
|
-
`,
|
|
2094
|
+
`,Ub=R.button`
|
|
2091
2095
|
display: ${({isOpen:l})=>l?"none":"flex"};
|
|
2092
2096
|
align-items: center;
|
|
2093
2097
|
justify-content: center;
|
|
@@ -2095,7 +2099,7 @@ Error generating stack: `+a.message+`
|
|
|
2095
2099
|
height: 56px;
|
|
2096
2100
|
border: none;
|
|
2097
2101
|
border-radius: 50%;
|
|
2098
|
-
background-color: ${({theme:l,hasCustomIcon:
|
|
2102
|
+
background-color: ${({theme:l,hasCustomIcon:r})=>r?l.colors.secondary:l.colors.primary};
|
|
2099
2103
|
color: white;
|
|
2100
2104
|
cursor: pointer;
|
|
2101
2105
|
box-shadow: ${({theme:l})=>l.shadow};
|
|
@@ -2104,35 +2108,35 @@ Error generating stack: `+a.message+`
|
|
|
2104
2108
|
overflow: hidden;
|
|
2105
2109
|
|
|
2106
2110
|
&:hover {
|
|
2107
|
-
background-color: ${({theme:l,hasCustomIcon:
|
|
2111
|
+
background-color: ${({theme:l,hasCustomIcon:r})=>r?l.colors.secondary:l.colors.primaryDark};
|
|
2108
2112
|
transform: scale(1.05);
|
|
2109
2113
|
}
|
|
2110
2114
|
|
|
2111
2115
|
&:active {
|
|
2112
2116
|
transform: scale(0.95);
|
|
2113
2117
|
}
|
|
2114
|
-
`,
|
|
2118
|
+
`,qb=R.img`
|
|
2115
2119
|
width: 100%;
|
|
2116
2120
|
height: 100%;
|
|
2117
2121
|
object-fit: contain;
|
|
2118
|
-
`,
|
|
2119
|
-
display: ${({floatingMode:l,isOpen:
|
|
2122
|
+
`,Lb=R.div`
|
|
2123
|
+
display: ${({floatingMode:l,isOpen:r,isClosing:s})=>l?r||s?"flex":"none":"flex"};
|
|
2120
2124
|
flex-direction: column;
|
|
2121
|
-
width: ${({floatingMode:l,isExpanded:
|
|
2122
|
-
height: ${({floatingMode:l,isExpanded:
|
|
2123
|
-
max-height: ${({floatingMode:l,isExpanded:
|
|
2124
|
-
${({floatingMode:l,useAbsolutePositioning:
|
|
2125
|
+
width: ${({floatingMode:l,isExpanded:r,useAbsolutePositioning:s})=>l?r?"calc(100vw - 40px)":"380px":s?"auto":"100%"};
|
|
2126
|
+
height: ${({floatingMode:l,isExpanded:r,useAbsolutePositioning:s})=>l?r?"calc(100vh - 40px)":"520px":s?"auto":"100%"};
|
|
2127
|
+
max-height: ${({floatingMode:l,isExpanded:r})=>l?r?"calc(100vh - 40px)":"calc(100vh - 100px)":"100%"};
|
|
2128
|
+
${({floatingMode:l,useAbsolutePositioning:r})=>!l&&r&&`
|
|
2125
2129
|
position: absolute;
|
|
2126
2130
|
top: 0;
|
|
2127
2131
|
left: 0;
|
|
2128
2132
|
right: 0;
|
|
2129
2133
|
bottom: 0;
|
|
2130
2134
|
`}
|
|
2131
|
-
border-radius: ${({theme:l,floatingMode:
|
|
2132
|
-
box-shadow: ${({theme:l,floatingMode:
|
|
2135
|
+
border-radius: ${({theme:l,floatingMode:r,isExpanded:s})=>r||s?l.borderRadius:"inherit"};
|
|
2136
|
+
box-shadow: ${({theme:l,floatingMode:r,isExpanded:s})=>r||s?l.shadow:"none"};
|
|
2133
2137
|
overflow: hidden;
|
|
2134
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;
|
|
2135
|
-
animation: ${({floatingMode:l,isClosing:
|
|
2139
|
+
animation: ${({floatingMode:l,isClosing:r})=>l?r?X`${Nb} 0.2s ease-out forwards`:X`${Rb} 0.3s ease-out`:"none"};
|
|
2136
2140
|
|
|
2137
2141
|
@media (prefers-reduced-motion: reduce) {
|
|
2138
2142
|
animation: none;
|
|
@@ -2140,11 +2144,66 @@ Error generating stack: `+a.message+`
|
|
|
2140
2144
|
}
|
|
2141
2145
|
|
|
2142
2146
|
@media (max-width: 420px) {
|
|
2143
|
-
${({floatingMode:l,isExpanded:
|
|
2147
|
+
${({floatingMode:l,isExpanded:r})=>l&&!r&&`
|
|
2144
2148
|
width: 100%;
|
|
2145
2149
|
height: 100%;
|
|
2146
2150
|
max-height: 100%;
|
|
2147
2151
|
border-radius: 0;
|
|
2148
2152
|
`}
|
|
2149
2153
|
}
|
|
2150
|
-
`,
|
|
2154
|
+
`,Yb=R.div`
|
|
2155
|
+
position: relative;
|
|
2156
|
+
display: flex;
|
|
2157
|
+
flex-direction: column;
|
|
2158
|
+
flex: 1;
|
|
2159
|
+
min-height: 0;
|
|
2160
|
+
`,Gb=en`
|
|
2161
|
+
from { opacity: 0; }
|
|
2162
|
+
to { opacity: 1; }
|
|
2163
|
+
`,Qb=R.div`
|
|
2164
|
+
position: absolute;
|
|
2165
|
+
inset: 0;
|
|
2166
|
+
z-index: 5;
|
|
2167
|
+
display: flex;
|
|
2168
|
+
flex-direction: column;
|
|
2169
|
+
align-items: center;
|
|
2170
|
+
justify-content: center;
|
|
2171
|
+
gap: 16px;
|
|
2172
|
+
backdrop-filter: blur(6px);
|
|
2173
|
+
background-color: ${({theme:l})=>`${l.colors.background}cc`};
|
|
2174
|
+
animation: ${Gb} 0.15s ease-out;
|
|
2175
|
+
|
|
2176
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2177
|
+
animation: none;
|
|
2178
|
+
}
|
|
2179
|
+
`,Xb=R.p`
|
|
2180
|
+
margin: 0;
|
|
2181
|
+
padding: 0 32px;
|
|
2182
|
+
font-family: ${({theme:l})=>l.fontFamily};
|
|
2183
|
+
font-size: 14px;
|
|
2184
|
+
line-height: 1.5;
|
|
2185
|
+
color: ${({theme:l})=>l.colors.text};
|
|
2186
|
+
text-align: center;
|
|
2187
|
+
`,Vb=R.div`
|
|
2188
|
+
display: flex;
|
|
2189
|
+
gap: 8px;
|
|
2190
|
+
`,Ef=R.button`
|
|
2191
|
+
padding: 8px 20px;
|
|
2192
|
+
border: 1px solid ${({theme:l,variant:r})=>r==="cancel"?l.colors.border:"transparent"};
|
|
2193
|
+
border-radius: 8px;
|
|
2194
|
+
font-family: ${({theme:l})=>l.fontFamily};
|
|
2195
|
+
font-size: 14px;
|
|
2196
|
+
font-weight: 500;
|
|
2197
|
+
cursor: pointer;
|
|
2198
|
+
transition: background-color 0.15s ease, opacity 0.15s ease;
|
|
2199
|
+
background-color: ${({theme:l,variant:r})=>r==="cancel"?l.colors.background:l.colors.error};
|
|
2200
|
+
color: ${({theme:l,variant:r})=>r==="cancel"?l.colors.text:l.colors.white};
|
|
2201
|
+
|
|
2202
|
+
&:hover {
|
|
2203
|
+
${({theme:l,variant:r})=>r==="cancel"?`background-color: ${l.colors.surface};`:"opacity: 0.9;"}
|
|
2204
|
+
}
|
|
2205
|
+
|
|
2206
|
+
&:active {
|
|
2207
|
+
${({theme:l,variant:r})=>r==="cancel"?`background-color: ${l.colors.borderLight};`:"opacity: 0.8;"}
|
|
2208
|
+
}
|
|
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}));
|