@botfabrik/engine-webclient 4.104.32-alpha.0 → 4.104.32
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.
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const p of document.querySelectorAll('link[rel="modulepreload"]'))c(p);new MutationObserver(p=>{for(const g of p)if(g.type==="childList")for(const v of g.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&c(v)}).observe(document,{childList:!0,subtree:!0});function u(p){const g={};return p.integrity&&(g.integrity=p.integrity),p.referrerPolicy&&(g.referrerPolicy=p.referrerPolicy),p.crossOrigin==="use-credentials"?g.credentials="include":p.crossOrigin==="anonymous"?g.credentials="omit":g.credentials="same-origin",g}function c(p){if(p.ep)return;p.ep=!0;const g=u(p);fetch(p.href,g)}})();function getDefaultExportFromCjs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var jsxRuntime={exports:{}},reactJsxRuntime_production={};var hasRequiredReactJsxRuntime_production;function requireReactJsxRuntime_production(){if(hasRequiredReactJsxRuntime_production)return reactJsxRuntime_production;hasRequiredReactJsxRuntime_production=1;var t=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function u(c,p,g){var v=null;if(g!==void 0&&(v=""+g),p.key!==void 0&&(v=""+p.key),"key"in p){g={};for(var x in p)x!=="key"&&(g[x]=p[x])}else g=p;return p=g.ref,{$$typeof:t,type:c,key:v,ref:p!==void 0?p:null,props:g}}return reactJsxRuntime_production.Fragment=i,reactJsxRuntime_production.jsx=u,reactJsxRuntime_production.jsxs=u,reactJsxRuntime_production}var hasRequiredJsxRuntime;function requireJsxRuntime(){return hasRequiredJsxRuntime||(hasRequiredJsxRuntime=1,jsxRuntime.exports=requireReactJsxRuntime_production()),jsxRuntime.exports}var jsxRuntimeExports=requireJsxRuntime(),client={exports:{}},reactDomClient_production={},scheduler={exports:{}},scheduler_production={};var hasRequiredScheduler_production;function requireScheduler_production(){return hasRequiredScheduler_production||(hasRequiredScheduler_production=1,(function(t){function i(K,pe){var te=K.length;K.push(pe);e:for(;0<te;){var Re=te-1>>>1,Ae=K[Re];if(0<p(Ae,pe))K[Re]=pe,K[te]=Ae,te=Re;else break e}}function u(K){return K.length===0?null:K[0]}function c(K){if(K.length===0)return null;var pe=K[0],te=K.pop();if(te!==pe){K[0]=te;e:for(var Re=0,Ae=K.length,H=Ae>>>1;Re<H;){var ie=2*(Re+1)-1,ue=K[ie],be=ie+1,me=K[be];if(0>p(ue,te))be<Ae&&0>p(me,ue)?(K[Re]=me,K[be]=te,Re=be):(K[Re]=ue,K[ie]=te,Re=ie);else if(be<Ae&&0>p(me,te))K[Re]=me,K[be]=te,Re=be;else break e}}return pe}function p(K,pe){var te=K.sortIndex-pe.sortIndex;return te!==0?te:K.id-pe.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var g=performance;t.unstable_now=function(){return g.now()}}else{var v=Date,x=v.now();t.unstable_now=function(){return v.now()-x}}var E=[],_=[],T=1,w=null,R=3,M=!1,k=!1,A=!1,D=!1,z=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;function V(K){for(var pe=u(_);pe!==null;){if(pe.callback===null)c(_);else if(pe.startTime<=K)c(_),pe.sortIndex=pe.expirationTime,i(E,pe);else break;pe=u(_)}}function Q(K){if(A=!1,V(K),!k)if(u(E)!==null)k=!0,Z||(Z=!0,le());else{var pe=u(_);pe!==null&&_e(Q,pe.startTime-K)}}var Z=!1,F=-1,Y=5,ne=-1;function fe(){return D?!0:!(t.unstable_now()-ne<Y)}function oe(){if(D=!1,Z){var K=t.unstable_now();ne=K;var pe=!0;try{e:{k=!1,A&&(A=!1,L(F),F=-1),M=!0;var te=R;try{t:{for(V(K),w=u(E);w!==null&&!(w.expirationTime>K&&fe());){var Re=w.callback;if(typeof Re=="function"){w.callback=null,R=w.priorityLevel;var Ae=Re(w.expirationTime<=K);if(K=t.unstable_now(),typeof Ae=="function"){w.callback=Ae,V(K),pe=!0;break t}w===u(E)&&c(E),V(K)}else c(E);w=u(E)}if(w!==null)pe=!0;else{var H=u(_);H!==null&&_e(Q,H.startTime-K),pe=!1}}break e}finally{w=null,R=te,M=!1}pe=void 0}}finally{pe?le():Z=!1}}}var le;if(typeof U=="function")le=function(){U(oe)};else if(typeof MessageChannel<"u"){var Se=new MessageChannel,ve=Se.port2;Se.port1.onmessage=oe,le=function(){ve.postMessage(null)}}else le=function(){z(oe,0)};function _e(K,pe){F=z(function(){K(t.unstable_now())},pe)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(K){K.callback=null},t.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<K?Math.floor(1e3/K):5},t.unstable_getCurrentPriorityLevel=function(){return R},t.unstable_next=function(K){switch(R){case 1:case 2:case 3:var pe=3;break;default:pe=R}var te=R;R=pe;try{return K()}finally{R=te}},t.unstable_requestPaint=function(){D=!0},t.unstable_runWithPriority=function(K,pe){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var te=R;R=K;try{return pe()}finally{R=te}},t.unstable_scheduleCallback=function(K,pe,te){var Re=t.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?Re+te:Re):te=Re,K){case 1:var Ae=-1;break;case 2:Ae=250;break;case 5:Ae=1073741823;break;case 4:Ae=1e4;break;default:Ae=5e3}return Ae=te+Ae,K={id:T++,callback:pe,priorityLevel:K,startTime:te,expirationTime:Ae,sortIndex:-1},te>Re?(K.sortIndex=te,i(_,K),u(E)===null&&K===u(_)&&(A?(L(F),F=-1):A=!0,_e(Q,te-Re))):(K.sortIndex=Ae,i(E,K),k||M||(k=!0,Z||(Z=!0,le()))),K},t.unstable_shouldYield=fe,t.unstable_wrapCallback=function(K){var pe=R;return function(){var te=R;R=pe;try{return K.apply(this,arguments)}finally{R=te}}}})(scheduler_production)),scheduler_production}var hasRequiredScheduler;function requireScheduler(){return hasRequiredScheduler||(hasRequiredScheduler=1,scheduler.exports=requireScheduler_production()),scheduler.exports}var react={exports:{}},react_production={};var hasRequiredReact_production;function requireReact_production(){if(hasRequiredReact_production)return react_production;hasRequiredReact_production=1;var t=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),v=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),_=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),w=Symbol.for("react.activity"),R=Symbol.iterator;function M(H){return H===null||typeof H!="object"?null:(H=R&&H[R]||H["@@iterator"],typeof H=="function"?H:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,D={};function z(H,ie,ue){this.props=H,this.context=ie,this.refs=D,this.updater=ue||k}z.prototype.isReactComponent={},z.prototype.setState=function(H,ie){if(typeof H!="object"&&typeof H!="function"&&H!=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,H,ie,"setState")},z.prototype.forceUpdate=function(H){this.updater.enqueueForceUpdate(this,H,"forceUpdate")};function L(){}L.prototype=z.prototype;function U(H,ie,ue){this.props=H,this.context=ie,this.refs=D,this.updater=ue||k}var V=U.prototype=new L;V.constructor=U,A(V,z.prototype),V.isPureReactComponent=!0;var Q=Array.isArray;function Z(){}var F={H:null,A:null,T:null,S:null},Y=Object.prototype.hasOwnProperty;function ne(H,ie,ue){var be=ue.ref;return{$$typeof:t,type:H,key:ie,ref:be!==void 0?be:null,props:ue}}function fe(H,ie){return ne(H.type,ie,H.props)}function oe(H){return typeof H=="object"&&H!==null&&H.$$typeof===t}function le(H){var ie={"=":"=0",":":"=2"};return"$"+H.replace(/[=:]/g,function(ue){return ie[ue]})}var Se=/\/+/g;function ve(H,ie){return typeof H=="object"&&H!==null&&H.key!=null?le(""+H.key):ie.toString(36)}function _e(H){switch(H.status){case"fulfilled":return H.value;case"rejected":throw H.reason;default:switch(typeof H.status=="string"?H.then(Z,Z):(H.status="pending",H.then(function(ie){H.status==="pending"&&(H.status="fulfilled",H.value=ie)},function(ie){H.status==="pending"&&(H.status="rejected",H.reason=ie)})),H.status){case"fulfilled":return H.value;case"rejected":throw H.reason}}throw H}function K(H,ie,ue,be,me){var Ee=typeof H;(Ee==="undefined"||Ee==="boolean")&&(H=null);var Te=!1;if(H===null)Te=!0;else switch(Ee){case"bigint":case"string":case"number":Te=!0;break;case"object":switch(H.$$typeof){case t:case i:Te=!0;break;case T:return Te=H._init,K(Te(H._payload),ie,ue,be,me)}}if(Te)return me=me(H),Te=be===""?"."+ve(H,0):be,Q(me)?(ue="",Te!=null&&(ue=Te.replace(Se,"$&/")+"/"),K(me,ie,ue,"",function(Ve){return Ve})):me!=null&&(oe(me)&&(me=fe(me,ue+(me.key==null||H&&H.key===me.key?"":(""+me.key).replace(Se,"$&/")+"/")+Te)),ie.push(me)),1;Te=0;var ke=be===""?".":be+":";if(Q(H))for(var Me=0;Me<H.length;Me++)be=H[Me],Ee=ke+ve(be,Me),Te+=K(be,ie,ue,Ee,me);else if(Me=M(H),typeof Me=="function")for(H=Me.call(H),Me=0;!(be=H.next()).done;)be=be.value,Ee=ke+ve(be,Me++),Te+=K(be,ie,ue,Ee,me);else if(Ee==="object"){if(typeof H.then=="function")return K(_e(H),ie,ue,be,me);throw ie=String(H),Error("Objects are not valid as a React child (found: "+(ie==="[object Object]"?"object with keys {"+Object.keys(H).join(", ")+"}":ie)+"). If you meant to render a collection of children, use an array instead.")}return Te}function pe(H,ie,ue){if(H==null)return H;var be=[],me=0;return K(H,be,"","",function(Ee){return ie.call(ue,Ee,me++)}),be}function te(H){if(H._status===-1){var ie=H._result;ie=ie(),ie.then(function(ue){(H._status===0||H._status===-1)&&(H._status=1,H._result=ue)},function(ue){(H._status===0||H._status===-1)&&(H._status=2,H._result=ue)}),H._status===-1&&(H._status=0,H._result=ie)}if(H._status===1)return H._result.default;throw H._result}var Re=typeof reportError=="function"?reportError:function(H){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var ie=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof H=="object"&&H!==null&&typeof H.message=="string"?String(H.message):String(H),error:H});if(!window.dispatchEvent(ie))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",H);return}console.error(H)},Ae={map:pe,forEach:function(H,ie,ue){pe(H,function(){ie.apply(this,arguments)},ue)},count:function(H){var ie=0;return pe(H,function(){ie++}),ie},toArray:function(H){return pe(H,function(ie){return ie})||[]},only:function(H){if(!oe(H))throw Error("React.Children.only expected to receive a single React element child.");return H}};return react_production.Activity=w,react_production.Children=Ae,react_production.Component=z,react_production.Fragment=u,react_production.Profiler=p,react_production.PureComponent=U,react_production.StrictMode=c,react_production.Suspense=E,react_production.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,react_production.__COMPILER_RUNTIME={__proto__:null,c:function(H){return F.H.useMemoCache(H)}},react_production.cache=function(H){return function(){return H.apply(null,arguments)}},react_production.cacheSignal=function(){return null},react_production.cloneElement=function(H,ie,ue){if(H==null)throw Error("The argument must be a React element, but you passed "+H+".");var be=A({},H.props),me=H.key;if(ie!=null)for(Ee in ie.key!==void 0&&(me=""+ie.key),ie)!Y.call(ie,Ee)||Ee==="key"||Ee==="__self"||Ee==="__source"||Ee==="ref"&&ie.ref===void 0||(be[Ee]=ie[Ee]);var Ee=arguments.length-2;if(Ee===1)be.children=ue;else if(1<Ee){for(var Te=Array(Ee),ke=0;ke<Ee;ke++)Te[ke]=arguments[ke+2];be.children=Te}return ne(H.type,me,be)},react_production.createContext=function(H){return H={$$typeof:v,_currentValue:H,_currentValue2:H,_threadCount:0,Provider:null,Consumer:null},H.Provider=H,H.Consumer={$$typeof:g,_context:H},H},react_production.createElement=function(H,ie,ue){var be,me={},Ee=null;if(ie!=null)for(be in ie.key!==void 0&&(Ee=""+ie.key),ie)Y.call(ie,be)&&be!=="key"&&be!=="__self"&&be!=="__source"&&(me[be]=ie[be]);var Te=arguments.length-2;if(Te===1)me.children=ue;else if(1<Te){for(var ke=Array(Te),Me=0;Me<Te;Me++)ke[Me]=arguments[Me+2];me.children=ke}if(H&&H.defaultProps)for(be in Te=H.defaultProps,Te)me[be]===void 0&&(me[be]=Te[be]);return ne(H,Ee,me)},react_production.createRef=function(){return{current:null}},react_production.forwardRef=function(H){return{$$typeof:x,render:H}},react_production.isValidElement=oe,react_production.lazy=function(H){return{$$typeof:T,_payload:{_status:-1,_result:H},_init:te}},react_production.memo=function(H,ie){return{$$typeof:_,type:H,compare:ie===void 0?null:ie}},react_production.startTransition=function(H){var ie=F.T,ue={};F.T=ue;try{var be=H(),me=F.S;me!==null&&me(ue,be),typeof be=="object"&&be!==null&&typeof be.then=="function"&&be.then(Z,Re)}catch(Ee){Re(Ee)}finally{ie!==null&&ue.types!==null&&(ie.types=ue.types),F.T=ie}},react_production.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},react_production.use=function(H){return F.H.use(H)},react_production.useActionState=function(H,ie,ue){return F.H.useActionState(H,ie,ue)},react_production.useCallback=function(H,ie){return F.H.useCallback(H,ie)},react_production.useContext=function(H){return F.H.useContext(H)},react_production.useDebugValue=function(){},react_production.useDeferredValue=function(H,ie){return F.H.useDeferredValue(H,ie)},react_production.useEffect=function(H,ie){return F.H.useEffect(H,ie)},react_production.useEffectEvent=function(H){return F.H.useEffectEvent(H)},react_production.useId=function(){return F.H.useId()},react_production.useImperativeHandle=function(H,ie,ue){return F.H.useImperativeHandle(H,ie,ue)},react_production.useInsertionEffect=function(H,ie){return F.H.useInsertionEffect(H,ie)},react_production.useLayoutEffect=function(H,ie){return F.H.useLayoutEffect(H,ie)},react_production.useMemo=function(H,ie){return F.H.useMemo(H,ie)},react_production.useOptimistic=function(H,ie){return F.H.useOptimistic(H,ie)},react_production.useReducer=function(H,ie,ue){return F.H.useReducer(H,ie,ue)},react_production.useRef=function(H){return F.H.useRef(H)},react_production.useState=function(H){return F.H.useState(H)},react_production.useSyncExternalStore=function(H,ie,ue){return F.H.useSyncExternalStore(H,ie,ue)},react_production.useTransition=function(){return F.H.useTransition()},react_production.version="19.2.3",react_production}var hasRequiredReact;function requireReact(){return hasRequiredReact||(hasRequiredReact=1,react.exports=requireReact_production()),react.exports}var reactDom={exports:{}},reactDom_production={};var hasRequiredReactDom_production;function requireReactDom_production(){if(hasRequiredReactDom_production)return reactDom_production;hasRequiredReactDom_production=1;var t=requireReact();function i(E){var _="https://react.dev/errors/"+E;if(1<arguments.length){_+="?args[]="+encodeURIComponent(arguments[1]);for(var T=2;T<arguments.length;T++)_+="&args[]="+encodeURIComponent(arguments[T])}return"Minified React error #"+E+"; visit "+_+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var c={d:{f:u,r:function(){throw Error(i(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},p=Symbol.for("react.portal");function g(E,_,T){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:p,key:w==null?null:""+w,children:E,containerInfo:_,implementation:T}}var v=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function x(E,_){if(E==="font")return"";if(typeof _=="string")return _==="use-credentials"?_:""}return reactDom_production.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,reactDom_production.createPortal=function(E,_){var T=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_||_.nodeType!==1&&_.nodeType!==9&&_.nodeType!==11)throw Error(i(299));return g(E,_,null,T)},reactDom_production.flushSync=function(E){var _=v.T,T=c.p;try{if(v.T=null,c.p=2,E)return E()}finally{v.T=_,c.p=T,c.d.f()}},reactDom_production.preconnect=function(E,_){typeof E=="string"&&(_?(_=_.crossOrigin,_=typeof _=="string"?_==="use-credentials"?_:"":void 0):_=null,c.d.C(E,_))},reactDom_production.prefetchDNS=function(E){typeof E=="string"&&c.d.D(E)},reactDom_production.preinit=function(E,_){if(typeof E=="string"&&_&&typeof _.as=="string"){var T=_.as,w=x(T,_.crossOrigin),R=typeof _.integrity=="string"?_.integrity:void 0,M=typeof _.fetchPriority=="string"?_.fetchPriority:void 0;T==="style"?c.d.S(E,typeof _.precedence=="string"?_.precedence:void 0,{crossOrigin:w,integrity:R,fetchPriority:M}):T==="script"&&c.d.X(E,{crossOrigin:w,integrity:R,fetchPriority:M,nonce:typeof _.nonce=="string"?_.nonce:void 0})}},reactDom_production.preinitModule=function(E,_){if(typeof E=="string")if(typeof _=="object"&&_!==null){if(_.as==null||_.as==="script"){var T=x(_.as,_.crossOrigin);c.d.M(E,{crossOrigin:T,integrity:typeof _.integrity=="string"?_.integrity:void 0,nonce:typeof _.nonce=="string"?_.nonce:void 0})}}else _==null&&c.d.M(E)},reactDom_production.preload=function(E,_){if(typeof E=="string"&&typeof _=="object"&&_!==null&&typeof _.as=="string"){var T=_.as,w=x(T,_.crossOrigin);c.d.L(E,T,{crossOrigin:w,integrity:typeof _.integrity=="string"?_.integrity:void 0,nonce:typeof _.nonce=="string"?_.nonce:void 0,type:typeof _.type=="string"?_.type:void 0,fetchPriority:typeof _.fetchPriority=="string"?_.fetchPriority:void 0,referrerPolicy:typeof _.referrerPolicy=="string"?_.referrerPolicy:void 0,imageSrcSet:typeof _.imageSrcSet=="string"?_.imageSrcSet:void 0,imageSizes:typeof _.imageSizes=="string"?_.imageSizes:void 0,media:typeof _.media=="string"?_.media:void 0})}},reactDom_production.preloadModule=function(E,_){if(typeof E=="string")if(_){var T=x(_.as,_.crossOrigin);c.d.m(E,{as:typeof _.as=="string"&&_.as!=="script"?_.as:void 0,crossOrigin:T,integrity:typeof _.integrity=="string"?_.integrity:void 0})}else c.d.m(E)},reactDom_production.requestFormReset=function(E){c.d.r(E)},reactDom_production.unstable_batchedUpdates=function(E,_){return E(_)},reactDom_production.useFormState=function(E,_,T){return v.H.useFormState(E,_,T)},reactDom_production.useFormStatus=function(){return v.H.useHostTransitionStatus()},reactDom_production.version="19.2.3",reactDom_production}var hasRequiredReactDom;function requireReactDom(){if(hasRequiredReactDom)return reactDom.exports;hasRequiredReactDom=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(i){console.error(i)}}return t(),reactDom.exports=requireReactDom_production(),reactDom.exports}var hasRequiredReactDomClient_production;function requireReactDomClient_production(){if(hasRequiredReactDomClient_production)return reactDomClient_production;hasRequiredReactDomClient_production=1;var t=requireScheduler(),i=requireReact(),u=requireReactDom();function c(e){var a="https://react.dev/errors/"+e;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)a+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+e+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function p(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function g(e){var a=e,o=e;if(e.alternate)for(;a.return;)a=a.return;else{e=a;do a=e,(a.flags&4098)!==0&&(o=a.return),e=a.return;while(e)}return a.tag===3?o:null}function v(e){if(e.tag===13){var a=e.memoizedState;if(a===null&&(e=e.alternate,e!==null&&(a=e.memoizedState)),a!==null)return a.dehydrated}return null}function x(e){if(e.tag===31){var a=e.memoizedState;if(a===null&&(e=e.alternate,e!==null&&(a=e.memoizedState)),a!==null)return a.dehydrated}return null}function E(e){if(g(e)!==e)throw Error(c(188))}function _(e){var a=e.alternate;if(!a){if(a=g(e),a===null)throw Error(c(188));return a!==e?null:e}for(var o=e,h=a;;){var m=o.return;if(m===null)break;var y=m.alternate;if(y===null){if(h=m.return,h!==null){o=h;continue}break}if(m.child===y.child){for(y=m.child;y;){if(y===o)return E(m),e;if(y===h)return E(m),a;y=y.sibling}throw Error(c(188))}if(o.return!==h.return)o=m,h=y;else{for(var S=!1,N=m.child;N;){if(N===o){S=!0,o=m,h=y;break}if(N===h){S=!0,h=m,o=y;break}N=N.sibling}if(!S){for(N=y.child;N;){if(N===o){S=!0,o=y,h=m;break}if(N===h){S=!0,h=y,o=m;break}N=N.sibling}if(!S)throw Error(c(189))}}if(o.alternate!==h)throw Error(c(190))}if(o.tag!==3)throw Error(c(188));return o.stateNode.current===o?e:a}function T(e){var a=e.tag;if(a===5||a===26||a===27||a===6)return e;for(e=e.child;e!==null;){if(a=T(e),a!==null)return a;e=e.sibling}return null}var w=Object.assign,R=Symbol.for("react.element"),M=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),L=Symbol.for("react.consumer"),U=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),ne=Symbol.for("react.activity"),fe=Symbol.for("react.memo_cache_sentinel"),oe=Symbol.iterator;function le(e){return e===null||typeof e!="object"?null:(e=oe&&e[oe]||e["@@iterator"],typeof e=="function"?e:null)}var Se=Symbol.for("react.client.reference");function ve(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Se?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case A:return"Fragment";case z:return"Profiler";case D:return"StrictMode";case Q:return"Suspense";case Z:return"SuspenseList";case ne:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case k:return"Portal";case U:return e.displayName||"Context";case L:return(e._context.displayName||"Context")+".Consumer";case V:var a=e.render;return e=e.displayName,e||(e=a.displayName||a.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case F:return a=e.displayName||null,a!==null?a:ve(e.type)||"Memo";case Y:a=e._payload,e=e._init;try{return ve(e(a))}catch{}}return null}var _e=Array.isArray,K=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,pe=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},Re=[],Ae=-1;function H(e){return{current:e}}function ie(e){0>Ae||(e.current=Re[Ae],Re[Ae]=null,Ae--)}function ue(e,a){Ae++,Re[Ae]=e.current,e.current=a}var be=H(null),me=H(null),Ee=H(null),Te=H(null);function ke(e,a){switch(ue(Ee,a),ue(me,e),ue(be,null),a.nodeType){case 9:case 11:e=(e=a.documentElement)&&(e=e.namespaceURI)?fd(e):0;break;default:if(e=a.tagName,a=a.namespaceURI)a=fd(a),e=dd(a,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}ie(be),ue(be,e)}function Me(){ie(be),ie(me),ie(Ee)}function Ve(e){e.memoizedState!==null&&ue(Te,e);var a=be.current,o=dd(a,e.type);a!==o&&(ue(me,e),ue(be,o))}function ft(e){me.current===e&&(ie(be),ie(me)),Te.current===e&&(ie(Te),Vr._currentValue=te)}var je,vt;function At(e){if(je===void 0)try{throw Error()}catch(o){var a=o.stack.trim().match(/\n( *(at )?)/);je=a&&a[1]||"",vt=-1<o.stack.indexOf(`
|
|
2
|
-
at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+je+e+vt}var Ue=!1;function dt(e,a){if(!e||Ue)return"";Ue=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(a){var he=function(){throw Error()};if(Object.defineProperty(he.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(he,[])}catch(ae){var ee=ae}Reflect.construct(e,[],he)}else{try{he.call()}catch(ae){ee=ae}e.call(he.prototype)}}else{try{throw Error()}catch(ae){ee=ae}(he=e())&&typeof he.catch=="function"&&he.catch(function(){})}}catch(ae){if(ae&&ee&&typeof ae.stack=="string")return[ae.stack,ee.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=h.DetermineComponentFrameRoot(),S=y[0],N=y[1];if(S&&N){var P=S.split(`
|
|
4
|
-
`),$=N.split(`
|
|
5
|
-
`);for(m=h=0;h<P.length&&!P[h].includes("DetermineComponentFrameRoot");)h++;for(;m<$.length&&!$[m].includes("DetermineComponentFrameRoot");)m++;if(h===P.length||m===$.length)for(h=P.length-1,m=$.length-1;1<=h&&0<=m&&P[h]!==$[m];)m--;for(;1<=h&&0<=m;h--,m--)if(P[h]!==$[m]){if(h!==1||m!==1)do if(h--,m--,0>m||P[h]!==$[m]){var se=`
|
|
6
|
-
`+P[h].replace(" at new "," at ");return e.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",e.displayName)),se}while(1<=h&&0<=m);break}}}finally{Ue=!1,Error.prepareStackTrace=o}return(o=e?e.displayName||e.name:"")?At(o):""}function un(e,a){switch(e.tag){case 26:case 27:case 5:return At(e.type);case 16:return At("Lazy");case 13:return e.child!==a&&a!==null?At("Suspense Fallback"):At("Suspense");case 19:return At("SuspenseList");case 0:case 15:return dt(e.type,!1);case 11:return dt(e.type.render,!1);case 1:return dt(e.type,!0);case 31:return At("Activity");default:return""}}function _n(e){try{var a="",o=null;do a+=un(e,o),o=e,e=e.return;while(e);return a}catch(h){return`
|
|
7
|
-
Error generating stack: `+h.message+`
|
|
8
|
-
`+h.stack}}var Ye=Object.prototype.hasOwnProperty,Zt=t.unstable_scheduleCallback,wt=t.unstable_cancelCallback,cn=t.unstable_shouldYield,Tt=t.unstable_requestPaint,ot=t.unstable_now,An=t.unstable_getCurrentPriorityLevel,Xt=t.unstable_ImmediatePriority,Dt=t.unstable_UserBlockingPriority,Pt=t.unstable_NormalPriority,pn=t.unstable_LowPriority,mn=t.unstable_IdlePriority,Yn=t.log,at=t.unstable_setDisableYieldValue,gn=null,bt=null;function pt(e){if(typeof Yn=="function"&&at(e),bt&&typeof bt.setStrictMode=="function")try{bt.setStrictMode(gn,e)}catch{}}var tt=Math.clz32?Math.clz32:yn,nt=Math.log,fn=Math.LN2;function yn(e){return e>>>=0,e===0?32:31-(nt(e)/fn|0)|0}var qt=256,rt=262144,Jt=4194304;function Ct(e){var a=e&42;if(a!==0)return a;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 Cn(e,a,o){var h=e.pendingLanes;if(h===0)return 0;var m=0,y=e.suspendedLanes,S=e.pingedLanes;e=e.warmLanes;var N=h&134217727;return N!==0?(h=N&~y,h!==0?m=Ct(h):(S&=N,S!==0?m=Ct(S):o||(o=N&~e,o!==0&&(m=Ct(o))))):(N=h&~y,N!==0?m=Ct(N):S!==0?m=Ct(S):o||(o=h&~e,o!==0&&(m=Ct(o)))),m===0?0:a!==0&&a!==m&&(a&y)===0&&(y=m&-m,o=a&-a,y>=o||y===32&&(o&4194048)!==0)?a:m}function On(e,a){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&a)===0}function mt(e,a){switch(e){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 dn(){var e=Jt;return Jt<<=1,(Jt&62914560)===0&&(Jt=4194304),e}function Kn(e){for(var a=[],o=0;31>o;o++)a.push(e);return a}function wn(e,a){e.pendingLanes|=a,a!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Zn(e,a,o,h,m,y){var S=e.pendingLanes;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=o,e.entangledLanes&=o,e.errorRecoveryDisabledLanes&=o,e.shellSuspendCounter=0;var N=e.entanglements,P=e.expirationTimes,$=e.hiddenUpdates;for(o=S&~o;0<o;){var se=31-tt(o),he=1<<se;N[se]=0,P[se]=-1;var ee=$[se];if(ee!==null)for($[se]=null,se=0;se<ee.length;se++){var ae=ee[se];ae!==null&&(ae.lane&=-536870913)}o&=~he}h!==0&&Ut(e,h,0),y!==0&&m===0&&e.tag!==0&&(e.suspendedLanes|=y&~(S&~a))}function Ut(e,a,o){e.pendingLanes|=a,e.suspendedLanes&=~a;var h=31-tt(a);e.entangledLanes|=a,e.entanglements[h]=e.entanglements[h]|1073741824|o&261930}function $t(e,a){var o=e.entangledLanes|=a;for(e=e.entanglements;o;){var h=31-tt(o),m=1<<h;m&a|e[h]&a&&(e[h]|=a),o&=~m}}function vn(e,a){var o=a&-a;return o=(o&42)!==0?1:Nt(o),(o&(e.suspendedLanes|a))!==0?0:o}function Nt(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 Ie(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function kt(){var e=pe.p;return e!==0?e:(e=window.event,e===void 0?32:Ld(e.type))}function tn(e,a){var o=pe.p;try{return pe.p=e,a()}finally{pe.p=o}}var It=Math.random().toString(36).slice(2),ht="__reactFiber$"+It,Ke="__reactProps$"+It,nn="__reactContainer$"+It,Lt="__reactEvents$"+It,Ze="__reactListeners$"+It,jn="__reactHandles$"+It,Dn="__reactResources$"+It,xe="__reactMarker$"+It;function q(e){delete e[ht],delete e[Ke],delete e[Lt],delete e[Ze],delete e[jn]}function ge(e){var a=e[ht];if(a)return a;for(var o=e.parentNode;o;){if(a=o[nn]||o[ht]){if(o=a.alternate,a.child!==null||o!==null&&o.child!==null)for(e=bd(e);e!==null;){if(o=e[ht])return o;e=bd(e)}return a}e=o,o=e.parentNode}return null}function ye(e){if(e=e[ht]||e[nn]){var a=e.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return e}return null}function De(e){var a=e.tag;if(a===5||a===26||a===27||a===6)return e.stateNode;throw Error(c(33))}function He(e){var a=e[Dn];return a||(a=e[Dn]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Ce(e){e[xe]=!0}var Ne=new Set,We={};function Et(e,a){ze(e,a),ze(e+"Capture",a)}function ze(e,a){for(We[e]=a,e=0;e<a.length;e++)Ne.add(a[e])}var ut=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]*$"),Ge={},Ot={};function Bt(e){return Ye.call(Ot,e)?!0:Ye.call(Ge,e)?!1:ut.test(e)?Ot[e]=!0:(Ge[e]=!0,!1)}function Fe(e,a,o){if(Bt(a))if(o===null)e.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":e.removeAttribute(a);return;case"boolean":var h=a.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){e.removeAttribute(a);return}}e.setAttribute(a,""+o)}}function bn(e,a,o){if(o===null)e.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttribute(a,""+o)}}function Vt(e,a,o,h){if(h===null)e.removeAttribute(o);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(o);return}e.setAttributeNS(a,o,""+h)}}function Ht(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Qt(e){var a=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Ba(e,a,o){var h=Object.getOwnPropertyDescriptor(e.constructor.prototype,a);if(!e.hasOwnProperty(a)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var m=h.get,y=h.set;return Object.defineProperty(e,a,{configurable:!0,get:function(){return m.call(this)},set:function(S){o=""+S,y.call(this,S)}}),Object.defineProperty(e,a,{enumerable:h.enumerable}),{getValue:function(){return o},setValue:function(S){o=""+S},stopTracking:function(){e._valueTracker=null,delete e[a]}}}}function kn(e){if(!e._valueTracker){var a=Qt(e)?"checked":"value";e._valueTracker=Ba(e,a,""+e[a])}}function za(e){if(!e)return!1;var a=e._valueTracker;if(!a)return!0;var o=a.getValue(),h="";return e&&(h=Qt(e)?e.checked?"true":"false":e.value),e=h,e!==o?(a.setValue(e),!0):!1}function Nn(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 ca=/[\n"\\]/g;function Ln(e){return e.replace(ca,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Gt(e,a,o,h,m,y,S,N){e.name="",S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.type=S:e.removeAttribute("type"),a!=null?S==="number"?(a===0&&e.value===""||e.value!=a)&&(e.value=""+Ht(a)):e.value!==""+Ht(a)&&(e.value=""+Ht(a)):S!=="submit"&&S!=="reset"||e.removeAttribute("value"),a!=null?ar(e,S,Ht(a)):o!=null?ar(e,S,Ht(o)):h!=null&&e.removeAttribute("value"),m==null&&y!=null&&(e.defaultChecked=!!y),m!=null&&(e.checked=m&&typeof m!="function"&&typeof m!="symbol"),N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?e.name=""+Ht(N):e.removeAttribute("name")}function ma(e,a,o,h,m,y,S,N){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.type=y),a!=null||o!=null){if(!(y!=="submit"&&y!=="reset"||a!=null)){kn(e);return}o=o!=null?""+Ht(o):"",a=a!=null?""+Ht(a):o,N||a===e.value||(e.value=a),e.defaultValue=a}h=h??m,h=typeof h!="function"&&typeof h!="symbol"&&!!h,e.checked=N?e.checked:!!h,e.defaultChecked=!!h,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(e.name=S),kn(e)}function ar(e,a,o){a==="number"&&Nn(e.ownerDocument)===e||e.defaultValue===""+o||(e.defaultValue=""+o)}function Ua(e,a,o,h){if(e=e.options,a){a={};for(var m=0;m<o.length;m++)a["$"+o[m]]=!0;for(o=0;o<e.length;o++)m=a.hasOwnProperty("$"+e[o].value),e[o].selected!==m&&(e[o].selected=m),m&&h&&(e[o].defaultSelected=!0)}else{for(o=""+Ht(o),a=null,m=0;m<e.length;m++){if(e[m].value===o){e[m].selected=!0,h&&(e[m].defaultSelected=!0);return}a!==null||e[m].disabled||(a=e[m])}a!==null&&(a.selected=!0)}}function Ia(e,a,o){if(a!=null&&(a=""+Ht(a),a!==e.value&&(e.value=a),o==null)){e.defaultValue!==a&&(e.defaultValue=a);return}e.defaultValue=o!=null?""+Ht(o):""}function Qr(e,a,o,h){if(a==null){if(h!=null){if(o!=null)throw Error(c(92));if(_e(h)){if(1<h.length)throw Error(c(93));h=h[0]}o=h}o==null&&(o=""),a=o}o=Ht(a),e.defaultValue=o,h=e.textContent,h===o&&h!==""&&h!==null&&(e.value=h),kn(e)}function ga(e,a){if(a){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=a;return}}e.textContent=a}var ss=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 Yr(e,a,o){var h=a.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?h?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="":h?e.setProperty(a,o):typeof o!="number"||o===0||ss.has(a)?a==="float"?e.cssFloat=o:e[a]=(""+o).trim():e[a]=o+"px"}function ui(e,a,o){if(a!=null&&typeof a!="object")throw Error(c(62));if(e=e.style,o!=null){for(var h in o)!o.hasOwnProperty(h)||a!=null&&a.hasOwnProperty(h)||(h.indexOf("--")===0?e.setProperty(h,""):h==="float"?e.cssFloat="":e[h]="");for(var m in a)h=a[m],a.hasOwnProperty(m)&&o[m]!==h&&Yr(e,m,h)}else for(var y in a)a.hasOwnProperty(y)&&Yr(e,y,a[y])}function Ci(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 qd=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"]]),Kr=/^[\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 Zr(e){return Kr.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function la(){}var os=null;function us(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ya=null,va=null;function ci(e){var a=ye(e);if(a&&(e=a.stateNode)){var o=e[Ke]||null;e:switch(e=a.stateNode,a.type){case"input":if(Gt(e,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),a=o.name,o.type==="radio"&&a!=null){for(o=e;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+Ln(""+a)+'"][type="radio"]'),a=0;a<o.length;a++){var h=o[a];if(h!==e&&h.form===e.form){var m=h[Ke]||null;if(!m)throw Error(c(90));Gt(h,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name)}}for(a=0;a<o.length;a++)h=o[a],h.form===e.form&&za(h)}break e;case"textarea":Ia(e,o.value,o.defaultValue);break e;case"select":a=o.value,a!=null&&Ua(e,!!o.multiple,a,!1)}}}var ba=!1;function ir(e,a,o){if(ba)return e(a,o);ba=!0;try{var h=e(a);return h}finally{if(ba=!1,(ya!==null||va!==null)&&(Ul(),ya&&(a=ya,e=va,va=ya=null,ci(a),e)))for(a=0;a<e.length;a++)ci(e[a])}}function rr(e,a){var o=e.stateNode;if(o===null)return null;var h=o[Ke]||null;if(h===null)return null;o=h[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(e=e.type,h=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!h;break e;default:e=!1}if(e)return null;if(o&&typeof o!="function")throw Error(c(231,a,typeof o));return o}var Ea=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cs=!1;if(Ea)try{var lr={};Object.defineProperty(lr,"passive",{get:function(){cs=!0}}),window.addEventListener("test",lr,lr),window.removeEventListener("test",lr,lr)}catch{cs=!1}var Ha=null,fs=null,Jr=null;function fu(){if(Jr)return Jr;var e,a=fs,o=a.length,h,m="value"in Ha?Ha.value:Ha.textContent,y=m.length;for(e=0;e<o&&a[e]===m[e];e++);var S=o-e;for(h=1;h<=S&&a[o-h]===m[y-h];h++);return Jr=m.slice(e,1<h?1-h:void 0)}function $r(e){var a=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&a===13&&(e=13)):e=a,e===10&&(e=13),32<=e||e===13?e:0}function el(){return!0}function du(){return!1}function Bn(e){function a(o,h,m,y,S){this._reactName=o,this._targetInst=m,this.type=h,this.nativeEvent=y,this.target=S,this.currentTarget=null;for(var N in e)e.hasOwnProperty(N)&&(o=e[N],this[N]=o?o(y):y[N]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?el:du,this.isPropagationStopped=du,this}return w(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=el)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=el)},persist:function(){},isPersistent:el}),a}var fi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tl=Bn(fi),sr=w({},fi,{view:0,detail:0}),Vd=Bn(sr),ds,hs,or,nl=w({},sr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ms,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!==or&&(or&&e.type==="mousemove"?(ds=e.screenX-or.screenX,hs=e.screenY-or.screenY):hs=ds=0,or=e),ds)},movementY:function(e){return"movementY"in e?e.movementY:hs}}),hu=Bn(nl),Gd=w({},nl,{dataTransfer:0}),Fd=Bn(Gd),Wd=w({},sr,{relatedTarget:0}),ps=Bn(Wd),Xd=w({},fi,{animationName:0,elapsedTime:0,pseudoElement:0}),Qd=Bn(Xd),Yd=w({},fi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Kd=Bn(Yd),Zd=w({},fi,{data:0}),pu=Bn(Zd),Jd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$d={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"},eh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function th(e){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(e):(e=eh[e])?!!a[e]:!1}function ms(){return th}var nh=w({},sr,{key:function(e){if(e.key){var a=Jd[e.key]||e.key;if(a!=="Unidentified")return a}return e.type==="keypress"?(e=$r(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?$d[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ms,charCode:function(e){return e.type==="keypress"?$r(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?$r(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ah=Bn(nh),ih=w({},nl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),mu=Bn(ih),rh=w({},sr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ms}),lh=Bn(rh),sh=w({},fi,{propertyName:0,elapsedTime:0,pseudoElement:0}),oh=Bn(sh),uh=w({},nl,{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}),ch=Bn(uh),fh=w({},fi,{newState:0,oldState:0}),dh=Bn(fh),hh=[9,13,27,32],gs=Ea&&"CompositionEvent"in window,ur=null;Ea&&"documentMode"in document&&(ur=document.documentMode);var ph=Ea&&"TextEvent"in window&&!ur,gu=Ea&&(!gs||ur&&8<ur&&11>=ur),yu=" ",vu=!1;function bu(e,a){switch(e){case"keyup":return hh.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Eu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Oi=!1;function mh(e,a){switch(e){case"compositionend":return Eu(a);case"keypress":return a.which!==32?null:(vu=!0,yu);case"textInput":return e=a.data,e===yu&&vu?null:e;default:return null}}function gh(e,a){if(Oi)return e==="compositionend"||!gs&&bu(e,a)?(e=fu(),Jr=fs=Ha=null,Oi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return gu&&a.locale!=="ko"?null:a.data;default:return null}}var yh={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 _u(e){var a=e&&e.nodeName&&e.nodeName.toLowerCase();return a==="input"?!!yh[e.type]:a==="textarea"}function xu(e,a,o,h){ya?va?va.push(h):va=[h]:ya=h,a=Fl(a,"onChange"),0<a.length&&(o=new tl("onChange","change",null,o,h),e.push({event:o,listeners:a}))}var cr=null,dr=null;function vh(e){rd(e,0)}function al(e){var a=De(e);if(za(a))return e}function Su(e,a){if(e==="change")return a}var Tu=!1;if(Ea){var ys;if(Ea){var vs="oninput"in document;if(!vs){var Ru=document.createElement("div");Ru.setAttribute("oninput","return;"),vs=typeof Ru.oninput=="function"}ys=vs}else ys=!1;Tu=ys&&(!document.documentMode||9<document.documentMode)}function Au(){cr&&(cr.detachEvent("onpropertychange",Cu),dr=cr=null)}function Cu(e){if(e.propertyName==="value"&&al(dr)){var a=[];xu(a,dr,e,us(e)),ir(vh,a)}}function bh(e,a,o){e==="focusin"?(Au(),cr=a,dr=o,cr.attachEvent("onpropertychange",Cu)):e==="focusout"&&Au()}function Eh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return al(dr)}function _h(e,a){if(e==="click")return al(a)}function xh(e,a){if(e==="input"||e==="change")return al(a)}function Sh(e,a){return e===a&&(e!==0||1/e===1/a)||e!==e&&a!==a}var qn=typeof Object.is=="function"?Object.is:Sh;function hr(e,a){if(qn(e,a))return!0;if(typeof e!="object"||e===null||typeof a!="object"||a===null)return!1;var o=Object.keys(e),h=Object.keys(a);if(o.length!==h.length)return!1;for(h=0;h<o.length;h++){var m=o[h];if(!Ye.call(a,m)||!qn(e[m],a[m]))return!1}return!0}function Ou(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function wu(e,a){var o=Ou(e);e=0;for(var h;o;){if(o.nodeType===3){if(h=e+o.textContent.length,e<=a&&h>=a)return{node:o,offset:a-e};e=h}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Ou(o)}}function Nu(e,a){return e&&a?e===a?!0:e&&e.nodeType===3?!1:a&&a.nodeType===3?Nu(e,a.parentNode):"contains"in e?e.contains(a):e.compareDocumentPosition?!!(e.compareDocumentPosition(a)&16):!1:!1}function Mu(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var a=Nn(e.document);a instanceof e.HTMLIFrameElement;){try{var o=typeof a.contentWindow.location.href=="string"}catch{o=!1}if(o)e=a.contentWindow;else break;a=Nn(e.document)}return a}function bs(e){var a=e&&e.nodeName&&e.nodeName.toLowerCase();return a&&(a==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||a==="textarea"||e.contentEditable==="true")}var Th=Ea&&"documentMode"in document&&11>=document.documentMode,wi=null,Es=null,pr=null,_s=!1;function ju(e,a,o){var h=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;_s||wi==null||wi!==Nn(h)||(h=wi,"selectionStart"in h&&bs(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),pr&&hr(pr,h)||(pr=h,h=Fl(Es,"onSelect"),0<h.length&&(a=new tl("onSelect","select",null,a,o),e.push({event:a,listeners:h}),a.target=wi)))}function di(e,a){var o={};return o[e.toLowerCase()]=a.toLowerCase(),o["Webkit"+e]="webkit"+a,o["Moz"+e]="moz"+a,o}var Ni={animationend:di("Animation","AnimationEnd"),animationiteration:di("Animation","AnimationIteration"),animationstart:di("Animation","AnimationStart"),transitionrun:di("Transition","TransitionRun"),transitionstart:di("Transition","TransitionStart"),transitioncancel:di("Transition","TransitionCancel"),transitionend:di("Transition","TransitionEnd")},xs={},Du={};Ea&&(Du=document.createElement("div").style,"AnimationEvent"in window||(delete Ni.animationend.animation,delete Ni.animationiteration.animation,delete Ni.animationstart.animation),"TransitionEvent"in window||delete Ni.transitionend.transition);function hi(e){if(xs[e])return xs[e];if(!Ni[e])return e;var a=Ni[e],o;for(o in a)if(a.hasOwnProperty(o)&&o in Du)return xs[e]=a[o];return e}var ku=hi("animationend"),Lu=hi("animationiteration"),Bu=hi("animationstart"),Rh=hi("transitionrun"),Ah=hi("transitionstart"),Ch=hi("transitioncancel"),zu=hi("transitionend"),Uu=new Map,Ss="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(" ");Ss.push("scrollEnd");function sa(e,a){Uu.set(e,a),Et(a,[e])}var il=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=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(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Jn=[],Mi=0,Ts=0;function rl(){for(var e=Mi,a=Ts=Mi=0;a<e;){var o=Jn[a];Jn[a++]=null;var h=Jn[a];Jn[a++]=null;var m=Jn[a];Jn[a++]=null;var y=Jn[a];if(Jn[a++]=null,h!==null&&m!==null){var S=h.pending;S===null?m.next=m:(m.next=S.next,S.next=m),h.pending=m}y!==0&&Iu(o,m,y)}}function ll(e,a,o,h){Jn[Mi++]=e,Jn[Mi++]=a,Jn[Mi++]=o,Jn[Mi++]=h,Ts|=h,e.lanes|=h,e=e.alternate,e!==null&&(e.lanes|=h)}function Rs(e,a,o,h){return ll(e,a,o,h),sl(e)}function pi(e,a){return ll(e,null,null,a),sl(e)}function Iu(e,a,o){e.lanes|=o;var h=e.alternate;h!==null&&(h.lanes|=o);for(var m=!1,y=e.return;y!==null;)y.childLanes|=o,h=y.alternate,h!==null&&(h.childLanes|=o),y.tag===22&&(e=y.stateNode,e===null||e._visibility&1||(m=!0)),e=y,y=y.return;return e.tag===3?(y=e.stateNode,m&&a!==null&&(m=31-tt(o),e=y.hiddenUpdates,h=e[m],h===null?e[m]=[a]:h.push(a),a.lane=o|536870912),y):null}function sl(e){if(50<Br)throw Br=0,Lo=null,Error(c(185));for(var a=e.return;a!==null;)e=a,a=e.return;return e.tag===3?e.stateNode:null}var ji={};function Oh(e,a,o,h){this.tag=e,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Vn(e,a,o,h){return new Oh(e,a,o,h)}function As(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _a(e,a){var o=e.alternate;return o===null?(o=Vn(e.tag,a,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=a,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&65011712,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,a=e.dependencies,o.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o.refCleanup=e.refCleanup,o}function Hu(e,a){e.flags&=65011714;var o=e.alternate;return o===null?(e.childLanes=0,e.lanes=a,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=o.childLanes,e.lanes=o.lanes,e.child=o.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=o.memoizedProps,e.memoizedState=o.memoizedState,e.updateQueue=o.updateQueue,e.type=o.type,a=o.dependencies,e.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),e}function ol(e,a,o,h,m,y){var S=0;if(h=e,typeof e=="function")As(e)&&(S=1);else if(typeof e=="string")S=Dp(e,o,be.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ne:return e=Vn(31,o,a,m),e.elementType=ne,e.lanes=y,e;case A:return mi(o.children,m,y,a);case D:S=8,m|=24;break;case z:return e=Vn(12,o,a,m|2),e.elementType=z,e.lanes=y,e;case Q:return e=Vn(13,o,a,m),e.elementType=Q,e.lanes=y,e;case Z:return e=Vn(19,o,a,m),e.elementType=Z,e.lanes=y,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case U:S=10;break e;case L:S=9;break e;case V:S=11;break e;case F:S=14;break e;case Y:S=16,h=null;break e}S=29,o=Error(c(130,e===null?"null":typeof e,"")),h=null}return a=Vn(S,o,a,m),a.elementType=e,a.type=h,a.lanes=y,a}function mi(e,a,o,h){return e=Vn(7,e,h,a),e.lanes=o,e}function Cs(e,a,o){return e=Vn(6,e,null,a),e.lanes=o,e}function Pu(e){var a=Vn(18,null,null,0);return a.stateNode=e,a}function Os(e,a,o){return a=Vn(4,e.children!==null?e.children:[],e.key,a),a.lanes=o,a.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},a}var qu=new WeakMap;function $n(e,a){if(typeof e=="object"&&e!==null){var o=qu.get(e);return o!==void 0?o:(a={value:e,source:a,stack:_n(a)},qu.set(e,a),a)}return{value:e,source:a,stack:_n(a)}}var Di=[],ki=0,ul=null,mr=0,ea=[],ta=0,Pa=null,fa=1,da="";function xa(e,a){Di[ki++]=mr,Di[ki++]=ul,ul=e,mr=a}function Vu(e,a,o){ea[ta++]=fa,ea[ta++]=da,ea[ta++]=Pa,Pa=e;var h=fa;e=da;var m=32-tt(h)-1;h&=~(1<<m),o+=1;var y=32-tt(a)+m;if(30<y){var S=m-m%5;y=(h&(1<<S)-1).toString(32),h>>=S,m-=S,fa=1<<32-tt(a)+m|o<<m|h,da=y+e}else fa=1<<y|o<<m|h,da=e}function ws(e){e.return!==null&&(xa(e,1),Vu(e,1,0))}function Ns(e){for(;e===ul;)ul=Di[--ki],Di[ki]=null,mr=Di[--ki],Di[ki]=null;for(;e===Pa;)Pa=ea[--ta],ea[ta]=null,da=ea[--ta],ea[ta]=null,fa=ea[--ta],ea[ta]=null}function Gu(e,a){ea[ta++]=fa,ea[ta++]=da,ea[ta++]=Pa,fa=a.id,da=a.overflow,Pa=e}var xn=null,Mt=null,et=!1,qa=null,na=!1,Ms=Error(c(519));function Va(e){var a=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw gr($n(a,e)),Ms}function Fu(e){var a=e.stateNode,o=e.type,h=e.memoizedProps;switch(a[ht]=e,a[Ke]=h,o){case"dialog":Qe("cancel",a),Qe("close",a);break;case"iframe":case"object":case"embed":Qe("load",a);break;case"video":case"audio":for(o=0;o<Ur.length;o++)Qe(Ur[o],a);break;case"source":Qe("error",a);break;case"img":case"image":case"link":Qe("error",a),Qe("load",a);break;case"details":Qe("toggle",a);break;case"input":Qe("invalid",a),ma(a,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0);break;case"select":Qe("invalid",a);break;case"textarea":Qe("invalid",a),Qr(a,h.value,h.defaultValue,h.children)}o=h.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||a.textContent===""+o||h.suppressHydrationWarning===!0||ud(a.textContent,o)?(h.popover!=null&&(Qe("beforetoggle",a),Qe("toggle",a)),h.onScroll!=null&&Qe("scroll",a),h.onScrollEnd!=null&&Qe("scrollend",a),h.onClick!=null&&(a.onclick=la),a=!0):a=!1,a||Va(e,!0)}function Wu(e){for(xn=e.return;xn;)switch(xn.tag){case 5:case 31:case 13:na=!1;return;case 27:case 3:na=!0;return;default:xn=xn.return}}function Li(e){if(e!==xn)return!1;if(!et)return Wu(e),et=!0,!1;var a=e.tag,o;if((o=a!==3&&a!==27)&&((o=a===5)&&(o=e.type,o=!(o!=="form"&&o!=="button")||Ko(e.type,e.memoizedProps)),o=!o),o&&Mt&&Va(e),Wu(e),a===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));Mt=vd(e)}else if(a===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));Mt=vd(e)}else a===27?(a=Mt,ai(e.type)?(e=tu,tu=null,Mt=e):Mt=a):Mt=xn?ia(e.stateNode.nextSibling):null;return!0}function gi(){Mt=xn=null,et=!1}function js(){var e=qa;return e!==null&&(Hn===null?Hn=e:Hn.push.apply(Hn,e),qa=null),e}function gr(e){qa===null?qa=[e]:qa.push(e)}var Ds=H(null),yi=null,Sa=null;function Ga(e,a,o){ue(Ds,a._currentValue),a._currentValue=o}function Ta(e){e._currentValue=Ds.current,ie(Ds)}function ks(e,a,o){for(;e!==null;){var h=e.alternate;if((e.childLanes&a)!==a?(e.childLanes|=a,h!==null&&(h.childLanes|=a)):h!==null&&(h.childLanes&a)!==a&&(h.childLanes|=a),e===o)break;e=e.return}}function Ls(e,a,o,h){var m=e.child;for(m!==null&&(m.return=e);m!==null;){var y=m.dependencies;if(y!==null){var S=m.child;y=y.firstContext;e:for(;y!==null;){var N=y;y=m;for(var P=0;P<a.length;P++)if(N.context===a[P]){y.lanes|=o,N=y.alternate,N!==null&&(N.lanes|=o),ks(y.return,o,e),h||(S=null);break e}y=N.next}}else if(m.tag===18){if(S=m.return,S===null)throw Error(c(341));S.lanes|=o,y=S.alternate,y!==null&&(y.lanes|=o),ks(S,o,e),S=null}else S=m.child;if(S!==null)S.return=m;else for(S=m;S!==null;){if(S===e){S=null;break}if(m=S.sibling,m!==null){m.return=S.return,S=m;break}S=S.return}m=S}}function Bi(e,a,o,h){e=null;for(var m=a,y=!1;m!==null;){if(!y){if((m.flags&524288)!==0)y=!0;else if((m.flags&262144)!==0)break}if(m.tag===10){var S=m.alternate;if(S===null)throw Error(c(387));if(S=S.memoizedProps,S!==null){var N=m.type;qn(m.pendingProps.value,S.value)||(e!==null?e.push(N):e=[N])}}else if(m===Te.current){if(S=m.alternate,S===null)throw Error(c(387));S.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(e!==null?e.push(Vr):e=[Vr])}m=m.return}e!==null&&Ls(a,e,o,h),a.flags|=262144}function cl(e){for(e=e.firstContext;e!==null;){if(!qn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function vi(e){yi=e,Sa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Sn(e){return Xu(yi,e)}function fl(e,a){return yi===null&&vi(e),Xu(e,a)}function Xu(e,a){var o=a._currentValue;if(a={context:a,memoizedValue:o,next:null},Sa===null){if(e===null)throw Error(c(308));Sa=a,e.dependencies={lanes:0,firstContext:a},e.flags|=524288}else Sa=Sa.next=a;return o}var wh=typeof AbortController<"u"?AbortController:function(){var e=[],a=this.signal={aborted:!1,addEventListener:function(o,h){e.push(h)}};this.abort=function(){a.aborted=!0,e.forEach(function(o){return o()})}},Nh=t.unstable_scheduleCallback,Mh=t.unstable_NormalPriority,an={$$typeof:U,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Bs(){return{controller:new wh,data:new Map,refCount:0}}function yr(e){e.refCount--,e.refCount===0&&Nh(Mh,function(){e.controller.abort()})}var vr=null,zs=0,zi=0,Ui=null;function jh(e,a){if(vr===null){var o=vr=[];zs=0,zi=Po(),Ui={status:"pending",value:void 0,then:function(h){o.push(h)}}}return zs++,a.then(Qu,Qu),a}function Qu(){if(--zs===0&&vr!==null){Ui!==null&&(Ui.status="fulfilled");var e=vr;vr=null,zi=0,Ui=null;for(var a=0;a<e.length;a++)(0,e[a])()}}function Dh(e,a){var o=[],h={status:"pending",value:null,reason:null,then:function(m){o.push(m)}};return e.then(function(){h.status="fulfilled",h.value=a;for(var m=0;m<o.length;m++)(0,o[m])(a)},function(m){for(h.status="rejected",h.reason=m,m=0;m<o.length;m++)(0,o[m])(void 0)}),h}var Yu=K.S;K.S=function(e,a){Df=ot(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&jh(e,a),Yu!==null&&Yu(e,a)};var bi=H(null);function Us(){var e=bi.current;return e!==null?e:Rt.pooledCache}function dl(e,a){a===null?ue(bi,bi.current):ue(bi,a.pool)}function Ku(){var e=Us();return e===null?null:{parent:an._currentValue,pool:e}}var Ii=Error(c(460)),Is=Error(c(474)),hl=Error(c(542)),pl={then:function(){}};function Zu(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ju(e,a,o){switch(o=e[o],o===void 0?e.push(a):o!==a&&(a.then(la,la),a=o),a.status){case"fulfilled":return a.value;case"rejected":throw e=a.reason,ec(e),e;default:if(typeof a.status=="string")a.then(la,la);else{if(e=Rt,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=a,e.status="pending",e.then(function(h){if(a.status==="pending"){var m=a;m.status="fulfilled",m.value=h}},function(h){if(a.status==="pending"){var m=a;m.status="rejected",m.reason=h}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw e=a.reason,ec(e),e}throw _i=a,Ii}}function Ei(e){try{var a=e._init;return a(e._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(_i=o,Ii):o}}var _i=null;function $u(){if(_i===null)throw Error(c(459));var e=_i;return _i=null,e}function ec(e){if(e===Ii||e===hl)throw Error(c(483))}var Hi=null,br=0;function ml(e){var a=br;return br+=1,Hi===null&&(Hi=[]),Ju(Hi,e,a)}function Er(e,a){a=a.props.ref,e.ref=a!==void 0?a:null}function gl(e,a){throw a.$$typeof===R?Error(c(525)):(e=Object.prototype.toString.call(a),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":e)))}function tc(e){function a(X,G){if(e){var J=X.deletions;J===null?(X.deletions=[G],X.flags|=16):J.push(G)}}function o(X,G){if(!e)return null;for(;G!==null;)a(X,G),G=G.sibling;return null}function h(X){for(var G=new Map;X!==null;)X.key!==null?G.set(X.key,X):G.set(X.index,X),X=X.sibling;return G}function m(X,G){return X=_a(X,G),X.index=0,X.sibling=null,X}function y(X,G,J){return X.index=J,e?(J=X.alternate,J!==null?(J=J.index,J<G?(X.flags|=67108866,G):J):(X.flags|=67108866,G)):(X.flags|=1048576,G)}function S(X){return e&&X.alternate===null&&(X.flags|=67108866),X}function N(X,G,J,ce){return G===null||G.tag!==6?(G=Cs(J,X.mode,ce),G.return=X,G):(G=m(G,J),G.return=X,G)}function P(X,G,J,ce){var Le=J.type;return Le===A?se(X,G,J.props.children,ce,J.key):G!==null&&(G.elementType===Le||typeof Le=="object"&&Le!==null&&Le.$$typeof===Y&&Ei(Le)===G.type)?(G=m(G,J.props),Er(G,J),G.return=X,G):(G=ol(J.type,J.key,J.props,null,X.mode,ce),Er(G,J),G.return=X,G)}function $(X,G,J,ce){return G===null||G.tag!==4||G.stateNode.containerInfo!==J.containerInfo||G.stateNode.implementation!==J.implementation?(G=Os(J,X.mode,ce),G.return=X,G):(G=m(G,J.children||[]),G.return=X,G)}function se(X,G,J,ce,Le){return G===null||G.tag!==7?(G=mi(J,X.mode,ce,Le),G.return=X,G):(G=m(G,J),G.return=X,G)}function he(X,G,J){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return G=Cs(""+G,X.mode,J),G.return=X,G;if(typeof G=="object"&&G!==null){switch(G.$$typeof){case M:return J=ol(G.type,G.key,G.props,null,X.mode,J),Er(J,G),J.return=X,J;case k:return G=Os(G,X.mode,J),G.return=X,G;case Y:return G=Ei(G),he(X,G,J)}if(_e(G)||le(G))return G=mi(G,X.mode,J,null),G.return=X,G;if(typeof G.then=="function")return he(X,ml(G),J);if(G.$$typeof===U)return he(X,fl(X,G),J);gl(X,G)}return null}function ee(X,G,J,ce){var Le=G!==null?G.key:null;if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return Le!==null?null:N(X,G,""+J,ce);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case M:return J.key===Le?P(X,G,J,ce):null;case k:return J.key===Le?$(X,G,J,ce):null;case Y:return J=Ei(J),ee(X,G,J,ce)}if(_e(J)||le(J))return Le!==null?null:se(X,G,J,ce,null);if(typeof J.then=="function")return ee(X,G,ml(J),ce);if(J.$$typeof===U)return ee(X,G,fl(X,J),ce);gl(X,J)}return null}function ae(X,G,J,ce,Le){if(typeof ce=="string"&&ce!==""||typeof ce=="number"||typeof ce=="bigint")return X=X.get(J)||null,N(G,X,""+ce,Le);if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case M:return X=X.get(ce.key===null?J:ce.key)||null,P(G,X,ce,Le);case k:return X=X.get(ce.key===null?J:ce.key)||null,$(G,X,ce,Le);case Y:return ce=Ei(ce),ae(X,G,J,ce,Le)}if(_e(ce)||le(ce))return X=X.get(J)||null,se(G,X,ce,Le,null);if(typeof ce.then=="function")return ae(X,G,J,ml(ce),Le);if(ce.$$typeof===U)return ae(X,G,J,fl(G,ce),Le);gl(G,ce)}return null}function Oe(X,G,J,ce){for(var Le=null,lt=null,we=G,qe=G=0,$e=null;we!==null&&qe<J.length;qe++){we.index>qe?($e=we,we=null):$e=we.sibling;var st=ee(X,we,J[qe],ce);if(st===null){we===null&&(we=$e);break}e&&we&&st.alternate===null&&a(X,we),G=y(st,G,qe),lt===null?Le=st:lt.sibling=st,lt=st,we=$e}if(qe===J.length)return o(X,we),et&&xa(X,qe),Le;if(we===null){for(;qe<J.length;qe++)we=he(X,J[qe],ce),we!==null&&(G=y(we,G,qe),lt===null?Le=we:lt.sibling=we,lt=we);return et&&xa(X,qe),Le}for(we=h(we);qe<J.length;qe++)$e=ae(we,X,qe,J[qe],ce),$e!==null&&(e&&$e.alternate!==null&&we.delete($e.key===null?qe:$e.key),G=y($e,G,qe),lt===null?Le=$e:lt.sibling=$e,lt=$e);return e&&we.forEach(function(oi){return a(X,oi)}),et&&xa(X,qe),Le}function Be(X,G,J,ce){if(J==null)throw Error(c(151));for(var Le=null,lt=null,we=G,qe=G=0,$e=null,st=J.next();we!==null&&!st.done;qe++,st=J.next()){we.index>qe?($e=we,we=null):$e=we.sibling;var oi=ee(X,we,st.value,ce);if(oi===null){we===null&&(we=$e);break}e&&we&&oi.alternate===null&&a(X,we),G=y(oi,G,qe),lt===null?Le=oi:lt.sibling=oi,lt=oi,we=$e}if(st.done)return o(X,we),et&&xa(X,qe),Le;if(we===null){for(;!st.done;qe++,st=J.next())st=he(X,st.value,ce),st!==null&&(G=y(st,G,qe),lt===null?Le=st:lt.sibling=st,lt=st);return et&&xa(X,qe),Le}for(we=h(we);!st.done;qe++,st=J.next())st=ae(we,X,qe,st.value,ce),st!==null&&(e&&st.alternate!==null&&we.delete(st.key===null?qe:st.key),G=y(st,G,qe),lt===null?Le=st:lt.sibling=st,lt=st);return e&&we.forEach(function(Gp){return a(X,Gp)}),et&&xa(X,qe),Le}function St(X,G,J,ce){if(typeof J=="object"&&J!==null&&J.type===A&&J.key===null&&(J=J.props.children),typeof J=="object"&&J!==null){switch(J.$$typeof){case M:e:{for(var Le=J.key;G!==null;){if(G.key===Le){if(Le=J.type,Le===A){if(G.tag===7){o(X,G.sibling),ce=m(G,J.props.children),ce.return=X,X=ce;break e}}else if(G.elementType===Le||typeof Le=="object"&&Le!==null&&Le.$$typeof===Y&&Ei(Le)===G.type){o(X,G.sibling),ce=m(G,J.props),Er(ce,J),ce.return=X,X=ce;break e}o(X,G);break}else a(X,G);G=G.sibling}J.type===A?(ce=mi(J.props.children,X.mode,ce,J.key),ce.return=X,X=ce):(ce=ol(J.type,J.key,J.props,null,X.mode,ce),Er(ce,J),ce.return=X,X=ce)}return S(X);case k:e:{for(Le=J.key;G!==null;){if(G.key===Le)if(G.tag===4&&G.stateNode.containerInfo===J.containerInfo&&G.stateNode.implementation===J.implementation){o(X,G.sibling),ce=m(G,J.children||[]),ce.return=X,X=ce;break e}else{o(X,G);break}else a(X,G);G=G.sibling}ce=Os(J,X.mode,ce),ce.return=X,X=ce}return S(X);case Y:return J=Ei(J),St(X,G,J,ce)}if(_e(J))return Oe(X,G,J,ce);if(le(J)){if(Le=le(J),typeof Le!="function")throw Error(c(150));return J=Le.call(J),Be(X,G,J,ce)}if(typeof J.then=="function")return St(X,G,ml(J),ce);if(J.$$typeof===U)return St(X,G,fl(X,J),ce);gl(X,J)}return typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint"?(J=""+J,G!==null&&G.tag===6?(o(X,G.sibling),ce=m(G,J),ce.return=X,X=ce):(o(X,G),ce=Cs(J,X.mode,ce),ce.return=X,X=ce),S(X)):o(X,G)}return function(X,G,J,ce){try{br=0;var Le=St(X,G,J,ce);return Hi=null,Le}catch(we){if(we===Ii||we===hl)throw we;var lt=Vn(29,we,null,X.mode);return lt.lanes=ce,lt.return=X,lt}}}var xi=tc(!0),nc=tc(!1),Fa=!1;function Hs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ps(e,a){e=e.updateQueue,a.updateQueue===e&&(a.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Wa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Xa(e,a,o){var h=e.updateQueue;if(h===null)return null;if(h=h.shared,(ct&2)!==0){var m=h.pending;return m===null?a.next=a:(a.next=m.next,m.next=a),h.pending=a,a=sl(e),Iu(e,null,o),a}return ll(e,h,a,o),sl(e)}function _r(e,a,o){if(a=a.updateQueue,a!==null&&(a=a.shared,(o&4194048)!==0)){var h=a.lanes;h&=e.pendingLanes,o|=h,a.lanes=o,$t(e,o)}}function qs(e,a){var o=e.updateQueue,h=e.alternate;if(h!==null&&(h=h.updateQueue,o===h)){var m=null,y=null;if(o=o.firstBaseUpdate,o!==null){do{var S={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};y===null?m=y=S:y=y.next=S,o=o.next}while(o!==null);y===null?m=y=a:y=y.next=a}else m=y=a;o={baseState:h.baseState,firstBaseUpdate:m,lastBaseUpdate:y,shared:h.shared,callbacks:h.callbacks},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=a:e.next=a,o.lastBaseUpdate=a}var Vs=!1;function xr(){if(Vs){var e=Ui;if(e!==null)throw e}}function Sr(e,a,o,h){Vs=!1;var m=e.updateQueue;Fa=!1;var y=m.firstBaseUpdate,S=m.lastBaseUpdate,N=m.shared.pending;if(N!==null){m.shared.pending=null;var P=N,$=P.next;P.next=null,S===null?y=$:S.next=$,S=P;var se=e.alternate;se!==null&&(se=se.updateQueue,N=se.lastBaseUpdate,N!==S&&(N===null?se.firstBaseUpdate=$:N.next=$,se.lastBaseUpdate=P))}if(y!==null){var he=m.baseState;S=0,se=$=P=null,N=y;do{var ee=N.lane&-536870913,ae=ee!==N.lane;if(ae?(Je&ee)===ee:(h&ee)===ee){ee!==0&&ee===zi&&(Vs=!0),se!==null&&(se=se.next={lane:0,tag:N.tag,payload:N.payload,callback:null,next:null});e:{var Oe=e,Be=N;ee=a;var St=o;switch(Be.tag){case 1:if(Oe=Be.payload,typeof Oe=="function"){he=Oe.call(St,he,ee);break e}he=Oe;break e;case 3:Oe.flags=Oe.flags&-65537|128;case 0:if(Oe=Be.payload,ee=typeof Oe=="function"?Oe.call(St,he,ee):Oe,ee==null)break e;he=w({},he,ee);break e;case 2:Fa=!0}}ee=N.callback,ee!==null&&(e.flags|=64,ae&&(e.flags|=8192),ae=m.callbacks,ae===null?m.callbacks=[ee]:ae.push(ee))}else ae={lane:ee,tag:N.tag,payload:N.payload,callback:N.callback,next:null},se===null?($=se=ae,P=he):se=se.next=ae,S|=ee;if(N=N.next,N===null){if(N=m.shared.pending,N===null)break;ae=N,N=ae.next,ae.next=null,m.lastBaseUpdate=ae,m.shared.pending=null}}while(!0);se===null&&(P=he),m.baseState=P,m.firstBaseUpdate=$,m.lastBaseUpdate=se,y===null&&(m.shared.lanes=0),Ja|=S,e.lanes=S,e.memoizedState=he}}function ac(e,a){if(typeof e!="function")throw Error(c(191,e));e.call(a)}function ic(e,a){var o=e.callbacks;if(o!==null)for(e.callbacks=null,e=0;e<o.length;e++)ac(o[e],a)}var Pi=H(null),yl=H(0);function rc(e,a){e=Da,ue(yl,e),ue(Pi,a),Da=e|a.baseLanes}function Gs(){ue(yl,Da),ue(Pi,Pi.current)}function Fs(){Da=yl.current,ie(Pi),ie(yl)}var Gn=H(null),aa=null;function Qa(e){var a=e.alternate;ue(Yt,Yt.current&1),ue(Gn,e),aa===null&&(a===null||Pi.current!==null||a.memoizedState!==null)&&(aa=e)}function Ws(e){ue(Yt,Yt.current),ue(Gn,e),aa===null&&(aa=e)}function lc(e){e.tag===22?(ue(Yt,Yt.current),ue(Gn,e),aa===null&&(aa=e)):Ya()}function Ya(){ue(Yt,Yt.current),ue(Gn,Gn.current)}function Fn(e){ie(Gn),aa===e&&(aa=null),ie(Yt)}var Yt=H(0);function vl(e){for(var a=e;a!==null;){if(a.tag===13){var o=a.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||$o(o)||eu(o)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break;for(;a.sibling===null;){if(a.return===null||a.return===e)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Ra=0,Pe=null,_t=null,rn=null,bl=!1,qi=!1,Si=!1,El=0,Tr=0,Vi=null,kh=0;function Ft(){throw Error(c(321))}function Xs(e,a){if(a===null)return!1;for(var o=0;o<a.length&&o<e.length;o++)if(!qn(e[o],a[o]))return!1;return!0}function Qs(e,a,o,h,m,y){return Ra=y,Pe=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,K.H=e===null||e.memoizedState===null?Vc:uo,Si=!1,y=o(h,m),Si=!1,qi&&(y=oc(a,o,h,m)),sc(e),y}function sc(e){K.H=Cr;var a=_t!==null&&_t.next!==null;if(Ra=0,rn=_t=Pe=null,bl=!1,Tr=0,Vi=null,a)throw Error(c(300));e===null||ln||(e=e.dependencies,e!==null&&cl(e)&&(ln=!0))}function oc(e,a,o,h){Pe=e;var m=0;do{if(qi&&(Vi=null),Tr=0,qi=!1,25<=m)throw Error(c(301));if(m+=1,rn=_t=null,e.updateQueue!=null){var y=e.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}K.H=Gc,y=a(o,h)}while(qi);return y}function Lh(){var e=K.H,a=e.useState()[0];return a=typeof a.then=="function"?Rr(a):a,e=e.useState()[0],(_t!==null?_t.memoizedState:null)!==e&&(Pe.flags|=1024),a}function Ys(){var e=El!==0;return El=0,e}function Ks(e,a,o){a.updateQueue=e.updateQueue,a.flags&=-2053,e.lanes&=~o}function Zs(e){if(bl){for(e=e.memoizedState;e!==null;){var a=e.queue;a!==null&&(a.pending=null),e=e.next}bl=!1}Ra=0,rn=_t=Pe=null,qi=!1,Tr=El=0,Vi=null}function Mn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return rn===null?Pe.memoizedState=rn=e:rn=rn.next=e,rn}function Kt(){if(_t===null){var e=Pe.alternate;e=e!==null?e.memoizedState:null}else e=_t.next;var a=rn===null?Pe.memoizedState:rn.next;if(a!==null)rn=a,_t=e;else{if(e===null)throw Pe.alternate===null?Error(c(467)):Error(c(310));_t=e,e={memoizedState:_t.memoizedState,baseState:_t.baseState,baseQueue:_t.baseQueue,queue:_t.queue,next:null},rn===null?Pe.memoizedState=rn=e:rn=rn.next=e}return rn}function _l(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Rr(e){var a=Tr;return Tr+=1,Vi===null&&(Vi=[]),e=Ju(Vi,e,a),a=Pe,(rn===null?a.memoizedState:rn.next)===null&&(a=a.alternate,K.H=a===null||a.memoizedState===null?Vc:uo),e}function xl(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Rr(e);if(e.$$typeof===U)return Sn(e)}throw Error(c(438,String(e)))}function Js(e){var a=null,o=Pe.updateQueue;if(o!==null&&(a=o.memoCache),a==null){var h=Pe.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(a={data:h.data.map(function(m){return m.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),o===null&&(o=_l(),Pe.updateQueue=o),o.memoCache=a,o=a.data[a.index],o===void 0)for(o=a.data[a.index]=Array(e),h=0;h<e;h++)o[h]=fe;return a.index++,o}function Aa(e,a){return typeof a=="function"?a(e):a}function Sl(e){var a=Kt();return $s(a,_t,e)}function $s(e,a,o){var h=e.queue;if(h===null)throw Error(c(311));h.lastRenderedReducer=o;var m=e.baseQueue,y=h.pending;if(y!==null){if(m!==null){var S=m.next;m.next=y.next,y.next=S}a.baseQueue=m=y,h.pending=null}if(y=e.baseState,m===null)e.memoizedState=y;else{a=m.next;var N=S=null,P=null,$=a,se=!1;do{var he=$.lane&-536870913;if(he!==$.lane?(Je&he)===he:(Ra&he)===he){var ee=$.revertLane;if(ee===0)P!==null&&(P=P.next={lane:0,revertLane:0,gesture:null,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null}),he===zi&&(se=!0);else if((Ra&ee)===ee){$=$.next,ee===zi&&(se=!0);continue}else he={lane:0,revertLane:$.revertLane,gesture:null,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},P===null?(N=P=he,S=y):P=P.next=he,Pe.lanes|=ee,Ja|=ee;he=$.action,Si&&o(y,he),y=$.hasEagerState?$.eagerState:o(y,he)}else ee={lane:he,revertLane:$.revertLane,gesture:$.gesture,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},P===null?(N=P=ee,S=y):P=P.next=ee,Pe.lanes|=he,Ja|=he;$=$.next}while($!==null&&$!==a);if(P===null?S=y:P.next=N,!qn(y,e.memoizedState)&&(ln=!0,se&&(o=Ui,o!==null)))throw o;e.memoizedState=y,e.baseState=S,e.baseQueue=P,h.lastRenderedState=y}return m===null&&(h.lanes=0),[e.memoizedState,h.dispatch]}function eo(e){var a=Kt(),o=a.queue;if(o===null)throw Error(c(311));o.lastRenderedReducer=e;var h=o.dispatch,m=o.pending,y=a.memoizedState;if(m!==null){o.pending=null;var S=m=m.next;do y=e(y,S.action),S=S.next;while(S!==m);qn(y,a.memoizedState)||(ln=!0),a.memoizedState=y,a.baseQueue===null&&(a.baseState=y),o.lastRenderedState=y}return[y,h]}function uc(e,a,o){var h=Pe,m=Kt(),y=et;if(y){if(o===void 0)throw Error(c(407));o=o()}else o=a();var S=!qn((_t||m).memoizedState,o);if(S&&(m.memoizedState=o,ln=!0),m=m.queue,ao(dc.bind(null,h,m,e),[e]),m.getSnapshot!==a||S||rn!==null&&rn.memoizedState.tag&1){if(h.flags|=2048,Gi(9,{destroy:void 0},fc.bind(null,h,m,o,a),null),Rt===null)throw Error(c(349));y||(Ra&127)!==0||cc(h,a,o)}return o}function cc(e,a,o){e.flags|=16384,e={getSnapshot:a,value:o},a=Pe.updateQueue,a===null?(a=_l(),Pe.updateQueue=a,a.stores=[e]):(o=a.stores,o===null?a.stores=[e]:o.push(e))}function fc(e,a,o,h){a.value=o,a.getSnapshot=h,hc(a)&&pc(e)}function dc(e,a,o){return o(function(){hc(a)&&pc(e)})}function hc(e){var a=e.getSnapshot;e=e.value;try{var o=a();return!qn(e,o)}catch{return!0}}function pc(e){var a=pi(e,2);a!==null&&Pn(a,e,2)}function to(e){var a=Mn();if(typeof e=="function"){var o=e;if(e=o(),Si){pt(!0);try{o()}finally{pt(!1)}}}return a.memoizedState=a.baseState=e,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Aa,lastRenderedState:e},a}function mc(e,a,o,h){return e.baseState=o,$s(e,_t,typeof h=="function"?h:Aa)}function Bh(e,a,o,h,m){if(Al(e))throw Error(c(485));if(e=a.action,e!==null){var y={payload:m,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(S){y.listeners.push(S)}};K.T!==null?o(!0):y.isTransition=!1,h(y),o=a.pending,o===null?(y.next=a.pending=y,gc(a,y)):(y.next=o.next,a.pending=o.next=y)}}function gc(e,a){var o=a.action,h=a.payload,m=e.state;if(a.isTransition){var y=K.T,S={};K.T=S;try{var N=o(m,h),P=K.S;P!==null&&P(S,N),yc(e,a,N)}catch($){no(e,a,$)}finally{y!==null&&S.types!==null&&(y.types=S.types),K.T=y}}else try{y=o(m,h),yc(e,a,y)}catch($){no(e,a,$)}}function yc(e,a,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(h){vc(e,a,h)},function(h){return no(e,a,h)}):vc(e,a,o)}function vc(e,a,o){a.status="fulfilled",a.value=o,bc(a),e.state=o,a=e.pending,a!==null&&(o=a.next,o===a?e.pending=null:(o=o.next,a.next=o,gc(e,o)))}function no(e,a,o){var h=e.pending;if(e.pending=null,h!==null){h=h.next;do a.status="rejected",a.reason=o,bc(a),a=a.next;while(a!==h)}e.action=null}function bc(e){e=e.listeners;for(var a=0;a<e.length;a++)(0,e[a])()}function Ec(e,a){return a}function _c(e,a){if(et){var o=Rt.formState;if(o!==null){e:{var h=Pe;if(et){if(Mt){t:{for(var m=Mt,y=na;m.nodeType!==8;){if(!y){m=null;break t}if(m=ia(m.nextSibling),m===null){m=null;break t}}y=m.data,m=y==="F!"||y==="F"?m:null}if(m){Mt=ia(m.nextSibling),h=m.data==="F!";break e}}Va(h)}h=!1}h&&(a=o[0])}}return o=Mn(),o.memoizedState=o.baseState=a,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ec,lastRenderedState:a},o.queue=h,o=Hc.bind(null,Pe,h),h.dispatch=o,h=to(!1),y=oo.bind(null,Pe,!1,h.queue),h=Mn(),m={state:a,dispatch:null,action:e,pending:null},h.queue=m,o=Bh.bind(null,Pe,m,y,o),m.dispatch=o,h.memoizedState=e,[a,o,!1]}function xc(e){var a=Kt();return Sc(a,_t,e)}function Sc(e,a,o){if(a=$s(e,a,Ec)[0],e=Sl(Aa)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var h=Rr(a)}catch(S){throw S===Ii?hl:S}else h=a;a=Kt();var m=a.queue,y=m.dispatch;return o!==a.memoizedState&&(Pe.flags|=2048,Gi(9,{destroy:void 0},zh.bind(null,m,o),null)),[h,y,e]}function zh(e,a){e.action=a}function Tc(e){var a=Kt(),o=_t;if(o!==null)return Sc(a,o,e);Kt(),a=a.memoizedState,o=Kt();var h=o.queue.dispatch;return o.memoizedState=e,[a,h,!1]}function Gi(e,a,o,h){return e={tag:e,create:o,deps:h,inst:a,next:null},a=Pe.updateQueue,a===null&&(a=_l(),Pe.updateQueue=a),o=a.lastEffect,o===null?a.lastEffect=e.next=e:(h=o.next,o.next=e,e.next=h,a.lastEffect=e),e}function Rc(){return Kt().memoizedState}function Tl(e,a,o,h){var m=Mn();Pe.flags|=e,m.memoizedState=Gi(1|a,{destroy:void 0},o,h===void 0?null:h)}function Rl(e,a,o,h){var m=Kt();h=h===void 0?null:h;var y=m.memoizedState.inst;_t!==null&&h!==null&&Xs(h,_t.memoizedState.deps)?m.memoizedState=Gi(a,y,o,h):(Pe.flags|=e,m.memoizedState=Gi(1|a,y,o,h))}function Ac(e,a){Tl(8390656,8,e,a)}function ao(e,a){Rl(2048,8,e,a)}function Uh(e){Pe.flags|=4;var a=Pe.updateQueue;if(a===null)a=_l(),Pe.updateQueue=a,a.events=[e];else{var o=a.events;o===null?a.events=[e]:o.push(e)}}function Cc(e){var a=Kt().memoizedState;return Uh({ref:a,nextImpl:e}),function(){if((ct&2)!==0)throw Error(c(440));return a.impl.apply(void 0,arguments)}}function Oc(e,a){return Rl(4,2,e,a)}function wc(e,a){return Rl(4,4,e,a)}function Nc(e,a){if(typeof a=="function"){e=e();var o=a(e);return function(){typeof o=="function"?o():a(null)}}if(a!=null)return e=e(),a.current=e,function(){a.current=null}}function Mc(e,a,o){o=o!=null?o.concat([e]):null,Rl(4,4,Nc.bind(null,a,e),o)}function io(){}function jc(e,a){var o=Kt();a=a===void 0?null:a;var h=o.memoizedState;return a!==null&&Xs(a,h[1])?h[0]:(o.memoizedState=[e,a],e)}function Dc(e,a){var o=Kt();a=a===void 0?null:a;var h=o.memoizedState;if(a!==null&&Xs(a,h[1]))return h[0];if(h=e(),Si){pt(!0);try{e()}finally{pt(!1)}}return o.memoizedState=[h,a],h}function ro(e,a,o){return o===void 0||(Ra&1073741824)!==0&&(Je&261930)===0?e.memoizedState=a:(e.memoizedState=o,e=Lf(),Pe.lanes|=e,Ja|=e,o)}function kc(e,a,o,h){return qn(o,a)?o:Pi.current!==null?(e=ro(e,o,h),qn(e,a)||(ln=!0),e):(Ra&42)===0||(Ra&1073741824)!==0&&(Je&261930)===0?(ln=!0,e.memoizedState=o):(e=Lf(),Pe.lanes|=e,Ja|=e,a)}function Lc(e,a,o,h,m){var y=pe.p;pe.p=y!==0&&8>y?y:8;var S=K.T,N={};K.T=N,oo(e,!1,a,o);try{var P=m(),$=K.S;if($!==null&&$(N,P),P!==null&&typeof P=="object"&&typeof P.then=="function"){var se=Dh(P,h);Ar(e,a,se,Qn(e))}else Ar(e,a,h,Qn(e))}catch(he){Ar(e,a,{then:function(){},status:"rejected",reason:he},Qn())}finally{pe.p=y,S!==null&&N.types!==null&&(S.types=N.types),K.T=S}}function Ih(){}function lo(e,a,o,h){if(e.tag!==5)throw Error(c(476));var m=Bc(e).queue;Lc(e,m,a,te,o===null?Ih:function(){return zc(e),o(h)})}function Bc(e){var a=e.memoizedState;if(a!==null)return a;a={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Aa,lastRenderedState:te},next:null};var o={};return a.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Aa,lastRenderedState:o},next:null},e.memoizedState=a,e=e.alternate,e!==null&&(e.memoizedState=a),a}function zc(e){var a=Bc(e);a.next===null&&(a=e.alternate.memoizedState),Ar(e,a.next.queue,{},Qn())}function so(){return Sn(Vr)}function Uc(){return Kt().memoizedState}function Ic(){return Kt().memoizedState}function Hh(e){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var o=Qn();e=Wa(o);var h=Xa(a,e,o);h!==null&&(Pn(h,a,o),_r(h,a,o)),a={cache:Bs()},e.payload=a;return}a=a.return}}function Ph(e,a,o){var h=Qn();o={lane:h,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Al(e)?Pc(a,o):(o=Rs(e,a,o,h),o!==null&&(Pn(o,e,h),qc(o,a,h)))}function Hc(e,a,o){var h=Qn();Ar(e,a,o,h)}function Ar(e,a,o,h){var m={lane:h,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(Al(e))Pc(a,m);else{var y=e.alternate;if(e.lanes===0&&(y===null||y.lanes===0)&&(y=a.lastRenderedReducer,y!==null))try{var S=a.lastRenderedState,N=y(S,o);if(m.hasEagerState=!0,m.eagerState=N,qn(N,S))return ll(e,a,m,0),Rt===null&&rl(),!1}catch{}if(o=Rs(e,a,m,h),o!==null)return Pn(o,e,h),qc(o,a,h),!0}return!1}function oo(e,a,o,h){if(h={lane:2,revertLane:Po(),gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},Al(e)){if(a)throw Error(c(479))}else a=Rs(e,o,h,2),a!==null&&Pn(a,e,2)}function Al(e){var a=e.alternate;return e===Pe||a!==null&&a===Pe}function Pc(e,a){qi=bl=!0;var o=e.pending;o===null?a.next=a:(a.next=o.next,o.next=a),e.pending=a}function qc(e,a,o){if((o&4194048)!==0){var h=a.lanes;h&=e.pendingLanes,o|=h,a.lanes=o,$t(e,o)}}var Cr={readContext:Sn,use:xl,useCallback:Ft,useContext:Ft,useEffect:Ft,useImperativeHandle:Ft,useLayoutEffect:Ft,useInsertionEffect:Ft,useMemo:Ft,useReducer:Ft,useRef:Ft,useState:Ft,useDebugValue:Ft,useDeferredValue:Ft,useTransition:Ft,useSyncExternalStore:Ft,useId:Ft,useHostTransitionStatus:Ft,useFormState:Ft,useActionState:Ft,useOptimistic:Ft,useMemoCache:Ft,useCacheRefresh:Ft};Cr.useEffectEvent=Ft;var Vc={readContext:Sn,use:xl,useCallback:function(e,a){return Mn().memoizedState=[e,a===void 0?null:a],e},useContext:Sn,useEffect:Ac,useImperativeHandle:function(e,a,o){o=o!=null?o.concat([e]):null,Tl(4194308,4,Nc.bind(null,a,e),o)},useLayoutEffect:function(e,a){return Tl(4194308,4,e,a)},useInsertionEffect:function(e,a){Tl(4,2,e,a)},useMemo:function(e,a){var o=Mn();a=a===void 0?null:a;var h=e();if(Si){pt(!0);try{e()}finally{pt(!1)}}return o.memoizedState=[h,a],h},useReducer:function(e,a,o){var h=Mn();if(o!==void 0){var m=o(a);if(Si){pt(!0);try{o(a)}finally{pt(!1)}}}else m=a;return h.memoizedState=h.baseState=m,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:m},h.queue=e,e=e.dispatch=Ph.bind(null,Pe,e),[h.memoizedState,e]},useRef:function(e){var a=Mn();return e={current:e},a.memoizedState=e},useState:function(e){e=to(e);var a=e.queue,o=Hc.bind(null,Pe,a);return a.dispatch=o,[e.memoizedState,o]},useDebugValue:io,useDeferredValue:function(e,a){var o=Mn();return ro(o,e,a)},useTransition:function(){var e=to(!1);return e=Lc.bind(null,Pe,e.queue,!0,!1),Mn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,a,o){var h=Pe,m=Mn();if(et){if(o===void 0)throw Error(c(407));o=o()}else{if(o=a(),Rt===null)throw Error(c(349));(Je&127)!==0||cc(h,a,o)}m.memoizedState=o;var y={value:o,getSnapshot:a};return m.queue=y,Ac(dc.bind(null,h,y,e),[e]),h.flags|=2048,Gi(9,{destroy:void 0},fc.bind(null,h,y,o,a),null),o},useId:function(){var e=Mn(),a=Rt.identifierPrefix;if(et){var o=da,h=fa;o=(h&~(1<<32-tt(h)-1)).toString(32)+o,a="_"+a+"R_"+o,o=El++,0<o&&(a+="H"+o.toString(32)),a+="_"}else o=kh++,a="_"+a+"r_"+o.toString(32)+"_";return e.memoizedState=a},useHostTransitionStatus:so,useFormState:_c,useActionState:_c,useOptimistic:function(e){var a=Mn();a.memoizedState=a.baseState=e;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=o,a=oo.bind(null,Pe,!0,o),o.dispatch=a,[e,a]},useMemoCache:Js,useCacheRefresh:function(){return Mn().memoizedState=Hh.bind(null,Pe)},useEffectEvent:function(e){var a=Mn(),o={impl:e};return a.memoizedState=o,function(){if((ct&2)!==0)throw Error(c(440));return o.impl.apply(void 0,arguments)}}},uo={readContext:Sn,use:xl,useCallback:jc,useContext:Sn,useEffect:ao,useImperativeHandle:Mc,useInsertionEffect:Oc,useLayoutEffect:wc,useMemo:Dc,useReducer:Sl,useRef:Rc,useState:function(){return Sl(Aa)},useDebugValue:io,useDeferredValue:function(e,a){var o=Kt();return kc(o,_t.memoizedState,e,a)},useTransition:function(){var e=Sl(Aa)[0],a=Kt().memoizedState;return[typeof e=="boolean"?e:Rr(e),a]},useSyncExternalStore:uc,useId:Uc,useHostTransitionStatus:so,useFormState:xc,useActionState:xc,useOptimistic:function(e,a){var o=Kt();return mc(o,_t,e,a)},useMemoCache:Js,useCacheRefresh:Ic};uo.useEffectEvent=Cc;var Gc={readContext:Sn,use:xl,useCallback:jc,useContext:Sn,useEffect:ao,useImperativeHandle:Mc,useInsertionEffect:Oc,useLayoutEffect:wc,useMemo:Dc,useReducer:eo,useRef:Rc,useState:function(){return eo(Aa)},useDebugValue:io,useDeferredValue:function(e,a){var o=Kt();return _t===null?ro(o,e,a):kc(o,_t.memoizedState,e,a)},useTransition:function(){var e=eo(Aa)[0],a=Kt().memoizedState;return[typeof e=="boolean"?e:Rr(e),a]},useSyncExternalStore:uc,useId:Uc,useHostTransitionStatus:so,useFormState:Tc,useActionState:Tc,useOptimistic:function(e,a){var o=Kt();return _t!==null?mc(o,_t,e,a):(o.baseState=e,[e,o.queue.dispatch])},useMemoCache:Js,useCacheRefresh:Ic};Gc.useEffectEvent=Cc;function co(e,a,o,h){a=e.memoizedState,o=o(h,a),o=o==null?a:w({},a,o),e.memoizedState=o,e.lanes===0&&(e.updateQueue.baseState=o)}var fo={enqueueSetState:function(e,a,o){e=e._reactInternals;var h=Qn(),m=Wa(h);m.payload=a,o!=null&&(m.callback=o),a=Xa(e,m,h),a!==null&&(Pn(a,e,h),_r(a,e,h))},enqueueReplaceState:function(e,a,o){e=e._reactInternals;var h=Qn(),m=Wa(h);m.tag=1,m.payload=a,o!=null&&(m.callback=o),a=Xa(e,m,h),a!==null&&(Pn(a,e,h),_r(a,e,h))},enqueueForceUpdate:function(e,a){e=e._reactInternals;var o=Qn(),h=Wa(o);h.tag=2,a!=null&&(h.callback=a),a=Xa(e,h,o),a!==null&&(Pn(a,e,o),_r(a,e,o))}};function Fc(e,a,o,h,m,y,S){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(h,y,S):a.prototype&&a.prototype.isPureReactComponent?!hr(o,h)||!hr(m,y):!0}function Wc(e,a,o,h){e=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(o,h),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(o,h),a.state!==e&&fo.enqueueReplaceState(a,a.state,null)}function Ti(e,a){var o=a;if("ref"in a){o={};for(var h in a)h!=="ref"&&(o[h]=a[h])}if(e=e.defaultProps){o===a&&(o=w({},o));for(var m in e)o[m]===void 0&&(o[m]=e[m])}return o}function Xc(e){il(e)}function Qc(e){console.error(e)}function Yc(e){il(e)}function Cl(e,a){try{var o=e.onUncaughtError;o(a.value,{componentStack:a.stack})}catch(h){setTimeout(function(){throw h})}}function Kc(e,a,o){try{var h=e.onCaughtError;h(o.value,{componentStack:o.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(m){setTimeout(function(){throw m})}}function ho(e,a,o){return o=Wa(o),o.tag=3,o.payload={element:null},o.callback=function(){Cl(e,a)},o}function Zc(e){return e=Wa(e),e.tag=3,e}function Jc(e,a,o,h){var m=o.type.getDerivedStateFromError;if(typeof m=="function"){var y=h.value;e.payload=function(){return m(y)},e.callback=function(){Kc(a,o,h)}}var S=o.stateNode;S!==null&&typeof S.componentDidCatch=="function"&&(e.callback=function(){Kc(a,o,h),typeof m!="function"&&($a===null?$a=new Set([this]):$a.add(this));var N=h.stack;this.componentDidCatch(h.value,{componentStack:N!==null?N:""})})}function qh(e,a,o,h,m){if(o.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(a=o.alternate,a!==null&&Bi(a,o,m,!0),o=Gn.current,o!==null){switch(o.tag){case 31:case 13:return aa===null?Il():o.alternate===null&&Wt===0&&(Wt=3),o.flags&=-257,o.flags|=65536,o.lanes=m,h===pl?o.flags|=16384:(a=o.updateQueue,a===null?o.updateQueue=new Set([h]):a.add(h),Uo(e,h,m)),!1;case 22:return o.flags|=65536,h===pl?o.flags|=16384:(a=o.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([h])},o.updateQueue=a):(o=a.retryQueue,o===null?a.retryQueue=new Set([h]):o.add(h)),Uo(e,h,m)),!1}throw Error(c(435,o.tag))}return Uo(e,h,m),Il(),!1}if(et)return a=Gn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=m,h!==Ms&&(e=Error(c(422),{cause:h}),gr($n(e,o)))):(h!==Ms&&(a=Error(c(423),{cause:h}),gr($n(a,o))),e=e.current.alternate,e.flags|=65536,m&=-m,e.lanes|=m,h=$n(h,o),m=ho(e.stateNode,h,m),qs(e,m),Wt!==4&&(Wt=2)),!1;var y=Error(c(520),{cause:h});if(y=$n(y,o),Lr===null?Lr=[y]:Lr.push(y),Wt!==4&&(Wt=2),a===null)return!0;h=$n(h,o),o=a;do{switch(o.tag){case 3:return o.flags|=65536,e=m&-m,o.lanes|=e,e=ho(o.stateNode,h,e),qs(o,e),!1;case 1:if(a=o.type,y=o.stateNode,(o.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&($a===null||!$a.has(y))))return o.flags|=65536,m&=-m,o.lanes|=m,m=Zc(m),Jc(m,e,o,h),qs(o,m),!1}o=o.return}while(o!==null);return!1}var po=Error(c(461)),ln=!1;function Tn(e,a,o,h){a.child=e===null?nc(a,null,o,h):xi(a,e.child,o,h)}function $c(e,a,o,h,m){o=o.render;var y=a.ref;if("ref"in h){var S={};for(var N in h)N!=="ref"&&(S[N]=h[N])}else S=h;return vi(a),h=Qs(e,a,o,S,y,m),N=Ys(),e!==null&&!ln?(Ks(e,a,m),Ca(e,a,m)):(et&&N&&ws(a),a.flags|=1,Tn(e,a,h,m),a.child)}function ef(e,a,o,h,m){if(e===null){var y=o.type;return typeof y=="function"&&!As(y)&&y.defaultProps===void 0&&o.compare===null?(a.tag=15,a.type=y,tf(e,a,y,h,m)):(e=ol(o.type,null,h,a,a.mode,m),e.ref=a.ref,e.return=a,a.child=e)}if(y=e.child,!xo(e,m)){var S=y.memoizedProps;if(o=o.compare,o=o!==null?o:hr,o(S,h)&&e.ref===a.ref)return Ca(e,a,m)}return a.flags|=1,e=_a(y,h),e.ref=a.ref,e.return=a,a.child=e}function tf(e,a,o,h,m){if(e!==null){var y=e.memoizedProps;if(hr(y,h)&&e.ref===a.ref)if(ln=!1,a.pendingProps=h=y,xo(e,m))(e.flags&131072)!==0&&(ln=!0);else return a.lanes=e.lanes,Ca(e,a,m)}return mo(e,a,o,h,m)}function nf(e,a,o,h){var m=h.children,y=e!==null?e.memoizedState:null;if(e===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),h.mode==="hidden"){if((a.flags&128)!==0){if(y=y!==null?y.baseLanes|o:o,e!==null){for(h=a.child=e.child,m=0;h!==null;)m=m|h.lanes|h.childLanes,h=h.sibling;h=m&~y}else h=0,a.child=null;return af(e,a,y,o,h)}if((o&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},e!==null&&dl(a,y!==null?y.cachePool:null),y!==null?rc(a,y):Gs(),lc(a);else return h=a.lanes=536870912,af(e,a,y!==null?y.baseLanes|o:o,o,h)}else y!==null?(dl(a,y.cachePool),rc(a,y),Ya(),a.memoizedState=null):(e!==null&&dl(a,null),Gs(),Ya());return Tn(e,a,m,o),a.child}function Or(e,a){return e!==null&&e.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function af(e,a,o,h,m){var y=Us();return y=y===null?null:{parent:an._currentValue,pool:y},a.memoizedState={baseLanes:o,cachePool:y},e!==null&&dl(a,null),Gs(),lc(a),e!==null&&Bi(e,a,h,!0),a.childLanes=m,null}function Ol(e,a){return a=Nl({mode:a.mode,children:a.children},e.mode),a.ref=e.ref,e.child=a,a.return=e,a}function rf(e,a,o){return xi(a,e.child,null,o),e=Ol(a,a.pendingProps),e.flags|=2,Fn(a),a.memoizedState=null,e}function Vh(e,a,o){var h=a.pendingProps,m=(a.flags&128)!==0;if(a.flags&=-129,e===null){if(et){if(h.mode==="hidden")return e=Ol(a,h),a.lanes=536870912,Or(null,e);if(Ws(a),(e=Mt)?(e=yd(e,na),e=e!==null&&e.data==="&"?e:null,e!==null&&(a.memoizedState={dehydrated:e,treeContext:Pa!==null?{id:fa,overflow:da}:null,retryLane:536870912,hydrationErrors:null},o=Pu(e),o.return=a,a.child=o,xn=a,Mt=null)):e=null,e===null)throw Va(a);return a.lanes=536870912,null}return Ol(a,h)}var y=e.memoizedState;if(y!==null){var S=y.dehydrated;if(Ws(a),m)if(a.flags&256)a.flags&=-257,a=rf(e,a,o);else if(a.memoizedState!==null)a.child=e.child,a.flags|=128,a=null;else throw Error(c(558));else if(ln||Bi(e,a,o,!1),m=(o&e.childLanes)!==0,ln||m){if(h=Rt,h!==null&&(S=vn(h,o),S!==0&&S!==y.retryLane))throw y.retryLane=S,pi(e,S),Pn(h,e,S),po;Il(),a=rf(e,a,o)}else e=y.treeContext,Mt=ia(S.nextSibling),xn=a,et=!0,qa=null,na=!1,e!==null&&Gu(a,e),a=Ol(a,h),a.flags|=4096;return a}return e=_a(e.child,{mode:h.mode,children:h.children}),e.ref=a.ref,a.child=e,e.return=a,e}function wl(e,a){var o=a.ref;if(o===null)e!==null&&e.ref!==null&&(a.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(c(284));(e===null||e.ref!==o)&&(a.flags|=4194816)}}function mo(e,a,o,h,m){return vi(a),o=Qs(e,a,o,h,void 0,m),h=Ys(),e!==null&&!ln?(Ks(e,a,m),Ca(e,a,m)):(et&&h&&ws(a),a.flags|=1,Tn(e,a,o,m),a.child)}function lf(e,a,o,h,m,y){return vi(a),a.updateQueue=null,o=oc(a,h,o,m),sc(e),h=Ys(),e!==null&&!ln?(Ks(e,a,y),Ca(e,a,y)):(et&&h&&ws(a),a.flags|=1,Tn(e,a,o,y),a.child)}function sf(e,a,o,h,m){if(vi(a),a.stateNode===null){var y=ji,S=o.contextType;typeof S=="object"&&S!==null&&(y=Sn(S)),y=new o(h,y),a.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=fo,a.stateNode=y,y._reactInternals=a,y=a.stateNode,y.props=h,y.state=a.memoizedState,y.refs={},Hs(a),S=o.contextType,y.context=typeof S=="object"&&S!==null?Sn(S):ji,y.state=a.memoizedState,S=o.getDerivedStateFromProps,typeof S=="function"&&(co(a,o,S,h),y.state=a.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(S=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),S!==y.state&&fo.enqueueReplaceState(y,y.state,null),Sr(a,h,y,m),xr(),y.state=a.memoizedState),typeof y.componentDidMount=="function"&&(a.flags|=4194308),h=!0}else if(e===null){y=a.stateNode;var N=a.memoizedProps,P=Ti(o,N);y.props=P;var $=y.context,se=o.contextType;S=ji,typeof se=="object"&&se!==null&&(S=Sn(se));var he=o.getDerivedStateFromProps;se=typeof he=="function"||typeof y.getSnapshotBeforeUpdate=="function",N=a.pendingProps!==N,se||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(N||$!==S)&&Wc(a,y,h,S),Fa=!1;var ee=a.memoizedState;y.state=ee,Sr(a,h,y,m),xr(),$=a.memoizedState,N||ee!==$||Fa?(typeof he=="function"&&(co(a,o,he,h),$=a.memoizedState),(P=Fa||Fc(a,o,P,h,ee,$,S))?(se||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(a.flags|=4194308)):(typeof y.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=h,a.memoizedState=$),y.props=h,y.state=$,y.context=S,h=P):(typeof y.componentDidMount=="function"&&(a.flags|=4194308),h=!1)}else{y=a.stateNode,Ps(e,a),S=a.memoizedProps,se=Ti(o,S),y.props=se,he=a.pendingProps,ee=y.context,$=o.contextType,P=ji,typeof $=="object"&&$!==null&&(P=Sn($)),N=o.getDerivedStateFromProps,($=typeof N=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(S!==he||ee!==P)&&Wc(a,y,h,P),Fa=!1,ee=a.memoizedState,y.state=ee,Sr(a,h,y,m),xr();var ae=a.memoizedState;S!==he||ee!==ae||Fa||e!==null&&e.dependencies!==null&&cl(e.dependencies)?(typeof N=="function"&&(co(a,o,N,h),ae=a.memoizedState),(se=Fa||Fc(a,o,se,h,ee,ae,P)||e!==null&&e.dependencies!==null&&cl(e.dependencies))?($||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(h,ae,P),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(h,ae,P)),typeof y.componentDidUpdate=="function"&&(a.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof y.componentDidUpdate!="function"||S===e.memoizedProps&&ee===e.memoizedState||(a.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||S===e.memoizedProps&&ee===e.memoizedState||(a.flags|=1024),a.memoizedProps=h,a.memoizedState=ae),y.props=h,y.state=ae,y.context=P,h=se):(typeof y.componentDidUpdate!="function"||S===e.memoizedProps&&ee===e.memoizedState||(a.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||S===e.memoizedProps&&ee===e.memoizedState||(a.flags|=1024),h=!1)}return y=h,wl(e,a),h=(a.flags&128)!==0,y||h?(y=a.stateNode,o=h&&typeof o.getDerivedStateFromError!="function"?null:y.render(),a.flags|=1,e!==null&&h?(a.child=xi(a,e.child,null,m),a.child=xi(a,null,o,m)):Tn(e,a,o,m),a.memoizedState=y.state,e=a.child):e=Ca(e,a,m),e}function of(e,a,o,h){return gi(),a.flags|=256,Tn(e,a,o,h),a.child}var go={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function yo(e){return{baseLanes:e,cachePool:Ku()}}function vo(e,a,o){return e=e!==null?e.childLanes&~o:0,a&&(e|=Xn),e}function uf(e,a,o){var h=a.pendingProps,m=!1,y=(a.flags&128)!==0,S;if((S=y)||(S=e!==null&&e.memoizedState===null?!1:(Yt.current&2)!==0),S&&(m=!0,a.flags&=-129),S=(a.flags&32)!==0,a.flags&=-33,e===null){if(et){if(m?Qa(a):Ya(),(e=Mt)?(e=yd(e,na),e=e!==null&&e.data!=="&"?e:null,e!==null&&(a.memoizedState={dehydrated:e,treeContext:Pa!==null?{id:fa,overflow:da}:null,retryLane:536870912,hydrationErrors:null},o=Pu(e),o.return=a,a.child=o,xn=a,Mt=null)):e=null,e===null)throw Va(a);return eu(e)?a.lanes=32:a.lanes=536870912,null}var N=h.children;return h=h.fallback,m?(Ya(),m=a.mode,N=Nl({mode:"hidden",children:N},m),h=mi(h,m,o,null),N.return=a,h.return=a,N.sibling=h,a.child=N,h=a.child,h.memoizedState=yo(o),h.childLanes=vo(e,S,o),a.memoizedState=go,Or(null,h)):(Qa(a),bo(a,N))}var P=e.memoizedState;if(P!==null&&(N=P.dehydrated,N!==null)){if(y)a.flags&256?(Qa(a),a.flags&=-257,a=Eo(e,a,o)):a.memoizedState!==null?(Ya(),a.child=e.child,a.flags|=128,a=null):(Ya(),N=h.fallback,m=a.mode,h=Nl({mode:"visible",children:h.children},m),N=mi(N,m,o,null),N.flags|=2,h.return=a,N.return=a,h.sibling=N,a.child=h,xi(a,e.child,null,o),h=a.child,h.memoizedState=yo(o),h.childLanes=vo(e,S,o),a.memoizedState=go,a=Or(null,h));else if(Qa(a),eu(N)){if(S=N.nextSibling&&N.nextSibling.dataset,S)var $=S.dgst;S=$,h=Error(c(419)),h.stack="",h.digest=S,gr({value:h,source:null,stack:null}),a=Eo(e,a,o)}else if(ln||Bi(e,a,o,!1),S=(o&e.childLanes)!==0,ln||S){if(S=Rt,S!==null&&(h=vn(S,o),h!==0&&h!==P.retryLane))throw P.retryLane=h,pi(e,h),Pn(S,e,h),po;$o(N)||Il(),a=Eo(e,a,o)}else $o(N)?(a.flags|=192,a.child=e.child,a=null):(e=P.treeContext,Mt=ia(N.nextSibling),xn=a,et=!0,qa=null,na=!1,e!==null&&Gu(a,e),a=bo(a,h.children),a.flags|=4096);return a}return m?(Ya(),N=h.fallback,m=a.mode,P=e.child,$=P.sibling,h=_a(P,{mode:"hidden",children:h.children}),h.subtreeFlags=P.subtreeFlags&65011712,$!==null?N=_a($,N):(N=mi(N,m,o,null),N.flags|=2),N.return=a,h.return=a,h.sibling=N,a.child=h,Or(null,h),h=a.child,N=e.child.memoizedState,N===null?N=yo(o):(m=N.cachePool,m!==null?(P=an._currentValue,m=m.parent!==P?{parent:P,pool:P}:m):m=Ku(),N={baseLanes:N.baseLanes|o,cachePool:m}),h.memoizedState=N,h.childLanes=vo(e,S,o),a.memoizedState=go,Or(e.child,h)):(Qa(a),o=e.child,e=o.sibling,o=_a(o,{mode:"visible",children:h.children}),o.return=a,o.sibling=null,e!==null&&(S=a.deletions,S===null?(a.deletions=[e],a.flags|=16):S.push(e)),a.child=o,a.memoizedState=null,o)}function bo(e,a){return a=Nl({mode:"visible",children:a},e.mode),a.return=e,e.child=a}function Nl(e,a){return e=Vn(22,e,null,a),e.lanes=0,e}function Eo(e,a,o){return xi(a,e.child,null,o),e=bo(a,a.pendingProps.children),e.flags|=2,a.memoizedState=null,e}function cf(e,a,o){e.lanes|=a;var h=e.alternate;h!==null&&(h.lanes|=a),ks(e.return,a,o)}function _o(e,a,o,h,m,y){var S=e.memoizedState;S===null?e.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:h,tail:o,tailMode:m,treeForkCount:y}:(S.isBackwards=a,S.rendering=null,S.renderingStartTime=0,S.last=h,S.tail=o,S.tailMode=m,S.treeForkCount=y)}function ff(e,a,o){var h=a.pendingProps,m=h.revealOrder,y=h.tail;h=h.children;var S=Yt.current,N=(S&2)!==0;if(N?(S=S&1|2,a.flags|=128):S&=1,ue(Yt,S),Tn(e,a,h,o),h=et?mr:0,!N&&e!==null&&(e.flags&128)!==0)e:for(e=a.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&cf(e,o,a);else if(e.tag===19)cf(e,o,a);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===a)break e;for(;e.sibling===null;){if(e.return===null||e.return===a)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(m){case"forwards":for(o=a.child,m=null;o!==null;)e=o.alternate,e!==null&&vl(e)===null&&(m=o),o=o.sibling;o=m,o===null?(m=a.child,a.child=null):(m=o.sibling,o.sibling=null),_o(a,!1,m,o,y,h);break;case"backwards":case"unstable_legacy-backwards":for(o=null,m=a.child,a.child=null;m!==null;){if(e=m.alternate,e!==null&&vl(e)===null){a.child=m;break}e=m.sibling,m.sibling=o,o=m,m=e}_o(a,!0,o,null,y,h);break;case"together":_o(a,!1,null,null,void 0,h);break;default:a.memoizedState=null}return a.child}function Ca(e,a,o){if(e!==null&&(a.dependencies=e.dependencies),Ja|=a.lanes,(o&a.childLanes)===0)if(e!==null){if(Bi(e,a,o,!1),(o&a.childLanes)===0)return null}else return null;if(e!==null&&a.child!==e.child)throw Error(c(153));if(a.child!==null){for(e=a.child,o=_a(e,e.pendingProps),a.child=o,o.return=a;e.sibling!==null;)e=e.sibling,o=o.sibling=_a(e,e.pendingProps),o.return=a;o.sibling=null}return a.child}function xo(e,a){return(e.lanes&a)!==0?!0:(e=e.dependencies,!!(e!==null&&cl(e)))}function Gh(e,a,o){switch(a.tag){case 3:ke(a,a.stateNode.containerInfo),Ga(a,an,e.memoizedState.cache),gi();break;case 27:case 5:Ve(a);break;case 4:ke(a,a.stateNode.containerInfo);break;case 10:Ga(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Ws(a),null;break;case 13:var h=a.memoizedState;if(h!==null)return h.dehydrated!==null?(Qa(a),a.flags|=128,null):(o&a.child.childLanes)!==0?uf(e,a,o):(Qa(a),e=Ca(e,a,o),e!==null?e.sibling:null);Qa(a);break;case 19:var m=(e.flags&128)!==0;if(h=(o&a.childLanes)!==0,h||(Bi(e,a,o,!1),h=(o&a.childLanes)!==0),m){if(h)return ff(e,a,o);a.flags|=128}if(m=a.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),ue(Yt,Yt.current),h)break;return null;case 22:return a.lanes=0,nf(e,a,o,a.pendingProps);case 24:Ga(a,an,e.memoizedState.cache)}return Ca(e,a,o)}function df(e,a,o){if(e!==null)if(e.memoizedProps!==a.pendingProps)ln=!0;else{if(!xo(e,o)&&(a.flags&128)===0)return ln=!1,Gh(e,a,o);ln=(e.flags&131072)!==0}else ln=!1,et&&(a.flags&1048576)!==0&&Vu(a,mr,a.index);switch(a.lanes=0,a.tag){case 16:e:{var h=a.pendingProps;if(e=Ei(a.elementType),a.type=e,typeof e=="function")As(e)?(h=Ti(e,h),a.tag=1,a=sf(null,a,e,h,o)):(a.tag=0,a=mo(null,a,e,h,o));else{if(e!=null){var m=e.$$typeof;if(m===V){a.tag=11,a=$c(null,a,e,h,o);break e}else if(m===F){a.tag=14,a=ef(null,a,e,h,o);break e}}throw a=ve(e)||e,Error(c(306,a,""))}}return a;case 0:return mo(e,a,a.type,a.pendingProps,o);case 1:return h=a.type,m=Ti(h,a.pendingProps),sf(e,a,h,m,o);case 3:e:{if(ke(a,a.stateNode.containerInfo),e===null)throw Error(c(387));h=a.pendingProps;var y=a.memoizedState;m=y.element,Ps(e,a),Sr(a,h,null,o);var S=a.memoizedState;if(h=S.cache,Ga(a,an,h),h!==y.cache&&Ls(a,[an],o,!0),xr(),h=S.element,y.isDehydrated)if(y={element:h,isDehydrated:!1,cache:S.cache},a.updateQueue.baseState=y,a.memoizedState=y,a.flags&256){a=of(e,a,h,o);break e}else if(h!==m){m=$n(Error(c(424)),a),gr(m),a=of(e,a,h,o);break e}else for(e=a.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Mt=ia(e.firstChild),xn=a,et=!0,qa=null,na=!0,o=nc(a,null,h,o),a.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(gi(),h===m){a=Ca(e,a,o);break e}Tn(e,a,h,o)}a=a.child}return a;case 26:return wl(e,a),e===null?(o=Sd(a.type,null,a.pendingProps,null))?a.memoizedState=o:et||(o=a.type,e=a.pendingProps,h=Wl(Ee.current).createElement(o),h[ht]=a,h[Ke]=e,Rn(h,o,e),Ce(h),a.stateNode=h):a.memoizedState=Sd(a.type,e.memoizedProps,a.pendingProps,e.memoizedState),null;case 27:return Ve(a),e===null&&et&&(h=a.stateNode=Ed(a.type,a.pendingProps,Ee.current),xn=a,na=!0,m=Mt,ai(a.type)?(tu=m,Mt=ia(h.firstChild)):Mt=m),Tn(e,a,a.pendingProps.children,o),wl(e,a),e===null&&(a.flags|=4194304),a.child;case 5:return e===null&&et&&((m=h=Mt)&&(h=Ep(h,a.type,a.pendingProps,na),h!==null?(a.stateNode=h,xn=a,Mt=ia(h.firstChild),na=!1,m=!0):m=!1),m||Va(a)),Ve(a),m=a.type,y=a.pendingProps,S=e!==null?e.memoizedProps:null,h=y.children,Ko(m,y)?h=null:S!==null&&Ko(m,S)&&(a.flags|=32),a.memoizedState!==null&&(m=Qs(e,a,Lh,null,null,o),Vr._currentValue=m),wl(e,a),Tn(e,a,h,o),a.child;case 6:return e===null&&et&&((e=o=Mt)&&(o=_p(o,a.pendingProps,na),o!==null?(a.stateNode=o,xn=a,Mt=null,e=!0):e=!1),e||Va(a)),null;case 13:return uf(e,a,o);case 4:return ke(a,a.stateNode.containerInfo),h=a.pendingProps,e===null?a.child=xi(a,null,h,o):Tn(e,a,h,o),a.child;case 11:return $c(e,a,a.type,a.pendingProps,o);case 7:return Tn(e,a,a.pendingProps,o),a.child;case 8:return Tn(e,a,a.pendingProps.children,o),a.child;case 12:return Tn(e,a,a.pendingProps.children,o),a.child;case 10:return h=a.pendingProps,Ga(a,a.type,h.value),Tn(e,a,h.children,o),a.child;case 9:return m=a.type._context,h=a.pendingProps.children,vi(a),m=Sn(m),h=h(m),a.flags|=1,Tn(e,a,h,o),a.child;case 14:return ef(e,a,a.type,a.pendingProps,o);case 15:return tf(e,a,a.type,a.pendingProps,o);case 19:return ff(e,a,o);case 31:return Vh(e,a,o);case 22:return nf(e,a,o,a.pendingProps);case 24:return vi(a),h=Sn(an),e===null?(m=Us(),m===null&&(m=Rt,y=Bs(),m.pooledCache=y,y.refCount++,y!==null&&(m.pooledCacheLanes|=o),m=y),a.memoizedState={parent:h,cache:m},Hs(a),Ga(a,an,m)):((e.lanes&o)!==0&&(Ps(e,a),Sr(a,null,null,o),xr()),m=e.memoizedState,y=a.memoizedState,m.parent!==h?(m={parent:h,cache:h},a.memoizedState=m,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=m),Ga(a,an,h)):(h=y.cache,Ga(a,an,h),h!==m.cache&&Ls(a,[an],o,!0))),Tn(e,a,a.pendingProps.children,o),a.child;case 29:throw a.pendingProps}throw Error(c(156,a.tag))}function Oa(e){e.flags|=4}function So(e,a,o,h,m){if((a=(e.mode&32)!==0)&&(a=!1),a){if(e.flags|=16777216,(m&335544128)===m)if(e.stateNode.complete)e.flags|=8192;else if(If())e.flags|=8192;else throw _i=pl,Is}else e.flags&=-16777217}function hf(e,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Od(a))if(If())e.flags|=8192;else throw _i=pl,Is}function Ml(e,a){a!==null&&(e.flags|=4),e.flags&16384&&(a=e.tag!==22?dn():536870912,e.lanes|=a,Qi|=a)}function wr(e,a){if(!et)switch(e.tailMode){case"hidden":a=e.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var h=null;o!==null;)o.alternate!==null&&(h=o),o=o.sibling;h===null?a||e.tail===null?e.tail=null:e.tail.sibling=null:h.sibling=null}}function jt(e){var a=e.alternate!==null&&e.alternate.child===e.child,o=0,h=0;if(a)for(var m=e.child;m!==null;)o|=m.lanes|m.childLanes,h|=m.subtreeFlags&65011712,h|=m.flags&65011712,m.return=e,m=m.sibling;else for(m=e.child;m!==null;)o|=m.lanes|m.childLanes,h|=m.subtreeFlags,h|=m.flags,m.return=e,m=m.sibling;return e.subtreeFlags|=h,e.childLanes=o,a}function Fh(e,a,o){var h=a.pendingProps;switch(Ns(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jt(a),null;case 1:return jt(a),null;case 3:return o=a.stateNode,h=null,e!==null&&(h=e.memoizedState.cache),a.memoizedState.cache!==h&&(a.flags|=2048),Ta(an),Me(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(Li(a)?Oa(a):e===null||e.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,js())),jt(a),null;case 26:var m=a.type,y=a.memoizedState;return e===null?(Oa(a),y!==null?(jt(a),hf(a,y)):(jt(a),So(a,m,null,h,o))):y?y!==e.memoizedState?(Oa(a),jt(a),hf(a,y)):(jt(a),a.flags&=-16777217):(e=e.memoizedProps,e!==h&&Oa(a),jt(a),So(a,m,e,h,o)),null;case 27:if(ft(a),o=Ee.current,m=a.type,e!==null&&a.stateNode!=null)e.memoizedProps!==h&&Oa(a);else{if(!h){if(a.stateNode===null)throw Error(c(166));return jt(a),null}e=be.current,Li(a)?Fu(a):(e=Ed(m,h,o),a.stateNode=e,Oa(a))}return jt(a),null;case 5:if(ft(a),m=a.type,e!==null&&a.stateNode!=null)e.memoizedProps!==h&&Oa(a);else{if(!h){if(a.stateNode===null)throw Error(c(166));return jt(a),null}if(y=be.current,Li(a))Fu(a);else{var S=Wl(Ee.current);switch(y){case 1:y=S.createElementNS("http://www.w3.org/2000/svg",m);break;case 2:y=S.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;default:switch(m){case"svg":y=S.createElementNS("http://www.w3.org/2000/svg",m);break;case"math":y=S.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;case"script":y=S.createElement("div"),y.innerHTML="<script><\/script>",y=y.removeChild(y.firstChild);break;case"select":y=typeof h.is=="string"?S.createElement("select",{is:h.is}):S.createElement("select"),h.multiple?y.multiple=!0:h.size&&(y.size=h.size);break;default:y=typeof h.is=="string"?S.createElement(m,{is:h.is}):S.createElement(m)}}y[ht]=a,y[Ke]=h;e:for(S=a.child;S!==null;){if(S.tag===5||S.tag===6)y.appendChild(S.stateNode);else if(S.tag!==4&&S.tag!==27&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===a)break e;for(;S.sibling===null;){if(S.return===null||S.return===a)break e;S=S.return}S.sibling.return=S.return,S=S.sibling}a.stateNode=y;e:switch(Rn(y,m,h),m){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}h&&Oa(a)}}return jt(a),So(a,a.type,e===null?null:e.memoizedProps,a.pendingProps,o),null;case 6:if(e&&a.stateNode!=null)e.memoizedProps!==h&&Oa(a);else{if(typeof h!="string"&&a.stateNode===null)throw Error(c(166));if(e=Ee.current,Li(a)){if(e=a.stateNode,o=a.memoizedProps,h=null,m=xn,m!==null)switch(m.tag){case 27:case 5:h=m.memoizedProps}e[ht]=a,e=!!(e.nodeValue===o||h!==null&&h.suppressHydrationWarning===!0||ud(e.nodeValue,o)),e||Va(a,!0)}else e=Wl(e).createTextNode(h),e[ht]=a,a.stateNode=e}return jt(a),null;case 31:if(o=a.memoizedState,e===null||e.memoizedState!==null){if(h=Li(a),o!==null){if(e===null){if(!h)throw Error(c(318));if(e=a.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(557));e[ht]=a}else gi(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;jt(a),e=!1}else o=js(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),e=!0;if(!e)return a.flags&256?(Fn(a),a):(Fn(a),null);if((a.flags&128)!==0)throw Error(c(558))}return jt(a),null;case 13:if(h=a.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(m=Li(a),h!==null&&h.dehydrated!==null){if(e===null){if(!m)throw Error(c(318));if(m=a.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(c(317));m[ht]=a}else gi(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;jt(a),m=!1}else m=js(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=m),m=!0;if(!m)return a.flags&256?(Fn(a),a):(Fn(a),null)}return Fn(a),(a.flags&128)!==0?(a.lanes=o,a):(o=h!==null,e=e!==null&&e.memoizedState!==null,o&&(h=a.child,m=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(m=h.alternate.memoizedState.cachePool.pool),y=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(y=h.memoizedState.cachePool.pool),y!==m&&(h.flags|=2048)),o!==e&&o&&(a.child.flags|=8192),Ml(a,a.updateQueue),jt(a),null);case 4:return Me(),e===null&&Fo(a.stateNode.containerInfo),jt(a),null;case 10:return Ta(a.type),jt(a),null;case 19:if(ie(Yt),h=a.memoizedState,h===null)return jt(a),null;if(m=(a.flags&128)!==0,y=h.rendering,y===null)if(m)wr(h,!1);else{if(Wt!==0||e!==null&&(e.flags&128)!==0)for(e=a.child;e!==null;){if(y=vl(e),y!==null){for(a.flags|=128,wr(h,!1),e=y.updateQueue,a.updateQueue=e,Ml(a,e),a.subtreeFlags=0,e=o,o=a.child;o!==null;)Hu(o,e),o=o.sibling;return ue(Yt,Yt.current&1|2),et&&xa(a,h.treeForkCount),a.child}e=e.sibling}h.tail!==null&&ot()>Bl&&(a.flags|=128,m=!0,wr(h,!1),a.lanes=4194304)}else{if(!m)if(e=vl(y),e!==null){if(a.flags|=128,m=!0,e=e.updateQueue,a.updateQueue=e,Ml(a,e),wr(h,!0),h.tail===null&&h.tailMode==="hidden"&&!y.alternate&&!et)return jt(a),null}else 2*ot()-h.renderingStartTime>Bl&&o!==536870912&&(a.flags|=128,m=!0,wr(h,!1),a.lanes=4194304);h.isBackwards?(y.sibling=a.child,a.child=y):(e=h.last,e!==null?e.sibling=y:a.child=y,h.last=y)}return h.tail!==null?(e=h.tail,h.rendering=e,h.tail=e.sibling,h.renderingStartTime=ot(),e.sibling=null,o=Yt.current,ue(Yt,m?o&1|2:o&1),et&&xa(a,h.treeForkCount),e):(jt(a),null);case 22:case 23:return Fn(a),Fs(),h=a.memoizedState!==null,e!==null?e.memoizedState!==null!==h&&(a.flags|=8192):h&&(a.flags|=8192),h?(o&536870912)!==0&&(a.flags&128)===0&&(jt(a),a.subtreeFlags&6&&(a.flags|=8192)):jt(a),o=a.updateQueue,o!==null&&Ml(a,o.retryQueue),o=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(o=e.memoizedState.cachePool.pool),h=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(h=a.memoizedState.cachePool.pool),h!==o&&(a.flags|=2048),e!==null&&ie(bi),null;case 24:return o=null,e!==null&&(o=e.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),Ta(an),jt(a),null;case 25:return null;case 30:return null}throw Error(c(156,a.tag))}function Wh(e,a){switch(Ns(a),a.tag){case 1:return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 3:return Ta(an),Me(),e=a.flags,(e&65536)!==0&&(e&128)===0?(a.flags=e&-65537|128,a):null;case 26:case 27:case 5:return ft(a),null;case 31:if(a.memoizedState!==null){if(Fn(a),a.alternate===null)throw Error(c(340));gi()}return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 13:if(Fn(a),e=a.memoizedState,e!==null&&e.dehydrated!==null){if(a.alternate===null)throw Error(c(340));gi()}return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 19:return ie(Yt),null;case 4:return Me(),null;case 10:return Ta(a.type),null;case 22:case 23:return Fn(a),Fs(),e!==null&&ie(bi),e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 24:return Ta(an),null;case 25:return null;default:return null}}function pf(e,a){switch(Ns(a),a.tag){case 3:Ta(an),Me();break;case 26:case 27:case 5:ft(a);break;case 4:Me();break;case 31:a.memoizedState!==null&&Fn(a);break;case 13:Fn(a);break;case 19:ie(Yt);break;case 10:Ta(a.type);break;case 22:case 23:Fn(a),Fs(),e!==null&&ie(bi);break;case 24:Ta(an)}}function Nr(e,a){try{var o=a.updateQueue,h=o!==null?o.lastEffect:null;if(h!==null){var m=h.next;o=m;do{if((o.tag&e)===e){h=void 0;var y=o.create,S=o.inst;h=y(),S.destroy=h}o=o.next}while(o!==m)}}catch(N){yt(a,a.return,N)}}function Ka(e,a,o){try{var h=a.updateQueue,m=h!==null?h.lastEffect:null;if(m!==null){var y=m.next;h=y;do{if((h.tag&e)===e){var S=h.inst,N=S.destroy;if(N!==void 0){S.destroy=void 0,m=a;var P=o,$=N;try{$()}catch(se){yt(m,P,se)}}}h=h.next}while(h!==y)}}catch(se){yt(a,a.return,se)}}function mf(e){var a=e.updateQueue;if(a!==null){var o=e.stateNode;try{ic(a,o)}catch(h){yt(e,e.return,h)}}}function gf(e,a,o){o.props=Ti(e.type,e.memoizedProps),o.state=e.memoizedState;try{o.componentWillUnmount()}catch(h){yt(e,a,h)}}function Mr(e,a){try{var o=e.ref;if(o!==null){switch(e.tag){case 26:case 27:case 5:var h=e.stateNode;break;case 30:h=e.stateNode;break;default:h=e.stateNode}typeof o=="function"?e.refCleanup=o(h):o.current=h}}catch(m){yt(e,a,m)}}function ha(e,a){var o=e.ref,h=e.refCleanup;if(o!==null)if(typeof h=="function")try{h()}catch(m){yt(e,a,m)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(m){yt(e,a,m)}else o.current=null}function yf(e){var a=e.type,o=e.memoizedProps,h=e.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":o.autoFocus&&h.focus();break e;case"img":o.src?h.src=o.src:o.srcSet&&(h.srcset=o.srcSet)}}catch(m){yt(e,e.return,m)}}function To(e,a,o){try{var h=e.stateNode;pp(h,e.type,o,a),h[Ke]=a}catch(m){yt(e,e.return,m)}}function vf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ai(e.type)||e.tag===4}function Ro(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vf(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&&ai(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 Ao(e,a,o){var h=e.tag;if(h===5||h===6)e=e.stateNode,a?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(e,a):(a=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,a.appendChild(e),o=o._reactRootContainer,o!=null||a.onclick!==null||(a.onclick=la));else if(h!==4&&(h===27&&ai(e.type)&&(o=e.stateNode,a=null),e=e.child,e!==null))for(Ao(e,a,o),e=e.sibling;e!==null;)Ao(e,a,o),e=e.sibling}function jl(e,a,o){var h=e.tag;if(h===5||h===6)e=e.stateNode,a?o.insertBefore(e,a):o.appendChild(e);else if(h!==4&&(h===27&&ai(e.type)&&(o=e.stateNode),e=e.child,e!==null))for(jl(e,a,o),e=e.sibling;e!==null;)jl(e,a,o),e=e.sibling}function bf(e){var a=e.stateNode,o=e.memoizedProps;try{for(var h=e.type,m=a.attributes;m.length;)a.removeAttributeNode(m[0]);Rn(a,h,o),a[ht]=e,a[Ke]=o}catch(y){yt(e,e.return,y)}}var wa=!1,sn=!1,Co=!1,Ef=typeof WeakSet=="function"?WeakSet:Set,En=null;function Xh(e,a){if(e=e.containerInfo,Qo=$l,e=Mu(e),bs(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var h=o.getSelection&&o.getSelection();if(h&&h.rangeCount!==0){o=h.anchorNode;var m=h.anchorOffset,y=h.focusNode;h=h.focusOffset;try{o.nodeType,y.nodeType}catch{o=null;break e}var S=0,N=-1,P=-1,$=0,se=0,he=e,ee=null;t:for(;;){for(var ae;he!==o||m!==0&&he.nodeType!==3||(N=S+m),he!==y||h!==0&&he.nodeType!==3||(P=S+h),he.nodeType===3&&(S+=he.nodeValue.length),(ae=he.firstChild)!==null;)ee=he,he=ae;for(;;){if(he===e)break t;if(ee===o&&++$===m&&(N=S),ee===y&&++se===h&&(P=S),(ae=he.nextSibling)!==null)break;he=ee,ee=he.parentNode}he=ae}o=N===-1||P===-1?null:{start:N,end:P}}else o=null}o=o||{start:0,end:0}}else o=null;for(Yo={focusedElem:e,selectionRange:o},$l=!1,En=a;En!==null;)if(a=En,e=a.child,(a.subtreeFlags&1028)!==0&&e!==null)e.return=a,En=e;else for(;En!==null;){switch(a=En,y=a.alternate,e=a.flags,a.tag){case 0:if((e&4)!==0&&(e=a.updateQueue,e=e!==null?e.events:null,e!==null))for(o=0;o<e.length;o++)m=e[o],m.ref.impl=m.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&y!==null){e=void 0,o=a,m=y.memoizedProps,y=y.memoizedState,h=o.stateNode;try{var Oe=Ti(o.type,m);e=h.getSnapshotBeforeUpdate(Oe,y),h.__reactInternalSnapshotBeforeUpdate=e}catch(Be){yt(o,o.return,Be)}}break;case 3:if((e&1024)!==0){if(e=a.stateNode.containerInfo,o=e.nodeType,o===9)Jo(e);else if(o===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Jo(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(c(163))}if(e=a.sibling,e!==null){e.return=a.return,En=e;break}En=a.return}}function _f(e,a,o){var h=o.flags;switch(o.tag){case 0:case 11:case 15:Ma(e,o),h&4&&Nr(5,o);break;case 1:if(Ma(e,o),h&4)if(e=o.stateNode,a===null)try{e.componentDidMount()}catch(S){yt(o,o.return,S)}else{var m=Ti(o.type,a.memoizedProps);a=a.memoizedState;try{e.componentDidUpdate(m,a,e.__reactInternalSnapshotBeforeUpdate)}catch(S){yt(o,o.return,S)}}h&64&&mf(o),h&512&&Mr(o,o.return);break;case 3:if(Ma(e,o),h&64&&(e=o.updateQueue,e!==null)){if(a=null,o.child!==null)switch(o.child.tag){case 27:case 5:a=o.child.stateNode;break;case 1:a=o.child.stateNode}try{ic(e,a)}catch(S){yt(o,o.return,S)}}break;case 27:a===null&&h&4&&bf(o);case 26:case 5:Ma(e,o),a===null&&h&4&&yf(o),h&512&&Mr(o,o.return);break;case 12:Ma(e,o);break;case 31:Ma(e,o),h&4&&Tf(e,o);break;case 13:Ma(e,o),h&4&&Rf(e,o),h&64&&(e=o.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(o=np.bind(null,o),xp(e,o))));break;case 22:if(h=o.memoizedState!==null||wa,!h){a=a!==null&&a.memoizedState!==null||sn,m=wa;var y=sn;wa=h,(sn=a)&&!y?ja(e,o,(o.subtreeFlags&8772)!==0):Ma(e,o),wa=m,sn=y}break;case 30:break;default:Ma(e,o)}}function xf(e){var a=e.alternate;a!==null&&(e.alternate=null,xf(a)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(a=e.stateNode,a!==null&&q(a)),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 zt=null,zn=!1;function Na(e,a,o){for(o=o.child;o!==null;)Sf(e,a,o),o=o.sibling}function Sf(e,a,o){if(bt&&typeof bt.onCommitFiberUnmount=="function")try{bt.onCommitFiberUnmount(gn,o)}catch{}switch(o.tag){case 26:sn||ha(o,a),Na(e,a,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:sn||ha(o,a);var h=zt,m=zn;ai(o.type)&&(zt=o.stateNode,zn=!1),Na(e,a,o),Hr(o.stateNode),zt=h,zn=m;break;case 5:sn||ha(o,a);case 6:if(h=zt,m=zn,zt=null,Na(e,a,o),zt=h,zn=m,zt!==null)if(zn)try{(zt.nodeType===9?zt.body:zt.nodeName==="HTML"?zt.ownerDocument.body:zt).removeChild(o.stateNode)}catch(y){yt(o,a,y)}else try{zt.removeChild(o.stateNode)}catch(y){yt(o,a,y)}break;case 18:zt!==null&&(zn?(e=zt,md(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,o.stateNode),nr(e)):md(zt,o.stateNode));break;case 4:h=zt,m=zn,zt=o.stateNode.containerInfo,zn=!0,Na(e,a,o),zt=h,zn=m;break;case 0:case 11:case 14:case 15:Ka(2,o,a),sn||Ka(4,o,a),Na(e,a,o);break;case 1:sn||(ha(o,a),h=o.stateNode,typeof h.componentWillUnmount=="function"&&gf(o,a,h)),Na(e,a,o);break;case 21:Na(e,a,o);break;case 22:sn=(h=sn)||o.memoizedState!==null,Na(e,a,o),sn=h;break;default:Na(e,a,o)}}function Tf(e,a){if(a.memoizedState===null&&(e=a.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{nr(e)}catch(o){yt(a,a.return,o)}}}function Rf(e,a){if(a.memoizedState===null&&(e=a.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{nr(e)}catch(o){yt(a,a.return,o)}}function Qh(e){switch(e.tag){case 31:case 13:case 19:var a=e.stateNode;return a===null&&(a=e.stateNode=new Ef),a;case 22:return e=e.stateNode,a=e._retryCache,a===null&&(a=e._retryCache=new Ef),a;default:throw Error(c(435,e.tag))}}function Dl(e,a){var o=Qh(e);a.forEach(function(h){if(!o.has(h)){o.add(h);var m=ap.bind(null,e,h);h.then(m,m)}})}function Un(e,a){var o=a.deletions;if(o!==null)for(var h=0;h<o.length;h++){var m=o[h],y=e,S=a,N=S;e:for(;N!==null;){switch(N.tag){case 27:if(ai(N.type)){zt=N.stateNode,zn=!1;break e}break;case 5:zt=N.stateNode,zn=!1;break e;case 3:case 4:zt=N.stateNode.containerInfo,zn=!0;break e}N=N.return}if(zt===null)throw Error(c(160));Sf(y,S,m),zt=null,zn=!1,y=m.alternate,y!==null&&(y.return=null),m.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)Af(a,e),a=a.sibling}var oa=null;function Af(e,a){var o=e.alternate,h=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Un(a,e),In(e),h&4&&(Ka(3,e,e.return),Nr(3,e),Ka(5,e,e.return));break;case 1:Un(a,e),In(e),h&512&&(sn||o===null||ha(o,o.return)),h&64&&wa&&(e=e.updateQueue,e!==null&&(h=e.callbacks,h!==null&&(o=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=o===null?h:o.concat(h))));break;case 26:var m=oa;if(Un(a,e),In(e),h&512&&(sn||o===null||ha(o,o.return)),h&4){var y=o!==null?o.memoizedState:null;if(h=e.memoizedState,o===null)if(h===null)if(e.stateNode===null){e:{h=e.type,o=e.memoizedProps,m=m.ownerDocument||m;t:switch(h){case"title":y=m.getElementsByTagName("title")[0],(!y||y[xe]||y[ht]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=m.createElement(h),m.head.insertBefore(y,m.querySelector("head > title"))),Rn(y,h,o),y[ht]=e,Ce(y),h=y;break e;case"link":var S=Ad("link","href",m).get(h+(o.href||""));if(S){for(var N=0;N<S.length;N++)if(y=S[N],y.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&y.getAttribute("rel")===(o.rel==null?null:o.rel)&&y.getAttribute("title")===(o.title==null?null:o.title)&&y.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){S.splice(N,1);break t}}y=m.createElement(h),Rn(y,h,o),m.head.appendChild(y);break;case"meta":if(S=Ad("meta","content",m).get(h+(o.content||""))){for(N=0;N<S.length;N++)if(y=S[N],y.getAttribute("content")===(o.content==null?null:""+o.content)&&y.getAttribute("name")===(o.name==null?null:o.name)&&y.getAttribute("property")===(o.property==null?null:o.property)&&y.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&y.getAttribute("charset")===(o.charSet==null?null:o.charSet)){S.splice(N,1);break t}}y=m.createElement(h),Rn(y,h,o),m.head.appendChild(y);break;default:throw Error(c(468,h))}y[ht]=e,Ce(y),h=y}e.stateNode=h}else Cd(m,e.type,e.stateNode);else e.stateNode=Rd(m,h,e.memoizedProps);else y!==h?(y===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):y.count--,h===null?Cd(m,e.type,e.stateNode):Rd(m,h,e.memoizedProps)):h===null&&e.stateNode!==null&&To(e,e.memoizedProps,o.memoizedProps)}break;case 27:Un(a,e),In(e),h&512&&(sn||o===null||ha(o,o.return)),o!==null&&h&4&&To(e,e.memoizedProps,o.memoizedProps);break;case 5:if(Un(a,e),In(e),h&512&&(sn||o===null||ha(o,o.return)),e.flags&32){m=e.stateNode;try{ga(m,"")}catch(Oe){yt(e,e.return,Oe)}}h&4&&e.stateNode!=null&&(m=e.memoizedProps,To(e,m,o!==null?o.memoizedProps:m)),h&1024&&(Co=!0);break;case 6:if(Un(a,e),In(e),h&4){if(e.stateNode===null)throw Error(c(162));h=e.memoizedProps,o=e.stateNode;try{o.nodeValue=h}catch(Oe){yt(e,e.return,Oe)}}break;case 3:if(Yl=null,m=oa,oa=Xl(a.containerInfo),Un(a,e),oa=m,In(e),h&4&&o!==null&&o.memoizedState.isDehydrated)try{nr(a.containerInfo)}catch(Oe){yt(e,e.return,Oe)}Co&&(Co=!1,Cf(e));break;case 4:h=oa,oa=Xl(e.stateNode.containerInfo),Un(a,e),In(e),oa=h;break;case 12:Un(a,e),In(e);break;case 31:Un(a,e),In(e),h&4&&(h=e.updateQueue,h!==null&&(e.updateQueue=null,Dl(e,h)));break;case 13:Un(a,e),In(e),e.child.flags&8192&&e.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(Ll=ot()),h&4&&(h=e.updateQueue,h!==null&&(e.updateQueue=null,Dl(e,h)));break;case 22:m=e.memoizedState!==null;var P=o!==null&&o.memoizedState!==null,$=wa,se=sn;if(wa=$||m,sn=se||P,Un(a,e),sn=se,wa=$,In(e),h&8192)e:for(a=e.stateNode,a._visibility=m?a._visibility&-2:a._visibility|1,m&&(o===null||P||wa||sn||Ri(e)),o=null,a=e;;){if(a.tag===5||a.tag===26){if(o===null){P=o=a;try{if(y=P.stateNode,m)S=y.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none";else{N=P.stateNode;var he=P.memoizedProps.style,ee=he!=null&&he.hasOwnProperty("display")?he.display:null;N.style.display=ee==null||typeof ee=="boolean"?"":(""+ee).trim()}}catch(Oe){yt(P,P.return,Oe)}}}else if(a.tag===6){if(o===null){P=a;try{P.stateNode.nodeValue=m?"":P.memoizedProps}catch(Oe){yt(P,P.return,Oe)}}}else if(a.tag===18){if(o===null){P=a;try{var ae=P.stateNode;m?gd(ae,!0):gd(P.stateNode,!1)}catch(Oe){yt(P,P.return,Oe)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===e)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break e;for(;a.sibling===null;){if(a.return===null||a.return===e)break e;o===a&&(o=null),a=a.return}o===a&&(o=null),a.sibling.return=a.return,a=a.sibling}h&4&&(h=e.updateQueue,h!==null&&(o=h.retryQueue,o!==null&&(h.retryQueue=null,Dl(e,o))));break;case 19:Un(a,e),In(e),h&4&&(h=e.updateQueue,h!==null&&(e.updateQueue=null,Dl(e,h)));break;case 30:break;case 21:break;default:Un(a,e),In(e)}}function In(e){var a=e.flags;if(a&2){try{for(var o,h=e.return;h!==null;){if(vf(h)){o=h;break}h=h.return}if(o==null)throw Error(c(160));switch(o.tag){case 27:var m=o.stateNode,y=Ro(e);jl(e,y,m);break;case 5:var S=o.stateNode;o.flags&32&&(ga(S,""),o.flags&=-33);var N=Ro(e);jl(e,N,S);break;case 3:case 4:var P=o.stateNode.containerInfo,$=Ro(e);Ao(e,$,P);break;default:throw Error(c(161))}}catch(se){yt(e,e.return,se)}e.flags&=-3}a&4096&&(e.flags&=-4097)}function Cf(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var a=e;Cf(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),e=e.sibling}}function Ma(e,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)_f(e,a.alternate,a),a=a.sibling}function Ri(e){for(e=e.child;e!==null;){var a=e;switch(a.tag){case 0:case 11:case 14:case 15:Ka(4,a,a.return),Ri(a);break;case 1:ha(a,a.return);var o=a.stateNode;typeof o.componentWillUnmount=="function"&&gf(a,a.return,o),Ri(a);break;case 27:Hr(a.stateNode);case 26:case 5:ha(a,a.return),Ri(a);break;case 22:a.memoizedState===null&&Ri(a);break;case 30:Ri(a);break;default:Ri(a)}e=e.sibling}}function ja(e,a,o){for(o=o&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var h=a.alternate,m=e,y=a,S=y.flags;switch(y.tag){case 0:case 11:case 15:ja(m,y,o),Nr(4,y);break;case 1:if(ja(m,y,o),h=y,m=h.stateNode,typeof m.componentDidMount=="function")try{m.componentDidMount()}catch($){yt(h,h.return,$)}if(h=y,m=h.updateQueue,m!==null){var N=h.stateNode;try{var P=m.shared.hiddenCallbacks;if(P!==null)for(m.shared.hiddenCallbacks=null,m=0;m<P.length;m++)ac(P[m],N)}catch($){yt(h,h.return,$)}}o&&S&64&&mf(y),Mr(y,y.return);break;case 27:bf(y);case 26:case 5:ja(m,y,o),o&&h===null&&S&4&&yf(y),Mr(y,y.return);break;case 12:ja(m,y,o);break;case 31:ja(m,y,o),o&&S&4&&Tf(m,y);break;case 13:ja(m,y,o),o&&S&4&&Rf(m,y);break;case 22:y.memoizedState===null&&ja(m,y,o),Mr(y,y.return);break;case 30:break;default:ja(m,y,o)}a=a.sibling}}function Oo(e,a){var o=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(o=e.memoizedState.cachePool.pool),e=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(e=a.memoizedState.cachePool.pool),e!==o&&(e!=null&&e.refCount++,o!=null&&yr(o))}function wo(e,a){e=null,a.alternate!==null&&(e=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==e&&(a.refCount++,e!=null&&yr(e))}function ua(e,a,o,h){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Of(e,a,o,h),a=a.sibling}function Of(e,a,o,h){var m=a.flags;switch(a.tag){case 0:case 11:case 15:ua(e,a,o,h),m&2048&&Nr(9,a);break;case 1:ua(e,a,o,h);break;case 3:ua(e,a,o,h),m&2048&&(e=null,a.alternate!==null&&(e=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==e&&(a.refCount++,e!=null&&yr(e)));break;case 12:if(m&2048){ua(e,a,o,h),e=a.stateNode;try{var y=a.memoizedProps,S=y.id,N=y.onPostCommit;typeof N=="function"&&N(S,a.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(P){yt(a,a.return,P)}}else ua(e,a,o,h);break;case 31:ua(e,a,o,h);break;case 13:ua(e,a,o,h);break;case 23:break;case 22:y=a.stateNode,S=a.alternate,a.memoizedState!==null?y._visibility&2?ua(e,a,o,h):jr(e,a):y._visibility&2?ua(e,a,o,h):(y._visibility|=2,Fi(e,a,o,h,(a.subtreeFlags&10256)!==0||!1)),m&2048&&Oo(S,a);break;case 24:ua(e,a,o,h),m&2048&&wo(a.alternate,a);break;default:ua(e,a,o,h)}}function Fi(e,a,o,h,m){for(m=m&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var y=e,S=a,N=o,P=h,$=S.flags;switch(S.tag){case 0:case 11:case 15:Fi(y,S,N,P,m),Nr(8,S);break;case 23:break;case 22:var se=S.stateNode;S.memoizedState!==null?se._visibility&2?Fi(y,S,N,P,m):jr(y,S):(se._visibility|=2,Fi(y,S,N,P,m)),m&&$&2048&&Oo(S.alternate,S);break;case 24:Fi(y,S,N,P,m),m&&$&2048&&wo(S.alternate,S);break;default:Fi(y,S,N,P,m)}a=a.sibling}}function jr(e,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var o=e,h=a,m=h.flags;switch(h.tag){case 22:jr(o,h),m&2048&&Oo(h.alternate,h);break;case 24:jr(o,h),m&2048&&wo(h.alternate,h);break;default:jr(o,h)}a=a.sibling}}var Dr=8192;function Wi(e,a,o){if(e.subtreeFlags&Dr)for(e=e.child;e!==null;)wf(e,a,o),e=e.sibling}function wf(e,a,o){switch(e.tag){case 26:Wi(e,a,o),e.flags&Dr&&e.memoizedState!==null&&kp(o,oa,e.memoizedState,e.memoizedProps);break;case 5:Wi(e,a,o);break;case 3:case 4:var h=oa;oa=Xl(e.stateNode.containerInfo),Wi(e,a,o),oa=h;break;case 22:e.memoizedState===null&&(h=e.alternate,h!==null&&h.memoizedState!==null?(h=Dr,Dr=16777216,Wi(e,a,o),Dr=h):Wi(e,a,o));break;default:Wi(e,a,o)}}function Nf(e){var a=e.alternate;if(a!==null&&(e=a.child,e!==null)){a.child=null;do a=e.sibling,e.sibling=null,e=a;while(e!==null)}}function kr(e){var a=e.deletions;if((e.flags&16)!==0){if(a!==null)for(var o=0;o<a.length;o++){var h=a[o];En=h,jf(h,e)}Nf(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Mf(e),e=e.sibling}function Mf(e){switch(e.tag){case 0:case 11:case 15:kr(e),e.flags&2048&&Ka(9,e,e.return);break;case 3:kr(e);break;case 12:kr(e);break;case 22:var a=e.stateNode;e.memoizedState!==null&&a._visibility&2&&(e.return===null||e.return.tag!==13)?(a._visibility&=-3,kl(e)):kr(e);break;default:kr(e)}}function kl(e){var a=e.deletions;if((e.flags&16)!==0){if(a!==null)for(var o=0;o<a.length;o++){var h=a[o];En=h,jf(h,e)}Nf(e)}for(e=e.child;e!==null;){switch(a=e,a.tag){case 0:case 11:case 15:Ka(8,a,a.return),kl(a);break;case 22:o=a.stateNode,o._visibility&2&&(o._visibility&=-3,kl(a));break;default:kl(a)}e=e.sibling}}function jf(e,a){for(;En!==null;){var o=En;switch(o.tag){case 0:case 11:case 15:Ka(8,o,a);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var h=o.memoizedState.cachePool.pool;h!=null&&h.refCount++}break;case 24:yr(o.memoizedState.cache)}if(h=o.child,h!==null)h.return=o,En=h;else e:for(o=e;En!==null;){h=En;var m=h.sibling,y=h.return;if(xf(h),h===o){En=null;break e}if(m!==null){m.return=y,En=m;break e}En=y}}}var Yh={getCacheForType:function(e){var a=Sn(an),o=a.data.get(e);return o===void 0&&(o=e(),a.data.set(e,o)),o},cacheSignal:function(){return Sn(an).controller.signal}},Kh=typeof WeakMap=="function"?WeakMap:Map,ct=0,Rt=null,Xe=null,Je=0,gt=0,Wn=null,Za=!1,Xi=!1,No=!1,Da=0,Wt=0,Ja=0,Ai=0,Mo=0,Xn=0,Qi=0,Lr=null,Hn=null,jo=!1,Ll=0,Df=0,Bl=1/0,zl=null,$a=null,hn=0,ei=null,Yi=null,ka=0,Do=0,ko=null,kf=null,Br=0,Lo=null;function Qn(){return(ct&2)!==0&&Je!==0?Je&-Je:K.T!==null?Po():kt()}function Lf(){if(Xn===0)if((Je&536870912)===0||et){var e=rt;rt<<=1,(rt&3932160)===0&&(rt=262144),Xn=e}else Xn=536870912;return e=Gn.current,e!==null&&(e.flags|=32),Xn}function Pn(e,a,o){(e===Rt&&(gt===2||gt===9)||e.cancelPendingCommit!==null)&&(Ki(e,0),ti(e,Je,Xn,!1)),wn(e,o),((ct&2)===0||e!==Rt)&&(e===Rt&&((ct&2)===0&&(Ai|=o),Wt===4&&ti(e,Je,Xn,!1)),pa(e))}function Bf(e,a,o){if((ct&6)!==0)throw Error(c(327));var h=!o&&(a&127)===0&&(a&e.expiredLanes)===0||On(e,a),m=h?$h(e,a):zo(e,a,!0),y=h;do{if(m===0){Xi&&!h&&ti(e,a,0,!1);break}else{if(o=e.current.alternate,y&&!Zh(o)){m=zo(e,a,!1),y=!1;continue}if(m===2){if(y=a,e.errorRecoveryDisabledLanes&y)var S=0;else S=e.pendingLanes&-536870913,S=S!==0?S:S&536870912?536870912:0;if(S!==0){a=S;e:{var N=e;m=Lr;var P=N.current.memoizedState.isDehydrated;if(P&&(Ki(N,S).flags|=256),S=zo(N,S,!1),S!==2){if(No&&!P){N.errorRecoveryDisabledLanes|=y,Ai|=y,m=4;break e}y=Hn,Hn=m,y!==null&&(Hn===null?Hn=y:Hn.push.apply(Hn,y))}m=S}if(y=!1,m!==2)continue}}if(m===1){Ki(e,0),ti(e,a,0,!0);break}e:{switch(h=e,y=m,y){case 0:case 1:throw Error(c(345));case 4:if((a&4194048)!==a)break;case 6:ti(h,a,Xn,!Za);break e;case 2:Hn=null;break;case 3:case 5:break;default:throw Error(c(329))}if((a&62914560)===a&&(m=Ll+300-ot(),10<m)){if(ti(h,a,Xn,!Za),Cn(h,0,!0)!==0)break e;ka=a,h.timeoutHandle=hd(zf.bind(null,h,o,Hn,zl,jo,a,Xn,Ai,Qi,Za,y,"Throttled",-0,0),m);break e}zf(h,o,Hn,zl,jo,a,Xn,Ai,Qi,Za,y,null,-0,0)}}break}while(!0);pa(e)}function zf(e,a,o,h,m,y,S,N,P,$,se,he,ee,ae){if(e.timeoutHandle=-1,he=a.subtreeFlags,he&8192||(he&16785408)===16785408){he={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:la},wf(a,y,he);var Oe=(y&62914560)===y?Ll-ot():(y&4194048)===y?Df-ot():0;if(Oe=Lp(he,Oe),Oe!==null){ka=y,e.cancelPendingCommit=Oe(Ff.bind(null,e,a,y,o,h,m,S,N,P,se,he,null,ee,ae)),ti(e,y,S,!$);return}}Ff(e,a,y,o,h,m,S,N,P)}function Zh(e){for(var a=e;;){var o=a.tag;if((o===0||o===11||o===15)&&a.flags&16384&&(o=a.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var h=0;h<o.length;h++){var m=o[h],y=m.getSnapshot;m=m.value;try{if(!qn(y(),m))return!1}catch{return!1}}if(o=a.child,a.subtreeFlags&16384&&o!==null)o.return=a,a=o;else{if(a===e)break;for(;a.sibling===null;){if(a.return===null||a.return===e)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function ti(e,a,o,h){a&=~Mo,a&=~Ai,e.suspendedLanes|=a,e.pingedLanes&=~a,h&&(e.warmLanes|=a),h=e.expirationTimes;for(var m=a;0<m;){var y=31-tt(m),S=1<<y;h[y]=-1,m&=~S}o!==0&&Ut(e,o,a)}function Ul(){return(ct&6)===0?(zr(0),!1):!0}function Bo(){if(Xe!==null){if(gt===0)var e=Xe.return;else e=Xe,Sa=yi=null,Zs(e),Hi=null,br=0,e=Xe;for(;e!==null;)pf(e.alternate,e),e=e.return;Xe=null}}function Ki(e,a){var o=e.timeoutHandle;o!==-1&&(e.timeoutHandle=-1,yp(o)),o=e.cancelPendingCommit,o!==null&&(e.cancelPendingCommit=null,o()),ka=0,Bo(),Rt=e,Xe=o=_a(e.current,null),Je=a,gt=0,Wn=null,Za=!1,Xi=On(e,a),No=!1,Qi=Xn=Mo=Ai=Ja=Wt=0,Hn=Lr=null,jo=!1,(a&8)!==0&&(a|=a&32);var h=e.entangledLanes;if(h!==0)for(e=e.entanglements,h&=a;0<h;){var m=31-tt(h),y=1<<m;a|=e[m],h&=~y}return Da=a,rl(),o}function Uf(e,a){Pe=null,K.H=Cr,a===Ii||a===hl?(a=$u(),gt=3):a===Is?(a=$u(),gt=4):gt=a===po?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Wn=a,Xe===null&&(Wt=1,Cl(e,$n(a,e.current)))}function If(){var e=Gn.current;return e===null?!0:(Je&4194048)===Je?aa===null:(Je&62914560)===Je||(Je&536870912)!==0?e===aa:!1}function Hf(){var e=K.H;return K.H=Cr,e===null?Cr:e}function Pf(){var e=K.A;return K.A=Yh,e}function Il(){Wt=4,Za||(Je&4194048)!==Je&&Gn.current!==null||(Xi=!0),(Ja&134217727)===0&&(Ai&134217727)===0||Rt===null||ti(Rt,Je,Xn,!1)}function zo(e,a,o){var h=ct;ct|=2;var m=Hf(),y=Pf();(Rt!==e||Je!==a)&&(zl=null,Ki(e,a)),a=!1;var S=Wt;e:do try{if(gt!==0&&Xe!==null){var N=Xe,P=Wn;switch(gt){case 8:Bo(),S=6;break e;case 3:case 2:case 9:case 6:Gn.current===null&&(a=!0);var $=gt;if(gt=0,Wn=null,Zi(e,N,P,$),o&&Xi){S=0;break e}break;default:$=gt,gt=0,Wn=null,Zi(e,N,P,$)}}Jh(),S=Wt;break}catch(se){Uf(e,se)}while(!0);return a&&e.shellSuspendCounter++,Sa=yi=null,ct=h,K.H=m,K.A=y,Xe===null&&(Rt=null,Je=0,rl()),S}function Jh(){for(;Xe!==null;)qf(Xe)}function $h(e,a){var o=ct;ct|=2;var h=Hf(),m=Pf();Rt!==e||Je!==a?(zl=null,Bl=ot()+500,Ki(e,a)):Xi=On(e,a);e:do try{if(gt!==0&&Xe!==null){a=Xe;var y=Wn;t:switch(gt){case 1:gt=0,Wn=null,Zi(e,a,y,1);break;case 2:case 9:if(Zu(y)){gt=0,Wn=null,Vf(a);break}a=function(){gt!==2&>!==9||Rt!==e||(gt=7),pa(e)},y.then(a,a);break e;case 3:gt=7;break e;case 4:gt=5;break e;case 7:Zu(y)?(gt=0,Wn=null,Vf(a)):(gt=0,Wn=null,Zi(e,a,y,7));break;case 5:var S=null;switch(Xe.tag){case 26:S=Xe.memoizedState;case 5:case 27:var N=Xe;if(S?Od(S):N.stateNode.complete){gt=0,Wn=null;var P=N.sibling;if(P!==null)Xe=P;else{var $=N.return;$!==null?(Xe=$,Hl($)):Xe=null}break t}}gt=0,Wn=null,Zi(e,a,y,5);break;case 6:gt=0,Wn=null,Zi(e,a,y,6);break;case 8:Bo(),Wt=6;break e;default:throw Error(c(462))}}ep();break}catch(se){Uf(e,se)}while(!0);return Sa=yi=null,K.H=h,K.A=m,ct=o,Xe!==null?0:(Rt=null,Je=0,rl(),Wt)}function ep(){for(;Xe!==null&&!cn();)qf(Xe)}function qf(e){var a=df(e.alternate,e,Da);e.memoizedProps=e.pendingProps,a===null?Hl(e):Xe=a}function Vf(e){var a=e,o=a.alternate;switch(a.tag){case 15:case 0:a=lf(o,a,a.pendingProps,a.type,void 0,Je);break;case 11:a=lf(o,a,a.pendingProps,a.type.render,a.ref,Je);break;case 5:Zs(a);default:pf(o,a),a=Xe=Hu(a,Da),a=df(o,a,Da)}e.memoizedProps=e.pendingProps,a===null?Hl(e):Xe=a}function Zi(e,a,o,h){Sa=yi=null,Zs(a),Hi=null,br=0;var m=a.return;try{if(qh(e,m,a,o,Je)){Wt=1,Cl(e,$n(o,e.current)),Xe=null;return}}catch(y){if(m!==null)throw Xe=m,y;Wt=1,Cl(e,$n(o,e.current)),Xe=null;return}a.flags&32768?(et||h===1?e=!0:Xi||(Je&536870912)!==0?e=!1:(Za=e=!0,(h===2||h===9||h===3||h===6)&&(h=Gn.current,h!==null&&h.tag===13&&(h.flags|=16384))),Gf(a,e)):Hl(a)}function Hl(e){var a=e;do{if((a.flags&32768)!==0){Gf(a,Za);return}e=a.return;var o=Fh(a.alternate,a,Da);if(o!==null){Xe=o;return}if(a=a.sibling,a!==null){Xe=a;return}Xe=a=e}while(a!==null);Wt===0&&(Wt=5)}function Gf(e,a){do{var o=Wh(e.alternate,e);if(o!==null){o.flags&=32767,Xe=o;return}if(o=e.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!a&&(e=e.sibling,e!==null)){Xe=e;return}Xe=e=o}while(e!==null);Wt=6,Xe=null}function Ff(e,a,o,h,m,y,S,N,P){e.cancelPendingCommit=null;do Pl();while(hn!==0);if((ct&6)!==0)throw Error(c(327));if(a!==null){if(a===e.current)throw Error(c(177));if(y=a.lanes|a.childLanes,y|=Ts,Zn(e,o,y,S,N,P),e===Rt&&(Xe=Rt=null,Je=0),Yi=a,ei=e,ka=o,Do=y,ko=m,kf=h,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,ip(Pt,function(){return Kf(),null})):(e.callbackNode=null,e.callbackPriority=0),h=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||h){h=K.T,K.T=null,m=pe.p,pe.p=2,S=ct,ct|=4;try{Xh(e,a,o)}finally{ct=S,pe.p=m,K.T=h}}hn=1,Wf(),Xf(),Qf()}}function Wf(){if(hn===1){hn=0;var e=ei,a=Yi,o=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||o){o=K.T,K.T=null;var h=pe.p;pe.p=2;var m=ct;ct|=4;try{Af(a,e);var y=Yo,S=Mu(e.containerInfo),N=y.focusedElem,P=y.selectionRange;if(S!==N&&N&&N.ownerDocument&&Nu(N.ownerDocument.documentElement,N)){if(P!==null&&bs(N)){var $=P.start,se=P.end;if(se===void 0&&(se=$),"selectionStart"in N)N.selectionStart=$,N.selectionEnd=Math.min(se,N.value.length);else{var he=N.ownerDocument||document,ee=he&&he.defaultView||window;if(ee.getSelection){var ae=ee.getSelection(),Oe=N.textContent.length,Be=Math.min(P.start,Oe),St=P.end===void 0?Be:Math.min(P.end,Oe);!ae.extend&&Be>St&&(S=St,St=Be,Be=S);var X=wu(N,Be),G=wu(N,St);if(X&&G&&(ae.rangeCount!==1||ae.anchorNode!==X.node||ae.anchorOffset!==X.offset||ae.focusNode!==G.node||ae.focusOffset!==G.offset)){var J=he.createRange();J.setStart(X.node,X.offset),ae.removeAllRanges(),Be>St?(ae.addRange(J),ae.extend(G.node,G.offset)):(J.setEnd(G.node,G.offset),ae.addRange(J))}}}}for(he=[],ae=N;ae=ae.parentNode;)ae.nodeType===1&&he.push({element:ae,left:ae.scrollLeft,top:ae.scrollTop});for(typeof N.focus=="function"&&N.focus(),N=0;N<he.length;N++){var ce=he[N];ce.element.scrollLeft=ce.left,ce.element.scrollTop=ce.top}}$l=!!Qo,Yo=Qo=null}finally{ct=m,pe.p=h,K.T=o}}e.current=a,hn=2}}function Xf(){if(hn===2){hn=0;var e=ei,a=Yi,o=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||o){o=K.T,K.T=null;var h=pe.p;pe.p=2;var m=ct;ct|=4;try{_f(e,a.alternate,a)}finally{ct=m,pe.p=h,K.T=o}}hn=3}}function Qf(){if(hn===4||hn===3){hn=0,Tt();var e=ei,a=Yi,o=ka,h=kf;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?hn=5:(hn=0,Yi=ei=null,Yf(e,e.pendingLanes));var m=e.pendingLanes;if(m===0&&($a=null),Ie(o),a=a.stateNode,bt&&typeof bt.onCommitFiberRoot=="function")try{bt.onCommitFiberRoot(gn,a,void 0,(a.current.flags&128)===128)}catch{}if(h!==null){a=K.T,m=pe.p,pe.p=2,K.T=null;try{for(var y=e.onRecoverableError,S=0;S<h.length;S++){var N=h[S];y(N.value,{componentStack:N.stack})}}finally{K.T=a,pe.p=m}}(ka&3)!==0&&Pl(),pa(e),m=e.pendingLanes,(o&261930)!==0&&(m&42)!==0?e===Lo?Br++:(Br=0,Lo=e):Br=0,zr(0)}}function Yf(e,a){(e.pooledCacheLanes&=a)===0&&(a=e.pooledCache,a!=null&&(e.pooledCache=null,yr(a)))}function Pl(){return Wf(),Xf(),Qf(),Kf()}function Kf(){if(hn!==5)return!1;var e=ei,a=Do;Do=0;var o=Ie(ka),h=K.T,m=pe.p;try{pe.p=32>o?32:o,K.T=null,o=ko,ko=null;var y=ei,S=ka;if(hn=0,Yi=ei=null,ka=0,(ct&6)!==0)throw Error(c(331));var N=ct;if(ct|=4,Mf(y.current),Of(y,y.current,S,o),ct=N,zr(0,!1),bt&&typeof bt.onPostCommitFiberRoot=="function")try{bt.onPostCommitFiberRoot(gn,y)}catch{}return!0}finally{pe.p=m,K.T=h,Yf(e,a)}}function Zf(e,a,o){a=$n(o,a),a=ho(e.stateNode,a,2),e=Xa(e,a,2),e!==null&&(wn(e,2),pa(e))}function yt(e,a,o){if(e.tag===3)Zf(e,e,o);else for(;a!==null;){if(a.tag===3){Zf(a,e,o);break}else if(a.tag===1){var h=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&($a===null||!$a.has(h))){e=$n(o,e),o=Zc(2),h=Xa(a,o,2),h!==null&&(Jc(o,h,a,e),wn(h,2),pa(h));break}}a=a.return}}function Uo(e,a,o){var h=e.pingCache;if(h===null){h=e.pingCache=new Kh;var m=new Set;h.set(a,m)}else m=h.get(a),m===void 0&&(m=new Set,h.set(a,m));m.has(o)||(No=!0,m.add(o),e=tp.bind(null,e,a,o),a.then(e,e))}function tp(e,a,o){var h=e.pingCache;h!==null&&h.delete(a),e.pingedLanes|=e.suspendedLanes&o,e.warmLanes&=~o,Rt===e&&(Je&o)===o&&(Wt===4||Wt===3&&(Je&62914560)===Je&&300>ot()-Ll?(ct&2)===0&&Ki(e,0):Mo|=o,Qi===Je&&(Qi=0)),pa(e)}function Jf(e,a){a===0&&(a=dn()),e=pi(e,a),e!==null&&(wn(e,a),pa(e))}function np(e){var a=e.memoizedState,o=0;a!==null&&(o=a.retryLane),Jf(e,o)}function ap(e,a){var o=0;switch(e.tag){case 31:case 13:var h=e.stateNode,m=e.memoizedState;m!==null&&(o=m.retryLane);break;case 19:h=e.stateNode;break;case 22:h=e.stateNode._retryCache;break;default:throw Error(c(314))}h!==null&&h.delete(a),Jf(e,o)}function ip(e,a){return Zt(e,a)}var ql=null,Ji=null,Io=!1,Vl=!1,Ho=!1,ni=0;function pa(e){e!==Ji&&e.next===null&&(Ji===null?ql=Ji=e:Ji=Ji.next=e),Vl=!0,Io||(Io=!0,lp())}function zr(e,a){if(!Ho&&Vl){Ho=!0;do for(var o=!1,h=ql;h!==null;){if(e!==0){var m=h.pendingLanes;if(m===0)var y=0;else{var S=h.suspendedLanes,N=h.pingedLanes;y=(1<<31-tt(42|e)+1)-1,y&=m&~(S&~N),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(o=!0,nd(h,y))}else y=Je,y=Cn(h,h===Rt?y:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(y&3)===0||On(h,y)||(o=!0,nd(h,y));h=h.next}while(o);Ho=!1}}function rp(){$f()}function $f(){Vl=Io=!1;var e=0;ni!==0&&gp()&&(e=ni);for(var a=ot(),o=null,h=ql;h!==null;){var m=h.next,y=ed(h,a);y===0?(h.next=null,o===null?ql=m:o.next=m,m===null&&(Ji=o)):(o=h,(e!==0||(y&3)!==0)&&(Vl=!0)),h=m}hn!==0&&hn!==5||zr(e),ni!==0&&(ni=0)}function ed(e,a){for(var o=e.suspendedLanes,h=e.pingedLanes,m=e.expirationTimes,y=e.pendingLanes&-62914561;0<y;){var S=31-tt(y),N=1<<S,P=m[S];P===-1?((N&o)===0||(N&h)!==0)&&(m[S]=mt(N,a)):P<=a&&(e.expiredLanes|=N),y&=~N}if(a=Rt,o=Je,o=Cn(e,e===a?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),h=e.callbackNode,o===0||e===a&&(gt===2||gt===9)||e.cancelPendingCommit!==null)return h!==null&&h!==null&&wt(h),e.callbackNode=null,e.callbackPriority=0;if((o&3)===0||On(e,o)){if(a=o&-o,a===e.callbackPriority)return a;switch(h!==null&&wt(h),Ie(o)){case 2:case 8:o=Dt;break;case 32:o=Pt;break;case 268435456:o=mn;break;default:o=Pt}return h=td.bind(null,e),o=Zt(o,h),e.callbackPriority=a,e.callbackNode=o,a}return h!==null&&h!==null&&wt(h),e.callbackPriority=2,e.callbackNode=null,2}function td(e,a){if(hn!==0&&hn!==5)return e.callbackNode=null,e.callbackPriority=0,null;var o=e.callbackNode;if(Pl()&&e.callbackNode!==o)return null;var h=Je;return h=Cn(e,e===Rt?h:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),h===0?null:(Bf(e,h,a),ed(e,ot()),e.callbackNode!=null&&e.callbackNode===o?td.bind(null,e):null)}function nd(e,a){if(Pl())return null;Bf(e,a,!0)}function lp(){vp(function(){(ct&6)!==0?Zt(Xt,rp):$f()})}function Po(){if(ni===0){var e=zi;e===0&&(e=qt,qt<<=1,(qt&261888)===0&&(qt=256)),ni=e}return ni}function ad(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Zr(""+e)}function id(e,a){var o=a.ownerDocument.createElement("input");return o.name=a.name,o.value=a.value,e.id&&o.setAttribute("form",e.id),a.parentNode.insertBefore(o,a),e=new FormData(e),o.parentNode.removeChild(o),e}function sp(e,a,o,h,m){if(a==="submit"&&o&&o.stateNode===m){var y=ad((m[Ke]||null).action),S=h.submitter;S&&(a=(a=S[Ke]||null)?ad(a.formAction):S.getAttribute("formAction"),a!==null&&(y=a,S=null));var N=new tl("action","action",null,h,m);e.push({event:N,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(ni!==0){var P=S?id(m,S):new FormData(m);lo(o,{pending:!0,data:P,method:m.method,action:y},null,P)}}else typeof y=="function"&&(N.preventDefault(),P=S?id(m,S):new FormData(m),lo(o,{pending:!0,data:P,method:m.method,action:y},y,P))},currentTarget:m}]})}}for(var qo=0;qo<Ss.length;qo++){var Vo=Ss[qo],op=Vo.toLowerCase(),up=Vo[0].toUpperCase()+Vo.slice(1);sa(op,"on"+up)}sa(ku,"onAnimationEnd"),sa(Lu,"onAnimationIteration"),sa(Bu,"onAnimationStart"),sa("dblclick","onDoubleClick"),sa("focusin","onFocus"),sa("focusout","onBlur"),sa(Rh,"onTransitionRun"),sa(Ah,"onTransitionStart"),sa(Ch,"onTransitionCancel"),sa(zu,"onTransitionEnd"),ze("onMouseEnter",["mouseout","mouseover"]),ze("onMouseLeave",["mouseout","mouseover"]),ze("onPointerEnter",["pointerout","pointerover"]),ze("onPointerLeave",["pointerout","pointerover"]),Et("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Et("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Et("onBeforeInput",["compositionend","keypress","textInput","paste"]),Et("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Et("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Et("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ur="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(" "),cp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ur));function rd(e,a){a=(a&4)!==0;for(var o=0;o<e.length;o++){var h=e[o],m=h.event;h=h.listeners;e:{var y=void 0;if(a)for(var S=h.length-1;0<=S;S--){var N=h[S],P=N.instance,$=N.currentTarget;if(N=N.listener,P!==y&&m.isPropagationStopped())break e;y=N,m.currentTarget=$;try{y(m)}catch(se){il(se)}m.currentTarget=null,y=P}else for(S=0;S<h.length;S++){if(N=h[S],P=N.instance,$=N.currentTarget,N=N.listener,P!==y&&m.isPropagationStopped())break e;y=N,m.currentTarget=$;try{y(m)}catch(se){il(se)}m.currentTarget=null,y=P}}}}function Qe(e,a){var o=a[Lt];o===void 0&&(o=a[Lt]=new Set);var h=e+"__bubble";o.has(h)||(ld(a,e,2,!1),o.add(h))}function Go(e,a,o){var h=0;a&&(h|=4),ld(o,e,h,a)}var Gl="_reactListening"+Math.random().toString(36).slice(2);function Fo(e){if(!e[Gl]){e[Gl]=!0,Ne.forEach(function(o){o!=="selectionchange"&&(cp.has(o)||Go(o,!1,e),Go(o,!0,e))});var a=e.nodeType===9?e:e.ownerDocument;a===null||a[Gl]||(a[Gl]=!0,Go("selectionchange",!1,a))}}function ld(e,a,o,h){switch(Ld(a)){case 2:var m=Up;break;case 8:m=Ip;break;default:m=lu}o=m.bind(null,a,o,e),m=void 0,!cs||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(m=!0),h?m!==void 0?e.addEventListener(a,o,{capture:!0,passive:m}):e.addEventListener(a,o,!0):m!==void 0?e.addEventListener(a,o,{passive:m}):e.addEventListener(a,o,!1)}function Wo(e,a,o,h,m){var y=h;if((a&1)===0&&(a&2)===0&&h!==null)e:for(;;){if(h===null)return;var S=h.tag;if(S===3||S===4){var N=h.stateNode.containerInfo;if(N===m)break;if(S===4)for(S=h.return;S!==null;){var P=S.tag;if((P===3||P===4)&&S.stateNode.containerInfo===m)return;S=S.return}for(;N!==null;){if(S=ge(N),S===null)return;if(P=S.tag,P===5||P===6||P===26||P===27){h=y=S;continue e}N=N.parentNode}}h=h.return}ir(function(){var $=y,se=us(o),he=[];e:{var ee=Uu.get(e);if(ee!==void 0){var ae=tl,Oe=e;switch(e){case"keypress":if($r(o)===0)break e;case"keydown":case"keyup":ae=ah;break;case"focusin":Oe="focus",ae=ps;break;case"focusout":Oe="blur",ae=ps;break;case"beforeblur":case"afterblur":ae=ps;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ae=hu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ae=Fd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ae=lh;break;case ku:case Lu:case Bu:ae=Qd;break;case zu:ae=oh;break;case"scroll":case"scrollend":ae=Vd;break;case"wheel":ae=ch;break;case"copy":case"cut":case"paste":ae=Kd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ae=mu;break;case"toggle":case"beforetoggle":ae=dh}var Be=(a&4)!==0,St=!Be&&(e==="scroll"||e==="scrollend"),X=Be?ee!==null?ee+"Capture":null:ee;Be=[];for(var G=$,J;G!==null;){var ce=G;if(J=ce.stateNode,ce=ce.tag,ce!==5&&ce!==26&&ce!==27||J===null||X===null||(ce=rr(G,X),ce!=null&&Be.push(Ir(G,ce,J))),St)break;G=G.return}0<Be.length&&(ee=new ae(ee,Oe,null,o,se),he.push({event:ee,listeners:Be}))}}if((a&7)===0){e:{if(ee=e==="mouseover"||e==="pointerover",ae=e==="mouseout"||e==="pointerout",ee&&o!==os&&(Oe=o.relatedTarget||o.fromElement)&&(ge(Oe)||Oe[nn]))break e;if((ae||ee)&&(ee=se.window===se?se:(ee=se.ownerDocument)?ee.defaultView||ee.parentWindow:window,ae?(Oe=o.relatedTarget||o.toElement,ae=$,Oe=Oe?ge(Oe):null,Oe!==null&&(St=g(Oe),Be=Oe.tag,Oe!==St||Be!==5&&Be!==27&&Be!==6)&&(Oe=null)):(ae=null,Oe=$),ae!==Oe)){if(Be=hu,ce="onMouseLeave",X="onMouseEnter",G="mouse",(e==="pointerout"||e==="pointerover")&&(Be=mu,ce="onPointerLeave",X="onPointerEnter",G="pointer"),St=ae==null?ee:De(ae),J=Oe==null?ee:De(Oe),ee=new Be(ce,G+"leave",ae,o,se),ee.target=St,ee.relatedTarget=J,ce=null,ge(se)===$&&(Be=new Be(X,G+"enter",Oe,o,se),Be.target=J,Be.relatedTarget=St,ce=Be),St=ce,ae&&Oe)t:{for(Be=fp,X=ae,G=Oe,J=0,ce=X;ce;ce=Be(ce))J++;ce=0;for(var Le=G;Le;Le=Be(Le))ce++;for(;0<J-ce;)X=Be(X),J--;for(;0<ce-J;)G=Be(G),ce--;for(;J--;){if(X===G||G!==null&&X===G.alternate){Be=X;break t}X=Be(X),G=Be(G)}Be=null}else Be=null;ae!==null&&sd(he,ee,ae,Be,!1),Oe!==null&&St!==null&&sd(he,St,Oe,Be,!0)}}e:{if(ee=$?De($):window,ae=ee.nodeName&&ee.nodeName.toLowerCase(),ae==="select"||ae==="input"&&ee.type==="file")var lt=Su;else if(_u(ee))if(Tu)lt=xh;else{lt=Eh;var we=bh}else ae=ee.nodeName,!ae||ae.toLowerCase()!=="input"||ee.type!=="checkbox"&&ee.type!=="radio"?$&&Ci($.elementType)&&(lt=Su):lt=_h;if(lt&&(lt=lt(e,$))){xu(he,lt,o,se);break e}we&&we(e,ee,$),e==="focusout"&&$&&ee.type==="number"&&$.memoizedProps.value!=null&&ar(ee,"number",ee.value)}switch(we=$?De($):window,e){case"focusin":(_u(we)||we.contentEditable==="true")&&(wi=we,Es=$,pr=null);break;case"focusout":pr=Es=wi=null;break;case"mousedown":_s=!0;break;case"contextmenu":case"mouseup":case"dragend":_s=!1,ju(he,o,se);break;case"selectionchange":if(Th)break;case"keydown":case"keyup":ju(he,o,se)}var qe;if(gs)e:{switch(e){case"compositionstart":var $e="onCompositionStart";break e;case"compositionend":$e="onCompositionEnd";break e;case"compositionupdate":$e="onCompositionUpdate";break e}$e=void 0}else Oi?bu(e,o)&&($e="onCompositionEnd"):e==="keydown"&&o.keyCode===229&&($e="onCompositionStart");$e&&(gu&&o.locale!=="ko"&&(Oi||$e!=="onCompositionStart"?$e==="onCompositionEnd"&&Oi&&(qe=fu()):(Ha=se,fs="value"in Ha?Ha.value:Ha.textContent,Oi=!0)),we=Fl($,$e),0<we.length&&($e=new pu($e,e,null,o,se),he.push({event:$e,listeners:we}),qe?$e.data=qe:(qe=Eu(o),qe!==null&&($e.data=qe)))),(qe=ph?mh(e,o):gh(e,o))&&($e=Fl($,"onBeforeInput"),0<$e.length&&(we=new pu("onBeforeInput","beforeinput",null,o,se),he.push({event:we,listeners:$e}),we.data=qe)),sp(he,e,$,o,se)}rd(he,a)})}function Ir(e,a,o){return{instance:e,listener:a,currentTarget:o}}function Fl(e,a){for(var o=a+"Capture",h=[];e!==null;){var m=e,y=m.stateNode;if(m=m.tag,m!==5&&m!==26&&m!==27||y===null||(m=rr(e,o),m!=null&&h.unshift(Ir(e,m,y)),m=rr(e,a),m!=null&&h.push(Ir(e,m,y))),e.tag===3)return h;e=e.return}return[]}function fp(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function sd(e,a,o,h,m){for(var y=a._reactName,S=[];o!==null&&o!==h;){var N=o,P=N.alternate,$=N.stateNode;if(N=N.tag,P!==null&&P===h)break;N!==5&&N!==26&&N!==27||$===null||(P=$,m?($=rr(o,y),$!=null&&S.unshift(Ir(o,$,P))):m||($=rr(o,y),$!=null&&S.push(Ir(o,$,P)))),o=o.return}S.length!==0&&e.push({event:a,listeners:S})}var dp=/\r\n?/g,hp=/\u0000|\uFFFD/g;function od(e){return(typeof e=="string"?e:""+e).replace(dp,`
|
|
9
|
-
`).replace(hp,"")}function ud(e,a){return a=od(a),od(e)===a}function xt(e,a,o,h,m,y){switch(o){case"children":typeof h=="string"?a==="body"||a==="textarea"&&h===""||ga(e,h):(typeof h=="number"||typeof h=="bigint")&&a!=="body"&&ga(e,""+h);break;case"className":bn(e,"class",h);break;case"tabIndex":bn(e,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":bn(e,o,h);break;case"style":ui(e,h,y);break;case"data":if(a!=="object"){bn(e,"data",h);break}case"src":case"href":if(h===""&&(a!=="a"||o!=="href")){e.removeAttribute(o);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){e.removeAttribute(o);break}h=Zr(""+h),e.setAttribute(o,h);break;case"action":case"formAction":if(typeof h=="function"){e.setAttribute(o,"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 y=="function"&&(o==="formAction"?(a!=="input"&&xt(e,a,"name",m.name,m,null),xt(e,a,"formEncType",m.formEncType,m,null),xt(e,a,"formMethod",m.formMethod,m,null),xt(e,a,"formTarget",m.formTarget,m,null)):(xt(e,a,"encType",m.encType,m,null),xt(e,a,"method",m.method,m,null),xt(e,a,"target",m.target,m,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){e.removeAttribute(o);break}h=Zr(""+h),e.setAttribute(o,h);break;case"onClick":h!=null&&(e.onclick=la);break;case"onScroll":h!=null&&Qe("scroll",e);break;case"onScrollEnd":h!=null&&Qe("scrollend",e);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(c(61));if(o=h.__html,o!=null){if(m.children!=null)throw Error(c(60));e.innerHTML=o}}break;case"multiple":e.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":e.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){e.removeAttribute("xlink:href");break}o=Zr(""+h),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h!=null&&typeof h!="function"&&typeof h!="symbol"?e.setAttribute(o,""+h):e.removeAttribute(o);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":h&&typeof h!="function"&&typeof h!="symbol"?e.setAttribute(o,""):e.removeAttribute(o);break;case"capture":case"download":h===!0?e.setAttribute(o,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?e.setAttribute(o,h):e.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?e.setAttribute(o,h):e.removeAttribute(o);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?e.removeAttribute(o):e.setAttribute(o,h);break;case"popover":Qe("beforetoggle",e),Qe("toggle",e),Fe(e,"popover",h);break;case"xlinkActuate":Vt(e,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":Vt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":Vt(e,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":Vt(e,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":Vt(e,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":Vt(e,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":Fe(e,"is",h);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=qd.get(o)||o,Fe(e,o,h))}}function Xo(e,a,o,h,m,y){switch(o){case"style":ui(e,h,y);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(c(61));if(o=h.__html,o!=null){if(m.children!=null)throw Error(c(60));e.innerHTML=o}}break;case"children":typeof h=="string"?ga(e,h):(typeof h=="number"||typeof h=="bigint")&&ga(e,""+h);break;case"onScroll":h!=null&&Qe("scroll",e);break;case"onScrollEnd":h!=null&&Qe("scrollend",e);break;case"onClick":h!=null&&(e.onclick=la);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!We.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(m=o.endsWith("Capture"),a=o.slice(2,m?o.length-7:void 0),y=e[Ke]||null,y=y!=null?y[o]:null,typeof y=="function"&&e.removeEventListener(a,y,m),typeof h=="function")){typeof y!="function"&&y!==null&&(o in e?e[o]=null:e.hasAttribute(o)&&e.removeAttribute(o)),e.addEventListener(a,h,m);break e}o in e?e[o]=h:h===!0?e.setAttribute(o,""):Fe(e,o,h)}}}function Rn(e,a,o){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Qe("error",e),Qe("load",e);var h=!1,m=!1,y;for(y in o)if(o.hasOwnProperty(y)){var S=o[y];if(S!=null)switch(y){case"src":h=!0;break;case"srcSet":m=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,a));default:xt(e,a,y,S,o,null)}}m&&xt(e,a,"srcSet",o.srcSet,o,null),h&&xt(e,a,"src",o.src,o,null);return;case"input":Qe("invalid",e);var N=y=S=m=null,P=null,$=null;for(h in o)if(o.hasOwnProperty(h)){var se=o[h];if(se!=null)switch(h){case"name":m=se;break;case"type":S=se;break;case"checked":P=se;break;case"defaultChecked":$=se;break;case"value":y=se;break;case"defaultValue":N=se;break;case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(c(137,a));break;default:xt(e,a,h,se,o,null)}}ma(e,y,N,P,$,S,m,!1);return;case"select":Qe("invalid",e),h=S=y=null;for(m in o)if(o.hasOwnProperty(m)&&(N=o[m],N!=null))switch(m){case"value":y=N;break;case"defaultValue":S=N;break;case"multiple":h=N;default:xt(e,a,m,N,o,null)}a=y,o=S,e.multiple=!!h,a!=null?Ua(e,!!h,a,!1):o!=null&&Ua(e,!!h,o,!0);return;case"textarea":Qe("invalid",e),y=m=h=null;for(S in o)if(o.hasOwnProperty(S)&&(N=o[S],N!=null))switch(S){case"value":h=N;break;case"defaultValue":m=N;break;case"children":y=N;break;case"dangerouslySetInnerHTML":if(N!=null)throw Error(c(91));break;default:xt(e,a,S,N,o,null)}Qr(e,h,m,y);return;case"option":for(P in o)o.hasOwnProperty(P)&&(h=o[P],h!=null)&&(P==="selected"?e.selected=h&&typeof h!="function"&&typeof h!="symbol":xt(e,a,P,h,o,null));return;case"dialog":Qe("beforetoggle",e),Qe("toggle",e),Qe("cancel",e),Qe("close",e);break;case"iframe":case"object":Qe("load",e);break;case"video":case"audio":for(h=0;h<Ur.length;h++)Qe(Ur[h],e);break;case"image":Qe("error",e),Qe("load",e);break;case"details":Qe("toggle",e);break;case"embed":case"source":case"link":Qe("error",e),Qe("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($ in o)if(o.hasOwnProperty($)&&(h=o[$],h!=null))switch($){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,a));default:xt(e,a,$,h,o,null)}return;default:if(Ci(a)){for(se in o)o.hasOwnProperty(se)&&(h=o[se],h!==void 0&&Xo(e,a,se,h,o,void 0));return}}for(N in o)o.hasOwnProperty(N)&&(h=o[N],h!=null&&xt(e,a,N,h,o,null))}function pp(e,a,o,h){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var m=null,y=null,S=null,N=null,P=null,$=null,se=null;for(ae in o){var he=o[ae];if(o.hasOwnProperty(ae)&&he!=null)switch(ae){case"checked":break;case"value":break;case"defaultValue":P=he;default:h.hasOwnProperty(ae)||xt(e,a,ae,null,h,he)}}for(var ee in h){var ae=h[ee];if(he=o[ee],h.hasOwnProperty(ee)&&(ae!=null||he!=null))switch(ee){case"type":y=ae;break;case"name":m=ae;break;case"checked":$=ae;break;case"defaultChecked":se=ae;break;case"value":S=ae;break;case"defaultValue":N=ae;break;case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(c(137,a));break;default:ae!==he&&xt(e,a,ee,ae,h,he)}}Gt(e,S,N,P,$,se,y,m);return;case"select":ae=S=N=ee=null;for(y in o)if(P=o[y],o.hasOwnProperty(y)&&P!=null)switch(y){case"value":break;case"multiple":ae=P;default:h.hasOwnProperty(y)||xt(e,a,y,null,h,P)}for(m in h)if(y=h[m],P=o[m],h.hasOwnProperty(m)&&(y!=null||P!=null))switch(m){case"value":ee=y;break;case"defaultValue":N=y;break;case"multiple":S=y;default:y!==P&&xt(e,a,m,y,h,P)}a=N,o=S,h=ae,ee!=null?Ua(e,!!o,ee,!1):!!h!=!!o&&(a!=null?Ua(e,!!o,a,!0):Ua(e,!!o,o?[]:"",!1));return;case"textarea":ae=ee=null;for(N in o)if(m=o[N],o.hasOwnProperty(N)&&m!=null&&!h.hasOwnProperty(N))switch(N){case"value":break;case"children":break;default:xt(e,a,N,null,h,m)}for(S in h)if(m=h[S],y=o[S],h.hasOwnProperty(S)&&(m!=null||y!=null))switch(S){case"value":ee=m;break;case"defaultValue":ae=m;break;case"children":break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(c(91));break;default:m!==y&&xt(e,a,S,m,h,y)}Ia(e,ee,ae);return;case"option":for(var Oe in o)ee=o[Oe],o.hasOwnProperty(Oe)&&ee!=null&&!h.hasOwnProperty(Oe)&&(Oe==="selected"?e.selected=!1:xt(e,a,Oe,null,h,ee));for(P in h)ee=h[P],ae=o[P],h.hasOwnProperty(P)&&ee!==ae&&(ee!=null||ae!=null)&&(P==="selected"?e.selected=ee&&typeof ee!="function"&&typeof ee!="symbol":xt(e,a,P,ee,h,ae));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 Be in o)ee=o[Be],o.hasOwnProperty(Be)&&ee!=null&&!h.hasOwnProperty(Be)&&xt(e,a,Be,null,h,ee);for($ in h)if(ee=h[$],ae=o[$],h.hasOwnProperty($)&&ee!==ae&&(ee!=null||ae!=null))switch($){case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(c(137,a));break;default:xt(e,a,$,ee,h,ae)}return;default:if(Ci(a)){for(var St in o)ee=o[St],o.hasOwnProperty(St)&&ee!==void 0&&!h.hasOwnProperty(St)&&Xo(e,a,St,void 0,h,ee);for(se in h)ee=h[se],ae=o[se],!h.hasOwnProperty(se)||ee===ae||ee===void 0&&ae===void 0||Xo(e,a,se,ee,h,ae);return}}for(var X in o)ee=o[X],o.hasOwnProperty(X)&&ee!=null&&!h.hasOwnProperty(X)&&xt(e,a,X,null,h,ee);for(he in h)ee=h[he],ae=o[he],!h.hasOwnProperty(he)||ee===ae||ee==null&&ae==null||xt(e,a,he,ee,h,ae)}function cd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function mp(){if(typeof performance.getEntriesByType=="function"){for(var e=0,a=0,o=performance.getEntriesByType("resource"),h=0;h<o.length;h++){var m=o[h],y=m.transferSize,S=m.initiatorType,N=m.duration;if(y&&N&&cd(S)){for(S=0,N=m.responseEnd,h+=1;h<o.length;h++){var P=o[h],$=P.startTime;if($>N)break;var se=P.transferSize,he=P.initiatorType;se&&cd(he)&&(P=P.responseEnd,S+=se*(P<N?1:(N-$)/(P-$)))}if(--h,a+=8*(y+S)/(m.duration/1e3),e++,10<e)break}}if(0<e)return a/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Qo=null,Yo=null;function Wl(e){return e.nodeType===9?e:e.ownerDocument}function fd(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 dd(e,a){if(e===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&a==="foreignObject"?0:e}function Ko(e,a){return e==="textarea"||e==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Zo=null;function gp(){var e=window.event;return e&&e.type==="popstate"?e===Zo?!1:(Zo=e,!0):(Zo=null,!1)}var hd=typeof setTimeout=="function"?setTimeout:void 0,yp=typeof clearTimeout=="function"?clearTimeout:void 0,pd=typeof Promise=="function"?Promise:void 0,vp=typeof queueMicrotask=="function"?queueMicrotask:typeof pd<"u"?function(e){return pd.resolve(null).then(e).catch(bp)}:hd;function bp(e){setTimeout(function(){throw e})}function ai(e){return e==="head"}function md(e,a){var o=a,h=0;do{var m=o.nextSibling;if(e.removeChild(o),m&&m.nodeType===8)if(o=m.data,o==="/$"||o==="/&"){if(h===0){e.removeChild(m),nr(a);return}h--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")h++;else if(o==="html")Hr(e.ownerDocument.documentElement);else if(o==="head"){o=e.ownerDocument.head,Hr(o);for(var y=o.firstChild;y;){var S=y.nextSibling,N=y.nodeName;y[xe]||N==="SCRIPT"||N==="STYLE"||N==="LINK"&&y.rel.toLowerCase()==="stylesheet"||o.removeChild(y),y=S}}else o==="body"&&Hr(e.ownerDocument.body);o=m}while(o);nr(a)}function gd(e,a){var o=e;e=0;do{var h=o.nextSibling;if(o.nodeType===1?a?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(a?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),h&&h.nodeType===8)if(o=h.data,o==="/$"){if(e===0)break;e--}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||e++;o=h}while(o)}function Jo(e){var a=e.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var o=a;switch(a=a.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":Jo(o),q(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}e.removeChild(o)}}function Ep(e,a,o,h){for(;e.nodeType===1;){var m=o;if(e.nodeName.toLowerCase()!==a.toLowerCase()){if(!h&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(h){if(!e[xe])switch(a){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(y=e.getAttribute("rel"),y==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(y!==m.rel||e.getAttribute("href")!==(m.href==null||m.href===""?null:m.href)||e.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin)||e.getAttribute("title")!==(m.title==null?null:m.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(y=e.getAttribute("src"),(y!==(m.src==null?null:m.src)||e.getAttribute("type")!==(m.type==null?null:m.type)||e.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin))&&y&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(a==="input"&&e.type==="hidden"){var y=m.name==null?null:""+m.name;if(m.type==="hidden"&&e.getAttribute("name")===y)return e}else return e;if(e=ia(e.nextSibling),e===null)break}return null}function _p(e,a,o){if(a==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!o||(e=ia(e.nextSibling),e===null))return null;return e}function yd(e,a){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=ia(e.nextSibling),e===null))return null;return e}function $o(e){return e.data==="$?"||e.data==="$~"}function eu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function xp(e,a){var o=e.ownerDocument;if(e.data==="$~")e._reactRetry=a;else if(e.data!=="$?"||o.readyState!=="loading")a();else{var h=function(){a(),o.removeEventListener("DOMContentLoaded",h)};o.addEventListener("DOMContentLoaded",h),e._reactRetry=h}}function ia(e){for(;e!=null;e=e.nextSibling){var a=e.nodeType;if(a===1||a===3)break;if(a===8){if(a=e.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return e}var tu=null;function vd(e){e=e.nextSibling;for(var a=0;e;){if(e.nodeType===8){var o=e.data;if(o==="/$"||o==="/&"){if(a===0)return ia(e.nextSibling);a--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||a++}e=e.nextSibling}return null}function bd(e){e=e.previousSibling;for(var a=0;e;){if(e.nodeType===8){var o=e.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(a===0)return e;a--}else o!=="/$"&&o!=="/&"||a++}e=e.previousSibling}return null}function Ed(e,a,o){switch(a=Wl(o),e){case"html":if(e=a.documentElement,!e)throw Error(c(452));return e;case"head":if(e=a.head,!e)throw Error(c(453));return e;case"body":if(e=a.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function Hr(e){for(var a=e.attributes;a.length;)e.removeAttributeNode(a[0]);q(e)}var ra=new Map,_d=new Set;function Xl(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var La=pe.d;pe.d={f:Sp,r:Tp,D:Rp,C:Ap,L:Cp,m:Op,X:Np,S:wp,M:Mp};function Sp(){var e=La.f(),a=Ul();return e||a}function Tp(e){var a=ye(e);a!==null&&a.tag===5&&a.type==="form"?zc(a):La.r(e)}var $i=typeof document>"u"?null:document;function xd(e,a,o){var h=$i;if(h&&typeof a=="string"&&a){var m=Ln(a);m='link[rel="'+e+'"][href="'+m+'"]',typeof o=="string"&&(m+='[crossorigin="'+o+'"]'),_d.has(m)||(_d.add(m),e={rel:e,crossOrigin:o,href:a},h.querySelector(m)===null&&(a=h.createElement("link"),Rn(a,"link",e),Ce(a),h.head.appendChild(a)))}}function Rp(e){La.D(e),xd("dns-prefetch",e,null)}function Ap(e,a){La.C(e,a),xd("preconnect",e,a)}function Cp(e,a,o){La.L(e,a,o);var h=$i;if(h&&e&&a){var m='link[rel="preload"][as="'+Ln(a)+'"]';a==="image"&&o&&o.imageSrcSet?(m+='[imagesrcset="'+Ln(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(m+='[imagesizes="'+Ln(o.imageSizes)+'"]')):m+='[href="'+Ln(e)+'"]';var y=m;switch(a){case"style":y=er(e);break;case"script":y=tr(e)}ra.has(y)||(e=w({rel:"preload",href:a==="image"&&o&&o.imageSrcSet?void 0:e,as:a},o),ra.set(y,e),h.querySelector(m)!==null||a==="style"&&h.querySelector(Pr(y))||a==="script"&&h.querySelector(qr(y))||(a=h.createElement("link"),Rn(a,"link",e),Ce(a),h.head.appendChild(a)))}}function Op(e,a){La.m(e,a);var o=$i;if(o&&e){var h=a&&typeof a.as=="string"?a.as:"script",m='link[rel="modulepreload"][as="'+Ln(h)+'"][href="'+Ln(e)+'"]',y=m;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=tr(e)}if(!ra.has(y)&&(e=w({rel:"modulepreload",href:e},a),ra.set(y,e),o.querySelector(m)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(qr(y)))return}h=o.createElement("link"),Rn(h,"link",e),Ce(h),o.head.appendChild(h)}}}function wp(e,a,o){La.S(e,a,o);var h=$i;if(h&&e){var m=He(h).hoistableStyles,y=er(e);a=a||"default";var S=m.get(y);if(!S){var N={loading:0,preload:null};if(S=h.querySelector(Pr(y)))N.loading=5;else{e=w({rel:"stylesheet",href:e,"data-precedence":a},o),(o=ra.get(y))&&nu(e,o);var P=S=h.createElement("link");Ce(P),Rn(P,"link",e),P._p=new Promise(function($,se){P.onload=$,P.onerror=se}),P.addEventListener("load",function(){N.loading|=1}),P.addEventListener("error",function(){N.loading|=2}),N.loading|=4,Ql(S,a,h)}S={type:"stylesheet",instance:S,count:1,state:N},m.set(y,S)}}}function Np(e,a){La.X(e,a);var o=$i;if(o&&e){var h=He(o).hoistableScripts,m=tr(e),y=h.get(m);y||(y=o.querySelector(qr(m)),y||(e=w({src:e,async:!0},a),(a=ra.get(m))&&au(e,a),y=o.createElement("script"),Ce(y),Rn(y,"link",e),o.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},h.set(m,y))}}function Mp(e,a){La.M(e,a);var o=$i;if(o&&e){var h=He(o).hoistableScripts,m=tr(e),y=h.get(m);y||(y=o.querySelector(qr(m)),y||(e=w({src:e,async:!0,type:"module"},a),(a=ra.get(m))&&au(e,a),y=o.createElement("script"),Ce(y),Rn(y,"link",e),o.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},h.set(m,y))}}function Sd(e,a,o,h){var m=(m=Ee.current)?Xl(m):null;if(!m)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(a=er(o.href),o=He(m).hoistableStyles,h=o.get(a),h||(h={type:"style",instance:null,count:0,state:null},o.set(a,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){e=er(o.href);var y=He(m).hoistableStyles,S=y.get(e);if(S||(m=m.ownerDocument||m,S={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(e,S),(y=m.querySelector(Pr(e)))&&!y._p&&(S.instance=y,S.state.loading=5),ra.has(e)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},ra.set(e,o),y||jp(m,e,o,S.state))),a&&h===null)throw Error(c(528,""));return S}if(a&&h!==null)throw Error(c(529,""));return null;case"script":return a=o.async,o=o.src,typeof o=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=tr(o),o=He(m).hoistableScripts,h=o.get(a),h||(h={type:"script",instance:null,count:0,state:null},o.set(a,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function er(e){return'href="'+Ln(e)+'"'}function Pr(e){return'link[rel="stylesheet"]['+e+"]"}function Td(e){return w({},e,{"data-precedence":e.precedence,precedence:null})}function jp(e,a,o,h){e.querySelector('link[rel="preload"][as="style"]['+a+"]")?h.loading=1:(a=e.createElement("link"),h.preload=a,a.addEventListener("load",function(){return h.loading|=1}),a.addEventListener("error",function(){return h.loading|=2}),Rn(a,"link",o),Ce(a),e.head.appendChild(a))}function tr(e){return'[src="'+Ln(e)+'"]'}function qr(e){return"script[async]"+e}function Rd(e,a,o){if(a.count++,a.instance===null)switch(a.type){case"style":var h=e.querySelector('style[data-href~="'+Ln(o.href)+'"]');if(h)return a.instance=h,Ce(h),h;var m=w({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return h=(e.ownerDocument||e).createElement("style"),Ce(h),Rn(h,"style",m),Ql(h,o.precedence,e),a.instance=h;case"stylesheet":m=er(o.href);var y=e.querySelector(Pr(m));if(y)return a.state.loading|=4,a.instance=y,Ce(y),y;h=Td(o),(m=ra.get(m))&&nu(h,m),y=(e.ownerDocument||e).createElement("link"),Ce(y);var S=y;return S._p=new Promise(function(N,P){S.onload=N,S.onerror=P}),Rn(y,"link",h),a.state.loading|=4,Ql(y,o.precedence,e),a.instance=y;case"script":return y=tr(o.src),(m=e.querySelector(qr(y)))?(a.instance=m,Ce(m),m):(h=o,(m=ra.get(y))&&(h=w({},o),au(h,m)),e=e.ownerDocument||e,m=e.createElement("script"),Ce(m),Rn(m,"link",h),e.head.appendChild(m),a.instance=m);case"void":return null;default:throw Error(c(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(h=a.instance,a.state.loading|=4,Ql(h,o.precedence,e));return a.instance}function Ql(e,a,o){for(var h=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),m=h.length?h[h.length-1]:null,y=m,S=0;S<h.length;S++){var N=h[S];if(N.dataset.precedence===a)y=N;else if(y!==m)break}y?y.parentNode.insertBefore(e,y.nextSibling):(a=o.nodeType===9?o.head:o,a.insertBefore(e,a.firstChild))}function nu(e,a){e.crossOrigin==null&&(e.crossOrigin=a.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=a.referrerPolicy),e.title==null&&(e.title=a.title)}function au(e,a){e.crossOrigin==null&&(e.crossOrigin=a.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=a.referrerPolicy),e.integrity==null&&(e.integrity=a.integrity)}var Yl=null;function Ad(e,a,o){if(Yl===null){var h=new Map,m=Yl=new Map;m.set(o,h)}else m=Yl,h=m.get(o),h||(h=new Map,m.set(o,h));if(h.has(e))return h;for(h.set(e,null),o=o.getElementsByTagName(e),m=0;m<o.length;m++){var y=o[m];if(!(y[xe]||y[ht]||e==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var S=y.getAttribute(a)||"";S=e+S;var N=h.get(S);N?N.push(y):h.set(S,[y])}}return h}function Cd(e,a,o){e=e.ownerDocument||e,e.head.insertBefore(o,a==="title"?e.querySelector("head > title"):null)}function Dp(e,a,o){if(o===1||a.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;return a.rel==="stylesheet"?(e=a.disabled,typeof a.precedence=="string"&&e==null):!0;case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function Od(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function kp(e,a,o,h){if(o.type==="stylesheet"&&(typeof h.media!="string"||matchMedia(h.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var m=er(h.href),y=a.querySelector(Pr(m));if(y){a=y._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(e.count++,e=Kl.bind(e),a.then(e,e)),o.state.loading|=4,o.instance=y,Ce(y);return}y=a.ownerDocument||a,h=Td(h),(m=ra.get(m))&&nu(h,m),y=y.createElement("link"),Ce(y);var S=y;S._p=new Promise(function(N,P){S.onload=N,S.onerror=P}),Rn(y,"link",h),o.instance=y}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(o,a),(a=o.state.preload)&&(o.state.loading&3)===0&&(e.count++,o=Kl.bind(e),a.addEventListener("load",o),a.addEventListener("error",o))}}var iu=0;function Lp(e,a){return e.stylesheets&&e.count===0&&Jl(e,e.stylesheets),0<e.count||0<e.imgCount?function(o){var h=setTimeout(function(){if(e.stylesheets&&Jl(e,e.stylesheets),e.unsuspend){var y=e.unsuspend;e.unsuspend=null,y()}},6e4+a);0<e.imgBytes&&iu===0&&(iu=62500*mp());var m=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Jl(e,e.stylesheets),e.unsuspend)){var y=e.unsuspend;e.unsuspend=null,y()}},(e.imgBytes>iu?50:800)+a);return e.unsuspend=o,function(){e.unsuspend=null,clearTimeout(h),clearTimeout(m)}}:null}function Kl(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Jl(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Zl=null;function Jl(e,a){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Zl=new Map,a.forEach(Bp,e),Zl=null,Kl.call(e))}function Bp(e,a){if(!(a.state.loading&4)){var o=Zl.get(e);if(o)var h=o.get(null);else{o=new Map,Zl.set(e,o);for(var m=e.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<m.length;y++){var S=m[y];(S.nodeName==="LINK"||S.getAttribute("media")!=="not all")&&(o.set(S.dataset.precedence,S),h=S)}h&&o.set(null,h)}m=a.instance,S=m.getAttribute("data-precedence"),y=o.get(S)||h,y===h&&o.set(null,m),o.set(S,m),this.count++,h=Kl.bind(this),m.addEventListener("load",h),m.addEventListener("error",h),y?y.parentNode.insertBefore(m,y.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(m,e.firstChild)),a.state.loading|=4}}var Vr={$$typeof:U,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function zp(e,a,o,h,m,y,S,N,P){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=Kn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Kn(0),this.hiddenUpdates=Kn(null),this.identifierPrefix=h,this.onUncaughtError=m,this.onCaughtError=y,this.onRecoverableError=S,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=P,this.incompleteTransitions=new Map}function wd(e,a,o,h,m,y,S,N,P,$,se,he){return e=new zp(e,a,o,S,P,$,se,he,N),a=1,y===!0&&(a|=24),y=Vn(3,null,null,a),e.current=y,y.stateNode=e,a=Bs(),a.refCount++,e.pooledCache=a,a.refCount++,y.memoizedState={element:h,isDehydrated:o,cache:a},Hs(y),e}function Nd(e){return e?(e=ji,e):ji}function Md(e,a,o,h,m,y){m=Nd(m),h.context===null?h.context=m:h.pendingContext=m,h=Wa(a),h.payload={element:o},y=y===void 0?null:y,y!==null&&(h.callback=y),o=Xa(e,h,a),o!==null&&(Pn(o,e,a),_r(o,e,a))}function jd(e,a){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<a?o:a}}function ru(e,a){jd(e,a),(e=e.alternate)&&jd(e,a)}function Dd(e){if(e.tag===13||e.tag===31){var a=pi(e,67108864);a!==null&&Pn(a,e,67108864),ru(e,67108864)}}function kd(e){if(e.tag===13||e.tag===31){var a=Qn();a=Nt(a);var o=pi(e,a);o!==null&&Pn(o,e,a),ru(e,a)}}var $l=!0;function Up(e,a,o,h){var m=K.T;K.T=null;var y=pe.p;try{pe.p=2,lu(e,a,o,h)}finally{pe.p=y,K.T=m}}function Ip(e,a,o,h){var m=K.T;K.T=null;var y=pe.p;try{pe.p=8,lu(e,a,o,h)}finally{pe.p=y,K.T=m}}function lu(e,a,o,h){if($l){var m=su(h);if(m===null)Wo(e,a,h,es,o),Bd(e,h);else if(Pp(m,e,a,o,h))h.stopPropagation();else if(Bd(e,h),a&4&&-1<Hp.indexOf(e)){for(;m!==null;){var y=ye(m);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var S=Ct(y.pendingLanes);if(S!==0){var N=y;for(N.pendingLanes|=2,N.entangledLanes|=2;S;){var P=1<<31-tt(S);N.entanglements[1]|=P,S&=~P}pa(y),(ct&6)===0&&(Bl=ot()+500,zr(0))}}break;case 31:case 13:N=pi(y,2),N!==null&&Pn(N,y,2),Ul(),ru(y,2)}if(y=su(h),y===null&&Wo(e,a,h,es,o),y===m)break;m=y}m!==null&&h.stopPropagation()}else Wo(e,a,h,null,o)}}function su(e){return e=us(e),ou(e)}var es=null;function ou(e){if(es=null,e=ge(e),e!==null){var a=g(e);if(a===null)e=null;else{var o=a.tag;if(o===13){if(e=v(a),e!==null)return e;e=null}else if(o===31){if(e=x(a),e!==null)return e;e=null}else if(o===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;e=null}else a!==e&&(e=null)}}return es=e,null}function Ld(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(An()){case Xt:return 2;case Dt:return 8;case Pt:case pn:return 32;case mn:return 268435456;default:return 32}default:return 32}}var uu=!1,ii=null,ri=null,li=null,Gr=new Map,Fr=new Map,si=[],Hp="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 Bd(e,a){switch(e){case"focusin":case"focusout":ii=null;break;case"dragenter":case"dragleave":ri=null;break;case"mouseover":case"mouseout":li=null;break;case"pointerover":case"pointerout":Gr.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fr.delete(a.pointerId)}}function Wr(e,a,o,h,m,y){return e===null||e.nativeEvent!==y?(e={blockedOn:a,domEventName:o,eventSystemFlags:h,nativeEvent:y,targetContainers:[m]},a!==null&&(a=ye(a),a!==null&&Dd(a)),e):(e.eventSystemFlags|=h,a=e.targetContainers,m!==null&&a.indexOf(m)===-1&&a.push(m),e)}function Pp(e,a,o,h,m){switch(a){case"focusin":return ii=Wr(ii,e,a,o,h,m),!0;case"dragenter":return ri=Wr(ri,e,a,o,h,m),!0;case"mouseover":return li=Wr(li,e,a,o,h,m),!0;case"pointerover":var y=m.pointerId;return Gr.set(y,Wr(Gr.get(y)||null,e,a,o,h,m)),!0;case"gotpointercapture":return y=m.pointerId,Fr.set(y,Wr(Fr.get(y)||null,e,a,o,h,m)),!0}return!1}function zd(e){var a=ge(e.target);if(a!==null){var o=g(a);if(o!==null){if(a=o.tag,a===13){if(a=v(o),a!==null){e.blockedOn=a,tn(e.priority,function(){kd(o)});return}}else if(a===31){if(a=x(o),a!==null){e.blockedOn=a,tn(e.priority,function(){kd(o)});return}}else if(a===3&&o.stateNode.current.memoizedState.isDehydrated){e.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ts(e){if(e.blockedOn!==null)return!1;for(var a=e.targetContainers;0<a.length;){var o=su(e.nativeEvent);if(o===null){o=e.nativeEvent;var h=new o.constructor(o.type,o);os=h,o.target.dispatchEvent(h),os=null}else return a=ye(o),a!==null&&Dd(a),e.blockedOn=o,!1;a.shift()}return!0}function Ud(e,a,o){ts(e)&&o.delete(a)}function qp(){uu=!1,ii!==null&&ts(ii)&&(ii=null),ri!==null&&ts(ri)&&(ri=null),li!==null&&ts(li)&&(li=null),Gr.forEach(Ud),Fr.forEach(Ud)}function ns(e,a){e.blockedOn===a&&(e.blockedOn=null,uu||(uu=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,qp)))}var as=null;function Id(e){as!==e&&(as=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){as===e&&(as=null);for(var a=0;a<e.length;a+=3){var o=e[a],h=e[a+1],m=e[a+2];if(typeof h!="function"){if(ou(h||o)===null)continue;break}var y=ye(o);y!==null&&(e.splice(a,3),a-=3,lo(y,{pending:!0,data:m,method:o.method,action:h},h,m))}}))}function nr(e){function a(P){return ns(P,e)}ii!==null&&ns(ii,e),ri!==null&&ns(ri,e),li!==null&&ns(li,e),Gr.forEach(a),Fr.forEach(a);for(var o=0;o<si.length;o++){var h=si[o];h.blockedOn===e&&(h.blockedOn=null)}for(;0<si.length&&(o=si[0],o.blockedOn===null);)zd(o),o.blockedOn===null&&si.shift();if(o=(e.ownerDocument||e).$$reactFormReplay,o!=null)for(h=0;h<o.length;h+=3){var m=o[h],y=o[h+1],S=m[Ke]||null;if(typeof y=="function")S||Id(o);else if(S){var N=null;if(y&&y.hasAttribute("formAction")){if(m=y,S=y[Ke]||null)N=S.formAction;else if(ou(m)!==null)continue}else N=S.action;typeof N=="function"?o[h+1]=N:(o.splice(h,3),h-=3),Id(o)}}}function Hd(){function e(y){y.canIntercept&&y.info==="react-transition"&&y.intercept({handler:function(){return new Promise(function(S){return m=S})},focusReset:"manual",scroll:"manual"})}function a(){m!==null&&(m(),m=null),h||setTimeout(o,20)}function o(){if(!h&&!navigation.transition){var y=navigation.currentEntry;y&&y.url!=null&&navigation.navigate(y.url,{state:y.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var h=!1,m=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(o,100),function(){h=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),m!==null&&(m(),m=null)}}}function cu(e){this._internalRoot=e}rs.prototype.render=cu.prototype.render=function(e){var a=this._internalRoot;if(a===null)throw Error(c(409));var o=a.current,h=Qn();Md(o,h,e,a,null,null)},rs.prototype.unmount=cu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var a=e.containerInfo;Md(e.current,2,null,e,null,null),Ul(),a[nn]=null}};function rs(e){this._internalRoot=e}rs.prototype.unstable_scheduleHydration=function(e){if(e){var a=kt();e={blockedOn:null,target:e,priority:a};for(var o=0;o<si.length&&a!==0&&a<si[o].priority;o++);si.splice(o,0,e),o===0&&zd(e)}};var Pd=i.version;if(Pd!=="19.2.3")throw Error(c(527,Pd,"19.2.3"));pe.findDOMNode=function(e){var a=e._reactInternals;if(a===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=_(a),e=e!==null?T(e):null,e=e===null?null:e.stateNode,e};var Vp={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:K,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ls=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ls.isDisabled&&ls.supportsFiber)try{gn=ls.inject(Vp),bt=ls}catch{}}return reactDomClient_production.createRoot=function(e,a){if(!p(e))throw Error(c(299));var o=!1,h="",m=Xc,y=Qc,S=Yc;return a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(h=a.identifierPrefix),a.onUncaughtError!==void 0&&(m=a.onUncaughtError),a.onCaughtError!==void 0&&(y=a.onCaughtError),a.onRecoverableError!==void 0&&(S=a.onRecoverableError)),a=wd(e,1,!1,null,null,o,h,null,m,y,S,Hd),e[nn]=a.current,Fo(e),new cu(a)},reactDomClient_production.hydrateRoot=function(e,a,o){if(!p(e))throw Error(c(299));var h=!1,m="",y=Xc,S=Qc,N=Yc,P=null;return o!=null&&(o.unstable_strictMode===!0&&(h=!0),o.identifierPrefix!==void 0&&(m=o.identifierPrefix),o.onUncaughtError!==void 0&&(y=o.onUncaughtError),o.onCaughtError!==void 0&&(S=o.onCaughtError),o.onRecoverableError!==void 0&&(N=o.onRecoverableError),o.formState!==void 0&&(P=o.formState)),a=wd(e,1,!0,a,o??null,h,m,P,y,S,N,Hd),a.context=Nd(null),o=a.current,h=Qn(),h=Nt(h),m=Wa(h),m.callback=null,Xa(o,m,h),o=h,a.current.lanes=o,wn(a,o),pa(a),e[nn]=a.current,Fo(e),new rs(a)},reactDomClient_production.version="19.2.3",reactDomClient_production}var hasRequiredClient;function requireClient(){if(hasRequiredClient)return client.exports;hasRequiredClient=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(i){console.error(i)}}return t(),client.exports=requireReactDomClient_production(),client.exports}var clientExports=requireClient(),reactExports=requireReact();const React=getDefaultExportFromCjs(reactExports);var withSelector={exports:{}},useSyncExternalStoreWithSelector_production={};var hasRequiredUseSyncExternalStoreWithSelector_production;function requireUseSyncExternalStoreWithSelector_production(){if(hasRequiredUseSyncExternalStoreWithSelector_production)return useSyncExternalStoreWithSelector_production;hasRequiredUseSyncExternalStoreWithSelector_production=1;var t=requireReact();function i(E,_){return E===_&&(E!==0||1/E===1/_)||E!==E&&_!==_}var u=typeof Object.is=="function"?Object.is:i,c=t.useSyncExternalStore,p=t.useRef,g=t.useEffect,v=t.useMemo,x=t.useDebugValue;return useSyncExternalStoreWithSelector_production.useSyncExternalStoreWithSelector=function(E,_,T,w,R){var M=p(null);if(M.current===null){var k={hasValue:!1,value:null};M.current=k}else k=M.current;M=v(function(){function D(Q){if(!z){if(z=!0,L=Q,Q=w(Q),R!==void 0&&k.hasValue){var Z=k.value;if(R(Z,Q))return U=Z}return U=Q}if(Z=U,u(L,Q))return Z;var F=w(Q);return R!==void 0&&R(Z,F)?(L=Q,Z):(L=Q,U=F)}var z=!1,L,U,V=T===void 0?null:T;return[function(){return D(_())},V===null?void 0:function(){return D(V())}]},[_,T,w,R]);var A=c(E,M[0],M[1]);return g(function(){k.hasValue=!0,k.value=A},[A]),x(A),A},useSyncExternalStoreWithSelector_production}var hasRequiredWithSelector;function requireWithSelector(){return hasRequiredWithSelector||(hasRequiredWithSelector=1,withSelector.exports=requireUseSyncExternalStoreWithSelector_production()),withSelector.exports}var withSelectorExports=requireWithSelector(),IS_REACT_19=reactExports.version.startsWith("19"),REACT_ELEMENT_TYPE=Symbol.for(IS_REACT_19?"react.transitional.element":"react.element"),REACT_PORTAL_TYPE=Symbol.for("react.portal"),REACT_FRAGMENT_TYPE=Symbol.for("react.fragment"),REACT_STRICT_MODE_TYPE=Symbol.for("react.strict_mode"),REACT_PROFILER_TYPE=Symbol.for("react.profiler"),REACT_CONSUMER_TYPE=Symbol.for("react.consumer"),REACT_CONTEXT_TYPE=Symbol.for("react.context"),REACT_FORWARD_REF_TYPE=Symbol.for("react.forward_ref"),REACT_SUSPENSE_TYPE=Symbol.for("react.suspense"),REACT_SUSPENSE_LIST_TYPE=Symbol.for("react.suspense_list"),REACT_MEMO_TYPE=Symbol.for("react.memo"),REACT_LAZY_TYPE=Symbol.for("react.lazy"),ForwardRef=REACT_FORWARD_REF_TYPE,Memo=REACT_MEMO_TYPE;function typeOf(t){if(typeof t=="object"&&t!==null){const{$$typeof:i}=t;switch(i){case REACT_ELEMENT_TYPE:switch(t=t.type,t){case REACT_FRAGMENT_TYPE:case REACT_PROFILER_TYPE:case REACT_STRICT_MODE_TYPE:case REACT_SUSPENSE_TYPE:case REACT_SUSPENSE_LIST_TYPE:return t;default:switch(t=t&&t.$$typeof,t){case REACT_CONTEXT_TYPE:case REACT_FORWARD_REF_TYPE:case REACT_LAZY_TYPE:case REACT_MEMO_TYPE:return t;case REACT_CONSUMER_TYPE:return t;default:return i}}case REACT_PORTAL_TYPE:return i}}}function isMemo(t){return typeOf(t)===REACT_MEMO_TYPE}function pureFinalPropsSelectorFactory(t,i,u,c,{areStatesEqual:p,areOwnPropsEqual:g,areStatePropsEqual:v}){let x=!1,E,_,T,w,R;function M(L,U){return E=L,_=U,T=t(E,_),w=i(c,_),R=u(T,w,_),x=!0,R}function k(){return T=t(E,_),i.dependsOnOwnProps&&(w=i(c,_)),R=u(T,w,_),R}function A(){return t.dependsOnOwnProps&&(T=t(E,_)),i.dependsOnOwnProps&&(w=i(c,_)),R=u(T,w,_),R}function D(){const L=t(E,_),U=!v(L,T);return T=L,U&&(R=u(T,w,_)),R}function z(L,U){const V=!g(U,_),Q=!p(L,E,U,_);return E=L,_=U,V&&Q?k():V?A():Q?D():R}return function(U,V){return x?z(U,V):M(U,V)}}function finalPropsSelectorFactory(t,{initMapStateToProps:i,initMapDispatchToProps:u,initMergeProps:c,...p}){const g=i(t,p),v=u(t,p),x=c(t,p);return pureFinalPropsSelectorFactory(g,v,x,t,p)}function bindActionCreators(t,i){const u={};for(const c in t){const p=t[c];typeof p=="function"&&(u[c]=(...g)=>i(p(...g)))}return u}function wrapMapToPropsConstant(t){return function(u){const c=t(u);function p(){return c}return p.dependsOnOwnProps=!1,p}}function getDependsOnOwnProps(t){return t.dependsOnOwnProps?!!t.dependsOnOwnProps:t.length!==1}function wrapMapToPropsFunc(t,i){return function(c,{displayName:p}){const g=function(x,E){return g.dependsOnOwnProps?g.mapToProps(x,E):g.mapToProps(x,void 0)};return g.dependsOnOwnProps=!0,g.mapToProps=function(x,E){g.mapToProps=t,g.dependsOnOwnProps=getDependsOnOwnProps(t);let _=g(x,E);return typeof _=="function"&&(g.mapToProps=_,g.dependsOnOwnProps=getDependsOnOwnProps(_),_=g(x,E)),_},g}}function createInvalidArgFactory(t,i){return(u,c)=>{throw new Error(`Invalid value of type ${typeof t} for ${i} argument when connecting component ${c.wrappedComponentName}.`)}}function mapDispatchToPropsFactory(t){return t&&typeof t=="object"?wrapMapToPropsConstant(i=>bindActionCreators(t,i)):t?typeof t=="function"?wrapMapToPropsFunc(t):createInvalidArgFactory(t,"mapDispatchToProps"):wrapMapToPropsConstant(i=>({dispatch:i}))}function mapStateToPropsFactory(t){return t?typeof t=="function"?wrapMapToPropsFunc(t):createInvalidArgFactory(t,"mapStateToProps"):wrapMapToPropsConstant(()=>({}))}function defaultMergeProps(t,i,u){return{...u,...t,...i}}function wrapMergePropsFunc(t){return function(u,{displayName:c,areMergedPropsEqual:p}){let g=!1,v;return function(E,_,T){const w=t(E,_,T);return g?p(w,v)||(v=w):(g=!0,v=w),v}}}function mergePropsFactory(t){return t?typeof t=="function"?wrapMergePropsFunc(t):createInvalidArgFactory(t,"mergeProps"):()=>defaultMergeProps}function defaultNoopBatch(t){t()}function createListenerCollection(){let t=null,i=null;return{clear(){t=null,i=null},notify(){defaultNoopBatch(()=>{let u=t;for(;u;)u.callback(),u=u.next})},get(){const u=[];let c=t;for(;c;)u.push(c),c=c.next;return u},subscribe(u){let c=!0;const p=i={callback:u,next:null,prev:i};return p.prev?p.prev.next=p:t=p,function(){!c||t===null||(c=!1,p.next?p.next.prev=p.prev:i=p.prev,p.prev?p.prev.next=p.next:t=p.next)}}}}var nullListeners={notify(){},get:()=>[]};function createSubscription(t,i){let u,c=nullListeners,p=0,g=!1;function v(A){T();const D=c.subscribe(A);let z=!1;return()=>{z||(z=!0,D(),w())}}function x(){c.notify()}function E(){k.onStateChange&&k.onStateChange()}function _(){return g}function T(){p++,u||(u=i?i.addNestedSub(E):t.subscribe(E),c=createListenerCollection())}function w(){p--,u&&p===0&&(u(),u=void 0,c.clear(),c=nullListeners)}function R(){g||(g=!0,T())}function M(){g&&(g=!1,w())}const k={addNestedSub:v,notifyNestedSubs:x,handleChangeWrapper:E,isSubscribed:_,trySubscribe:R,tryUnsubscribe:M,getListeners:()=>c};return k}var canUseDOM=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",isDOM=canUseDOM(),isRunningInReactNative=()=>typeof navigator<"u"&&navigator.product==="ReactNative",isReactNative$1=isRunningInReactNative(),getUseIsomorphicLayoutEffect=()=>isDOM||isReactNative$1?reactExports.useLayoutEffect:reactExports.useEffect,useIsomorphicLayoutEffect=getUseIsomorphicLayoutEffect();function is$1(t,i){return t===i?t!==0||i!==0||1/t===1/i:t!==t&&i!==i}function shallowEqual(t,i){if(is$1(t,i))return!0;if(typeof t!="object"||t===null||typeof i!="object"||i===null)return!1;const u=Object.keys(t),c=Object.keys(i);if(u.length!==c.length)return!1;for(let p=0;p<u.length;p++)if(!Object.prototype.hasOwnProperty.call(i,u[p])||!is$1(t[u[p]],i[u[p]]))return!1;return!0}var REACT_STATICS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},KNOWN_STATICS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},FORWARD_REF_STATICS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},MEMO_STATICS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},TYPE_STATICS={[ForwardRef]:FORWARD_REF_STATICS,[Memo]:MEMO_STATICS};function getStatics(t){return isMemo(t)?MEMO_STATICS:TYPE_STATICS[t.$$typeof]||REACT_STATICS}var defineProperty=Object.defineProperty,getOwnPropertyNames=Object.getOwnPropertyNames,getOwnPropertySymbols=Object.getOwnPropertySymbols,getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,getPrototypeOf$2=Object.getPrototypeOf,objectPrototype=Object.prototype;function hoistNonReactStatics(t,i){if(typeof i!="string"){if(objectPrototype){const g=getPrototypeOf$2(i);g&&g!==objectPrototype&&hoistNonReactStatics(t,g)}let u=getOwnPropertyNames(i);getOwnPropertySymbols&&(u=u.concat(getOwnPropertySymbols(i)));const c=getStatics(t),p=getStatics(i);for(let g=0;g<u.length;++g){const v=u[g];if(!KNOWN_STATICS[v]&&!(p&&p[v])&&!(c&&c[v])){const x=getOwnPropertyDescriptor$1(i,v);try{defineProperty(t,v,x)}catch{}}}}return t}var ContextKey=Symbol.for("react-redux-context"),gT=typeof globalThis<"u"?globalThis:{};function getContext(){if(!reactExports.createContext)return{};const t=gT[ContextKey]??=new Map;let i=t.get(reactExports.createContext);return i||(i=reactExports.createContext(null),t.set(reactExports.createContext,i)),i}var ReactReduxContext=getContext(),NO_SUBSCRIPTION_ARRAY=[null,null];function useIsomorphicLayoutEffectWithArgs(t,i,u){useIsomorphicLayoutEffect(()=>t(...i),u)}function captureWrapperProps(t,i,u,c,p,g){t.current=c,u.current=!1,p.current&&(p.current=null,g())}function subscribeUpdates(t,i,u,c,p,g,v,x,E,_,T){if(!t)return()=>{};let w=!1,R=null;const M=()=>{if(w||!x.current)return;const A=i.getState();let D,z;try{D=c(A,p.current)}catch(L){z=L,R=L}z||(R=null),D===g.current?v.current||_():(g.current=D,E.current=D,v.current=!0,T())};return u.onStateChange=M,u.trySubscribe(),M(),()=>{if(w=!0,u.tryUnsubscribe(),u.onStateChange=null,R)throw R}}function strictEqual(t,i){return t===i}function connect$1(t,i,u,{pure:c,areStatesEqual:p=strictEqual,areOwnPropsEqual:g=shallowEqual,areStatePropsEqual:v=shallowEqual,areMergedPropsEqual:x=shallowEqual,forwardRef:E=!1,context:_=ReactReduxContext}={}){const T=_,w=mapStateToPropsFactory(t),R=mapDispatchToPropsFactory(i),M=mergePropsFactory(u),k=!!t;return D=>{const z=D.displayName||D.name||"Component",L=`Connect(${z})`,U={shouldHandleStateChanges:k,displayName:L,wrappedComponentName:z,WrappedComponent:D,initMapStateToProps:w,initMapDispatchToProps:R,initMergeProps:M,areStatesEqual:p,areStatePropsEqual:v,areOwnPropsEqual:g,areMergedPropsEqual:x};function V(F){const[Y,ne,fe]=reactExports.useMemo(()=>{const{reactReduxForwardedRef:je,...vt}=F;return[F.context,je,vt]},[F]),oe=reactExports.useMemo(()=>{let je=T;return Y?.Consumer,je},[Y,T]),le=reactExports.useContext(oe),Se=!!F.store&&!!F.store.getState&&!!F.store.dispatch,ve=!!le&&!!le.store,_e=Se?F.store:le.store,K=ve?le.getServerState:_e.getState,pe=reactExports.useMemo(()=>finalPropsSelectorFactory(_e.dispatch,U),[_e]),[te,Re]=reactExports.useMemo(()=>{if(!k)return NO_SUBSCRIPTION_ARRAY;const je=createSubscription(_e,Se?void 0:le.subscription),vt=je.notifyNestedSubs.bind(je);return[je,vt]},[_e,Se,le]),Ae=reactExports.useMemo(()=>Se?le:{...le,subscription:te},[Se,le,te]),H=reactExports.useRef(void 0),ie=reactExports.useRef(fe),ue=reactExports.useRef(void 0),be=reactExports.useRef(!1),me=reactExports.useRef(!1),Ee=reactExports.useRef(void 0);useIsomorphicLayoutEffect(()=>(me.current=!0,()=>{me.current=!1}),[]);const Te=reactExports.useMemo(()=>()=>ue.current&&fe===ie.current?ue.current:pe(_e.getState(),fe),[_e,fe]),ke=reactExports.useMemo(()=>vt=>te?subscribeUpdates(k,_e,te,pe,ie,H,be,me,ue,Re,vt):()=>{},[te]);useIsomorphicLayoutEffectWithArgs(captureWrapperProps,[ie,H,be,fe,ue,Re]);let Me;try{Me=reactExports.useSyncExternalStore(ke,Te,K?()=>pe(K(),fe):Te)}catch(je){throw Ee.current&&(je.message+=`
|
|
10
|
-
The error may be correlated with this previous error:
|
|
11
|
-
${Ee.current.stack}
|
|
12
|
-
|
|
13
|
-
`),je}useIsomorphicLayoutEffect(()=>{Ee.current=void 0,ue.current=void 0,H.current=Me});const Ve=reactExports.useMemo(()=>reactExports.createElement(D,{...Me,ref:ne}),[ne,D,Me]);return reactExports.useMemo(()=>k?reactExports.createElement(oe.Provider,{value:Ae},Ve):Ve,[oe,Ve,Ae])}const Z=reactExports.memo(V);if(Z.WrappedComponent=D,Z.displayName=V.displayName=L,E){const Y=reactExports.forwardRef(function(fe,oe){return reactExports.createElement(Z,{...fe,reactReduxForwardedRef:oe})});return Y.displayName=L,Y.WrappedComponent=D,hoistNonReactStatics(Y,D)}return hoistNonReactStatics(Z,D)}}var connect_default=connect$1;function Provider(t){const{children:i,context:u,serverState:c,store:p}=t,g=reactExports.useMemo(()=>{const E=createSubscription(p);return{store:p,subscription:E,getServerState:c?()=>c:void 0}},[p,c]),v=reactExports.useMemo(()=>p.getState(),[p]);useIsomorphicLayoutEffect(()=>{const{subscription:E}=g;return E.onStateChange=E.notifyNestedSubs,E.trySubscribe(),v!==p.getState()&&E.notifyNestedSubs(),()=>{E.tryUnsubscribe(),E.onStateChange=void 0}},[g,v]);const x=u||ReactReduxContext;return reactExports.createElement(x.Provider,{value:g},i)}var Provider_default=Provider;function createReduxContextHook(t=ReactReduxContext){return function(){return reactExports.useContext(t)}}var useReduxContext=createReduxContextHook();function createStoreHook(t=ReactReduxContext){const i=t===ReactReduxContext?useReduxContext:createReduxContextHook(t),u=()=>{const{store:c}=i();return c};return Object.assign(u,{withTypes:()=>u}),u}var useStore=createStoreHook();function createDispatchHook(t=ReactReduxContext){const i=t===ReactReduxContext?useStore:createStoreHook(t),u=()=>i().dispatch;return Object.assign(u,{withTypes:()=>u}),u}var useDispatch=createDispatchHook(),refEquality=(t,i)=>t===i;function createSelectorHook(t=ReactReduxContext){const i=t===ReactReduxContext?useReduxContext:createReduxContextHook(t),u=(c,p={})=>{const{equalityFn:g=refEquality}=typeof p=="function"?{equalityFn:p}:p,v=i(),{store:x,subscription:E,getServerState:_}=v;reactExports.useRef(!0);const T=reactExports.useCallback({[c.name](R){return c(R)}}[c.name],[c]),w=withSelectorExports.useSyncExternalStoreWithSelector(E.addNestedSub,x.getState,_||x.getState,T,g);return reactExports.useDebugValue(w),w};return Object.assign(u,{withTypes:()=>u}),u}var useSelector=createSelectorHook();function r(t){var i,u,c="";if(typeof t=="string"||typeof t=="number")c+=t;else if(typeof t=="object")if(Array.isArray(t)){var p=t.length;for(i=0;i<p;i++)t[i]&&(u=r(t[i]))&&(c&&(c+=" "),c+=u)}else for(u in t)t[u]&&(c&&(c+=" "),c+=u);return c}function clsx(){for(var t,i,u=0,c="",p=arguments.length;u<p;u++)(t=arguments[u])&&(i=r(t))&&(c&&(c+=" "),c+=i);return c}const app="_app_1rj0t_1",styles$o={app},TYPING_ON="core.typing.on",TYPING_OFF="core.typing.off",MESSAGE_FROM_GUEST="core.message.from.guest",MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST="core.message.without.analysis.from.guest",MESSAGE_TO_GUEST="core.message.to.guest",NLU_REQUEST_EVENT="core.nlu.request.event",EVENT_TO_GUEST="core.event.to.guest",RESTART_CHAT_REQUEST="core.chat.restart.request",TRANSCRIPT_MAIL_REQUEST="core.transcript.mail.request",TRANSCRIPT_ITEM_GUEST_REACTION="core.transcript.item.guest.reaction",CONVERSATION_RATING_FROM_GUEST="core.conversation.rating.from.guest",DRAWER_OPEN="core.drawer.open",DRAWER_CLOSE="core.drawer.close",GUEST_LOCALE_CHANGED="core.guest.locale.changed";var ButtonTypeEnum;(function(t){t.WEB_URL="web_url",t.POSTBACK="postback"})(ButtonTypeEnum||(ButtonTypeEnum={}));var SatisfactionEnum;(function(t){t.GOOD="GOOD",t.BAD="BAD"})(SatisfactionEnum||(SatisfactionEnum={}));let Message$2=class{type;sender;sources;quickReplies;constructor(i,u,c=[],p=[]){this.type=i,this.sender=u,this.sources=c,this.quickReplies=p}addQuickReply(i,u){this.quickReplies.push({label:i,payload:u})}},TextMessage$1=class extends Message$2{text;constructor(i,u,c=[],p=[]){super(MessageTypeEnum.TEXT,u,c,p),this.text=i}};var MessageTypeEnum;(function(t){t.TEXT="TEXT",t.DETAIL="DETAIL",t.MARKDOWN="MARKDOWN",t.VIDEO="VIDEO",t.IMAGE="IMAGE",t.FILE="FILE",t.AUDIO="AUDIO"})(MessageTypeEnum||(MessageTypeEnum={}));class User{type;id;name;avatar;constructor(i,u,c,p){this.type=i,this.id=u,this.name=c,this.avatar=p}}class BotUser extends User{constructor(){super(UserType$1.BOT,null,"Chatbot","bot.svg")}}class GuestUser extends User{constructor(){super(UserType$1.GUEST,null,"Guest","visitor.svg")}}var UserType$1;(function(t){t.GUEST="GUEST",t.BOT="BOT",t.PERSON="PERSON"})(UserType$1||(UserType$1={}));const receiveTextMessageFromGuest=t=>{const i=new TextMessage$1(t,new GuestUser);return{type:MESSAGE_FROM_GUEST,message:i}},receiveTextMessageWithoutAnalysisFromGuest=(t,i={})=>{const u=new TextMessage$1(t,new GuestUser);return{type:MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST,message:u,payload:i}},requestNLUEvent$1=t=>({type:NLU_REQUEST_EVENT,event:t}),transcriptItemGuestReaction=(t,i,u=null,c=null)=>({type:TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:t,reaction:i,category:u,comment:c}}),handleQuickReplyClick=t=>i=>(t.payload.type!==MESSAGE_FROM_GUEST&&i(receiveTextMessageWithoutAnalysisFromGuest(t.label,t.payload)),i(t.payload)),sendMessageFromUser=t=>(i,u)=>{const{quickReplies:c}=u().chat,p=c.find(g=>t.toLocaleLowerCase().indexOf(g.label.toLocaleLowerCase())>-1);return i(p?handleQuickReplyClick({...p,label:t}):JSON.parse(JSON.stringify(receiveTextMessageFromGuest(t))))},MESSAGE_TO_PARENT_PAGE="MESSAGE_TO_PARENT_PAGE",RESTORE_PREVIOUS_CHAT_MESSAGES="RESTORE_PREVIOUS_CHAT_MESSAGES",AUDIO_MESSAGE_FROM_USER="AUDIO_MESSAGE_FROM_USER",RECEIVE_SPEECH_TRANSCRIPTION="RECEIVE_SPEECH_TRANSCRIPTION",ENABLE_CONVERSATION_RATING="ENABLE_CONVERSATION_RATING",LOAD_SOURCE_INFOS_RESPONSE="LOAD_SOURCE_INFOS_RESPONSE",LOAD_SOURCE_INFOS_ERROR="LOAD_SOURCE_INFOS_ERROR",LOAD_SOURCE_INFOS_REQUEST="LOAD_SOURCE_INFOS_REQUEST",CLOSE_SOURCE_INFOS="CLOSE_SOURCE_INFOS",GET_STARTED="webclient.get.started",EXPAND_WINDOW="webclient.window.expand",CLOSE_WINDOW="webclient.window.close",DOWNLOAD_TRANSCRIPT_PDF="webclient.transcript.pdf.download",INTERNAL_ACTIONS$1=[MESSAGE_TO_PARENT_PAGE,RESTORE_PREVIOUS_CHAT_MESSAGES,AUDIO_MESSAGE_FROM_USER,RECEIVE_SPEECH_TRANSCRIPTION,ENABLE_CONVERSATION_RATING,LOAD_SOURCE_INFOS_REQUEST,CLOSE_SOURCE_INFOS],sendAudioMessageFromUser=t=>({type:AUDIO_MESSAGE_FROM_USER,buffer:t}),receiveSpeechTranscription=t=>({type:RECEIVE_SPEECH_TRANSCRIPTION,transcription:t}),exportTranscript=t=>({type:TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:t}}}),downloadTranscriptPdf=()=>({type:DOWNLOAD_TRANSCRIPT_PDF}),enableConversationRating=({rating:t})=>({type:ENABLE_CONVERSATION_RATING,payload:{rating:t}}),handleRatingFromUser=(t,i)=>({type:CONVERSATION_RATING_FROM_GUEST,payload:{value:t,feedback:i}}),requestNLUEvent=t=>requestNLUEvent$1(t),restorePreviousChatMessages=t=>({type:RESTORE_PREVIOUS_CHAT_MESSAGES,messages:t}),handleButtonClick=t=>{switch(t.type){case ButtonTypeEnum.WEB_URL:return notifyParentToChangePath(t.url);case ButtonTypeEnum.POSTBACK:return t.payload;default:throw new Error(`unknown button type ${t.type}`)}},handleLinkClick=t=>notifyParentToChangePath(t),notifyParentToChangePath=t=>({type:MESSAGE_TO_PARENT_PAGE,message:{type:"webclient.change.url",url:t}});function assign(t){for(var i=1;i<arguments.length;i++){var u=arguments[i];for(var c in u)t[c]=u[c]}return t}var defaultConverter={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function init(t,i){function u(p,g,v){if(!(typeof document>"u")){v=assign({},i,v),typeof v.expires=="number"&&(v.expires=new Date(Date.now()+v.expires*864e5)),v.expires&&(v.expires=v.expires.toUTCString()),p=encodeURIComponent(p).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var x="";for(var E in v)v[E]&&(x+="; "+E,v[E]!==!0&&(x+="="+v[E].split(";")[0]));return document.cookie=p+"="+t.write(g,p)+x}}function c(p){if(!(typeof document>"u"||arguments.length&&!p)){for(var g=document.cookie?document.cookie.split("; "):[],v={},x=0;x<g.length;x++){var E=g[x].split("="),_=E.slice(1).join("=");try{var T=decodeURIComponent(E[0]);if(v[T]=t.read(_,T),p===T)break}catch{}}return p?v[p]:v}}return Object.create({set:u,get:c,remove:function(p,g){u(p,"",assign({},g,{expires:-1}))},withAttributes:function(p){return init(this.converter,assign({},this.attributes,p))},withConverter:function(p){return init(assign({},this.converter,p),this.attributes)}},{attributes:{value:Object.freeze(i)},converter:{value:Object.freeze(t)}})}var api=init(defaultConverter,{path:"/"});const byteToHex=[];for(let t=0;t<256;++t)byteToHex.push((t+256).toString(16).slice(1));function unsafeStringify(t,i=0){return(byteToHex[t[i+0]]+byteToHex[t[i+1]]+byteToHex[t[i+2]]+byteToHex[t[i+3]]+"-"+byteToHex[t[i+4]]+byteToHex[t[i+5]]+"-"+byteToHex[t[i+6]]+byteToHex[t[i+7]]+"-"+byteToHex[t[i+8]]+byteToHex[t[i+9]]+"-"+byteToHex[t[i+10]]+byteToHex[t[i+11]]+byteToHex[t[i+12]]+byteToHex[t[i+13]]+byteToHex[t[i+14]]+byteToHex[t[i+15]]).toLowerCase()}let getRandomValues;const rnds8=new Uint8Array(16);function rng(){if(!getRandomValues){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");getRandomValues=crypto.getRandomValues.bind(crypto)}return getRandomValues(rnds8)}const randomUUID=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),native={randomUUID};function _v4(t,i,u){t=t||{};const c=t.random??t.rng?.()??rng();if(c.length<16)throw new Error("Random bytes length must be >= 16");return c[6]=c[6]&15|64,c[8]=c[8]&63|128,unsafeStringify(c)}function v4(t,i,u){return native.randomUUID&&!t?native.randomUUID():_v4(t)}const getClientName=()=>extractClientNameFromPathname(window.location.pathname),extractClientNameFromPathname=t=>{const i=t.split("/"),u=t.endsWith("/");return i[i.length-(u?2:1)]};function formatProdErrorMessage$1(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var $$observable=typeof Symbol=="function"&&Symbol.observable||"@@observable",symbol_observable_default=$$observable,randomString$1=()=>Math.random().toString(36).substring(7).split("").join("."),ActionTypes={INIT:`@@redux/INIT${randomString$1()}`,REPLACE:`@@redux/REPLACE${randomString$1()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${randomString$1()}`},actionTypes_default=ActionTypes;function isPlainObject$1(t){if(typeof t!="object"||t===null)return!1;let i=t;for(;Object.getPrototypeOf(i)!==null;)i=Object.getPrototypeOf(i);return Object.getPrototypeOf(t)===i||Object.getPrototypeOf(t)===null}function createStore(t,i,u){if(typeof t!="function")throw new Error(formatProdErrorMessage$1(2));if(typeof i=="function"&&typeof u=="function"||typeof u=="function"&&typeof arguments[3]=="function")throw new Error(formatProdErrorMessage$1(0));if(typeof i=="function"&&typeof u>"u"&&(u=i,i=void 0),typeof u<"u"){if(typeof u!="function")throw new Error(formatProdErrorMessage$1(1));return u(createStore)(t,i)}let c=t,p=i,g=new Map,v=g,x=0,E=!1;function _(){v===g&&(v=new Map,g.forEach((D,z)=>{v.set(z,D)}))}function T(){if(E)throw new Error(formatProdErrorMessage$1(3));return p}function w(D){if(typeof D!="function")throw new Error(formatProdErrorMessage$1(4));if(E)throw new Error(formatProdErrorMessage$1(5));let z=!0;_();const L=x++;return v.set(L,D),function(){if(z){if(E)throw new Error(formatProdErrorMessage$1(6));z=!1,_(),v.delete(L),g=null}}}function R(D){if(!isPlainObject$1(D))throw new Error(formatProdErrorMessage$1(7));if(typeof D.type>"u")throw new Error(formatProdErrorMessage$1(8));if(typeof D.type!="string")throw new Error(formatProdErrorMessage$1(17));if(E)throw new Error(formatProdErrorMessage$1(9));try{E=!0,p=c(p,D)}finally{E=!1}return(g=v).forEach(L=>{L()}),D}function M(D){if(typeof D!="function")throw new Error(formatProdErrorMessage$1(10));c=D,R({type:actionTypes_default.REPLACE})}function k(){const D=w;return{subscribe(z){if(typeof z!="object"||z===null)throw new Error(formatProdErrorMessage$1(11));function L(){const V=z;V.next&&V.next(T())}return L(),{unsubscribe:D(L)}},[symbol_observable_default](){return this}}}return R({type:actionTypes_default.INIT}),{dispatch:R,subscribe:w,getState:T,replaceReducer:M,[symbol_observable_default]:k}}function assertReducerShape(t){Object.keys(t).forEach(i=>{const u=t[i];if(typeof u(void 0,{type:actionTypes_default.INIT})>"u")throw new Error(formatProdErrorMessage$1(12));if(typeof u(void 0,{type:actionTypes_default.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(formatProdErrorMessage$1(13))})}function combineReducers(t){const i=Object.keys(t),u={};for(let g=0;g<i.length;g++){const v=i[g];typeof t[v]=="function"&&(u[v]=t[v])}const c=Object.keys(u);let p;try{assertReducerShape(u)}catch(g){p=g}return function(v={},x){if(p)throw p;let E=!1;const _={};for(let T=0;T<c.length;T++){const w=c[T],R=u[w],M=v[w],k=R(M,x);if(typeof k>"u")throw x&&x.type,new Error(formatProdErrorMessage$1(14));_[w]=k,E=E||k!==M}return E=E||c.length!==Object.keys(v).length,E?_:v}}function compose(...t){return t.length===0?i=>i:t.length===1?t[0]:t.reduce((i,u)=>(...c)=>i(u(...c)))}function applyMiddleware(...t){return i=>(u,c)=>{const p=i(u,c);let g=()=>{throw new Error(formatProdErrorMessage$1(15))};const v={getState:p.getState,dispatch:(E,..._)=>g(E,..._)},x=t.map(E=>E(v));return g=compose(...x)(p.dispatch),{...p,dispatch:g}}}function isAction(t){return isPlainObject$1(t)&&"type"in t&&typeof t.type=="string"}var NOTHING=Symbol.for("immer-nothing"),DRAFTABLE=Symbol.for("immer-draftable"),DRAFT_STATE=Symbol.for("immer-state");function die(t,...i){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var O=Object,getPrototypeOf$1=O.getPrototypeOf,CONSTRUCTOR="constructor",PROTOTYPE="prototype",CONFIGURABLE="configurable",ENUMERABLE="enumerable",WRITABLE="writable",VALUE="value",isDraft=t=>!!t&&!!t[DRAFT_STATE];function isDraftable(t){return t?isPlainObject(t)||isArray(t)||!!t[DRAFTABLE]||!!t[CONSTRUCTOR]?.[DRAFTABLE]||isMap(t)||isSet(t):!1}var objectCtorString=O[PROTOTYPE][CONSTRUCTOR].toString(),cachedCtorStrings=new WeakMap;function isPlainObject(t){if(!t||!isObjectish(t))return!1;const i=getPrototypeOf$1(t);if(i===null||i===O[PROTOTYPE])return!0;const u=O.hasOwnProperty.call(i,CONSTRUCTOR)&&i[CONSTRUCTOR];if(u===Object)return!0;if(!isFunction(u))return!1;let c=cachedCtorStrings.get(u);return c===void 0&&(c=Function.toString.call(u),cachedCtorStrings.set(u,c)),c===objectCtorString}function each(t,i,u=!0){getArchtype(t)===0?(u?Reflect.ownKeys(t):O.keys(t)).forEach(p=>{i(p,t[p],t)}):t.forEach((c,p)=>i(p,c,t))}function getArchtype(t){const i=t[DRAFT_STATE];return i?i.type_:isArray(t)?1:isMap(t)?2:isSet(t)?3:0}var has=(t,i,u=getArchtype(t))=>u===2?t.has(i):O[PROTOTYPE].hasOwnProperty.call(t,i),get=(t,i,u=getArchtype(t))=>u===2?t.get(i):t[i],set=(t,i,u,c=getArchtype(t))=>{c===2?t.set(i,u):c===3?t.add(u):t[i]=u};function is(t,i){return t===i?t!==0||1/t===1/i:t!==t&&i!==i}var isArray=Array.isArray,isMap=t=>t instanceof Map,isSet=t=>t instanceof Set,isObjectish=t=>typeof t=="object",isFunction=t=>typeof t=="function",isBoolean$1=t=>typeof t=="boolean";function isArrayIndex(t){const i=+t;return Number.isInteger(i)&&String(i)===t}var latest=t=>t.copy_||t.base_,getFinalValue=t=>t.modified_?t.copy_:t.base_;function shallowCopy(t,i){if(isMap(t))return new Map(t);if(isSet(t))return new Set(t);if(isArray(t))return Array[PROTOTYPE].slice.call(t);const u=isPlainObject(t);if(i===!0||i==="class_only"&&!u){const c=O.getOwnPropertyDescriptors(t);delete c[DRAFT_STATE];let p=Reflect.ownKeys(c);for(let g=0;g<p.length;g++){const v=p[g],x=c[v];x[WRITABLE]===!1&&(x[WRITABLE]=!0,x[CONFIGURABLE]=!0),(x.get||x.set)&&(c[v]={[CONFIGURABLE]:!0,[WRITABLE]:!0,[ENUMERABLE]:x[ENUMERABLE],[VALUE]:t[v]})}return O.create(getPrototypeOf$1(t),c)}else{const c=getPrototypeOf$1(t);if(c!==null&&u)return{...t};const p=O.create(c);return O.assign(p,t)}}function freeze$1(t,i=!1){return isFrozen$1(t)||isDraft(t)||!isDraftable(t)||(getArchtype(t)>1&&O.defineProperties(t,{set:dontMutateMethodOverride,add:dontMutateMethodOverride,clear:dontMutateMethodOverride,delete:dontMutateMethodOverride}),O.freeze(t),i&&each(t,(u,c)=>{freeze$1(c,!0)},!1)),t}function dontMutateFrozenCollections(){die(2)}var dontMutateMethodOverride={[VALUE]:dontMutateFrozenCollections};function isFrozen$1(t){return t===null||!isObjectish(t)?!0:O.isFrozen(t)}var PluginMapSet="MapSet",PluginPatches="Patches",PluginArrayMethods="ArrayMethods",plugins={};function getPlugin(t){const i=plugins[t];return i||die(0,t),i}var isPluginLoaded=t=>!!plugins[t],currentScope,getCurrentScope=()=>currentScope,createScope=(t,i)=>({drafts_:[],parent_:t,immer_:i,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:isPluginLoaded(PluginMapSet)?getPlugin(PluginMapSet):void 0,arrayMethodsPlugin_:isPluginLoaded(PluginArrayMethods)?getPlugin(PluginArrayMethods):void 0});function usePatchesInScope(t,i){i&&(t.patchPlugin_=getPlugin(PluginPatches),t.patches_=[],t.inversePatches_=[],t.patchListener_=i)}function revokeScope(t){leaveScope(t),t.drafts_.forEach(revokeDraft),t.drafts_=null}function leaveScope(t){t===currentScope&&(currentScope=t.parent_)}var enterScope=t=>currentScope=createScope(currentScope,t);function revokeDraft(t){const i=t[DRAFT_STATE];i.type_===0||i.type_===1?i.revoke_():i.revoked_=!0}function processResult(t,i){i.unfinalizedDrafts_=i.drafts_.length;const u=i.drafts_[0];if(t!==void 0&&t!==u){u[DRAFT_STATE].modified_&&(revokeScope(i),die(4)),isDraftable(t)&&(t=finalize(i,t));const{patchPlugin_:p}=i;p&&p.generateReplacementPatches_(u[DRAFT_STATE].base_,t,i)}else t=finalize(i,u);return maybeFreeze(i,t,!0),revokeScope(i),i.patches_&&i.patchListener_(i.patches_,i.inversePatches_),t!==NOTHING?t:void 0}function finalize(t,i){if(isFrozen$1(i))return i;const u=i[DRAFT_STATE];if(!u)return handleValue(i,t.handledSet_,t);if(!isSameScope(u,t))return i;if(!u.modified_)return u.base_;if(!u.finalized_){const{callbacks_:c}=u;if(c)for(;c.length>0;)c.pop()(t);generatePatchesAndFinalize(u,t)}return u.copy_}function maybeFreeze(t,i,u=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&freeze$1(i,u)}function markStateFinalized(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var isSameScope=(t,i)=>t.scope_===i,EMPTY_LOCATIONS_RESULT=[];function updateDraftInParent(t,i,u,c){const p=latest(t),g=t.type_;if(c!==void 0&&get(p,c,g)===i){set(p,c,u,g);return}if(!t.draftLocations_){const x=t.draftLocations_=new Map;each(p,(E,_)=>{if(isDraft(_)){const T=x.get(_)||[];T.push(E),x.set(_,T)}})}const v=t.draftLocations_.get(i)??EMPTY_LOCATIONS_RESULT;for(const x of v)set(p,x,u,g)}function registerChildFinalizationCallback(t,i,u){t.callbacks_.push(function(p){const g=i;if(!g||!isSameScope(g,p))return;p.mapSetPlugin_?.fixSetContents(g);const v=getFinalValue(g);updateDraftInParent(t,g.draft_??g,v,u),generatePatchesAndFinalize(g,p)})}function generatePatchesAndFinalize(t,i){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){const{patchPlugin_:c}=i;if(c){const p=c.getPath(t);p&&c.generatePatches_(t,p,i)}markStateFinalized(t)}}function handleCrossReference(t,i,u){const{scope_:c}=t;if(isDraft(u)){const p=u[DRAFT_STATE];isSameScope(p,c)&&p.callbacks_.push(function(){prepareCopy(t);const v=getFinalValue(p);updateDraftInParent(t,u,v,i)})}else isDraftable(u)&&t.callbacks_.push(function(){const g=latest(t);t.type_===3?g.has(u)&&handleValue(u,c.handledSet_,c):get(g,i,t.type_)===u&&c.drafts_.length>1&&(t.assigned_.get(i)??!1)===!0&&t.copy_&&handleValue(get(t.copy_,i,t.type_),c.handledSet_,c)})}function handleValue(t,i,u){return!u.immer_.autoFreeze_&&u.unfinalizedDrafts_<1||isDraft(t)||i.has(t)||!isDraftable(t)||isFrozen$1(t)||(i.add(t),each(t,(c,p)=>{if(isDraft(p)){const g=p[DRAFT_STATE];if(isSameScope(g,u)){const v=getFinalValue(g);set(t,c,v,t.type_),markStateFinalized(g)}}else isDraftable(p)&&handleValue(p,i,u)})),t}function createProxyProxy(t,i){const u=isArray(t),c={type_:u?1:0,scope_:i?i.scope_:getCurrentScope(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:i,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let p=c,g=objectTraps;u&&(p=[c],g=arrayTraps);const{revoke:v,proxy:x}=Proxy.revocable(p,g);return c.draft_=x,c.revoke_=v,[x,c]}var objectTraps={get(t,i){if(i===DRAFT_STATE)return t;let u=t.scope_.arrayMethodsPlugin_;const c=t.type_===1&&typeof i=="string";if(c&&u?.isArrayOperationMethod(i))return u.createMethodInterceptor(t,i);const p=latest(t);if(!has(p,i,t.type_))return readPropFromProto(t,p,i);const g=p[i];if(t.finalized_||!isDraftable(g)||c&&t.operationMethod&&u?.isMutatingArrayMethod(t.operationMethod)&&isArrayIndex(i))return g;if(g===peek(t.base_,i)){prepareCopy(t);const v=t.type_===1?+i:i,x=createProxy(t.scope_,g,t,v);return t.copy_[v]=x}return g},has(t,i){return i in latest(t)},ownKeys(t){return Reflect.ownKeys(latest(t))},set(t,i,u){const c=getDescriptorFromProto(latest(t),i);if(c?.set)return c.set.call(t.draft_,u),!0;if(!t.modified_){const p=peek(latest(t),i),g=p?.[DRAFT_STATE];if(g&&g.base_===u)return t.copy_[i]=u,t.assigned_.set(i,!1),!0;if(is(u,p)&&(u!==void 0||has(t.base_,i,t.type_)))return!0;prepareCopy(t),markChanged(t)}return t.copy_[i]===u&&(u!==void 0||i in t.copy_)||Number.isNaN(u)&&Number.isNaN(t.copy_[i])||(t.copy_[i]=u,t.assigned_.set(i,!0),handleCrossReference(t,i,u)),!0},deleteProperty(t,i){return prepareCopy(t),peek(t.base_,i)!==void 0||i in t.base_?(t.assigned_.set(i,!1),markChanged(t)):t.assigned_.delete(i),t.copy_&&delete t.copy_[i],!0},getOwnPropertyDescriptor(t,i){const u=latest(t),c=Reflect.getOwnPropertyDescriptor(u,i);return c&&{[WRITABLE]:!0,[CONFIGURABLE]:t.type_!==1||i!=="length",[ENUMERABLE]:c[ENUMERABLE],[VALUE]:u[i]}},defineProperty(){die(11)},getPrototypeOf(t){return getPrototypeOf$1(t.base_)},setPrototypeOf(){die(12)}},arrayTraps={};for(let t in objectTraps){let i=objectTraps[t];arrayTraps[t]=function(){const u=arguments;return u[0]=u[0][0],i.apply(this,u)}}arrayTraps.deleteProperty=function(t,i){return arrayTraps.set.call(this,t,i,void 0)};arrayTraps.set=function(t,i,u){return objectTraps.set.call(this,t[0],i,u,t[0])};function peek(t,i){const u=t[DRAFT_STATE];return(u?latest(u):t)[i]}function readPropFromProto(t,i,u){const c=getDescriptorFromProto(i,u);return c?VALUE in c?c[VALUE]:c.get?.call(t.draft_):void 0}function getDescriptorFromProto(t,i){if(!(i in t))return;let u=getPrototypeOf$1(t);for(;u;){const c=Object.getOwnPropertyDescriptor(u,i);if(c)return c;u=getPrototypeOf$1(u)}}function markChanged(t){t.modified_||(t.modified_=!0,t.parent_&&markChanged(t.parent_))}function prepareCopy(t){t.copy_||(t.assigned_=new Map,t.copy_=shallowCopy(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Immer2=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(i,u,c)=>{if(isFunction(i)&&!isFunction(u)){const g=u;u=i;const v=this;return function(E=g,..._){return v.produce(E,T=>u.call(this,T,..._))}}isFunction(u)||die(6),c!==void 0&&!isFunction(c)&&die(7);let p;if(isDraftable(i)){const g=enterScope(this),v=createProxy(g,i,void 0);let x=!0;try{p=u(v),x=!1}finally{x?revokeScope(g):leaveScope(g)}return usePatchesInScope(g,c),processResult(p,g)}else if(!i||!isObjectish(i)){if(p=u(i),p===void 0&&(p=i),p===NOTHING&&(p=void 0),this.autoFreeze_&&freeze$1(p,!0),c){const g=[],v=[];getPlugin(PluginPatches).generateReplacementPatches_(i,p,{patches_:g,inversePatches_:v}),c(g,v)}return p}else die(1,i)},this.produceWithPatches=(i,u)=>{if(isFunction(i))return(v,...x)=>this.produceWithPatches(v,E=>i(E,...x));let c,p;return[this.produce(i,u,(v,x)=>{c=v,p=x}),c,p]},isBoolean$1(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),isBoolean$1(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),isBoolean$1(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){isDraftable(t)||die(8),isDraft(t)&&(t=current(t));const i=enterScope(this),u=createProxy(i,t,void 0);return u[DRAFT_STATE].isManual_=!0,leaveScope(i),u}finishDraft(t,i){const u=t&&t[DRAFT_STATE];(!u||!u.isManual_)&&die(9);const{scope_:c}=u;return usePatchesInScope(c,i),processResult(void 0,c)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,i){let u;for(u=i.length-1;u>=0;u--){const p=i[u];if(p.path.length===0&&p.op==="replace"){t=p.value;break}}u>-1&&(i=i.slice(u+1));const c=getPlugin(PluginPatches).applyPatches_;return isDraft(t)?c(t,i):this.produce(t,p=>c(p,i))}};function createProxy(t,i,u,c){const[p,g]=isMap(i)?getPlugin(PluginMapSet).proxyMap_(i,u):isSet(i)?getPlugin(PluginMapSet).proxySet_(i,u):createProxyProxy(i,u);return(u?.scope_??getCurrentScope()).drafts_.push(p),g.callbacks_=u?.callbacks_??[],g.key_=c,u&&c!==void 0?registerChildFinalizationCallback(u,g,c):g.callbacks_.push(function(E){E.mapSetPlugin_?.fixSetContents(g);const{patchPlugin_:_}=E;g.modified_&&_&&_.generatePatches_(g,[],E)}),p}function current(t){return isDraft(t)||die(10,t),currentImpl(t)}function currentImpl(t){if(!isDraftable(t)||isFrozen$1(t))return t;const i=t[DRAFT_STATE];let u,c=!0;if(i){if(!i.modified_)return i.base_;i.finalized_=!0,u=shallowCopy(t,i.scope_.immer_.useStrictShallowCopy_),c=i.scope_.immer_.shouldUseStrictIteration()}else u=shallowCopy(t,!0);return each(u,(p,g)=>{set(u,p,currentImpl(g))},c),i&&(i.finalized_=!1),u}var immer=new Immer2,produce=immer.produce;function createThunkMiddleware(t){return({dispatch:u,getState:c})=>p=>g=>typeof g=="function"?g(u,c,t):p(g)}var thunk=createThunkMiddleware(),withExtraArgument=createThunkMiddleware,composeWithDevTools=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?compose:compose.apply(null,arguments)};function createAction(t,i){function u(...c){if(i){let p=i(...c);if(!p)throw new Error(formatProdErrorMessage(0));return{type:t,payload:p.payload,..."meta"in p&&{meta:p.meta},..."error"in p&&{error:p.error}}}return{type:t,payload:c[0]}}return u.toString=()=>`${t}`,u.type=t,u.match=c=>isAction(c)&&c.type===t,u}var Tuple=class Xr extends Array{constructor(...i){super(...i),Object.setPrototypeOf(this,Xr.prototype)}static get[Symbol.species](){return Xr}concat(...i){return super.concat.apply(this,i)}prepend(...i){return i.length===1&&Array.isArray(i[0])?new Xr(...i[0].concat(this)):new Xr(...i.concat(this))}};function freezeDraftable(t){return isDraftable(t)?produce(t,()=>{}):t}function getOrInsertComputed(t,i,u){return t.has(i)?t.get(i):t.set(i,u(i)).get(i)}function isBoolean(t){return typeof t=="boolean"}var buildGetDefaultMiddleware=()=>function(i){const{thunk:u=!0,immutableCheck:c=!0,serializableCheck:p=!0,actionCreatorCheck:g=!0}=i??{};let v=new Tuple;return u&&(isBoolean(u)?v.push(thunk):v.push(withExtraArgument(u.extraArgument))),v},SHOULD_AUTOBATCH="RTK_autoBatch",createQueueWithTimer=t=>i=>{setTimeout(i,t)},autoBatchEnhancer=(t={type:"raf"})=>i=>(...u)=>{const c=i(...u);let p=!0,g=!1,v=!1;const x=new Set,E=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:createQueueWithTimer(10):t.type==="callback"?t.queueNotification:createQueueWithTimer(t.timeout),_=()=>{v=!1,g&&(g=!1,x.forEach(T=>T()))};return Object.assign({},c,{subscribe(T){const w=()=>p&&T(),R=c.subscribe(w);return x.add(T),()=>{R(),x.delete(T)}},dispatch(T){try{return p=!T?.meta?.[SHOULD_AUTOBATCH],g=!p,g&&(v||(v=!0,E(_))),c.dispatch(T)}finally{p=!0}}})},buildGetDefaultEnhancers=t=>function(u){const{autoBatch:c=!0}=u??{};let p=new Tuple(t);return c&&p.push(autoBatchEnhancer(typeof c=="object"?c:void 0)),p};function configureStore(t){const i=buildGetDefaultMiddleware(),{reducer:u=void 0,middleware:c,devTools:p=!0,preloadedState:g=void 0,enhancers:v=void 0}=t||{};let x;if(typeof u=="function")x=u;else if(isPlainObject$1(u))x=combineReducers(u);else throw new Error(formatProdErrorMessage(1));let E;typeof c=="function"?E=c(i):E=i();let _=compose;p&&(_=composeWithDevTools({trace:!1,...typeof p=="object"&&p}));const T=applyMiddleware(...E),w=buildGetDefaultEnhancers(T);let R=typeof v=="function"?v(w):w();const M=_(...R);return createStore(x,g,M)}function executeReducerBuilderCallback(t){const i={},u=[];let c;const p={addCase(g,v){const x=typeof g=="string"?g:g.type;if(!x)throw new Error(formatProdErrorMessage(28));if(x in i)throw new Error(formatProdErrorMessage(29));return i[x]=v,p},addAsyncThunk(g,v){return v.pending&&(i[g.pending.type]=v.pending),v.rejected&&(i[g.rejected.type]=v.rejected),v.fulfilled&&(i[g.fulfilled.type]=v.fulfilled),v.settled&&u.push({matcher:g.settled,reducer:v.settled}),p},addMatcher(g,v){return u.push({matcher:g,reducer:v}),p},addDefaultCase(g){return c=g,p}};return t(p),[i,u,c]}function isStateFunction(t){return typeof t=="function"}function createReducer(t,i){let[u,c,p]=executeReducerBuilderCallback(i),g;if(isStateFunction(t))g=()=>freezeDraftable(t());else{const x=freezeDraftable(t);g=()=>x}function v(x=g(),E){let _=[u[E.type],...c.filter(({matcher:T})=>T(E)).map(({reducer:T})=>T)];return _.filter(T=>!!T).length===0&&(_=[p]),_.reduce((T,w)=>{if(w)if(isDraft(T)){const M=w(T,E);return M===void 0?T:M}else{if(isDraftable(T))return produce(T,R=>w(R,E));{const R=w(T,E);if(R===void 0){if(T===null)return T;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}}return T},x)}return v.getInitialState=g,v}var asyncThunkSymbol=Symbol.for("rtk-slice-createasyncthunk");function getType(t,i){return`${t}/${i}`}function buildCreateSlice({creators:t}={}){const i=t?.asyncThunk?.[asyncThunkSymbol];return function(c){const{name:p,reducerPath:g=p}=c;if(!p)throw new Error(formatProdErrorMessage(11));const v=(typeof c.reducers=="function"?c.reducers(buildReducerCreators()):c.reducers)||{},x=Object.keys(v),E={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},_={addCase(U,V){const Q=typeof U=="string"?U:U.type;if(!Q)throw new Error(formatProdErrorMessage(12));if(Q in E.sliceCaseReducersByType)throw new Error(formatProdErrorMessage(13));return E.sliceCaseReducersByType[Q]=V,_},addMatcher(U,V){return E.sliceMatchers.push({matcher:U,reducer:V}),_},exposeAction(U,V){return E.actionCreators[U]=V,_},exposeCaseReducer(U,V){return E.sliceCaseReducersByName[U]=V,_}};x.forEach(U=>{const V=v[U],Q={reducerName:U,type:getType(p,U),createNotation:typeof c.reducers=="function"};isAsyncThunkSliceReducerDefinition(V)?handleThunkCaseReducerDefinition(Q,V,_,i):handleNormalReducerDefinition(Q,V,_)});function T(){const[U={},V=[],Q=void 0]=typeof c.extraReducers=="function"?executeReducerBuilderCallback(c.extraReducers):[c.extraReducers],Z={...U,...E.sliceCaseReducersByType};return createReducer(c.initialState,F=>{for(let Y in Z)F.addCase(Y,Z[Y]);for(let Y of E.sliceMatchers)F.addMatcher(Y.matcher,Y.reducer);for(let Y of V)F.addMatcher(Y.matcher,Y.reducer);Q&&F.addDefaultCase(Q)})}const w=U=>U,R=new Map,M=new WeakMap;let k;function A(U,V){return k||(k=T()),k(U,V)}function D(){return k||(k=T()),k.getInitialState()}function z(U,V=!1){function Q(F){let Y=F[U];return typeof Y>"u"&&V&&(Y=getOrInsertComputed(M,Q,D)),Y}function Z(F=w){const Y=getOrInsertComputed(R,V,()=>new WeakMap);return getOrInsertComputed(Y,F,()=>{const ne={};for(const[fe,oe]of Object.entries(c.selectors??{}))ne[fe]=wrapSelector(oe,F,()=>getOrInsertComputed(M,F,D),V);return ne})}return{reducerPath:U,getSelectors:Z,get selectors(){return Z(Q)},selectSlice:Q}}const L={name:p,reducer:A,actions:E.actionCreators,caseReducers:E.sliceCaseReducersByName,getInitialState:D,...z(g),injectInto(U,{reducerPath:V,...Q}={}){const Z=V??g;return U.inject({reducerPath:Z,reducer:A},Q),{...L,...z(Z,!0)}}};return L}}function wrapSelector(t,i,u,c){function p(g,...v){let x=i(g);return typeof x>"u"&&c&&(x=u()),t(x,...v)}return p.unwrapped=t,p}var createSlice=buildCreateSlice();function buildReducerCreators(){function t(i,u){return{_reducerDefinitionType:"asyncThunk",payloadCreator:i,...u}}return t.withTypes=()=>t,{reducer(i){return Object.assign({[i.name](...u){return i(...u)}}[i.name],{_reducerDefinitionType:"reducer"})},preparedReducer(i,u){return{_reducerDefinitionType:"reducerWithPrepare",prepare:i,reducer:u}},asyncThunk:t}}function handleNormalReducerDefinition({type:t,reducerName:i,createNotation:u},c,p){let g,v;if("reducer"in c){if(u&&!isCaseReducerWithPrepareDefinition(c))throw new Error(formatProdErrorMessage(17));g=c.reducer,v=c.prepare}else g=c;p.addCase(t,g).exposeCaseReducer(i,g).exposeAction(i,v?createAction(t,v):createAction(t))}function isAsyncThunkSliceReducerDefinition(t){return t._reducerDefinitionType==="asyncThunk"}function isCaseReducerWithPrepareDefinition(t){return t._reducerDefinitionType==="reducerWithPrepare"}function handleThunkCaseReducerDefinition({type:t,reducerName:i},u,c,p){if(!p)throw new Error(formatProdErrorMessage(18));const{payloadCreator:g,fulfilled:v,pending:x,rejected:E,settled:_,options:T}=u,w=p(t,g,T);c.exposeAction(i,w),v&&c.addCase(w.fulfilled,v),x&&c.addCase(w.pending,x),E&&c.addCase(w.rejected,E),_&&c.addMatcher(w.settled,_),c.exposeCaseReducer(i,{fulfilled:v||noop,pending:x||noop,rejected:E||noop,settled:_||noop})}function noop(){}function formatProdErrorMessage(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}const initialState$4={formValues:{}},startPageSlice=createSlice({name:"start-screen",initialState:initialState$4,reducers:{showStartScreen(t){t.startScreenStatus="VISIBLE",t.formValues={}},startChat(t,i){t.startScreenStatus="HIDDEN",t.formValues=i.payload.formValues},startAuthenticatedChat(t,i){t.startScreenStatus="HIDDEN",t.loginToken=i.payload.loginToken,t.loginRequestToken=void 0},requestLogin(t,i){t.loginRequestToken=i.payload.loginRequestToken,t.formValues=i.payload.formValues},loginWindowClosed(t){t.loginRequestToken=void 0}}}),{startChat:startChat$1,startAuthenticatedChat,showStartScreen,requestLogin,loginWindowClosed}=startPageSlice.actions,startScreenReducer=startPageSlice.reducer,RESET_CHAT_STATE="RESET_CHAT_STATE",TOGGLE_TRANSCRIPT_MAIL_OVERLAY="TOGGLE_TRANSCRIPT_MAIL_OVERLAY",SHOW_CONVERSATION_RATING_OVERLAY="SHOW_CONVERSATION_RATING_OVERLAY",HIDE_CONVERSATION_RATING_OVERLAY="HIDE_CONVERSATION_RATING_OVERLAY",closeChatWindow=()=>({type:CLOSE_WINDOW}),resetChatState=()=>({type:RESET_CHAT_STATE}),toggleTranscriptMailOverlay=()=>({type:TOGGLE_TRANSCRIPT_MAIL_OVERLAY}),showConversationRatingOverlay=(t,i=void 0)=>({type:SHOW_CONVERSATION_RATING_OVERLAY,payload:{opener:t,defaultRating:i}}),hideConversationRatingOverlay=()=>({type:HIDE_CONVERSATION_RATING_OVERLAY}),loadSourceInfosRequest=(t,i,u)=>(c,p)=>{try{const g=p().connection.sessionId;if(!g)throw new Error("Session ID is not available");c({type:LOAD_SOURCE_INFOS_REQUEST,payload:{chunkId:u}}),fetchSourceInfos(t,g,i,u,!1,c),fetchSourceInfos(t,g,i,u,!0,c)}catch(g){console.error("Error loading source infos:",g),c({type:LOAD_SOURCE_INFOS_ERROR})}},fetchSourceInfos=(t,i,u,c,p,g)=>{const v=`/${t}/me/chat-widget/transcript/${u}/chunks/${c}?highlight=${p}`;fetch(v,{headers:{"x-bubble-chat-session-id":i}}).then(x=>{if(!x.ok)throw new Error(`HTTP error! Status: ${x.status}`);return x.json()}).then(x=>{const E={...x,chunkId:c,highlighted:p};g({type:LOAD_SOURCE_INFOS_RESPONSE,payload:E})}).catch(x=>{console.error("Error fetching source infos:",x),g({type:LOAD_SOURCE_INFOS_ERROR,payload:{highlighted:p}})})},closeSourceInfos=()=>({type:CLOSE_SOURCE_INFOS}),CONNECT="CONNECT",CONNECTING="CONNECTING",CONNECTED="CONNECTED",DISCONNECTED="DISCONNECTED",RECONNECTED="RECONNECTED",RESTORE_SESSION_ID="RESTORE_SESSION_ID",START="START",TERMINATE_SESSION="CLEAR_SESSION_ID",INTERNAL_ACTIONS=[CONNECT,CONNECTING,CONNECTED,DISCONNECTED,RECONNECTED,RESTORE_SESSION_ID],connect=(t,i)=>({type:CONNECT,clientName:t,querystrings:i}),restoreSessionId=t=>({type:RESTORE_SESSION_ID,sessionId:t}),connecting=()=>({type:CONNECTING}),connected=()=>({type:CONNECTED}),disconnected=()=>({type:DISCONNECTED}),reconnected=()=>({type:RECONNECTED}),startChat=t=>(i,u)=>{const c=u().connection,{formValues:p,loginToken:g}=u().startScreen;let v=c.sessionId;v===void 0&&(v=v4());let x=c.userId;if(x===void 0){const T=api.get("bubble-chat-user-id")||api.get("bubble-chat-userId")||api.get("bf-webclient-userId");x=T||v4(),api.set("bubble-chat-user-id",x,{expires:182})}const E=new URLSearchParams(u().connection.queryString||""),_=Object.fromEntries(E.entries());i({type:START,payload:{sessionId:v,userId:x,clientName:t,loginToken:g,querystrings:{..._,...p}}})},restartChat=()=>(t,i)=>{const u=i().connection.sessionId||"";if(t(terminateSession(u)),t(resetChatState()),i().settings.enableStartScreen)t(showStartScreen());else{const c=getClientName();return t(startChat(c))}},terminateSession=t=>({type:TERMINATE_SESSION,payload:{sessionId:t}}),useAppDispatch=useDispatch,useAppSelector=useSelector,useTranslation=()=>{const t=useAppSelector(u=>u.intl.messages);return u=>t[u]||void 0};var ConnectionStateEnum=(t=>(t[t.CONNECTING=0]="CONNECTING",t[t.CONNECTED=1]="CONNECTED",t[t.RECONNECTED=2]="RECONNECTED",t[t.DISCONNECTED=3]="DISCONNECTED",t))(ConnectionStateEnum||{}),UserType=(t=>(t.GUEST="GUEST",t.BOT="BOT",t.PERSON="PERSON",t))(UserType||{});const container$6="_container_q2uun_1",chatcontent="_chatcontent_q2uun_6",accessabilityHidden="_accessabilityHidden_q2uun_12",styles$n={container:container$6,chatcontent,accessabilityHidden},messageContainer$1="_messageContainer_1t640_1",messages="_messages_1t640_13",styles$m={messageContainer:messageContainer$1,messages};var j;function B(t){if(!j)if(typeof document<"u")j=document.createElement("textarea");else return;var i="&"+t+";";j.innerHTML=i;var u=j.value;return u!==i?u:void 0}var C$1={},Z6=Object.defineProperty,G6=(t,i)=>{for(var u in i)Z6(t,u,{get:i[u],enumerable:!0,configurable:!0,set:c=>i[u]=()=>c})},f=32,l=9,X0=13,d=10,h0=96,t1=126,P1=91,_9=94,I1=62,T9=35,U1=45,d1=61,f1=92,S9=42,e1=95,q9=60,E9=64,D9=93,x9=33,P9=38,I9=58,i1=102,c1=104,b1=119,r9=116,B$=112,zZ=115,_Z=160,qZ=12,f9=46,j9=47,DZ=43,jZ=124,HZ=123,FZ=40,OZ=41,N$=120,b$=88,$9=48,Z9=57,a1=65,r1=90,G9=97,Y9=122,$1=128,WZ=32,Y6={blockQuote:0,breakLine:1,breakThematic:2,codeBlock:3,codeInline:4,footnote:5,footnoteReference:6,frontmatter:7,gfmTask:8,heading:9,htmlBlock:10,htmlComment:11,htmlSelfClosing:12,image:13,link:14,orderedList:15,paragraph:16,ref:17,refCollection:18,table:19,text:20,textFormatted:21,unorderedList:22},W=Y6,P$={};G6(P$,{startsWith:()=>s,slugify:()=>c0,skipWhitespace:()=>S0,shouldFilterTag:()=>$$,sanitizer:()=>s1,parseFrontmatterBounds:()=>L$,normalizeInput:()=>g1,normalizeCRLF:()=>j6,isVoidElement:()=>W9,isUnicodeWhitespace:()=>K9,isUnicodePunctuation:()=>t9,isAlnumCode:()=>o9,isASCIIWhitespace:()=>C9,isASCIIPunctuation:()=>_6,inlineCharTypeTable:()=>g9,includes:()=>V6,htmlAttrsToJSXProps:()=>s9,hasKeys:()=>e9,getTag:()=>H6,getOverrideProps:()=>F6,get:()=>x$,findLineEnd:()=>I,extractPlainText:()=>wZ,endsWith:()=>n9,decodeEntityReferences:()=>O9,charClassTable:()=>F9,applyTagFilterToText:()=>Z$,VOID_ELEMENTS:()=>R$,SHOULD_RENDER_AS_BLOCK_R:()=>T$,SANITIZE_R:()=>H9,NAMED_CODES_TO_UNICODE:()=>K6,HTML_TO_JSX_MAP:()=>AZ,HTML_CHAR_CODE_R:()=>vZ,ATTRIBUTES_TO_SANITIZE:()=>S$});function L$(t){if(!s(t,"---"))return null;let i=3;for(;i<t.length&&(t[i]===" "||t[i]===" ");)i++;if(i<t.length&&t[i]==="\r"&&i++,i>=t.length||t[i]!==`
|
|
14
|
-
`)return null;i++;let u=!1;for(;i<t.length;){let c=i;for(;i<t.length&&t[i]!==`
|
|
15
|
-
`&&t[i]!=="\r";)i++;if(i>=t.length)break;let p=i;if(t[i]==="\r"&&i++,i<t.length&&t[i]===`
|
|
16
|
-
`&&i++,s(t,"---",c))return{endPos:i,hasValidYaml:u};let g=t.indexOf(":",c);g!==-1&&g<p&&(u=!0)}return null}var K6=C$1,vZ=/&([a-zA-Z0-9]+|#[0-9]{1,7}|#x[0-9a-fA-F]{1,6});/gi,AZ={class:"className",for:"htmlFor",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",classid:"classId",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",crossorigin:"crossOrigin",enctype:"encType",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",inputmode:"inputMode",keyparams:"keyParams",keytype:"keyType",marginheight:"marginHeight",marginwidth:"marginWidth",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",novalidate:"noValidate",radiogroup:"radioGroup",readonly:"readOnly",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",usemap:"useMap"};function s9(t){var i={};for(var u in t){var c=u.toLowerCase(),p=AZ[c];i[p||u]=t[u]}return i}var T$=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/;function O9(t){return t.indexOf("&")===-1?t:t.replace(vZ,(i,u)=>{var c=B(u);if(c)return c;if(u[0]==="#"){var p=u[1]==="x"||u[1]==="X"?parseInt(u.slice(2),16):parseInt(u.slice(1),10);return p===0||p>=55296&&p<=57343||p>1114111?"�":p<=65535?String.fromCharCode(p):String.fromCharCode(55296+(p-65536>>10),56320+(p-65536&1023))}return i})}var H9=/(javascript|vbscript|data(?!:image)):/i;function s1(t){if(H9.test(t))return null;if(t.indexOf("%")===-1)return t;try{let i=decodeURIComponent(t).replace(/[^A-Za-z0-9/:]/g,"");if(H9.test(i))return null}catch{return null}return t}var I0={},p0,b0;p0=[192,193,194,195,196,197,224,225,226,227,228,229,230,198];for(b0=0;b0<p0.length;b0++)I0[p0[b0]]="a";I0[231]=I0[199]="c";I0[240]=I0[208]="d";p0=[200,201,202,203,233,232,234,235];for(b0=0;b0<p0.length;b0++)I0[p0[b0]]="e";p0=[207,239,206,238,205,237,204,236];for(b0=0;b0<p0.length;b0++)I0[p0[b0]]="i";I0[209]=I0[241]="n";p0=[248,216,339,338,213,245,212,244,211,243,210,242];for(b0=0;b0<p0.length;b0++)I0[p0[b0]]="o";p0=[220,252,219,251,218,250,217,249];for(b0=0;b0<p0.length;b0++)I0[p0[b0]]="u";I0[376]=I0[255]=I0[221]=I0[253]="y";function o9(t){return t>=$9&&t<=Z9||t>=a1&&t<=r1||t>=G9&&t<=Y9}function c0(t){for(var i=[],u=0;u<t.length;u++){var c=t.charCodeAt(u);if(o9(c))c>=a1&&c<=r1?i.push(String.fromCharCode(c+WZ)):i.push(t[u]);else if(c===f||c===U1)i.push("-");else{var p=I0[c];p&&i.push(p)}}return i.join("")}function V6(t,i){return t.indexOf(i)!==-1}function s(t,i,u){return t.startsWith(i,u)}function n9(t,i,u){return t.startsWith(i,(u===void 0?t.length:u)-i.length)}var R$=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr","circle","ellipse","line","path","polygon","polyline","rect","use","stop","animate","animateTransform","set"]);function W9(t){let i=t.toLowerCase();if(R$.has(i))return!0;let u=i.indexOf(":");return u!==-1?(i=i.slice(u+1),R$.has(i)):!1}var S$=["src","href","data","formAction","srcDoc","action"],E$=1,X9=2,MZ=1,U6=2,Q6=3,z6=4,F9=(function(){let t=new Uint8Array(128),i;for(t[l]=t[d]=t[qZ]=t[X0]=t[f]=E$,i=x9;i<=j9;i++)t[i]=X9;for(i=I9;i<=E9;i++)t[i]=X9;for(i=P1;i<=h0;i++)t[i]=X9;for(i=HZ;i<=t1;i++)t[i]=X9;return t})(),g9=(function(){let t=new Uint8Array(128);return t[f1]=U6,t[P1]=z6,t[S9]=t[e1]=t[t1]=t[d1]=Q6,t[h0]=t[q9]=t[E9]=t[D9]=t[d]=t[f]=t[x9]=MZ,t[i1]=t[c1]=t[b1]=MZ,t})();function _6(t){return t<$1&&(F9[t]&X9)!==0}function C9(t){return t<$1&&(F9[t]&E$)!==0}var q6=/[\p{P}\p{S}]/u,D6=new RegExp("\\p{Zs}","u");function K9(t){if(!t)return!0;let i=t.charCodeAt(0);return i<$1?(F9[i]&E$)!==0:D6.test(t)}function t9(t){if(typeof t=="number")return t<$1&&(F9[t]&X9)!==0;if(!t)return!1;let i=t.charCodeAt(0);return i<$1?(F9[i]&X9)!==0:q6.test(t)}function I(t,i){let u=t.indexOf(`
|
|
17
|
-
`,i);return u===-1?t.length:u>0&&t.charCodeAt(u-1)===X0?u-1:u}var J9=[];function g1(t){var i=t.indexOf("\r"),u=t.indexOf("\0");if(i===-1&&u===-1)return t;var c=t.length;J9.length=0;var p=0,g=0;for(i===-1?g=u:u===-1?g=i:g=i<u?i:u;g<c;g++){var v=t.charCodeAt(g);v===X0?(p<g&&J9.push(t.slice(p,g)),g+1<c&&t.charCodeAt(g+1)===d&&g++,J9.push(`
|
|
18
|
-
`),p=g+1):v===0&&(p<g&&J9.push(t.slice(p,g)),J9.push("�"),p=g+1)}return p<c&&J9.push(t.slice(p)),J9.join("")}function j6(t){return g1(t)}function S0(t,i,u){let c=u??t.length;for(;i<c&&(t[i]===" "||t[i]===" ");)i++;return i}function e9(t){if(!t)return!1;for(var i in t)return!0;return!1}function x$(t,i,u){for(var c=t,p=i.split("."),g=0;g<p.length&&(c=c?.[p[g]],c!==void 0);)g++;return c||u}function H6(t,i){if(!i)return t;let u=x$(i,t,void 0);return typeof u=="string"?u:typeof u=="object"&&u.component?u.component:t}function F6(t,i){if(!i)return{};let u=x$(i,t,void 0);return typeof u=="object"&&u.props?u.props:{}}function wZ(t,i){for(var u="",c=0,p=t.length;c<p;c++){var g=t[c],v=g.type;if(v===i.text||v===i.codeInline){var x=g.text;x&&(u+=x)}else v===i.textFormatted||v===i.link?g.children&&(u+=wZ(g.children,i)):v===i.image&&g.alt&&(u+=g.alt)}return u}function $$(t){var i=t.toLowerCase();return i==="title"||i==="textarea"||i==="style"||i==="xmp"||i==="iframe"||i==="noembed"||i==="noframes"||i==="script"||i==="plaintext"}function Z$(t){return t.replace(/<(\/?)(title|textarea|style|xmp|iframe|noembed|noframes|script|plaintext)(\s|>|\/)/gi,function(i,u,c,p){return"<"+u+c+p})}function O6(t){console.warn(t)}function v9(t,i,u,c){for(var p=b(u),g=t.length,v=c??g-i,x=0;x<v&&i+x<g&&b(t,i+x)===p;)x++;return x}function BZ(t,i,u,c,p){if(p===0?u>=c:i<=c)return!1;let g=p===0?t[u]:t[i-1],v=p===0?i>0?t[i-1]:null:u<t.length?t[u]:null;var x=b(g);if(x<$1?C9(x):K9(g))return!1;var E=v?b(v):null,_=v===null||v===`
|
|
19
|
-
`||v==="\r"||(E!==null?E<$1?C9(E):K9(v):!0),T=q$(x,g);return!T||_?!0:v?q$(b(v),v):!1}function Q$(t){for(var i="",u=0;u<t.length;)if(t[u]==="\\"&&u+1<t.length){var c=t[u+1];i+=t9(b(c))?c:"\\"+c,u+=2}else i+=t[u++];return O9(i)}function C(t,i){return i>=t.length?i:t.charCodeAt(i)===X0&&i+1<t.length&&t.charCodeAt(i+1)===d?i+2:(t.charCodeAt(i)===d,i+1)}function W6(t,i){if(t>=$1)return 0;var u=g9[t];return i&&u===1&&(t===i1||t===c1||t===b1)?0:u}function M6(t,i,u,c,p,g){if(!u.length||u[u.length-1].type!==W.blockQuote)return null;let v=S0(c,0,c.length);if(v>=c.length||c[v]!==">")return null;let x=uZ(t,i,p,g);if(!x)return null;let E=u[u.length-1],_=x;return _.children&&E.children.push(..._.children),_.endPos}function z$(t,i,u,c){return{type:W.heading,level:t,children:i,id:c(u)}}var p$=/\\(.)/g,v6=/\s+#+\s*$/,n$=/^(?:(\d{1,9})([.)])\s+(.*)$|(\d{1,9})([.)])\s*$|([-*+])\s+(.*)$|([-*+])\s*$)/,u$=/^(\d{1,9})([.)])(\s+|$)/,l$=/^([*+\-])(\s+|$)/,H$=/^<([a-z][^ >/\n\r]*) ?([^>]*?)>/i,gZ=/^<([a-z][^ >/]*) ?(?:[^>/]+[^/]|)>/i,b=function(t,i=0){return t.charCodeAt(i)},_$=function(t){return o9(b(t))},d$=function(t){return C9(b(t))},Q1=function(t){return t===" "||t===" "},k9=function(t){return t===" "||t===" "||t===`
|
|
20
|
-
`||t==="\r"},q$=function(t,i){return t9(t<$1?t:i)},A6=function(t){var i=b(t);return _$(t)||i===U1||i===e1||i===I9||i===f9};function i$(t,i){var u=t.length;if(i>=u)return null;var c=b(t[i]);if(!V9(c))return null;for(var p=i,g=i;g<u;){var v=b(t[g]);if(v>=G9&&v<=Y9||v>=a1&&v<=r1||v>=$9&&v<=Z9||v===U1)g++;else{var x=b(t[g]);if(x===f||x===l||x===d||x===X0||x===I1||x===j9)break;return null}}if(g===p)return null;for(var E=t.slice(p,g),_=0;_<E.length;_++){var v=b(E[_]);if(!(v>=G9&&v<=Y9||v>=a1&&v<=r1||v>=$9&&v<=Z9||v===U1))return null}return{tagName:E,tagLower:E.toLowerCase(),nextPos:g}}function n1(t,i){var u=U$(t,i);return!u||u.kind!=="tag"?null:{tagName:u.tagName||"",tagLower:u.tagNameLower||"",attrs:u.attrs||"",endPos:u.endPos,isClosing:u.isClosing||!1,isSelfClosing:u.isSelfClosing||!1,hasNewline:u.hasNewline,hasSpaceBeforeSlash:!1,whitespaceBeforeAttrs:u.whitespaceBeforeAttrs||""}}function w6(t,i,u){for(var c=1,p=i;c>0&&p<t.length;){var g=t.indexOf("<",p);if(g===-1)return null;var v=n1(t,g);if(!v){p=g+1;continue}if(v.isClosing&&v.tagLower===u&&--c===0)return[g,v.endPos];!v.isClosing&&!v.isSelfClosing&&v.tagLower===u&&c++,p=v.endPos}return null}var B6=/^\{.*\}$/,F$=/\n\n/,O$=/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m,N6=/<\/?(?:pre|script|style|textarea)\b/i,CZ=/^<[A-Z]/,b6=/\n$/,y6=new Set(["#",">","-","*","+","`","|","0","1","2","3","4","5","6","7","8","9"]);function R6(t,i,u,c){let p=i;for(;p<u;){if(t[p]==="\\"&&p+1<u){p+=2;continue}if(t[p]===c)return p;p++}return-1}function NZ(t,i){var u=i.indexOf(":");if(u>0){var c=i.slice(u+1).trim(),p=c.length;if(p>=2){var g=c[0];(g==='"'||g==="'")&&c[p-1]===g&&(c=c.slice(1,-1))}t.push([i.slice(0,u).trim(),c])}}function L6(t){var i=[];if(!t)return i;for(var u="",c=0,p="",g=0;g<t.length;g++){var v=t[g];if(v==='"'||v==="'")p?v===p&&(p="",c--):(p=v,c++);else if(v==="("&&n9(u,"url"))c++;else if(v===")"&&c>0)c--;else if(v===";"&&c===0){NZ(i,u),u="";continue}u+=v}return NZ(i,u),i}function T6(tag,key,value,sanitizeUrlFn,options){if(key==="style")return L6(value).reduce(function(t,[i,u]){let c=sanitizeUrlFn(u,tag,i);return c!=null&&(t[i.replace(/(-[a-z])/g,p=>p[1].toUpperCase())]=c),t},{});if(value.match(B6)){if(value=value.slice(1,value.length-1),value=value&&value.replace(p$,"$1"),value.length>0){let t=value[0];if(t==="["||t==="{")try{return JSON.parse(value)}catch{return value}}if(value==="true")return!0;if(value==="false")return!1;if(options.evalUnserializableExpressions)try{return eval(`(${value})`)}catch(t){return value}return value}return S$.indexOf(key)!==-1?sanitizeUrlFn(value&&value.replace(p$,"$1"),tag,key):value==="true"?!0:value==="false"?!1:value}function C1(t,i,u,c){let p={};if(!t||!t.trim())return p;let g=[],v=0,x=t.length;for(;v<x;){for(;v<x&&k9(t[v]);)v++;if(v>=x)break;let w=v;for(;v<x&&A6(t[v]);)v++;if(v===w){v++;continue}let R=t.slice(w,v);for(;v<x&&k9(t[v]);)v++;if(v>=x||t[v]!=="="){g.push(R);continue}for(v++;v<x&&k9(t[v]);)v++;if(v>=x){g.push(R+"=");break}let M=v,k=t[v];if(k==='"'||k==="'")for(v++;v<x;){if(t[v]===k){if(v+1>=x){v++;break}let A=t[v+1];if(k9(A)||A==="/"){v++;break}}v++}else if(k==="{"){let A=1;for(v++;v<x&&A>0;){if(t[v]==="{")A++;else if(t[v]==="}"&&(A--,A===0)){v++;break}v++}}else for(;v<x&&!k9(t[v]);)v++;g.push(R+"="+t.slice(M,v))}if(!g?.length)return p;let E=i.toLowerCase(),_=u.length>0&&u[0]>="A"&&u[0]<="Z";for(let w=0;w<g.length;w++){let R=g[w],M=R.indexOf("=");if(M!==-1){let k=R.slice(0,M).trim(),A=k.toLowerCase();if(A==="ref")continue;let D=_?k:A,z=R.slice(M+1).trim(),L=(U=>{let V=U[0];return(V==='"'||V==="'")&&U.length>=2&&U[U.length-1]===V?U.slice(1,-1):U})(z);if(A==="href"&&E==="a"||A==="src"&&E==="img"){let U=c.sanitizer(L,E,A);if(U==null){O6(`Stripped unsafe ${A} on <${u}>`);continue}p[D]=U}else{let U=T6(E,A,L,c.sanitizer,c);p[D]=U}}else R!=="style"&&(p[_?R:R.toLowerCase()]=!0)}if(t.indexOf("%")!==-1)try{if(H9.test(decodeURIComponent(t)))for(var T in p)delete p[T]}catch{}else if(H9.test(t))for(var T in p)delete p[T];return p}var u9=function(t){return y6.has(t)};function S6(t,i,u){let c=i+1;for(;c<t.length&&t[c]!=="]";){if(t[c]==="\\"&&c+1<t.length){c+=2;continue}c++}if(c>=t.length)return{shouldSkip:!1,newPos:0};let p=i+1,g=c,v=p<g&&(t[p]===`
|
|
21
|
-
`||t[p]==="\r"),x=g>p&&(t[g-1]===`
|
|
22
|
-
`||t[g-1]==="\r"),E=c+1;if(E=S0(t,E),E>=t.length||t[E]!==":")return{shouldSkip:!1,newPos:0};if((v||x)&&u){let _=E+1;for(_=S0(t,_),_<t.length&&t[_]===`
|
|
23
|
-
`&&(_=S0(t,_+1));_<t.length&&t[_]!==`
|
|
24
|
-
`;)_++;return _<t.length&&_++,{shouldSkip:!0,newPos:_}}return E6(t,E)}function E6(t,i){let u=i+1;for(u=S0(t,u),u<t.length&&t[u]===`
|
|
25
|
-
`&&(u=S0(t,u+1));u<t.length&&t[u]!==`
|
|
26
|
-
`;)u++;if(u>=t.length)return{shouldSkip:!1,newPos:0};u++;let c=S0(t,u);if(c>=t.length||t[c]!=='"'&&t[c]!=="'")return{shouldSkip:!1,newPos:0};let p=t[c],g=c+1;for(;g<t.length&&t[g]!==p&&t[g]!==`
|
|
27
|
-
`;){if(t[g]==="\\"&&g+1<t.length){g+=2;continue}g++}if(g>=t.length||t[g]!==p)return{shouldSkip:!1,newPos:0};let v=S0(t,g+1);return v<t.length&&t[v]!==`
|
|
28
|
-
`&&t[v]!=="\r"?{shouldSkip:!0,newPos:u}:{shouldSkip:!1,newPos:0}}function kZ(t){for(var i=0;i<t.length;i++){var u=t[i];if(u.type===W.link)return!0;if(u.type===W.textFormatted){var c=u;if(c.children&&kZ(c.children))return!0}}return!1}function c$(t){for(var i="",u=0,c=t.length;u<c;u++){var p=t[u],g=p.type;if(g===W.text)i+=p.text;else if(g===W.image){var v=p;v.alt&&(i+=v.alt)}else if(g===W.textFormatted){var x=p;x.children&&(i+=c$(x.children))}else if(g===W.link){var E=p;E.children&&(i+=c$(E.children))}}return i}var x6=new Set([" "," ","\r",`
|
|
29
|
-
`,"\f","\v"]);function k1(t,i,u,c,p){for(var g=[],v=[],x=[],E=i,_=i,T=p.disableAutoLink||c.inAnchor,w=!1,R=!!c.inAnchor,M=!!p.disableParsingRawHTML,k=function(Ut,$t){if(!R){var vn=f$(t,E,c,p,"<");if(vn)return A(E),g.push(vn),E=vn.endPos,_=E,!0}if(M)return!1;var Nt=M$(t,E,c,p);if(Nt)return A(E),g.push(Nt),E=Nt.endPos,_=E,!0;var Ie=n1(t,E);if(!Ie)return!1;var kt=E+(Ie.isClosing?2:1);if(kt>=t.length||Q1(t[kt]))return!1;var tn=t.indexOf(">",E+1);if(tn!==-1){var It=E+1,ht=tn-It;if(ht>=7){var Ke=s(t,"http://",It);if(Ke||s(t,"https://",It)){for(var nn=It;nn<tn;nn++)if(Q1(t[nn]))return!1}}}var Lt=b(t,kt);if(V9(Lt)&&kt+1<t.length&&t[kt+1]===":"||Ie.isClosing&&Ie.attrs.trim().length)return!1;if(Ie.attrs.length)for(var Ze=!1,jn="",Dn=0;Dn<Ie.attrs.length;Dn++){var xe=Ie.attrs[Dn];if(Ze&&xe===jn)Ze=!1;else if(!Ze&&(xe==='"'||xe==="'"))Ze=!0,jn=xe;else if(xe==="*"||xe==="#"||xe==="!"){for(var q=Dn+1;q<Ie.attrs.length&&Ie.attrs[q]!=="="&&Ie.attrs[q]!==" "&&Ie.attrs[q]!==" ";)q++;if(q<Ie.attrs.length&&Ie.attrs[q]==="=")return!1}}var ge=t.slice(E,Ie.endPos),ye=Ie.tagName.toLowerCase(),De=ge,He=De.indexOf(">");if(He!==-1){De=De.slice(He+1);var Ce="</"+ye+">",Ne=De.indexOf(Ce);Ne!==-1&&(De=De.slice(0,Ne))}var We=[];if(De.trim()&&p){var Et={...c,inline:!1,inHTML:!0},ze=De.trim();F$.test(ze)||O$.test(ze)||H$.test(ze)?We=i9(ze,Et,p):ze&&(Et.inline=!0,We=k1(ze,0,ze.length,Et,p))}var ut=Ie.whitespaceBeforeAttrs+Ie.attrs,Ge=C1(ut,ye,Ie.tagName,p),Ot={type:W.htmlBlock,tag:Ie.tagName,attrs:Ge,children:We,rawText:ge,text:De,verbatim:!0,endPos:Ie.endPos};return A(E),g.push(Ot),E=Ot.endPos,_=E,!0},A=function(Ut){if(Ut>_){var $t=t.slice(_,Ut);g.push({type:W.text,text:w?O9($t):$t}),_=Ut,w=!1}};E<u;){var D=b(t,E),z=W6(D,T);if(z===0){for(D===P9&&(w=!0),E++;E<u&&(D=b(t,E),!(D>=$1));){D===P9&&(w=!0);var L=g9[D];if(L!==0){if(T&&L===1&&(D===i1||D===c1||D===b1)){E++;continue}break}E++}continue}if(D===h0){for(var U=E,V=0;E+V<u&&b(t,E+V)===h0;)V++;if(V>0){for(var Q=E+V,Z=-1,F=Q;F<u;){for(;F<u&&b(t,F)!==h0;)F++;if(F>=u)break;for(var Y=0;F+Y<u&&b(t,F+Y)===h0;)Y++;Y>V&&(Y=V);var ne=F+Y;if(Y===V&&(F<=Q||b(t,F-1)!==h0)&&(ne>=u||b(t,ne)!==h0)){Z=F,F=ne;break}F++}if(Z!==-1){for(var fe=t.slice(Q,Z),oe=!1,le=0;le<fe.length;le++){var Se=b(fe,le);if(Se===d||Se===X0){oe=!0;break}}var ve=fe;if(oe&&(ve=fe.replace(/\r\n/g," ").replace(/\r/g," ").replace(/\n/g," ")),ve.length>0){var _e=b(ve,0),K=b(ve,ve.length-1);if(_e===f&&K===f){for(var pe=1;pe<ve.length-1;pe++)if(b(ve,pe)!==f){ve=ve.slice(1,ve.length-1);break}}}A(U),g.push({type:W.codeInline,text:ve}),E=F,_=E;continue}E=Q;continue}}if(!R&&!T&&(D===i1||D===c1||D===b1)){var te=null,Re=E+1<u?b(t,E+1):0,Ae=E+2<u?b(t,E+2):0,H=E+3<u?b(t,E+3):0,ie=E+4<u?b(t,E+4):0,ue=E+5<u?b(t,E+5):0;if(D===c1&&Re===r9&&Ae===r9&&H===B$?te="h":D===b1&&Re===b1&&Ae===b1&&H===f9?te="w":D===i1&&Re===r9&&Ae===B$&&H===I9&&ie===j9&&ue===j9&&(te="f"),te){var be=f$(t,E,c,p,te);if(be){A(E),g.push(be),E=be.endPos,_=E;continue}}}if(!R&&!T&&D===E9){var me=f$(t,E,c,p,"@");if(me&&"emailStart"in me){for(var{emailStart:Ee,endPos:Te}=me,ke=[],ne=v.length-1;ne>=0;ne--){var Me=v[ne];Me.sourcePos>=Ee&&Me.sourcePos<Te&&(Me.nodeIndex>=0&&Me.nodeIndex<g.length&&(g.splice(Me.nodeIndex,1),ke.push(Me.nodeIndex)),v.splice(ne,1))}if(Ee<_){for(var F=g.length-1;F>=0;F--)if(g[F].type===W.text){g.splice(F,1),ke.push(F);break}_=Ee}if(ke.length){ke.sort(function(Ut,$t){return Ut-$t});for(var Ve=0,ft=0;ft<v.length;ft++){for(var Me=v[ft];Ve<ke.length&&ke[Ve]<Me.nodeIndex;)Ve++;Me.nodeIndex-=Ve}}A(Ee),g.push(me),E=Te,_=E;continue}}if(!(D===q9&&k())){if(D===f1){if(E+1<u&&b(t,E+1)===d){for(var je=E+2;je<u&&b(t,je)===f;)je++;if(je>=u){E++;continue}for(A(E),g.push({type:W.breakLine}),E+=2;E<u&&b(t,E)===f;)E++;_=E;continue}var vt=E+1<u?t[E+1]:"";if(vt&&"!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~".indexOf(vt)!==-1){A(E),g.push({type:W.text,text:vt==="&"?"&":vt}),E+=2,_=E;continue}}if(D===P1){if(!R){if(E+1<u&&t[E+1]==="^"){for(var At=E+2;At<u&&t[At]!=="]";)At++;if(At<u){var Ue=t.slice(E+2,At);A(E),g.push({type:W.footnoteReference,target:`#${p.slugify(Ue)}`,text:Ue}),E=At+1,_=E;continue}}if(c.inList&&E+2<u&&b(t,E+2)===D9){var dt=b(t,E+1);if(dt===f||dt===N$||dt===b$){A(E),g.push({type:W.gfmTask,completed:dt===N$||dt===b$}),E+=3,_=E;continue}}}var un=!1;if(E>i&&t[E-1]==="!"){for(var _n=0,Ye=E-2;Ye>=i&&t[Ye]==="\\";Ye--)_n++;if((_n&1)===0&&(un=!0,_<E-1&&A(E-1),g.length>0&&g[g.length-1].type===W.text)){var Zt=g[g.length-1];Zt.text.endsWith("!")&&(Zt.text=Zt.text.slice(0,-1),!Zt.text&&g.pop())}}un||A(E),_=E+1,(!R||un)&&x.push({type:un?"image":"link",pos:un?E-1:E,resultIdx:g.length,inAnchor:R}),E++;continue}if(D===D9&&x.length>0){var wt=x[x.length-1],cn=wt.pos+(wt.type==="image"?2:1),Tt=E;A(E);var ot=E+1,An=t$(g,wt),Xt=wt.type==="link"&&kZ(An),Dt=!1;if(!Xt&&ot<u&&t[ot]==="("){var Pt=g6(t,ot+1);if(Pt){bZ(g,v,x,wt,cn,Tt,p.sanitizer(Q$(Pt.target),"a","href"),Pt.title?Q$(Pt.title):void 0),E=Pt.endPos,_=E;continue}}var pn=c.refs||{},mn=null,Yn=E;if(ot<u&&t[ot]==="["){for(var at=ot+1,F=at;F<u&&t[F]!=="]";)F++;F<u&&(mn=t.slice(at,F),Yn=F,Dt=!0)}(!Dt||mn==="")&&(mn=t.slice(cn,Tt));var gn=hZ(mn);if(!Xt&&pn&&pn[gn]){var bt=pn[gn];bZ(g,v,x,wt,cn,Tt,bt.target,bt.title),E=Yn+1,_=E;continue}var pt=wt.resultIdx;x.pop(),g.length=pt,wt.type==="image"&&g.push({type:W.text,text:"!"}),g.push({type:W.text,text:"["},...An,{type:W.text,text:"]"});for(var le=0;le<v.length;le++)v[le].nodeIndex>=pt&&v[le].nodeIndex++;E++,_=E;continue}if(D===S9||D===e1||D===t1||D===d1){var tt=t[E],nt=E,fn=v9(t,E,tt);if((tt==="~"||tt==="=")&&fn!==2){E++;continue}var yn=nt+fn,qt=BZ(t,nt,yn,u,0),rt=BZ(t,nt,yn,i,1),Jt=qt,Ct=rt;if(tt==="_"&&qt&&rt){if(nt>0){var Cn=t[nt-1],On=b(Cn);Jt=q$(On,Cn)}if(yn<u){var mt=t[yn],dn=b(mt);Ct=q$(dn,mt)}}A(nt),v.push({nodeIndex:g.length,type:tt,length:fn,canOpen:Jt,canClose:Ct,active:!0,sourcePos:nt,inAnchor:R}),g.push({type:W.text,text:t.slice(nt,nt+fn)}),E=nt+fn,_=E;continue}if(D===d){for(var Ye=E-1,Kn=0;Ye>=_&&b(t,Ye)===f;)Kn++,Ye--;if(Kn>=2){for(var je=E+1;je<u&&b(t,je)===f;)je++;if(je>=u){A(Ye+1),E=u,_=u;continue}for(A(Ye+1),g.push({type:W.breakLine}),E++;E<u&&b(t,E)===f;)E++;_=E;continue}var wn=E>_?b(t,E-1):0,dt=E+1<u?b(t,E+1):0,Zn=E>_&&wn===f&&dt===f?E-1:E;A(Zn),g.push({type:W.text,text:`
|
|
30
|
-
`}),_=E+1,E>i&&wn===f&&_<u&&b(t,_)===f&&_++,E=_;continue}for(D===P9&&(w=!0),E++;E<u;){var D=b(t,E);if(D>=$1)break;D===P9&&(w=!0);var L=g9[D];if(L===0){E++;continue}if(L===1&&(D===i1||D===c1||D===b1)&&T){E++;continue}break}}}if(A(E),v.length&&rZ(g,v),x.length){x.sort(function(Ut,$t){return Ut.resultIdx-$t.resultIdx});for(var F=0;F<x.length;F++)g.splice(x[F].resultIdx+F,0,{type:W.text,text:x[F].type==="image"?"![":"["})}return g}function P6(t,i,u,c,p){for(var g=!1,v=0;v<i.length;v++)if(i[v].sourcePos>=c&&i[v].sourcePos<p){g=!0;break}if(g){for(var x=t$(t,u),E=[],v=0;v<i.length;v++){var _=i[v];_.sourcePos>=c&&_.sourcePos<p&&E.push({nodeIndex:_.nodeIndex-u.resultIdx,type:_.type,length:_.length,canOpen:_.canOpen,canClose:_.canClose,active:_.active,sourcePos:_.sourcePos,inAnchor:_.inAnchor})}rZ(x,E),t.length=u.resultIdx;for(var T=0;T<x.length;T++)t.push(x[T]);for(var w=[],v=0;v<i.length;v++)(i[v].sourcePos<c||i[v].sourcePos>=p)&&w.push(i[v]);i.length=0;for(var T=0;T<w.length;T++)i.push(w[T])}}function I6(t,i,u,c){return t.type==="link"?{type:W.link,target:u,title:c,children:i}:{type:W.image,target:u||"",alt:c$(i),title:c}}function t$(t,i){return t.slice(i.resultIdx)}function bZ(t,i,u,c,p,g,v,x){P6(t,i,c,p,g);var E=t$(t,c);u.pop(),t.length=c.resultIdx,t.push(I6(c,E,v,x))}function f6(t,i,u){let c=S0(t,i),p=c<t.length&&t[c]==="<";p&&c++;let g=c;if(p&&c<t.length&&t[c]===">")return{target:"",endPos:c+1,hadSpace:!1};let v,x;var E=!1;if(p){for(x=c;x<t.length&&t[x]!==">";){let w=t[x];if(w===`
|
|
31
|
-
`||w==="\r"||w==="<")return null;if(w==="\\"){x+=2;continue}x++}if(x>=t.length||t[x]!==">")return null;x++;let _=g;for(;_<x-1&&Q1(t[_]);)_++;let T=x-1;for(;T>_&&Q1(t[T-1]);)T--;v=t.slice(_,T),c=x}else{let _=0;for(x=c;x<t.length;){let T=t[x];if(T===" "||T===" "||T===`
|
|
32
|
-
`){E=!0;break}if(T==="("){if(x>0&&t[x-1]==="\\"){x++;continue}_++,x++;continue}if(T===")"){if(x>0&&t[x-1]==="\\"){x++;continue}if(_===0)break;_--,x++;continue}x++}v=t.slice(g,x),c=x}return{target:v,endPos:c,hadSpace:E}}function yZ(t,i,u,c){let p=i,g=0;for(;p<t.length;){let x=t[p];if(Q1(x))p++;else if(x===`
|
|
33
|
-
`){if(g>=1)break;g++,p++}else{if(K9(x))break;break}}if(u&&!c&&(p>=t.length||t[p]!=='"'&&t[p]!=="'"&&t[p]!=="("))return{title:void 0,endPos:p};let v;if(p<t.length){let x=t[p];if(x==='"'||x==="'"){p++;let E=p;for(;p<t.length&&t[p]!==x;)t[p]==="\\"&&p++,p++;p<t.length&&(v=t.slice(E,p),p++)}else if(x==="("){p++;let E=p,_=1;for(;p<t.length&&_>0;)t[p]==="\\"&&p+1<t.length?p++:t[p]==="("?_++:t[p]===")"&&_--,p++;_===0&&(v=t.slice(E,p-1))}}return p=S0(t,p),{title:v,endPos:p}}function g6(t,i,u){let c=f6(t,i);if(!c)return null;let p=i;p=S0(t,p);let g=p<t.length&&t[p]==="<";if(g&&c.target===""&&c.endPos===p+2){let x=yZ(t,c.endPos,!1,g);return x.endPos>=t.length||t[x.endPos]!==")"?null:{target:"",title:x.title,endPos:x.endPos+1}}let v=yZ(t,c.endPos,c.hadSpace,g);return v.endPos>=t.length||t[v.endPos]!==")"?null:{target:c.target,title:v.title,endPos:v.endPos+1}}var C6;(t=>{t[t.URI=0]="URI",t[t.EMAIL=1]="EMAIL",t[t.ANGLE=2]="ANGLE"})(C6||={});function V9(t){return t>=a1&&t<=r1||t>=G9&&t<=Y9}function mZ(t){let i=t.indexOf(":");if(i<2||i>32)return!1;let u=b(t);if(!V9(u))return!1;for(let c=1;c<i;c++){let p=t[c];if(b(p),!_$(p)&&p!=="+"&&p!=="."&&p!=="-")return!1}return!0}function RZ(t,i,u){return i===0?!0:(u?`
|
|
34
|
-
\r*_~(`:`
|
|
35
|
-
*_~(`).indexOf(t[i-1])!==-1}function G$(t,i,u,c,p){let g=c(t,"a","href");return g?{type:W.link,target:g,children:[{type:W.text,text:i}],endPos:u,...p!==void 0?{emailStart:p}:{}}:null}function I$(t,i,u,c,p){if(u.inAnchor||p!==2&&c.disableAutoLink)return null;if(p===2){if(t[i]!=="<")return null;let A=i+1;for(;A<t.length&&t[A]!==">";){let Y=b(t,A);if(Y===f||Y===l||Y===d||Y===X0||Y<f)return null;A++}if(A>=t.length||t[A]!==">")return null;let D=t.slice(i+1,A);if(!D.length)return null;let z=D.indexOf("\\")!==-1,L=mZ(D),U=s(D,"http://")||s(D,"https://"),V=!1;if(!L&&!U&&D.length>=7){let Y=D[0];if(Y==="m"||Y==="M"){let ne=D.toLowerCase();if(s(ne,"mailto:")){V=!0;let fe=ne.indexOf(":"),oe=D.slice(fe+1);return G$("mailto:"+oe,D,A+1,c.sanitizer)}}}let Q=!z&&D.indexOf("@")!==-1&&D.indexOf("//")===-1&&!L;if(!U&&!V&&!Q&&!L)return null;let Z=D,F=D;return!V&&!L&&!U&&Q&&(Z="mailto:"+D),G$(Z,F,A+1,c.sanitizer)}if(p===1){let A=i;for(;A>0&&(_$(t[A-1])||".+-_".indexOf(t[A-1])!==-1);)A--;if(A>=i||!RZ(t,A,!0))return null;let D=i+1,z=!1;for(;D<t.length;){let U=t[D];if(U===".")z=!0,D++;else if(_$(U)||U==="-"||U==="_")D++;else break}if(!z||D<=i+1)return null;for(;D>i+1&&t[D-1]===".";)D--;if(D>i+1&&(t[D-1]==="-"||t[D-1]==="_"))return null;if(D-(i+1)<1e4){if(t.indexOf(".",i+1)>=D||t.indexOf(".",i+1)===-1)return null}else if(t.slice(i+1,D).indexOf(".")===-1)return null;let L=t.slice(A,D);return G$("mailto:"+L,L,D,c.sanitizer,A)}let g=s(t,"http://",i)||s(t,"https://",i),v=!g&&s(t,"ftp://",i),x=!g&&!v&&s(t,"www.",i);if(!(g||v||x)||!RZ(t,i,!1))return null;for(var E=i+(g?b(t,i+4)===zZ?8:7:v?6:4),_=E;E<t.length;){let A=b(t,E);if(A===f||A===l||A===d||A===q9||A===I1)break;E++}if(E<=_)return null;let T=E;for(;T>_;){let A=t[T-1];if(T>_+1&&t[T-2]==="\\")break;if(A==="?"||A==="!"||A==="."||A===","||A===":"||A==="*"||A==="_"||A==="~")T--;else if(A===";"){let D=T-2;for(;D>=_&&t[D]!=="&"&&t[D]!==" ";)D--;if(D>=_&&t[D]==="&"){let z=t.slice(D+1,T-1);if(z.length>=2&&z.length<=10&&/^[a-zA-Z0-9]+$/.test(z)&&(z==="lt"||z==="gt"||z.length>=3&&(s(z,"amp")||s(z,"apos")||s(z,"quot")||s(z,"nbsp")||/^[a-z]{3,10}$/.test(z))))break;T=D;break}T--}else if(A===")"){let D=0,z=0;for(let L=_;L<T;L++)t[L]==="("&&D++,t[L]===")"&&z++;if(z>D)T--;else break}else break}if(E=T,E<=_)return null;for(var w=_,R=-1,M=-1;w<E;){let A=b(t,w);if(A>=a1&&A<=r1||A>=G9&&A<=Y9||A>=$9&&A<=Z9||A===U1||A===e1||A===f9){A===f9&&(M=R,R=w),w++;continue}break}if(w===_||R===-1)return null;M===-1&&(M=_-1);for(let A=M+1;A<R;A++)if(t[A]==="_")return null;for(let A=R+1;A<w;A++)if(t[A]==="_")return null;let k=t.slice(i,E);return G$(x?"http://"+k:k,k,E,c.sanitizer)}function f$(t,i,u,c,p){return p==="<"?I$(t,i,u,c,2):p==="h"||p==="f"||p==="w"?I$(t,i,u,c,0):p==="@"?I$(t,i,u,c,1):null}function hZ(t){var i=t.trim(),u=i.replace(/[\s\t\n\r]+/g," ");return u.indexOf("ẞ")!==-1?u.replace(/\u1E9E/g,"ss").toLowerCase():u.toLowerCase()}function k6(t,i,u){if(i+3>=t.length||t[i]!=="[")return null;let c=t[i+1];return c!==" "&&c!=="x"&&c!=="X"||t[i+2]!=="]"?null:{type:W.gfmTask,completed:c.toLowerCase()==="x",endPos:i+3}}function e$(t,i,u,c){let{inline:p,inList:g,inBlockQuote:v}=i;c.inline!==void 0&&(i.inline=c.inline),c.list!==void 0&&(i.inList=c.list),c.inBlockQuote!==void 0&&(i.inBlockQuote=c.inBlockQuote);let x=i9(t,i,u);return i.inline=p,i.inList=g,i.inBlockQuote=v,x}function l9(t,i,u,c,p){return W$(c,!0,()=>k1(t,i,u,c,p))}function d9(t,i,u,c){var p=t[i];if(p===void 0)return null;var g=i,v=null,x=p,E=null,_=b(p),T=_===f||_===l;if(T){if(E=I(t,i),v=n(t,i,E),g=i+v.charCount,g>=t.length)return X$(t,i);x=t[g]}var w=v?v.spaceEquivalent:0;if(w>=4)return T?X$(t,i):null;var R=b(x);if(R===I1){var M=uZ(t,i,u,c);if(M)return M}else{if(R===e1)return D$(t,i);if(R===U1||R===S9||R===DZ){var k=D$(t,i);if(k)return k;var A=o$(t,i,u,c);if(A)return A}else if(R>=$9&&R<=Z9){var A=o$(t,i,u,c);if(A)return A}else{if(R===T9)return m6(t,g,u,c);if(R===P1)return w9(t,g,u,c,g+1<t.length&&b(t,g+1)===_9);if(R===q9&&!c.disableParsingRawHTML)return M$(t,g,u,c);if(R===h0||R===t1){if(E||(E=I(t,i)),v||(v=n(t,i,E)),v.spaceEquivalent<=3)return $Z(t,g,u,c)}else if(R===jZ)return aZ(t,i,u,c)}}return T?X$(t,i):null}function i9(t,i,u){let c=[],p=0;for(;p<t.length;){for(;p<t.length&&t[p]===`
|
|
36
|
-
`;)p++;if(p>=t.length)break;var g=t[p];if(i.inList&&c.length>0){var v=c[c.length-1];if(v?.type===W.paragraph){var x=v,E=b(g);if(E===U1||E===d1||E===f||E===l){var _=I(t,p),T=t.slice(p,_),w=n(t,p,_);if(w.spaceEquivalent<4){var R=T.slice(w.charCount).trim();if(cZ(c,R,u)){p=_+(_<t.length&&t[_]===`
|
|
37
|
-
`?1:0);continue}}}}}var M=d9(t,p,i,u);if(M){c.push(M),p=M.endPos;continue}var k=pZ(t,p,i,u);if(k){c.push(k),p=k.endPos;continue}var A=t.slice(p).trim();if(A){if(i.inBlockQuote&&c.length>0){let U=function(V){if(V.type===W.blockQuote){var Q=V;if(Q.children&&Q.children.length>0){var Z=Q.children[Q.children.length-1];if(Z.type===W.paragraph)return Z}}else if(V.type===W.orderedList||V.type===W.unorderedList){var F=V;if(F.items&&F.items.length>0){var Y=F.items[F.items.length-1];if(Y&&Y.length>0){var ne=Y[Y.length-1],fe=U(ne);if(fe)return fe}}}return null};for(var D=c.length-1;D>=0;D--){var x=U(c[D]);if(x){var L=a$(t,p,i,u);if(L){var z=L;x.children&&z.children&&x.children.push({type:W.text,text:`
|
|
38
|
-
`},...z.children),p=L.endPos;continue}}}}var L=a$(t,p,i,u);if(L){c.push(L),p=L.endPos;continue}}p++}return c}function m6(t,i,u,c){if(u.inline)return null;let p=I(t,i),g=n(t,i,p,3);if(g.spaceEquivalent>3&&!u.inList)return null;var v=i+g.charCount;if(v>=t.length||t[v]!=="#")return null;let x=v9(t,v,"#",6);if(v+=x,v>=t.length)return null;let E=t[v];if(E===`
|
|
39
|
-
`||E==="\r"){let M=I(t,v);return{...z$(x,[],"",c.slugify),endPos:M+(M<t.length?1:0)}}if(E!==" "&&E!==" ")return null;let _=v,T=I(t,_);var w=t.slice(_,T).replace(v6,"").trim();let R=l9(w,0,w.length,u,c);return{...z$(x,R,w,c.slugify),endPos:T+(T<t.length?1:0)}}function pZ(t,i,u,c){if(u.inline||u.inBlockQuote||u.inList)return null;let p=I(t,i);if(p>=t.length)return null;let g=C(t,p),v=-1,x=null;for(var E=0;g<t.length&&E<10;E++){let fe=I(t,g);if(fe>=t.length)break;for(var _=g;_<fe&&(b(t,_)===f||b(t,_)===l||b(t,_)===X0);)_++;if(_>=fe)break;for(var T=0,w=g;w<fe&&T<3&&b(t,w)===f;)T++,w++;if(w<fe){let oe=b(t,w);if(oe===d1||oe===U1){let le=t[w];for(var R=0,M=!1,k=w;k<fe;){let Se=b(t,k);if(Se===oe){if(M){R=0;break}R++}else if(Se===f||Se===l)M=!0;else{R=0;break}k++}if(R>=1){v=fe,x=le;break}}}g=C(t,fe)}if(!x)return null;let A=b(t,i);if(A===T9||A===I1||t[i]==="|")return null;let D=i;for(var z=i,L=!1;z<g;){let fe=I(t,z);if(fe>=g)break;for(var U=z;U<fe&&(b(t,U)===f||b(t,U)===l||b(t,U)===X0);)U++;U<fe&&(L=!0,D=fe),z=C(t,fe)}if(!L)return null;let V=t.slice(i,D);for(var Q=0,Z=V.length;Q<Z&&(V.charCodeAt(Q)===f||V.charCodeAt(Q)===l||V.charCodeAt(Q)===X0||V.charCodeAt(Q)===d);)Q++;for(;Z>Q&&(V.charCodeAt(Z-1)===f||V.charCodeAt(Z-1)===l||V.charCodeAt(Z-1)===X0||V.charCodeAt(Z-1)===d);)Z--;let F=V.slice(Q,Z);if(!F)return null;let Y=x==="="?1:2,ne=l9(F,0,F.length,u,c);return{...z$(Y,ne,F,c.slugify),endPos:v+(v<t.length?1:0)}}function a$(t,i,u,c){if(u.inline)return null;let p=i,g=t.length;for(;p<g;){let Ee=I(t,p),Te=!0;for(let Ue=p;Ue<Ee;Ue++){let dt=b(t,Ue);if(dt!==f&&dt!==l&&dt!==X0){Te=!1;break}}if(Te){p=Ee;break}if(Ee>=g){p=g;break}let ke=C(t,Ee);if(ke>=g){p=g;break}let Me=I(t,ke),Ve=!0,ft="";for(let Ue=ke;Ue<Me;Ue++){let dt=b(t,Ue);if(dt!==f&&dt!==l&&dt!==X0){Ve=!1,ft===""&&(ft=t[Ue]);break}}if(Ve){p=Ee;break}let je=!1,vt=n(t,ke,Me),At=vt.spaceEquivalent===4&&vt.charCount===4;if(ft==="<"&&!At&&!c.disableParsingRawHTML){let Ue=ke,dt=0;for(;Ue<Me&&dt<3;){let un=b(t,Ue);if(un===f||un===l)dt++,Ue++;else break}if(Ue<Me&&t[Ue]==="<"){var v=M$(t,Ue,{...u,inline:!1},c);v&&(je=!("canInterruptParagraph"in v)||v.canInterruptParagraph)}}if(At)je=!1;else if(!je&&ft&&u9(ft))if(ft==="["){let Ue=ke;Ue+1>=g||t[Ue+1]!=="^"?je=!1:je=!0}else if(ft==="*"||ft==="+")if(D$(t,ke))je=!0;else{let Ue=ke+1<g?t[ke+1]:"";Ue&&Q1(Ue)?je=!0:je=!1}else{let Ue=d9(t,ke,u,c);Ue&&(Ue.type===W.codeBlock?n(t,ke,Me).spaceEquivalent>=4?je=!1:je=!0:Ue.type===W.unorderedList||Ue.type===W.orderedList?Ue.type===W.orderedList?je=Ue.start===1:je=!0:ft==="-"?(p>i,je=!0):Ue.type===W.ref?je=!1:je=!0)}if(je){p=Ee;break}p=C(t,Ee)}if(p<=i)return null;for(var x=i,E=p;x<E;){let Ee=b(t,x);if(Ee===f||Ee===l)x++;else break}let _=I(t,x);var T=E>_,w;if(!T)w=t.slice(x,E);else{for(var R=[],M=x,k=0;M<E;){var A=I(t,M);if(A>E&&(A=E),k===0)R.push(t.slice(M,A));else{for(var D=0;D<4&&M+D<A&&b(t,M+D)===f;)D++;var z=D===4?M+4:M;R.push(t.slice(z,A))}if(A<E){let Ee=b(t,A);Ee===X0||Ee===d?(R.push(`
|
|
40
|
-
`),M=C(t,A)):M=E}else M=E;k++}w=R.join("")}for(var L=w.length;L>0;){var U=w.charCodeAt(L-1);if(U===f||U===l)L--;else break}L<w.length&&(w=w.slice(0,L));let V=!1;for(let Ee=0;Ee<w.length;Ee++){let Te=w.charCodeAt(Ee);if(Te!==f&&Te!==l&&Te!==d&&Te!==X0){V=!0;break}}if(!V)return null;for(var Q=w,Z=p,F=-1,Y=p-1;Y>=x;){if(b(t,Y)===d){F=Y;break}Y--}if(F>=0){for(var ne=!1,fe=x;fe<F;fe++){let Ee=b(t,fe);if(Ee!==f&&Ee!==l&&Ee!==d&&Ee!==X0){ne=!0;break}}if(!ne){for(var oe=F+1;oe<t.length;){let Ee=b(t,oe);if(Ee===f||Ee===l)oe++;else break}var le=oe-(F+1);if(le<4&&oe<t.length&&t[oe]==="["){var Se={...u,inline:!1},ve=w9(t,oe,Se,c,!1);if(ve){for(var _e=0,Y=x;Y<=F;){let Te=t.indexOf(`
|
|
41
|
-
`,Y);if(Te===-1||Te>F)break;_e++,Y=Te+1}var K=0,pe=0;for(Y=0;Y<w.length;){let Te=w.indexOf(`
|
|
42
|
-
`,Y);if(Te===-1)break;if(pe++,pe===_e){K=Te+1;break}Y=Te+1}K>0&&(Q=w.slice(0,K-1)),Z=ve.endPos,u.refs=Se.refs}}}}let te=l9(Q,0,Q.length,u,c);var Re={type:W.paragraph,children:te,endPos:Z};if(te.length>0){for(var Ae=[],H=te.length-1;H>=0;H--){var ie=te[H];if(ie.type===W.htmlSelfClosing&&ie.isClosingTag===!0)Ae.push(H);else if(ie.type===W.text){var ue=ie;if(ue.text&&ue.text.trim().length>0)break}else break}if(Ae.length>=3){var be=Ae[Ae.length-1],me=te.slice(be+1);te.splice(be+1),Re.removedClosingTags=me}}return Re}function h6(t,i){if(i!==0)return null;let u=L$(t);if(!u?.hasValidYaml)return null;let c=u.endPos-1;c>0&&t[c-1]==="\r"&&c--;let p=g1(t.slice(0,c));return{type:W.frontmatter,text:p,endPos:u.endPos}}function D$(t,i,u,c){let p=I(t,i),g=n(t,i,p,3);if(g.spaceEquivalent>3)return null;var v=i+g.charCount;if(v>=p)return null;let x=t[v];if(x!=="-"&&x!=="*"&&x!=="_")return null;for(var E=0,_=v;_<p;){var T=t[_];if(T===x)E++;else if(T!==" "&&T!==" ")return null;_++}return E<3?null:{type:W.breakThematic,endPos:C(t,p)}}function n(t,i,u,c){let p=0,g=0,v=i;for(;v<u;){var x=b(t,v);if(x!==f&&x!==l||c!==void 0&&p>=c)break;x===l?p+=4-p%4:p+=1,g++,v++}return{spaceEquivalent:p,charCount:g}}function LZ(t,i,u,c){let p=0,g=0,v=c;for(let w=i;w<u&&g<4;w++){var x=b(t,w);if(x===l){let R=4-v%4;if(g+=R,p++,v+=R,g>=4)break}else if(x===f){if(g++,p++,v++,g>=4)break}else break}let E=t.slice(i+p,u);for(var _=0,T=i;T<u&&(t[T]===" "&&_++,!(_>=2));T++);return _>=2&&s(E," ")&&c>0&&(E=" "+E.slice(1)),E}function X$(t,i,u){let c=I(t,i),p=n(t,i,c);if(p.spaceEquivalent<4)return null;let g=p.spaceEquivalent,v=I(t,i+p.charCount),x=i,E=0;for(var _=x-1;_>=0&&t[_]!==`
|
|
43
|
-
`&&t[_]!=="\r";)_--;for(_++;_<x;)t[_]===" "?E=E+4-E%4:E++,_++;let T=LZ(t,x,v,E),w=C(t,v);if(w>=t.length)return T.trim()?{type:W.codeBlock,text:T,endPos:w}:null;var R=[];R.push(T);let M=w;for(;M<t.length;){let A=I(t,M);if(W1(t,M,A)){let D=A+1;if(D<t.length){let z=I(t,D),L=n(t,D,z),U=t[D+L.charCount];if(U&&U!==`
|
|
44
|
-
`&&(L.spaceEquivalent<4||U===">"&&L.spaceEquivalent<g))break}R.push(`
|
|
45
|
-
`)}else{if(n(t,M,A).spaceEquivalent<4)break;let D=LZ(t,M,A,0);R.push(`
|
|
46
|
-
`),R.push(D)}M=C(t,A)}let k=R.join("");return k=k.replace(b6,""),k.trim()?{type:W.codeBlock,text:k,endPos:M}:null}function $Z(t,i,u,c){let p=t[i];if(p!=="`"&&p!=="~")return null;let g=v9(t,i,p);if(g<3)return null;let v=i;for(;v>0&&b(t,v-1)!==d;)v--;let x=n(t,v,i),E=x.spaceEquivalent,_=E;if(E===4&&x.charCount===4&&(E=0,_=4),E>=4)return null;let T=S0(t,i+g),w=I(t,T),R=t.slice(T,w).trim();if(p==="`"&&R.indexOf("`")!==-1)return null;R=R.replace(p$,"$1");let M=R.indexOf(" "),k=M>0?R.slice(0,M):R,A=M>0?R.slice(M+1).trim():"",D=A&&/=\s*["']/.test(A)?C1(A,"code","code",c):void 0,z=C(t,w),L=z,U=!1;for(;L<t.length;){let F=I(t,L),Y=L,ne=0;for(;Y<F;){let fe=b(t,Y);if(fe===f){if(ne++,Y++,ne>=4)break}else if(fe===l){if(ne+=4-ne%4,Y++,ne>=4)break}else break}if(ne<4){let fe=v9(t,Y,p,F-Y);if(fe>=g){let oe=Y+fe;for(;oe<F;){let le=b(t,oe);if(le===f||le===l)oe++;else break}if(oe===F){U=!0;break}if(fe>=3&&oe<F){let le=Y+fe;if(!(le<F&&(b(t,le)===f||b(t,le)===l))){let Se=!0;if(p==="`"&&t.slice(le,F).indexOf("`")!==-1&&(Se=!1),Se)break}}}}else if(_===4&&E===0&&ne===4){let fe=v9(t,Y,p,F-Y);if(fe>=g&&W1(t,Y+fe,F)){U=!0;break}}L=C(t,F)}let V=L>z&&t[L-1]===`
|
|
47
|
-
`?L-1:L;V>z&&t[V-1]==="\r"&&V--;let Q=g1(t.slice(z,V));_&&(Q=r$(Q,_));let Z=U&&L<t.length?C(t,I(t,L)):L;return{type:W.codeBlock,text:Q,lang:k,attrs:D,endPos:Z}}function p6(t,i,u){for(var c=0;c<t.length;c++)if(!d$(t[c])){let g=e$(t,i,u,{inline:!1,inBlockQuote:!0});for(var p=0;p<g.length;p++){let v=g[p];"endPos"in v&&delete v.endPos}return g}return[]}function uZ(t,i,u,c){if(u.inline)return null;let p=i;for(;p<t.length&&(t[p]===" "||t[p]===" ");)p++;if(p>=t.length||t[p]!==">")return null;let g=i;for(var v=[],x=void 0,E=-1,_=!1,T=null,w=null,R=0,M=!1;g<t.length;){let Q=I(t,g),Z=g;for(;Z<Q&&(t[Z]===" "||t[Z]===" ");)Z++;if(Z<Q&&t[Z]===">"){let F=Z+1;F<Q&&t[F]===" "&&F++;let Y=n(t,F,Q).spaceEquivalent>=4,ne=!1,fe=null,oe=0;if(F<Q){let Se=t[F];if(Se==="`"||Se==="~"){let ve=0,_e=F;for(;_e<Q&&t[_e]===Se&&ve<20;)ve++,_e++;ve>=3&&(ne=!0,fe=Se,oe=ve)}}_&&T==="fenced"&&fe===w&&oe>=R?(_=!1,T=null,w=null,R=0):(Y||ne)&&(_=!0,T=Y?"indented":"fenced",w=fe,R=oe);var k=!Y&&!ne;if(k){for(var A=F;A<Q;A++)if(!d$(t[A])){k=!1;break}}M=k,E===-1&&!k&&(E=v.length);let le=Z+1;if(le<Q&&t[le]===" "){v.push(" ");let Se=4;for(let ve=le+1;ve<Q;ve++){let _e=t[ve];var D=b(_e);if(D===l){let K=4-Se%4;K===1?v.push(" "):K===2?v.push(" "):K===3?v.push(" "):v.push(" ".repeat(K)),Se+=K}else v.push(_e),Se++}Q<t.length&&v.push(`
|
|
48
|
-
`)}else{let Se=le;Se<Q&&t[Se]===" "&&Se++,v.push(t.slice(Se,Q)),Q<t.length&&v.push(`
|
|
49
|
-
`)}}else{for(var z=!0,A=g;A<Q;A++)if(!d$(t[A])){z=!1;break}if(z||_)break;if(n(t,g,Q).spaceEquivalent===0){let F=d9(t,g,u,c);if(F&&F.type!==W.ref&&F.type!==W.codeBlock||M)break}v.push(t.slice(g,Q)),Q<t.length&&v.push(`
|
|
50
|
-
`)}g=C(t,Q)}if(g===i)return null;v.length>0&&v[v.length-1]===`
|
|
51
|
-
`&&v.pop();let L=v.join("");if(L.length>=4&&L.charCodeAt(0)===P1&&L.charCodeAt(1)===x9){let Q=L.indexOf(`]
|
|
52
|
-
`,2);Q>2&&(x=L.slice(2,Q),L=L.slice(Q+2))}let U=p6(L,u,c),V={type:W.blockQuote,children:U,endPos:g};return x&&(V.alert=x),V}function r$(t,i){return t.split(`
|
|
53
|
-
`).map(function(u){if(u.length===0)return u;let c=i,p=0,g=0,v=0;for(;g<u.length&&p<c;)if(u[g]===" ")p++,v++,g++;else if(u[g]===" "){let x=4-v%4;if(p+x<=c)p+=x,v+=x,g++;else{let E=c-p,_=Math.max(0,x-E);return" ".repeat(_)+u.slice(g+1)}}else break;return u.slice(g)}).join(`
|
|
54
|
-
`)}function K$(t,i,u,c,p=!0){let g=(p?`
|
|
55
|
-
`:"")+t,v=l9(g,0,g.length,u,c);i.length>0&&i[i.length-1].type===W.paragraph?i[i.length-1].children.push(...v):i.push(...v)}function m9(t){return t.some(function(i){return i.type===W.codeBlock||i.type===W.paragraph||i.type===W.blockQuote||i.type===W.orderedList||i.type===W.unorderedList||i.type===W.heading})}function g$(t){return!!t.match(n$)}function lZ(t){if(t.length===0)return t;var i=t[t.length-1];return(i.type===W.orderedList||i.type===W.unorderedList)&&i.items?.length>0?lZ(i.items.slice(-1)[0]):t}function s$(t,i,u,c,p,g,v){if(!s(p,"["))return null;var x={inline:!1,refs:g.refs||{}},E=w9(t,i+c.charCount,x,v,!1);return E?E.endPos:null}function TZ(t,i,u,c){return t.length!==1||!u||t[0].length!==0?!1:!!(i||!i&&c.trim()==="")}function SZ(t,i){var u=t.index||0;return i?u+t[1].length+t[2].length+1:u+t[1].length+1}function j$(t,i,u,c,p){for(var g=0,v=c+p,x=i;x<u&&g<4;){var E=b(t,x);if(E===f)g++,v++;else if(E===l){var _=4-v%4;if(g+_>4)break;g+=_,v+=_}else break;x++}return{contentStartColumn:v,contentStartPos:x}}function C$(t){var i=t.match(n$);return i?i[1]?{match:[t,i[1],i[2],i[3]],ordered:!0,listItemRegex:u$}:i[4]?{match:[t,i[4],i[5],""],ordered:!0,listItemRegex:u$}:i[6]?{match:[t,i[6],i[7]],ordered:!1,listItemRegex:l$}:i[8]?{match:[t,i[8],""],ordered:!1,listItemRegex:l$}:null:null}function o1(t,i,u,c,p,g,v){if(i.spaceEquivalent!==g)return!1;var x=t.match(v);if(x)return u?x[2]===p:x[1]===c;var E=t.match(n$);return E?u?E[4]&&E[5]===p:E[8]===c:!1}function dZ(t,i,u,c){for(var p=i,g=u,v=i[0];g<t.length;){var x=I(t,g),E=t.slice(g,x),_=s(E," ".repeat(c))?E.slice(c):E;if(s(_.trim(),v)&&v9(_.trim(),0,v)>=3)return{content:p,endPos:C(t,x)};p+=`
|
|
56
|
-
`+_,g=C(t,x)}return{content:p,endPos:g}}function Y$(t,i,u,c,p,g,v,x,E,_,T,w,R){var M=_?void 0:E[1],k=_?E[2]:void 0,A=_?u$:l$,D=T;if(!T)for(var z=C(t,g),L=z;L<t.length;){var U=I(t,L),V=t.slice(L,U),Q=n(t,L,U),Z=Q.spaceEquivalent;if(W1(t,L,U)){var F=C(t,U);if(F<t.length){var Y=I(t,F),ne=n(t,F,Y),fe=ne.spaceEquivalent,Se=SZ(E,_),ve=p+x+Se,_e=j$(t,ve,g,v,Se),K=_e.contentStartColumn;if(fe+1>K){D=!0;break}}break}else if(Z<=v){var oe=V.slice(Q.charCount),le=oe.match(A);if(le&&(_?le[2]===k:le[1]===M))break}L=C(t,U)}var Se=SZ(E,_),ve=p+x+Se,_e=j$(t,ve,g,v,Se),K=_e.contentStartColumn,pe=c,te=C(t,g);if(s(c,"```")||s(c,"~~~")){var Re=_?E[1].length+E[2].length+1:E[1].length+1,Ae=dZ(t,c,te,Re);pe=Ae.content,te=Ae.endPos}return i.push(iZ(pe,D,w,R)),u.push(K),{newCurrentPos:te,itemHasBlankLine:D}}function EZ(t,i,u,c,p,g){if(p>c||g.disableParsingRawHTML)return!1;let v=i+u;return v>=t.length||t[v]!=="<"?!1:u6(t,v)}function u6(t,i){if(i>=t.length||t[i]!=="<")return!1;let u=t.length,c=i+1;if(c<u&&t[c]==="/"&&c++,c>=u)return!1;let p=b(t,c);if(!V9(p))return!1;for(c++;c<u;){let v=t[c],x=b(t,c);if(v===">"||v===" "||v===" "||v===`
|
|
57
|
-
`||v==="\r"||v==="/")break;if(v==="-"||v==="_"||V9(x)||x>=48&&x<=57)c++;else return!1}let g=0;for(;c<u;){let v=t[c],x=b(t,c);if(g===1)v==='"'&&(g=0),c++;else if(g===2)v==="'"&&(g=0),c++;else if(v==='"')g=1,c++;else if(v==="'")g=2,c++;else{if(v===">")return!0;if(v==="/"&&c+1<u&&t[c+1]===">")return!0;if(x===10||x===13)return!1;c++}}return!1}function xZ(t,i,u,c,p,g,v,x,E,_,T,w){let R=c,M=!1;for(;R<t.length;){let k=I(t,R),A=n(t,R,k),D=A.spaceEquivalent;if(W1(t,R,k)){M=!0,R=C(t,k);continue}let z=t.slice(R+A.charCount,k);if(D<=p&&o1(z,A,g,v,x,p,E))break;if(D>=u){if(w&&M){let U=s$(t,R,k,A,z,_,T);if(U){R=U,M=!1;continue}}let L=V$(t,R,k,A,u-1,u,i,M,_,T,void 0);if(L.processed){R=L.newPos,M=L.wasBlank;continue}}else break}return R}function PZ(t,i,u,c){let p=e$(t,u,c,{inline:!1,list:!0});if(p.length>0)return!i&&p.length===1&&p[0].type===W.paragraph?p[0].children:p;let g=W$(u,!0,()=>k1(t,0,t.length,u,c));return i&&g.length>0?[{type:W.paragraph,children:g}]:g}function iZ(t,i,u,c){let p=k6(t,0);if(!(p&&(p.endPos>=t.length||t[p.endPos]===" ")))return PZ(t,i,u,c);let g=p.endPos<t.length?p.endPos+1:p.endPos,v=t.slice(g),x=PZ(v,i,u,c),E=[p];return p.endPos<t.length&&E.push({type:W.text,text:" "}),E.push(...x),E}function IZ(t,i){if(!t[0])return!1;let u=t[0].indexOf(i);if(u===-1)return!1;let c=u+i.length;if(c>=t[0].length)return!1;let p=t[0][c];return p?b(p)===_Z:!1}function cZ(t,i,u){if(t.length===0)return!1;let c=t[t.length-1],p=i.trim();if(!s(p,"=")&&!s(p,"-")||p.length<1||!/^[=-]+[ \t]*$/.test(p))return!1;let g=[],v="";if(c.type===W.paragraph){let E=c;g=E.children,v=E.children.map(_=>_.type===W.text?_.text:"").join("").trim()}else if(c.type===W.text){let E=[],_=t.length-1;for(;_>=0&&t[_].type===W.text;)E.unshift(t[_]),_--;E.length>0&&(g=E,v=E.map(T=>T.text).join("").trim())}if(!v)return!1;let x=p[0]==="="?1:2;if(c.type===W.paragraph)t.pop();else if(c.type===W.text)for(;t.length>0&&t[t.length-1].type===W.text;)t.pop();return t.push(z$(x,g,v,u.slugify)),!0}function V$(t,i,u,c,p,g,v,x,E,_,T,w){let R=c.spaceEquivalent,M=t.slice(i+c.charCount,u);if(R>=p+4){let z=X$(t,i);if(z){let L=z,U=r$(L.text||"",g);return v.push({...L,text:U}),{processed:!0,newPos:L.endPos,wasBlank:!1}}}let k=R-(g-1);if(R+1>=g&&k<=3){let z=i+c.charCount;if(z<u){let L=t[z];if(L==="`"||L==="~"){let U=$Z(t,z,E,_);if(U){let V=U,Q=r$(V.text||"",g-1);return v.push({...V,text:Q,endPos:V.endPos}),{processed:!0,newPos:V.endPos,wasBlank:!1}}}if(L==="|"){let U=aZ(t,z,E,_);if(U){let V=U;return v.push(V),{processed:!0,newPos:V.endPos,wasBlank:!1}}}}}if(M.length>0&&(M[0]==="-"||M[0]==="*"||M[0]==="+"||M[0]>="0"&&M[0]<="9")&&/^([-*+]|\d{1,9}[.)])\s+/.test(M)){let z=l9(M,0,M.length,E,_);return v.push({type:W.text,text:`
|
|
58
|
-
`},...z),{processed:!0,newPos:C(t,u),wasBlank:!1}}let A=M6(t,i,v,M,E,_);if(A!==null)return{processed:!0,newPos:A,wasBlank:!1};let D=e$(M,E,_,{inline:!1,list:!0});if(D.length>0){if(T&&D[0].type===W.paragraph){let z=D[0];v.push({type:W.text,text:`
|
|
59
|
-
`},...z.children),D.length>1&&v.push(...D.slice(1))}else if(!x&&D[0].type===W.paragraph&&v.length>0){let z=v[v.length-1],L=D[0];z.type===W.paragraph?z.children.push({type:W.text,text:`
|
|
60
|
-
`},...L.children):z.type===W.heading?v.push(...L.children):m9(v)?v.push(...D):v.push({type:W.text,text:" "},...L.children),D.length>1&&v.push(...D.slice(1))}else v.push(...D);return{processed:!0,newPos:C(t,u),wasBlank:!1}}if(x){let z=W$(E,!0,()=>k1(M,0,M.length,E,_));v.push({type:W.paragraph,children:z})}else K$(M,v,E,_);return{processed:!0,newPos:C(t,u),wasBlank:!1}}function o$(t,i,u,c){if(u.inline)return null;var p=u.inList;if(u.inList=!0,i>0){var g=b(t,i-1);if(g!==d&&g!==X0)return u.inList=p,null}var v=I(t,i),x=n(t,i,v);if(x.spaceEquivalent>3&&!u.inList)return u.inList=p,null;var E=t.slice(i,v),_=x.charCount,T=E.slice(_),w=C$(T);if(!w)return u.inList=p,null;var{match:R,ordered:M,listItemRegex:k}=w,A=x.spaceEquivalent,D=M?parseInt(R[1],10):void 0,z=M?R[2]:void 0,L=M?void 0:R[1],U=M?R[3]==="":R[2]==="";function V(ye,De){if(ye===0)return!0;var He=b(t,ye-1);if(He!==d)return!1;if(!De)return!0;for(var Ce=ye-2;Ce>=0;){var Ne=b(t,Ce);if(Ne!==f&&Ne!==l)break;Ce--}return Ce<0||b(t,Ce)===d}if(U&&!V(i,!0))return u.inList=p,null;if(M&&D!==1&&!V(i,!1)||!M&&IZ(R,L))return null;var Q=R.index||0,Z=M?Q+R[1].length+R[2].length+1:U?Q+R[1].length:Q+R[1].length+1,F=i+_+Z,Y=j$(t,F,v,A,Z),ne=Y.contentStartColumn,fe=A+Q+R[1].length,oe=M?fe+R[2].length+1:U?fe:fe+1,le=[],Se=[];function ve(ye,De,He){return He?ye>=De:ye>De}function _e(){return le[le.length-1]}function K(){return Se[Se.length-1]??ne}function pe(ye,De){let He=lZ(De),Ce=u.inList;u.inList=!0;let Ne=o$(t,ye,u,c);return u.inList=Ce,Ne?(He.push(Ne),Ne):null}for(var te=C(t,v),Re=te,Ae=!1;Re<t.length;){var H=I(t,Re),ie=t.slice(Re,H);if(ie.trim()===""){for(var ue=C(t,H);ue<t.length;){var be=b(t,ue);if(be!==d){if(!x6.has(t[ue]))break}ue++}var me=I(t,ue),Ee=t.slice(ue,me),Te=n(t,ue,me),ke=Ee.slice(Te.charCount);if(o1(ke,Te,M,L,z,A,k))Ae=!0;else{var Me=s$(t,ue,me,Te,ke,u,c);if(Me){for(var Ve=Me;Ve<t.length&&b(t,Ve)===d;)Ve++;if(Ve<t.length){var ft=I(t,Ve),je=t.slice(Ve,ft),vt=n(t,Ve,ft),At=je.slice(vt.charCount);o1(At,vt,M,L,z,A,k)&&(Ae=!0)}}}break}var Ue=n(t,Re,H),dt=ie.slice(Ue.charCount),un=C$(dt);if(!un)break;var _n=un.match;if(M){if(_n[2]!==z)break}else if(_n[1]!==L)break;Re=C(t,H)}var Ye=M?R[3]:R[2];Ye=Ye.trimStart();for(var Zt=i+_+(R.index||0),wt=M?Zt+R[1].length+R[2].length:Zt+R[1].length,cn=wt;cn<t.length;){var be=b(t,cn);if(be!==f&&be!==l)break;cn++}for(var Tt=0,ot=wt;ot<v;){var be=b(t,ot);if(be===l)Tt+=4-Tt%4;else if(be===f)Tt++;else break;ot++}var An=!1;if(wt<t.length&&b(t,wt)===l){for(var Xt=1,Dt=wt+1;Dt<t.length&&b(t,Dt)===l;)Xt++,Dt++;Xt>=2&&(Ye=" "+Ye,An=!0)}M||(U=U&&Tt===0),Tt>=4&&!An&&(Ye=" ".repeat(Tt-1)+Ye.trimStart()),Ye.trim();let Pt=Ae;if(!Ae&&te<t.length)for(var pn=te;pn<t.length;){var mn=I(t,pn),Yn=t.slice(pn,mn);if(W1(t,pn,mn)){for(var at=C(t,mn);at<t.length;){var gn=I(t,at);if(W1(t,at,gn))at=C(t,gn);else break}if(at<t.length){var bt=n(t,at,t.length),pt=bt.spaceEquivalent;if(pt>=A){for(var tt=t.slice(at,I(t,at)),nt=tt.slice(bt.charCount).match(k),fn=nt&&(M?nt[2]===z:nt[1]===L),yn=null,qt=te;qt<pn;qt=I(t,qt)+1){var rt=I(t,qt),Jt=n(t,qt,rt),Ct=t.slice(qt,rt).slice(Jt.charCount).match(k),Cn=Ct&&Jt.spaceEquivalent>A&&Jt.spaceEquivalent>=ne&&(M?Ct[2]===z:Ct[1]===L);if(Cn){var On=Jt.spaceEquivalent+1,mt=M?On+Ct[1].length+Ct[2].length+1:On+Ct[1].length+1,dn=qt+Jt.charCount+Ct[0].length,Kn=j$(t,dn,rt,On,mt-On);yn=Kn.contentStartColumn;break}}var wn=Tt>=5?oe:ne;!fn&&pt>=wn&&(yn===null||pt+1<yn)&&(Pt=!0)}}break}var Zn=n(t,pn,mn),Ut=Zn.spaceEquivalent,$t=Yn.slice(Zn.charCount),vn=$t.match(k),Nt=vn&&(M?vn[2]===z:vn[1]===L);if(Nt&&Ut<=A)break;pn=C(t,mn)}var Ie=Ye;if(s(Ye,"```")||s(Ye,"~~~")){var kt=M?R[1].length+R[2].length+1:R[1].length+1,tn=dZ(t,Ye,te,kt);Ie=tn.content,te=tn.endPos}var It=!U&&Ye.trim()===""&&Tt>0&&Tt<5;if(!Pt)for(var ht=Ie.length>0?Ie[0]:"",Ke=ht===">",i=te;i<t.length;){var v=I(t,i),E=t.slice(i,v);if(E.trim()==="")break;var x=n(t,i,v);if(x.spaceEquivalent<oe)break;var T=E.slice(x.charCount);if(x.spaceEquivalent<=A&&o1(T,x,M,L,z,A,k)||g$(T)&&x.spaceEquivalent>A)break;var nn=T.length>0?T[0]:"",Lt=nn===">"&&Ke;if(nn===">"&&!Lt||nn==="#"||s(T,"```")||s(T,"~~~"))break;Ie+=`
|
|
61
|
-
`+T,te=i=C(t,v)}if(le.push(iZ(Ie,Pt,u,c)),Se.push(ne),Pt&&(Tt>=5||It)){let ye=_e();te=xZ(t,ye,oe,te,A,M,L,z,k,u,c,!0)}else if(!Pt){let ye=oe-1;for(;te<t.length;){let De=I(t,te),He=t.slice(te,De),Ce=n(t,te,De),Ne=Ce.spaceEquivalent,We=He.slice(Ce.charCount);if(He.trim()===""||Ne<=A&&o1(We,Ce,M,L,z,A,k)||g$(We)&&Ne>A||Ne<ye)break;let Et=_e(),ze=V$(t,te,De,Ce,ye,ne,Et,!1,u,c,!0);if(ze.processed)te=ze.newPos;else break}}for(var Ze=!1;te<t.length;){let ye=I(t,te),De=t.slice(te,ye),He=n(t,te,ye),Ce=He.charCount,Ne=He.spaceEquivalent;if(De.trim()==="")Ae=!0,Ze=!0,te=C(t,ye);else if(Ne<A){let We=De.slice(Ce);if(We.startsWith("<")&&EZ(t,te,Ce,A,Ne,c))break;let Et=We.trim();if(Et.length>0&&le.length>0&&!u9(Et[0])&&!o1(We,He,M,L,z,A,k)){let ze=_e();if(ze.length>0){let ut=ze[ze.length-1];if(!Ze&&(ut.type===W.paragraph||ut.type===W.text)){K$(We,ze,u,c),Ze=!1,te=C(t,ye);continue}}}break}else{let We=De.slice(Ce);if(le.length>0){let Ge=Se[le.length-1]||ne;if(Ne+1>=Ge&&!o1(We,He,M,L,z,A,k)){let Ot=_e();if(Ot.length>0&&cZ(Ot,We,c)){te=C(t,ye);continue}}}if(D$(t,te))break;if(Ze){let Ge=s$(t,te,ye,He,We,u,c);if(Ge){te=Ge,Ze=!1;continue}}if(Ne<=A){if(We.startsWith("<")&&EZ(t,te,Ce,A,Ne,c))break;if(!o1(We,He,M,L,z,A,k)){if(Ne===A&&!Ze){let Ge=We.trim();if(Ge.length>0&&!u9(Ge[0])){let Ot=d9(t,te,u,c);if(Ot&&Ot.type!==W.paragraph)break;let Bt=_e();if(Bt.length>0&&!m9(Bt)){K$(We,Bt,u,c,!0),Ze=!1,te=C(t,ye);continue}}}break}}if(TZ(le,U,Ze,Ye))break;let Et=C$(We),ze=Et?Et.match:null,ut=ze&&(M?ze[2]===z:ze[1]===L);if(ut&&Ne>3&&Ze)break;if(ut&&Ne<=A+3){if(Ne>=4&&Ze)break;if(Ne===A){let Ge=M?ze[3]:ze[2];if(Ge=Ge.trimStart(),te=Y$(t,le,Se,Ge,te,ye,Ne,Ce,ze,M,Ae,u,c).newCurrentPos,Ze=!1,Ge.trim()===""){let Ot=le[le.length-1],Bt=K();te=xZ(t,Ot,Bt,te,A,M,L,z,k,u,c)}continue}if(Ne>A){if(Ze){let Fe=M?ze[3]:ze[2];Fe=Fe.trimStart(),te=Y$(t,le,Se,Fe,te,ye,Ne,Ce,ze,M,Ae,u,c).newCurrentPos,Ze=!1;continue}let Ge=_e(),Ot=Ne+1,Bt=ve(Ot,K(),m9(Ge));if(Bt){let Fe=pe(te,Ge);if(Fe){te=Fe.endPos,Ze=!1;continue}}if(!Bt&&ut){let Fe=M?ze[3]:ze[2];if(Fe=Fe.trimStart(),!Ae){let bn=C(t,ye);for(;bn<t.length;){let Vt=I(t,bn),Ht=t.slice(bn,Vt),Qt=n(t,bn,Vt),Ba=Qt.spaceEquivalent;if(Ht.trim()===""){let kn=C(t,Vt);if(kn<t.length){let za=n(t,kn,t.length).spaceEquivalent,Nn=Ne+(M?ze[1].length+ze[2].length+1:ze[1].length+1);if(za+1>Nn)break}break}else if(Ba<=A){let kn=Ht.slice(Qt.charCount).match(k);if(kn&&(M?kn[2]===z:kn[1]===L)&&Ba<=A)break}bn=C(t,Vt)}}te=Y$(t,le,Se,Fe,te,ye,Ne,Ce,ze,M,Ae,u,c).newCurrentPos,Ze=!1;continue}else if(!Bt&&!ut)break;{let Fe=_e(),bn=Fe.length===0;if(bn&&TZ(le,U,Ze,Ye))break;let Vt=Fe.some(Qt=>Qt.type===W.codeBlock||Qt.type===W.paragraph||Qt.type===W.blockQuote||Qt.type===W.orderedList||Qt.type===W.unorderedList||Qt.type===W.heading),Ht=bn&&le.length===1?oe:ne;if(Vt?Ne>=Ht:Ne>Ht){let Qt=V$(t,te,ye,He,Ht,ne,_e(),Ze,u,c,void 0);if(Qt.processed){Ze=Qt.wasBlank,te=Qt.newPos;continue}}else break}}else if(Ne===A){if(!M&&ze&&IZ(ze,ze[1]))break;let Ge=M?ze[3]:ze[2];Ge=Ge.trimStart(),te=Y$(t,le,Se,Ge,te,ye,A,Ce,ze,M,Ae,u,c).newCurrentPos,Ze=!1}}else if(Ne>A){let Ge=_e();if(g$(We)){let Bt=Ne+1;if(ve(Bt,K(),m9(Ge))){let Fe=pe(te,Ge);if(Fe){te=Fe.endPos,Ze=!1;continue}}if(Ne-A>3){let Fe=Ge.length>0?Ge[Ge.length-1]:null;if(Fe&&(Fe.type===W.paragraph||Fe.type===W.text)){K$(We,Ge,u,c),Ze=!1,te=C(t,ye);continue}}else break}else{let Bt=pe(te,Ge);if(Bt){te=Bt.endPos,Ze=!1;continue}}let Ot=ne;if(m9(Ge)?Ne>=Ot-1:Ne>Ot-1){let Bt=V$(t,te,ye,He,Ot-1,ne,_e(),Ze,u,c,void 0);if(Bt.processed){Ze=Bt.wasBlank,te=Bt.newPos;continue}}else break}else break}}if(Ae&&le.length>1&&le[0].length>0&&le[0][0].type!==W.paragraph){for(var jn=1;jn<le.length;jn++)if(le[jn].length>0&&le[jn][0].type===W.paragraph){for(var Dn=!1,xe=0;xe<le[0].length;xe++){var q=le[0][xe].type;if(q===W.codeBlock||q===W.heading||q===W.blockQuote||q===W.orderedList||q===W.unorderedList||q===W.htmlBlock||q===W.breakThematic){Dn=!0;break}}Dn||(le[0]=[{type:W.paragraph,children:le[0]}]);break}}let ge=M?{type:W.orderedList,items:le,ordered:!0,start:D}:{type:W.unorderedList,items:le,ordered:!1};return u.inList=p,{...ge,endPos:te}}function aZ(t,i,u,c){if(u.inline)return null;let p=[],g=i;for(;g<t.length;){let k=I(t,g);if(W1(t,g,k))break;let A=t.slice(g,k).trim();if(!(A.indexOf("|")!==-1||p.length>=3&&A&&!u9(A[0])))break;p.push(A),g=C(t,k)}if(p.length<2)return null;let v=k=>k[0]==="|"&&k[k.length-1]==="|"?k.slice(1,-1):k,x=k=>{let A=[],D="",z=!1;for(let L=0;L<k.length;L++){let U=k[L];U==="\\"&&L+1<k.length&&k[L+1]==="|"?(D+="|",L++):U==="`"?(z=!z,D+=U):U==="|"&&!z?(A.push(D.trim()),D=""):D+=U}return A.push(D.trim()),A},E=x(v(p[0]));if(!E.length)return null;let _=x(v(p[1]));if(_.length!==E.length||_.some(k=>!/^:?-+:?$/.test(k)))return null;let T=_.map(k=>{let A=k[0]===":",D=k[k.length-1]===":";return A&&D?"center":A?"left":D?"right":null}),w=k=>W$(u,!0,()=>k.map(A=>k1(A,0,A.length,u,c))),R=w(E),M=p.slice(2).map(k=>{let A=k.indexOf("|")!==-1?x(v(k)):[k.trim()],D=E.length;for(;A.length<D;)A.push("");return A.length=D,w(A)});return{type:W.table,header:R,cells:M,align:T,endPos:g}}var l6=["div","p","section","article","aside","nav","header","footer","main","h1","h2","h3","h4","h5","h6","blockquote","ul","ol","li","dl","dt","dd","table","thead","tbody","tfoot","tr","td","th","form","fieldset","hr","pre","details","summary","figure","figcaption"],d6=new Set(["pre","script","style","textarea"]);function h9(t){return l6.indexOf(t.toLowerCase())!==-1}function A9(t){return d6.has(t)}function W1(t,i,u){for(var c=i;c<u;c++){let p=b(t,c);if(p!==f&&p!==l&&p!==X0)return!1}return!0}function W$(t,i,u){let c=t.inline;t.inline=i;try{return u()}finally{t.inline=c}}function k$(t,i,u){for(var c=i;c<u;){var p=I(t,c);if(W1(t,c,p))return c;c=C(t,p)}return u}function m$(t,i,u){return{type:W.htmlComment,text:g1(t),endPos:i,...u}}function M9(t,i,u,c,p,g,v,x,E){var _=g1(i),T=_;if(x&&x.forceBlock&&i&&!g){var w=new RegExp("^<"+t.toLowerCase()+"(\\s[^>]*)?>$","i");w.test(i.trim())&&(T="")}var R=T,M=t.toLowerCase(),k=new RegExp("^<"+M+"[\\s>]","i");if(k.test(R)){var A=R.indexOf(">");if(A!==-1){R=R.slice(A+1);var D="</"+M+">",z=R.indexOf(D);z!==-1&&(R=R.slice(0,z))}}else{var L="</"+M+">",U=R.indexOf(L);U!==-1&&(R=R.slice(0,U))}var V=[];if(R&&x){var Q=E||{inline:!1,inHTML:!0,inAnchor:!1},Z=R.trim(),F=F$.test(Z),Y=O$.test(Z),ne=H$.test(Z);if(F||Y||ne){var fe={...Q,inline:!1,inHTML:!0,inAnchor:Q.inAnchor||M==="a"};V=i9(Z,fe,x)}else if(Z){var oe={...Q,inline:!0,inAnchor:Q.inAnchor||M==="a"};V=k1(Z,0,Z.length,oe,x)}}return{type:W.htmlBlock,tag:t,attrs:c||{},rawAttrs:p,children:V,rawText:T,text:R,verbatim:!0,isClosingTag:g,canInterruptParagraph:v,endPos:u}}function p9(t){let i=O$.test(t),u=F$.test(t),c=N6.test(t);return i||u&&!c}function fZ(t,i,u,c,p,g,v,x,E,_){if(!x.inHTML&&!x.inline&&!n9(p,`
|
|
62
|
-
`)){let Te=g,ke=v.length;for(;Te<ke;){let Me=I(v,Te);if(W1(v,Te,Me))break;let Ve=v.slice(Te,Me).trim();if(Ve.length>0&&u9(Ve[0])){let ft=M$(v,Te,x,_);if(ft){Te=ft.endPos;continue}let je=n1(v,Te);if(je){Te=je.endPos;continue}return null}Te=C(v,Me)}}let T=i,w=A9(T);var R=!w&&!W9(i),M=void 0;if(p){var k=p.indexOf(">");if(k!==-1){var A=p.slice(0,k+1);A.indexOf(`
|
|
63
|
-
`)!==-1&&(M=A);for(var D=k,z=1;z<k;z++){var L=A[z];if(L===" "||L===" "||L===`
|
|
64
|
-
`||L===">"){D=z;break}}u=A.slice(D,k)}}var U=u.replace(/^[\s\n\r\t]+/,""),V=C1(U,i,t,_),Q={...V},Z=!1,F=!1;if(R&&c.length>0){var Y="</"+T,ne=c.indexOf(Y);if(ne>=0){for(var fe=ne+Y.length;fe<c.length&&(c[fe]===" "||c[fe]===" ");)fe++;if(fe<c.length&&c[fe]===">"){var oe=c.slice(0,ne);p9(oe)?(c=oe,F=!0):Z=!0}}if(!F){var le=c.length-1;if(c[le]===`
|
|
65
|
-
`){for(le--;le>=0&&(c[le]===" "||c[le]===" "||c[le]==="\r");)le--;le>=0&&c[le]===`
|
|
66
|
-
`&&(Z=!0)}}}var Se=w||R&&Z&&!p9(c),ve=g1(c),_e=ve;if(Se){ve.length>0&&ve[0]===`
|
|
67
|
-
`&&(ve=ve.slice(1),_e=ve),ve.length>0&&ve[ve.length-1]===`
|
|
68
|
-
`&&(ve=ve.slice(0,-1),_e=ve);var Y="</"+T+">",ne=ve.indexOf(Y);ne!==-1&&(ve=ve.slice(0,ne))}let K=ve.match(/^([ \t]*)/),pe=K?K[1]:"",te=new RegExp(`^${pe.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}`,"gm"),Re=ve.replace(te,""),Ae=F$.test(Re),H=O$.test(Re),ie=T==="p",ue=H$.test(Re),be=ie?Ae:Ae||H||x.inHTML&&ue,me=[];if(Re)if(be||ue){let Te={...x,inline:!1,inHTML:!0,inAnchor:x.inAnchor||T==="a"};me=i9(Re,Te,_)}else{let Te={...x,inline:!0,inAnchor:x.inAnchor||T==="a"};me=k1(Re,0,Re.length,Te,_)}var Ee=void 0;return Se&&(M!==void 0?Ee=M+_e:Ee=_e),{type:W.htmlBlock,tag:Se?i:t,attrs:Q,rawAttrs:u,children:me,rawText:Ee,text:Re,verbatim:Se,canInterruptParagraph:!0,endPos:g}}function M$(t,i,u,c){if(t[i]!=="<")return null;if(u.inline,i+1<t.length){if(t[i+1]==="?"){var p=U$(t,i);if(p&&p.kind==="pi")return m$(p.text||"",p.endPos,{raw:!0})}else if(t[i+1]==="!"){if(i+3<t.length&&t.slice(i,i+4)==="<!--"){u.inline;var g=U$(t,i);if(g&&g.kind==="comment"){var v=g.text||"",x=!1;return v==="<!-->"?(v="",x=!0):v==="<!--->"?(v="-",x=!0):v.startsWith("<!--")&&v.endsWith("-->")&&(v=v.slice(4,-3)),u.inline,m$(v,g.endPos,{endsWithGreaterThan:x})}}var E=U$(t,i);if(E&&(E.kind==="declaration"||E.kind==="cdata"))return m$(E.text||"",E.endPos,{raw:!0})}}if(i+1<t.length){let ui=t[i+1];if(ui===" "||ui===`
|
|
69
|
-
`||ui===" "||ui==="\r")return null}var _=t.indexOf(">",i+1);if(_!==-1){var T=t.slice(i+1,_),w=T.indexOf(" ")!==-1||T.indexOf(" ")!==-1;if(!w&&(s(T,"http://")||s(T,"https://"))||!w&&mZ(T))return null}var R=n1(t,i);if(!R&&!u.inline){for(var M=t.length,k=I(t,i),A=i,D=0;A<k&&D<3&&(t[A]===" "||t[A]===" ");)D++,A++;if(A>=k||t[A]!=="<")return null;if(A+1<k){var Nn=i$(t,A+1);if(Nn){var ca=Nn.tagName,z=h9(ca);if(!z)return null;for(var L=Nn.nextPos,U=!1,V=!1,Q="",Z=k,F=!1;Z<M&&!F;){for(var Y=!1;L<Z;){var ne=t[L];if(V)ne===Q&&(V=!1,Q=""),(ne===`
|
|
70
|
-
`||ne==="\r")&&(U=!0),L++,Y=!0;else if(ne==='"'||ne==="'")V=!0,Q=ne,L++,Y=!0;else if(ne===`
|
|
71
|
-
`||ne==="\r"){U=!0,L++,Y=!0;var fe=I(t,L);if(fe===L)break;Z=fe}else if(ne===">"){L++,F=!0;break}else L++,Y=!0}if(F)break;if(!Y&&L>=Z){var oe=I(t,Z+1);if(oe<=Z)break;Z=oe}else if(L>=Z&&Z<M){var oe=I(t,Z+1);if(oe<=Z)break;Z=oe}else break}if(!U&&F)return null;L>=k&&k<M&&(L=k);var le=z?"type6":"type7",Se=L,ve=k$(t,C(t,k),M),_e=t.slice(Se,ve),K=i+1<t.length&&t[i+1]==="/";if(le==="type7"&&_e.trim()===""){var pe=t.slice(i,ve),te=I(pe,0);te<pe.length&&te++;var Re=pe.slice(0,te);return M9(ca,Re,ve,{},void 0,K,!1,c,u)}var Ae=t.slice(i,ve);return M9(ca,Ae,ve,{},void 0,K,le==="type6",c,u)}}return null}if(!R)return null;if(_!==-1){var H=t.slice(i+1,_);if((s(H,"http://")||s(H,"https://"))&&(H.indexOf(" ")!==-1||H.indexOf(" ")!==-1))return null}var ke=i+(R.isClosing?2:1);if(ke<t.length){var ie=t[ke],ue=b(ie);if((ue>=97&&ue<=122||ue>=65&&ue<=90)&&ke+1<t.length&&t[ke+1]===":")return null}if(R.isClosing){var be=R.attrs.trim();if(be.length>0)return null;if(!u.inline){for(var M=t.length,k=I(t,i),Se=R.endPos,me=Se;me<k&&(t[me]===" "||t[me]===" "||t[me]==="\r");)me++;var Ee=me>=k||t[me]==="<"&&(function(){var Kr=n1(t,me);return Kr&&h9(Kr.tagLower)})();if(Ee){var ve=k$(t,C(t,k),M),_e=t.slice(Se,ve);_e.length>0&&(_e[0]==="\r"&&_e[1]===`
|
|
72
|
-
`?_e=_e.slice(2):(_e[0]===`
|
|
73
|
-
`||_e[0]==="\r")&&(_e=_e.slice(1)));let la=R.tagLower||R.tagName.toLowerCase();return M9(R.tagName,_e,ve,C1(R.whitespaceBeforeAttrs+R.attrs,la,R.tagName,c),R.whitespaceBeforeAttrs+R.attrs,!0,!1,c,u)}}var Te=t.slice(i,R.endPos);return{type:W.htmlSelfClosing,tag:R.tagName,attrs:{},endPos:R.endPos,isClosingTag:!0,rawText:Te}}var ke=i+(R.isClosing?2:1);if(ke<t.length){var Me=t[ke];if(Me===" "||Me===" "||Me===`
|
|
74
|
-
`||Me==="\r")return null}var Ve=R.tagLower,ft=W9(R.tagName);let je=R.tagName.length>0&&R.tagName[0]>="A"&&R.tagName[0]<="Z";if(R.isSelfClosing||ft&&Ve!=="a"){if(R.hasNewline&&!je||!u.inHTML&&!u.inline&&!je)return null;var vt=R.attrs.replace(/\/\s*$/,""),At=C1(vt,Ve,R.tagName,c),Te=u.inline?t.slice(i,R.endPos):void 0;let Ci={type:W.htmlSelfClosing,tag:R.tagName,attrs:At,endPos:R.endPos};return Te!==void 0&&(Ci.rawText=Te),Ci}if(u.inline){var Ue=R.attrs.replace(/\/\s*$/,""),dt=R.whitespaceBeforeAttrs+Ue,un=C1(Ue,Ve,R.tagName,c),_n={...un},Ye=R.endPos,Zt=[];if(!W9(R.tagName)){var wt=w6(t,R.endPos,Ve);if(wt!==null){var cn=t.slice(R.endPos,wt[0]);cn&&(u.inHTML&&H$.test(cn)||p9(cn)?Zt=i9(cn,{...u,inline:!1,inHTML:!0,inAnchor:u.inAnchor||Ve==="a"},c):Zt=k1(cn,0,cn.length,{...u,inline:!0,inAnchor:u.inAnchor||Ve==="a"},c)),Ye=wt[1]}}return{type:W.htmlBlock,tag:R.tagName,attrs:_n,rawAttrs:dt,children:Zt,verbatim:!1,endPos:Ye}}if(!u.inline){for(var M=t.length,k=I(t,i),Tt=R.tagLower,ot=A9(Tt),An=!ot&&h9(R.tagName),Xt=!1,Dt=i;Dt<R.endPos;){if(t[Dt]===">"){Xt=!0;break}Dt++}for(var me=R.endPos;me<k&&(t[me]===" "||t[me]===" ");)me++;var Pt=me>=k||t[me]===`
|
|
75
|
-
`||t[me]==="\r"||An&&me<k||!Xt;if(ot&&Xt&&!R.isClosing){var{tagName:pn,endPos:mn,attrs:Yn}=R,at=mn;t[at]===`
|
|
76
|
-
`&&at++;for(var gn=at,bt=at,pt=1,tt=Tt.length+1;pt>0;){var nt=t.indexOf("<",at);if(nt===-1){bt=M,at=M;break}var fn=-1,yn=-1;if(t[nt+1]==="/")yn=nt;else if(nt+tt+1<=M&&(t[nt+1]===Tt[0]||t[nt+1]===pn[0])){var qt=t.substring(nt+1,nt+tt);qt.toLowerCase()===Tt&&(t[nt+tt]===" "||t[nt+tt]===">")&&(fn=nt)}if(fn===-1&&yn===-1){at=nt+1;continue}if(fn!==-1&&(yn===-1||fn<yn))at=fn+tt+1,pt++;else{for(var rt=yn+2;rt<M;){var Jt=t[rt];if(Jt!==" "&&Jt!==" "&&Jt!==`
|
|
77
|
-
`&&Jt!=="\r")break;rt++}if(rt+Tt.length>M)break;var Ct=t.substring(rt,rt+Tt.length);if(Ct.toLowerCase()!==Tt){at=rt;continue}for(rt+=Tt.length;rt<M;){var Cn=t[rt];if(Cn!==" "&&Cn!==" "&&Cn!==`
|
|
78
|
-
`&&Cn!=="\r")break;rt++}if(rt>=M||t[rt]!==">"){at=rt;continue}var On=rt+1,mt=I(t,On);bt=mt,at=mt+1,pt--}}for(var dn=0;at+dn<M&&t[at+dn]===`
|
|
79
|
-
`;)dn++;var Kn=t.slice(i,at+dn),wn=t.slice(gn,bt),Zn=at+dn;return fZ(R.tagName,R.tagName,Yn,wn,Kn,Zn,t,u,!1,c)}if(Pt||!Xt){var le=An?"type6":"type7",Se=R.endPos,ve=k$(t,C(t,k),M);if(le==="type6"&&!R.isClosing){let ci=je?R.tagName:R.tagLower||R.tagName.toLowerCase();for(var Ut="</"+ci,$t="<"+ci,vn=Se,Nt=1,Ie=-1;vn<ve&&Nt>0;){for(var kt=t.indexOf($t,vn),tn=t.indexOf(Ut,vn);kt!==-1&&kt<ve;){var It=kt+$t.length;if(It>=M){kt=-1;break}var ht=t[It];if(ht===" "||ht===" "||ht===`
|
|
80
|
-
`||ht==="\r"||ht===">")break;kt=t.indexOf($t,It)}if((kt===-1||kt>=ve)&&(kt=ve),(tn===-1||tn>=ve)&&(tn=ve),kt<tn)Nt++,vn=kt+$t.length;else if(tn<ve){if(Nt--,Nt===0){Ie=tn;break}vn=tn+Ut.length}else break}if(Ie!==-1&&Ie<ve){for(var Ke=Ie+Ut.length;Ke<M&&(t[Ke]===" "||t[Ke]===" ");)Ke++;if(Ke<M&&t[Ke]===">"){for(var nn=Ke+1,Lt=nn;Lt<M&&t[Lt]!==`
|
|
81
|
-
`;)Lt++;for(Lt<M&&Lt++;Lt<M&&(t[Lt]===" "||t[Lt]===" ");)Lt++;if(Lt<M&&t[Lt]==="<"&&!s(t.slice(Lt),Ut)){var Ze=n1(t,Lt);Ze&&(ve=nn)}}}else if(Ie=t.indexOf(Ut,Se),Ie!==-1){var jn=t.slice(Se,Ie),Dn=je||p9(jn);if(Dn){for(var xe=Ie+Ut.length;xe<M&&(t[xe]===" "||t[xe]===" ");)xe++;if(xe<M&&t[xe]===">"){var q=I(t,xe+1);ve=q}}}}var _e=t.slice(Se,ve),ge=R.whitespaceBeforeAttrs+R.attrs,K=R.isClosing;let ya=()=>{let ci=R.tagLower||R.tagName.toLowerCase(),ba=R.whitespaceBeforeAttrs+R.attrs;return{parsed:C1(ba,ci,R.tagName,c),raw:ba}};if(le==="type7"&&_e.trim()===""){var ye=t.slice(i,R.endPos),De=ye.indexOf(`
|
|
82
|
-
`)!==-1;if(De)return null;var He=R.endPos,te=I(t,He);te<t.length&&te++;var Re=t.slice(i,te);let ir=ya();return M9(R.tagName,Re,ve,ir.parsed,ir.raw,K,!1,c,u)}var Ce=R.hasNewline,Ne=!Xt;if((Ce||Ne)&&le==="type7"){var We=R.endPos,Et=t.slice(i,We),ze=_e,Ae=Et+ze;let ba=ya();return M9(R.tagName,Ae,ve,ba.parsed,ba.raw,K,!1,c,u)}let va=R.tagLower||R.tagName.toLowerCase();var ut=C1(ge,va,R.tagName,c),Ge={...ut};if(le==="type6"){var Ot=_e,Bt=_e.indexOf("</"+va);if(Bt>=0){for(var me=Bt+2+R.tagName.length;me<_e.length&&(_e[me]===" "||_e[me]===" ");)me++;me<_e.length&&_e[me]===">"&&(Ot=_e.slice(0,Bt))}if(p9(Ot))return fZ(R.tagName,R.tagName,ge,Ot,t.slice(i,R.endPos),ve,t,u,!1,c)}var Fe=_e;Fe.length>0&&(Fe[0]==="\r"&&Fe[1]===`
|
|
83
|
-
`?Fe=Fe.slice(2):(Fe[0]===`
|
|
84
|
-
`||Fe[0]==="\r")&&(Fe=Fe.slice(1)));for(var bn=Fe.split(`
|
|
85
|
-
`),Vt=1/0,Ht=0;Ht<bn.length;Ht++){var Qt=bn[Ht];if(Qt.trim().length!==0){for(var D=0;D<Qt.length&&(Qt[D]===" "||Qt[D]===" ");)D++;D<Vt&&(Vt=D)}}if(Vt>0&&Vt<1/0){for(var Ba=[],kn=0;kn<bn.length;kn++){var za=bn[kn];za.trim().length===0?Ba.push(za):Ba.push(za.slice(Vt))}Fe=Ba.join(`
|
|
86
|
-
`)}return M9(R.tagName,Fe,ve,Ge,ge,K,le==="type6",c,u)}}if(u.inline)return null;var Nn=i$(t,i+1);if(!Nn)return null;var ca=Nn.tagName;if(!W9(ca))return null;let Ln=Nn.tagLower;for(var Gt=Nn.nextPos,ma=t.length;Gt<ma&&Q1(t[Gt]);)Gt++;for(var ar=Gt;Gt<ma&&t[Gt]!==">";)Gt++;if(Gt>=ma)return null;let Ua=t.slice(ar,Gt).trim(),Ia=Gt+1;for(;Ia<ma&&Q1(t[Ia]);)Ia++;let Qr="</"+Ln+">",ga=t.toLowerCase().indexOf(Qr,Ia);if(ga!==-1&&t.slice(Ia,ga).trim())return null;Gt++;let ss=Gt;for(;Gt<ma&&Q1(t[Gt]);)Gt++;Gt<ma&&t[Gt]===`
|
|
87
|
-
`&&Gt++;let Yr=C1(Ua,ca,ca,c);return{type:W.htmlSelfClosing,tag:ca,attrs:Yr,endPos:ss}}function i6(t,i){if(t[i]!=="<")return null;var u=t.length,c=!1,p=i+1;i+1<u&&t[i+1]==="/"&&(c=!0,p=i+2);var g=i$(t,p);if(!g)return null;var{tagName:v,tagLower:x,nextPos:E}=g;if(E<u){var _=t[E];if(_===">"||_==="/"){var T=_===">"?E+1:E+2;if(_==="/"&&(E+1>=u||t[E+1]!==">"))return null;var w=_==="/",R=h9(v),M=!A9(x)&&!R;return{kind:"tag",tagNameLower:x,tagName:v,isClosing:c,isSelfClosing:w,hasNewline:!1,type6Candidate:R,type7Candidate:M,endPos:T,attrs:"",whitespaceBeforeAttrs:""}}}for(var k=E,A=!1;E<u;){var D=t[E],z=b(t,E);if(!(D===" "||D===" "))if(z===10||z===13)A=!0;else break;E++}for(var L=t.slice(k,E),U=E,V=0,Q=!1,Z=!1,F=0;U<u;){var Y=t[U],z=b(t,U);if(F===1){if(Y==='"'){if(U+1<u&&t[U+1]==='"')return null;F=0}U++}else if(F===2)Y==="'"&&(F=0),U++;else if(Y==='"')F=1,U++;else if(Y==="'")F=2,U++;else if(Y==="{"||Y==="}"&&V>0)V+=Y==="{"?1:-1,U++;else if(Y===">"&&V===0){if(U>E){for(var ne=U-1;ne>=E;){var fe=t[ne];if(fe!==" "&&fe!==" ")break;ne--}ne>=E&&t[ne]==="/"&&(Q=!0,Z=ne<U-1)}U++;break}else{if(Y==="*"||Y==="#"||Y==="!"){for(var oe=U+1;oe<u;){var le=t[oe];if(le==="="||le===" "||le===" "||le===`
|
|
88
|
-
`||le==="\r"||le===">")break;oe++}if(oe<u&&t[oe]==="=")return null}(z===10||z===13)&&(A=!0),U++}}if(U>u||t[U-1]!==">"||F===1||F===2||V>0||Z)return null;var Se=U-1;Q&&Se--;for(var ve=t.slice(E,Se),_e=Q,K=-1,pe=!1,te="",Re=!1,Ae=0;Ae<ve.length;Ae++){var D=ve[Ae];if(pe)D===te&&(pe=!1,K=Ae,te="",Re=!1);else if(D==='"'||D==="'")pe=!0,te=D,Re=!1;else if(D==="=")Re=!0;else if(K!==-1&&Ae===K+1){var z=D.charCodeAt(0);if(V9(z))return null}else{if(Re&&!pe&&(D==="*"||D==="#"||D==="!"))return null;Q1(D)&&(Re=!1)}}var H=h9(v),ie=!A9(x)&&!H;return{kind:"tag",tagNameLower:x,tagName:v,isClosing:c,isSelfClosing:_e,hasNewline:A,type6Candidate:H,type7Candidate:ie,endPos:U,attrs:ve,whitespaceBeforeAttrs:L}}function U$(t,i){if(i>=t.length||t[i]!=="<")return null;var u=t.length;if(i+1>=u)return null;var c=t[i+1];if(c==="!"){if(i+4<=u&&t.slice(i,i+4)==="<!--"){var p=i+4;if(p<u&&t[p]===">")return{kind:"comment",hasNewline:!1,endPos:p+1,text:t.slice(i,p+1),raw:!0};if(p+1<u&&t[p]==="-"&&t[p+1]===">")return{kind:"comment",hasNewline:!1,endPos:p+2,text:t.slice(i,p+2),raw:!0};for(;p+2<u;){if(t.slice(p,p+3)==="-->")return{kind:"comment",hasNewline:!1,endPos:p+3,text:t.slice(i,p+3),raw:!0};p++}return null}if(i+9<=u&&t.slice(i,i+9)==="<![CDATA["){for(var p=i+9;p+2<u;){if(t.slice(p,p+3)==="]]>")return{kind:"cdata",hasNewline:!1,endPos:p+3,text:t.slice(i,p+3),raw:!0};p++}return null}if(i+2<u&&V9(t.charCodeAt(i+2))){for(var p=i+2;p<u&&t[p]!==">";)p++;return p>=u?null:{kind:"declaration",hasNewline:!1,endPos:p+1,text:t.slice(i,p+1),raw:!0}}return null}if(c==="?"){for(var p=i+2;p+1<u;){if(t.slice(p,p+2)==="?>")return{kind:"pi",hasNewline:!1,endPos:p+2,text:t.slice(i,p+2),raw:!0};p++}return null}return i6(t,i)}function h$(t,i){if(i>=t.length)return!1;var u=t[i];return u==="="||u==="-"||u==="_"||u==="*"||u==="#"||u===">"||u==="`"||u==="~"||u==="["||u>="0"&&u<="9"}function J$(t,i){if(i>=t.length)return!1;var u=t[i];return u==='"'||u==="'"||u==="("}function c6(t,i,u){var c=t.length;if(i>=c||t[i]!==u)return null;i++;for(var p=i,g=!1;i<c&&t[i]!==u;){var v=t.charCodeAt(i);if(v===d){if(g)return null;g=!0,i++}else if(v===X0)if(i+1<c&&t.charCodeAt(i+1)===d){if(g)return null;g=!0,i+=2}else g=!1,i++;else g=!1,v===f1&&i+1<c&&i++,i++}return i>=c?null:{value:t.slice(p,i),endPos:i+1}}function a6(t,i){var u=t.length;if(i>=u||t[i]!=="(")return null;i++;for(var c=i,p=1,g=!1;i<u&&p>0;){var v=t.charCodeAt(i);if(v===d){if(g)return null;g=!0,i++}else if(v===X0)if(i+1<u&&t.charCodeAt(i+1)===d){if(g)return null;g=!0,i+=2}else g=!1,i++;else g=!1,v===f1&&i+1<u?i++:v===FZ?p++:v===OZ&&p--,i++}return p!==0?null:{value:t.slice(c,i-1),endPos:i}}function r6(t,i){for(var u=t.length,c=i;c<u;){var p=c===0||t[c-1]===`
|
|
89
|
-
`,g=t.charCodeAt(c);if(g===d&&c>i){var v=c+1;if(v<u&&t.charCodeAt(v)===X0&&v++,v<u&&t.charCodeAt(v)===d){for(var x=v+1;x<u&&(t[x]===" "||t[x]===" ");)x++;var E=x-(c+1);if(t.charCodeAt(c+1)===X0&&E--,x<u&&t.charCodeAt(x)!==d&&t.charCodeAt(x)!==X0&&E<4)return c}}if(p&&s(t,"[^",c)){for(var _=c+2;_<u&&t[_]!=="]";)_++;if(_<u&&t[_]==="]"&&_+1<u&&t[_+1]===":")return c}c++}return u}function s6(t,i,u){let c=t.length,p=i,g=p<c&&t[p]==="<";g&&p++;let v=p,x=v;if(v>=c){if(!g)return null;x=v}else{if(u>0&&v<c&&t[v]===`
|
|
90
|
-
`)return null;for(;x<c&&!(g&&t[x]===">");){if(t[x]===`
|
|
91
|
-
`){let ne=x+1;if(ne>=c||ne<c&&t[ne]===`
|
|
92
|
-
`)break;let fe=ne;for(;fe<c&&(t[fe]===" "||t[fe]===" ");)fe++;if(fe<c&&J$(t,fe)||fe<c&&t[fe]==="[")break;if(fe<c){let oe=t[fe];if(h$(t,fe))break;if(oe>="a"&&oe<="z"){let le=fe+1;for(;le<c&&le<fe+32&&(t[le]>="a"&&t[le]<="z"||t[le]>="A"&&t[le]<="Z"||t[le]>="0"&&t[le]<="9"||t[le]==="+"||t[le]==="."||t[le]==="-");)le++;if(!(le<c&&t[le]===":"))break}}x=fe;continue}if(!g&&(t[x]===" "||t[x]===" ")){let ne=x+1;for(;ne<c&&(t[ne]===" "||t[ne]===" ");)ne++;if(ne<c&&J$(t,ne))break;if(ne<c&&t[ne]===`
|
|
93
|
-
`){let fe=ne+1;if(fe<c&&t[fe]===`
|
|
94
|
-
`)break;let oe=fe;for(;oe<c&&(t[oe]===" "||t[oe]===" ");)oe++;if(oe<c&&J$(t,oe))break}}x++}}if(g&&(x>=c||t[x]!==">"))return null;let E=t.slice(v,x),_=[],T=0;for(let ne=0;ne<=E.length;ne++)if(ne===E.length||E[ne]===`
|
|
95
|
-
`){let fe=E.slice(T,ne);fe=fe.trim(),(fe.length>0||_.length===0)&&_.push(fe),ne<E.length&&_.push(`
|
|
96
|
-
`),T=ne+1}E=_.join(""),E=E.trim(),p=g?x+1:x;var w=!1;if(p<c&&t[p]===`
|
|
97
|
-
`){for(var R=p+1,M=R;M<c&&(t[M]===" "||t[M]===" ");)M++;if(M<c){let ne=t[M];if(h$(t,M)&&(w=!0),!w&&ne!=="="&&ne!=="-"){var k=I(t,M);if(k<c){for(var A=C(t,k),D=A;D<c&&(t[D]===" "||t[D]===" ");)D++;if(D<c){var z=t[D];(z==="="||z==="-")&&(w=!0)}}}}}if(!w&&p<c&&J$(t,p))return null;let L=0;for(;p<c&&!w;){let ne=t[p];if(ne===`
|
|
98
|
-
`){if(L++,L>1)break;p++;var U=p;if(p=S0(t,p),p<c&&K9(t[p])&&t[p]!==`
|
|
99
|
-
`){p=U-1;break}if(p<c&&(t[p],h$(t,p))){w=!0,p=U-1;break}}else if(ne===" "||ne===" ")p++;else{if(K9(ne))break;break}}let V;if(p<c){let ne=t[p];var Q=ne==="("?a6(t,p):ne==='"'||ne==="'"?c6(t,p,ne):null;if(Q===null&&(ne==='"'||ne==="'"||ne==="("))return null;if(Q){V=Q.value,p=Q.endPos;for(var Z=p;Z<c&&(t[Z]===" "||t[Z]===" ");)Z++;if(Z<c&&t[Z]!==`
|
|
100
|
-
`&&t[Z]!=="\r")return null;p=Z}}if(p=S0(t,p),p<c&&t[p]!==`
|
|
101
|
-
`)for(var F=p;F<c&&t[F]!==`
|
|
102
|
-
`;){if(t[F]!==" "&&t[F]!==" ")return null;F++}if(V===void 0&&p<c&&t[p]!==`
|
|
103
|
-
`)for(var Y=p;Y<c&&t[Y]!==`
|
|
104
|
-
`;){if(t[Y]!==" "&&t[Y]!==" ")return null;Y++}return{endPos:p<c&&t[p]===`
|
|
105
|
-
`?p+1:p,target:E,title:V}}function o6(t,i){let u=r6(t,i),c=u<t.length&&t[u]===`
|
|
106
|
-
`&&t[u+1]===`
|
|
107
|
-
`,p=u,g=i;var v=[];let x=g,E=0,_=!1;for(;x<p;){let M=I(t,x);if(M>p&&(M=p),E===0){let k=M;for(;k>x&&(t[k-1]===" "||t[k-1]===" ");)k--;let A=t.slice(x,k);v.push(A),_=A.length===0}else{let k=0,A=x;for(;A<M&&A<x+4&&t[A]===" ";)k++,A++;let D=!1;for(let L=x;L<M;L++)if(t[L]!==" "&&t[L]!==" "&&t[L]!=="\r"){D=!0;break}let z=!D;k>=4&&_?v.push(t.slice(x,M)):k===4&&!_?v.push(t.slice(x+4,M)):v.push(t.slice(x,M)),_=z}if(M<p){let k=b(t,M);k===X0||k===d?(v.push(`
|
|
108
|
-
`),x=C(t,M)):x=p}else x=p;E++}let T=v.join("");c&&(T=T.replace(/\n$/,""));for(var w=T.length;w>0;){var R=T[w-1];if(R===`
|
|
109
|
-
`||R===" ")w--;else break}return w<T.length&&(T=T.slice(0,w)),{endPos:u,target:T,title:void 0}}function w9(t,i,u,c,p){if(t[i]!=="[")return null;var g=i+1<t.length&&t[i+1]==="^";if(p?!g:g)return null;for(var v=i;v>0&&t[v-1]!==`
|
|
110
|
-
`;)v--;if(n(t,v,i).spaceEquivalent>=4||u.inline)return null;var x=i+(p?2:1),E=t.length,_=R6(t,x,E,"]");if(_===-1)return null;var T=t.slice(x,_);if(T.length>999)return null;for(var w=!1,R=!1,M=!1,k=0;k<T.length;k++){var A=T[k];if(A==="\\"&&k+1<T.length){k++;continue}var D=b(A);D===P1||D===D9?R=!0:D===d||D===X0?M=!0:D!==f&&D!==l&&(w=!0)}if(!w||R)return null;var z=_+1;if(M){var L=b(t,x),U=b(t,_-1);if(L===d||L===X0||U===d||U===X0||z>=E||t[z]!==":")return null}else if((z>=E||t[z]!==":")&&(z=S0(t,z),z<E&&b(t,z)===d&&(z=S0(t,z+1)),z>=E||t[z]!==":"))return null;z++;for(var V=0;z<E;){var Q=b(t,z);if(Q===d){if(++V>1)break;z=S0(t,z+1)}else if(Q===f||Q===l)z++;else break}let Z=p?o6(t,z):s6(t,z,V);if(!Z)return null;let F=hZ(T),Y=u.refs||{},ne=p?`^${F}`:F;return Y[ne]||(Y[ne]={target:Q$(Z.target.trim()),title:Z.title?Q$(Z.title):void 0},u.refs=Y),{type:p?W.footnote:W.ref,endPos:Z.endPos}}function rZ(t,i,u){for(var c=[],p=0;p<i.length;){var g=i[p];if(!g||g.type!=="*"&&g.type!=="_"&&g.type!=="~"&&g.type!=="="){p++;continue}if(!g.canClose||!g.active){p++;continue}for(var v=g.type==="*"?0:g.type==="_"?1:g.type==="~"?2:3,x=v*6+g.length%3*2+(g.canOpen?1:0),E=c[x]!==void 0?c[x]:-1,_=-1,T=g.type,w=g.inAnchor,R=g.canOpen,M=g.length,k=M%3,A=p-1;A>E;A--){var D=i[A];if(!(!D||!D.active||D.type!==T||!D.canOpen||D.inAnchor!==w)){var z=D.length;if(!R&&!D.canClose||k===0||(z+M)%3!==0){_=A;break}}}if(_>=0){var L=i[_],z=L.length,U=z>=2&&M>=2,V=U?2:1;if(V>z||V>M){p++;continue}var Q=L.nodeIndex,Z=g.nodeIndex,F=Q+1,Y=Z,ne=t.slice(F,Y);if(ne.length>0){var fe=Y-F;t.splice(F,fe);for(var oe=0;oe<i.length;oe++)i[oe].nodeIndex>F&&(i[oe].nodeIndex-=fe);Z>F&&(Z-=fe)}var le=L.type==="~"?"del":L.type==="="?"mark":U?"strong":"em",Se={type:W.textFormatted,tag:le,children:ne},ve=t[Q];if(!ve||!ve.text){L.active=g.active=!1;continue}var _e=ve.text.length<=V;if(_e){t.splice(Q,1);for(var oe=0;oe<i.length;oe++)i[oe].nodeIndex>Q&&i[oe].nodeIndex--;Z>Q&&Z--}else ve.text=ve.text.slice(V);var K=t[Z];if(!K||!K.text){L.active=g.active=!1;continue}var pe=K.text.length<=V;if(pe){t.splice(Z,1);for(var oe=0;oe<i.length;oe++)i[oe].nodeIndex>Z&&i[oe].nodeIndex--}else K.text=K.text.slice(V);var te=_e?Q<Z?Z-1:Q:Q+1;(te<0||te>t.length)&&(te=te<0?0:t.length),t.splice(te,0,Se);for(var oe=0;oe<i.length;oe++)i[oe].nodeIndex>=te&&i[oe].nodeIndex++;for(var oe=_+1;oe<p;oe++)i[oe].active=!1;_e?L.active=!1:(L.length-=V,L.length===0&&(L.active=!1)),pe?(g.active=!1,p++):(g.length-=V,g.length===0&&(g.active=!1,p++))}else c[x]=p-1,!g.canOpen&&(g.active=!1),p++}for(var Re=0,A=0;A<i.length;A++)i[A].active&&(i[Re++]=i[A]);i.length=Re}function c9(t,i,u){var c=[],p=0,g=-3,v=g;if(i.inline)return k1(t,0,t.length,i,u);if(p===0&&t.startsWith("---")){var x=h6(t,p);x&&(c.push(x),p=x.endPos)}for(;p<t.length;){for(;p<t.length&&t[p]===`
|
|
111
|
-
`;)p++;if(p>=t.length)break;v=g;let w=t[p],R=d9(t,p,i,u);if(R){if(R.type===W.codeBlock){var E=w==="`"||w==="~";if(!E&&(w===" "||w===" ")){let L=I(t,p),U=n(t,p,L);E=U.spaceEquivalent<=3&&p+U.charCount<t.length&&(t[p+U.charCount]==="`"||t[p+U.charCount]==="~")}}if(R.type===W.htmlComment){c.push(R);let L=p;p=R.endPos;let U=I(t,L);if(p<U){let V=t.slice(p,U);V.trim().length>0&&c.push({type:W.text,text:V}),p=U,p<t.length&&t[p]===`
|
|
112
|
-
`&&p++}continue}if(R.type===W.htmlBlock||R.type===W.htmlSelfClosing){if(!(R.type===W.htmlSelfClosing&&R.isClosingTag===!0&&!i.inline&&!i.inHTML)){c.push(R),p=R.endPos;continue}}else{c.push(R),p=R.endPos;continue}}let M=v!==g?v:p;if(v===g){if(Q1(w)){let z=I(t,p),L=n(t,p,z),U=p+L.charCount;L.spaceEquivalent<=3&&U<t.length&&t[U]==="["?M=U:M=-1}else w==="["?M=p:M=-1;v=M}if(M>=0&&M+1<t.length&&t[M+1]==="^"&&(M=-1),M>=0){let z=w9(t,M,i,u,!1);if(z){c.push(z),p=z.endPos;continue}let L=S6(t,M,p===0);if(L.shouldSkip){p=L.newPos;continue}}let k=pZ(t,p,i,u);if(k){c.push(k),p=k.endPos;continue}let A=p;if(Q1(t[A])){let z=I(t,p),L=n(t,p,z);A=p+L.charCount}if(A<t.length&&t[A]==="["&&A+1<t.length&&t[A+1]==="^"){let z=w9(t,A,i,u,!0);if(z){p=z.endPos;continue}}let D=a$(t,p,i,u);if(D){c.push(D),p=D.endPos;continue}p++}let _=i.refs||{},T={};for(let w in _)T[w]=_[w];return e9(T)?[{type:W.refCollection,refs:T},...c]:c}function v$(t,i,u){var c=0,p=!0;let g=t.length;for(;c<g;){for(var v=0;c<g&&b(t,c)===d;)v++,c++;if(c>=g)break;v>0&&(p=!0);let U=b(t,c);if(U===h0||U===t1){var x=$Z(t,c,{},u);if(x){c=x.endPos,p=!0;continue}}for(var E=c,_=0;E<g&&_<4;){let V=b(t,E);if(V===f)_++,E++;else if(V===l)_+=4-_%4,E++;else break}if(_<4&&E<g&&b(t,E)===P1&&p)if(E+1<g&&b(t,E+1)===_9){p=!1;var z=I(t,c);c=z>=g?g:C(t,z);continue}else{var T=w9(t,E,{inline:!1,refs:i},u,!1);if(T){c=T.endPos,p=!0;continue}var z=I(t,c),w=t.indexOf(":",E+1);if(w===-1||w>=z){var R=n(t,c,z);!W1(t,c,z)&&U!==T9&&U!==I1&&U!==U1&&U!==d1&&R.spaceEquivalent<4&&(p=!1)}c=z>=g?g:C(t,z);continue}if(U===I1&&p){for(var M=c,k=[];M<g;){for(var z=I(t,M),A=M;A<z;){let Q=b(t,A);if(Q===f||Q===l)A++;else break}if(A>=z||b(t,A)!==I1)break;var D=A+1;D<z&&(b(t,D)===f||b(t,D)===l)&&D++,k.push(t.slice(D,z)),M=C(t,z)}if(k.length){v$(k.join(`
|
|
113
|
-
`),i,u),c=M,p=!0;continue}}var z=I(t,c);if(z>=g)c=g;else{var L=W1(t,c,z),R=n(t,c,z);c=C(t,z),p=U===T9||U===I1||U===U1||U===d1||L||R.spaceEquivalent>=4}}}var t6=/^\n+/,ZZ=typeof reactExports.createContext<"u"?reactExports.createContext(void 0):void 0;function e6(t){let i=!1;for(let c=0;c<t.length;c++){let p=t.charCodeAt(c);if(p>127||p===f1||p===h0){i=!0;break}}if(!i)return t;let u="";for(let c=0;c<t.length;c++){let p=t[c];if(p==="%"&&c+2<t.length&&/[0-9A-Fa-f]/.test(t[c+1])&&/[0-9A-Fa-f]/.test(t[c+2]))u+=t[c]+t[c+1]+t[c+2],c+=2;else if(p.charCodeAt(0)===f1)u+="%5C";else if(p.charCodeAt(0)===h0)u+="%60";else{let g=p.charCodeAt(0);u+=g>127?encodeURIComponent(p):p}}return u}function $5(t,i,u,c,p,g,v,x){switch(t.type){case W.blockQuote:{let _={key:u.key};return t.alert&&(_.className="markdown-alert-"+g(t.alert.toLowerCase(),c0),t.children.unshift({attrs:{},children:[{type:W.text,text:t.alert}],verbatim:!0,type:W.htmlBlock,tag:"header"})),c("blockquote",_,i(t.children,u))}case W.breakLine:return c("br",{key:u.key});case W.breakThematic:return c("hr",{key:u.key});case W.frontmatter:return x.preserveFrontmatter?c("pre",{key:u.key},t.text):null;case W.codeBlock:let E=t.lang?O9(t.lang):"";return c("pre",{key:u.key},c("code",{...s9(t.attrs||{}),className:E?`language-${E} lang-${E}`:""},t.text));case W.codeInline:return c("code",{key:u.key},t.text);case W.footnoteReference:return c("a",{key:u.key,href:p(t.target,"a","href")},c("sup",{key:u.key},t.text));case W.gfmTask:return c("input",{checked:t.completed,key:u.key,readOnly:!0,type:"checkbox"});case W.heading:return c(`h${t.level}`,{id:t.id,key:u.key},i(t.children,u));case W.htmlBlock:{let _=t;if(x.tagfilter&&$$(_.tag)){let T;if("rawText"in _&&typeof _.rawText=="string")T=_.rawText;else{let w="";if(_.attrs)for(let[R,M]of Object.entries(_.attrs))M===!0?w+=` ${R}`:M!=null&&M!==!1&&(w+=` ${R}="${String(M)}"`);T=`<${_.tag}${w}>`}return c("span",{key:u.key},T)}if(_.rawText&&_.verbatim){let T=function(Y){if(Y.type===W.htmlSelfClosing&&"isClosingTag"in Y&&Y.isClosingTag)return[];if(Y.type===W.paragraph){let ne=Y.children;return ne?ne.flatMap(T):[]}return Y.type===W.text?Y.text?.trim()?[Y]:[]:Y.type===W.htmlBlock&&Y.children?[{...Y,children:Y.children?.flatMap(T)}]:[Y]},w=_.tag.toLowerCase(),R=A9(w),M=/<[a-z][^>]{0,100}>/i.test(_.rawText),k=/<\/?pre\b/i.test(_.rawText);if(R&&!M){let Y=_.rawText.replace(new RegExp("\\s*</"+w+">\\s*$","i"),"");return x.tagfilter&&(Y=Z$(Y)),c(t.tag,{key:u.key,...t.attrs},Y)}if(k){let Y=x.tagfilter?Z$(_.rawText):_.rawText;return c(t.tag,{key:u.key,...t.attrs,dangerouslySetInnerHTML:{__html:Y}})}let A={slugify:Y=>g(Y,c0),sanitizer:p,tagfilter:!0},D=_.rawText.replace(/>\s+</g,"><").replace(/\n+/g," ").trim();if(new RegExp(`^<${_.tag}(\\s[^>]*)?>(\\s*</${_.tag}>)?$`,"i").test(D))return c(t.tag,{key:u.key,...t.attrs});let z=c9(D,{inline:!1,refs:v,inHTML:!1},A),L="</"+_.tag.toLowerCase()+">",U=new RegExp(`^<${_.tag}(\\s|>)`,"i").test(D),V=D.toLowerCase().trimEnd().endsWith(L),Q=U&&V,Z=!_.attrs||Object.keys(_.attrs).length===0,F=_.children&&_.children.length>0;return Q&&Z?i(z.flatMap(T),u):Q&&F?c(t.tag,{key:u.key,...t.attrs},i(_.children,u)):c(t.tag,{key:u.key,...t.attrs},i(z.flatMap(T),u))}return c(t.tag,{key:u.key,...t.attrs},t.children?i(t.children,u):"")}case W.htmlSelfClosing:{let _=t;if(x.tagfilter&&$$(_.tag)){let T;if("rawText"in _&&typeof _.rawText=="string")T=_.rawText;else{let w="";if(_.attrs)for(let[R,M]of Object.entries(_.attrs))M===!0?w+=` ${R}`:M!=null&&M!==!1&&(w+=` ${R}="${String(M)}"`);T=`<${_.tag}${w} />`}return c("span",{key:u.key},T)}return c(t.tag,{key:u.key,...t.attrs})}case W.image:return c("img",{key:u.key,alt:t.alt&&t.alt.length>0?t.alt:void 0,title:t.title||void 0,src:p(t.target,"img","src")});case W.link:{let _={key:u.key};return t.target!=null&&(_.href=e6(t.target)),t.title&&(_.title=t.title),c("a",_,i(t.children,u))}case W.table:{let _=t;return c("table",{key:u.key},c("thead",null,c("tr",null,_.header.map(function(T,w){return c("th",{key:w,style:_.align[w]==null?{}:{textAlign:_.align[w]}},i(T,u))}))),c("tbody",null,_.cells.map(function(T,w){return c("tr",{key:w},T.map(function(R,M){return c("td",{key:M,style:_.align[M]==null?{}:{textAlign:_.align[M]}},i(R,u))}))})))}case W.text:return t.text;case W.textFormatted:return c(t.tag,{key:u.key},i(t.children,u));case W.orderedList:case W.unorderedList:{let _=t.type===W.orderedList?"ol":"ul";return c(_,{key:u.key,start:t.type===W.orderedList?t.start:void 0},t.items.map(function(T,w){return c("li",{key:w},i(T,u))}))}case W.paragraph:return c("p",{key:u.key},i(t.children,u));case W.ref:return null;default:return null}}var Z5=(t,i,u,c,p,g)=>{let v=(_,T,w)=>{let R=()=>$5(_,T,w,i,u,c,p,g);return t?t(R,_,T,w):R()},x=_=>_.map(T=>"text"in T?T.text:""),E=(_,T={})=>{let w=(T.renderDepth||0)+1;if(w>2500)return x(_);T.renderDepth=w;let R=T.key,M=[],k=!1;for(let A=0;A<_.length;A++){T.key=A;let D=v(_[A],E,T),z=typeof D=="string";if(z&&k)M[M.length-1]+=D;else if(D!==null)if(Array.isArray(D))for(let L=0;L<D.length;L++)M.push(D[L]);else M.push(D);k=z}return T.key=R,T.renderDepth=w-1,M};return E},G5=(...t)=>t.filter(Boolean).join(" "),GZ=(t,i,u)=>{let c=t,p=i.split("."),g=0;for(;g<p.length&&(c=c?.[p[g]],c!==void 0);)g++;return c||u},Y5=(t,i)=>{let u=GZ(i,t,void 0);return u?typeof u=="function"||typeof u=="object"&&"render"in u?u:GZ(i,`${t}.component`,t):t};function J5(t,i){let u={...i||{}};u.overrides=u.overrides||{};let c=u.slugify||c0,p=u.sanitizer||s1,g=u.createElement||reactExports.createElement,v=D=>A$(D,{...u,wrapper:null});function x(D,z,...L){let U=GZ(u.overrides,`${D}.props`,{}),V=s9(z||{});if(v)for(let[Q,Z]of Object.entries(V))typeof Z=="string"&&Z.length>0&&Z[0]==="<"&&(gZ.test(Z)||CZ.test(Z)||n1(Z,0))&&(V[Q]=v(Z.trim()));return g(Y5(D,u.overrides),{...V,...U,className:G5(V?.className,U.className)||void 0},...L)}let E=[];for(let D=0;D<t.length;D++){let z=t[D];if(z.type===W.htmlBlock&&"rawText"in z&&z.rawText&&/<\/?pre\b/i.test(z.rawText)&&D+1<t.length&&t[D+1].type===W.paragraph&&"removedClosingTags"in t[D+1]&&t[D+1].removedClosingTags){let L=function(Z){let F="";for(let Y of Z){let ne=Y.type;if(ne===W.text)F+=Y.text;else if(ne===W.htmlSelfClosing&&"rawText"in Y&&Y.rawText)F+=Y.rawText;else if(ne===W.textFormatted){let fe=Y,oe=fe.tag==="em"?"_":fe.tag==="strong"?"**":"";F+=oe+L(fe.children)+oe}else"children"in Y&&Y.children&&(F+=L(Y.children))}return F},U=z,V=t[D+1],Q=L(V.children);V.removedClosingTags&&(Q+=V.removedClosingTags.filter(Z=>Z.type===W.htmlSelfClosing&&"rawText"in Z&&Z.rawText&&Z.rawText.indexOf(`</${U.tag}>`)===-1).map(Z=>Z.type===W.htmlSelfClosing&&"rawText"in Z&&Z.rawText||"").join("")),U.rawText=(U.rawText||"")+`
|
|
114
|
-
`+Q,U.text=U.rawText,D++}E.push(z)}t=E;let _={...u,slugify:D=>c(D,c0),sanitizer:p,tagfilter:u.tagfilter!==!1},T=t[0]&&t[0].type===W.refCollection?t[0].refs:{},w=Z5(u.renderRule,x,p,c,T,u),R=w(t,{inline:u.forceInline,refs:T}),M=[];for(let D in T)D.charCodeAt(0)===_9&&M.push({identifier:D,footnote:T[D].target});if(M.length&&R.push(x("footer",{key:"footer"},M.map(function(D){let z=D.identifier.charCodeAt(0)===_9?D.identifier.slice(1):D.identifier,L=c9(D.footnote,{inline:!0,refs:T},_);return x("div",{id:c(z,c0),key:D.identifier},z+": ",w(L,{inline:!0,refs:T}))}))),u.wrapper===null)return R;let k=u.wrapper||(u.forceInline?"span":"div"),A;if(R.length>1||u.forceWrapper)A=R;else return R.length===1?R[0]:null;return g(k,{key:"outer",...u.wrapperProps},A)}function A$(t="",i={}){let u={...i||{}};u.overrides=u.overrides||{};let c=u.slugify||c0,p=u.sanitizer||s1;function g(x){let E=u.forceInline||!u.forceBlock&&!T$.test(x),_={...u,slugify:R=>c(R,c0),sanitizer:p,tagfilter:u.tagfilter!==!1};E||v$(x,v,_);let T=x;if(!E){let R=T.length;for(;R>0&&(T[R-1]===`
|
|
115
|
-
`||T[R-1]==="\r");)R--;T=T.slice(0,R),T=`${T.replace(t6,"")}
|
|
116
|
-
|
|
117
|
-
`}let w=c9(E?x:T,{inline:E,refs:v},_);return J5(w,{..._,forceInline:E})}let v={};return g(t)}var oZ=({children:t,options:i,...u})=>{if(!(typeof reactExports.useContext<"u")){let v={...i,overrides:{...i?.overrides},wrapperProps:{...i?.wrapperProps,...u}};return A$(t??"",v)}let c=reactExports.useContext(ZZ),p=reactExports.useMemo(()=>({...c,...i,overrides:{...c?.overrides,...i?.overrides},wrapperProps:{...c?.wrapperProps,...i?.wrapperProps,...u}}),[c,i,u]),g=t??"";return reactExports.useMemo(()=>A$(g,p),[g,p])},X5=oZ;const generalConditionsContainer="_generalConditionsContainer_55hjg_1",generalConditions="_generalConditions_55hjg_1",generalConditionsHeader="_generalConditionsHeader_55hjg_15",generalConditionsBody="_generalConditionsBody_55hjg_26",generalConditionsAccept="_generalConditionsAccept_55hjg_35",styles$l={generalConditionsContainer,generalConditions,generalConditionsHeader,generalConditionsBody,generalConditionsAccept},CaretDown=()=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:jsxRuntimeExports.jsx("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"})}),CaretUp=()=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:jsxRuntimeExports.jsx("path",{d:"M212.24,164.24a6,6,0,0,1-8.48,0L128,88.49,52.24,164.24a6,6,0,0,1-8.48-8.48l80-80a6,6,0,0,1,8.48,0l80,80A6,6,0,0,1,212.24,164.24Z"})}),HEADER_KEY="general-conditions.header",BODY_KEY="general-conditions.body",ACCEPT_KEY="general-conditions.accept-conditions-note",GeneralConditions=()=>{const t=useTranslation(),[i,u]=reactExports.useState(!1),c=()=>u(!i),p=x=>{x.key==="ArrowDown"||x.key==="ArrowRight"?u(!0):x.key==="ArrowUp"||x.key==="ArrowLeft"||x.key==="Escape"?u(!1):(x.key==="Enter"||x.key==="Space"||x.key===" ")&&c()},g=t(HEADER_KEY),v=t(ACCEPT_KEY);return jsxRuntimeExports.jsxs("div",{className:clsx(styles$l.generalConditionsContainer,"chat__generalConditions"),children:[!!g?.length&&jsxRuntimeExports.jsxs("div",{className:styles$l.generalConditions,children:[jsxRuntimeExports.jsxs("div",{role:"button",onClick:c,onKeyDown:p,tabIndex:0,className:clsx(styles$l.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":i?"true":"false","aria-pressed":i?"true":"false",children:[jsxRuntimeExports.jsx(X5,{children:g}),i?jsxRuntimeExports.jsx(CaretUp,{}):jsxRuntimeExports.jsx(CaretDown,{})]}),jsxRuntimeExports.jsx("div",{className:clsx(styles$l.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:i&&jsxRuntimeExports.jsx(X5,{children:t(BODY_KEY)||""})})]}),!!v?.length&&jsxRuntimeExports.jsx("div",{className:clsx(styles$l.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:jsxRuntimeExports.jsx(X5,{children:t(ACCEPT_KEY)||""})})]})},messageContainer="_messageContainer_1rxi5_1",message="_message_1rxi5_1",messageBot="_messageBot_1rxi5_14",messageBotLast="_messageBotLast_1rxi5_45",avatar="_avatar_1rxi5_45",messageBotFirst="_messageBotFirst_1rxi5_54",messageBotAnimated="_messageBotAnimated_1rxi5_67",messageGuest="_messageGuest_1rxi5_78",messageGuestFirst="_messageGuestFirst_1rxi5_84",messageGuestLast="_messageGuestLast_1rxi5_90",botAvatar="_botAvatar_1rxi5_104",agentAvatar="_agentAvatar_1rxi5_108",bubble="_bubble_1rxi5_112",bubbleContent="_bubbleContent_1rxi5_118",bubbleLeft="_bubbleLeft_1rxi5_132",leftText="_leftText_1rxi5_143",bubbleRight="_bubbleRight_1rxi5_150",rightText="_rightText_1rxi5_160",sourceInfoReference="_sourceInfoReference_1rxi5_192",sourceInfoReferenceActive="_sourceInfoReferenceActive_1rxi5_204",styles$k={messageContainer,message,messageBot,messageBotLast,avatar,messageBotFirst,messageBotAnimated,messageGuest,messageGuestFirst,messageGuestLast,botAvatar,agentAvatar,bubble,bubbleContent,bubbleLeft,leftText,bubbleRight,rightText,sourceInfoReference,sourceInfoReferenceActive},useClickOutsideEventListener=(t,i)=>{reactExports.useEffect(()=>{const u=c=>{t.current&&!t.current.contains(c.target)&&i()};return document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)},[t,i])};function debounce(t,i){let u=null,c=null;const p=(...g)=>{c=g,u&&clearTimeout(u),u=setTimeout(()=>{t(...c),u=null,c=null},i)};return p.flush=()=>{u&&c&&(clearTimeout(u),t(...c),u=null,c=null)},p}function throttle(t,i){let u=0,c=null;return((...p)=>{const g=Date.now(),v=g-u;v>=i?(u=g,t(...p)):(c&&clearTimeout(c),c=setTimeout(()=>{u=Date.now(),t(...p)},i-v))})}const container$5="_container_131ib_1",categoryContainer="_categoryContainer_131ib_13",categoryButton="_categoryButton_131ib_20",active$2="_active_131ib_35",commentTextarea="_commentTextarea_131ib_44",styles$j={container:container$5,categoryContainer,categoryButton,active:active$2,commentTextarea},useTrapFocusEffect=(t,i,u)=>{reactExports.useEffect(()=>{if(t){const c=()=>{const g=["button:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])',"a[href]","input:not([disabled])","select:not([disabled])"].join(","),v=i.current?Array.from(i.current.querySelectorAll(g)):[],x=u.current?Array.from(u.current.querySelectorAll(g)):[];return[...v,...x]},p=g=>{if(g.key==="Tab"){const v=c();if(v.length>0){const x=v[0],E=v[v.length-1],_=document.activeElement;!g.shiftKey&&_===E?(g.preventDefault(),x.focus()):g.shiftKey&&_===x&&(g.preventDefault(),E.focus())}}};return document.addEventListener("keydown",p,!0),()=>{document.removeEventListener("keydown",p,!0)}}},[t,i,u])},BadReactionForm=({open:t,actionsRef:i,reaction:u,onReaction:c})=>{const p=useTranslation(),g=reactExports.useRef(null),v=debounce(_=>{c({...u,comment:_})},300);reactExports.useEffect(()=>()=>v.flush(),[v]),useTrapFocusEffect(t,i,g);const x=_=>{c({...u,category:u.category===_?void 0:_})},E=_=>v(_.target.value);return t?jsxRuntimeExports.jsxs("div",{ref:g,className:styles$j.container,role:"dialog","aria-modal":"true","aria-labelledby":"bad-reaction-title",children:[jsxRuntimeExports.jsx("h2",{id:"bad-reaction-title",children:p("bot-bubble.reaction.say-more")}),jsxRuntimeExports.jsx("div",{className:styles$j.categoryContainer,role:"radiogroup",children:["WRONG_INFORMATION","MISSING_INFORMATION","OLD_INFORMATION","UNCLEAR","OFF_TOPIC"].map(_=>jsxRuntimeExports.jsx("button",{className:clsx(styles$j.categoryButton,u?.category===_&&styles$j.active),onClick:()=>x(_),"aria-pressed":u?.category===_,"aria-label":p(`bot-bubble.reaction.category.${_}`),tabIndex:0,role:"radio",children:p(`bot-bubble.reaction.category.${_}`)},_))}),jsxRuntimeExports.jsx("textarea",{id:"comment",name:"comment",placeholder:p("bot-bubble.reaction.comment"),defaultValue:u?.comment,onChange:E,className:styles$j.commentTextarea,rows:3,"aria-label":p("bot-bubble.reaction.comment")})]}):null},botMessageActionContainer="_botMessageActionContainer_g6hpe_1",alwaysVisible="_alwaysVisible_g6hpe_15",active$1="_active_g6hpe_19",botMessageActionInnerContainer="_botMessageActionInnerContainer_g6hpe_27",header$1="_header_g6hpe_52",botMessageActions="_botMessageActions_g6hpe_57",reported="_reported_g6hpe_68",action="_action_g6hpe_72",anyReport="_anyReport_g6hpe_120",closeButton="_closeButton_g6hpe_136",styles$i={botMessageActionContainer,alwaysVisible,active:active$1,botMessageActionInnerContainer,header:header$1,botMessageActions,reported,action,anyReport,closeButton},CloseButton=({isSubmitting:t,onClick:i})=>{const u=useTranslation();return jsxRuntimeExports.jsx("button",{className:clsx(styles$i.action,styles$i.closeButton,"tooltip--bottom-left"),"aria-label":u("bot-bubble.reaction.close"),"data-title":u("bot-bubble.reaction.close"),tabIndex:0,onClick:i,children:jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:t?jsxRuntimeExports.jsx("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}):jsxRuntimeExports.jsx("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"})})})},BotMessageActions=({alwaysVisible:t,senderType:i,reaction:u,botMessageRef:c,message:p,onReaction:g})=>{const v=useTranslation(),[x,E]=reactExports.useState(!1),[_,T]=reactExports.useState(!1),[w,R]=reactExports.useState(!1),M=reactExports.useRef(null),k=reactExports.useRef(null);useClickOutsideEventListener(M,()=>{R(!1)});const A=Q=>{Q.key==="Escape"&&R(!1)};reactExports.useEffect(()=>(document.addEventListener("keydown",A),()=>{document.removeEventListener("keydown",A)}),[]),reactExports.useEffect(()=>{w&&M.current?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[w]);const D=Q=>{k.current&&clearTimeout(k.current),T(!0),g(Q),k.current=setTimeout(()=>{T(!1)},1e3)},z=reactExports.useCallback(async()=>{if(c.current)try{E(!0);const Q=c.current.innerHTML,Z=c.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([Q],{type:"text/html"}),"text/plain":new Blob([Z],{type:"text/plain"})})]),await new Promise(F=>setTimeout(F,1500))}finally{E(!1)}},[c]),L=()=>{R(!1),g(u?.type==="GOOD"?null:{type:"GOOD"})},U=()=>{g({...p.reaction,type:"BAD"}),R(!w)},V=Q=>Z=>{(Z.key==="Enter"||Z.key===" ")&&Q()};return jsxRuntimeExports.jsx("div",{ref:M,className:clsx(styles$i.botMessageActionContainer,t&&styles$i.alwaysVisible,w&&styles$i.active),"aria-hidden":"true",children:jsxRuntimeExports.jsxs("div",{className:clsx(styles$i.botMessageActionInnerContainer,t&&styles$i.alwaysVisible,w&&styles$i.active,u&&styles$i.reported),role:"group","aria-label":v("bot-bubble.actions.label"),children:[jsxRuntimeExports.jsxs("div",{className:styles$i.header,children:[jsxRuntimeExports.jsxs("div",{className:clsx(styles$i.botMessageActions,u&&styles$i.reported),children:[i===UserType.BOT&&jsxRuntimeExports.jsx("button",{className:clsx(styles$i.action,u?.type&&styles$i.anyReport,u?.type==="GOOD"&&styles$i.reported,"tooltip--top-right"),tabIndex:0,"aria-label":v(u?.type==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),"aria-pressed":u?.type==="GOOD","data-title":v(u?.type==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),onPointerDown:L,onKeyDown:V(L),children:jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:u?.type==="GOOD"?jsxRuntimeExports.jsx("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32Z"}):jsxRuntimeExports.jsx("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32ZM223.94,97l-12,96a8,8,0,0,1-7.94,7H88V105.89l36.71-73.43A24,24,0,0,1,144,56V80a8,8,0,0,0,8,8h64a8,8,0,0,1,7.94,9Z"})})}),i===UserType.BOT&&jsxRuntimeExports.jsx("button",{className:clsx(styles$i.action,u?.type&&styles$i.anyReport,u?.type==="BAD"&&styles$i.reported,"tooltip--top-right"),tabIndex:0,"aria-label":v("bot-bubble.reaction.bad"),"aria-pressed":u?.type==="BAD","data-title":v("bot-bubble.reaction.bad"),onPointerDown:U,onKeyDown:V(U),children:jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:u?.type==="BAD"?jsxRuntimeExports.jsx("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Z"}):jsxRuntimeExports.jsx("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Zm150,21.29a7.88,7.88,0,0,1-6,2.71H152a8,8,0,0,0-8,8v24a24,24,0,0,1-19.29,23.54L88,150.11V56H204a8,8,0,0,1,7.94,7l12,96A7.87,7.87,0,0,1,222,165.29Z"})})}),jsxRuntimeExports.jsx("button",{className:clsx(styles$i.action,"tooltip--top-right"),style:{visibility:w?"hidden":"visible"},tabIndex:0,"aria-label":v("bot-bubble.copy"),"data-title":v("bot-bubble.copy"),onClick:z,children:jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:x?jsxRuntimeExports.jsx("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}):jsxRuntimeExports.jsx("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"})})})]}),w&&jsxRuntimeExports.jsx(CloseButton,{isSubmitting:_,onClick:()=>R(!1)})]}),p.reaction&&jsxRuntimeExports.jsx(BadReactionForm,{open:w,actionsRef:M,reaction:p.reaction,onReaction:D})]})})},BotMessage=reactExports.forwardRef(({message:t,isAnimated:i,isLastMessage:u,isFirstMessageBySender:c,isLastMessageBySender:p,children:g,onReaction:v},x)=>{const E=useTranslation(),_=reactExports.useRef(null),T=t.sender.type===UserType$1.BOT;return jsxRuntimeExports.jsxs("li",{ref:x,className:clsx(styles$k.message,styles$k.messageBot,u&&styles$k.lastMessage,c&&styles$k.messageBotFirst,p&&styles$k.messageBotLast,"chat__bubbleContainer",i&&styles$k.messageBotAnimated,i&&"chat__bubbleContainer--animated",T?"chat__botBubbleContainer":"chat__agentBubbleContainer",c&&"chat__bubbleContainer--first",p&&"chat__bubbleContainer--last"),role:"article",children:[jsxRuntimeExports.jsx("img",{className:clsx(styles$k.avatar,T?styles$k.botAvatar:styles$k.agentAvatar,"chat__avatar",T?"chat__botAvatar":"chat__agentAvatar"),src:`${t.sender.avatar}`,alt:T?"Bot":"Agent",referrerPolicy:"no-referrer","aria-hidden":"true"}),jsxRuntimeExports.jsxs("div",{className:styles$k.messageContainer,children:[jsxRuntimeExports.jsx("div",{ref:_,className:clsx(styles$k.bubble,styles$k.bubbleLeft,"chat__bubble",T?"chat__botBubble":"chat__agentBubble"),tabIndex:0,role:"group","aria-label":E(T?"bot-bubble.label":"agent-bubble.label"),children:jsxRuntimeExports.jsx("div",{className:clsx(styles$k.leftText),children:g})}),v&&jsxRuntimeExports.jsx(BotMessageActions,{alwaysVisible:u&&p,senderType:t.sender.type,reaction:t.reaction,message:t,botMessageRef:_,onReaction:v})]})]})}),sourceList="_sourceList_1sc0q_1",source="_source_1sc0q_1",label="_label_1sc0q_39",styles$h={sourceList,source,label},Docx=t=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:jsxRuntimeExports.jsx("path",{d:"M52,146H36a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6H52a34,34,0,0,0,0-68Zm0,56H42V158H52a22,22,0,0,1,0,44Zm168.15-5.46a6,6,0,0,1,.18,8.48A28.06,28.06,0,0,1,200,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,200,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a16.23,16.23,0,0,0,11.67-5.28A6,6,0,0,1,220.15,196.54ZM128,146c-16.54,0-30,15.25-30,34s13.46,34,30,34,30-15.25,30-34S144.54,146,128,146Zm0,56c-9.93,0-18-9.87-18-22s8.07-22,18-22,18,9.87,18,22S137.93,202,128,202ZM48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Z"})}),File$1=t=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:jsxRuntimeExports.jsx("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Z"})}),Pdf=t=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:jsxRuntimeExports.jsx("path",{d:"M222,152a6,6,0,0,1-6,6H190v20h18a6,6,0,0,1,0,12H190v18a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6h32A6,6,0,0,1,222,152ZM90,172a26,26,0,0,1-26,26H54v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6H64A26,26,0,0,1,90,172Zm-12,0a14,14,0,0,0-14-14H54v28H64A14,14,0,0,0,78,172Zm84,8a34,34,0,0,1-34,34H112a6,6,0,0,1-6-6V152a6,6,0,0,1,6-6h16A34,34,0,0,1,162,180Zm-12,0a22,22,0,0,0-22-22H118v44h10A22,22,0,0,0,150,180ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,0,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,0,1-12,0ZM158,82h35.52L158,46.48Z"})}),Web=t=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:jsxRuntimeExports.jsx("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm81.57,64H169.19a132.58,132.58,0,0,0-25.73-50.67A90.29,90.29,0,0,1,209.57,90ZM218,128a89.7,89.7,0,0,1-3.83,26H171.81a155.43,155.43,0,0,0,0-52h42.36A89.7,89.7,0,0,1,218,128Zm-90,87.83a110,110,0,0,1-15.19-19.45A124.24,124.24,0,0,1,99.35,166h57.3a124.24,124.24,0,0,1-13.46,30.38A110,110,0,0,1,128,215.83ZM96.45,154a139.18,139.18,0,0,1,0-52h63.1a139.18,139.18,0,0,1,0,52ZM38,128a89.7,89.7,0,0,1,3.83-26H84.19a155.43,155.43,0,0,0,0,52H41.83A89.7,89.7,0,0,1,38,128Zm90-87.83a110,110,0,0,1,15.19,19.45A124.24,124.24,0,0,1,156.65,90H99.35a124.24,124.24,0,0,1,13.46-30.38A110,110,0,0,1,128,40.17Zm-15.46-.84A132.58,132.58,0,0,0,86.81,90H46.43A90.29,90.29,0,0,1,112.54,39.33ZM46.43,166H86.81a132.58,132.58,0,0,0,25.73,50.67A90.29,90.29,0,0,1,46.43,166Zm97,50.67A132.58,132.58,0,0,0,169.19,166h40.38A90.29,90.29,0,0,1,143.46,216.67Z"})}),SourceIcon=({type:t,...i})=>{switch(t){case"WEBSITE":return jsxRuntimeExports.jsx(Web,{...i});case"PDF":return jsxRuntimeExports.jsx(Pdf,{...i});case"DOCX":return jsxRuntimeExports.jsx(Docx,{...i});default:return jsxRuntimeExports.jsx(File$1,{...i})}},MessageSources=({sources:t,onLinkClick:i})=>{const u=useTranslation(),c=g=>()=>{i(g.url)},p=g=>v=>{(v.key==="Enter"||v.key===" ")&&i(g.url)};return t.length?jsxRuntimeExports.jsx("ul",{className:styles$h.sourceList,"aria-label":u("bot-bubble.sources"),children:t.map(g=>jsxRuntimeExports.jsx("li",{className:styles$h.source,children:jsxRuntimeExports.jsxs("a",{role:"button",tabIndex:0,"aria-label":`${u("bot-bubble.source.open")}: ${g.label}`,onClick:c(g),onKeyDown:p(g),children:[jsxRuntimeExports.jsx(SourceIcon,{type:g.type,"aria-hidden":"true"}),jsxRuntimeExports.jsx("div",{className:styles$h.label,children:g.label})]})},g.url))}):null},button$2="_button_3ui4g_1",buttonDefault="_buttonDefault_3ui4g_13",buttonPrimary="_buttonPrimary_3ui4g_28",styles$g={button:button$2,buttonDefault,buttonPrimary},Button=({className:t,children:i,...u})=>jsxRuntimeExports.jsx("button",{className:clsx(styles$g.button,t),type:"button",role:"button",...u,children:i}),title="_title_137pi_1",buttons$1="_buttons_137pi_6",button$1="_button_137pi_6",imageContainer="_imageContainer_137pi_29",image="_image_137pi_29",video_container="_video_container_137pi_44",video="_video_137pi_44",only="_only_137pi_58",styles$f={title,buttons:buttons$1,button:button$1,imageContainer,image,video_container,video,only},Buttons=({buttons:t,onButtonClick:i})=>jsxRuntimeExports.jsx("div",{className:clsx(styles$f.buttons,"chat__bubbleButtons"),children:t.map((u,c)=>jsxRuntimeExports.jsx(Button,{className:clsx(styles$f.button,"chat__bubbleButton"),onClick:()=>i(u),children:u.title},c))}),OPEN_LINK_IN_NEW_TAB_INDICATOR="newtab#",MarkdownText=({markdown:t,markdownOptions:i={},onLinkClick:u})=>{const c=g=>v=>(v.preventDefault(),g&&u(g),!1),p=({title:g,href:v,children:x})=>v.indexOf(OPEN_LINK_IN_NEW_TAB_INDICATOR)===0?jsxRuntimeExports.jsx("a",{href:v.slice(OPEN_LINK_IN_NEW_TAB_INDICATOR.length),title:g,target:"_blank",rel:"noopener noreferrer",children:x}):jsxRuntimeExports.jsx("a",{onClick:c(v),title:g,href:v,children:x});return jsxRuntimeExports.jsx(X5,{options:{...i,overrides:{a:p}},children:t})},Text$2=({text:t,onLinkClick:i})=>t?jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(MarkdownText,{markdown:t,onLinkClick:i})}):null,Title=({title:t})=>t?jsxRuntimeExports.jsx("h1",{className:styles$f.title,children:t}):null,Body=({title:t,text:i,buttons:u,onButtonClick:c,onLinkClick:p})=>t?.length||i?.length||u?.length?jsxRuntimeExports.jsxs("div",{className:clsx(styles$k.bubbleContent),children:[jsxRuntimeExports.jsx(Title,{title:t}),jsxRuntimeExports.jsx(Text$2,{text:i,onLinkClick:p}),jsxRuntimeExports.jsx(Buttons,{buttons:u,onButtonClick:c})]}):null,Image=({alt:t,imageUrl:i,itemUrl:u,hasBody:c})=>i?u?u.indexOf("youtube.com")>-1?jsxRuntimeExports.jsx("div",{className:styles$f.video_container,children:jsxRuntimeExports.jsx("iframe",{className:clsx(styles$f.video,{[styles$f.only]:!c}),title:"Youtube",width:"100%",src:u+"?rel=0",frameBorder:"0",allowFullScreen:!0})}):jsxRuntimeExports.jsx("a",{href:u,target:"_blank",rel:"noopener noreferrer",children:jsxRuntimeExports.jsx("div",{className:styles$f.imageContainer,children:jsxRuntimeExports.jsx("img",{className:clsx(styles$f.image,{[styles$f.only]:!c}),src:i,alt:t})})}):jsxRuntimeExports.jsx("div",{className:styles$f.imageContainer,children:jsxRuntimeExports.jsx("img",{className:clsx(styles$f.image,{[styles$f.only]:!c}),src:i,alt:t})}):null,DetailMessage=({title:t,text:i,imageUrl:u,itemUrl:c,buttons:p,sources:g,onButtonClick:v,onLinkClick:x})=>{const E=!!t?.length||!!i?.length||!!p?.length;return jsxRuntimeExports.jsxs("div",{className:clsx(styles$f.detailMessage),children:[jsxRuntimeExports.jsx(Image,{hasBody:E,imageUrl:u,itemUrl:c,alt:t||""}),E&&jsxRuntimeExports.jsx(Body,{title:t,text:i,buttons:p,onLinkClick:x,onButtonClick:v}),jsxRuntimeExports.jsx(MessageSources,{sources:g,onLinkClick:x})]})},UserMessage=reactExports.forwardRef(({isFirstMessageBySender:t,isLastMessageBySender:i,children:u},c)=>{const p=useTranslation();return jsxRuntimeExports.jsx("li",{ref:c,className:clsx(styles$k.message,styles$k.messageGuest,t&&styles$k.messageGuestFirst,i&&styles$k.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",t&&"chat__bubbleContainer--first",i&&"chat__bubbleContainer--last"),role:"article",children:jsxRuntimeExports.jsx("div",{className:clsx(styles$k.bubble,styles$k.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,role:"group","aria-label":p("guest-bubble.label"),children:jsxRuntimeExports.jsx("div",{className:clsx(styles$k.rightText),children:u})})})}),useClientName=()=>reactExports.useMemo(()=>getClientName(),[]),markdown="_markdown_nw7vg_1",markdownStyle={markdown},SOURCE_REFERENCE_CLASS="source-info-reference",MarkdownMessage=({actionId:t,markdown:i,sources:u,onLinkClick:c})=>{const p=useClientName(),g=useAppDispatch(),v=getFootnoteReferenceCounter(),x=useAppSelector(T=>{const w=T.chat.sourceInfos;if(w?.type==="loaded"||w?.type==="loading")return w.chunkId}),E=T=>w=>{const R=w.key;(R==="ArrowDown"||R==="ArrowRight"||R==="Enter"||R===" "||R==="Space")&&(w.stopPropagation(),g(loadSourceInfosRequest(p,t,T)))},_=T=>()=>{g(loadSourceInfosRequest(p,t,T))};return reactExports.useLayoutEffect(()=>{document.querySelectorAll(`.${SOURCE_REFERENCE_CLASS}`).forEach(T=>{const w=T.previousSibling;w&&w.nodeType===Node.TEXT_NODE&&w.textContent?.endsWith(" ")&&w.textContent?.trim().length&&T.classList.add(`${SOURCE_REFERENCE_CLASS}--before-space`);const R=T.nextSibling;R&&R.nodeType===Node.TEXT_NODE&&R.textContent?.startsWith(" ")&&R.textContent?.trim().length&&T.classList.add(`${SOURCE_REFERENCE_CLASS}--after-space`)})},[i]),jsxRuntimeExports.jsxs("div",{className:styles$k.bubbleContent,children:[jsxRuntimeExports.jsx("div",{className:markdownStyle.markdown,children:jsxRuntimeExports.jsx(MarkdownText,{markdown:i,onLinkClick:c,markdownOptions:{renderRule(T,w,R,M){if(w.type===W.footnoteReference){const k=w.text===x;return jsxRuntimeExports.jsx("span",{className:clsx(styles$k.sourceInfoReference,k&&styles$k.sourceInfoReferenceActive,SOURCE_REFERENCE_CLASS),children:jsxRuntimeExports.jsx("a",{type:"button",tabIndex:0,onClick:_(w.text),onKeyDown:E(w.text),children:v(w.text)})},M.key)}return T()}}})}),jsxRuntimeExports.jsx(MessageSources,{sources:u,onLinkClick:c})]})},getFootnoteReferenceCounter=()=>{const t=[];return u=>{const c=t.indexOf(u);return c>-1?c+1:(t.push(u),t.length)}},text$1="_text_gp0s0_1",command$1="_command_gp0s0_5",styles$e={text:text$1,command:command$1},Text$1=({text:t,commands:i=[]})=>{const u=i.find(p=>t.startsWith(`/${p}`)),c=u?t.slice(u.length+1):t;return jsxRuntimeExports.jsxs("div",{children:[u&&jsxRuntimeExports.jsxs("code",{className:styles$e.command,children:["/",u]}),c.split(`
|
|
118
|
-
`).map((p,g)=>jsxRuntimeExports.jsxs("span",{className:styles$e.text,children:[p,jsxRuntimeExports.jsx("br",{})]},g))]})},TextMessage=({text:t,commands:i,sources:u,onLinkClick:c})=>jsxRuntimeExports.jsxs("div",{className:styles$k.bubbleContent,children:[jsxRuntimeExports.jsx(Text$1,{text:t,commands:i}),jsxRuntimeExports.jsx(MessageSources,{sources:u,onLinkClick:c})]}),Message=reactExports.forwardRef(({message:t,commands:i,isLastMessage:u,isFirstMessageBySender:c,isLastMessageBySender:p,onReaction:g,onButtonClick:v,onLinkClick:x},E)=>{const _=getMessageCmp(t._id,t,i,v,x),T=w=>{g(t._id,w)};return t.sender.type===UserType$1.GUEST?jsxRuntimeExports.jsx(UserMessage,{ref:E,isFirstMessageBySender:c,isLastMessageBySender:p,children:_}):jsxRuntimeExports.jsx(BotMessage,{ref:E,message:t,isAnimated:!1,isLastMessage:u,isFirstMessageBySender:c,isLastMessageBySender:p,onReaction:T,children:_})}),getMessageCmp=(t,i,u,c,p)=>{switch(i.type){case MessageTypeEnum.TEXT:{const g=i;return jsxRuntimeExports.jsx(TextMessage,{text:g.text,commands:u,sources:i.sources||[],onLinkClick:p})}case MessageTypeEnum.DETAIL:{const g=i;return jsxRuntimeExports.jsx(DetailMessage,{title:g.title,text:g.text,imageUrl:g.imageUrl,itemUrl:g.itemUrl,buttons:g.buttons,sources:i.sources||[],onButtonClick:c,onLinkClick:p})}case MessageTypeEnum.MARKDOWN:{const g=i;return jsxRuntimeExports.jsx(MarkdownMessage,{actionId:t,markdown:g.markdown,sources:g.sources||[],onLinkClick:p})}}},areEqual=(t,i)=>t.message._id===i.message._id&&t.message.reaction===i.message.reaction&&t.isLastMessage===i.isLastMessage&&t.isFirstMessageBySender===i.isFirstMessageBySender&&t.isLastMessageBySender===i.isLastMessageBySender,Message$1=React.memo(Message,areEqual),ticontainer="_ticontainer_xg0dn_1",tiblock="_tiblock_xg0dn_5",tidot="_tidot_xg0dn_12",styles$d={ticontainer,tiblock,tidot},TypingIndicator=({isTyping:t=!1})=>jsxRuntimeExports.jsx("div",{className:styles$d.ticontainer,children:jsxRuntimeExports.jsx("div",{className:styles$d.tiblock,children:t?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:clsx(styles$d.tidot,"chat__typingIndicator"),"aria-hidden":"true"}),jsxRuntimeExports.jsx("div",{className:clsx(styles$d.tidot,"chat__typingIndicator"),"aria-hidden":"true"}),jsxRuntimeExports.jsx("div",{className:clsx(styles$d.tidot,"chat__typingIndicator"),"aria-hidden":"true"})]}):null})}),BotTypingMessage=Object.assign({_id:"typing-indicator"},new TextMessage$1("",new BotUser)),Conversation=({messages:t,isBotTyping:i,commands:u,onTranscriptItemReaction:c,onButtonClick:p,onLinkClick:g})=>{const v=useTranslation(),x=reactExports.useRef(0),E=reactExports.useRef(!0),_=reactExports.useRef(null),T=reactExports.useRef(null),w=reactExports.useRef(null),R=useAppSelector(A=>A.settings.enableGeneralConditions);reactExports.useLayoutEffect(()=>{if(t.length&&_.current&&(x.current<t.length||i)){if(T.current){const A=T.current.offsetTop;_.current.scrollTop=A}else if(w.current){const A=w.current.offsetTop;_.current.scrollTop=A}E.current&&(E.current=!1),x.current=t.length}},[t,E,i]);let M;const k=t.length;return jsxRuntimeExports.jsxs("div",{ref:_,className:clsx(styles$m.messageContainer,"chat__messageContainer"),style:{scrollBehavior:t.length&&E.current?"auto":"smooth"},id:"MessageContainer","aria-label":v("conversation.label"),children:[R&&jsxRuntimeExports.jsx(GeneralConditions,{}),jsxRuntimeExports.jsxs("ul",{className:styles$m.messages,role:"list",children:[t.map((A,D)=>{const z=getIsFirstMessageBySender(A,M),L=getIsLastMessageBySender(A,D,t,i);M=A.sender.type;const U=D+1===k,V=A._id||`added-${D}`;return jsxRuntimeExports.jsx(Message$1,{ref:U?w:null,message:A,commands:u,isLastMessage:U,isFirstMessageBySender:z,isLastMessageBySender:L,onButtonClick:p,onLinkClick:g,onReaction:c},V)}),i&&jsxRuntimeExports.jsx(BotMessage,{ref:T,message:BotTypingMessage,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:M!==UserType$1.BOT,isLastMessageBySender:!0,children:jsxRuntimeExports.jsx(TypingIndicator,{isTyping:!0})},"last")]})]})},getIsFirstMessageBySender=(t,i)=>!i||i!==t.sender.type,getIsLastMessageBySender=(t,i,u,c)=>{const p=t.sender.type,g=u.length;return i+1===g?!(p===UserType$1.BOT&&c):p!==u.at(i+1)?.sender.type},bottomSheet="_bottomSheet_jp8dl_1",bottomSheetOpen="_bottomSheetOpen_jp8dl_15",bottomSheetClose="_bottomSheetClose_jp8dl_20",bottomSheetStyles={bottomSheet,bottomSheetOpen,bottomSheetClose},container$4="_container_xc2nx_1",styles$c={container:container$4},Drawer=({contentUrl:t})=>{const i=useAppSelector(g=>g.connection.sessionId),[u,c]=reactExports.useState(!1);reactExports.useEffect(()=>{c(g=>g||!!t)},[t]);const p=reactExports.useMemo(()=>{if(t&&i){const g=new URL(t,document.baseURI);return g.searchParams.set("sessionId",i),g.toString()}else return},[t,i]);return jsxRuntimeExports.jsx("div",{className:clsx(styles$c.container,bottomSheetStyles.bottomSheet,{[bottomSheetStyles.bottomSheetOpen]:!!t,[bottomSheetStyles.bottomSheetClose]:u&&!t}),children:p&&jsxRuntimeExports.jsx("iframe",{title:"Drawer",id:"form-drawer",src:p,className:styles$c.iframe})})},container$3="_container_vvbth_1",styles$b={container:container$3},Link$1=({title:t,href:i,children:u})=>jsxRuntimeExports.jsx("a",{href:i,title:t,target:"_blank",rel:"noopener noreferrer",children:u}),PoweredBy=()=>{const i=useTranslation()("powered-by");return i&&i.length?jsxRuntimeExports.jsx("div",{className:clsx(styles$b.container,"chat__poweredBy"),children:jsxRuntimeExports.jsx(X5,{options:{overrides:{a:Link$1}},children:i})}):null},markdownToPlainText=(t,i)=>{const u=new Map;let c=0;return t.replace(/^#{1,6}\s+/gm,"").replace(/(\*\*|__)(.*?)\1/g,"$2").replace(/(\*|_)(.*?)\1/g,"$2").replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/\[\^([^\]]+)\]/g,(p,g)=>(u.has(g)||u.set(g,++c),`(${i} ${u.get(g)})`)).replace(/`([^`]+)`/g,"$1").replace(/```[\s\S]*?```/g,"").replace(/^>\s+/gm,"").replace(/^(-{3,}|_{3,}|\*{3,})$/gm,"").replace(/^[\s]*[-*+]\s+/gm,"").replace(/^[\s]*\d+\.\s+/gm,"").replace(/\n{3,}/g,`
|
|
119
|
-
|
|
120
|
-
`).trim()},ScreenReaderAnnouncer=({messages:t,isBotTyping:i})=>{const u=reactExports.useRef(""),c=useTranslation(),p=c("bot-bubble.footnote"),g=E=>{switch(E.type){case"TEXT":return E.text||"";case"MARKDOWN":{const _=E.markdown||"";return markdownToPlainText(_,p)}case"DETAIL":return E.text||E.title||"";default:return""}},x=(()=>{if(i)return c("chatbot.typing")??"Chatbot is typing";const E=[...t].reverse().find(_=>_.sender.type===UserType.BOT);return E?g(E):""})();return reactExports.useEffect(()=>{x!==u.current&&(u.current=x)},[x]),jsxRuntimeExports.jsx("div",{role:"status","aria-live":"polite","aria-atomic":"true",className:"sr-only",children:x})},DefaultButton=({className:t,children:i,...u})=>jsxRuntimeExports.jsx(Button,{className:clsx(styles$g.buttonDefault,t),type:"button",...u,children:i}),PrimaryButton=({className:t,children:i,...u})=>jsxRuntimeExports.jsx(Button,{className:clsx(styles$g.buttonPrimary,t),...u,children:i}),container$2="_container_h23mk_1",formContainer="_formContainer_h23mk_17",emailInput="_emailInput_h23mk_22",description="_description_h23mk_52",actions$3="_actions_h23mk_57",validationError="_validationError_h23mk_67",submitted="_submitted_h23mk_74",styles$a={container:container$2,formContainer,emailInput,description,actions:actions$3,validationError,submitted},TranscriptExport=({visible:t,onEmailExport:i,onClose:u})=>{const c=useTranslation(),[p,g]=reactExports.useState(void 0),[v,x]=reactExports.useState(!1),[E,_]=reactExports.useState(void 0),T=reactExports.useRef(null);reactExports.useEffect(()=>{t?(T.current?.focus(),x(!1),g(t)):p===!0&&g(!1)},[t,p]);const w=M=>{M.preventDefault(),E&&E.length>0&&(i(E),x(!0),setTimeout(u,3*1e3))},R=M=>{const k=M.target.value.trim(),A=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(k);_(A?k:"")};return jsxRuntimeExports.jsxs("div",{className:clsx(styles$a.container,bottomSheetStyles.bottomSheet,{[bottomSheetStyles.bottomSheetOpen]:p===!0,[bottomSheetStyles.bottomSheetClose]:p===!1}),children:[jsxRuntimeExports.jsx("h2",{children:c("export-transcript.email.title")}),jsxRuntimeExports.jsx(X5,{className:styles$a.description,children:c("export-transcript.email.description")||""}),jsxRuntimeExports.jsxs("form",{onSubmit:w,className:styles$a.formContainer,children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("input",{disabled:v,ref:T,type:"email",placeholder:c("export-transcript.email.placeholder"),className:styles$a.emailInput,onChange:R}),E?.length===0?jsxRuntimeExports.jsx("div",{className:styles$a.validationError,children:c("export-transcript.email.invalid")}):null]}),jsxRuntimeExports.jsxs("div",{className:styles$a.actions,children:[jsxRuntimeExports.jsx(DefaultButton,{onClick:u,children:c("export-transcript.email.cancel")}),jsxRuntimeExports.jsx(PrimaryButton,{type:"submit",disabled:v||E===void 0||E.length===0,children:c("export-transcript.email.send")})]})]}),v&&jsxRuntimeExports.jsx("div",{className:styles$a.submitted,children:c("export-transcript.email.success")})]})},inputContainer="_inputContainer_fi5ao_1",styles$9={inputContainer},blockUserInput="_blockUserInput_pot9c_1",styles$8={blockUserInput},BlockUserInput=({visible:t})=>{const i=useTranslation();return t?jsxRuntimeExports.jsx("div",{className:clsx(styles$8.blockUserInput,"chat__blockUserInput"),children:i("block-user-input.title")}):null},commandsDropdown="_commandsDropdown_fmklx_1",commands="_commands_fmklx_1",command="_command_fmklx_1",commandActive="_commandActive_fmklx_49",style={commandsDropdown,commands,command,commandActive},useKeyboardEffect=(t,i,u,c,p)=>{reactExports.useEffect(()=>{const g=v=>{if(t.length)switch(v.key){case"Enter":u(t[i]);break;case"ArrowUp":c(x=>x>0?x-1:t.length-1);break;case"ArrowDown":c(x=>x<t.length-1?x+1:0);break;case"Escape":p([]);break}};return document.addEventListener("keydown",g),()=>{document.removeEventListener("keydown",g)}},[t,i,u,c,p])},CommandsDropdown=({text:t,commands:i,onSelectCommand:u,onVisibilityChange:c})=>{const p=reactExports.useRef(null),g=useTranslation(),[v,x]=reactExports.useState([]),[E,_]=reactExports.useState(calcMaxCommandLength(i)),[T,w]=reactExports.useState(0),R=M=>u(`/${M}`);return useClickOutsideEventListener(p,()=>x([])),useKeyboardEffect(v,T,R,w,x),reactExports.useEffect(()=>{_(calcMaxCommandLength(i))},[i]),reactExports.useEffect(()=>{const M=t.length||0;M===0||M>E||!t.startsWith("/")?x([]):x(i.filter(byText(t))),w(0)},[i,t,E]),reactExports.useEffect(()=>{c(!!v.length)},[v,c]),v.length?jsxRuntimeExports.jsx("div",{ref:p,className:style.commandsDropdown,children:jsxRuntimeExports.jsx("ul",{id:"command-list",className:style.commands,role:"listbox",children:v.map((M,k)=>jsxRuntimeExports.jsxs("li",{className:clsx([style.command,T===k&&style.commandActive]),role:"option",onClick:()=>R(M),onMouseOver:()=>w(k),children:[jsxRuntimeExports.jsxs("h1",{children:["/",M]}),jsxRuntimeExports.jsx("p",{children:g(`commands.${M}`)})]},M))})}):null},calcMaxCommandLength=t=>Math.max(...t.map(i=>i.length+1)),byText=t=>i=>{const u=`/${i}`;return u.startsWith(t)&&u.length>=t.length},callToActionContainer="_callToActionContainer_d8izj_1",callToActionTitle="_callToActionTitle_d8izj_23",rateOverlay="_rateOverlay_d8izj_30",body$1="_body_d8izj_52",footer$1="_footer_d8izj_60",actions$2="_actions_d8izj_75",bubbles="_bubbles_d8izj_89",stars="_stars_d8izj_191",starsSmall="_starsSmall_d8izj_205",starsLarge="_starsLarge_d8izj_211",star="_star_d8izj_191",starReadonly="_starReadonly_d8izj_225",starIcon="_starIcon_d8izj_235",starsDescriptionContainer="_starsDescriptionContainer_d8izj_253",starsDescription="_starsDescription_d8izj_253",styles$7={callToActionContainer,callToActionTitle,rateOverlay,body:body$1,footer:footer$1,actions:actions$2,bubbles,stars,starsSmall,starsLarge,star,starReadonly,starIcon,starsDescriptionContainer,starsDescription},Star=({value:t,index:i,count:u,readonly:c,onHover:p,onClick:g})=>{const v=x=>{g&&x.key==="Enter"&&g()};return jsxRuntimeExports.jsx("li",{className:clsx(styles$7.star,{[styles$7.starReadonly]:c},"chat__conversationRating__star"),children:jsxRuntimeExports.jsx("div",{role:"radio","aria-checked":t>i?"true":"false","aria-posinset":i+1,"aria-setsize":u,tabIndex:0,onMouseOver:p,onKeyDown:v,onClick:g,children:jsxRuntimeExports.jsx("span",{role:"img","aria-label":"Star",className:clsx(styles$7.starIcon),children:jsxRuntimeExports.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"star",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:jsxRuntimeExports.jsx("path",{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"})})})})})},STAR_COUNT=5,Stars=({value:t,size:i,readonly:u=!1,onChange:c})=>{const[p,g]=reactExports.useState(void 0),v=()=>{g(void 0)},x=_=>()=>{if(!u){const T=_+1;g(T)}},E=_=>()=>{c&&!u&&(c(_===0&&t===1?0:_+1),g(void 0))};return jsxRuntimeExports.jsx("ul",{tabIndex:0,role:"radiogroup",className:clsx(styles$7.stars,{[styles$7.starsSmall]:i==="small",[styles$7.starsLarge]:i==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:i==="small",chat__conversationRating__stars__large:i==="large"}),onMouseOut:v,children:Array(STAR_COUNT).fill(0).map((_,T)=>jsxRuntimeExports.jsx(Star,{value:p===void 0?t:p,index:T,count:STAR_COUNT,readonly:u,onHover:x(T),onClick:E(T)},T))})},CallToAction=({visible:t,onRate:i})=>{const u=useTranslation();return t?jsxRuntimeExports.jsxs("div",{className:clsx(styles$7.callToActionContainer,"chat__conversationRating__callToAction"),children:[jsxRuntimeExports.jsx("div",{className:clsx(styles$7.callToActionTitle,"chat__conversationRating__callToAction__title"),children:u("conversation-rating.call-to-action.title")}),jsxRuntimeExports.jsx(Stars,{value:0,size:"small",onChange:i})]}):null},BotBubble=({isFirstMessageBySender:t,isLastMessageBySender:i,children:u})=>jsxRuntimeExports.jsxs("div",{className:clsx(styles$k.message,styles$k.messageBot,t&&styles$k.messageBotFirst,i&&styles$k.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",t&&"chat__bubbleContainer--first",i&&"chat__bubbleContainer--last"),children:[jsxRuntimeExports.jsx("img",{className:clsx(styles$k.avatar,styles$k.botAvatar),src:"bot.svg",alt:"Bot"}),jsxRuntimeExports.jsx("div",{className:clsx(styles$k.bubble,styles$k.bubbleLeft,"chat__bubble","chat__botBubble"),children:jsxRuntimeExports.jsx("div",{className:clsx(styles$k.leftText,styles$k.bubbleContent),children:u})})]}),GuestBubble=({children:t})=>jsxRuntimeExports.jsx("div",{className:clsx(styles$k.message,styles$k.messageGuest,styles$k.messageGuestFirst,styles$k.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:jsxRuntimeExports.jsx("div",{className:clsx(styles$k.bubble,styles$k.bubbleRight,"chat__bubble","chat__guestBubble"),children:jsxRuntimeExports.jsx("div",{className:clsx(styles$k.rightText,styles$k.bubbleContent),children:t})})}),RateOverlay=()=>{const t=useTranslation(),i=useAppDispatch(),u=useAppSelector(D=>D.chat.conversationRating),[c,p]=reactExports.useState(u.rating?.value||0),[g,v]=reactExports.useState(void 0),[x,E]=reactExports.useState(void 0),[_,T]=reactExports.useState({submitted:!1,feedback:""}),w=reactExports.useRef(null),[R,M]=reactExports.useState(!1);reactExports.useEffect(()=>{u.opener?(T({submitted:!1,feedback:""}),E(!0)):x===!0&&E(!1)},[u.opener,x]),reactExports.useEffect(()=>{p(u.rating?.value||0)},[u.rating?.value,u.opener]),reactExports.useEffect(()=>{w.current&&(w.current.value=u.rating?.feedback||"")},[u.rating?.feedback]),reactExports.useEffect(()=>{const D=c>0?t(`conversation-rating.overlay.bot-message.rate-feedback.value-${c}`):void 0;v(D?.length?D:void 0)},[c,t]),reactExports.useEffect(()=>{_.submitted?setTimeout(()=>M(!0),_.feedback.length?500:0):M(!1)},[_]);const k=D=>{D.preventDefault();const z=w.current?.value?.trim()||"";i(handleRatingFromUser(c,z)),T({submitted:!0,feedback:z})},A=()=>{u.opener==="CLOSE_CHAT"?i(closeChatWindow()):u.opener==="RESTART_CHAT"?i(restartChat()):i(hideConversationRatingOverlay())};return jsxRuntimeExports.jsx("div",{className:clsx(styles$7.rateOverlay,bottomSheetStyles.bottomSheet,"chat__conversationRating__overlay",{[bottomSheetStyles.bottomSheetOpen]:x===!0,[bottomSheetStyles.bottomSheetClose]:x===!1}),children:jsxRuntimeExports.jsxs("form",{onSubmit:k,children:[jsxRuntimeExports.jsxs("div",{className:clsx(styles$7.body,"chat__conversationRating__overlay__body"),children:[jsxRuntimeExports.jsx("div",{}),jsxRuntimeExports.jsx("div",{className:clsx(styles$7.bubbles),children:u.opener&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(BotBubble,{isFirstMessageBySender:!0,isLastMessageBySender:!g,children:[jsxRuntimeExports.jsx("h2",{children:t("conversation-rating.overlay.title")}),jsxRuntimeExports.jsxs("div",{className:clsx(styles$7.starsDescriptionContainer),children:[jsxRuntimeExports.jsx(Stars,{value:c,size:"large",readonly:_.submitted,onChange:p}),jsxRuntimeExports.jsxs("div",{className:clsx(styles$7.starsDescription),children:[jsxRuntimeExports.jsx("div",{children:t("conversation-rating.overlay.star.very-bad")}),jsxRuntimeExports.jsx("div",{children:t("conversation-rating.overlay.star.very-good")})]})]})]}),g&&jsxRuntimeExports.jsx(BotBubble,{isFirstMessageBySender:!1,isLastMessageBySender:!R||!!_.feedback.length,children:jsxRuntimeExports.jsx("div",{children:g})}),!!_.feedback.length&&jsxRuntimeExports.jsx(GuestBubble,{children:_.feedback}),R&&jsxRuntimeExports.jsx(BotBubble,{isFirstMessageBySender:!!_.feedback.length,isLastMessageBySender:!0,children:jsxRuntimeExports.jsx("div",{children:t("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),jsxRuntimeExports.jsxs("div",{className:clsx(styles$7.footer,"chat__conversationRating__overlay__footer"),children:[!_.submitted&&jsxRuntimeExports.jsx("input",{ref:w,defaultValue:u.rating?.feedback||"",placeholder:t("conversation-rating.overlay.guest-feedback.input-placeholder")}),jsxRuntimeExports.jsxs("div",{className:clsx(styles$7.actions,"chat__conversationRating__overlay__footer__actions"),children:[_.submitted?jsxRuntimeExports.jsx(PrimaryButton,{type:"button",disabled:!c,onClick:A,children:u.opener==="CLOSE_CHAT"?t("conversation-rating.overlay.action.close-chat"):u.opener==="RESTART_CHAT"?t("conversation-rating.overlay.action.restart-chat"):t("conversation-rating.overlay.action.back-to-chat")},"close-button"):jsxRuntimeExports.jsx(PrimaryButton,{type:"submit",disabled:!c,children:t("conversation-rating.overlay.action.submit")},"submit-button"),u.opener!=="CHAT"&&!_.submitted&&jsxRuntimeExports.jsx(DefaultButton,{onClick:A,children:u.opener==="CLOSE_CHAT"?t("conversation-rating.overlay.action.close-chat"):u.opener==="RESTART_CHAT"?t("conversation-rating.overlay.action.restart-chat"):t("conversation-rating.overlay.action.cancel")})]})]})]})})},ConversationRating=({numberOfMessagesFromGuest:t})=>{const i=useAppDispatch(),u=useAppSelector(g=>g.chat.conversationRating),c=g=>{i(showConversationRatingOverlay("CHAT",g))},p=!u.rating?.value&&t>=1;return u.enabled?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(CallToAction,{visible:p,onRate:c}),jsxRuntimeExports.jsx(RateOverlay,{})]}):null},ConversationRating$1=reactExports.memo(ConversationRating),inputWrapper="_inputWrapper_m3q4d_1",withOpenCommands="_withOpenCommands_m3q4d_13",actions$1="_actions_m3q4d_18",messageInputWrapper="_messageInputWrapper_m3q4d_53",messageInput="_messageInput_m3q4d_53",buttons="_buttons_m3q4d_78",button="_button_m3q4d_78",styles$6={inputWrapper,withOpenCommands,actions:actions$1,messageInputWrapper,messageInput,buttons,button},audioRecorder="_audioRecorder_g845f_1",audioButton="_audioButton_g845f_6",recorderIcon="_recorderIcon_g845f_37",spinning="_spinning_g845f_60",styles$5={audioRecorder,audioButton,recorderIcon,spinning},BUFFER_SIZE=2048,OUTPUT_SAMPLE_RATE=16e3;class AudioRecorder extends React.Component{audioInput=null;volume=null;leftchannel=[];recorder=null;recordingLength=0;sampleRate=null;mediaStream=null;constructor(i){super(i),this.state={recordingState:"none"},this.triggerAudioRecording=this.triggerAudioRecording.bind(this),this.triggerAudioRecordingSuccess=this.triggerAudioRecordingSuccess.bind(this),this.initRecording=this.initRecording.bind(this),this.processRecordingInput=this.processRecordingInput.bind(this),this.handleClickSubmitAudio=this.handleClickSubmitAudio.bind(this),this.handleClickStopAudio=this.handleClickStopAudio.bind(this)}triggerAudioRecording(){this.setState({recordingState:"connecting"}),navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(this.triggerAudioRecordingSuccess)}triggerAudioRecordingSuccess(i){this.mediaStream=i,this.leftchannel.length=0,this.recordingLength=0,this.initRecording(i)}initRecording(i){const u=window.AudioContext||window.webkitAudioContext,c=new u;this.sampleRate=c.sampleRate,this.volume=c.createGain(),this.audioInput=c.createMediaStreamSource(i),this.audioInput.connect(this.volume),this.recorder=c.createScriptProcessor(BUFFER_SIZE,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(c.destination)}processRecordingInput(i){if(this.state.recordingState==="connecting"&&this.setState({recordingState:"recording"}),this.state.recordingState!=="none"){const u=i.inputBuffer.getChannelData(0);this.leftchannel.push(new Float32Array(u)),this.recordingLength+=BUFFER_SIZE}}handleClickSubmitAudio(){const i=mergeBuffers(this.leftchannel,this.recordingLength),u=downsampleBuffer(i,this.sampleRate||0),c=createWav(u);this.props.onAudioRecorded(c),this.handleClickStopAudio()}handleClickStopAudio(){this.setState({recordingState:"none"}),this.audioInput?.disconnect(),this.volume?.disconnect(),this.recorder?.disconnect(),this.mediaStream&&this.mediaStream?.getAudioTracks().forEach(i=>{i.stop()})}render(){return jsxRuntimeExports.jsxs("div",{className:styles$5.audioRecorder,children:[this.state.recordingState==="none"&&jsxRuntimeExports.jsx("button",{className:clsx(styles$5.audioButton,"chat__button"),type:"submit","aria-label":this.props.translate("message-input.actions.start-audio-recording.label"),"data-title":this.props.translate("message-input.actions.start-audio-recording.label"),tabIndex:0,onClick:this.triggerAudioRecording,children:jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[jsxRuntimeExports.jsx("path",{d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72h-1.7z"}),jsxRuntimeExports.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),this.state.recordingState==="connecting"&&jsxRuntimeExports.jsxs("svg",{className:styles$5.spinning,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[jsxRuntimeExports.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}),jsxRuntimeExports.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),this.state.recordingState==="recording"&&jsxRuntimeExports.jsxs("div",{className:styles$5.audioRecorder,children:[jsxRuntimeExports.jsx("button",{className:clsx(styles$5.audioButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate("message-input.actions.stop-audio-recording.label"),tabIndex:0,children:jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[jsxRuntimeExports.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),jsxRuntimeExports.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),jsxRuntimeExports.jsx("div",{className:styles$5.recorderIcon}),jsxRuntimeExports.jsx("button",{className:clsx(styles$5.audioButton),type:"submit",onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate("message-input.actions.submit-audio-recording.label"),tabIndex:0,autoFocus:!0,children:jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[jsxRuntimeExports.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),jsxRuntimeExports.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})]})})]})]})}}const createWav=t=>{const i=new ArrayBuffer(44+t.length*2),u=new DataView(i);writeUTFBytes(u,0,"RIFF"),u.setUint32(4,44+t.length*2,!0),writeUTFBytes(u,8,"WAVE"),writeUTFBytes(u,12,"fmt "),u.setUint32(16,16,!0),u.setUint16(20,1,!0),u.setUint16(22,1,!0),u.setUint32(24,OUTPUT_SAMPLE_RATE,!0),u.setUint32(28,OUTPUT_SAMPLE_RATE*4,!0),u.setUint16(32,4,!0),u.setUint16(34,16,!0),writeUTFBytes(u,36,"data"),u.setUint32(40,t.length*2,!0);const c=t.length;let p=44;const g=1;for(let v=0;v<c;v++)u.setInt16(p,t[v]*(32767*g),!0),p+=2;return new Blob([u],{type:"audio/wav"})},writeUTFBytes=(t,i,u)=>{for(let c=0;c<u.length;c++)t.setUint8(i+c,u.charCodeAt(c))},mergeBuffers=(t,i)=>{const u=new Float32Array(i);let c=0;const p=t.length;for(let g=0;g<p;g++){const v=t[g];u.set(v,c),c+=v.length}return u},downsampleBuffer=(t,i)=>{if(OUTPUT_SAMPLE_RATE===i)return t;const u=i/OUTPUT_SAMPLE_RATE,c=Math.round(t.length/u),p=new Float32Array(c);let g=0,v=0;for(;g<p.length;){const x=Math.round((g+1)*u);let E=0,_=0;for(let T=v;T<x&&T<t.length;T++)E+=t[T],_++;p[g]=E/_,g++,v=x}return p},CommandButton=({onClick:t})=>{const i=useTranslation();return jsxRuntimeExports.jsxs("button",{onClick:t,type:"button","aria-label":i("message-input.actions.command.label"),children:[jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"#000000",viewBox:"0 0 256 256",children:[jsxRuntimeExports.jsx("rect",{x:"32",y:"32",width:"192",height:"192",rx:"16",ry:"16",fill:"none",stroke:"currentColor","stroke-width":"16"}),jsxRuntimeExports.jsx("line",{x1:"80",y1:"176",x2:"176",y2:"80",stroke:"currentColor","stroke-width":"16","stroke-linecap":"round"})]}),jsxRuntimeExports.jsx("span",{children:i("message-input.actions.command.label")})]})},TextInput=({disabled:t,textInput:i,commandsVisible:u,hasCommands:c,onTextInput:p,onTextInputSubmit:g,onAudioRecorded:v})=>{const x=useTranslation(),E=reactExports.useRef(null),{enableSpeechSupport:_}=useAppSelector(A=>A.settings);reactExports.useEffect(()=>{E.current?.focus()},[i]);const T=()=>{const A=E.current;A&&i.trim().length>=1&&g(i.trim())&&(A.value="",A.style.height="",A.focus())},w=A=>{A.preventDefault(),T()},R=A=>{const D=A.target.value;p(D),A.target.style.height="";const{scrollHeight:z}=A.target;A.target.style.height=`${z>150?150:z}px`},M=A=>{A.code==="Enter"&&!A.shiftKey?(A.repeat||T(),A.preventDefault()):u&&(A.code==="ArrowUp"||A.code==="ArrowDown")&&A.preventDefault()},k=()=>{i.startsWith("/")?p(""):p("/")};return jsxRuntimeExports.jsxs("form",{className:clsx(styles$6.inputWrapper,u&&styles$6.withOpenCommands,"chat__textInput"),onSubmit:w,children:[jsxRuntimeExports.jsxs("div",{className:styles$6.messageInputWrapper,children:[jsxRuntimeExports.jsx("textarea",{id:"user_input",ref:E,className:styles$6.messageInput,tabIndex:0,placeholder:x("message-input-placeholder"),value:i,onChange:R,onKeyDown:M,"aria-label":x("message-input-label"),"aria-controls":c?"command-list":void 0,"aria-haspopup":c?"listbox":void 0}),c&&jsxRuntimeExports.jsx("div",{className:styles$6.actions,children:jsxRuntimeExports.jsx(CommandButton,{onClick:k})})]}),jsxRuntimeExports.jsx("div",{className:clsx(styles$6.buttons,"chat__buttons"),children:i.length||!_||navigator.mediaDevices===void 0?jsxRuntimeExports.jsx("button",{className:clsx(styles$6.button,"chat__button"),type:"submit","aria-label":x("message-input.actions.submit.label"),"data-title":x("message-input.actions.submit.label"),tabIndex:0,disabled:t,children:jsxRuntimeExports.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:jsxRuntimeExports.jsx("path",{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"})})}):_&&navigator.mediaDevices!==void 0&&jsxRuntimeExports.jsx(AudioRecorder,{translate:x,onAudioRecorded:v})})]})},quickReplies="_quickReplies_83npe_1",quickReply="_quickReply_83npe_9",styles$4={quickReplies,quickReply},QuickReplies=({quickReplies:t,onQuickReplyClick:i})=>t.length?jsxRuntimeExports.jsx("div",{className:clsx(styles$4.quickReplies,"chat__quickReplies"),children:t.map(u=>jsxRuntimeExports.jsx(Button,{tabIndex:0,className:clsx(styles$4.quickReply,"chat__button","chat__quickReply"),onClick:()=>i(u),children:u.label},u.label))}):null,MIN_USER_BLOCKED_TIME=5e3,MIN_TIME_BETWEEN_USER_REQUESTS=1e3,UserInput=({isBotTyping:t,quickReplies:i,numberOfMessagesFromGuest:u,commands:c,onTextInput:p,onQuickReplyClick:g,onAudioRecorded:v})=>{const[x,E]=reactExports.useState(""),[_,T]=reactExports.useState(!1),[w,R]=reactExports.useState(!1),M=reactExports.useRef(0),k=reactExports.useRef(0);reactExports.useEffect(()=>{if(_&&!t){const z=M.current?Date.now()-M.current:0;z>MIN_USER_BLOCKED_TIME?T(!1):setTimeout(()=>{T(!1)},MIN_USER_BLOCKED_TIME-z)}},[_,t]),reactExports.useEffect(()=>{_&&(M.current=Date.now())},[_]);const A=z=>{const L=Date.now()-k.current<MIN_TIME_BETWEEN_USER_REQUESTS;return w?!1:t||L?(T(!0),!1):(p(z),E(""),k.current=Date.now(),!0)},D=z=>{E(z+" ")};return jsxRuntimeExports.jsxs("div",{className:clsx(styles$9.inputContainer),children:[jsxRuntimeExports.jsx(QuickReplies,{quickReplies:i,onQuickReplyClick:g}),jsxRuntimeExports.jsx(BlockUserInput,{visible:_}),!_&&jsxRuntimeExports.jsx(ConversationRating$1,{numberOfMessagesFromGuest:u}),!!c?.length&&jsxRuntimeExports.jsx(CommandsDropdown,{text:x,commands:c,onSelectCommand:D,onVisibilityChange:R}),jsxRuntimeExports.jsx(TextInput,{textInput:x,disabled:_,commandsVisible:w,hasCommands:!!c?.length,onTextInput:E,onTextInputSubmit:A,onAudioRecorded:v})]})},ChatComponent=({clientName:t,messages:i,quickReplies:u,isBotTyping:c,drawerContentUrl:p,onMessageFromUser:g,onQuickReplyClick:v,onButtonClick:x,onLinkClick:E,onAudioRecorded:_,onTranscriptExport:T,onTranscriptItemReaction:w})=>{const R=useAppDispatch(),M=useAppSelector(V=>V.connection.connectionState),{enableTranscriptExportEmail:k,commands:A}=useAppSelector(V=>V.settings),{showTranscriptMailOverlay:D,conversationRating:z}=useAppSelector(V=>V.chat),L=i.filter(V=>V.sender.type===UserType.GUEST).length;reactExports.useEffect(()=>{M===ConnectionStateEnum.CONNECTED&&R(startChat(t))},[t,M,R]);const U=()=>{R(toggleTranscriptMailOverlay())};return jsxRuntimeExports.jsxs("div",{className:styles$n.container,children:[jsxRuntimeExports.jsx(ScreenReaderAnnouncer,{messages:i,isBotTyping:c}),jsxRuntimeExports.jsxs("div",{className:clsx([styles$n.chatcontent,(D||z?.opener)&&styles$n.accessabilityHidden]),children:[jsxRuntimeExports.jsx(Conversation,{messages:i,isBotTyping:c,commands:A,onButtonClick:x,onLinkClick:E,onTranscriptItemReaction:w}),jsxRuntimeExports.jsx(UserInput,{isBotTyping:c,quickReplies:c?[]:u,numberOfMessagesFromGuest:L,commands:A,onQuickReplyClick:v,onTextInput:g,onAudioRecorded:_}),jsxRuntimeExports.jsx(PoweredBy,{})]}),k&&jsxRuntimeExports.jsx(TranscriptExport,{visible:!!D,onEmailExport:T,onClose:U}),jsxRuntimeExports.jsx(Drawer,{contentUrl:p})]})},mapStateToProps=t=>{const{messages:i,quickReplies:u,isBotTyping:c,drawerContentUrl:p}=t.chat;return{messages:i,quickReplies:u,isBotTyping:c,drawerContentUrl:p}},bindAction=t=>({onRestartChat:()=>t(restartChat()),onMessageFromUser:i=>t(sendMessageFromUser(i)),onAudioRecorded:i=>t(sendAudioMessageFromUser(i)),onActionFromUser:i=>t(i),onQuickReplyClick:i=>t(handleQuickReplyClick(i)),onNluEvent:i=>t(requestNLUEvent(i)),onButtonClick:i=>t(handleButtonClick(i)),onLinkClick:i=>t(handleLinkClick(i)),onTranscriptExport:i=>t(exportTranscript(i)),onTranscriptItemReaction:(i,u)=>{t(transcriptItemGuestReaction(i,u?.type||null,u?.category,u?.comment))}}),Chat=connect_default(mapStateToProps,bindAction)(ChatComponent),useIsInIframe=()=>reactExports.useMemo(()=>{try{return window.self!==window.top}catch{return!0}},[]),onButtonKeyDownHandler=t=>i=>{const u=i.key;(u==="ArrowDown"||u==="ArrowRight"||u==="Enter"||u===" "||u==="Space")&&(i.stopPropagation(),t())},CloseChatWindowButton=({onClick:t})=>{const i=useTranslation();return useIsInIframe()?jsxRuntimeExports.jsx("button",{className:"tooltip--bottom-left","aria-label":i("header.close-chat"),"data-title":i("header.close-chat"),tabIndex:0,onClick:t,onKeyDown:onButtonKeyDownHandler(t),children:jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:jsxRuntimeExports.jsx("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"})})}):null},header="_header_3gvbz_1",logoContainer="_logoContainer_3gvbz_14",logo="_logo_3gvbz_14",actions="_actions_3gvbz_28",active="_active_3gvbz_43",menuContainer="_menuContainer_3gvbz_56",menu="_menu_3gvbz_56",divider="_divider_3gvbz_86",styles$3={header,logoContainer,logo,actions,active,menuContainer,menu,divider},MenuItemIcon=({icon:t})=>{switch(t){case"arrow-counter-clockwise":return jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:jsxRuntimeExports.jsx("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"})});case"download":return jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:jsxRuntimeExports.jsx("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"})});case"expand":return jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:jsxRuntimeExports.jsx("path",{d:"M214,48V96a6,6,0,0,1-12,0V62.48l-53.76,53.76a6,6,0,0,1-8.48-8.48L193.52,54H160a6,6,0,0,1,0-12h48A6,6,0,0,1,214,48ZM107.76,139.76,54,193.52V160a6,6,0,0,0-12,0v48a6,6,0,0,0,6,6H96a6,6,0,0,0,0-12H62.48l53.76-53.76a6,6,0,0,0-8.48-8.48Z"})});case"mail":return jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:jsxRuntimeExports.jsx("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM203.43,64,128,133.15,52.57,64ZM216,192H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"})});case"phone":return jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:jsxRuntimeExports.jsx("path",{d:"M144.27,45.93a8,8,0,0,1,9.8-5.66,86.22,86.22,0,0,1,61.66,61.66,8,8,0,0,1-5.66,9.8A8.23,8.23,0,0,1,208,112a8,8,0,0,1-7.73-5.94,70.35,70.35,0,0,0-50.33-50.33A8,8,0,0,1,144.27,45.93Zm-2.33,41.8c13.79,3.68,22.65,12.54,26.33,26.33A8,8,0,0,0,176,120a8.23,8.23,0,0,0,2.07-.27,8,8,0,0,0,5.66-9.8c-5.12-19.16-18.5-32.54-37.66-37.66a8,8,0,1,0-4.13,15.46Zm81.94,95.35A56.26,56.26,0,0,1,168,232C88.6,232,24,167.4,24,88A56.26,56.26,0,0,1,72.92,32.12a16,16,0,0,1,16.62,9.52l21.12,47.15,0,.12A16,16,0,0,1,109.39,104c-.18.27-.37.52-.57.77L88,129.45c7.49,15.22,23.41,31,38.83,38.51l24.34-20.71a8.12,8.12,0,0,1,.75-.56,16,16,0,0,1,15.17-1.4l.13.06,47.11,21.11A16,16,0,0,1,223.88,183.08Zm-15.88-2s-.07,0-.11,0h0l-47-21.05-24.35,20.71a8.44,8.44,0,0,1-.74.56,16,16,0,0,1-15.75,1.14c-18.73-9.05-37.4-27.58-46.46-46.11a16,16,0,0,1,1-15.7,6.13,6.13,0,0,1,.57-.77L96,95.15l-21-47a.61.61,0,0,1,0-.12A40.2,40.2,0,0,0,40,88,128.14,128.14,0,0,0,168,216,40.21,40.21,0,0,0,208,181.07Z"})});case"scroll":return jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:jsxRuntimeExports.jsx("path",{d:"M96,104a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H104A8,8,0,0,1,96,104Zm8,40h64a8,8,0,0,0,0-16H104a8,8,0,0,0,0,16Zm128,48a32,32,0,0,1-32,32H88a32,32,0,0,1-32-32V64a16,16,0,0,0-32,0c0,5.74,4.83,9.62,4.88,9.66h0A8,8,0,0,1,24,88a7.89,7.89,0,0,1-4.79-1.61h0C18.05,85.54,8,77.61,8,64A32,32,0,0,1,40,32H176a32,32,0,0,1,32,32V168h8a8,8,0,0,1,4.8,1.6C222,170.46,232,178.39,232,192ZM96.26,173.48A8.07,8.07,0,0,1,104,168h88V64a16,16,0,0,0-16-16H67.69A31.71,31.71,0,0,1,72,64V192a16,16,0,0,0,32,0c0-5.74-4.83-9.62-4.88-9.66A7.82,7.82,0,0,1,96.26,173.48ZM216,192a12.58,12.58,0,0,0-3.23-8h-94a26.92,26.92,0,0,1,1.21,8,31.82,31.82,0,0,1-4.29,16H200A16,16,0,0,0,216,192Z"})});case"star":return jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:jsxRuntimeExports.jsx("path",{d:"M239.18,97.26A16.38,16.38,0,0,0,224.92,86l-59-4.76L143.14,26.15a16.36,16.36,0,0,0-30.27,0L90.11,81.23,31.08,86a16.46,16.46,0,0,0-9.37,28.86l45,38.83L53,211.75a16.38,16.38,0,0,0,24.5,17.82L128,198.49l50.53,31.08A16.4,16.4,0,0,0,203,211.75l-13.76-58.07,45-38.83A16.43,16.43,0,0,0,239.18,97.26Zm-15.34,5.47-48.7,42a8,8,0,0,0-2.56,7.91l14.88,62.8a.37.37,0,0,1-.17.48c-.18.14-.23.11-.38,0l-54.72-33.65a8,8,0,0,0-8.38,0L69.09,215.94c-.15.09-.19.12-.38,0a.37.37,0,0,1-.17-.48l14.88-62.8a8,8,0,0,0-2.56-7.91l-48.7-42c-.12-.1-.23-.19-.13-.5s.18-.27.33-.29l63.92-5.16A8,8,0,0,0,103,91.86l24.62-59.61c.08-.17.11-.25.35-.25s.27.08.35.25L153,91.86a8,8,0,0,0,6.75,4.92l63.92,5.16c.15,0,.24,0,.33.29S224,102.63,223.84,102.73Z"})});case"link":return jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:jsxRuntimeExports.jsx("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"})});default:return jsxRuntimeExports.jsx("div",{})}},MenuItem=reactExports.forwardRef(({selected:t,item:i,onClick:u},c)=>{const p=useTranslation(),g=v=>{v.preventDefault(),u()};return jsxRuntimeExports.jsx("li",{"aria-selected":t,role:"option",className:i.withDivider?styles$3.divider:void 0,children:jsxRuntimeExports.jsxs("a",{ref:c,type:"button",role:"button",tabIndex:-1,onClick:g,children:[jsxRuntimeExports.jsx(MenuItemIcon,{icon:i.icon}),jsxRuntimeExports.jsx("span",{children:p(`header.menu.${i.id}`)})]})})}),useMenuItems=(t,i)=>{const u=useIsInIframe(),{menuItems:c,enableStandaloneView:p,enableTranscriptExportPdf:g,enableTranscriptExportEmail:v}=useAppSelector(_=>_.settings),x=useAppSelector(_=>_.chat.conversationRating.enabled);return reactExports.useMemo(()=>{const _=[],T=c.filter(({visibility:w})=>t?w==="always"||w==="chat-only":w==="always"||w==="start-screen-only");if(t&&(_.push({id:"restart-chat",type:"restart-chat",icon:"arrow-counter-clockwise",visibility:"chat-only"}),u&&p&&_.push({id:"expand-chat-window",type:"expand-chat-window",icon:"expand",visibility:"always"}),i&&g&&_.push({id:"download-transcript",type:"download-transcript",icon:"download",visibility:"chat-only"}),i&&v&&_.push({id:"send-transcript",type:"send-transcript",icon:"mail",visibility:"chat-only"}),i&&x&&_.push({id:"rate-conversation",type:"rate-conversation",icon:"star",visibility:"chat-only"}),_.length>0&&T.length)){const w=_.pop();w&&c.length&&_.push({...w,withDivider:!0})}return _.push(...T),_},[t,i,g,v,p,x,u,c])},Menu=({chatStarted:t,hasGuestMessages:i})=>{const u=useAppDispatch(),c=useTranslation(),{enabled:p,opener:g}=useAppSelector(L=>L.chat.conversationRating),[v,x]=reactExports.useState(!1),[E,_]=reactExports.useState(-1),T=reactExports.useRef(null),w=reactExports.useRef(null),R=reactExports.useRef([]),M=useMenuItems(t,i);reactExports.useEffect(()=>{R.current[E]?.focus()},[E]);const k=reactExports.useCallback(()=>{u(i&&p&&!g?showConversationRatingOverlay("RESTART_CHAT"):restartChat()),x(!1),_(0)},[i,p,g,u]),A=reactExports.useCallback(L=>{switch(L.type){case"restart-chat":{k();break}case"expand-chat-window":{const U=new URL(window.location.origin);U.pathname=window.location.pathname,U.search=window.location.search,U.hash=window.location.hash,window.open(U.href,"_blank");break}case"download-transcript":{u(downloadTranscriptPdf());break}case"send-transcript":{u(toggleTranscriptMailOverlay());break}case"rate-conversation":{u(showConversationRatingOverlay("MENU"));break}case"link":{u(handleLinkClick(L.url));break}case"action":{u(JSON.parse(JSON.stringify(L.action)));break}}x(!1)},[u,k,x]);reactExports.useEffect(()=>{const L=U=>{if(v)switch(U.key){case"Enter":U.preventDefault(),A(M[E]);break;case"ArrowUp":_(V=>V>0?V-1:M.length-1);break;case"ArrowDown":_(V=>V<M.length-1?V+1:0);break;case"Escape":x(!1);break;case"Tab":E>-1&&x(!1);break}};return document.addEventListener("keydown",L),()=>{document.removeEventListener("keydown",L)}},[v,E,M,_,x,A]),reactExports.useEffect(()=>{v||_(-1)},[v,E]),useClickOutsideEventListener(w,()=>x(!1));const D=()=>{x(L=>!L)},z=()=>{setTimeout(()=>{const L=document.activeElement;w.current&&!w.current.contains(L)&&x(!1)},0)};return M.length?jsxRuntimeExports.jsxs("div",{className:clsx(styles$3.menuContainer),ref:w,children:[jsxRuntimeExports.jsx("button",{ref:T,className:clsx(v&&styles$3.active,v?"tooltip-hidden":"tooltip--bottom-left"),"aria-label":c("header.menu.title"),"data-title":c("header.menu.title"),onClick:D,onBlur:z,children:jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:jsxRuntimeExports.jsx("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z"})})}),v&&jsxRuntimeExports.jsx("nav",{className:styles$3.menu,"aria-label":c("header.menu.title"),children:jsxRuntimeExports.jsx("ul",{tabIndex:0,children:M.map((L,U)=>jsxRuntimeExports.jsx(MenuItem,{ref:V=>{R.current[U]=V},selected:E===U,item:L,onClick:()=>A(L)},L.id))})})]}):null},Header$1=({className:t,chatStarted:i,...u})=>{const c=useAppDispatch(),p=useAppSelector(x=>x.chat.conversationRating),g=useAppSelector(x=>x.chat.messages.some(E=>E.sender.type===UserType$1.GUEST)),v=()=>{p.enabled&&!p.opener&&g?c(showConversationRatingOverlay("CLOSE_CHAT")):c(closeChatWindow())};return jsxRuntimeExports.jsxs("div",{className:clsx(styles$3.header,t),...u,children:[jsxRuntimeExports.jsx("div",{className:styles$3.logoContainer,children:jsxRuntimeExports.jsx("div",{className:styles$3.logo})}),jsxRuntimeExports.jsxs("div",{className:styles$3.actions,children:[jsxRuntimeExports.jsx(Menu,{chatStarted:i,hasGuestMessages:g}),jsxRuntimeExports.jsx(CloseChatWindowButton,{onClick:v})]})]})},chatwindow="_chatwindow_rkbir_1",chatwindowWithAside="_chatwindowWithAside_rkbir_21",styles$2={chatwindow,chatwindowWithAside},useIsSmallScreen=()=>{const[t,i]=reactExports.useState(!1);return reactExports.useEffect(()=>{const u=window.matchMedia("(max-width: 1023px)"),c=()=>i(u.matches);return c(),u.addEventListener("change",c),()=>u.removeEventListener("change",c)},[]),t},sourceInfos="_sourceInfos_vei0l_1",waitForLoading="_waitForLoading_vei0l_24",loadingContent="_loadingContent_vei0l_28",sourceHeader="_sourceHeader_vei0l_37",sourceHeaderIcon="_sourceHeaderIcon_vei0l_57",sourceContent="_sourceContent_vei0l_61",openSourceButton="_openSourceButton_vei0l_69",sourceButtonLabel="_sourceButtonLabel_vei0l_79",closeSourceInfosButton="_closeSourceInfosButton_vei0l_101",loadingSourceInfos="_loadingSourceInfos_vei0l_125",loading="_loading_vei0l_28",loadingError="_loadingError_vei0l_139",highlightLoadingInfo="_highlightLoadingInfo_vei0l_155",highlightLoadingInfoInnerContainer="_highlightLoadingInfoInnerContainer_vei0l_169",highlightLoadingInfoContent="_highlightLoadingInfoContent_vei0l_178",highlightLoadingInfoCloseIcon="_highlightLoadingInfoCloseIcon_vei0l_198",highlightLoader="_highlightLoader_vei0l_203",highlightLoaderLoading="_highlightLoaderLoading_vei0l_210",styles$1={sourceInfos,waitForLoading,loadingContent,sourceHeader,sourceHeaderIcon,sourceContent,openSourceButton,sourceButtonLabel,closeSourceInfosButton,loadingSourceInfos,loading,loadingError,highlightLoadingInfo,highlightLoadingInfoInnerContainer,highlightLoadingInfoContent,highlightLoadingInfoCloseIcon,highlightLoader,highlightLoaderLoading},CloseSourceInfosButton=({onClick:t})=>{const i=useTranslation();return jsxRuntimeExports.jsx("button",{className:clsx(styles$1.closeSourceInfosButton,"tooltip--bottom-left"),"aria-label":i("source-infos.close"),"data-title":i("source-infos.close"),tabIndex:0,onClick:t,children:jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:jsxRuntimeExports.jsx("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"})})})},Header=reactExports.forwardRef(({sourceInfos:t,onClose:i,...u},c)=>jsxRuntimeExports.jsxs("div",{className:styles$1.sourceHeader,...u,ref:c,children:[jsxRuntimeExports.jsx("div",{children:t?jsxRuntimeExports.jsx("p",{id:"source-info-title",children:t.title}):jsxRuntimeExports.jsx("p",{children:" "})}),jsxRuntimeExports.jsx(CloseSourceInfosButton,{onClick:i})]})),HighlightLoader=({loading:t})=>jsxRuntimeExports.jsx("div",{className:styles$1.highlightLoader,children:t&&jsxRuntimeExports.jsx("div",{className:styles$1.highlightLoaderLoading})});const{entries,setPrototypeOf,isFrozen,getPrototypeOf,getOwnPropertyDescriptor}=Object;let{freeze,seal,create}=Object,{apply,construct}=typeof Reflect<"u"&&Reflect;freeze||(freeze=function(i){return i});seal||(seal=function(i){return i});apply||(apply=function(i,u){for(var c=arguments.length,p=new Array(c>2?c-2:0),g=2;g<c;g++)p[g-2]=arguments[g];return i.apply(u,p)});construct||(construct=function(i){for(var u=arguments.length,c=new Array(u>1?u-1:0),p=1;p<u;p++)c[p-1]=arguments[p];return new i(...c)});const arrayForEach=unapply(Array.prototype.forEach),arrayLastIndexOf=unapply(Array.prototype.lastIndexOf),arrayPop=unapply(Array.prototype.pop),arrayPush=unapply(Array.prototype.push),arraySplice=unapply(Array.prototype.splice),stringToLowerCase=unapply(String.prototype.toLowerCase),stringToString=unapply(String.prototype.toString),stringMatch=unapply(String.prototype.match),stringReplace=unapply(String.prototype.replace),stringIndexOf=unapply(String.prototype.indexOf),stringTrim=unapply(String.prototype.trim),objectHasOwnProperty=unapply(Object.prototype.hasOwnProperty),regExpTest=unapply(RegExp.prototype.test),typeErrorCreate=unconstruct(TypeError);function unapply(t){return function(i){i instanceof RegExp&&(i.lastIndex=0);for(var u=arguments.length,c=new Array(u>1?u-1:0),p=1;p<u;p++)c[p-1]=arguments[p];return apply(t,i,c)}}function unconstruct(t){return function(){for(var i=arguments.length,u=new Array(i),c=0;c<i;c++)u[c]=arguments[c];return construct(t,u)}}function addToSet(t,i){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:stringToLowerCase;setPrototypeOf&&setPrototypeOf(t,null);let c=i.length;for(;c--;){let p=i[c];if(typeof p=="string"){const g=u(p);g!==p&&(isFrozen(i)||(i[c]=g),p=g)}t[p]=!0}return t}function cleanArray(t){for(let i=0;i<t.length;i++)objectHasOwnProperty(t,i)||(t[i]=null);return t}function clone(t){const i=create(null);for(const[u,c]of entries(t))objectHasOwnProperty(t,u)&&(Array.isArray(c)?i[u]=cleanArray(c):c&&typeof c=="object"&&c.constructor===Object?i[u]=clone(c):i[u]=c);return i}function lookupGetter(t,i){for(;t!==null;){const c=getOwnPropertyDescriptor(t,i);if(c){if(c.get)return unapply(c.get);if(typeof c.value=="function")return unapply(c.value)}t=getPrototypeOf(t)}function u(){return null}return u}const html$1=freeze(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),svg$1=freeze(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),svgFilters=freeze(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),svgDisallowed=freeze(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),mathMl$1=freeze(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),mathMlDisallowed=freeze(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),text=freeze(["#text"]),html=freeze(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),svg=freeze(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),mathMl=freeze(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),xml=freeze(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),MUSTACHE_EXPR=seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ERB_EXPR=seal(/<%[\w\W]*|[\w\W]*%>/gm),TMPLIT_EXPR=seal(/\$\{[\w\W]*/gm),DATA_ATTR=seal(/^data-[\-\w.\u00B7-\uFFFF]+$/),ARIA_ATTR=seal(/^aria-[\-\w]+$/),IS_ALLOWED_URI=seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IS_SCRIPT_OR_DATA=seal(/^(?:\w+script|data):/i),ATTR_WHITESPACE=seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),DOCTYPE_NAME=seal(/^html$/i),CUSTOM_ELEMENT=seal(/^[a-z][.\w]*(-[.\w]+)+$/i);var EXPRESSIONS=Object.freeze({__proto__:null,ARIA_ATTR,ATTR_WHITESPACE,CUSTOM_ELEMENT,DATA_ATTR,DOCTYPE_NAME,ERB_EXPR,IS_ALLOWED_URI,IS_SCRIPT_OR_DATA,MUSTACHE_EXPR,TMPLIT_EXPR});const NODE_TYPE={element:1,text:3,progressingInstruction:7,comment:8,document:9},getGlobal=function t(){return typeof window>"u"?null:window},_createTrustedTypesPolicy=function t(i,u){if(typeof i!="object"||typeof i.createPolicy!="function")return null;let c=null;const p="data-tt-policy-suffix";u&&u.hasAttribute(p)&&(c=u.getAttribute(p));const g="dompurify"+(c?"#"+c:"");try{return i.createPolicy(g,{createHTML(v){return v},createScriptURL(v){return v}})}catch{return console.warn("TrustedTypes policy "+g+" could not be created."),null}},_createHooksMap=function t(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function createDOMPurify(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:getGlobal();const i=xe=>createDOMPurify(xe);if(i.version="3.3.1",i.removed=[],!t||!t.document||t.document.nodeType!==NODE_TYPE.document||!t.Element)return i.isSupported=!1,i;let{document:u}=t;const c=u,p=c.currentScript,{DocumentFragment:g,HTMLTemplateElement:v,Node:x,Element:E,NodeFilter:_,NamedNodeMap:T=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:w,DOMParser:R,trustedTypes:M}=t,k=E.prototype,A=lookupGetter(k,"cloneNode"),D=lookupGetter(k,"remove"),z=lookupGetter(k,"nextSibling"),L=lookupGetter(k,"childNodes"),U=lookupGetter(k,"parentNode");if(typeof v=="function"){const xe=u.createElement("template");xe.content&&xe.content.ownerDocument&&(u=xe.content.ownerDocument)}let V,Q="";const{implementation:Z,createNodeIterator:F,createDocumentFragment:Y,getElementsByTagName:ne}=u,{importNode:fe}=c;let oe=_createHooksMap();i.isSupported=typeof entries=="function"&&typeof U=="function"&&Z&&Z.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:le,ERB_EXPR:Se,TMPLIT_EXPR:ve,DATA_ATTR:_e,ARIA_ATTR:K,IS_SCRIPT_OR_DATA:pe,ATTR_WHITESPACE:te,CUSTOM_ELEMENT:Re}=EXPRESSIONS;let{IS_ALLOWED_URI:Ae}=EXPRESSIONS,H=null;const ie=addToSet({},[...html$1,...svg$1,...svgFilters,...mathMl$1,...text]);let ue=null;const be=addToSet({},[...html,...svg,...mathMl,...xml]);let me=Object.seal(create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ee=null,Te=null;const ke=Object.seal(create(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Me=!0,Ve=!0,ft=!1,je=!0,vt=!1,At=!0,Ue=!1,dt=!1,un=!1,_n=!1,Ye=!1,Zt=!1,wt=!0,cn=!1;const Tt="user-content-";let ot=!0,An=!1,Xt={},Dt=null;const Pt=addToSet({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let pn=null;const mn=addToSet({},["audio","video","img","source","image","track"]);let Yn=null;const at=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),gn="http://www.w3.org/1998/Math/MathML",bt="http://www.w3.org/2000/svg",pt="http://www.w3.org/1999/xhtml";let tt=pt,nt=!1,fn=null;const yn=addToSet({},[gn,bt,pt],stringToString);let qt=addToSet({},["mi","mo","mn","ms","mtext"]),rt=addToSet({},["annotation-xml"]);const Jt=addToSet({},["title","style","font","a","script"]);let Ct=null;const Cn=["application/xhtml+xml","text/html"],On="text/html";let mt=null,dn=null;const Kn=u.createElement("form"),wn=function(q){return q instanceof RegExp||q instanceof Function},Zn=function(){let q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(dn&&dn===q)){if((!q||typeof q!="object")&&(q={}),q=clone(q),Ct=Cn.indexOf(q.PARSER_MEDIA_TYPE)===-1?On:q.PARSER_MEDIA_TYPE,mt=Ct==="application/xhtml+xml"?stringToString:stringToLowerCase,H=objectHasOwnProperty(q,"ALLOWED_TAGS")?addToSet({},q.ALLOWED_TAGS,mt):ie,ue=objectHasOwnProperty(q,"ALLOWED_ATTR")?addToSet({},q.ALLOWED_ATTR,mt):be,fn=objectHasOwnProperty(q,"ALLOWED_NAMESPACES")?addToSet({},q.ALLOWED_NAMESPACES,stringToString):yn,Yn=objectHasOwnProperty(q,"ADD_URI_SAFE_ATTR")?addToSet(clone(at),q.ADD_URI_SAFE_ATTR,mt):at,pn=objectHasOwnProperty(q,"ADD_DATA_URI_TAGS")?addToSet(clone(mn),q.ADD_DATA_URI_TAGS,mt):mn,Dt=objectHasOwnProperty(q,"FORBID_CONTENTS")?addToSet({},q.FORBID_CONTENTS,mt):Pt,Ee=objectHasOwnProperty(q,"FORBID_TAGS")?addToSet({},q.FORBID_TAGS,mt):clone({}),Te=objectHasOwnProperty(q,"FORBID_ATTR")?addToSet({},q.FORBID_ATTR,mt):clone({}),Xt=objectHasOwnProperty(q,"USE_PROFILES")?q.USE_PROFILES:!1,Me=q.ALLOW_ARIA_ATTR!==!1,Ve=q.ALLOW_DATA_ATTR!==!1,ft=q.ALLOW_UNKNOWN_PROTOCOLS||!1,je=q.ALLOW_SELF_CLOSE_IN_ATTR!==!1,vt=q.SAFE_FOR_TEMPLATES||!1,At=q.SAFE_FOR_XML!==!1,Ue=q.WHOLE_DOCUMENT||!1,_n=q.RETURN_DOM||!1,Ye=q.RETURN_DOM_FRAGMENT||!1,Zt=q.RETURN_TRUSTED_TYPE||!1,un=q.FORCE_BODY||!1,wt=q.SANITIZE_DOM!==!1,cn=q.SANITIZE_NAMED_PROPS||!1,ot=q.KEEP_CONTENT!==!1,An=q.IN_PLACE||!1,Ae=q.ALLOWED_URI_REGEXP||IS_ALLOWED_URI,tt=q.NAMESPACE||pt,qt=q.MATHML_TEXT_INTEGRATION_POINTS||qt,rt=q.HTML_INTEGRATION_POINTS||rt,me=q.CUSTOM_ELEMENT_HANDLING||{},q.CUSTOM_ELEMENT_HANDLING&&wn(q.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(me.tagNameCheck=q.CUSTOM_ELEMENT_HANDLING.tagNameCheck),q.CUSTOM_ELEMENT_HANDLING&&wn(q.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(me.attributeNameCheck=q.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),q.CUSTOM_ELEMENT_HANDLING&&typeof q.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(me.allowCustomizedBuiltInElements=q.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),vt&&(Ve=!1),Ye&&(_n=!0),Xt&&(H=addToSet({},text),ue=[],Xt.html===!0&&(addToSet(H,html$1),addToSet(ue,html)),Xt.svg===!0&&(addToSet(H,svg$1),addToSet(ue,svg),addToSet(ue,xml)),Xt.svgFilters===!0&&(addToSet(H,svgFilters),addToSet(ue,svg),addToSet(ue,xml)),Xt.mathMl===!0&&(addToSet(H,mathMl$1),addToSet(ue,mathMl),addToSet(ue,xml))),q.ADD_TAGS&&(typeof q.ADD_TAGS=="function"?ke.tagCheck=q.ADD_TAGS:(H===ie&&(H=clone(H)),addToSet(H,q.ADD_TAGS,mt))),q.ADD_ATTR&&(typeof q.ADD_ATTR=="function"?ke.attributeCheck=q.ADD_ATTR:(ue===be&&(ue=clone(ue)),addToSet(ue,q.ADD_ATTR,mt))),q.ADD_URI_SAFE_ATTR&&addToSet(Yn,q.ADD_URI_SAFE_ATTR,mt),q.FORBID_CONTENTS&&(Dt===Pt&&(Dt=clone(Dt)),addToSet(Dt,q.FORBID_CONTENTS,mt)),q.ADD_FORBID_CONTENTS&&(Dt===Pt&&(Dt=clone(Dt)),addToSet(Dt,q.ADD_FORBID_CONTENTS,mt)),ot&&(H["#text"]=!0),Ue&&addToSet(H,["html","head","body"]),H.table&&(addToSet(H,["tbody"]),delete Ee.tbody),q.TRUSTED_TYPES_POLICY){if(typeof q.TRUSTED_TYPES_POLICY.createHTML!="function")throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof q.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');V=q.TRUSTED_TYPES_POLICY,Q=V.createHTML("")}else V===void 0&&(V=_createTrustedTypesPolicy(M,p)),V!==null&&typeof Q=="string"&&(Q=V.createHTML(""));freeze&&freeze(q),dn=q}},Ut=addToSet({},[...svg$1,...svgFilters,...svgDisallowed]),$t=addToSet({},[...mathMl$1,...mathMlDisallowed]),vn=function(q){let ge=U(q);(!ge||!ge.tagName)&&(ge={namespaceURI:tt,tagName:"template"});const ye=stringToLowerCase(q.tagName),De=stringToLowerCase(ge.tagName);return fn[q.namespaceURI]?q.namespaceURI===bt?ge.namespaceURI===pt?ye==="svg":ge.namespaceURI===gn?ye==="svg"&&(De==="annotation-xml"||qt[De]):!!Ut[ye]:q.namespaceURI===gn?ge.namespaceURI===pt?ye==="math":ge.namespaceURI===bt?ye==="math"&&rt[De]:!!$t[ye]:q.namespaceURI===pt?ge.namespaceURI===bt&&!rt[De]||ge.namespaceURI===gn&&!qt[De]?!1:!$t[ye]&&(Jt[ye]||!Ut[ye]):!!(Ct==="application/xhtml+xml"&&fn[q.namespaceURI]):!1},Nt=function(q){arrayPush(i.removed,{element:q});try{U(q).removeChild(q)}catch{D(q)}},Ie=function(q,ge){try{arrayPush(i.removed,{attribute:ge.getAttributeNode(q),from:ge})}catch{arrayPush(i.removed,{attribute:null,from:ge})}if(ge.removeAttribute(q),q==="is")if(_n||Ye)try{Nt(ge)}catch{}else try{ge.setAttribute(q,"")}catch{}},kt=function(q){let ge=null,ye=null;if(un)q="<remove></remove>"+q;else{const Ce=stringMatch(q,/^[\r\n\t ]+/);ye=Ce&&Ce[0]}Ct==="application/xhtml+xml"&&tt===pt&&(q='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+q+"</body></html>");const De=V?V.createHTML(q):q;if(tt===pt)try{ge=new R().parseFromString(De,Ct)}catch{}if(!ge||!ge.documentElement){ge=Z.createDocument(tt,"template",null);try{ge.documentElement.innerHTML=nt?Q:De}catch{}}const He=ge.body||ge.documentElement;return q&&ye&&He.insertBefore(u.createTextNode(ye),He.childNodes[0]||null),tt===pt?ne.call(ge,Ue?"html":"body")[0]:Ue?ge.documentElement:He},tn=function(q){return F.call(q.ownerDocument||q,q,_.SHOW_ELEMENT|_.SHOW_COMMENT|_.SHOW_TEXT|_.SHOW_PROCESSING_INSTRUCTION|_.SHOW_CDATA_SECTION,null)},It=function(q){return q instanceof w&&(typeof q.nodeName!="string"||typeof q.textContent!="string"||typeof q.removeChild!="function"||!(q.attributes instanceof T)||typeof q.removeAttribute!="function"||typeof q.setAttribute!="function"||typeof q.namespaceURI!="string"||typeof q.insertBefore!="function"||typeof q.hasChildNodes!="function")},ht=function(q){return typeof x=="function"&&q instanceof x};function Ke(xe,q,ge){arrayForEach(xe,ye=>{ye.call(i,q,ge,dn)})}const nn=function(q){let ge=null;if(Ke(oe.beforeSanitizeElements,q,null),It(q))return Nt(q),!0;const ye=mt(q.nodeName);if(Ke(oe.uponSanitizeElement,q,{tagName:ye,allowedTags:H}),At&&q.hasChildNodes()&&!ht(q.firstElementChild)&®ExpTest(/<[/\w!]/g,q.innerHTML)&®ExpTest(/<[/\w!]/g,q.textContent)||q.nodeType===NODE_TYPE.progressingInstruction||At&&q.nodeType===NODE_TYPE.comment&®ExpTest(/<[/\w]/g,q.data))return Nt(q),!0;if(!(ke.tagCheck instanceof Function&&ke.tagCheck(ye))&&(!H[ye]||Ee[ye])){if(!Ee[ye]&&Ze(ye)&&(me.tagNameCheck instanceof RegExp&®ExpTest(me.tagNameCheck,ye)||me.tagNameCheck instanceof Function&&me.tagNameCheck(ye)))return!1;if(ot&&!Dt[ye]){const De=U(q)||q.parentNode,He=L(q)||q.childNodes;if(He&&De){const Ce=He.length;for(let Ne=Ce-1;Ne>=0;--Ne){const We=A(He[Ne],!0);We.__removalCount=(q.__removalCount||0)+1,De.insertBefore(We,z(q))}}}return Nt(q),!0}return q instanceof E&&!vn(q)||(ye==="noscript"||ye==="noembed"||ye==="noframes")&®ExpTest(/<\/no(script|embed|frames)/i,q.innerHTML)?(Nt(q),!0):(vt&&q.nodeType===NODE_TYPE.text&&(ge=q.textContent,arrayForEach([le,Se,ve],De=>{ge=stringReplace(ge,De," ")}),q.textContent!==ge&&(arrayPush(i.removed,{element:q.cloneNode()}),q.textContent=ge)),Ke(oe.afterSanitizeElements,q,null),!1)},Lt=function(q,ge,ye){if(wt&&(ge==="id"||ge==="name")&&(ye in u||ye in Kn))return!1;if(!(Ve&&!Te[ge]&®ExpTest(_e,ge))){if(!(Me&®ExpTest(K,ge))){if(!(ke.attributeCheck instanceof Function&&ke.attributeCheck(ge,q))){if(!ue[ge]||Te[ge]){if(!(Ze(q)&&(me.tagNameCheck instanceof RegExp&®ExpTest(me.tagNameCheck,q)||me.tagNameCheck instanceof Function&&me.tagNameCheck(q))&&(me.attributeNameCheck instanceof RegExp&®ExpTest(me.attributeNameCheck,ge)||me.attributeNameCheck instanceof Function&&me.attributeNameCheck(ge,q))||ge==="is"&&me.allowCustomizedBuiltInElements&&(me.tagNameCheck instanceof RegExp&®ExpTest(me.tagNameCheck,ye)||me.tagNameCheck instanceof Function&&me.tagNameCheck(ye))))return!1}else if(!Yn[ge]){if(!regExpTest(Ae,stringReplace(ye,te,""))){if(!((ge==="src"||ge==="xlink:href"||ge==="href")&&q!=="script"&&stringIndexOf(ye,"data:")===0&&pn[q])){if(!(ft&&!regExpTest(pe,stringReplace(ye,te,"")))){if(ye)return!1}}}}}}}return!0},Ze=function(q){return q!=="annotation-xml"&&stringMatch(q,Re)},jn=function(q){Ke(oe.beforeSanitizeAttributes,q,null);const{attributes:ge}=q;if(!ge||It(q))return;const ye={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ue,forceKeepAttr:void 0};let De=ge.length;for(;De--;){const He=ge[De],{name:Ce,namespaceURI:Ne,value:We}=He,Et=mt(Ce),ze=We;let ut=Ce==="value"?ze:stringTrim(ze);if(ye.attrName=Et,ye.attrValue=ut,ye.keepAttr=!0,ye.forceKeepAttr=void 0,Ke(oe.uponSanitizeAttribute,q,ye),ut=ye.attrValue,cn&&(Et==="id"||Et==="name")&&(Ie(Ce,q),ut=Tt+ut),At&®ExpTest(/((--!?|])>)|<\/(style|title|textarea)/i,ut)){Ie(Ce,q);continue}if(Et==="attributename"&&stringMatch(ut,"href")){Ie(Ce,q);continue}if(ye.forceKeepAttr)continue;if(!ye.keepAttr){Ie(Ce,q);continue}if(!je&®ExpTest(/\/>/i,ut)){Ie(Ce,q);continue}vt&&arrayForEach([le,Se,ve],Ot=>{ut=stringReplace(ut,Ot," ")});const Ge=mt(q.nodeName);if(!Lt(Ge,Et,ut)){Ie(Ce,q);continue}if(V&&typeof M=="object"&&typeof M.getAttributeType=="function"&&!Ne)switch(M.getAttributeType(Ge,Et)){case"TrustedHTML":{ut=V.createHTML(ut);break}case"TrustedScriptURL":{ut=V.createScriptURL(ut);break}}if(ut!==ze)try{Ne?q.setAttributeNS(Ne,Ce,ut):q.setAttribute(Ce,ut),It(q)?Nt(q):arrayPop(i.removed)}catch{Ie(Ce,q)}}Ke(oe.afterSanitizeAttributes,q,null)},Dn=function xe(q){let ge=null;const ye=tn(q);for(Ke(oe.beforeSanitizeShadowDOM,q,null);ge=ye.nextNode();)Ke(oe.uponSanitizeShadowNode,ge,null),nn(ge),jn(ge),ge.content instanceof g&&xe(ge.content);Ke(oe.afterSanitizeShadowDOM,q,null)};return i.sanitize=function(xe){let q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ge=null,ye=null,De=null,He=null;if(nt=!xe,nt&&(xe="<!-->"),typeof xe!="string"&&!ht(xe))if(typeof xe.toString=="function"){if(xe=xe.toString(),typeof xe!="string")throw typeErrorCreate("dirty is not a string, aborting")}else throw typeErrorCreate("toString is not a function");if(!i.isSupported)return xe;if(dt||Zn(q),i.removed=[],typeof xe=="string"&&(An=!1),An){if(xe.nodeName){const We=mt(xe.nodeName);if(!H[We]||Ee[We])throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place")}}else if(xe instanceof x)ge=kt("<!---->"),ye=ge.ownerDocument.importNode(xe,!0),ye.nodeType===NODE_TYPE.element&&ye.nodeName==="BODY"||ye.nodeName==="HTML"?ge=ye:ge.appendChild(ye);else{if(!_n&&!vt&&!Ue&&xe.indexOf("<")===-1)return V&&Zt?V.createHTML(xe):xe;if(ge=kt(xe),!ge)return _n?null:Zt?Q:""}ge&&un&&Nt(ge.firstChild);const Ce=tn(An?xe:ge);for(;De=Ce.nextNode();)nn(De),jn(De),De.content instanceof g&&Dn(De.content);if(An)return xe;if(_n){if(Ye)for(He=Y.call(ge.ownerDocument);ge.firstChild;)He.appendChild(ge.firstChild);else He=ge;return(ue.shadowroot||ue.shadowrootmode)&&(He=fe.call(c,He,!0)),He}let Ne=Ue?ge.outerHTML:ge.innerHTML;return Ue&&H["!doctype"]&&ge.ownerDocument&&ge.ownerDocument.doctype&&ge.ownerDocument.doctype.name&®ExpTest(DOCTYPE_NAME,ge.ownerDocument.doctype.name)&&(Ne="<!DOCTYPE "+ge.ownerDocument.doctype.name+`>
|
|
121
|
-
`+Ne),vt&&arrayForEach([le,Se,ve],We=>{Ne=stringReplace(Ne,We," ")}),V&&Zt?V.createHTML(Ne):Ne},i.setConfig=function(){let xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Zn(xe),dt=!0},i.clearConfig=function(){dn=null,dt=!1},i.isValidAttribute=function(xe,q,ge){dn||Zn({});const ye=mt(xe),De=mt(q);return Lt(ye,De,ge)},i.addHook=function(xe,q){typeof q=="function"&&arrayPush(oe[xe],q)},i.removeHook=function(xe,q){if(q!==void 0){const ge=arrayLastIndexOf(oe[xe],q);return ge===-1?void 0:arraySplice(oe[xe],ge,1)[0]}return arrayPop(oe[xe])},i.removeHooks=function(xe){oe[xe]=[]},i.removeAllHooks=function(){oe=_createHooksMap()},i}var purify=createDOMPurify();const HighlightLoadingInfo=({onClose:t})=>{const i=useTranslation();return jsxRuntimeExports.jsxs("div",{className:styles$1.highlightLoadingInfo,onClick:t,children:[jsxRuntimeExports.jsx("div",{className:styles$1.highlightLoadingInfoCloseIcon,children:jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:jsxRuntimeExports.jsx("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"})})}),jsxRuntimeExports.jsxs("div",{className:styles$1.highlightLoadingInfoInnerContainer,children:[jsxRuntimeExports.jsxs("div",{className:styles$1.highlightLoadingInfoContent,children:[jsxRuntimeExports.jsx("h3",{children:i("source-infos.highlight-loading.title")}),jsxRuntimeExports.jsx("p",{children:i("source-infos.highlight-loading.description")})]}),jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"#000000",viewBox:"0 0 256 256",children:jsxRuntimeExports.jsx("path",{d:"M253.66,106.34a8,8,0,0,0-11.32,0L192,156.69,107.31,72l50.35-50.34a8,8,0,1,0-11.32-11.32L96,60.69A16,16,0,0,0,93.18,79.5L72,100.69a16,16,0,0,0,0,22.62L76.69,128,18.34,186.34a8,8,0,0,0,3.13,13.25l72,24A7.88,7.88,0,0,0,96,224a8,8,0,0,0,5.66-2.34L136,187.31l4.69,4.69a16,16,0,0,0,22.62,0l21.19-21.18A16,16,0,0,0,203.31,168l50.35-50.34A8,8,0,0,0,253.66,106.34ZM93.84,206.85l-55-18.35L88,139.31,124.69,176ZM152,180.69,83.31,112,104,91.31,172.69,160Z"})})]})]})},MarkdownLink=({title:t,href:i,children:u})=>jsxRuntimeExports.jsx("a",{href:i,title:t,target:"_blank",rel:"noopener noreferrer",children:u}),DefaultLinkButton=({className:t,children:i,...u})=>jsxRuntimeExports.jsx("a",{className:clsx(styles$g.button,styles$g.buttonDefault,t),type:"button",role:"button",...u,children:i}),Text=t=>jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:jsxRuntimeExports.jsx("path",{d:"M52,146H36a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6H52a34,34,0,0,0,0-68Zm0,56H42V158H52a22,22,0,0,1,0,44Zm168.15-5.46a6,6,0,0,1,.18,8.48A28.06,28.06,0,0,1,200,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,200,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a16.23,16.23,0,0,0,11.67-5.28A6,6,0,0,1,220.15,196.54ZM128,146c-16.54,0-30,15.25-30,34s13.46,34,30,34,30-15.25,30-34S144.54,146,128,146Zm0,56c-9.93,0-18-9.87-18-22s8.07-22,18-22,18,9.87,18,22S137.93,202,128,202ZM48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Z"})}),KnowledgeBaseTypeIcon=({type:t,...i})=>{switch(t){case"WEBSITE":return jsxRuntimeExports.jsx(Web,{...i});case"PDF":return jsxRuntimeExports.jsx(Pdf,{...i});case"DOCX":return jsxRuntimeExports.jsx(Docx,{...i});case"TEXT":return jsxRuntimeExports.jsx(Text,{...i});default:return jsxRuntimeExports.jsx(File$1,{...i})}},OpenButton=({url:t,knowledgeBaseType:i})=>{const u=useTranslation();return jsxRuntimeExports.jsx(DefaultLinkButton,{className:styles$1.openSourceButton,href:t,target:"_blank",children:jsxRuntimeExports.jsxs("div",{className:styles$1.sourceButtonLabel,children:[jsxRuntimeExports.jsx("div",{className:styles$1.sourceHeaderIcon,children:jsxRuntimeExports.jsx(KnowledgeBaseTypeIcon,{type:i})}),jsxRuntimeExports.jsx("p",{children:u("source-infos.open-source")})]})})},LoadedSourceInfos=({sourceInfos:{content:t,url:i,knowledgeBaseType:u,highlighted:c}})=>{const[p,g]=reactExports.useState(!c);reactExports.useEffect(()=>{c&&g(!1)},[c]);const v=purify.sanitize(t,{USE_PROFILES:{html:!0}});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:clsx(styles$1.sourceContent,markdownStyle.markdown),children:[jsxRuntimeExports.jsx(X5,{options:{overrides:{a:MarkdownLink}},children:v}),p&&jsxRuntimeExports.jsx(HighlightLoadingInfo,{onClose:()=>g(!1)})]}),jsxRuntimeExports.jsx(OpenButton,{url:i,knowledgeBaseType:u})]})},fixingError=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,LoadingError=()=>{const t=useTranslation();return jsxRuntimeExports.jsxs("div",{className:styles$1.loadingError,children:[jsxRuntimeExports.jsx("h1",{children:t("source-infos.error.title")}),jsxRuntimeExports.jsx("img",{src:fixingError,title:t("source-infos.error.title")}),jsxRuntimeExports.jsx("p",{children:t("source-infos.error.info")})]})},LoadingSourceInfos=()=>jsxRuntimeExports.jsx("div",{className:styles$1.loadingSourceInfos,children:jsxRuntimeExports.jsx("svg",{className:styles$1.loading,xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:jsxRuntimeExports.jsx("path",{d:"M230,128a102,102,0,0,1-204,0c0-40.18,23.35-76.86,59.5-93.45a6,6,0,0,1,5,10.9C58.61,60.09,38,92.49,38,128a90,90,0,0,0,180,0c0-35.51-20.61-67.91-52.5-82.55a6,6,0,0,1,5-10.9C206.65,51.14,230,87.82,230,128Z"})})});function useSwipeToClose({sourceInfos:t,onClose:i,threshold:u=100}){const c=reactExports.useRef(null),[p,g]=reactExports.useState(0),[v,x]=reactExports.useState(!1),E=reactExports.useRef(null),_=reactExports.useRef(null),T=reactExports.useCallback(k=>{E.current=k,x(!0)},[]),w=reactExports.useCallback(k=>{if(E.current!==null&&v){const A=k-E.current;A>0&&g(A)}},[v]),R=reactExports.useCallback(()=>{x(!1),p>u&&i(),g(0),E.current=null},[p,u,i]),M=reactExports.useCallback(k=>{const A=Q=>T(Q.touches[0].clientY),D=Q=>w(Q.touches[0].clientY),z=()=>R(),L=Q=>{Q.preventDefault(),T(Q.clientY),window.addEventListener("mousemove",U),window.addEventListener("mouseup",V)},U=Q=>w(Q.clientY),V=()=>{R(),window.removeEventListener("mousemove",U),window.removeEventListener("mouseup",V)};k.addEventListener("touchstart",A),k.addEventListener("touchmove",D),k.addEventListener("touchend",z),k.addEventListener("mousedown",L),_.current=()=>{k.removeEventListener("touchstart",A),k.removeEventListener("touchmove",D),k.removeEventListener("touchend",z),k.removeEventListener("mousedown",L),window.removeEventListener("mousemove",U),window.removeEventListener("mouseup",V)}},[T,w,R]);return reactExports.useEffect(()=>{let k;return c.current?(_.current?.(),M(c.current)):(k=new MutationObserver(()=>{c.current&&(_.current?.(),M(c.current),k?.disconnect())}),k.observe(document.body,{childList:!0,subtree:!0})),()=>{k?.disconnect(),_.current?.()}},[M,t]),{ref:c,dragOffsetY:p,isDragging:v}}const useWaitForLoadingEffect=t=>{const[i,u]=reactExports.useState(!0);return reactExports.useEffect(()=>{let c=null;return t?.type==="loading"?(u(!0),c=setTimeout(()=>{u(!1)},300)):u(!t),()=>{c&&clearTimeout(c)}},[t]),i},SourceInfos=()=>{const t=useAppDispatch(),i=useAppSelector(E=>E.chat.sourceInfos),u=useIsSmallScreen(),c=reactExports.useRef(null),p=useWaitForLoadingEffect(i);reactExports.useEffect(()=>{c.current&&i?.type==="loading"&&(u?c.current.showModal():(c.current.setAttribute("open","true"),c.current?.focus()))},[i,u]);const g=reactExports.useCallback(()=>{c.current&&(u?c.current.close():c.current.removeAttribute("open"),t(closeSourceInfos()))},[t,u]),{ref:v,dragOffsetY:x}=useSwipeToClose({onClose:g,sourceInfos:i});return i?jsxRuntimeExports.jsx("dialog",{ref:c,className:clsx(styles$1.sourceInfos,p?styles$1.waitForLoading:i.type==="loading"?styles$1.loadingContent:""),style:u&&x?{transform:`translateY(${x}px)`}:{},onClose:g,autoFocus:!0,role:"dialog","aria-labelledby":"source-info-title",children:p?null:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Header,{ref:v,tabIndex:-1,sourceInfos:i.type==="loaded"?i:void 0,onClose:g}),i.type==="loading"?jsxRuntimeExports.jsx(LoadingSourceInfos,{}):i.type==="loading-error"?jsxRuntimeExports.jsx(LoadingError,{}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(HighlightLoader,{loading:!i.highlighted}),jsxRuntimeExports.jsx(LoadedSourceInfos,{sourceInfos:i})]})]})}):null},container$1="_container_1hnv6_1",body="_body_1hnv6_7",intro="_intro_1hnv6_14",footer="_footer_1hnv6_48",footnote="_footnote_1hnv6_52",containerWithFootnote="_containerWithFootnote_1hnv6_67",startChatButton="_startChatButton_1hnv6_82",spinner="_spinner_1hnv6_97",formFields="_formFields_1hnv6_101",formField="_formField_1hnv6_101",radio="_radio_1hnv6_113",checkbox="_checkbox_1hnv6_120",input="_input_1hnv6_128",inputLabel="_inputLabel_1hnv6_162",selectWrapper="_selectWrapper_1hnv6_166",select="_select_1hnv6_166",selectLabel="_selectLabel_1hnv6_212",styles={container:container$1,body,intro,footer,footnote,containerWithFootnote,startChatButton,spinner,formFields,formField,radio,checkbox,input,inputLabel,selectWrapper,select,selectLabel},Checkbox=({name:t,label:i,defaultValue:u,required:c,onChange:p})=>{const g=v=>{p(v.currentTarget.checked?"true":"false")};return jsxRuntimeExports.jsxs("label",{className:clsx(styles.checkbox,"chat__startScreen__checkbox"),htmlFor:t,children:[jsxRuntimeExports.jsx("input",{type:"checkbox",id:t,name:t,defaultChecked:u==="true",required:c,onChange:g}),jsxRuntimeExports.jsx("div",{children:i})]})},Input=({type:t,name:i,label:u,defaultValue:c,placeholder:p,required:g,multiple:v,min:x,max:E,pattern:_,onChange:T})=>{const w=R=>{T(R.target.value)};return jsxRuntimeExports.jsxs("label",{className:clsx(styles.input,"chat__startScreen__input"),htmlFor:i,children:[jsxRuntimeExports.jsx("div",{className:clsx(styles.inputLabel),children:u}),jsxRuntimeExports.jsx("input",{type:t,id:i,name:i,defaultValue:c,placeholder:p,required:g,multiple:v,min:x,max:E,pattern:_,onChange:w})]})},Radio=({name:t,value:i,label:u,defaultChecked:c,required:p,onChange:g})=>{const v=`${t}-${i}`,x=E=>{g(E.target.value)};return jsxRuntimeExports.jsxs("label",{className:clsx(styles.radio,"chat__startScreen__radio"),htmlFor:v,children:[jsxRuntimeExports.jsx("input",{id:v,type:"radio",name:t,value:i,defaultChecked:c,required:p,onChange:x}),jsxRuntimeExports.jsx("span",{className:clsx(styles.label),children:u})]})},Select=({name:t,label:i,defaultValue:u,required:c,multiple:p,options:g,onChange:v})=>{const x=E=>{v(E.target.value)};return jsxRuntimeExports.jsxs("label",{className:clsx(styles.select,"chat__startScreen__select"),htmlFor:t,children:[jsxRuntimeExports.jsx("div",{className:clsx(styles.selectLabel),children:i}),jsxRuntimeExports.jsx("div",{className:clsx(styles.selectWrapper),children:jsxRuntimeExports.jsx("select",{id:t,name:t,defaultValue:u,required:c,multiple:p,onChange:x,children:Object.entries(g||{}).map(([E,_])=>jsxRuntimeExports.jsx("option",{value:E,selected:_===u,children:_}))})})]})},INTRO_KEY="start-screen.intro",START_CHAT_KEY="start-screen.start-chat",WAITING_FOR_LOGIN_KEY="start-screen.waiting-for-login",FOOTNOTE_KEY="start-screen.footnote",FORM_KEY="start-screen.form",FORM_FIELDS_KEY=`${FORM_KEY}.fields`,StartScreen=()=>{const t=useTranslation(),i=useAppDispatch(),u=useClientName(),c=useAppSelector(k=>k.startScreen.loginRequestToken),p=useAppSelector(k=>k.settings.requiresUserAuthentication);reactExports.useEffect(()=>{let k;if(c){const z=window.screenX+(window.outerWidth-600)/2,L=window.screenY+(window.outerHeight-700)/2,U=encodeURIComponent(u),V=new URL(window.location.origin);V.pathname=`/${U}/auth/login`,V.searchParams.set("loginRequestToken",c);const Q=window.open(V.href,"Login",`width=600,height=700,left=${z},top=${L},resizable=yes,scrollbars=yes`);k=setInterval(()=>{Q?.closed&&(i(loginWindowClosed()),clearInterval(k))},500)}return()=>{k&&clearInterval(k)}},[u,c,i]);const[g,v]=reactExports.useState({}),x=()=>{const k=Object.entries(g).reduce((A,[D,z])=>({...A,[D]:z.value}),{});i(p?requestLogin({loginRequestToken:v4(),formValues:k}):startChat$1({formValues:k}))},E=t(INTRO_KEY),_=t(c?WAITING_FOR_LOGIN_KEY:START_CHAT_KEY),T=t(FOOTNOTE_KEY),w=reactExports.useMemo(()=>t(FORM_FIELDS_KEY)?.split(";").map(k=>k.trim())??[],[t(FORM_FIELDS_KEY)]);reactExports.useEffect(()=>{w.length&&Object.keys(g).length===0&&v(w.reduce((k,A)=>({...k,[A]:toFormField(A,t)}),{}))},[t,w,g]);const R=k=>{k.preventDefault(),x()},M=k=>A=>{v(D=>({...D,[k]:{...D[k],value:A}}))};return jsxRuntimeExports.jsxs("form",{onSubmit:R,className:clsx(styles.container,T&&styles.containerWithFootnote,"chat__startScreen"),children:[jsxRuntimeExports.jsxs("div",{className:clsx(styles.body,"chat__startScreen__body"),children:[E&&jsxRuntimeExports.jsx("div",{className:clsx(styles.intro,"chat__startScreen__intro"),children:jsxRuntimeExports.jsx(X5,{options:{overrides:{a:Link}},children:E})}),jsxRuntimeExports.jsx("div",{className:clsx(styles.formFields,"chat__startScreen__fields"),children:Object.values(g).map(({type:k,name:A,label:D,placeholder:z,defaultValue:L,options:U,required:V,multiple:Q,min:Z,max:F,pattern:Y})=>jsxRuntimeExports.jsx("div",{className:clsx(styles.formField,"chat__startScreen__field"),children:(()=>{switch(k){case"radio":return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{children:D}),Object.entries(U||{}).map(([ne,fe])=>jsxRuntimeExports.jsx(Radio,{name:A,value:ne,label:fe,defaultChecked:ne===L,required:V,onChange:M(A)},ne))]});case"checkbox":return jsxRuntimeExports.jsx(Checkbox,{name:A,label:D,defaultValue:L,required:V,onChange:M(A)});case"select":return jsxRuntimeExports.jsx(Select,{name:A,label:D,defaultValue:L,required:V,multiple:Q,options:U,onChange:M(A)});default:return jsxRuntimeExports.jsx(Input,{type:k,name:A,label:D,placeholder:z,defaultValue:L,required:V,multiple:Q,min:Z,max:F,pattern:Y,onChange:M(A)})}})()},A))})]}),jsxRuntimeExports.jsxs("div",{className:clsx(styles.footer,"chat__startScreen__footer"),children:[jsxRuntimeExports.jsxs(PrimaryButton,{type:"submit",className:styles.startChatButton,disabled:!!c,children:[!!c&&jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",className:styles.spinner,children:jsxRuntimeExports.jsx("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm88,88H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"})}),jsxRuntimeExports.jsx("div",{children:_})]}),T&&jsxRuntimeExports.jsx("div",{className:styles.footnote,children:jsxRuntimeExports.jsx(X5,{options:{overrides:{a:Link}},children:T})})]})]})},Link=({title:t,href:i,children:u})=>jsxRuntimeExports.jsx("a",{href:i,title:t,target:"_blank",rel:"noopener noreferrer",children:u}),toFormField=(t,i)=>{const u=i(`${FORM_KEY}.${t}.type`)||"text",c=i(`${FORM_KEY}.${t}.required`)==="true",p=i(`${FORM_KEY}.${t}.multiple`)==="true",g=i(`${FORM_KEY}.${t}.placeholder`),v=i(`${FORM_KEY}.${t}.label`)||"",x=i(`${FORM_KEY}.${t}.defaultValue`),E=i(`${FORM_KEY}.${t}.min`),_=i(`${FORM_KEY}.${t}.max`),T=i(`${FORM_KEY}.${t}.pattern`),w=toFormFieldOptions(i(`${FORM_KEY}.${t}.options`));return{name:t,label:v,placeholder:g,value:getTypeSpecificValue(u,x,w)||"",defaultValue:x,options:w,type:u,required:c,multiple:p,min:E,max:_,pattern:T}},getTypeSpecificValue=(t,i,u)=>i||t==="select"&&Object.keys(u)[0]||"",toFormFieldOptions=(t="")=>t.split(";").map(i=>i.trim()).reduce((i,u)=>{const[c,p]=u.split(":").map(g=>g.trim());return{...i,[c]:p}},{}),useSetDocumentLanguageEffect=()=>{const t=useAppSelector(i=>i.intl.locale);reactExports.useEffect(()=>{window.document.documentElement.lang=t},[t])},INCOMING_EVENTS={TRIGGER_ACTION:"TRIGGER_ACTION",TRIGGER_STORY:"TRIGGER_STORY",CHAT_MESSAGE_FROM_GUEST:"CHAT_MESSAGE_FROM_GUEST",ON_CHAT_WINDOW_OPEN:"ON_CHAT_WINDOW_OPEN",ON_CHAT_WINDOW_CLOSE:"ON_CHAT_WINDOW_CLOSE",RESTART_CHAT:"RESTART_CHAT"},RootScene=({clientName:t})=>{useSetDocumentLanguageEffect();const i=useAppDispatch(),u=useAppSelector(T=>T.intl.messages),c=useTranslation(),p=useAppSelector(T=>T.settings.enableStartScreen),g=useAppSelector(T=>T.startScreen.startScreenStatus),v=useAppSelector(T=>T.connection.queryString),x=reactExports.useMemo(()=>new URLSearchParams(v||"?").get("cssClassName"),[v]);reactExports.useEffect(()=>{const T=new URLSearchParams(v||""),w=Object.fromEntries(T.entries()),R=M=>{if(!(!M.data?.type||!Object.values(INCOMING_EVENTS).includes(M.data.type))){if(M.origin!==window.location.origin&&M.source!==window.parent){console.warn("Rejected postMessage from untrusted origin:",M.origin);return}switch(M.data.type){case INCOMING_EVENTS.TRIGGER_ACTION:i(M.data.action);break;case INCOMING_EVENTS.TRIGGER_STORY:i(requestNLUEvent(M.data.story));break;case INCOMING_EVENTS.ON_CHAT_WINDOW_OPEN:i({type:"webclient.chatwindow.opened"});break;case INCOMING_EVENTS.ON_CHAT_WINDOW_CLOSE:i({type:"webclient.chatwindow.closed"});break;case INCOMING_EVENTS.CHAT_MESSAGE_FROM_GUEST:i(sendMessageFromUser(M.data.text));break;case INCOMING_EVENTS.RESTART_CHAT:i(restartChat());break}}};return i(connect(t,w)),window.addEventListener("message",R,!1),()=>window.removeEventListener("message",R)},[t,v,i]),reactExports.useEffect(()=>{const T=c("page.title");T&&document&&(document.title=T)},[u,c]);const E=p===void 0,_=p===!1||g==="HIDDEN";return jsxRuntimeExports.jsx("div",{className:clsx(styles$2.chatwindow,_&&styles$2.chatwindowWithAside,"chat__chatwindow",x),children:E?null:_?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("header",{children:jsxRuntimeExports.jsx(Header$1,{chatStarted:!0})}),jsxRuntimeExports.jsx("main",{children:jsxRuntimeExports.jsx(Chat,{clientName:t})}),jsxRuntimeExports.jsx("aside",{children:jsxRuntimeExports.jsx(SourceInfos,{})})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("header",{children:jsxRuntimeExports.jsx(Header$1,{chatStarted:!1})}),jsxRuntimeExports.jsx("main",{children:jsxRuntimeExports.jsx(StartScreen,{})})]})})},App=()=>{const t=useClientName(),i=useIsSmallScreen();return jsxRuntimeExports.jsx("div",{className:clsx([styles$o.app,i?"chat__small":"chat__large"]),children:jsxRuntimeExports.jsx(RootScene,{clientName:t})})},de={"page.title":"Bubble Chat Chatbot","message-input-label":"Benutzereingabe","message-input-placeholder":"Nachricht eingeben","message-input.actions.submit.label":"Nachricht senden","message-input.actions.start-audio-recording.label":"Spracheingabe starten","message-input.actions.stop-audio-recording.label":"Spracheingabe stoppen","message-input.actions.submit-audio-recording.label":"Spracheingabe übermitteln","message-input.actions.command.label":"Aktion ausführen","guest-bubble.label":"Ihre Nachricht","bot-bubble.label":"Nachricht des Chatbots","bot-bubble.actions.label":"Nachricht-Aktionen","bot-bubble.reaction.good":"Gefällt mir","bot-bubble.reaction.bad":"Gefällt mir nicht","bot-bubble.reaction.remove":"Markierung entfernen","bot-bubble.reaction.say-more":"Erzähle mir bitte mehr","bot-bubble.reaction.category.WRONG_INFORMATION":"Falsch","bot-bubble.reaction.category.MISSING_INFORMATION":"Unvollständig","bot-bubble.reaction.category.OLD_INFORMATION":"Veraltet","bot-bubble.reaction.category.UNCLEAR":"Unklar","bot-bubble.reaction.category.OFF_TOPIC":"Nicht zur Frage passend","bot-bubble.reaction.comment":"Gedanken mit mir teilen...","bot-bubble.reaction.close":"Schliessen","bot-bubble.copy":"Kopieren","bot-bubble.sources":"Quellenliste","bot-bubble.source.open":"Quelle öffnen","bot-bubble.footnote":"Fussnote","agent-bubble.label":"Nachricht des Live-Agenten","conversation.label":"Chat Verlauf","chatbot.typing":"Chatbot schreibt","export-transcript.email.title":"Chatverlauf per E-Mail versenden","export-transcript.email.description":"Bitte E-Mail-Adresse angeben, an die der Chatverlauf gesendet werden soll.","export-transcript.email.cancel":"Abbrechen","export-transcript.email.send":"Senden","export-transcript.email.placeholder":"E-Mail-Adresse","export-transcript.email.invalid":"Bitte gültige E-Mail-Adresse eingeben.","export-transcript.email.success":"Der Chatverlauf wurde an die hinterlegte E-Mail-Adresse übermittelt.","general-conditions.header":"**Nutzungsbedingungen**","general-conditions.body":`Bitte berücksichtigen Sie die folgenden Punkte:
|
|
122
|
-
|
|
123
|
-
- Der Chatverlauf wird im EU-Raum gespeichert und kann nur von autorisierten Personen eingesehen werden.
|
|
124
|
-
- Geben Sie im Chatfenster keine persönlichen Daten ein (Passwörter, Geburtsdatum usw.).`,"general-conditions.accept-conditions-note":"Mit der Verwendung des Chats erklären Sie sich mit den Nutzungsbedingungen einverstanden.","block-user-input.title":"Bitte auf die Antwort des Chatbots warten.","conversation-rating.call-to-action.title":"Bewerten Sie diesen Chat","conversation-rating.overlay.title":"Wie zufrieden sind Sie mit diesem Chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Feedback bitte hier eingeben (optional)","conversation-rating.overlay.star.very-bad":"Sehr schlecht","conversation-rating.overlay.star.very-good":"Sehr gut","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Durchschnitt ist nicht mein Ziel, was kann ich noch verbessern?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Knapp daneben ist auch vorbei. Was kann ich noch verbessern, um das nächste Mal alle Sterne zu erreichen?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfekt! Dann hoffe ich, dass ich Sie wieder einmal so gut beraten kann.","conversation-rating.overlay.bot-message.submit-feedback":"Vielen Dank für die Rückmeldung. Ich bin bestrebt, mich ständig zu verbessern.","conversation-rating.overlay.action.submit":"Bewertung senden","conversation-rating.overlay.action.back-to-chat":"Zurück zum Chat","conversation-rating.overlay.action.close-chat":"Chat minimieren","conversation-rating.overlay.action.restart-chat":"Chat neu starten","conversation-rating.overlay.action.cancel":"Abbrechen","start-screen.intro":"","start-screen.start-chat":"Chat starten","start-screen.waiting-for-login":"Warte auf Login ...","header.close-chat":"Chat minimieren","header.menu.title":"Menü","header.menu.restart-chat":"Chat neu starten","header.menu.expand-chat-window":"Fenster maximieren","header.menu.download-transcript":"Chatverlauf herunterladen","header.menu.send-transcript":"Chatverlauf versenden","header.menu.export-transcript":"Chatverlauf exportieren","header.menu.rate-conversation":"Chat bewerten","source-infos.close":"Schliessen","source-infos.open-source":"Quelle öffnen","source-infos.error.title":"Fehler","source-infos.error.info":"Oops! Etwas ist schiefgelaufen. Bitte versuche es erneut oder kontaktiere den Support, falls das Problem weiterhin besteht.","source-infos.highlight-loading.title":"Relevante Inhalte werden markiert...","source-infos.highlight-loading.description":"Einen Moment – die Quelle wird analysiert.","commands.show-more.action":"Weitere ...","commands.show-more.tooltip":"Weitere Befehle anzeigen","commands.show-less.action":"Weniger ...","commands.show-less.tooltip":"Weniger Befehle anzeigen"},en={"page.title":"Bubble Chat Chatbot","message-input-label":"User input","message-input-placeholder":"Enter a message","message-input.actions.submit.label":"Send message","message-input.actions.start-audio-recording.label":"Start voice input","message-input.actions.stop-audio-recording.label":"Stop voice input","message-input.actions.submit-audio-recording.label":"Transmit voice input","guest-bubble.label":"Your message","message-input.actions.command.label":"Perform action","bot-bubble.label":"Message from the chatbot","bot-bubble.actions.label":"Message actions","bot-bubble.reaction.good":"I like","bot-bubble.reaction.bad":"I don't like it","bot-bubble.reaction.remove":"Remove marker","bot-bubble.reaction.say-more":"Please tell us more","bot-bubble.reaction.category.WRONG_INFORMATION":"Wrong","bot-bubble.reaction.category.MISSING_INFORMATION":"Incomplete","bot-bubble.reaction.category.OLD_INFORMATION":"Outdated","bot-bubble.reaction.category.UNCLEAR":"Unclear","bot-bubble.reaction.category.OFF_TOPIC":"Not relevant to the question","bot-bubble.reaction.comment":"Share your thoughts with us...","bot-bubble.reaction.close":"Close","bot-bubble.copy":"Copy","bot-bubble.sources":"Source list","bot-bubble.source.open":"Open source","bot-bubble.footnote":"Footnote","agent-bubble.label":"Message from the live agent","conversation.label":"Chat history","chatbot.typing":"Chatbot is typing","export-transcript.email.title":"Receive chat history","export-transcript.email.description":"Please enter the e-mail address to which the chat history should be sent.","export-transcript.email.cancel":"Cancel","export-transcript.email.send":"Send","export-transcript.email.placeholder":"E-mail address","export-transcript.email.invalid":"Please enter a valid e-mail address.","export-transcript.email.success":"The chat history was sent to the e-mail address provided.","general-conditions.header":"**Terms of use**","general-conditions.body":`Please consider the following points:
|
|
125
|
-
|
|
126
|
-
- The chat history is stored in the EU area and can only be viewed by authorized personnel.
|
|
127
|
-
- Do not enter any personal information in the chat window (passwords, date of birth, etc.)`,"general-conditions.accept-conditions-note":"By using the chat you agree to the terms of use.","block-user-input.title":"Please wait for the chatbot's response.","conversation-rating.call-to-action.title":"Rate this chat","conversation-rating.overlay.title":"How satisfied are you with this chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Please enter feedback here (optional)","conversation-rating.overlay.star.very-bad":"Very bad","conversation-rating.overlay.star.very-good":"Very good","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Average is not my goal, what can I still improve?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Just missed is also over. What can I improve to achieve all stars next time?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfect! Then I hope that I can once again advise you so well.","conversation-rating.overlay.bot-message.submit-feedback":"Thank you for the feedback. I am constantly striving to improve.","conversation-rating.overlay.action.submit":"Send rating","conversation-rating.overlay.action.back-to-chat":"Close","conversation-rating.overlay.action.close-chat":"Minimize chat","conversation-rating.overlay.action.restart-chat":"Restart chat","conversation-rating.overlay.action.cancel":"Cancel","start-screen.intro":"","start-screen.start-chat":"Start chat","start-screen.waiting-for-login":"Waiting for login ...","header.close-chat":"Minimize chat","header.menu.title":"Menu","header.menu.restart-chat":"Restart chat","header.menu.expand-chat-window":"Maximize window","header.menu.download-transcript":"Download chat history","header.menu.export-transcript":"Export chat history","header.menu.send-transcript":"Send chat history","header.menu.rate-conversation":"Rate chat","source-infos.close":"Close","source-infos.open-source":"Open source","source-infos.error.title":"Error","source-infos.error.info":"Oops! Something went wrong. Please try again or contact support if the problem persists.","source-infos.highlight-loading.title":"Relevant content is highlighted...","source-infos.highlight-loading.description":"One moment - the source is being analyzed.","commands.show-more.action":"More","commands.show-more.tooltip":"Show more commands","commands.show-less.action":"Less","commands.show-less.tooltip":"Show less commands"};function flattenObject(t,i="",u="."){const c={};for(const p in t)if(Object.prototype.hasOwnProperty.call(t,p)){const g=t[p],v=i?`${i}${u}${p}`:p;g!==null&&typeof g=="object"&&!Array.isArray(g)?Object.assign(c,flattenObject(g,v,u)):c[v]=String(g)}return c}const fr={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Saisir un message","message-input.actions.submit.label":"Envoyer un message","message-input.actions.start-audio-recording.label":"Démarrer la saisie vocale","message-input.actions.stop-audio-recording.label":"Arrêt de la saisie vocale","message-input.actions.submit-audio-recording.label":"Transmettre une entrée vocale","message-input.actions.command.label":"Exécuter l'action","guest-bubble.label":"Votre message","bot-bubble.label":"Message du chatbot","bot-bubble.actions.label":"Actions du message","bot-bubble.reaction.good":"J'aime bien","bot-bubble.reaction.bad":"Je n'aime pas","bot-bubble.reaction.remove":"Retirer le marqueur","bot-bubble.reaction.say-more":"Dis-nous en plus, s'il te plaît","bot-bubble.reaction.category.WRONG_INFORMATION":"Faux","bot-bubble.reaction.category.MISSING_INFORMATION":"Incomplet","bot-bubble.reaction.category.OLD_INFORMATION":"Obsolète","bot-bubble.reaction.category.UNCLEAR":"Peu clair","bot-bubble.reaction.category.OFF_TOPIC":"Hors sujet","bot-bubble.reaction.comment":"Partager ses pensées avec nous...","bot-bubble.reaction.close":"Fermer","bot-bubble.copy":"Copie","bot-bubble.sources":"Liste des sources","bot-bubble.source.open":"Ouvrir la source","bot-bubble.footnote":"Note de bas de page","agent-bubble.label":"Message de l'agent en direct","conversation.label":"Historique du chat","chatbot.typing":"Le chatbot écrit","export-transcript.email.title":"Recevoir l'historique du chat","export-transcript.email.description":"Veuillez indiquer l'adresse e-mail à laquelle l'historique de chat doit être envoyé.","export-transcript.email.cancel":"Annuler","export-transcript.email.send":"Envoyer","export-transcript.email.placeholder":"E-mail","export-transcript.email.invalid":"Veuillez entrer une adresse électronique valide.","export-transcript.email.success":"L'historique du chat a été envoyé à l'adresse e-mail fournie.","general-conditions.header":"**Conditions d'utilisation**","general-conditions.body":`Veuillez considérer les points suivants:
|
|
128
|
-
|
|
129
|
-
- L'historique du chat est stocké dans l'espace UE et ne peut être consulté que par les personnes autorisées.
|
|
130
|
-
- Ne saisissez aucune information personnelle dans la fenêtre de chat (mots de passe, date de naissance, etc.).`,"general-conditions.accept-conditions-note":"En utilisant le chat, vous acceptez les conditions d'utilisation.","block-user-input.title":"Veuillez attendre la réponse du chatbot.","conversation-rating.call-to-action.title":"Notez ce chat","conversation-rating.overlay.title":"Dans quelle mesure êtes-vous satisfait de ce chat ?","conversation-rating.overlay.guest-feedback.input-placeholder":"Veuillez saisir vos commentaires ici (facultatif)","conversation-rating.overlay.star.very-bad":"Très mauvais","conversation-rating.overlay.star.very-good":"Très bien","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La moyenne n'est pas mon objectif, que puis-je encore améliorer ?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Le rater de peu, c'est le rater aussi. Que puis-je encore améliorer pour obtenir toutes les étoiles la prochaine fois ?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Parfait ! Alors j'espère pouvoir vous conseiller aussi bien une fois de plus.","conversation-rating.overlay.bot-message.submit-feedback":"Merci beaucoup pour votre feed-back. Je m'efforce de m'améliorer en permanence.","conversation-rating.overlay.action.submit":"Envoyer","conversation-rating.overlay.action.back-to-chat":"Fermer","conversation-rating.overlay.action.close-chat":"Minimiser le chat","conversation-rating.overlay.action.restart-chat":"Redémarrer le chat","conversation-rating.overlay.action.cancel":"Annuler","start-screen.intro":"","start-screen.start-chat":"Démarrer le chat","start-screen.waiting-for-login":"En attente de connexion ...","header.close-chat":"Minimiser le chat","header.menu.title":"Menu","header.menu.restart-chat":"Redémarrer le chat","header.menu.expand-chat-window":"Agrandir la fenêtre","header.menu.download-transcript":"Télécharger l'historique du chat","header.menu.send-transcript":"Envoyer l'historique du chat","header.menu.export-transcript":"Exporter l'historique du chat","header.menu.rate-conversation":"Évaluer le chat","source-infos.close":"Fermer","source-infos.open-source":"Ouvrir source","source-infos.error.title":"Erreur","source-infos.error.info":"Oups ! Quelque chose s'est mal passé. Merci de réessayer ou de contacter le support si le problème persiste.","source-infos.highlight-loading.title":"Contenus pertinents en surbrillance...","source-infos.highlight-loading.description":"Un instant - la source est analysée","commands.show-more.action":"Plus","commands.show-more.tooltip":"Afficher plus de commandes","commands.show-less.action":"Moins","commands.show-less.tooltip":"Afficher moins de commandes"},it={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Inserire un messaggio","message-input.actions.submit.label":"Invia messaggio","message-input.actions.start-audio-recording.label":"Avviare l'input vocale","message-input.actions.stop-audio-recording.label":"Interrompere l'input vocale","message-input.actions.submit-audio-recording.label":"Trasmettere l'input vocale","message-input.actions.command.label":"Esegui azione","guest-bubble.label":"Il tuo messaggio","bot-bubble.label":"Messaggio del chatbot","bot-bubble.actions.label":"Azioni del messaggio","bot-bubble.reaction.good":"Mi piace","bot-bubble.reaction.bad":"Non mi piace","bot-bubble.reaction.remove":"Rimuovere il marcatore","bot-bubble.reaction.say-more":"Disci più, per favore","bot-bubble.reaction.category.WRONG_INFORMATION":"Errate","bot-bubble.reaction.category.MISSING_INFORMATION":"Incompleto","bot-bubble.reaction.category.OLD_INFORMATION":"Obsoleta","bot-bubble.reaction.category.UNCLEAR":"Poco chiaro","bot-bubble.reaction.category.OFF_TOPIC":"Non pertinente alla domanda","bot-bubble.reaction.comment":"Condividete con noi i vostri pensieri...","bot-bubble.reaction.close":"Chiudere","bot-bubble.copy":"Copia","bot-bubble.sources":"Elenco delle fonti","bot-bubble.source.open":"Fonte aperta","bot-bubble.footnote":"Nota a piè di pagina","agent-bubble.label":"Messaggio dell'agente dal vivo","conversation.label":"Cronologia chat","chatbot.typing":"Il chatbot sta scrivendo","export-transcript.email.title":"Ricevere la cronologia della chat","export-transcript.email.description":"Inserire l'indirizzo e-mail a cui inviare la cronologia della chat.","export-transcript.email.cancel":"Annulla","export-transcript.email.send":"Invia","export-transcript.email.placeholder":"E-mail","export-transcript.email.invalid":"Inserire un indirizzo e-mail valido.","export-transcript.email.success":"La cronologia della chat è stata inviata all'indirizzo e-mail fornito.","general-conditions.header":"**Condizioni di utilizzo**","general-conditions.body":`Si prega di considerare i seguenti punti:
|
|
131
|
-
|
|
132
|
-
- La cronologia delle chat è memorizzata nell'area UE e può essere visualizzata solo da persone autorizzate.
|
|
133
|
-
- Non inserire dati personali nella finestra di chat (password, data di nascita, ecc.).`,"general-conditions.accept-conditions-note":"Utilizzando la chat si accettano le condizioni d'uso.","block-user-input.title":"Attendere la risposta del chatbot.","conversation-rating.call-to-action.title":"Valuta questa chat","conversation-rating.overlay.title":"Quanto sei soddisfatto di questa chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Inserisci qui il tuo feedback (opzionale)","conversation-rating.overlay.star.very-bad":"Molto male","conversation-rating.overlay.star.very-good":"Molto buono","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La media non è il mio obiettivo, cosa posso ancora migliorare?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Anche l'assenza è finita. Cosa posso migliorare per ottenere tutte le stelle la prossima volta?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfetto! Allora spero di potervi consigliare ancora una volta bene.","conversation-rating.overlay.bot-message.submit-feedback":"Grazie mille per il feedback. Mi impegno costantemente per migliorare.","conversation-rating.overlay.action.submit":"Invia","conversation-rating.overlay.action.back-to-chat":"Chiudere","conversation-rating.overlay.action.close-chat":"Minimizzare la chat","conversation-rating.overlay.action.restart-chat":"Riavviare la chat","conversation-rating.overlay.action.cancel":"Annulla","start-screen.intro":"","start-screen.start-chat":"Avviare la chat","start-screen.waiting-for-login":"In attesa di login ...","header.close-chat":"Minimizzare la chat","header.menu.title":"Menu","header.menu.restart-chat":"Riavviare la chat","header.menu.expand-chat-window":"Espandere la finestra","header.menu.download-transcript":"Scaricare la trascrizione","header.menu.send-transcript":"Inviare la trascrizione","header.menu.export-transcript":"Esportare la trascrizione","header.menu.rate-conversation":"Valutare la conversazione","source-infos.close":"Chiudere","source-infos.open-source":"Fonte aperta","source-infos.error.title":"Errore","source-infos.error.info":"Ops! Qualcosa è andato storto. Riprovare o contattare l'assistenza se il problema persiste.","source-infos.highlight-loading.title":"Il contenuto rilevante è evidenziato...","source-infos.highlight-loading.description":"Un momento - la fonte è in fase di analisi","commands.show-more.action":"Di più","commands.show-more.tooltip":"Mostra più comandi","commands.show-less.action":"Meno","commands.show-less.tooltip":"Mostra meno comandi"},supportedLocales=["de","en","fr","it"],initialState$3={locale:"de",messages:de},mergeMessages=(t,i)=>{if(supportedLocales.includes(t)){const u=getMessagesByLanguage(t),c=flattenObject(i);return{...u,...c}}return i},getMessagesByLanguage=t=>{switch(t.toString()){case"en":return en;case"fr":return fr;case"it":return it;default:return de}},backendConnectionReducer=(t=initialState$2,i)=>{switch(i.type){case CONNECTING:return Object.assign({},t,{connectionState:ConnectionStateEnum.CONNECTING});case CONNECTED:return Object.assign({},t,{connectionState:ConnectionStateEnum.CONNECTED});case DISCONNECTED:return Object.assign({},t,{connectionState:ConnectionStateEnum.DISCONNECTED});case RECONNECTED:return Object.assign({},t,{connectionState:ConnectionStateEnum.RECONNECTED});case RESTORE_SESSION_ID:return Object.assign({},t,{sessionId:i.sessionId});case START:return Object.assign({},t,{sessionId:i.payload.sessionId,userId:i.payload.userId});case TERMINATE_SESSION:return Object.assign({},t,{sessionId:void 0});default:return t}},initialState$2={connectionState:ConnectionStateEnum.DISCONNECTED,sessionId:void 0,userId:void 0,queryString:window.location.search},chatReducer=(t=initialState$1,i)=>{switch(i.type){case RESET_CHAT_STATE:return initialState$1;case START:return sendToParentPage({type:"webclient.chat.started"}),t;case TERMINATE_SESSION:return sendToParentPage({type:"webclient.chat.ended"}),t;case TYPING_ON:return Object.assign({},t,{isBotTyping:!0});case TYPING_OFF:return Object.assign({},t,{isBotTyping:!1});case MESSAGE_FROM_GUEST:case MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST:return appendMessageFromGuestToState(t,i.message);case MESSAGE_TO_GUEST:{sendToParentPage(i);const u=Object.assign({},i.message,{_id:i.meta.actionId}),c=t.messages.filter(p=>p._id===i.meta.actionId).length>0;return Object.assign({},t,{isBotTyping:!1,messages:c?t.messages:t.messages.concat([u]),quickReplies:u.quickReplies?u.quickReplies:[]})}case RESTORE_PREVIOUS_CHAT_MESSAGES:{const u=i.messages,c=u.length?u[u.length-1]:void 0;return Object.assign({},t,{isBotTyping:!1,messages:u,quickReplies:c?.quickReplies||[]})}case MESSAGE_TO_PARENT_PAGE:return sendToParentPage(i.message),t;case EVENT_TO_GUEST:return sendToParentPage(i.event),t;case DRAWER_OPEN:return Object.assign({},t,{drawerContentUrl:i.payload.parameters.contentUrl});case DRAWER_CLOSE:return Object.assign({},t,{drawerContentUrl:void 0});case GUEST_LOCALE_CHANGED:return Object.assign({},t,{locale:i.payload.locale});case EXPAND_WINDOW:return sendToParentPage(i),t;case CLOSE_WINDOW:return sendToParentPage(i),{...t,conversationRating:{...t.conversationRating,opener:void 0}};case RECEIVE_SPEECH_TRANSCRIPTION:{const u=new TextMessage$1(i.transcription,new GuestUser),c=Object.assign({},u,{_id:v4()});return appendMessageFromGuestToState(t,c)}case TRANSCRIPT_ITEM_GUEST_REACTION:{const u=t.messages.map(c=>c._id===i.payload.actionId?Object.assign({},c,i.payload.reaction?{reaction:{type:i.payload.reaction,category:i.payload.category,comment:i.payload.comment}}:{reaction:void 0}):c);return Object.assign({},t,{messages:u})}case ENABLE_CONVERSATION_RATING:{const u={enabled:!0,rating:i.payload.rating};return Object.assign({},t,{conversationRating:u})}case CONVERSATION_RATING_FROM_GUEST:{const u={...t.conversationRating,rating:i.payload};return Object.assign({},t,{conversationRating:u})}case SHOW_CONVERSATION_RATING_OVERLAY:{const u={...t.conversationRating,opener:i.payload.opener,...i.payload.defaultRating?{rating:{value:i.payload.defaultRating,feedback:t.conversationRating.rating?.feedback||""}}:{}};return Object.assign({},t,{conversationRating:u})}case HIDE_CONVERSATION_RATING_OVERLAY:{const u={...t.conversationRating,opener:void 0};return Object.assign({},t,{conversationRating:u})}case LOAD_SOURCE_INFOS_REQUEST:return{...t,sourceInfos:{type:"loading",chunkId:i.payload.chunkId}};case LOAD_SOURCE_INFOS_ERROR:{const{highlighted:u}=i.payload;return t.sourceInfos?.type==="loaded"&&u?{...t,sourceInfos:{...t.sourceInfos,highlighted:!0}}:{...t,sourceInfos:{type:"loading-error"}}}case LOAD_SOURCE_INFOS_RESPONSE:{const u=t.sourceInfos?.type,{chunkId:c,knowledgeBaseType:p,title:g,content:v,highlighted:x,url:E}=i.payload,_=t.sourceInfos?.type==="loading"||t.sourceInfos?.type==="loaded"?t.sourceInfos?.chunkId:void 0;return _&&_!==c?t:u==="loading"||u==="loaded"&&x?{...t,sourceInfos:{type:"loaded",chunkId:c,knowledgeBaseType:p,title:g,content:v,highlighted:x,url:E}}:t}case CLOSE_SOURCE_INFOS:return{...t,sourceInfos:void 0};case TOGGLE_TRANSCRIPT_MAIL_OVERLAY:return{...t,showTranscriptMailOverlay:!t.showTranscriptMailOverlay,conversationRating:{...t.conversationRating,opener:void 0}};default:return t}},appendMessageFromGuestToState=(t,i)=>{const u=t.messages[t.messages.length-1],c=u?.text===i.text;return u&&u.sender.type===i.sender.type&&c?t:Object.assign({},t,{messages:t.messages.concat([i]),quickReplies:[]})},sendToParentPage=t=>{isIframe()?window.top?.postMessage(t,"*"):t.type==="webclient.change.url"&&window.open(t.url)},isIframe=()=>typeof window<"u"&&window.self!==window.top,initialState$1={messages:[],quickReplies:[],isBotTyping:!1,showTranscriptMailOverlay:!1,conversationRating:{enabled:!1}},counterSlice=createSlice({name:"intl",initialState:initialState$3,reducers:{updateIntl:(t,i)=>{t.locale=i.payload.language,t.messages=i.payload.messages}}}),{updateIntl}=counterSlice.actions,intlReducer=counterSlice.reducer,initialState={version:void 0,requiresUserAuthentication:!1,enableStartScreen:void 0,enableStandaloneView:!1,enableTranscriptExportEmail:!1,enableTranscriptExportPdf:!1,enableGeneralConditions:!1,enableSpeechSupport:!1,commands:[],menuItems:[]},settingsSlice=createSlice({name:"settings",initialState,reducers:{setSettings(t,i){t.version&&t.version!==i.payload.version?(console.log("version changed, reloading chat window"),window.location.reload()):(t.version=i.payload.version,t.requiresUserAuthentication=i.payload.requiresUserAuthentication,t.enableStartScreen=i.payload.enableStartScreen,t.enableStandaloneView=i.payload.enableStandaloneView,t.enableTranscriptExportEmail=i.payload.enableTranscriptExportEmail,t.enableTranscriptExportPdf=i.payload.enableTranscriptExportPdf,t.enableGeneralConditions=i.payload.enableGeneralConditions,t.enableSpeechSupport=i.payload.enableSpeechSupport,t.commands=i.payload.commands,t.menuItems=i.payload.menuItems||[])}}}),{setSettings}=settingsSlice.actions,settingsSlice$1=settingsSlice.reducer,rootReducer=combineReducers({settings:settingsSlice$1,chat:chatReducer,startScreen:startScreenReducer,connection:backendConnectionReducer,intl:intlReducer}),LOCAL_STORAGE_ITEM_PREFIX="bubble-chat",LOCAL_STORAGE_LAST_SAVED_ITEM_NAME="state-last-saved-at",LOCAL_STORAGE_STATE_ITEM_NAME="state",loadState=t=>{try{if(!supportsLocalStorage())return;const i=getStoreItem(t,LOCAL_STORAGE_LAST_SAVED_ITEM_NAME);if(isExpired(i))return;{const u=getStoreItem(t,LOCAL_STORAGE_STATE_ITEM_NAME);if(u===null)return;const c=JSON.parse(u),p=c.connection?.queryString;if(p!==void 0&&!queryStringsMatchIgnoringReferrer(p,window.location.search)){console.log("Ignoring persisted state due to different query string");return}else return c}}catch(i){console.error(i);return}},saveState=(t,i)=>{try{const u=JSON.stringify(i);setStoreItem(t,LOCAL_STORAGE_STATE_ITEM_NAME,u);const c=new Date().toISOString();setStoreItem(t,LOCAL_STORAGE_LAST_SAVED_ITEM_NAME,c)}catch(u){console.error(u)}},isExpired=t=>{if(t===null)return!1;const i=new Date(t);return i.setHours(i.getHours()+12),new Date>i},supportsLocalStorage=()=>typeof localStorage<"u",getStoreItem=(t,i)=>{const u=getStoreItemName(t,i);return localStorage.getItem(u)},setStoreItem=(t,i,u)=>{const c=getStoreItemName(t,i);return localStorage.setItem(c,u)},getStoreItemName=(t,i)=>`${LOCAL_STORAGE_ITEM_PREFIX}-${t}-${i}`,queryStringsMatchIgnoringReferrer=(t,i)=>{const u=new URLSearchParams(t),c=new URLSearchParams(i);u.delete("referrer"),c.delete("referrer");const p=Array.from(u.entries()).sort(),g=Array.from(c.entries()).sort();return p.length!==g.length?!1:p.every(([v,x],E)=>{const[_,T]=g[E];return v===_&&x===T})},PACKET_TYPES=Object.create(null);PACKET_TYPES.open="0";PACKET_TYPES.close="1";PACKET_TYPES.ping="2";PACKET_TYPES.pong="3";PACKET_TYPES.message="4";PACKET_TYPES.upgrade="5";PACKET_TYPES.noop="6";const PACKET_TYPES_REVERSE=Object.create(null);Object.keys(PACKET_TYPES).forEach(t=>{PACKET_TYPES_REVERSE[PACKET_TYPES[t]]=t});const ERROR_PACKET={type:"error",data:"parser error"},withNativeBlob$1=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",withNativeArrayBuffer$2=typeof ArrayBuffer=="function",isView$1=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,encodePacket=({type:t,data:i},u,c)=>withNativeBlob$1&&i instanceof Blob?u?c(i):encodeBlobAsBase64(i,c):withNativeArrayBuffer$2&&(i instanceof ArrayBuffer||isView$1(i))?u?c(i):encodeBlobAsBase64(new Blob([i]),c):c(PACKET_TYPES[t]+(i||"")),encodeBlobAsBase64=(t,i)=>{const u=new FileReader;return u.onload=function(){const c=u.result.split(",")[1];i("b"+(c||""))},u.readAsDataURL(t)};function toArray(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let TEXT_ENCODER;function encodePacketToBinary(t,i){if(withNativeBlob$1&&t.data instanceof Blob)return t.data.arrayBuffer().then(toArray).then(i);if(withNativeArrayBuffer$2&&(t.data instanceof ArrayBuffer||isView$1(t.data)))return i(toArray(t.data));encodePacket(t,!1,u=>{TEXT_ENCODER||(TEXT_ENCODER=new TextEncoder),i(TEXT_ENCODER.encode(u))})}const chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup$1=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<chars.length;t++)lookup$1[chars.charCodeAt(t)]=t;const decode$1=t=>{let i=t.length*.75,u=t.length,c,p=0,g,v,x,E;t[t.length-1]==="="&&(i--,t[t.length-2]==="="&&i--);const _=new ArrayBuffer(i),T=new Uint8Array(_);for(c=0;c<u;c+=4)g=lookup$1[t.charCodeAt(c)],v=lookup$1[t.charCodeAt(c+1)],x=lookup$1[t.charCodeAt(c+2)],E=lookup$1[t.charCodeAt(c+3)],T[p++]=g<<2|v>>4,T[p++]=(v&15)<<4|x>>2,T[p++]=(x&3)<<6|E&63;return _},withNativeArrayBuffer$1=typeof ArrayBuffer=="function",decodePacket=(t,i)=>{if(typeof t!="string")return{type:"message",data:mapBinary(t,i)};const u=t.charAt(0);return u==="b"?{type:"message",data:decodeBase64Packet(t.substring(1),i)}:PACKET_TYPES_REVERSE[u]?t.length>1?{type:PACKET_TYPES_REVERSE[u],data:t.substring(1)}:{type:PACKET_TYPES_REVERSE[u]}:ERROR_PACKET},decodeBase64Packet=(t,i)=>{if(withNativeArrayBuffer$1){const u=decode$1(t);return mapBinary(u,i)}else return{base64:!0,data:t}},mapBinary=(t,i)=>i==="blob"?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer,SEPARATOR="",encodePayload=(t,i)=>{const u=t.length,c=new Array(u);let p=0;t.forEach((g,v)=>{encodePacket(g,!1,x=>{c[v]=x,++p===u&&i(c.join(SEPARATOR))})})},decodePayload=(t,i)=>{const u=t.split(SEPARATOR),c=[];for(let p=0;p<u.length;p++){const g=decodePacket(u[p],i);if(c.push(g),g.type==="error")break}return c};function createPacketEncoderStream(){return new TransformStream({transform(t,i){encodePacketToBinary(t,u=>{const c=u.length;let p;if(c<126)p=new Uint8Array(1),new DataView(p.buffer).setUint8(0,c);else if(c<65536){p=new Uint8Array(3);const g=new DataView(p.buffer);g.setUint8(0,126),g.setUint16(1,c)}else{p=new Uint8Array(9);const g=new DataView(p.buffer);g.setUint8(0,127),g.setBigUint64(1,BigInt(c))}t.data&&typeof t.data!="string"&&(p[0]|=128),i.enqueue(p),i.enqueue(u)})}})}let TEXT_DECODER;function totalLength(t){return t.reduce((i,u)=>i+u.length,0)}function concatChunks(t,i){if(t[0].length===i)return t.shift();const u=new Uint8Array(i);let c=0;for(let p=0;p<i;p++)u[p]=t[0][c++],c===t[0].length&&(t.shift(),c=0);return t.length&&c<t[0].length&&(t[0]=t[0].slice(c)),u}function createPacketDecoderStream(t,i){TEXT_DECODER||(TEXT_DECODER=new TextDecoder);const u=[];let c=0,p=-1,g=!1;return new TransformStream({transform(v,x){for(u.push(v);;){if(c===0){if(totalLength(u)<1)break;const E=concatChunks(u,1);g=(E[0]&128)===128,p=E[0]&127,p<126?c=3:p===126?c=1:c=2}else if(c===1){if(totalLength(u)<2)break;const E=concatChunks(u,2);p=new DataView(E.buffer,E.byteOffset,E.length).getUint16(0),c=3}else if(c===2){if(totalLength(u)<8)break;const E=concatChunks(u,8),_=new DataView(E.buffer,E.byteOffset,E.length),T=_.getUint32(0);if(T>Math.pow(2,21)-1){x.enqueue(ERROR_PACKET);break}p=T*Math.pow(2,32)+_.getUint32(4),c=3}else{if(totalLength(u)<p)break;const E=concatChunks(u,p);x.enqueue(decodePacket(g?E:TEXT_DECODER.decode(E),i)),c=0}if(p===0||p>t){x.enqueue(ERROR_PACKET);break}}}})}const protocol$1=4;function Emitter(t){if(t)return mixin(t)}function mixin(t){for(var i in Emitter.prototype)t[i]=Emitter.prototype[i];return t}Emitter.prototype.on=Emitter.prototype.addEventListener=function(t,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(i),this};Emitter.prototype.once=function(t,i){function u(){this.off(t,u),i.apply(this,arguments)}return u.fn=i,this.on(t,u),this};Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=Emitter.prototype.removeEventListener=function(t,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var u=this._callbacks["$"+t];if(!u)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var c,p=0;p<u.length;p++)if(c=u[p],c===i||c.fn===i){u.splice(p,1);break}return u.length===0&&delete this._callbacks["$"+t],this};Emitter.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var i=new Array(arguments.length-1),u=this._callbacks["$"+t],c=1;c<arguments.length;c++)i[c-1]=arguments[c];if(u){u=u.slice(0);for(var c=0,p=u.length;c<p;++c)u[c].apply(this,i)}return this};Emitter.prototype.emitReserved=Emitter.prototype.emit;Emitter.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};Emitter.prototype.hasListeners=function(t){return!!this.listeners(t).length};const nextTick=typeof Promise=="function"&&typeof Promise.resolve=="function"?i=>Promise.resolve().then(i):(i,u)=>u(i,0),globalThisShim=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),defaultBinaryType="arraybuffer";function createCookieJar(){}function pick(t,...i){return i.reduce((u,c)=>(t.hasOwnProperty(c)&&(u[c]=t[c]),u),{})}const NATIVE_SET_TIMEOUT=globalThisShim.setTimeout,NATIVE_CLEAR_TIMEOUT=globalThisShim.clearTimeout;function installTimerFunctions(t,i){i.useNativeTimers?(t.setTimeoutFn=NATIVE_SET_TIMEOUT.bind(globalThisShim),t.clearTimeoutFn=NATIVE_CLEAR_TIMEOUT.bind(globalThisShim)):(t.setTimeoutFn=globalThisShim.setTimeout.bind(globalThisShim),t.clearTimeoutFn=globalThisShim.clearTimeout.bind(globalThisShim))}const BASE64_OVERHEAD=1.33;function byteLength(t){return typeof t=="string"?utf8Length(t):Math.ceil((t.byteLength||t.size)*BASE64_OVERHEAD)}function utf8Length(t){let i=0,u=0;for(let c=0,p=t.length;c<p;c++)i=t.charCodeAt(c),i<128?u+=1:i<2048?u+=2:i<55296||i>=57344?u+=3:(c++,u+=4);return u}function randomString(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function encode(t){let i="";for(let u in t)t.hasOwnProperty(u)&&(i.length&&(i+="&"),i+=encodeURIComponent(u)+"="+encodeURIComponent(t[u]));return i}function decode(t){let i={},u=t.split("&");for(let c=0,p=u.length;c<p;c++){let g=u[c].split("=");i[decodeURIComponent(g[0])]=decodeURIComponent(g[1])}return i}class TransportError extends Error{constructor(i,u,c){super(i),this.description=u,this.context=c,this.type="TransportError"}}class Transport extends Emitter{constructor(i){super(),this.writable=!1,installTimerFunctions(this,i),this.opts=i,this.query=i.query,this.socket=i.socket,this.supportsBinary=!i.forceBase64}onError(i,u,c){return super.emitReserved("error",new TransportError(i,u,c)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(i){this.readyState==="open"&&this.write(i)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(i){const u=decodePacket(i,this.socket.binaryType);this.onPacket(u)}onPacket(i){super.emitReserved("packet",i)}onClose(i){this.readyState="closed",super.emitReserved("close",i)}pause(i){}createUri(i,u={}){return i+"://"+this._hostname()+this._port()+this.opts.path+this._query(u)}_hostname(){const i=this.opts.hostname;return i.indexOf(":")===-1?i:"["+i+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(i){const u=encode(i);return u.length?"?"+u:""}}class Polling extends Transport{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(i){this.readyState="pausing";const u=()=>{this.readyState="paused",i()};if(this._polling||!this.writable){let c=0;this._polling&&(c++,this.once("pollComplete",function(){--c||u()})),this.writable||(c++,this.once("drain",function(){--c||u()}))}else u()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(i){const u=c=>{if(this.readyState==="opening"&&c.type==="open"&&this.onOpen(),c.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(c)};decodePayload(i,this.socket.binaryType).forEach(u),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const i=()=>{this.write([{type:"close"}])};this.readyState==="open"?i():this.once("open",i)}write(i){this.writable=!1,encodePayload(i,u=>{this.doWrite(u,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const i=this.opts.secure?"https":"http",u=this.query||{};return this.opts.timestampRequests!==!1&&(u[this.opts.timestampParam]=randomString()),!this.supportsBinary&&!u.sid&&(u.b64=1),this.createUri(i,u)}}let value=!1;try{value=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch(t){}const hasCORS=value;function empty(){}class BaseXHR extends Polling{constructor(i){if(super(i),typeof location<"u"){const u=location.protocol==="https:";let c=location.port;c||(c=u?"443":"80"),this.xd=typeof location<"u"&&i.hostname!==location.hostname||c!==i.port}}doWrite(i,u){const c=this.request({method:"POST",data:i});c.on("success",u),c.on("error",(p,g)=>{this.onError("xhr post error",p,g)})}doPoll(){const i=this.request();i.on("data",this.onData.bind(this)),i.on("error",(u,c)=>{this.onError("xhr poll error",u,c)}),this.pollXhr=i}}class Request extends Emitter{constructor(i,u,c){super(),this.createRequest=i,installTimerFunctions(this,c),this._opts=c,this._method=c.method||"GET",this._uri=u,this._data=c.data!==void 0?c.data:null,this._create()}_create(){var i;const u=pick(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");u.xdomain=!!this._opts.xd;const c=this._xhr=this.createRequest(u);try{c.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){c.setDisableHeaderCheck&&c.setDisableHeaderCheck(!0);for(let p in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(p)&&c.setRequestHeader(p,this._opts.extraHeaders[p])}}catch{}if(this._method==="POST")try{c.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{c.setRequestHeader("Accept","*/*")}catch{}(i=this._opts.cookieJar)===null||i===void 0||i.addCookies(c),"withCredentials"in c&&(c.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(c.timeout=this._opts.requestTimeout),c.onreadystatechange=()=>{var p;c.readyState===3&&((p=this._opts.cookieJar)===null||p===void 0||p.parseCookies(c.getResponseHeader("set-cookie"))),c.readyState===4&&(c.status===200||c.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof c.status=="number"?c.status:0)},0))},c.send(this._data)}catch(p){this.setTimeoutFn(()=>{this._onError(p)},0);return}typeof document<"u"&&(this._index=Request.requestsCount++,Request.requests[this._index]=this)}_onError(i){this.emitReserved("error",i,this._xhr),this._cleanup(!0)}_cleanup(i){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=empty,i)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Request.requests[this._index],this._xhr=null}}_onLoad(){const i=this._xhr.responseText;i!==null&&(this.emitReserved("data",i),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Request.requestsCount=0;Request.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",unloadHandler);else if(typeof addEventListener=="function"){const t="onpagehide"in globalThisShim?"pagehide":"unload";addEventListener(t,unloadHandler,!1)}}function unloadHandler(){for(let t in Request.requests)Request.requests.hasOwnProperty(t)&&Request.requests[t].abort()}const hasXHR2=(function(){const t=newRequest({xdomain:!1});return t&&t.responseType!==null})();class XHR extends BaseXHR{constructor(i){super(i);const u=i&&i.forceBase64;this.supportsBinary=hasXHR2&&!u}request(i={}){return Object.assign(i,{xd:this.xd},this.opts),new Request(newRequest,this.uri(),i)}}function newRequest(t){const i=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!i||hasCORS))return new XMLHttpRequest}catch{}if(!i)try{return new globalThisShim[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const isReactNative=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class BaseWS extends Transport{get name(){return"websocket"}doOpen(){const i=this.uri(),u=this.opts.protocols,c=isReactNative?{}:pick(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(c.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(i,u,c)}catch(p){return this.emitReserved("error",p)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=i=>this.onClose({description:"websocket connection closed",context:i}),this.ws.onmessage=i=>this.onData(i.data),this.ws.onerror=i=>this.onError("websocket error",i)}write(i){this.writable=!1;for(let u=0;u<i.length;u++){const c=i[u],p=u===i.length-1;encodePacket(c,this.supportsBinary,g=>{try{this.doWrite(c,g)}catch{}p&&nextTick(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const i=this.opts.secure?"wss":"ws",u=this.query||{};return this.opts.timestampRequests&&(u[this.opts.timestampParam]=randomString()),this.supportsBinary||(u.b64=1),this.createUri(i,u)}}const WebSocketCtor=globalThisShim.WebSocket||globalThisShim.MozWebSocket;class WS extends BaseWS{createSocket(i,u,c){return isReactNative?new WebSocketCtor(i,u,c):u?new WebSocketCtor(i,u):new WebSocketCtor(i)}doWrite(i,u){this.ws.send(u)}}class WT extends Transport{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(i){return this.emitReserved("error",i)}this._transport.closed.then(()=>{this.onClose()}).catch(i=>{this.onError("webtransport error",i)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(i=>{const u=createPacketDecoderStream(Number.MAX_SAFE_INTEGER,this.socket.binaryType),c=i.readable.pipeThrough(u).getReader(),p=createPacketEncoderStream();p.readable.pipeTo(i.writable),this._writer=p.writable.getWriter();const g=()=>{c.read().then(({done:x,value:E})=>{x||(this.onPacket(E),g())}).catch(x=>{})};g();const v={type:"open"};this.query.sid&&(v.data=`{"sid":"${this.query.sid}"}`),this._writer.write(v).then(()=>this.onOpen())})})}write(i){this.writable=!1;for(let u=0;u<i.length;u++){const c=i[u],p=u===i.length-1;this._writer.write(c).then(()=>{p&&nextTick(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var i;(i=this._transport)===null||i===void 0||i.close()}}const transports={websocket:WS,webtransport:WT,polling:XHR},re=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,parts=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function parse(t){if(t.length>8e3)throw"URI too long";const i=t,u=t.indexOf("["),c=t.indexOf("]");u!=-1&&c!=-1&&(t=t.substring(0,u)+t.substring(u,c).replace(/:/g,";")+t.substring(c,t.length));let p=re.exec(t||""),g={},v=14;for(;v--;)g[parts[v]]=p[v]||"";return u!=-1&&c!=-1&&(g.source=i,g.host=g.host.substring(1,g.host.length-1).replace(/;/g,":"),g.authority=g.authority.replace("[","").replace("]","").replace(/;/g,":"),g.ipv6uri=!0),g.pathNames=pathNames(g,g.path),g.queryKey=queryKey(g,g.query),g}function pathNames(t,i){const u=/\/{2,9}/g,c=i.replace(u,"/").split("/");return(i.slice(0,1)=="/"||i.length===0)&&c.splice(0,1),i.slice(-1)=="/"&&c.splice(c.length-1,1),c}function queryKey(t,i){const u={};return i.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(c,p,g){p&&(u[p]=g)}),u}const withEventListeners=typeof addEventListener=="function"&&typeof removeEventListener=="function",OFFLINE_EVENT_LISTENERS=[];withEventListeners&&addEventListener("offline",()=>{OFFLINE_EVENT_LISTENERS.forEach(t=>t())},!1);class SocketWithoutUpgrade extends Emitter{constructor(i,u){if(super(),this.binaryType=defaultBinaryType,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,i&&typeof i=="object"&&(u=i,i=null),i){const c=parse(i);u.hostname=c.host,u.secure=c.protocol==="https"||c.protocol==="wss",u.port=c.port,c.query&&(u.query=c.query)}else u.host&&(u.hostname=parse(u.host).host);installTimerFunctions(this,u),this.secure=u.secure!=null?u.secure:typeof location<"u"&&location.protocol==="https:",u.hostname&&!u.port&&(u.port=this.secure?"443":"80"),this.hostname=u.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=u.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},u.transports.forEach(c=>{const p=c.prototype.name;this.transports.push(p),this._transportsByName[p]=c}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},u),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=decode(this.opts.query)),withEventListeners&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},OFFLINE_EVENT_LISTENERS.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(i){const u=Object.assign({},this.opts.query);u.EIO=protocol$1,u.transport=i,this.id&&(u.sid=this.id);const c=Object.assign({},this.opts,{query:u,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[i]);return new this._transportsByName[i](c)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const i=this.opts.rememberUpgrade&&SocketWithoutUpgrade.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const u=this.createTransport(i);u.open(),this.setTransport(u)}setTransport(i){this.transport&&this.transport.removeAllListeners(),this.transport=i,i.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",u=>this._onClose("transport close",u))}onOpen(){this.readyState="open",SocketWithoutUpgrade.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(i){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",i),this.emitReserved("heartbeat"),i.type){case"open":this.onHandshake(JSON.parse(i.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const u=new Error("server error");u.code=i.data,this._onError(u);break;case"message":this.emitReserved("data",i.data),this.emitReserved("message",i.data);break}}onHandshake(i){this.emitReserved("handshake",i),this.id=i.sid,this.transport.query.sid=i.sid,this._pingInterval=i.pingInterval,this._pingTimeout=i.pingTimeout,this._maxPayload=i.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const i=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+i,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},i),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const i=this._getWritablePackets();this.transport.send(i),this._prevBufferLen=i.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let u=1;for(let c=0;c<this.writeBuffer.length;c++){const p=this.writeBuffer[c].data;if(p&&(u+=byteLength(p)),c>0&&u>this._maxPayload)return this.writeBuffer.slice(0,c);u+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const i=Date.now()>this._pingTimeoutTime;return i&&(this._pingTimeoutTime=0,nextTick(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),i}write(i,u,c){return this._sendPacket("message",i,u,c),this}send(i,u,c){return this._sendPacket("message",i,u,c),this}_sendPacket(i,u,c,p){if(typeof u=="function"&&(p=u,u=void 0),typeof c=="function"&&(p=c,c=null),this.readyState==="closing"||this.readyState==="closed")return;c=c||{},c.compress=c.compress!==!1;const g={type:i,data:u,options:c};this.emitReserved("packetCreate",g),this.writeBuffer.push(g),p&&this.once("flush",p),this.flush()}close(){const i=()=>{this._onClose("forced close"),this.transport.close()},u=()=>{this.off("upgrade",u),this.off("upgradeError",u),i()},c=()=>{this.once("upgrade",u),this.once("upgradeError",u)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?c():i()}):this.upgrading?c():i()),this}_onError(i){if(SocketWithoutUpgrade.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",i),this._onClose("transport error",i)}_onClose(i,u){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),withEventListeners&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const c=OFFLINE_EVENT_LISTENERS.indexOf(this._offlineEventListener);c!==-1&&OFFLINE_EVENT_LISTENERS.splice(c,1)}this.readyState="closed",this.id=null,this.emitReserved("close",i,u),this.writeBuffer=[],this._prevBufferLen=0}}}SocketWithoutUpgrade.protocol=protocol$1;class SocketWithUpgrade extends SocketWithoutUpgrade{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let i=0;i<this._upgrades.length;i++)this._probe(this._upgrades[i])}_probe(i){let u=this.createTransport(i),c=!1;SocketWithoutUpgrade.priorWebsocketSuccess=!1;const p=()=>{c||(u.send([{type:"ping",data:"probe"}]),u.once("packet",w=>{if(!c)if(w.type==="pong"&&w.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",u),!u)return;SocketWithoutUpgrade.priorWebsocketSuccess=u.name==="websocket",this.transport.pause(()=>{c||this.readyState!=="closed"&&(T(),this.setTransport(u),u.send([{type:"upgrade"}]),this.emitReserved("upgrade",u),u=null,this.upgrading=!1,this.flush())})}else{const R=new Error("probe error");R.transport=u.name,this.emitReserved("upgradeError",R)}}))};function g(){c||(c=!0,T(),u.close(),u=null)}const v=w=>{const R=new Error("probe error: "+w);R.transport=u.name,g(),this.emitReserved("upgradeError",R)};function x(){v("transport closed")}function E(){v("socket closed")}function _(w){u&&w.name!==u.name&&g()}const T=()=>{u.removeListener("open",p),u.removeListener("error",v),u.removeListener("close",x),this.off("close",E),this.off("upgrading",_)};u.once("open",p),u.once("error",v),u.once("close",x),this.once("close",E),this.once("upgrading",_),this._upgrades.indexOf("webtransport")!==-1&&i!=="webtransport"?this.setTimeoutFn(()=>{c||u.open()},200):u.open()}onHandshake(i){this._upgrades=this._filterUpgrades(i.upgrades),super.onHandshake(i)}_filterUpgrades(i){const u=[];for(let c=0;c<i.length;c++)~this.transports.indexOf(i[c])&&u.push(i[c]);return u}}let Socket$1=class extends SocketWithUpgrade{constructor(i,u={}){const c=typeof i=="object"?i:u;(!c.transports||c.transports&&typeof c.transports[0]=="string")&&(c.transports=(c.transports||["polling","websocket","webtransport"]).map(p=>transports[p]).filter(p=>!!p)),super(i,c)}};function url(t,i="",u){let c=t;u=u||typeof location<"u"&&location,t==null&&(t=u.protocol+"//"+u.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=u.protocol+t:t=u.host+t),/^(https?|wss?):\/\//.test(t)||(typeof u<"u"?t=u.protocol+"//"+t:t="https://"+t),c=parse(t)),c.port||(/^(http|ws)$/.test(c.protocol)?c.port="80":/^(http|ws)s$/.test(c.protocol)&&(c.port="443")),c.path=c.path||"/";const g=c.host.indexOf(":")!==-1?"["+c.host+"]":c.host;return c.id=c.protocol+"://"+g+":"+c.port+i,c.href=c.protocol+"://"+g+(u&&u.port===c.port?"":":"+c.port),c}const withNativeArrayBuffer=typeof ArrayBuffer=="function",isView=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,toString=Object.prototype.toString,withNativeBlob=typeof Blob=="function"||typeof Blob<"u"&&toString.call(Blob)==="[object BlobConstructor]",withNativeFile=typeof File=="function"||typeof File<"u"&&toString.call(File)==="[object FileConstructor]";function isBinary(t){return withNativeArrayBuffer&&(t instanceof ArrayBuffer||isView(t))||withNativeBlob&&t instanceof Blob||withNativeFile&&t instanceof File}function hasBinary(t,i){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let u=0,c=t.length;u<c;u++)if(hasBinary(t[u]))return!0;return!1}if(isBinary(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return hasBinary(t.toJSON(),!0);for(const u in t)if(Object.prototype.hasOwnProperty.call(t,u)&&hasBinary(t[u]))return!0;return!1}function deconstructPacket(t){const i=[],u=t.data,c=t;return c.data=_deconstructPacket(u,i),c.attachments=i.length,{packet:c,buffers:i}}function _deconstructPacket(t,i){if(!t)return t;if(isBinary(t)){const u={_placeholder:!0,num:i.length};return i.push(t),u}else if(Array.isArray(t)){const u=new Array(t.length);for(let c=0;c<t.length;c++)u[c]=_deconstructPacket(t[c],i);return u}else if(typeof t=="object"&&!(t instanceof Date)){const u={};for(const c in t)Object.prototype.hasOwnProperty.call(t,c)&&(u[c]=_deconstructPacket(t[c],i));return u}return t}function reconstructPacket(t,i){return t.data=_reconstructPacket(t.data,i),delete t.attachments,t}function _reconstructPacket(t,i){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<i.length)return i[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let u=0;u<t.length;u++)t[u]=_reconstructPacket(t[u],i);else if(typeof t=="object")for(const u in t)Object.prototype.hasOwnProperty.call(t,u)&&(t[u]=_reconstructPacket(t[u],i));return t}const RESERVED_EVENTS$1=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],protocol=5;var PacketType;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(PacketType||(PacketType={}));class Encoder{constructor(i){this.replacer=i}encode(i){return(i.type===PacketType.EVENT||i.type===PacketType.ACK)&&hasBinary(i)?this.encodeAsBinary({type:i.type===PacketType.EVENT?PacketType.BINARY_EVENT:PacketType.BINARY_ACK,nsp:i.nsp,data:i.data,id:i.id}):[this.encodeAsString(i)]}encodeAsString(i){let u=""+i.type;return(i.type===PacketType.BINARY_EVENT||i.type===PacketType.BINARY_ACK)&&(u+=i.attachments+"-"),i.nsp&&i.nsp!=="/"&&(u+=i.nsp+","),i.id!=null&&(u+=i.id),i.data!=null&&(u+=JSON.stringify(i.data,this.replacer)),u}encodeAsBinary(i){const u=deconstructPacket(i),c=this.encodeAsString(u.packet),p=u.buffers;return p.unshift(c),p}}class Decoder extends Emitter{constructor(i){super(),this.reviver=i}add(i){let u;if(typeof i=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");u=this.decodeString(i);const c=u.type===PacketType.BINARY_EVENT;c||u.type===PacketType.BINARY_ACK?(u.type=c?PacketType.EVENT:PacketType.ACK,this.reconstructor=new BinaryReconstructor(u),u.attachments===0&&super.emitReserved("decoded",u)):super.emitReserved("decoded",u)}else if(isBinary(i)||i.base64)if(this.reconstructor)u=this.reconstructor.takeBinaryData(i),u&&(this.reconstructor=null,super.emitReserved("decoded",u));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+i)}decodeString(i){let u=0;const c={type:Number(i.charAt(0))};if(PacketType[c.type]===void 0)throw new Error("unknown packet type "+c.type);if(c.type===PacketType.BINARY_EVENT||c.type===PacketType.BINARY_ACK){const g=u+1;for(;i.charAt(++u)!=="-"&&u!=i.length;);const v=i.substring(g,u);if(v!=Number(v)||i.charAt(u)!=="-")throw new Error("Illegal attachments");c.attachments=Number(v)}if(i.charAt(u+1)==="/"){const g=u+1;for(;++u&&!(i.charAt(u)===","||u===i.length););c.nsp=i.substring(g,u)}else c.nsp="/";const p=i.charAt(u+1);if(p!==""&&Number(p)==p){const g=u+1;for(;++u;){const v=i.charAt(u);if(v==null||Number(v)!=v){--u;break}if(u===i.length)break}c.id=Number(i.substring(g,u+1))}if(i.charAt(++u)){const g=this.tryParse(i.substr(u));if(Decoder.isPayloadValid(c.type,g))c.data=g;else throw new Error("invalid payload")}return c}tryParse(i){try{return JSON.parse(i,this.reviver)}catch{return!1}}static isPayloadValid(i,u){switch(i){case PacketType.CONNECT:return isObject(u);case PacketType.DISCONNECT:return u===void 0;case PacketType.CONNECT_ERROR:return typeof u=="string"||isObject(u);case PacketType.EVENT:case PacketType.BINARY_EVENT:return Array.isArray(u)&&(typeof u[0]=="number"||typeof u[0]=="string"&&RESERVED_EVENTS$1.indexOf(u[0])===-1);case PacketType.ACK:case PacketType.BINARY_ACK:return Array.isArray(u)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class BinaryReconstructor{constructor(i){this.packet=i,this.buffers=[],this.reconPack=i}takeBinaryData(i){if(this.buffers.push(i),this.buffers.length===this.reconPack.attachments){const u=reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),u}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function isNamespaceValid(t){return typeof t=="string"}const isInteger=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t};function isAckIdValid(t){return t===void 0||isInteger(t)}function isObject(t){return Object.prototype.toString.call(t)==="[object Object]"}function isDataValid(t,i){switch(t){case PacketType.CONNECT:return i===void 0||isObject(i);case PacketType.DISCONNECT:return i===void 0;case PacketType.EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&RESERVED_EVENTS$1.indexOf(i[0])===-1);case PacketType.ACK:return Array.isArray(i);case PacketType.CONNECT_ERROR:return typeof i=="string"||isObject(i);default:return!1}}function isPacketValid(t){return isNamespaceValid(t.nsp)&&isAckIdValid(t.id)&&isDataValid(t.type,t.data)}const parser=Object.freeze(Object.defineProperty({__proto__:null,Decoder,Encoder,get PacketType(){return PacketType},isPacketValid,protocol},Symbol.toStringTag,{value:"Module"}));function on(t,i,u){return t.on(i,u),function(){t.off(i,u)}}const RESERVED_EVENTS=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Socket extends Emitter{constructor(i,u,c){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=i,this.nsp=u,c&&c.auth&&(this.auth=c.auth),this._opts=Object.assign({},c),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const i=this.io;this.subs=[on(i,"open",this.onopen.bind(this)),on(i,"packet",this.onpacket.bind(this)),on(i,"error",this.onerror.bind(this)),on(i,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...i){return i.unshift("message"),this.emit.apply(this,i),this}emit(i,...u){var c,p,g;if(RESERVED_EVENTS.hasOwnProperty(i))throw new Error('"'+i.toString()+'" is a reserved event name');if(u.unshift(i),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(u),this;const v={type:PacketType.EVENT,data:u};if(v.options={},v.options.compress=this.flags.compress!==!1,typeof u[u.length-1]=="function"){const T=this.ids++,w=u.pop();this._registerAckCallback(T,w),v.id=T}const x=(p=(c=this.io.engine)===null||c===void 0?void 0:c.transport)===null||p===void 0?void 0:p.writable,E=this.connected&&!(!((g=this.io.engine)===null||g===void 0)&&g._hasPingExpired());return this.flags.volatile&&!x||(E?(this.notifyOutgoingListeners(v),this.packet(v)):this.sendBuffer.push(v)),this.flags={},this}_registerAckCallback(i,u){var c;const p=(c=this.flags.timeout)!==null&&c!==void 0?c:this._opts.ackTimeout;if(p===void 0){this.acks[i]=u;return}const g=this.io.setTimeoutFn(()=>{delete this.acks[i];for(let x=0;x<this.sendBuffer.length;x++)this.sendBuffer[x].id===i&&this.sendBuffer.splice(x,1);u.call(this,new Error("operation has timed out"))},p),v=(...x)=>{this.io.clearTimeoutFn(g),u.apply(this,x)};v.withError=!0,this.acks[i]=v}emitWithAck(i,...u){return new Promise((c,p)=>{const g=(v,x)=>v?p(v):c(x);g.withError=!0,u.push(g),this.emit(i,...u)})}_addToQueue(i){let u;typeof i[i.length-1]=="function"&&(u=i.pop());const c={id:this._queueSeq++,tryCount:0,pending:!1,args:i,flags:Object.assign({fromQueue:!0},this.flags)};i.push((p,...g)=>(this._queue[0],p!==null?c.tryCount>this._opts.retries&&(this._queue.shift(),u&&u(p)):(this._queue.shift(),u&&u(null,...g)),c.pending=!1,this._drainQueue())),this._queue.push(c),this._drainQueue()}_drainQueue(i=!1){if(!this.connected||this._queue.length===0)return;const u=this._queue[0];u.pending&&!i||(u.pending=!0,u.tryCount++,this.flags=u.flags,this.emit.apply(this,u.args))}packet(i){i.nsp=this.nsp,this.io._packet(i)}onopen(){typeof this.auth=="function"?this.auth(i=>{this._sendConnectPacket(i)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(i){this.packet({type:PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},i):i})}onerror(i){this.connected||this.emitReserved("connect_error",i)}onclose(i,u){this.connected=!1,delete this.id,this.emitReserved("disconnect",i,u),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(i=>{if(!this.sendBuffer.some(c=>String(c.id)===i)){const c=this.acks[i];delete this.acks[i],c.withError&&c.call(this,new Error("socket has been disconnected"))}})}onpacket(i){if(i.nsp===this.nsp)switch(i.type){case PacketType.CONNECT:i.data&&i.data.sid?this.onconnect(i.data.sid,i.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case PacketType.EVENT:case PacketType.BINARY_EVENT:this.onevent(i);break;case PacketType.ACK:case PacketType.BINARY_ACK:this.onack(i);break;case PacketType.DISCONNECT:this.ondisconnect();break;case PacketType.CONNECT_ERROR:this.destroy();const c=new Error(i.data.message);c.data=i.data.data,this.emitReserved("connect_error",c);break}}onevent(i){const u=i.data||[];i.id!=null&&u.push(this.ack(i.id)),this.connected?this.emitEvent(u):this.receiveBuffer.push(Object.freeze(u))}emitEvent(i){if(this._anyListeners&&this._anyListeners.length){const u=this._anyListeners.slice();for(const c of u)c.apply(this,i)}super.emit.apply(this,i),this._pid&&i.length&&typeof i[i.length-1]=="string"&&(this._lastOffset=i[i.length-1])}ack(i){const u=this;let c=!1;return function(...p){c||(c=!0,u.packet({type:PacketType.ACK,id:i,data:p}))}}onack(i){const u=this.acks[i.id];typeof u=="function"&&(delete this.acks[i.id],u.withError&&i.data.unshift(null),u.apply(this,i.data))}onconnect(i,u){this.id=i,this.recovered=u&&this._pid===u,this._pid=u,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(i=>this.emitEvent(i)),this.receiveBuffer=[],this.sendBuffer.forEach(i=>{this.notifyOutgoingListeners(i),this.packet(i)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(i=>i()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:PacketType.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(i){return this.flags.compress=i,this}get volatile(){return this.flags.volatile=!0,this}timeout(i){return this.flags.timeout=i,this}onAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(i),this}prependAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(i),this}offAny(i){if(!this._anyListeners)return this;if(i){const u=this._anyListeners;for(let c=0;c<u.length;c++)if(i===u[c])return u.splice(c,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(i),this}prependAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(i),this}offAnyOutgoing(i){if(!this._anyOutgoingListeners)return this;if(i){const u=this._anyOutgoingListeners;for(let c=0;c<u.length;c++)if(i===u[c])return u.splice(c,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(i){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const u=this._anyOutgoingListeners.slice();for(const c of u)c.apply(this,i.data)}}}function Backoff(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}Backoff.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var i=Math.random(),u=Math.floor(i*this.jitter*t);t=(Math.floor(i*10)&1)==0?t-u:t+u}return Math.min(t,this.max)|0};Backoff.prototype.reset=function(){this.attempts=0};Backoff.prototype.setMin=function(t){this.ms=t};Backoff.prototype.setMax=function(t){this.max=t};Backoff.prototype.setJitter=function(t){this.jitter=t};class Manager extends Emitter{constructor(i,u){var c;super(),this.nsps={},this.subs=[],i&&typeof i=="object"&&(u=i,i=void 0),u=u||{},u.path=u.path||"/socket.io",this.opts=u,installTimerFunctions(this,u),this.reconnection(u.reconnection!==!1),this.reconnectionAttempts(u.reconnectionAttempts||1/0),this.reconnectionDelay(u.reconnectionDelay||1e3),this.reconnectionDelayMax(u.reconnectionDelayMax||5e3),this.randomizationFactor((c=u.randomizationFactor)!==null&&c!==void 0?c:.5),this.backoff=new Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(u.timeout==null?2e4:u.timeout),this._readyState="closed",this.uri=i;const p=u.parser||parser;this.encoder=new p.Encoder,this.decoder=new p.Decoder,this._autoConnect=u.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(i){return arguments.length?(this._reconnection=!!i,i||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(i){return i===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=i,this)}reconnectionDelay(i){var u;return i===void 0?this._reconnectionDelay:(this._reconnectionDelay=i,(u=this.backoff)===null||u===void 0||u.setMin(i),this)}randomizationFactor(i){var u;return i===void 0?this._randomizationFactor:(this._randomizationFactor=i,(u=this.backoff)===null||u===void 0||u.setJitter(i),this)}reconnectionDelayMax(i){var u;return i===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=i,(u=this.backoff)===null||u===void 0||u.setMax(i),this)}timeout(i){return arguments.length?(this._timeout=i,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(i){if(~this._readyState.indexOf("open"))return this;this.engine=new Socket$1(this.uri,this.opts);const u=this.engine,c=this;this._readyState="opening",this.skipReconnect=!1;const p=on(u,"open",function(){c.onopen(),i&&i()}),g=x=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",x),i?i(x):this.maybeReconnectOnOpen()},v=on(u,"error",g);if(this._timeout!==!1){const x=this._timeout,E=this.setTimeoutFn(()=>{p(),g(new Error("timeout")),u.close()},x);this.opts.autoUnref&&E.unref(),this.subs.push(()=>{this.clearTimeoutFn(E)})}return this.subs.push(p),this.subs.push(v),this}connect(i){return this.open(i)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const i=this.engine;this.subs.push(on(i,"ping",this.onping.bind(this)),on(i,"data",this.ondata.bind(this)),on(i,"error",this.onerror.bind(this)),on(i,"close",this.onclose.bind(this)),on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(i){try{this.decoder.add(i)}catch(u){this.onclose("parse error",u)}}ondecoded(i){nextTick(()=>{this.emitReserved("packet",i)},this.setTimeoutFn)}onerror(i){this.emitReserved("error",i)}socket(i,u){let c=this.nsps[i];return c?this._autoConnect&&!c.active&&c.connect():(c=new Socket(this,i,u),this.nsps[i]=c),c}_destroy(i){const u=Object.keys(this.nsps);for(const c of u)if(this.nsps[c].active)return;this._close()}_packet(i){const u=this.encoder.encode(i);for(let c=0;c<u.length;c++)this.engine.write(u[c],i.options)}cleanup(){this.subs.forEach(i=>i()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(i,u){var c;this.cleanup(),(c=this.engine)===null||c===void 0||c.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",i,u),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const i=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const u=this.backoff.duration();this._reconnecting=!0;const c=this.setTimeoutFn(()=>{i.skipReconnect||(this.emitReserved("reconnect_attempt",i.backoff.attempts),!i.skipReconnect&&i.open(p=>{p?(i._reconnecting=!1,i.reconnect(),this.emitReserved("reconnect_error",p)):i.onreconnect()}))},u);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}}onreconnect(){const i=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",i)}}const cache={};function lookup(t,i){typeof t=="object"&&(i=t,t=void 0),i=i||{};const u=url(t,i.path||"/socket.io"),c=u.source,p=u.id,g=u.path,v=cache[p]&&g in cache[p].nsps,x=i.forceNew||i["force new connection"]||i.multiplex===!1||v;let E;return x?E=new Manager(c,i):(cache[p]||(cache[p]=new Manager(c,i)),E=cache[p]),u.query&&!i.query&&(i.query=u.queryKey),E.socket(u.path,i)}Object.assign(lookup,{Manager,Socket,io:lookup,connect:lookup});const blacklist=[MESSAGE_TO_GUEST,EVENT_TO_GUEST,TYPING_ON,TYPING_OFF,RESTART_CHAT_REQUEST,...INTERNAL_ACTIONS,...INTERNAL_ACTIONS$1,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],socketMiddleware=({dispatch:t,getState:i})=>u=>{let c=null;return p=>{const g=u(p);if(p.type===CONNECT){c?.disconnect(),t(connecting());const v=`/chat?${new URLSearchParams(p.querystrings).toString()}`;c=lookup(`/${p.clientName}${v}`),c.on("action",t),c.on("connect",()=>t(connected())),c.on("disconnect",()=>t(disconnected())),c.on("reconnect",()=>t(reconnected())),c.on("set-translations",(x,E)=>{t(updateIntl({language:x,messages:mergeMessages(x,E)}))}),c.on("set-settings",x=>{t(setSettings(x))}),c.on("enable-conversation-rating",x=>t(enableConversationRating(x))),c.on("speech-transcription",x=>t(receiveSpeechTranscription(x))),c.on("restore-client-state",x=>{t(restoreSessionId(x.sessionId)),t(restorePreviousChatMessages(x.messages))}),c.on("expand-window",({devices:x,initial:E=!1})=>{t({type:EXPAND_WINDOW,devices:x,initial:E})}),c.on("restart-chat",()=>{t(restartChat())}),c.on("login-success",x=>{t(startAuthenticatedChat({loginToken:x.loginToken}))})}else if(p.type==="start-screen/requestLogin")c?.emit("login-requested",p.payload);else if(p.type===START)c?.emit("start-chat",p.payload);else if(p.type===TERMINATE_SESSION)c?.emit("terminate-session",p.payload);else if(p.type===GET_STARTED)c?.emit("get-started",JSON.stringify(p));else if(p.type===AUDIO_MESSAGE_FROM_USER)c?.emit("audio-message",p.buffer);else if(p.type===CONVERSATION_RATING_FROM_GUEST)c?.emit("conversation-rating",p.payload);else if(p.type===DOWNLOAD_TRANSCRIPT_PDF){const{connection:{sessionId:v}}=i();window.location.href=`/transcript-pdf/${v}`}else blacklist.indexOf(p.type)===-1&&p.meta===void 0&&c&&c.emit("action",JSON.stringify(p));return g}},clientName=getClientName(),preloadedState={...loadState(clientName),intl:initialState$3},store=configureStore({middleware:t=>t().concat(socketMiddleware),reducer:rootReducer,preloadedState});store.subscribe(throttle(()=>{const t=store.getState();saveState(clientName,{connection:t.connection,startScreen:t.startScreen})},1e3));const container=document.getElementById("root"),root=clientExports.createRoot(container);root.render(jsxRuntimeExports.jsx(Provider_default,{store,children:jsxRuntimeExports.jsx(App,{})}));
|
|
134
|
-
//# sourceMappingURL=index-CeSfMUE2.js.map
|