@botfabrik/engine-webclient 4.93.7 → 4.94.2

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,119 +0,0 @@
1
- (function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))l(u);new MutationObserver(u=>{for(const c of u)if(c.type==="childList")for(const h of c.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&l(h)}).observe(document,{childList:!0,subtree:!0});function i(u){const c={};return u.integrity&&(c.integrity=u.integrity),u.referrerPolicy&&(c.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?c.credentials="include":u.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function l(u){if(u.ep)return;u.ep=!0;const c=i(u);fetch(u.href,c)}})();var xl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function po(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ic={exports:{}},Ii={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var ag;function v2(){if(ag)return Ii;ag=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function i(l,u,c){var h=null;if(c!==void 0&&(h=""+c),u.key!==void 0&&(h=""+u.key),"key"in u){c={};for(var d in u)d!=="key"&&(c[d]=u[d])}else c=u;return u=c.ref,{$$typeof:n,type:l,key:h,ref:u!==void 0?u:null,props:c}}return Ii.Fragment=r,Ii.jsx=i,Ii.jsxs=i,Ii}var ig;function _2(){return ig||(ig=1,Ic.exports=v2()),Ic.exports}var v=_2(),Fc={exports:{}},Fi={},Vc={exports:{}},Pc={};/**
10
- * @license React
11
- * scheduler.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var sg;function b2(){return sg||(sg=1,function(n){function r(k,Q){var te=k.length;k.push(Q);e:for(;0<te;){var Se=te-1>>>1,R=k[Se];if(0<u(R,Q))k[Se]=Q,k[te]=R,te=Se;else break e}}function i(k){return k.length===0?null:k[0]}function l(k){if(k.length===0)return null;var Q=k[0],te=k.pop();if(te!==Q){k[0]=te;e:for(var Se=0,R=k.length,P=R>>>1;Se<P;){var K=2*(Se+1)-1,Z=k[K],ne=K+1,pe=k[ne];if(0>u(Z,te))ne<R&&0>u(pe,Z)?(k[Se]=pe,k[ne]=te,Se=ne):(k[Se]=Z,k[K]=te,Se=K);else if(ne<R&&0>u(pe,te))k[Se]=pe,k[ne]=te,Se=ne;else break e}}return Q}function u(k,Q){var te=k.sortIndex-Q.sortIndex;return te!==0?te:k.id-Q.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var h=Date,d=h.now();n.unstable_now=function(){return h.now()-d}}var m=[],g=[],y=1,T=null,O=3,j=!1,M=!1,V=!1,q=!1,E=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;function w(k){for(var Q=i(g);Q!==null;){if(Q.callback===null)l(g);else if(Q.startTime<=k)l(g),Q.sortIndex=Q.expirationTime,r(m,Q);else break;Q=i(g)}}function S(k){if(V=!1,w(k),!M)if(i(m)!==null)M=!0,z||(z=!0,se());else{var Q=i(g);Q!==null&&ye(S,Q.startTime-k)}}var z=!1,Y=-1,$=5,ie=-1;function J(){return q?!0:!(n.unstable_now()-ie<$)}function W(){if(q=!1,z){var k=n.unstable_now();ie=k;var Q=!0;try{e:{M=!1,V&&(V=!1,x(Y),Y=-1),j=!0;var te=O;try{t:{for(w(k),T=i(m);T!==null&&!(T.expirationTime>k&&J());){var Se=T.callback;if(typeof Se=="function"){T.callback=null,O=T.priorityLevel;var R=Se(T.expirationTime<=k);if(k=n.unstable_now(),typeof R=="function"){T.callback=R,w(k),Q=!0;break t}T===i(m)&&l(m),w(k)}else l(m);T=i(m)}if(T!==null)Q=!0;else{var P=i(g);P!==null&&ye(S,P.startTime-k),Q=!1}}break e}finally{T=null,O=te,j=!1}Q=void 0}}finally{Q?se():z=!1}}}var se;if(typeof b=="function")se=function(){b(W)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,Ye=le.port2;le.port1.onmessage=W,se=function(){Ye.postMessage(null)}}else se=function(){E(W,0)};function ye(k,Q){Y=E(function(){k(n.unstable_now())},Q)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(k){k.callback=null},n.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"):$=0<k?Math.floor(1e3/k):5},n.unstable_getCurrentPriorityLevel=function(){return O},n.unstable_next=function(k){switch(O){case 1:case 2:case 3:var Q=3;break;default:Q=O}var te=O;O=Q;try{return k()}finally{O=te}},n.unstable_requestPaint=function(){q=!0},n.unstable_runWithPriority=function(k,Q){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var te=O;O=k;try{return Q()}finally{O=te}},n.unstable_scheduleCallback=function(k,Q,te){var Se=n.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?Se+te:Se):te=Se,k){case 1:var R=-1;break;case 2:R=250;break;case 5:R=1073741823;break;case 4:R=1e4;break;default:R=5e3}return R=te+R,k={id:y++,callback:Q,priorityLevel:k,startTime:te,expirationTime:R,sortIndex:-1},te>Se?(k.sortIndex=te,r(g,k),i(m)===null&&k===i(g)&&(V?(x(Y),Y=-1):V=!0,ye(S,te-Se))):(k.sortIndex=R,r(m,k),M||j||(M=!0,z||(z=!0,se()))),k},n.unstable_shouldYield=J,n.unstable_wrapCallback=function(k){var Q=O;return function(){var te=O;O=Q;try{return k.apply(this,arguments)}finally{O=te}}}}(Pc)),Pc}var lg;function E2(){return lg||(lg=1,Vc.exports=b2()),Vc.exports}var Yc={exports:{}},me={};/**
18
- * @license React
19
- * react.production.js
20
- *
21
- * Copyright (c) Meta Platforms, Inc. and affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var og;function S2(){if(og)return me;og=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),h=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),T=Symbol.iterator;function O(R){return R===null||typeof R!="object"?null:(R=T&&R[T]||R["@@iterator"],typeof R=="function"?R:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,V={};function q(R,P,K){this.props=R,this.context=P,this.refs=V,this.updater=K||j}q.prototype.isReactComponent={},q.prototype.setState=function(R,P){if(typeof R!="object"&&typeof R!="function"&&R!=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,R,P,"setState")},q.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function E(){}E.prototype=q.prototype;function x(R,P,K){this.props=R,this.context=P,this.refs=V,this.updater=K||j}var b=x.prototype=new E;b.constructor=x,M(b,q.prototype),b.isPureReactComponent=!0;var w=Array.isArray,S={H:null,A:null,T:null,S:null,V:null},z=Object.prototype.hasOwnProperty;function Y(R,P,K,Z,ne,pe){return K=pe.ref,{$$typeof:n,type:R,key:P,ref:K!==void 0?K:null,props:pe}}function $(R,P){return Y(R.type,P,void 0,void 0,void 0,R.props)}function ie(R){return typeof R=="object"&&R!==null&&R.$$typeof===n}function J(R){var P={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(K){return P[K]})}var W=/\/+/g;function se(R,P){return typeof R=="object"&&R!==null&&R.key!=null?J(""+R.key):P.toString(36)}function le(){}function Ye(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(le,le):(R.status="pending",R.then(function(P){R.status==="pending"&&(R.status="fulfilled",R.value=P)},function(P){R.status==="pending"&&(R.status="rejected",R.reason=P)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function ye(R,P,K,Z,ne){var pe=typeof R;(pe==="undefined"||pe==="boolean")&&(R=null);var ue=!1;if(R===null)ue=!0;else switch(pe){case"bigint":case"string":case"number":ue=!0;break;case"object":switch(R.$$typeof){case n:case r:ue=!0;break;case y:return ue=R._init,ye(ue(R._payload),P,K,Z,ne)}}if(ue)return ne=ne(R),ue=Z===""?"."+se(R,0):Z,w(ne)?(K="",ue!=null&&(K=ue.replace(W,"$&/")+"/"),ye(ne,P,K,"",function(Ot){return Ot})):ne!=null&&(ie(ne)&&(ne=$(ne,K+(ne.key==null||R&&R.key===ne.key?"":(""+ne.key).replace(W,"$&/")+"/")+ue)),P.push(ne)),1;ue=0;var tt=Z===""?".":Z+":";if(w(R))for(var He=0;He<R.length;He++)Z=R[He],pe=tt+se(Z,He),ue+=ye(Z,P,K,pe,ne);else if(He=O(R),typeof He=="function")for(R=He.call(R),He=0;!(Z=R.next()).done;)Z=Z.value,pe=tt+se(Z,He++),ue+=ye(Z,P,K,pe,ne);else if(pe==="object"){if(typeof R.then=="function")return ye(Ye(R),P,K,Z,ne);throw P=String(R),Error("Objects are not valid as a React child (found: "+(P==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":P)+"). If you meant to render a collection of children, use an array instead.")}return ue}function k(R,P,K){if(R==null)return R;var Z=[],ne=0;return ye(R,Z,"","",function(pe){return P.call(K,pe,ne++)}),Z}function Q(R){if(R._status===-1){var P=R._result;P=P(),P.then(function(K){(R._status===0||R._status===-1)&&(R._status=1,R._result=K)},function(K){(R._status===0||R._status===-1)&&(R._status=2,R._result=K)}),R._status===-1&&(R._status=0,R._result=P)}if(R._status===1)return R._result.default;throw R._result}var te=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var P=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(P))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)};function Se(){}return me.Children={map:k,forEach:function(R,P,K){k(R,function(){P.apply(this,arguments)},K)},count:function(R){var P=0;return k(R,function(){P++}),P},toArray:function(R){return k(R,function(P){return P})||[]},only:function(R){if(!ie(R))throw Error("React.Children.only expected to receive a single React element child.");return R}},me.Component=q,me.Fragment=i,me.Profiler=u,me.PureComponent=x,me.StrictMode=l,me.Suspense=m,me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=S,me.__COMPILER_RUNTIME={__proto__:null,c:function(R){return S.H.useMemoCache(R)}},me.cache=function(R){return function(){return R.apply(null,arguments)}},me.cloneElement=function(R,P,K){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var Z=M({},R.props),ne=R.key,pe=void 0;if(P!=null)for(ue in P.ref!==void 0&&(pe=void 0),P.key!==void 0&&(ne=""+P.key),P)!z.call(P,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&P.ref===void 0||(Z[ue]=P[ue]);var ue=arguments.length-2;if(ue===1)Z.children=K;else if(1<ue){for(var tt=Array(ue),He=0;He<ue;He++)tt[He]=arguments[He+2];Z.children=tt}return Y(R.type,ne,void 0,void 0,pe,Z)},me.createContext=function(R){return R={$$typeof:h,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:c,_context:R},R},me.createElement=function(R,P,K){var Z,ne={},pe=null;if(P!=null)for(Z in P.key!==void 0&&(pe=""+P.key),P)z.call(P,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&(ne[Z]=P[Z]);var ue=arguments.length-2;if(ue===1)ne.children=K;else if(1<ue){for(var tt=Array(ue),He=0;He<ue;He++)tt[He]=arguments[He+2];ne.children=tt}if(R&&R.defaultProps)for(Z in ue=R.defaultProps,ue)ne[Z]===void 0&&(ne[Z]=ue[Z]);return Y(R,pe,void 0,void 0,null,ne)},me.createRef=function(){return{current:null}},me.forwardRef=function(R){return{$$typeof:d,render:R}},me.isValidElement=ie,me.lazy=function(R){return{$$typeof:y,_payload:{_status:-1,_result:R},_init:Q}},me.memo=function(R,P){return{$$typeof:g,type:R,compare:P===void 0?null:P}},me.startTransition=function(R){var P=S.T,K={};S.T=K;try{var Z=R(),ne=S.S;ne!==null&&ne(K,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then(Se,te)}catch(pe){te(pe)}finally{S.T=P}},me.unstable_useCacheRefresh=function(){return S.H.useCacheRefresh()},me.use=function(R){return S.H.use(R)},me.useActionState=function(R,P,K){return S.H.useActionState(R,P,K)},me.useCallback=function(R,P){return S.H.useCallback(R,P)},me.useContext=function(R){return S.H.useContext(R)},me.useDebugValue=function(){},me.useDeferredValue=function(R,P){return S.H.useDeferredValue(R,P)},me.useEffect=function(R,P,K){var Z=S.H;if(typeof K=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Z.useEffect(R,P)},me.useId=function(){return S.H.useId()},me.useImperativeHandle=function(R,P,K){return S.H.useImperativeHandle(R,P,K)},me.useInsertionEffect=function(R,P){return S.H.useInsertionEffect(R,P)},me.useLayoutEffect=function(R,P){return S.H.useLayoutEffect(R,P)},me.useMemo=function(R,P){return S.H.useMemo(R,P)},me.useOptimistic=function(R,P){return S.H.useOptimistic(R,P)},me.useReducer=function(R,P,K){return S.H.useReducer(R,P,K)},me.useRef=function(R){return S.H.useRef(R)},me.useState=function(R){return S.H.useState(R)},me.useSyncExternalStore=function(R,P,K){return S.H.useSyncExternalStore(R,P,K)},me.useTransition=function(){return S.H.useTransition()},me.version="19.1.0",me}var ug;function Ga(){return ug||(ug=1,Yc.exports=S2()),Yc.exports}var Zc={exports:{}},gt={};/**
26
- * @license React
27
- * react-dom.production.js
28
- *
29
- * Copyright (c) Meta Platforms, Inc. and affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var cg;function T2(){if(cg)return gt;cg=1;var n=Ga();function r(m){var g="https://react.dev/errors/"+m;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)g+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+m+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var l={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},u=Symbol.for("react.portal");function c(m,g,y){var T=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:T==null?null:""+T,children:m,containerInfo:g,implementation:y}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(m,g){if(m==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return gt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,gt.createPortal=function(m,g){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(r(299));return c(m,g,null,y)},gt.flushSync=function(m){var g=h.T,y=l.p;try{if(h.T=null,l.p=2,m)return m()}finally{h.T=g,l.p=y,l.d.f()}},gt.preconnect=function(m,g){typeof m=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,l.d.C(m,g))},gt.prefetchDNS=function(m){typeof m=="string"&&l.d.D(m)},gt.preinit=function(m,g){if(typeof m=="string"&&g&&typeof g.as=="string"){var y=g.as,T=d(y,g.crossOrigin),O=typeof g.integrity=="string"?g.integrity:void 0,j=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?l.d.S(m,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:T,integrity:O,fetchPriority:j}):y==="script"&&l.d.X(m,{crossOrigin:T,integrity:O,fetchPriority:j,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},gt.preinitModule=function(m,g){if(typeof m=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var y=d(g.as,g.crossOrigin);l.d.M(m,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&l.d.M(m)},gt.preload=function(m,g){if(typeof m=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,T=d(y,g.crossOrigin);l.d.L(m,y,{crossOrigin:T,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},gt.preloadModule=function(m,g){if(typeof m=="string")if(g){var y=d(g.as,g.crossOrigin);l.d.m(m,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else l.d.m(m)},gt.requestFormReset=function(m){l.d.r(m)},gt.unstable_batchedUpdates=function(m,g){return m(g)},gt.useFormState=function(m,g,y){return h.H.useFormState(m,g,y)},gt.useFormStatus=function(){return h.H.useHostTransitionStatus()},gt.version="19.1.0",gt}var fg;function x2(){if(fg)return Zc.exports;fg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Zc.exports=T2(),Zc.exports}/**
34
- * @license React
35
- * react-dom-client.production.js
36
- *
37
- * Copyright (c) Meta Platforms, Inc. and affiliates.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE file in the root directory of this source tree.
41
- */var hg;function A2(){if(hg)return Fi;hg=1;var n=E2(),r=Ga(),i=x2();function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(c(e)!==e)throw Error(l(188))}function m(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(l(188));return t!==e?null:e}for(var a=e,s=t;;){var o=a.return;if(o===null)break;var f=o.alternate;if(f===null){if(s=o.return,s!==null){a=s;continue}break}if(o.child===f.child){for(f=o.child;f;){if(f===a)return d(o),e;if(f===s)return d(o),t;f=f.sibling}throw Error(l(188))}if(a.return!==s.return)a=o,s=f;else{for(var p=!1,_=o.child;_;){if(_===a){p=!0,a=o,s=f;break}if(_===s){p=!0,s=o,a=f;break}_=_.sibling}if(!p){for(_=f.child;_;){if(_===a){p=!0,a=f,s=o;break}if(_===s){p=!0,s=f,a=o;break}_=_.sibling}if(!p)throw Error(l(189))}}if(a.alternate!==s)throw Error(l(190))}if(a.tag!==3)throw Error(l(188));return a.stateNode.current===a?e:t}function g(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=g(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,T=Symbol.for("react.element"),O=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),x=Symbol.for("react.consumer"),b=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),ie=Symbol.for("react.activity"),J=Symbol.for("react.memo_cache_sentinel"),W=Symbol.iterator;function se(e){return e===null||typeof e!="object"?null:(e=W&&e[W]||e["@@iterator"],typeof e=="function"?e:null)}var le=Symbol.for("react.client.reference");function Ye(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===le?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case M:return"Fragment";case q:return"Profiler";case V:return"StrictMode";case S:return"Suspense";case z:return"SuspenseList";case ie:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case j:return"Portal";case b:return(e.displayName||"Context")+".Provider";case x:return(e._context.displayName||"Context")+".Consumer";case w:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Y:return t=e.displayName||null,t!==null?t:Ye(e.type)||"Memo";case $:t=e._payload,e=e._init;try{return Ye(e(t))}catch{}}return null}var ye=Array.isArray,k=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},Se=[],R=-1;function P(e){return{current:e}}function K(e){0>R||(e.current=Se[R],Se[R]=null,R--)}function Z(e,t){R++,Se[R]=e.current,e.current=t}var ne=P(null),pe=P(null),ue=P(null),tt=P(null);function He(e,t){switch(Z(ue,t),Z(pe,e),Z(ne,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Mp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Mp(t),e=Bp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}K(ne),Z(ne,e)}function Ot(){K(ne),K(pe),K(ue)}function Er(e){e.memoizedState!==null&&Z(tt,e);var t=ne.current,a=Bp(t,e.type);t!==a&&(Z(pe,e),Z(ne,a))}function Va(e){pe.current===e&&(K(ne),K(pe)),tt.current===e&&(K(tt),Hi._currentValue=te)}var dt=Object.prototype.hasOwnProperty,Tn=n.unstable_scheduleCallback,No=n.unstable_cancelCallback,Kb=n.unstable_shouldYield,$b=n.unstable_requestPaint,cn=n.unstable_now,Jb=n.unstable_getCurrentPriorityLevel,hd=n.unstable_ImmediatePriority,dd=n.unstable_UserBlockingPriority,cs=n.unstable_NormalPriority,Wb=n.unstable_LowPriority,md=n.unstable_IdlePriority,e1=n.log,t1=n.unstable_setDisableYieldValue,Pa=null,wt=null;function Yn(e){if(typeof e1=="function"&&t1(e),wt&&typeof wt.setStrictMode=="function")try{wt.setStrictMode(Pa,e)}catch{}}var Rt=Math.clz32?Math.clz32:a1,n1=Math.log,r1=Math.LN2;function a1(e){return e>>>=0,e===0?32:31-(n1(e)/r1|0)|0}var fs=256,hs=4194304;function Sr(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;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 ds(e,t,a){var s=e.pendingLanes;if(s===0)return 0;var o=0,f=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var _=s&134217727;return _!==0?(s=_&~f,s!==0?o=Sr(s):(p&=_,p!==0?o=Sr(p):a||(a=_&~e,a!==0&&(o=Sr(a))))):(_=s&~f,_!==0?o=Sr(_):p!==0?o=Sr(p):a||(a=s&~e,a!==0&&(o=Sr(a)))),o===0?0:t!==0&&t!==o&&(t&f)===0&&(f=o&-o,a=t&-t,f>=a||f===32&&(a&4194048)!==0)?t:o}function Ya(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function i1(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function pd(){var e=fs;return fs<<=1,(fs&4194048)===0&&(fs=256),e}function gd(){var e=hs;return hs<<=1,(hs&62914560)===0&&(hs=4194304),e}function Do(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Za(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function s1(e,t,a,s,o,f){var p=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var _=e.entanglements,A=e.expirationTimes,B=e.hiddenUpdates;for(a=p&~a;0<a;){var G=31-Rt(a),F=1<<G;_[G]=0,A[G]=-1;var U=B[G];if(U!==null)for(B[G]=null,G=0;G<U.length;G++){var L=U[G];L!==null&&(L.lane&=-536870913)}a&=~F}s!==0&&yd(e,s,0),f!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=f&~(p&~t))}function yd(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-Rt(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|a&4194090}function vd(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var s=31-Rt(a),o=1<<s;o&t|e[s]&t&&(e[s]|=t),a&=~o}}function Mo(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 Bo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function _d(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:Jp(e.type))}function l1(e,t){var a=Q.p;try{return Q.p=e,t()}finally{Q.p=a}}var Zn=Math.random().toString(36).slice(2),mt="__reactFiber$"+Zn,bt="__reactProps$"+Zn,Jr="__reactContainer$"+Zn,jo="__reactEvents$"+Zn,o1="__reactListeners$"+Zn,u1="__reactHandles$"+Zn,bd="__reactResources$"+Zn,Xa="__reactMarker$"+Zn;function Uo(e){delete e[mt],delete e[bt],delete e[jo],delete e[o1],delete e[u1]}function Wr(e){var t=e[mt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Jr]||a[mt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Hp(e);e!==null;){if(a=e[mt])return a;e=Hp(e)}return t}e=a,a=e.parentNode}return null}function ea(e){if(e=e[mt]||e[Jr]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Qa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(l(33))}function ta(e){var t=e[bd];return t||(t=e[bd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function nt(e){e[Xa]=!0}var Ed=new Set,Sd={};function Tr(e,t){na(e,t),na(e+"Capture",t)}function na(e,t){for(Sd[e]=t,e=0;e<t.length;e++)Ed.add(t[e])}var c1=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]*$"),Td={},xd={};function f1(e){return dt.call(xd,e)?!0:dt.call(Td,e)?!1:c1.test(e)?xd[e]=!0:(Td[e]=!0,!1)}function ms(e,t,a){if(f1(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var s=t.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function ps(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function xn(e,t,a,s){if(s===null)e.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+s)}}var Lo,Ad;function ra(e){if(Lo===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Lo=t&&t[1]||"",Ad=-1<a.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+Lo+e+Ad}var Ho=!1;function zo(e,t){if(!e||Ho)return"";Ho=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(t){var F=function(){throw Error()};if(Object.defineProperty(F.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(F,[])}catch(L){var U=L}Reflect.construct(e,[],F)}else{try{F.call()}catch(L){U=L}e.call(F.prototype)}}else{try{throw Error()}catch(L){U=L}(F=e())&&typeof F.catch=="function"&&F.catch(function(){})}}catch(L){if(L&&U&&typeof L.stack=="string")return[L.stack,U.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=s.DetermineComponentFrameRoot(),p=f[0],_=f[1];if(p&&_){var A=p.split(`
44
- `),B=_.split(`
45
- `);for(o=s=0;s<A.length&&!A[s].includes("DetermineComponentFrameRoot");)s++;for(;o<B.length&&!B[o].includes("DetermineComponentFrameRoot");)o++;if(s===A.length||o===B.length)for(s=A.length-1,o=B.length-1;1<=s&&0<=o&&A[s]!==B[o];)o--;for(;1<=s&&0<=o;s--,o--)if(A[s]!==B[o]){if(s!==1||o!==1)do if(s--,o--,0>o||A[s]!==B[o]){var G=`
46
- `+A[s].replace(" at new "," at ");return e.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",e.displayName)),G}while(1<=s&&0<=o);break}}}finally{Ho=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?ra(a):""}function h1(e){switch(e.tag){case 26:case 27:case 5:return ra(e.type);case 16:return ra("Lazy");case 13:return ra("Suspense");case 19:return ra("SuspenseList");case 0:case 15:return zo(e.type,!1);case 11:return zo(e.type.render,!1);case 1:return zo(e.type,!0);case 31:return ra("Activity");default:return""}}function Od(e){try{var t="";do t+=h1(e),e=e.return;while(e);return t}catch(a){return`
47
- Error generating stack: `+a.message+`
48
- `+a.stack}}function It(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function d1(e){var t=wd(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,f=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(p){s=""+p,f.call(this,p)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return s},setValue:function(p){s=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function gs(e){e._valueTracker||(e._valueTracker=d1(e))}function Rd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),s="";return e&&(s=wd(e)?e.checked?"true":"false":e.value),e=s,e!==a?(t.setValue(e),!0):!1}function ys(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 m1=/[\n"\\]/g;function Ft(e){return e.replace(m1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ko(e,t,a,s,o,f,p,_){e.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.type=p:e.removeAttribute("type"),t!=null?p==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+It(t)):e.value!==""+It(t)&&(e.value=""+It(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?Go(e,p,It(t)):a!=null?Go(e,p,It(a)):s!=null&&e.removeAttribute("value"),o==null&&f!=null&&(e.defaultChecked=!!f),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?e.name=""+It(_):e.removeAttribute("name")}function Cd(e,t,a,s,o,f,p,_){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||a!=null){if(!(f!=="submit"&&f!=="reset"||t!=null))return;a=a!=null?""+It(a):"",t=t!=null?""+It(t):a,_||t===e.value||(e.value=t),e.defaultValue=t}s=s??o,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=_?e.checked:!!s,e.defaultChecked=!!s,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p)}function Go(e,t,a){t==="number"&&ys(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function aa(e,t,a,s){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&s&&(e[a].defaultSelected=!0)}else{for(a=""+It(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,s&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Nd(e,t,a){if(t!=null&&(t=""+It(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+It(a):""}function Dd(e,t,a,s){if(t==null){if(s!=null){if(a!=null)throw Error(l(92));if(ye(s)){if(1<s.length)throw Error(l(93));s=s[0]}a=s}a==null&&(a=""),t=a}a=It(t),e.defaultValue=a,s=e.textContent,s===a&&s!==""&&s!==null&&(e.value=s)}function ia(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var p1=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 Md(e,t,a){var s=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?s?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":s?e.setProperty(t,a):typeof a!="number"||a===0||p1.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Bd(e,t,a){if(t!=null&&typeof t!="object")throw Error(l(62));if(e=e.style,a!=null){for(var s in a)!a.hasOwnProperty(s)||t!=null&&t.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var o in t)s=t[o],t.hasOwnProperty(o)&&a[o]!==s&&Md(e,o,s)}else for(var f in t)t.hasOwnProperty(f)&&Md(e,f,t[f])}function qo(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 g1=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"]]),y1=/^[\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 vs(e){return y1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Io=null;function Fo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sa=null,la=null;function jd(e){var t=ea(e);if(t&&(e=t.stateNode)){var a=e[bt]||null;e:switch(e=t.stateNode,t.type){case"input":if(ko(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Ft(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var s=a[t];if(s!==e&&s.form===e.form){var o=s[bt]||null;if(!o)throw Error(l(90));ko(s,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<a.length;t++)s=a[t],s.form===e.form&&Rd(s)}break e;case"textarea":Nd(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&aa(e,!!a.multiple,t,!1)}}}var Vo=!1;function Ud(e,t,a){if(Vo)return e(t,a);Vo=!0;try{var s=e(t);return s}finally{if(Vo=!1,(sa!==null||la!==null)&&(rl(),sa&&(t=sa,e=la,la=sa=null,jd(t),e)))for(t=0;t<e.length;t++)jd(e[t])}}function Ka(e,t){var a=e.stateNode;if(a===null)return null;var s=a[bt]||null;if(s===null)return null;a=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(l(231,t,typeof a));return a}var An=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Po=!1;if(An)try{var $a={};Object.defineProperty($a,"passive",{get:function(){Po=!0}}),window.addEventListener("test",$a,$a),window.removeEventListener("test",$a,$a)}catch{Po=!1}var Xn=null,Yo=null,_s=null;function Ld(){if(_s)return _s;var e,t=Yo,a=t.length,s,o="value"in Xn?Xn.value:Xn.textContent,f=o.length;for(e=0;e<a&&t[e]===o[e];e++);var p=a-e;for(s=1;s<=p&&t[a-s]===o[f-s];s++);return _s=o.slice(e,1<s?1-s:void 0)}function bs(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Es(){return!0}function Hd(){return!1}function Et(e){function t(a,s,o,f,p){this._reactName=a,this._targetInst=o,this.type=s,this.nativeEvent=f,this.target=p,this.currentTarget=null;for(var _ in e)e.hasOwnProperty(_)&&(a=e[_],this[_]=a?a(f):f[_]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?Es:Hd,this.isPropagationStopped=Hd,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Es)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Es)},persist:function(){},isPersistent:Es}),t}var xr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ss=Et(xr),Ja=y({},xr,{view:0,detail:0}),v1=Et(Ja),Zo,Xo,Wa,Ts=y({},Ja,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ko,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!==Wa&&(Wa&&e.type==="mousemove"?(Zo=e.screenX-Wa.screenX,Xo=e.screenY-Wa.screenY):Xo=Zo=0,Wa=e),Zo)},movementY:function(e){return"movementY"in e?e.movementY:Xo}}),zd=Et(Ts),_1=y({},Ts,{dataTransfer:0}),b1=Et(_1),E1=y({},Ja,{relatedTarget:0}),Qo=Et(E1),S1=y({},xr,{animationName:0,elapsedTime:0,pseudoElement:0}),T1=Et(S1),x1=y({},xr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),A1=Et(x1),O1=y({},xr,{data:0}),kd=Et(O1),w1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},R1={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"},C1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function N1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=C1[e])?!!t[e]:!1}function Ko(){return N1}var D1=y({},Ja,{key:function(e){if(e.key){var t=w1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=bs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?R1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ko,charCode:function(e){return e.type==="keypress"?bs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?bs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),M1=Et(D1),B1=y({},Ts,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Gd=Et(B1),j1=y({},Ja,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ko}),U1=Et(j1),L1=y({},xr,{propertyName:0,elapsedTime:0,pseudoElement:0}),H1=Et(L1),z1=y({},Ts,{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}),k1=Et(z1),G1=y({},xr,{newState:0,oldState:0}),q1=Et(G1),I1=[9,13,27,32],$o=An&&"CompositionEvent"in window,ei=null;An&&"documentMode"in document&&(ei=document.documentMode);var F1=An&&"TextEvent"in window&&!ei,qd=An&&(!$o||ei&&8<ei&&11>=ei),Id=" ",Fd=!1;function Vd(e,t){switch(e){case"keyup":return I1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var oa=!1;function V1(e,t){switch(e){case"compositionend":return Pd(t);case"keypress":return t.which!==32?null:(Fd=!0,Id);case"textInput":return e=t.data,e===Id&&Fd?null:e;default:return null}}function P1(e,t){if(oa)return e==="compositionend"||!$o&&Vd(e,t)?(e=Ld(),_s=Yo=Xn=null,oa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return qd&&t.locale!=="ko"?null:t.data;default:return null}}var Y1={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 Yd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Y1[e.type]:t==="textarea"}function Zd(e,t,a,s){sa?la?la.push(s):la=[s]:sa=s,t=ul(t,"onChange"),0<t.length&&(a=new Ss("onChange","change",null,a,s),e.push({event:a,listeners:t}))}var ti=null,ni=null;function Z1(e){wp(e,0)}function xs(e){var t=Qa(e);if(Rd(t))return e}function Xd(e,t){if(e==="change")return t}var Qd=!1;if(An){var Jo;if(An){var Wo="oninput"in document;if(!Wo){var Kd=document.createElement("div");Kd.setAttribute("oninput","return;"),Wo=typeof Kd.oninput=="function"}Jo=Wo}else Jo=!1;Qd=Jo&&(!document.documentMode||9<document.documentMode)}function $d(){ti&&(ti.detachEvent("onpropertychange",Jd),ni=ti=null)}function Jd(e){if(e.propertyName==="value"&&xs(ni)){var t=[];Zd(t,ni,e,Fo(e)),Ud(Z1,t)}}function X1(e,t,a){e==="focusin"?($d(),ti=t,ni=a,ti.attachEvent("onpropertychange",Jd)):e==="focusout"&&$d()}function Q1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return xs(ni)}function K1(e,t){if(e==="click")return xs(t)}function $1(e,t){if(e==="input"||e==="change")return xs(t)}function J1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ct=typeof Object.is=="function"?Object.is:J1;function ri(e,t){if(Ct(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),s=Object.keys(t);if(a.length!==s.length)return!1;for(s=0;s<a.length;s++){var o=a[s];if(!dt.call(t,o)||!Ct(e[o],t[o]))return!1}return!0}function Wd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function em(e,t){var a=Wd(e);e=0;for(var s;a;){if(a.nodeType===3){if(s=e+a.textContent.length,e<=t&&s>=t)return{node:a,offset:t-e};e=s}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Wd(a)}}function tm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?tm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function nm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ys(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=ys(e.document)}return t}function eu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var W1=An&&"documentMode"in document&&11>=document.documentMode,ua=null,tu=null,ai=null,nu=!1;function rm(e,t,a){var s=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;nu||ua==null||ua!==ys(s)||(s=ua,"selectionStart"in s&&eu(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),ai&&ri(ai,s)||(ai=s,s=ul(tu,"onSelect"),0<s.length&&(t=new Ss("onSelect","select",null,t,a),e.push({event:t,listeners:s}),t.target=ua)))}function Ar(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var ca={animationend:Ar("Animation","AnimationEnd"),animationiteration:Ar("Animation","AnimationIteration"),animationstart:Ar("Animation","AnimationStart"),transitionrun:Ar("Transition","TransitionRun"),transitionstart:Ar("Transition","TransitionStart"),transitioncancel:Ar("Transition","TransitionCancel"),transitionend:Ar("Transition","TransitionEnd")},ru={},am={};An&&(am=document.createElement("div").style,"AnimationEvent"in window||(delete ca.animationend.animation,delete ca.animationiteration.animation,delete ca.animationstart.animation),"TransitionEvent"in window||delete ca.transitionend.transition);function Or(e){if(ru[e])return ru[e];if(!ca[e])return e;var t=ca[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in am)return ru[e]=t[a];return e}var im=Or("animationend"),sm=Or("animationiteration"),lm=Or("animationstart"),eE=Or("transitionrun"),tE=Or("transitionstart"),nE=Or("transitioncancel"),om=Or("transitionend"),um=new Map,au="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(" ");au.push("scrollEnd");function en(e,t){um.set(e,t),Tr(t,[e])}var cm=new WeakMap;function Vt(e,t){if(typeof e=="object"&&e!==null){var a=cm.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Od(t)},cm.set(e,t),t)}return{value:e,source:t,stack:Od(t)}}var Pt=[],fa=0,iu=0;function As(){for(var e=fa,t=iu=fa=0;t<e;){var a=Pt[t];Pt[t++]=null;var s=Pt[t];Pt[t++]=null;var o=Pt[t];Pt[t++]=null;var f=Pt[t];if(Pt[t++]=null,s!==null&&o!==null){var p=s.pending;p===null?o.next=o:(o.next=p.next,p.next=o),s.pending=o}f!==0&&fm(a,o,f)}}function Os(e,t,a,s){Pt[fa++]=e,Pt[fa++]=t,Pt[fa++]=a,Pt[fa++]=s,iu|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function su(e,t,a,s){return Os(e,t,a,s),ws(e)}function ha(e,t){return Os(e,null,null,t),ws(e)}function fm(e,t,a){e.lanes|=a;var s=e.alternate;s!==null&&(s.lanes|=a);for(var o=!1,f=e.return;f!==null;)f.childLanes|=a,s=f.alternate,s!==null&&(s.childLanes|=a),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(o=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,o&&t!==null&&(o=31-Rt(a),e=f.hiddenUpdates,s=e[o],s===null?e[o]=[t]:s.push(t),t.lane=a|536870912),f):null}function ws(e){if(50<Ci)throw Ci=0,hc=null,Error(l(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var da={};function rE(e,t,a,s){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nt(e,t,a,s){return new rE(e,t,a,s)}function lu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function On(e,t){var a=e.alternate;return a===null?(a=Nt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function hm(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Rs(e,t,a,s,o,f){var p=0;if(s=e,typeof e=="function")lu(e)&&(p=1);else if(typeof e=="string")p=i2(e,a,ne.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ie:return e=Nt(31,a,t,o),e.elementType=ie,e.lanes=f,e;case M:return wr(a.children,o,f,t);case V:p=8,o|=24;break;case q:return e=Nt(12,a,t,o|2),e.elementType=q,e.lanes=f,e;case S:return e=Nt(13,a,t,o),e.elementType=S,e.lanes=f,e;case z:return e=Nt(19,a,t,o),e.elementType=z,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case E:case b:p=10;break e;case x:p=9;break e;case w:p=11;break e;case Y:p=14;break e;case $:p=16,s=null;break e}p=29,a=Error(l(130,e===null?"null":typeof e,"")),s=null}return t=Nt(p,a,t,o),t.elementType=e,t.type=s,t.lanes=f,t}function wr(e,t,a,s){return e=Nt(7,e,s,t),e.lanes=a,e}function ou(e,t,a){return e=Nt(6,e,null,t),e.lanes=a,e}function uu(e,t,a){return t=Nt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ma=[],pa=0,Cs=null,Ns=0,Yt=[],Zt=0,Rr=null,wn=1,Rn="";function Cr(e,t){ma[pa++]=Ns,ma[pa++]=Cs,Cs=e,Ns=t}function dm(e,t,a){Yt[Zt++]=wn,Yt[Zt++]=Rn,Yt[Zt++]=Rr,Rr=e;var s=wn;e=Rn;var o=32-Rt(s)-1;s&=~(1<<o),a+=1;var f=32-Rt(t)+o;if(30<f){var p=o-o%5;f=(s&(1<<p)-1).toString(32),s>>=p,o-=p,wn=1<<32-Rt(t)+o|a<<o|s,Rn=f+e}else wn=1<<f|a<<o|s,Rn=e}function cu(e){e.return!==null&&(Cr(e,1),dm(e,1,0))}function fu(e){for(;e===Cs;)Cs=ma[--pa],ma[pa]=null,Ns=ma[--pa],ma[pa]=null;for(;e===Rr;)Rr=Yt[--Zt],Yt[Zt]=null,Rn=Yt[--Zt],Yt[Zt]=null,wn=Yt[--Zt],Yt[Zt]=null}var yt=null,Fe=null,Re=!1,Nr=null,fn=!1,hu=Error(l(519));function Dr(e){var t=Error(l(418,""));throw li(Vt(t,e)),hu}function mm(e){var t=e.stateNode,a=e.type,s=e.memoizedProps;switch(t[mt]=e,t[bt]=s,a){case"dialog":be("cancel",t),be("close",t);break;case"iframe":case"object":case"embed":be("load",t);break;case"video":case"audio":for(a=0;a<Di.length;a++)be(Di[a],t);break;case"source":be("error",t);break;case"img":case"image":case"link":be("error",t),be("load",t);break;case"details":be("toggle",t);break;case"input":be("invalid",t),Cd(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0),gs(t);break;case"select":be("invalid",t);break;case"textarea":be("invalid",t),Dd(t,s.value,s.defaultValue,s.children),gs(t)}a=s.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||s.suppressHydrationWarning===!0||Dp(t.textContent,a)?(s.popover!=null&&(be("beforetoggle",t),be("toggle",t)),s.onScroll!=null&&be("scroll",t),s.onScrollEnd!=null&&be("scrollend",t),s.onClick!=null&&(t.onclick=cl),t=!0):t=!1,t||Dr(e)}function pm(e){for(yt=e.return;yt;)switch(yt.tag){case 5:case 13:fn=!1;return;case 27:case 3:fn=!0;return;default:yt=yt.return}}function ii(e){if(e!==yt)return!1;if(!Re)return pm(e),Re=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Rc(e.type,e.memoizedProps)),a=!a),a&&Fe&&Dr(e),pm(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(a=e.data,a==="/$"){if(t===0){Fe=nn(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++;e=e.nextSibling}Fe=null}}else t===27?(t=Fe,cr(e.type)?(e=Mc,Mc=null,Fe=e):Fe=t):Fe=yt?nn(e.stateNode.nextSibling):null;return!0}function si(){Fe=yt=null,Re=!1}function gm(){var e=Nr;return e!==null&&(xt===null?xt=e:xt.push.apply(xt,e),Nr=null),e}function li(e){Nr===null?Nr=[e]:Nr.push(e)}var du=P(null),Mr=null,Cn=null;function Qn(e,t,a){Z(du,t._currentValue),t._currentValue=a}function Nn(e){e._currentValue=du.current,K(du)}function mu(e,t,a){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===a)break;e=e.return}}function pu(e,t,a,s){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var f=o.dependencies;if(f!==null){var p=o.child;f=f.firstContext;e:for(;f!==null;){var _=f;f=o;for(var A=0;A<t.length;A++)if(_.context===t[A]){f.lanes|=a,_=f.alternate,_!==null&&(_.lanes|=a),mu(f.return,a,e),s||(p=null);break e}f=_.next}}else if(o.tag===18){if(p=o.return,p===null)throw Error(l(341));p.lanes|=a,f=p.alternate,f!==null&&(f.lanes|=a),mu(p,a,e),p=null}else p=o.child;if(p!==null)p.return=o;else for(p=o;p!==null;){if(p===e){p=null;break}if(o=p.sibling,o!==null){o.return=p.return,p=o;break}p=p.return}o=p}}function oi(e,t,a,s){e=null;for(var o=t,f=!1;o!==null;){if(!f){if((o.flags&524288)!==0)f=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var p=o.alternate;if(p===null)throw Error(l(387));if(p=p.memoizedProps,p!==null){var _=o.type;Ct(o.pendingProps.value,p.value)||(e!==null?e.push(_):e=[_])}}else if(o===tt.current){if(p=o.alternate,p===null)throw Error(l(387));p.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Hi):e=[Hi])}o=o.return}e!==null&&pu(t,e,a,s),t.flags|=262144}function Ds(e){for(e=e.firstContext;e!==null;){if(!Ct(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Br(e){Mr=e,Cn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function pt(e){return ym(Mr,e)}function Ms(e,t){return Mr===null&&Br(e),ym(e,t)}function ym(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Cn===null){if(e===null)throw Error(l(308));Cn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Cn=Cn.next=t;return a}var aE=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,s){e.push(s)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},iE=n.unstable_scheduleCallback,sE=n.unstable_NormalPriority,We={$$typeof:b,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function gu(){return{controller:new aE,data:new Map,refCount:0}}function ui(e){e.refCount--,e.refCount===0&&iE(sE,function(){e.controller.abort()})}var ci=null,yu=0,ga=0,ya=null;function lE(e,t){if(ci===null){var a=ci=[];yu=0,ga=_c(),ya={status:"pending",value:void 0,then:function(s){a.push(s)}}}return yu++,t.then(vm,vm),t}function vm(){if(--yu===0&&ci!==null){ya!==null&&(ya.status="fulfilled");var e=ci;ci=null,ga=0,ya=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function oE(e,t){var a=[],s={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return e.then(function(){s.status="fulfilled",s.value=t;for(var o=0;o<a.length;o++)(0,a[o])(t)},function(o){for(s.status="rejected",s.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),s}var _m=k.S;k.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&lE(e,t),_m!==null&&_m(e,t)};var jr=P(null);function vu(){var e=jr.current;return e!==null?e:ze.pooledCache}function Bs(e,t){t===null?Z(jr,jr.current):Z(jr,t.pool)}function bm(){var e=vu();return e===null?null:{parent:We._currentValue,pool:e}}var fi=Error(l(460)),Em=Error(l(474)),js=Error(l(542)),_u={then:function(){}};function Sm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Us(){}function Tm(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Us,Us),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Am(e),e;default:if(typeof t.status=="string")t.then(Us,Us);else{if(e=ze,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=t,e.status="pending",e.then(function(s){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=s}},function(s){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=s}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Am(e),e}throw hi=t,fi}}var hi=null;function xm(){if(hi===null)throw Error(l(459));var e=hi;return hi=null,e}function Am(e){if(e===fi||e===js)throw Error(l(483))}var Kn=!1;function bu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Eu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function $n(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Jn(e,t,a){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(Ne&2)!==0){var o=s.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),s.pending=t,t=ws(e),fm(e,null,a),t}return Os(e,s,t,a),ws(e)}function di(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var s=t.lanes;s&=e.pendingLanes,a|=s,t.lanes=a,vd(e,a)}}function Su(e,t){var a=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,a===s)){var o=null,f=null;if(a=a.firstBaseUpdate,a!==null){do{var p={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};f===null?o=f=p:f=f.next=p,a=a.next}while(a!==null);f===null?o=f=t:f=f.next=t}else o=f=t;a={baseState:s.baseState,firstBaseUpdate:o,lastBaseUpdate:f,shared:s.shared,callbacks:s.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Tu=!1;function mi(){if(Tu){var e=ya;if(e!==null)throw e}}function pi(e,t,a,s){Tu=!1;var o=e.updateQueue;Kn=!1;var f=o.firstBaseUpdate,p=o.lastBaseUpdate,_=o.shared.pending;if(_!==null){o.shared.pending=null;var A=_,B=A.next;A.next=null,p===null?f=B:p.next=B,p=A;var G=e.alternate;G!==null&&(G=G.updateQueue,_=G.lastBaseUpdate,_!==p&&(_===null?G.firstBaseUpdate=B:_.next=B,G.lastBaseUpdate=A))}if(f!==null){var F=o.baseState;p=0,G=B=A=null,_=f;do{var U=_.lane&-536870913,L=U!==_.lane;if(L?(Ae&U)===U:(s&U)===U){U!==0&&U===ga&&(Tu=!0),G!==null&&(G=G.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var fe=e,oe=_;U=t;var Ue=a;switch(oe.tag){case 1:if(fe=oe.payload,typeof fe=="function"){F=fe.call(Ue,F,U);break e}F=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=oe.payload,U=typeof fe=="function"?fe.call(Ue,F,U):fe,U==null)break e;F=y({},F,U);break e;case 2:Kn=!0}}U=_.callback,U!==null&&(e.flags|=64,L&&(e.flags|=8192),L=o.callbacks,L===null?o.callbacks=[U]:L.push(U))}else L={lane:U,tag:_.tag,payload:_.payload,callback:_.callback,next:null},G===null?(B=G=L,A=F):G=G.next=L,p|=U;if(_=_.next,_===null){if(_=o.shared.pending,_===null)break;L=_,_=L.next,L.next=null,o.lastBaseUpdate=L,o.shared.pending=null}}while(!0);G===null&&(A=F),o.baseState=A,o.firstBaseUpdate=B,o.lastBaseUpdate=G,f===null&&(o.shared.lanes=0),sr|=p,e.lanes=p,e.memoizedState=F}}function Om(e,t){if(typeof e!="function")throw Error(l(191,e));e.call(t)}function wm(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Om(a[e],t)}var va=P(null),Ls=P(0);function Rm(e,t){e=Hn,Z(Ls,e),Z(va,t),Hn=e|t.baseLanes}function xu(){Z(Ls,Hn),Z(va,va.current)}function Au(){Hn=Ls.current,K(va),K(Ls)}var Wn=0,ge=null,Be=null,Qe=null,Hs=!1,_a=!1,Ur=!1,zs=0,gi=0,ba=null,uE=0;function Ze(){throw Error(l(321))}function Ou(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Ct(e[a],t[a]))return!1;return!0}function wu(e,t,a,s,o,f){return Wn=f,ge=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,k.H=e===null||e.memoizedState===null?f0:h0,Ur=!1,f=a(s,o),Ur=!1,_a&&(f=Nm(t,a,s,o)),Cm(e),f}function Cm(e){k.H=Vs;var t=Be!==null&&Be.next!==null;if(Wn=0,Qe=Be=ge=null,Hs=!1,gi=0,ba=null,t)throw Error(l(300));e===null||rt||(e=e.dependencies,e!==null&&Ds(e)&&(rt=!0))}function Nm(e,t,a,s){ge=e;var o=0;do{if(_a&&(ba=null),gi=0,_a=!1,25<=o)throw Error(l(301));if(o+=1,Qe=Be=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}k.H=gE,f=t(a,s)}while(_a);return f}function cE(){var e=k.H,t=e.useState()[0];return t=typeof t.then=="function"?yi(t):t,e=e.useState()[0],(Be!==null?Be.memoizedState:null)!==e&&(ge.flags|=1024),t}function Ru(){var e=zs!==0;return zs=0,e}function Cu(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Nu(e){if(Hs){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Hs=!1}Wn=0,Qe=Be=ge=null,_a=!1,gi=zs=0,ba=null}function St(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?ge.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function Ke(){if(Be===null){var e=ge.alternate;e=e!==null?e.memoizedState:null}else e=Be.next;var t=Qe===null?ge.memoizedState:Qe.next;if(t!==null)Qe=t,Be=e;else{if(e===null)throw ge.alternate===null?Error(l(467)):Error(l(310));Be=e,e={memoizedState:Be.memoizedState,baseState:Be.baseState,baseQueue:Be.baseQueue,queue:Be.queue,next:null},Qe===null?ge.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function Du(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function yi(e){var t=gi;return gi+=1,ba===null&&(ba=[]),e=Tm(ba,e,t),t=ge,(Qe===null?t.memoizedState:Qe.next)===null&&(t=t.alternate,k.H=t===null||t.memoizedState===null?f0:h0),e}function ks(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return yi(e);if(e.$$typeof===b)return pt(e)}throw Error(l(438,String(e)))}function Mu(e){var t=null,a=ge.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var s=ge.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(t={data:s.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Du(),ge.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),s=0;s<e;s++)a[s]=J;return t.index++,a}function Dn(e,t){return typeof t=="function"?t(e):t}function Gs(e){var t=Ke();return Bu(t,Be,e)}function Bu(e,t,a){var s=e.queue;if(s===null)throw Error(l(311));s.lastRenderedReducer=a;var o=e.baseQueue,f=s.pending;if(f!==null){if(o!==null){var p=o.next;o.next=f.next,f.next=p}t.baseQueue=o=f,s.pending=null}if(f=e.baseState,o===null)e.memoizedState=f;else{t=o.next;var _=p=null,A=null,B=t,G=!1;do{var F=B.lane&-536870913;if(F!==B.lane?(Ae&F)===F:(Wn&F)===F){var U=B.revertLane;if(U===0)A!==null&&(A=A.next={lane:0,revertLane:0,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),F===ga&&(G=!0);else if((Wn&U)===U){B=B.next,U===ga&&(G=!0);continue}else F={lane:0,revertLane:B.revertLane,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},A===null?(_=A=F,p=f):A=A.next=F,ge.lanes|=U,sr|=U;F=B.action,Ur&&a(f,F),f=B.hasEagerState?B.eagerState:a(f,F)}else U={lane:F,revertLane:B.revertLane,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},A===null?(_=A=U,p=f):A=A.next=U,ge.lanes|=F,sr|=F;B=B.next}while(B!==null&&B!==t);if(A===null?p=f:A.next=_,!Ct(f,e.memoizedState)&&(rt=!0,G&&(a=ya,a!==null)))throw a;e.memoizedState=f,e.baseState=p,e.baseQueue=A,s.lastRenderedState=f}return o===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function ju(e){var t=Ke(),a=t.queue;if(a===null)throw Error(l(311));a.lastRenderedReducer=e;var s=a.dispatch,o=a.pending,f=t.memoizedState;if(o!==null){a.pending=null;var p=o=o.next;do f=e(f,p.action),p=p.next;while(p!==o);Ct(f,t.memoizedState)||(rt=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),a.lastRenderedState=f}return[f,s]}function Dm(e,t,a){var s=ge,o=Ke(),f=Re;if(f){if(a===void 0)throw Error(l(407));a=a()}else a=t();var p=!Ct((Be||o).memoizedState,a);p&&(o.memoizedState=a,rt=!0),o=o.queue;var _=jm.bind(null,s,o,e);if(vi(2048,8,_,[e]),o.getSnapshot!==t||p||Qe!==null&&Qe.memoizedState.tag&1){if(s.flags|=2048,Ea(9,qs(),Bm.bind(null,s,o,a,t),null),ze===null)throw Error(l(349));f||(Wn&124)!==0||Mm(s,t,a)}return a}function Mm(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ge.updateQueue,t===null?(t=Du(),ge.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Bm(e,t,a,s){t.value=a,t.getSnapshot=s,Um(t)&&Lm(e)}function jm(e,t,a){return a(function(){Um(t)&&Lm(e)})}function Um(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Ct(e,a)}catch{return!0}}function Lm(e){var t=ha(e,2);t!==null&&Ut(t,e,2)}function Uu(e){var t=St();if(typeof e=="function"){var a=e;if(e=a(),Ur){Yn(!0);try{a()}finally{Yn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dn,lastRenderedState:e},t}function Hm(e,t,a,s){return e.baseState=a,Bu(e,Be,typeof s=="function"?s:Dn)}function fE(e,t,a,s,o){if(Fs(e))throw Error(l(485));if(e=t.action,e!==null){var f={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){f.listeners.push(p)}};k.T!==null?a(!0):f.isTransition=!1,s(f),a=t.pending,a===null?(f.next=t.pending=f,zm(t,f)):(f.next=a.next,t.pending=a.next=f)}}function zm(e,t){var a=t.action,s=t.payload,o=e.state;if(t.isTransition){var f=k.T,p={};k.T=p;try{var _=a(o,s),A=k.S;A!==null&&A(p,_),km(e,t,_)}catch(B){Lu(e,t,B)}finally{k.T=f}}else try{f=a(o,s),km(e,t,f)}catch(B){Lu(e,t,B)}}function km(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(s){Gm(e,t,s)},function(s){return Lu(e,t,s)}):Gm(e,t,a)}function Gm(e,t,a){t.status="fulfilled",t.value=a,qm(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,zm(e,a)))}function Lu(e,t,a){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=a,qm(t),t=t.next;while(t!==s)}e.action=null}function qm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Im(e,t){return t}function Fm(e,t){if(Re){var a=ze.formState;if(a!==null){e:{var s=ge;if(Re){if(Fe){t:{for(var o=Fe,f=fn;o.nodeType!==8;){if(!f){o=null;break t}if(o=nn(o.nextSibling),o===null){o=null;break t}}f=o.data,o=f==="F!"||f==="F"?o:null}if(o){Fe=nn(o.nextSibling),s=o.data==="F!";break e}}Dr(s)}s=!1}s&&(t=a[0])}}return a=St(),a.memoizedState=a.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Im,lastRenderedState:t},a.queue=s,a=o0.bind(null,ge,s),s.dispatch=a,s=Uu(!1),f=qu.bind(null,ge,!1,s.queue),s=St(),o={state:t,dispatch:null,action:e,pending:null},s.queue=o,a=fE.bind(null,ge,o,f,a),o.dispatch=a,s.memoizedState=e,[t,a,!1]}function Vm(e){var t=Ke();return Pm(t,Be,e)}function Pm(e,t,a){if(t=Bu(e,t,Im)[0],e=Gs(Dn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=yi(t)}catch(p){throw p===fi?js:p}else s=t;t=Ke();var o=t.queue,f=o.dispatch;return a!==t.memoizedState&&(ge.flags|=2048,Ea(9,qs(),hE.bind(null,o,a),null)),[s,f,e]}function hE(e,t){e.action=t}function Ym(e){var t=Ke(),a=Be;if(a!==null)return Pm(t,a,e);Ke(),t=t.memoizedState,a=Ke();var s=a.queue.dispatch;return a.memoizedState=e,[t,s,!1]}function Ea(e,t,a,s){return e={tag:e,create:a,deps:s,inst:t,next:null},t=ge.updateQueue,t===null&&(t=Du(),ge.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(s=a.next,a.next=e,e.next=s,t.lastEffect=e),e}function qs(){return{destroy:void 0,resource:void 0}}function Zm(){return Ke().memoizedState}function Is(e,t,a,s){var o=St();s=s===void 0?null:s,ge.flags|=e,o.memoizedState=Ea(1|t,qs(),a,s)}function vi(e,t,a,s){var o=Ke();s=s===void 0?null:s;var f=o.memoizedState.inst;Be!==null&&s!==null&&Ou(s,Be.memoizedState.deps)?o.memoizedState=Ea(t,f,a,s):(ge.flags|=e,o.memoizedState=Ea(1|t,f,a,s))}function Xm(e,t){Is(8390656,8,e,t)}function Qm(e,t){vi(2048,8,e,t)}function Km(e,t){return vi(4,2,e,t)}function $m(e,t){return vi(4,4,e,t)}function Jm(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Wm(e,t,a){a=a!=null?a.concat([e]):null,vi(4,4,Jm.bind(null,t,e),a)}function Hu(){}function e0(e,t){var a=Ke();t=t===void 0?null:t;var s=a.memoizedState;return t!==null&&Ou(t,s[1])?s[0]:(a.memoizedState=[e,t],e)}function t0(e,t){var a=Ke();t=t===void 0?null:t;var s=a.memoizedState;if(t!==null&&Ou(t,s[1]))return s[0];if(s=e(),Ur){Yn(!0);try{e()}finally{Yn(!1)}}return a.memoizedState=[s,t],s}function zu(e,t,a){return a===void 0||(Wn&1073741824)!==0?e.memoizedState=t:(e.memoizedState=a,e=ap(),ge.lanes|=e,sr|=e,a)}function n0(e,t,a,s){return Ct(a,t)?a:va.current!==null?(e=zu(e,a,s),Ct(e,t)||(rt=!0),e):(Wn&42)===0?(rt=!0,e.memoizedState=a):(e=ap(),ge.lanes|=e,sr|=e,t)}function r0(e,t,a,s,o){var f=Q.p;Q.p=f!==0&&8>f?f:8;var p=k.T,_={};k.T=_,qu(e,!1,t,a);try{var A=o(),B=k.S;if(B!==null&&B(_,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var G=oE(A,s);_i(e,t,G,jt(e))}else _i(e,t,s,jt(e))}catch(F){_i(e,t,{then:function(){},status:"rejected",reason:F},jt())}finally{Q.p=f,k.T=p}}function dE(){}function ku(e,t,a,s){if(e.tag!==5)throw Error(l(476));var o=a0(e).queue;r0(e,o,t,te,a===null?dE:function(){return i0(e),a(s)})}function a0(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dn,lastRenderedState:te},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function i0(e){var t=a0(e).next.queue;_i(e,t,{},jt())}function Gu(){return pt(Hi)}function s0(){return Ke().memoizedState}function l0(){return Ke().memoizedState}function mE(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=jt();e=$n(a);var s=Jn(t,e,a);s!==null&&(Ut(s,t,a),di(s,t,a)),t={cache:gu()},e.payload=t;return}t=t.return}}function pE(e,t,a){var s=jt();a={lane:s,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Fs(e)?u0(t,a):(a=su(e,t,a,s),a!==null&&(Ut(a,e,s),c0(a,t,s)))}function o0(e,t,a){var s=jt();_i(e,t,a,s)}function _i(e,t,a,s){var o={lane:s,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Fs(e))u0(t,o);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var p=t.lastRenderedState,_=f(p,a);if(o.hasEagerState=!0,o.eagerState=_,Ct(_,p))return Os(e,t,o,0),ze===null&&As(),!1}catch{}finally{}if(a=su(e,t,o,s),a!==null)return Ut(a,e,s),c0(a,t,s),!0}return!1}function qu(e,t,a,s){if(s={lane:2,revertLane:_c(),action:s,hasEagerState:!1,eagerState:null,next:null},Fs(e)){if(t)throw Error(l(479))}else t=su(e,a,s,2),t!==null&&Ut(t,e,2)}function Fs(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function u0(e,t){_a=Hs=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function c0(e,t,a){if((a&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,a|=s,t.lanes=a,vd(e,a)}}var Vs={readContext:pt,use:ks,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useLayoutEffect:Ze,useInsertionEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useSyncExternalStore:Ze,useId:Ze,useHostTransitionStatus:Ze,useFormState:Ze,useActionState:Ze,useOptimistic:Ze,useMemoCache:Ze,useCacheRefresh:Ze},f0={readContext:pt,use:ks,useCallback:function(e,t){return St().memoizedState=[e,t===void 0?null:t],e},useContext:pt,useEffect:Xm,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Is(4194308,4,Jm.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Is(4194308,4,e,t)},useInsertionEffect:function(e,t){Is(4,2,e,t)},useMemo:function(e,t){var a=St();t=t===void 0?null:t;var s=e();if(Ur){Yn(!0);try{e()}finally{Yn(!1)}}return a.memoizedState=[s,t],s},useReducer:function(e,t,a){var s=St();if(a!==void 0){var o=a(t);if(Ur){Yn(!0);try{a(t)}finally{Yn(!1)}}}else o=t;return s.memoizedState=s.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},s.queue=e,e=e.dispatch=pE.bind(null,ge,e),[s.memoizedState,e]},useRef:function(e){var t=St();return e={current:e},t.memoizedState=e},useState:function(e){e=Uu(e);var t=e.queue,a=o0.bind(null,ge,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Hu,useDeferredValue:function(e,t){var a=St();return zu(a,e,t)},useTransition:function(){var e=Uu(!1);return e=r0.bind(null,ge,e.queue,!0,!1),St().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var s=ge,o=St();if(Re){if(a===void 0)throw Error(l(407));a=a()}else{if(a=t(),ze===null)throw Error(l(349));(Ae&124)!==0||Mm(s,t,a)}o.memoizedState=a;var f={value:a,getSnapshot:t};return o.queue=f,Xm(jm.bind(null,s,f,e),[e]),s.flags|=2048,Ea(9,qs(),Bm.bind(null,s,f,a,t),null),a},useId:function(){var e=St(),t=ze.identifierPrefix;if(Re){var a=Rn,s=wn;a=(s&~(1<<32-Rt(s)-1)).toString(32)+a,t="«"+t+"R"+a,a=zs++,0<a&&(t+="H"+a.toString(32)),t+="»"}else a=uE++,t="«"+t+"r"+a.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Gu,useFormState:Fm,useActionState:Fm,useOptimistic:function(e){var t=St();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=qu.bind(null,ge,!0,a),a.dispatch=t,[e,t]},useMemoCache:Mu,useCacheRefresh:function(){return St().memoizedState=mE.bind(null,ge)}},h0={readContext:pt,use:ks,useCallback:e0,useContext:pt,useEffect:Qm,useImperativeHandle:Wm,useInsertionEffect:Km,useLayoutEffect:$m,useMemo:t0,useReducer:Gs,useRef:Zm,useState:function(){return Gs(Dn)},useDebugValue:Hu,useDeferredValue:function(e,t){var a=Ke();return n0(a,Be.memoizedState,e,t)},useTransition:function(){var e=Gs(Dn)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:yi(e),t]},useSyncExternalStore:Dm,useId:s0,useHostTransitionStatus:Gu,useFormState:Vm,useActionState:Vm,useOptimistic:function(e,t){var a=Ke();return Hm(a,Be,e,t)},useMemoCache:Mu,useCacheRefresh:l0},gE={readContext:pt,use:ks,useCallback:e0,useContext:pt,useEffect:Qm,useImperativeHandle:Wm,useInsertionEffect:Km,useLayoutEffect:$m,useMemo:t0,useReducer:ju,useRef:Zm,useState:function(){return ju(Dn)},useDebugValue:Hu,useDeferredValue:function(e,t){var a=Ke();return Be===null?zu(a,e,t):n0(a,Be.memoizedState,e,t)},useTransition:function(){var e=ju(Dn)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:yi(e),t]},useSyncExternalStore:Dm,useId:s0,useHostTransitionStatus:Gu,useFormState:Ym,useActionState:Ym,useOptimistic:function(e,t){var a=Ke();return Be!==null?Hm(a,Be,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Mu,useCacheRefresh:l0},Sa=null,bi=0;function Ps(e){var t=bi;return bi+=1,Sa===null&&(Sa=[]),Tm(Sa,e,t)}function Ei(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ys(e,t){throw t.$$typeof===T?Error(l(525)):(e=Object.prototype.toString.call(t),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function d0(e){var t=e._init;return t(e._payload)}function m0(e){function t(N,C){if(e){var D=N.deletions;D===null?(N.deletions=[C],N.flags|=16):D.push(C)}}function a(N,C){if(!e)return null;for(;C!==null;)t(N,C),C=C.sibling;return null}function s(N){for(var C=new Map;N!==null;)N.key!==null?C.set(N.key,N):C.set(N.index,N),N=N.sibling;return C}function o(N,C){return N=On(N,C),N.index=0,N.sibling=null,N}function f(N,C,D){return N.index=D,e?(D=N.alternate,D!==null?(D=D.index,D<C?(N.flags|=67108866,C):D):(N.flags|=67108866,C)):(N.flags|=1048576,C)}function p(N){return e&&N.alternate===null&&(N.flags|=67108866),N}function _(N,C,D,I){return C===null||C.tag!==6?(C=ou(D,N.mode,I),C.return=N,C):(C=o(C,D),C.return=N,C)}function A(N,C,D,I){var ee=D.type;return ee===M?G(N,C,D.props.children,I,D.key):C!==null&&(C.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===$&&d0(ee)===C.type)?(C=o(C,D.props),Ei(C,D),C.return=N,C):(C=Rs(D.type,D.key,D.props,null,N.mode,I),Ei(C,D),C.return=N,C)}function B(N,C,D,I){return C===null||C.tag!==4||C.stateNode.containerInfo!==D.containerInfo||C.stateNode.implementation!==D.implementation?(C=uu(D,N.mode,I),C.return=N,C):(C=o(C,D.children||[]),C.return=N,C)}function G(N,C,D,I,ee){return C===null||C.tag!==7?(C=wr(D,N.mode,I,ee),C.return=N,C):(C=o(C,D),C.return=N,C)}function F(N,C,D){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=ou(""+C,N.mode,D),C.return=N,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case O:return D=Rs(C.type,C.key,C.props,null,N.mode,D),Ei(D,C),D.return=N,D;case j:return C=uu(C,N.mode,D),C.return=N,C;case $:var I=C._init;return C=I(C._payload),F(N,C,D)}if(ye(C)||se(C))return C=wr(C,N.mode,D,null),C.return=N,C;if(typeof C.then=="function")return F(N,Ps(C),D);if(C.$$typeof===b)return F(N,Ms(N,C),D);Ys(N,C)}return null}function U(N,C,D,I){var ee=C!==null?C.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return ee!==null?null:_(N,C,""+D,I);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case O:return D.key===ee?A(N,C,D,I):null;case j:return D.key===ee?B(N,C,D,I):null;case $:return ee=D._init,D=ee(D._payload),U(N,C,D,I)}if(ye(D)||se(D))return ee!==null?null:G(N,C,D,I,null);if(typeof D.then=="function")return U(N,C,Ps(D),I);if(D.$$typeof===b)return U(N,C,Ms(N,D),I);Ys(N,D)}return null}function L(N,C,D,I,ee){if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return N=N.get(D)||null,_(C,N,""+I,ee);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case O:return N=N.get(I.key===null?D:I.key)||null,A(C,N,I,ee);case j:return N=N.get(I.key===null?D:I.key)||null,B(C,N,I,ee);case $:var ve=I._init;return I=ve(I._payload),L(N,C,D,I,ee)}if(ye(I)||se(I))return N=N.get(D)||null,G(C,N,I,ee,null);if(typeof I.then=="function")return L(N,C,D,Ps(I),ee);if(I.$$typeof===b)return L(N,C,D,Ms(C,I),ee);Ys(C,I)}return null}function fe(N,C,D,I){for(var ee=null,ve=null,ae=C,ce=C=0,it=null;ae!==null&&ce<D.length;ce++){ae.index>ce?(it=ae,ae=null):it=ae.sibling;var we=U(N,ae,D[ce],I);if(we===null){ae===null&&(ae=it);break}e&&ae&&we.alternate===null&&t(N,ae),C=f(we,C,ce),ve===null?ee=we:ve.sibling=we,ve=we,ae=it}if(ce===D.length)return a(N,ae),Re&&Cr(N,ce),ee;if(ae===null){for(;ce<D.length;ce++)ae=F(N,D[ce],I),ae!==null&&(C=f(ae,C,ce),ve===null?ee=ae:ve.sibling=ae,ve=ae);return Re&&Cr(N,ce),ee}for(ae=s(ae);ce<D.length;ce++)it=L(ae,N,ce,D[ce],I),it!==null&&(e&&it.alternate!==null&&ae.delete(it.key===null?ce:it.key),C=f(it,C,ce),ve===null?ee=it:ve.sibling=it,ve=it);return e&&ae.forEach(function(pr){return t(N,pr)}),Re&&Cr(N,ce),ee}function oe(N,C,D,I){if(D==null)throw Error(l(151));for(var ee=null,ve=null,ae=C,ce=C=0,it=null,we=D.next();ae!==null&&!we.done;ce++,we=D.next()){ae.index>ce?(it=ae,ae=null):it=ae.sibling;var pr=U(N,ae,we.value,I);if(pr===null){ae===null&&(ae=it);break}e&&ae&&pr.alternate===null&&t(N,ae),C=f(pr,C,ce),ve===null?ee=pr:ve.sibling=pr,ve=pr,ae=it}if(we.done)return a(N,ae),Re&&Cr(N,ce),ee;if(ae===null){for(;!we.done;ce++,we=D.next())we=F(N,we.value,I),we!==null&&(C=f(we,C,ce),ve===null?ee=we:ve.sibling=we,ve=we);return Re&&Cr(N,ce),ee}for(ae=s(ae);!we.done;ce++,we=D.next())we=L(ae,N,ce,we.value,I),we!==null&&(e&&we.alternate!==null&&ae.delete(we.key===null?ce:we.key),C=f(we,C,ce),ve===null?ee=we:ve.sibling=we,ve=we);return e&&ae.forEach(function(y2){return t(N,y2)}),Re&&Cr(N,ce),ee}function Ue(N,C,D,I){if(typeof D=="object"&&D!==null&&D.type===M&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case O:e:{for(var ee=D.key;C!==null;){if(C.key===ee){if(ee=D.type,ee===M){if(C.tag===7){a(N,C.sibling),I=o(C,D.props.children),I.return=N,N=I;break e}}else if(C.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===$&&d0(ee)===C.type){a(N,C.sibling),I=o(C,D.props),Ei(I,D),I.return=N,N=I;break e}a(N,C);break}else t(N,C);C=C.sibling}D.type===M?(I=wr(D.props.children,N.mode,I,D.key),I.return=N,N=I):(I=Rs(D.type,D.key,D.props,null,N.mode,I),Ei(I,D),I.return=N,N=I)}return p(N);case j:e:{for(ee=D.key;C!==null;){if(C.key===ee)if(C.tag===4&&C.stateNode.containerInfo===D.containerInfo&&C.stateNode.implementation===D.implementation){a(N,C.sibling),I=o(C,D.children||[]),I.return=N,N=I;break e}else{a(N,C);break}else t(N,C);C=C.sibling}I=uu(D,N.mode,I),I.return=N,N=I}return p(N);case $:return ee=D._init,D=ee(D._payload),Ue(N,C,D,I)}if(ye(D))return fe(N,C,D,I);if(se(D)){if(ee=se(D),typeof ee!="function")throw Error(l(150));return D=ee.call(D),oe(N,C,D,I)}if(typeof D.then=="function")return Ue(N,C,Ps(D),I);if(D.$$typeof===b)return Ue(N,C,Ms(N,D),I);Ys(N,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,C!==null&&C.tag===6?(a(N,C.sibling),I=o(C,D),I.return=N,N=I):(a(N,C),I=ou(D,N.mode,I),I.return=N,N=I),p(N)):a(N,C)}return function(N,C,D,I){try{bi=0;var ee=Ue(N,C,D,I);return Sa=null,ee}catch(ae){if(ae===fi||ae===js)throw ae;var ve=Nt(29,ae,null,N.mode);return ve.lanes=I,ve.return=N,ve}finally{}}}var Ta=m0(!0),p0=m0(!1),Xt=P(null),hn=null;function er(e){var t=e.alternate;Z(et,et.current&1),Z(Xt,e),hn===null&&(t===null||va.current!==null||t.memoizedState!==null)&&(hn=e)}function g0(e){if(e.tag===22){if(Z(et,et.current),Z(Xt,e),hn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(hn=e)}}else tr()}function tr(){Z(et,et.current),Z(Xt,Xt.current)}function Mn(e){K(Xt),hn===e&&(hn=null),K(et)}var et=P(0);function Zs(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||Dc(a)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Iu(e,t,a,s){t=e.memoizedState,a=a(s,t),a=a==null?t:y({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Fu={enqueueSetState:function(e,t,a){e=e._reactInternals;var s=jt(),o=$n(s);o.payload=t,a!=null&&(o.callback=a),t=Jn(e,o,s),t!==null&&(Ut(t,e,s),di(t,e,s))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var s=jt(),o=$n(s);o.tag=1,o.payload=t,a!=null&&(o.callback=a),t=Jn(e,o,s),t!==null&&(Ut(t,e,s),di(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=jt(),s=$n(a);s.tag=2,t!=null&&(s.callback=t),t=Jn(e,s,a),t!==null&&(Ut(t,e,a),di(t,e,a))}};function y0(e,t,a,s,o,f,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,f,p):t.prototype&&t.prototype.isPureReactComponent?!ri(a,s)||!ri(o,f):!0}function v0(e,t,a,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,s),t.state!==e&&Fu.enqueueReplaceState(t,t.state,null)}function Lr(e,t){var a=t;if("ref"in t){a={};for(var s in t)s!=="ref"&&(a[s]=t[s])}if(e=e.defaultProps){a===t&&(a=y({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}var Xs=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function _0(e){Xs(e)}function b0(e){console.error(e)}function E0(e){Xs(e)}function Qs(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(s){setTimeout(function(){throw s})}}function S0(e,t,a){try{var s=e.onCaughtError;s(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Vu(e,t,a){return a=$n(a),a.tag=3,a.payload={element:null},a.callback=function(){Qs(e,t)},a}function T0(e){return e=$n(e),e.tag=3,e}function x0(e,t,a,s){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var f=s.value;e.payload=function(){return o(f)},e.callback=function(){S0(t,a,s)}}var p=a.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){S0(t,a,s),typeof o!="function"&&(lr===null?lr=new Set([this]):lr.add(this));var _=s.stack;this.componentDidCatch(s.value,{componentStack:_!==null?_:""})})}function yE(e,t,a,s,o){if(a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=a.alternate,t!==null&&oi(t,a,o,!0),a=Xt.current,a!==null){switch(a.tag){case 13:return hn===null?mc():a.alternate===null&&Ve===0&&(Ve=3),a.flags&=-257,a.flags|=65536,a.lanes=o,s===_u?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([s]):t.add(s),gc(e,s,o)),!1;case 22:return a.flags|=65536,s===_u?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([s])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([s]):a.add(s)),gc(e,s,o)),!1}throw Error(l(435,a.tag))}return gc(e,s,o),mc(),!1}if(Re)return t=Xt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,s!==hu&&(e=Error(l(422),{cause:s}),li(Vt(e,a)))):(s!==hu&&(t=Error(l(423),{cause:s}),li(Vt(t,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,s=Vt(s,a),o=Vu(e.stateNode,s,o),Su(e,o),Ve!==4&&(Ve=2)),!1;var f=Error(l(520),{cause:s});if(f=Vt(f,a),Ri===null?Ri=[f]:Ri.push(f),Ve!==4&&(Ve=2),t===null)return!0;s=Vt(s,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=Vu(a.stateNode,s,e),Su(a,e),!1;case 1:if(t=a.type,f=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(lr===null||!lr.has(f))))return a.flags|=65536,o&=-o,a.lanes|=o,o=T0(o),x0(o,e,a,s),Su(a,o),!1}a=a.return}while(a!==null);return!1}var A0=Error(l(461)),rt=!1;function lt(e,t,a,s){t.child=e===null?p0(t,null,a,s):Ta(t,e.child,a,s)}function O0(e,t,a,s,o){a=a.render;var f=t.ref;if("ref"in s){var p={};for(var _ in s)_!=="ref"&&(p[_]=s[_])}else p=s;return Br(t),s=wu(e,t,a,p,f,o),_=Ru(),e!==null&&!rt?(Cu(e,t,o),Bn(e,t,o)):(Re&&_&&cu(t),t.flags|=1,lt(e,t,s,o),t.child)}function w0(e,t,a,s,o){if(e===null){var f=a.type;return typeof f=="function"&&!lu(f)&&f.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=f,R0(e,t,f,s,o)):(e=Rs(a.type,null,s,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!Ju(e,o)){var p=f.memoizedProps;if(a=a.compare,a=a!==null?a:ri,a(p,s)&&e.ref===t.ref)return Bn(e,t,o)}return t.flags|=1,e=On(f,s),e.ref=t.ref,e.return=t,t.child=e}function R0(e,t,a,s,o){if(e!==null){var f=e.memoizedProps;if(ri(f,s)&&e.ref===t.ref)if(rt=!1,t.pendingProps=s=f,Ju(e,o))(e.flags&131072)!==0&&(rt=!0);else return t.lanes=e.lanes,Bn(e,t,o)}return Pu(e,t,a,s,o)}function C0(e,t,a){var s=t.pendingProps,o=s.children,f=e!==null?e.memoizedState:null;if(s.mode==="hidden"){if((t.flags&128)!==0){if(s=f!==null?f.baseLanes|a:a,e!==null){for(o=t.child=e.child,f=0;o!==null;)f=f|o.lanes|o.childLanes,o=o.sibling;t.childLanes=f&~s}else t.childLanes=0,t.child=null;return N0(e,t,s,a)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Bs(t,f!==null?f.cachePool:null),f!==null?Rm(t,f):xu(),g0(t);else return t.lanes=t.childLanes=536870912,N0(e,t,f!==null?f.baseLanes|a:a,a)}else f!==null?(Bs(t,f.cachePool),Rm(t,f),tr(),t.memoizedState=null):(e!==null&&Bs(t,null),xu(),tr());return lt(e,t,o,a),t.child}function N0(e,t,a,s){var o=vu();return o=o===null?null:{parent:We._currentValue,pool:o},t.memoizedState={baseLanes:a,cachePool:o},e!==null&&Bs(t,null),xu(),g0(t),e!==null&&oi(e,t,s,!0),null}function Ks(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(l(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Pu(e,t,a,s,o){return Br(t),a=wu(e,t,a,s,void 0,o),s=Ru(),e!==null&&!rt?(Cu(e,t,o),Bn(e,t,o)):(Re&&s&&cu(t),t.flags|=1,lt(e,t,a,o),t.child)}function D0(e,t,a,s,o,f){return Br(t),t.updateQueue=null,a=Nm(t,s,a,o),Cm(e),s=Ru(),e!==null&&!rt?(Cu(e,t,f),Bn(e,t,f)):(Re&&s&&cu(t),t.flags|=1,lt(e,t,a,f),t.child)}function M0(e,t,a,s,o){if(Br(t),t.stateNode===null){var f=da,p=a.contextType;typeof p=="object"&&p!==null&&(f=pt(p)),f=new a(s,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Fu,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=s,f.state=t.memoizedState,f.refs={},bu(t),p=a.contextType,f.context=typeof p=="object"&&p!==null?pt(p):da,f.state=t.memoizedState,p=a.getDerivedStateFromProps,typeof p=="function"&&(Iu(t,a,p,s),f.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(p=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),p!==f.state&&Fu.enqueueReplaceState(f,f.state,null),pi(t,s,f,o),mi(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),s=!0}else if(e===null){f=t.stateNode;var _=t.memoizedProps,A=Lr(a,_);f.props=A;var B=f.context,G=a.contextType;p=da,typeof G=="object"&&G!==null&&(p=pt(G));var F=a.getDerivedStateFromProps;G=typeof F=="function"||typeof f.getSnapshotBeforeUpdate=="function",_=t.pendingProps!==_,G||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(_||B!==p)&&v0(t,f,s,p),Kn=!1;var U=t.memoizedState;f.state=U,pi(t,s,f,o),mi(),B=t.memoizedState,_||U!==B||Kn?(typeof F=="function"&&(Iu(t,a,F,s),B=t.memoizedState),(A=Kn||y0(t,a,A,s,U,B,p))?(G||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=B),f.props=s,f.state=B,f.context=p,s=A):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{f=t.stateNode,Eu(e,t),p=t.memoizedProps,G=Lr(a,p),f.props=G,F=t.pendingProps,U=f.context,B=a.contextType,A=da,typeof B=="object"&&B!==null&&(A=pt(B)),_=a.getDerivedStateFromProps,(B=typeof _=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(p!==F||U!==A)&&v0(t,f,s,A),Kn=!1,U=t.memoizedState,f.state=U,pi(t,s,f,o),mi();var L=t.memoizedState;p!==F||U!==L||Kn||e!==null&&e.dependencies!==null&&Ds(e.dependencies)?(typeof _=="function"&&(Iu(t,a,_,s),L=t.memoizedState),(G=Kn||y0(t,a,G,s,U,L,A)||e!==null&&e.dependencies!==null&&Ds(e.dependencies))?(B||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(s,L,A),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(s,L,A)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||p===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=L),f.props=s,f.state=L,f.context=A,s=G):(typeof f.componentDidUpdate!="function"||p===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),s=!1)}return f=s,Ks(e,t),s=(t.flags&128)!==0,f||s?(f=t.stateNode,a=s&&typeof a.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&s?(t.child=Ta(t,e.child,null,o),t.child=Ta(t,null,a,o)):lt(e,t,a,o),t.memoizedState=f.state,e=t.child):e=Bn(e,t,o),e}function B0(e,t,a,s){return si(),t.flags|=256,lt(e,t,a,s),t.child}var Yu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Zu(e){return{baseLanes:e,cachePool:bm()}}function Xu(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Qt),e}function j0(e,t,a){var s=t.pendingProps,o=!1,f=(t.flags&128)!==0,p;if((p=f)||(p=e!==null&&e.memoizedState===null?!1:(et.current&2)!==0),p&&(o=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(Re){if(o?er(t):tr(),Re){var _=Fe,A;if(A=_){e:{for(A=_,_=fn;A.nodeType!==8;){if(!_){_=null;break e}if(A=nn(A.nextSibling),A===null){_=null;break e}}_=A}_!==null?(t.memoizedState={dehydrated:_,treeContext:Rr!==null?{id:wn,overflow:Rn}:null,retryLane:536870912,hydrationErrors:null},A=Nt(18,null,null,0),A.stateNode=_,A.return=t,t.child=A,yt=t,Fe=null,A=!0):A=!1}A||Dr(t)}if(_=t.memoizedState,_!==null&&(_=_.dehydrated,_!==null))return Dc(_)?t.lanes=32:t.lanes=536870912,null;Mn(t)}return _=s.children,s=s.fallback,o?(tr(),o=t.mode,_=$s({mode:"hidden",children:_},o),s=wr(s,o,a,null),_.return=t,s.return=t,_.sibling=s,t.child=_,o=t.child,o.memoizedState=Zu(a),o.childLanes=Xu(e,p,a),t.memoizedState=Yu,s):(er(t),Qu(t,_))}if(A=e.memoizedState,A!==null&&(_=A.dehydrated,_!==null)){if(f)t.flags&256?(er(t),t.flags&=-257,t=Ku(e,t,a)):t.memoizedState!==null?(tr(),t.child=e.child,t.flags|=128,t=null):(tr(),o=s.fallback,_=t.mode,s=$s({mode:"visible",children:s.children},_),o=wr(o,_,a,null),o.flags|=2,s.return=t,o.return=t,s.sibling=o,t.child=s,Ta(t,e.child,null,a),s=t.child,s.memoizedState=Zu(a),s.childLanes=Xu(e,p,a),t.memoizedState=Yu,t=o);else if(er(t),Dc(_)){if(p=_.nextSibling&&_.nextSibling.dataset,p)var B=p.dgst;p=B,s=Error(l(419)),s.stack="",s.digest=p,li({value:s,source:null,stack:null}),t=Ku(e,t,a)}else if(rt||oi(e,t,a,!1),p=(a&e.childLanes)!==0,rt||p){if(p=ze,p!==null&&(s=a&-a,s=(s&42)!==0?1:Mo(s),s=(s&(p.suspendedLanes|a))!==0?0:s,s!==0&&s!==A.retryLane))throw A.retryLane=s,ha(e,s),Ut(p,e,s),A0;_.data==="$?"||mc(),t=Ku(e,t,a)}else _.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=A.treeContext,Fe=nn(_.nextSibling),yt=t,Re=!0,Nr=null,fn=!1,e!==null&&(Yt[Zt++]=wn,Yt[Zt++]=Rn,Yt[Zt++]=Rr,wn=e.id,Rn=e.overflow,Rr=t),t=Qu(t,s.children),t.flags|=4096);return t}return o?(tr(),o=s.fallback,_=t.mode,A=e.child,B=A.sibling,s=On(A,{mode:"hidden",children:s.children}),s.subtreeFlags=A.subtreeFlags&65011712,B!==null?o=On(B,o):(o=wr(o,_,a,null),o.flags|=2),o.return=t,s.return=t,s.sibling=o,t.child=s,s=o,o=t.child,_=e.child.memoizedState,_===null?_=Zu(a):(A=_.cachePool,A!==null?(B=We._currentValue,A=A.parent!==B?{parent:B,pool:B}:A):A=bm(),_={baseLanes:_.baseLanes|a,cachePool:A}),o.memoizedState=_,o.childLanes=Xu(e,p,a),t.memoizedState=Yu,s):(er(t),a=e.child,e=a.sibling,a=On(a,{mode:"visible",children:s.children}),a.return=t,a.sibling=null,e!==null&&(p=t.deletions,p===null?(t.deletions=[e],t.flags|=16):p.push(e)),t.child=a,t.memoizedState=null,a)}function Qu(e,t){return t=$s({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function $s(e,t){return e=Nt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Ku(e,t,a){return Ta(t,e.child,null,a),e=Qu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function U0(e,t,a){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),mu(e.return,t,a)}function $u(e,t,a,s,o){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:a,tailMode:o}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=s,f.tail=a,f.tailMode=o)}function L0(e,t,a){var s=t.pendingProps,o=s.revealOrder,f=s.tail;if(lt(e,t,s.children,a),s=et.current,(s&2)!==0)s=s&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&U0(e,a,t);else if(e.tag===19)U0(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}switch(Z(et,s),o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&Zs(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),$u(t,!1,o,a,f);break;case"backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Zs(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}$u(t,!0,a,null,f);break;case"together":$u(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Bn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),sr|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(oi(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(l(153));if(t.child!==null){for(e=t.child,a=On(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=On(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Ju(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ds(e)))}function vE(e,t,a){switch(t.tag){case 3:He(t,t.stateNode.containerInfo),Qn(t,We,e.memoizedState.cache),si();break;case 27:case 5:Er(t);break;case 4:He(t,t.stateNode.containerInfo);break;case 10:Qn(t,t.type,t.memoizedProps.value);break;case 13:var s=t.memoizedState;if(s!==null)return s.dehydrated!==null?(er(t),t.flags|=128,null):(a&t.child.childLanes)!==0?j0(e,t,a):(er(t),e=Bn(e,t,a),e!==null?e.sibling:null);er(t);break;case 19:var o=(e.flags&128)!==0;if(s=(a&t.childLanes)!==0,s||(oi(e,t,a,!1),s=(a&t.childLanes)!==0),o){if(s)return L0(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Z(et,et.current),s)break;return null;case 22:case 23:return t.lanes=0,C0(e,t,a);case 24:Qn(t,We,e.memoizedState.cache)}return Bn(e,t,a)}function H0(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)rt=!0;else{if(!Ju(e,a)&&(t.flags&128)===0)return rt=!1,vE(e,t,a);rt=(e.flags&131072)!==0}else rt=!1,Re&&(t.flags&1048576)!==0&&dm(t,Ns,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var s=t.elementType,o=s._init;if(s=o(s._payload),t.type=s,typeof s=="function")lu(s)?(e=Lr(s,e),t.tag=1,t=M0(null,t,s,e,a)):(t.tag=0,t=Pu(null,t,s,e,a));else{if(s!=null){if(o=s.$$typeof,o===w){t.tag=11,t=O0(null,t,s,e,a);break e}else if(o===Y){t.tag=14,t=w0(null,t,s,e,a);break e}}throw t=Ye(s)||s,Error(l(306,t,""))}}return t;case 0:return Pu(e,t,t.type,t.pendingProps,a);case 1:return s=t.type,o=Lr(s,t.pendingProps),M0(e,t,s,o,a);case 3:e:{if(He(t,t.stateNode.containerInfo),e===null)throw Error(l(387));s=t.pendingProps;var f=t.memoizedState;o=f.element,Eu(e,t),pi(t,s,null,a);var p=t.memoizedState;if(s=p.cache,Qn(t,We,s),s!==f.cache&&pu(t,[We],a,!0),mi(),s=p.element,f.isDehydrated)if(f={element:s,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=B0(e,t,s,a);break e}else if(s!==o){o=Vt(Error(l(424)),t),li(o),t=B0(e,t,s,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Fe=nn(e.firstChild),yt=t,Re=!0,Nr=null,fn=!0,a=p0(t,null,s,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(si(),s===o){t=Bn(e,t,a);break e}lt(e,t,s,a)}t=t.child}return t;case 26:return Ks(e,t),e===null?(a=qp(t.type,null,t.pendingProps,null))?t.memoizedState=a:Re||(a=t.type,e=t.pendingProps,s=fl(ue.current).createElement(a),s[mt]=t,s[bt]=e,ut(s,a,e),nt(s),t.stateNode=s):t.memoizedState=qp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Er(t),e===null&&Re&&(s=t.stateNode=zp(t.type,t.pendingProps,ue.current),yt=t,fn=!0,o=Fe,cr(t.type)?(Mc=o,Fe=nn(s.firstChild)):Fe=o),lt(e,t,t.pendingProps.children,a),Ks(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Re&&((o=s=Fe)&&(s=YE(s,t.type,t.pendingProps,fn),s!==null?(t.stateNode=s,yt=t,Fe=nn(s.firstChild),fn=!1,o=!0):o=!1),o||Dr(t)),Er(t),o=t.type,f=t.pendingProps,p=e!==null?e.memoizedProps:null,s=f.children,Rc(o,f)?s=null:p!==null&&Rc(o,p)&&(t.flags|=32),t.memoizedState!==null&&(o=wu(e,t,cE,null,null,a),Hi._currentValue=o),Ks(e,t),lt(e,t,s,a),t.child;case 6:return e===null&&Re&&((e=a=Fe)&&(a=ZE(a,t.pendingProps,fn),a!==null?(t.stateNode=a,yt=t,Fe=null,e=!0):e=!1),e||Dr(t)),null;case 13:return j0(e,t,a);case 4:return He(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Ta(t,null,s,a):lt(e,t,s,a),t.child;case 11:return O0(e,t,t.type,t.pendingProps,a);case 7:return lt(e,t,t.pendingProps,a),t.child;case 8:return lt(e,t,t.pendingProps.children,a),t.child;case 12:return lt(e,t,t.pendingProps.children,a),t.child;case 10:return s=t.pendingProps,Qn(t,t.type,s.value),lt(e,t,s.children,a),t.child;case 9:return o=t.type._context,s=t.pendingProps.children,Br(t),o=pt(o),s=s(o),t.flags|=1,lt(e,t,s,a),t.child;case 14:return w0(e,t,t.type,t.pendingProps,a);case 15:return R0(e,t,t.type,t.pendingProps,a);case 19:return L0(e,t,a);case 31:return s=t.pendingProps,a=t.mode,s={mode:s.mode,children:s.children},e===null?(a=$s(s,a),a.ref=t.ref,t.child=a,a.return=t,t=a):(a=On(e.child,s),a.ref=t.ref,t.child=a,a.return=t,t=a),t;case 22:return C0(e,t,a);case 24:return Br(t),s=pt(We),e===null?(o=vu(),o===null&&(o=ze,f=gu(),o.pooledCache=f,f.refCount++,f!==null&&(o.pooledCacheLanes|=a),o=f),t.memoizedState={parent:s,cache:o},bu(t),Qn(t,We,o)):((e.lanes&a)!==0&&(Eu(e,t),pi(t,null,null,a),mi()),o=e.memoizedState,f=t.memoizedState,o.parent!==s?(o={parent:s,cache:s},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Qn(t,We,s)):(s=f.cache,Qn(t,We,s),s!==o.cache&&pu(t,[We],a,!0))),lt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function jn(e){e.flags|=4}function z0(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Yp(t)){if(t=Xt.current,t!==null&&((Ae&4194048)===Ae?hn!==null:(Ae&62914560)!==Ae&&(Ae&536870912)===0||t!==hn))throw hi=_u,Em;e.flags|=8192}}function Js(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?gd():536870912,e.lanes|=t,wa|=t)}function Si(e,t){if(!Re)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,s=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,s|=o.subtreeFlags&65011712,s|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,s|=o.subtreeFlags,s|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=s,e.childLanes=a,t}function _E(e,t,a){var s=t.pendingProps;switch(fu(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(t),null;case 1:return qe(t),null;case 3:return a=t.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),Nn(We),Ot(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(ii(t)?jn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,gm())),qe(t),null;case 26:return a=t.memoizedState,e===null?(jn(t),a!==null?(qe(t),z0(t,a)):(qe(t),t.flags&=-16777217)):a?a!==e.memoizedState?(jn(t),qe(t),z0(t,a)):(qe(t),t.flags&=-16777217):(e.memoizedProps!==s&&jn(t),qe(t),t.flags&=-16777217),null;case 27:Va(t),a=ue.current;var o=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==s&&jn(t);else{if(!s){if(t.stateNode===null)throw Error(l(166));return qe(t),null}e=ne.current,ii(t)?mm(t):(e=zp(o,s,a),t.stateNode=e,jn(t))}return qe(t),null;case 5:if(Va(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&jn(t);else{if(!s){if(t.stateNode===null)throw Error(l(166));return qe(t),null}if(e=ne.current,ii(t))mm(t);else{switch(o=fl(ue.current),e){case 1:e=o.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=o.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof s.is=="string"?o.createElement("select",{is:s.is}):o.createElement("select"),s.multiple?e.multiple=!0:s.size&&(e.size=s.size);break;default:e=typeof s.is=="string"?o.createElement(a,{is:s.is}):o.createElement(a)}}e[mt]=t,e[bt]=s;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=e;e:switch(ut(e,a,s),a){case"button":case"input":case"select":case"textarea":e=!!s.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&jn(t)}}return qe(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&jn(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(l(166));if(e=ue.current,ii(t)){if(e=t.stateNode,a=t.memoizedProps,s=null,o=yt,o!==null)switch(o.tag){case 27:case 5:s=o.memoizedProps}e[mt]=t,e=!!(e.nodeValue===a||s!==null&&s.suppressHydrationWarning===!0||Dp(e.nodeValue,a)),e||Dr(t)}else e=fl(e).createTextNode(s),e[mt]=t,t.stateNode=e}return qe(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=ii(t),s!==null&&s.dehydrated!==null){if(e===null){if(!o)throw Error(l(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(l(317));o[mt]=t}else si(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),o=!1}else o=gm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Mn(t),t):(Mn(t),null)}if(Mn(t),(t.flags&128)!==0)return t.lanes=a,t;if(a=s!==null,e=e!==null&&e.memoizedState!==null,a){s=t.child,o=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(o=s.alternate.memoizedState.cachePool.pool);var f=null;s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(f=s.memoizedState.cachePool.pool),f!==o&&(s.flags|=2048)}return a!==e&&a&&(t.child.flags|=8192),Js(t,t.updateQueue),qe(t),null;case 4:return Ot(),e===null&&Tc(t.stateNode.containerInfo),qe(t),null;case 10:return Nn(t.type),qe(t),null;case 19:if(K(et),o=t.memoizedState,o===null)return qe(t),null;if(s=(t.flags&128)!==0,f=o.rendering,f===null)if(s)Si(o,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=Zs(e),f!==null){for(t.flags|=128,Si(o,!1),e=f.updateQueue,t.updateQueue=e,Js(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)hm(a,e),a=a.sibling;return Z(et,et.current&1|2),t.child}e=e.sibling}o.tail!==null&&cn()>tl&&(t.flags|=128,s=!0,Si(o,!1),t.lanes=4194304)}else{if(!s)if(e=Zs(f),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Js(t,e),Si(o,!0),o.tail===null&&o.tailMode==="hidden"&&!f.alternate&&!Re)return qe(t),null}else 2*cn()-o.renderingStartTime>tl&&a!==536870912&&(t.flags|=128,s=!0,Si(o,!1),t.lanes=4194304);o.isBackwards?(f.sibling=t.child,t.child=f):(e=o.last,e!==null?e.sibling=f:t.child=f,o.last=f)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=cn(),t.sibling=null,e=et.current,Z(et,s?e&1|2:e&1),t):(qe(t),null);case 22:case 23:return Mn(t),Au(),s=t.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(t.flags|=8192):s&&(t.flags|=8192),s?(a&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),a=t.updateQueue,a!==null&&Js(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),s=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),s!==a&&(t.flags|=2048),e!==null&&K(jr),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Nn(We),qe(t),null;case 25:return null;case 30:return null}throw Error(l(156,t.tag))}function bE(e,t){switch(fu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Nn(We),Ot(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Va(t),null;case 13:if(Mn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));si()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return K(et),null;case 4:return Ot(),null;case 10:return Nn(t.type),null;case 22:case 23:return Mn(t),Au(),e!==null&&K(jr),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Nn(We),null;case 25:return null;default:return null}}function k0(e,t){switch(fu(t),t.tag){case 3:Nn(We),Ot();break;case 26:case 27:case 5:Va(t);break;case 4:Ot();break;case 13:Mn(t);break;case 19:K(et);break;case 10:Nn(t.type);break;case 22:case 23:Mn(t),Au(),e!==null&&K(jr);break;case 24:Nn(We)}}function Ti(e,t){try{var a=t.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var o=s.next;a=o;do{if((a.tag&e)===e){s=void 0;var f=a.create,p=a.inst;s=f(),p.destroy=s}a=a.next}while(a!==o)}}catch(_){Le(t,t.return,_)}}function nr(e,t,a){try{var s=t.updateQueue,o=s!==null?s.lastEffect:null;if(o!==null){var f=o.next;s=f;do{if((s.tag&e)===e){var p=s.inst,_=p.destroy;if(_!==void 0){p.destroy=void 0,o=t;var A=a,B=_;try{B()}catch(G){Le(o,A,G)}}}s=s.next}while(s!==f)}}catch(G){Le(t,t.return,G)}}function G0(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{wm(t,a)}catch(s){Le(e,e.return,s)}}}function q0(e,t,a){a.props=Lr(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(s){Le(e,t,s)}}function xi(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof a=="function"?e.refCleanup=a(s):a.current=s}}catch(o){Le(e,t,o)}}function dn(e,t){var a=e.ref,s=e.refCleanup;if(a!==null)if(typeof s=="function")try{s()}catch(o){Le(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){Le(e,t,o)}else a.current=null}function I0(e){var t=e.type,a=e.memoizedProps,s=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&s.focus();break e;case"img":a.src?s.src=a.src:a.srcSet&&(s.srcset=a.srcSet)}}catch(o){Le(e,e.return,o)}}function Wu(e,t,a){try{var s=e.stateNode;qE(s,e.type,a,t),s[bt]=t}catch(o){Le(e,e.return,o)}}function F0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&cr(e.type)||e.tag===4}function ec(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||F0(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&&cr(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 tc(e,t,a){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=cl));else if(s!==4&&(s===27&&cr(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(tc(e,t,a),e=e.sibling;e!==null;)tc(e,t,a),e=e.sibling}function Ws(e,t,a){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(s!==4&&(s===27&&cr(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Ws(e,t,a),e=e.sibling;e!==null;)Ws(e,t,a),e=e.sibling}function V0(e){var t=e.stateNode,a=e.memoizedProps;try{for(var s=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);ut(t,s,a),t[mt]=e,t[bt]=a}catch(f){Le(e,e.return,f)}}var Un=!1,Xe=!1,nc=!1,P0=typeof WeakSet=="function"?WeakSet:Set,at=null;function EE(e,t){if(e=e.containerInfo,Oc=yl,e=nm(e),eu(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var s=a.getSelection&&a.getSelection();if(s&&s.rangeCount!==0){a=s.anchorNode;var o=s.anchorOffset,f=s.focusNode;s=s.focusOffset;try{a.nodeType,f.nodeType}catch{a=null;break e}var p=0,_=-1,A=-1,B=0,G=0,F=e,U=null;t:for(;;){for(var L;F!==a||o!==0&&F.nodeType!==3||(_=p+o),F!==f||s!==0&&F.nodeType!==3||(A=p+s),F.nodeType===3&&(p+=F.nodeValue.length),(L=F.firstChild)!==null;)U=F,F=L;for(;;){if(F===e)break t;if(U===a&&++B===o&&(_=p),U===f&&++G===s&&(A=p),(L=F.nextSibling)!==null)break;F=U,U=F.parentNode}F=L}a=_===-1||A===-1?null:{start:_,end:A}}else a=null}a=a||{start:0,end:0}}else a=null;for(wc={focusedElem:e,selectionRange:a},yl=!1,at=t;at!==null;)if(t=at,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,at=e;else for(;at!==null;){switch(t=at,f=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,a=t,o=f.memoizedProps,f=f.memoizedState,s=a.stateNode;try{var fe=Lr(a.type,o,a.elementType===a.type);e=s.getSnapshotBeforeUpdate(fe,f),s.__reactInternalSnapshotBeforeUpdate=e}catch(oe){Le(a,a.return,oe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Nc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Nc(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(l(163))}if(e=t.sibling,e!==null){e.return=t.return,at=e;break}at=t.return}}function Y0(e,t,a){var s=a.flags;switch(a.tag){case 0:case 11:case 15:rr(e,a),s&4&&Ti(5,a);break;case 1:if(rr(e,a),s&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(p){Le(a,a.return,p)}else{var o=Lr(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){Le(a,a.return,p)}}s&64&&G0(a),s&512&&xi(a,a.return);break;case 3:if(rr(e,a),s&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{wm(e,t)}catch(p){Le(a,a.return,p)}}break;case 27:t===null&&s&4&&V0(a);case 26:case 5:rr(e,a),t===null&&s&4&&I0(a),s&512&&xi(a,a.return);break;case 12:rr(e,a);break;case 13:rr(e,a),s&4&&Q0(e,a),s&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=NE.bind(null,a),XE(e,a))));break;case 22:if(s=a.memoizedState!==null||Un,!s){t=t!==null&&t.memoizedState!==null||Xe,o=Un;var f=Xe;Un=s,(Xe=t)&&!f?ar(e,a,(a.subtreeFlags&8772)!==0):rr(e,a),Un=o,Xe=f}break;case 30:break;default:rr(e,a)}}function Z0(e){var t=e.alternate;t!==null&&(e.alternate=null,Z0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Uo(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ge=null,Tt=!1;function Ln(e,t,a){for(a=a.child;a!==null;)X0(e,t,a),a=a.sibling}function X0(e,t,a){if(wt&&typeof wt.onCommitFiberUnmount=="function")try{wt.onCommitFiberUnmount(Pa,a)}catch{}switch(a.tag){case 26:Xe||dn(a,t),Ln(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Xe||dn(a,t);var s=Ge,o=Tt;cr(a.type)&&(Ge=a.stateNode,Tt=!1),Ln(e,t,a),Bi(a.stateNode),Ge=s,Tt=o;break;case 5:Xe||dn(a,t);case 6:if(s=Ge,o=Tt,Ge=null,Ln(e,t,a),Ge=s,Tt=o,Ge!==null)if(Tt)try{(Ge.nodeType===9?Ge.body:Ge.nodeName==="HTML"?Ge.ownerDocument.body:Ge).removeChild(a.stateNode)}catch(f){Le(a,t,f)}else try{Ge.removeChild(a.stateNode)}catch(f){Le(a,t,f)}break;case 18:Ge!==null&&(Tt?(e=Ge,Lp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),qi(e)):Lp(Ge,a.stateNode));break;case 4:s=Ge,o=Tt,Ge=a.stateNode.containerInfo,Tt=!0,Ln(e,t,a),Ge=s,Tt=o;break;case 0:case 11:case 14:case 15:Xe||nr(2,a,t),Xe||nr(4,a,t),Ln(e,t,a);break;case 1:Xe||(dn(a,t),s=a.stateNode,typeof s.componentWillUnmount=="function"&&q0(a,t,s)),Ln(e,t,a);break;case 21:Ln(e,t,a);break;case 22:Xe=(s=Xe)||a.memoizedState!==null,Ln(e,t,a),Xe=s;break;default:Ln(e,t,a)}}function Q0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{qi(e)}catch(a){Le(t,t.return,a)}}function SE(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new P0),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new P0),t;default:throw Error(l(435,e.tag))}}function rc(e,t){var a=SE(e);t.forEach(function(s){var o=DE.bind(null,e,s);a.has(s)||(a.add(s),s.then(o,o))})}function Dt(e,t){var a=t.deletions;if(a!==null)for(var s=0;s<a.length;s++){var o=a[s],f=e,p=t,_=p;e:for(;_!==null;){switch(_.tag){case 27:if(cr(_.type)){Ge=_.stateNode,Tt=!1;break e}break;case 5:Ge=_.stateNode,Tt=!1;break e;case 3:case 4:Ge=_.stateNode.containerInfo,Tt=!0;break e}_=_.return}if(Ge===null)throw Error(l(160));X0(f,p,o),Ge=null,Tt=!1,f=o.alternate,f!==null&&(f.return=null),o.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)K0(t,e),t=t.sibling}var tn=null;function K0(e,t){var a=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Dt(t,e),Mt(e),s&4&&(nr(3,e,e.return),Ti(3,e),nr(5,e,e.return));break;case 1:Dt(t,e),Mt(e),s&512&&(Xe||a===null||dn(a,a.return)),s&64&&Un&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?s:a.concat(s))));break;case 26:var o=tn;if(Dt(t,e),Mt(e),s&512&&(Xe||a===null||dn(a,a.return)),s&4){var f=a!==null?a.memoizedState:null;if(s=e.memoizedState,a===null)if(s===null)if(e.stateNode===null){e:{s=e.type,a=e.memoizedProps,o=o.ownerDocument||o;t:switch(s){case"title":f=o.getElementsByTagName("title")[0],(!f||f[Xa]||f[mt]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=o.createElement(s),o.head.insertBefore(f,o.querySelector("head > title"))),ut(f,s,a),f[mt]=e,nt(f),s=f;break e;case"link":var p=Vp("link","href",o).get(s+(a.href||""));if(p){for(var _=0;_<p.length;_++)if(f=p[_],f.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&f.getAttribute("rel")===(a.rel==null?null:a.rel)&&f.getAttribute("title")===(a.title==null?null:a.title)&&f.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){p.splice(_,1);break t}}f=o.createElement(s),ut(f,s,a),o.head.appendChild(f);break;case"meta":if(p=Vp("meta","content",o).get(s+(a.content||""))){for(_=0;_<p.length;_++)if(f=p[_],f.getAttribute("content")===(a.content==null?null:""+a.content)&&f.getAttribute("name")===(a.name==null?null:a.name)&&f.getAttribute("property")===(a.property==null?null:a.property)&&f.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&f.getAttribute("charset")===(a.charSet==null?null:a.charSet)){p.splice(_,1);break t}}f=o.createElement(s),ut(f,s,a),o.head.appendChild(f);break;default:throw Error(l(468,s))}f[mt]=e,nt(f),s=f}e.stateNode=s}else Pp(o,e.type,e.stateNode);else e.stateNode=Fp(o,s,e.memoizedProps);else f!==s?(f===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):f.count--,s===null?Pp(o,e.type,e.stateNode):Fp(o,s,e.memoizedProps)):s===null&&e.stateNode!==null&&Wu(e,e.memoizedProps,a.memoizedProps)}break;case 27:Dt(t,e),Mt(e),s&512&&(Xe||a===null||dn(a,a.return)),a!==null&&s&4&&Wu(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Dt(t,e),Mt(e),s&512&&(Xe||a===null||dn(a,a.return)),e.flags&32){o=e.stateNode;try{ia(o,"")}catch(L){Le(e,e.return,L)}}s&4&&e.stateNode!=null&&(o=e.memoizedProps,Wu(e,o,a!==null?a.memoizedProps:o)),s&1024&&(nc=!0);break;case 6:if(Dt(t,e),Mt(e),s&4){if(e.stateNode===null)throw Error(l(162));s=e.memoizedProps,a=e.stateNode;try{a.nodeValue=s}catch(L){Le(e,e.return,L)}}break;case 3:if(ml=null,o=tn,tn=hl(t.containerInfo),Dt(t,e),tn=o,Mt(e),s&4&&a!==null&&a.memoizedState.isDehydrated)try{qi(t.containerInfo)}catch(L){Le(e,e.return,L)}nc&&(nc=!1,$0(e));break;case 4:s=tn,tn=hl(e.stateNode.containerInfo),Dt(t,e),Mt(e),tn=s;break;case 12:Dt(t,e),Mt(e);break;case 13:Dt(t,e),Mt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(uc=cn()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,rc(e,s)));break;case 22:o=e.memoizedState!==null;var A=a!==null&&a.memoizedState!==null,B=Un,G=Xe;if(Un=B||o,Xe=G||A,Dt(t,e),Xe=G,Un=B,Mt(e),s&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(a===null||A||Un||Xe||Hr(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){A=a=t;try{if(f=A.stateNode,o)p=f.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{_=A.stateNode;var F=A.memoizedProps.style,U=F!=null&&F.hasOwnProperty("display")?F.display:null;_.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(L){Le(A,A.return,L)}}}else if(t.tag===6){if(a===null){A=t;try{A.stateNode.nodeValue=o?"":A.memoizedProps}catch(L){Le(A,A.return,L)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}s&4&&(s=e.updateQueue,s!==null&&(a=s.retryQueue,a!==null&&(s.retryQueue=null,rc(e,a))));break;case 19:Dt(t,e),Mt(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,rc(e,s)));break;case 30:break;case 21:break;default:Dt(t,e),Mt(e)}}function Mt(e){var t=e.flags;if(t&2){try{for(var a,s=e.return;s!==null;){if(F0(s)){a=s;break}s=s.return}if(a==null)throw Error(l(160));switch(a.tag){case 27:var o=a.stateNode,f=ec(e);Ws(e,f,o);break;case 5:var p=a.stateNode;a.flags&32&&(ia(p,""),a.flags&=-33);var _=ec(e);Ws(e,_,p);break;case 3:case 4:var A=a.stateNode.containerInfo,B=ec(e);tc(e,B,A);break;default:throw Error(l(161))}}catch(G){Le(e,e.return,G)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function $0(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;$0(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function rr(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Y0(e,t.alternate,t),t=t.sibling}function Hr(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:nr(4,t,t.return),Hr(t);break;case 1:dn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&q0(t,t.return,a),Hr(t);break;case 27:Bi(t.stateNode);case 26:case 5:dn(t,t.return),Hr(t);break;case 22:t.memoizedState===null&&Hr(t);break;case 30:Hr(t);break;default:Hr(t)}e=e.sibling}}function ar(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var s=t.alternate,o=e,f=t,p=f.flags;switch(f.tag){case 0:case 11:case 15:ar(o,f,a),Ti(4,f);break;case 1:if(ar(o,f,a),s=f,o=s.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(B){Le(s,s.return,B)}if(s=f,o=s.updateQueue,o!==null){var _=s.stateNode;try{var A=o.shared.hiddenCallbacks;if(A!==null)for(o.shared.hiddenCallbacks=null,o=0;o<A.length;o++)Om(A[o],_)}catch(B){Le(s,s.return,B)}}a&&p&64&&G0(f),xi(f,f.return);break;case 27:V0(f);case 26:case 5:ar(o,f,a),a&&s===null&&p&4&&I0(f),xi(f,f.return);break;case 12:ar(o,f,a);break;case 13:ar(o,f,a),a&&p&4&&Q0(o,f);break;case 22:f.memoizedState===null&&ar(o,f,a),xi(f,f.return);break;case 30:break;default:ar(o,f,a)}t=t.sibling}}function ac(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&ui(a))}function ic(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ui(e))}function mn(e,t,a,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)J0(e,t,a,s),t=t.sibling}function J0(e,t,a,s){var o=t.flags;switch(t.tag){case 0:case 11:case 15:mn(e,t,a,s),o&2048&&Ti(9,t);break;case 1:mn(e,t,a,s);break;case 3:mn(e,t,a,s),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ui(e)));break;case 12:if(o&2048){mn(e,t,a,s),e=t.stateNode;try{var f=t.memoizedProps,p=f.id,_=f.onPostCommit;typeof _=="function"&&_(p,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(A){Le(t,t.return,A)}}else mn(e,t,a,s);break;case 13:mn(e,t,a,s);break;case 23:break;case 22:f=t.stateNode,p=t.alternate,t.memoizedState!==null?f._visibility&2?mn(e,t,a,s):Ai(e,t):f._visibility&2?mn(e,t,a,s):(f._visibility|=2,xa(e,t,a,s,(t.subtreeFlags&10256)!==0)),o&2048&&ac(p,t);break;case 24:mn(e,t,a,s),o&2048&&ic(t.alternate,t);break;default:mn(e,t,a,s)}}function xa(e,t,a,s,o){for(o=o&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var f=e,p=t,_=a,A=s,B=p.flags;switch(p.tag){case 0:case 11:case 15:xa(f,p,_,A,o),Ti(8,p);break;case 23:break;case 22:var G=p.stateNode;p.memoizedState!==null?G._visibility&2?xa(f,p,_,A,o):Ai(f,p):(G._visibility|=2,xa(f,p,_,A,o)),o&&B&2048&&ac(p.alternate,p);break;case 24:xa(f,p,_,A,o),o&&B&2048&&ic(p.alternate,p);break;default:xa(f,p,_,A,o)}t=t.sibling}}function Ai(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,s=t,o=s.flags;switch(s.tag){case 22:Ai(a,s),o&2048&&ac(s.alternate,s);break;case 24:Ai(a,s),o&2048&&ic(s.alternate,s);break;default:Ai(a,s)}t=t.sibling}}var Oi=8192;function Aa(e){if(e.subtreeFlags&Oi)for(e=e.child;e!==null;)W0(e),e=e.sibling}function W0(e){switch(e.tag){case 26:Aa(e),e.flags&Oi&&e.memoizedState!==null&&l2(tn,e.memoizedState,e.memoizedProps);break;case 5:Aa(e);break;case 3:case 4:var t=tn;tn=hl(e.stateNode.containerInfo),Aa(e),tn=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Oi,Oi=16777216,Aa(e),Oi=t):Aa(e));break;default:Aa(e)}}function ep(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function wi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var s=t[a];at=s,np(s,e)}ep(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)tp(e),e=e.sibling}function tp(e){switch(e.tag){case 0:case 11:case 15:wi(e),e.flags&2048&&nr(9,e,e.return);break;case 3:wi(e);break;case 12:wi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,el(e)):wi(e);break;default:wi(e)}}function el(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var s=t[a];at=s,np(s,e)}ep(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:nr(8,t,t.return),el(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,el(t));break;default:el(t)}e=e.sibling}}function np(e,t){for(;at!==null;){var a=at;switch(a.tag){case 0:case 11:case 15:nr(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var s=a.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:ui(a.memoizedState.cache)}if(s=a.child,s!==null)s.return=a,at=s;else e:for(a=e;at!==null;){s=at;var o=s.sibling,f=s.return;if(Z0(s),s===a){at=null;break e}if(o!==null){o.return=f,at=o;break e}at=f}}}var TE={getCacheForType:function(e){var t=pt(We),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a}},xE=typeof WeakMap=="function"?WeakMap:Map,Ne=0,ze=null,_e=null,Ae=0,De=0,Bt=null,ir=!1,Oa=!1,sc=!1,Hn=0,Ve=0,sr=0,zr=0,lc=0,Qt=0,wa=0,Ri=null,xt=null,oc=!1,uc=0,tl=1/0,nl=null,lr=null,ot=0,or=null,Ra=null,Ca=0,cc=0,fc=null,rp=null,Ci=0,hc=null;function jt(){if((Ne&2)!==0&&Ae!==0)return Ae&-Ae;if(k.T!==null){var e=ga;return e!==0?e:_c()}return _d()}function ap(){Qt===0&&(Qt=(Ae&536870912)===0||Re?pd():536870912);var e=Xt.current;return e!==null&&(e.flags|=32),Qt}function Ut(e,t,a){(e===ze&&(De===2||De===9)||e.cancelPendingCommit!==null)&&(Na(e,0),ur(e,Ae,Qt,!1)),Za(e,a),((Ne&2)===0||e!==ze)&&(e===ze&&((Ne&2)===0&&(zr|=a),Ve===4&&ur(e,Ae,Qt,!1)),pn(e))}function ip(e,t,a){if((Ne&6)!==0)throw Error(l(327));var s=!a&&(t&124)===0&&(t&e.expiredLanes)===0||Ya(e,t),o=s?wE(e,t):pc(e,t,!0),f=s;do{if(o===0){Oa&&!s&&ur(e,t,0,!1);break}else{if(a=e.current.alternate,f&&!AE(a)){o=pc(e,t,!1),f=!1;continue}if(o===2){if(f=t,e.errorRecoveryDisabledLanes&f)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){t=p;e:{var _=e;o=Ri;var A=_.current.memoizedState.isDehydrated;if(A&&(Na(_,p).flags|=256),p=pc(_,p,!1),p!==2){if(sc&&!A){_.errorRecoveryDisabledLanes|=f,zr|=f,o=4;break e}f=xt,xt=o,f!==null&&(xt===null?xt=f:xt.push.apply(xt,f))}o=p}if(f=!1,o!==2)continue}}if(o===1){Na(e,0),ur(e,t,0,!0);break}e:{switch(s=e,f=o,f){case 0:case 1:throw Error(l(345));case 4:if((t&4194048)!==t)break;case 6:ur(s,t,Qt,!ir);break e;case 2:xt=null;break;case 3:case 5:break;default:throw Error(l(329))}if((t&62914560)===t&&(o=uc+300-cn(),10<o)){if(ur(s,t,Qt,!ir),ds(s,0,!0)!==0)break e;s.timeoutHandle=jp(sp.bind(null,s,a,xt,nl,oc,t,Qt,zr,wa,ir,f,2,-0,0),o);break e}sp(s,a,xt,nl,oc,t,Qt,zr,wa,ir,f,0,-0,0)}}break}while(!0);pn(e)}function sp(e,t,a,s,o,f,p,_,A,B,G,F,U,L){if(e.timeoutHandle=-1,F=t.subtreeFlags,(F&8192||(F&16785408)===16785408)&&(Li={stylesheets:null,count:0,unsuspend:s2},W0(t),F=o2(),F!==null)){e.cancelPendingCommit=F(dp.bind(null,e,t,f,a,s,o,p,_,A,G,1,U,L)),ur(e,f,p,!B);return}dp(e,t,f,a,s,o,p,_,A)}function AE(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var s=0;s<a.length;s++){var o=a[s],f=o.getSnapshot;o=o.value;try{if(!Ct(f(),o))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ur(e,t,a,s){t&=~lc,t&=~zr,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var o=t;0<o;){var f=31-Rt(o),p=1<<f;s[f]=-1,o&=~p}a!==0&&yd(e,a,t)}function rl(){return(Ne&6)===0?(Ni(0),!1):!0}function dc(){if(_e!==null){if(De===0)var e=_e.return;else e=_e,Cn=Mr=null,Nu(e),Sa=null,bi=0,e=_e;for(;e!==null;)k0(e.alternate,e),e=e.return;_e=null}}function Na(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,FE(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),dc(),ze=e,_e=a=On(e.current,null),Ae=t,De=0,Bt=null,ir=!1,Oa=Ya(e,t),sc=!1,wa=Qt=lc=zr=sr=Ve=0,xt=Ri=null,oc=!1,(t&8)!==0&&(t|=t&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=t;0<s;){var o=31-Rt(s),f=1<<o;t|=e[o],s&=~f}return Hn=t,As(),a}function lp(e,t){ge=null,k.H=Vs,t===fi||t===js?(t=xm(),De=3):t===Em?(t=xm(),De=4):De=t===A0?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Bt=t,_e===null&&(Ve=1,Qs(e,Vt(t,e.current)))}function op(){var e=k.H;return k.H=Vs,e===null?Vs:e}function up(){var e=k.A;return k.A=TE,e}function mc(){Ve=4,ir||(Ae&4194048)!==Ae&&Xt.current!==null||(Oa=!0),(sr&134217727)===0&&(zr&134217727)===0||ze===null||ur(ze,Ae,Qt,!1)}function pc(e,t,a){var s=Ne;Ne|=2;var o=op(),f=up();(ze!==e||Ae!==t)&&(nl=null,Na(e,t)),t=!1;var p=Ve;e:do try{if(De!==0&&_e!==null){var _=_e,A=Bt;switch(De){case 8:dc(),p=6;break e;case 3:case 2:case 9:case 6:Xt.current===null&&(t=!0);var B=De;if(De=0,Bt=null,Da(e,_,A,B),a&&Oa){p=0;break e}break;default:B=De,De=0,Bt=null,Da(e,_,A,B)}}OE(),p=Ve;break}catch(G){lp(e,G)}while(!0);return t&&e.shellSuspendCounter++,Cn=Mr=null,Ne=s,k.H=o,k.A=f,_e===null&&(ze=null,Ae=0,As()),p}function OE(){for(;_e!==null;)cp(_e)}function wE(e,t){var a=Ne;Ne|=2;var s=op(),o=up();ze!==e||Ae!==t?(nl=null,tl=cn()+500,Na(e,t)):Oa=Ya(e,t);e:do try{if(De!==0&&_e!==null){t=_e;var f=Bt;t:switch(De){case 1:De=0,Bt=null,Da(e,t,f,1);break;case 2:case 9:if(Sm(f)){De=0,Bt=null,fp(t);break}t=function(){De!==2&&De!==9||ze!==e||(De=7),pn(e)},f.then(t,t);break e;case 3:De=7;break e;case 4:De=5;break e;case 7:Sm(f)?(De=0,Bt=null,fp(t)):(De=0,Bt=null,Da(e,t,f,7));break;case 5:var p=null;switch(_e.tag){case 26:p=_e.memoizedState;case 5:case 27:var _=_e;if(!p||Yp(p)){De=0,Bt=null;var A=_.sibling;if(A!==null)_e=A;else{var B=_.return;B!==null?(_e=B,al(B)):_e=null}break t}}De=0,Bt=null,Da(e,t,f,5);break;case 6:De=0,Bt=null,Da(e,t,f,6);break;case 8:dc(),Ve=6;break e;default:throw Error(l(462))}}RE();break}catch(G){lp(e,G)}while(!0);return Cn=Mr=null,k.H=s,k.A=o,Ne=a,_e!==null?0:(ze=null,Ae=0,As(),Ve)}function RE(){for(;_e!==null&&!Kb();)cp(_e)}function cp(e){var t=H0(e.alternate,e,Hn);e.memoizedProps=e.pendingProps,t===null?al(e):_e=t}function fp(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=D0(a,t,t.pendingProps,t.type,void 0,Ae);break;case 11:t=D0(a,t,t.pendingProps,t.type.render,t.ref,Ae);break;case 5:Nu(t);default:k0(a,t),t=_e=hm(t,Hn),t=H0(a,t,Hn)}e.memoizedProps=e.pendingProps,t===null?al(e):_e=t}function Da(e,t,a,s){Cn=Mr=null,Nu(t),Sa=null,bi=0;var o=t.return;try{if(yE(e,o,t,a,Ae)){Ve=1,Qs(e,Vt(a,e.current)),_e=null;return}}catch(f){if(o!==null)throw _e=o,f;Ve=1,Qs(e,Vt(a,e.current)),_e=null;return}t.flags&32768?(Re||s===1?e=!0:Oa||(Ae&536870912)!==0?e=!1:(ir=e=!0,(s===2||s===9||s===3||s===6)&&(s=Xt.current,s!==null&&s.tag===13&&(s.flags|=16384))),hp(t,e)):al(t)}function al(e){var t=e;do{if((t.flags&32768)!==0){hp(t,ir);return}e=t.return;var a=_E(t.alternate,t,Hn);if(a!==null){_e=a;return}if(t=t.sibling,t!==null){_e=t;return}_e=t=e}while(t!==null);Ve===0&&(Ve=5)}function hp(e,t){do{var a=bE(e.alternate,e);if(a!==null){a.flags&=32767,_e=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){_e=e;return}_e=e=a}while(e!==null);Ve=6,_e=null}function dp(e,t,a,s,o,f,p,_,A){e.cancelPendingCommit=null;do il();while(ot!==0);if((Ne&6)!==0)throw Error(l(327));if(t!==null){if(t===e.current)throw Error(l(177));if(f=t.lanes|t.childLanes,f|=iu,s1(e,a,f,p,_,A),e===ze&&(_e=ze=null,Ae=0),Ra=t,or=e,Ca=a,cc=f,fc=o,rp=s,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,ME(cs,function(){return vp(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||s){s=k.T,k.T=null,o=Q.p,Q.p=2,p=Ne,Ne|=4;try{EE(e,t,a)}finally{Ne=p,Q.p=o,k.T=s}}ot=1,mp(),pp(),gp()}}function mp(){if(ot===1){ot=0;var e=or,t=Ra,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=k.T,k.T=null;var s=Q.p;Q.p=2;var o=Ne;Ne|=4;try{K0(t,e);var f=wc,p=nm(e.containerInfo),_=f.focusedElem,A=f.selectionRange;if(p!==_&&_&&_.ownerDocument&&tm(_.ownerDocument.documentElement,_)){if(A!==null&&eu(_)){var B=A.start,G=A.end;if(G===void 0&&(G=B),"selectionStart"in _)_.selectionStart=B,_.selectionEnd=Math.min(G,_.value.length);else{var F=_.ownerDocument||document,U=F&&F.defaultView||window;if(U.getSelection){var L=U.getSelection(),fe=_.textContent.length,oe=Math.min(A.start,fe),Ue=A.end===void 0?oe:Math.min(A.end,fe);!L.extend&&oe>Ue&&(p=Ue,Ue=oe,oe=p);var N=em(_,oe),C=em(_,Ue);if(N&&C&&(L.rangeCount!==1||L.anchorNode!==N.node||L.anchorOffset!==N.offset||L.focusNode!==C.node||L.focusOffset!==C.offset)){var D=F.createRange();D.setStart(N.node,N.offset),L.removeAllRanges(),oe>Ue?(L.addRange(D),L.extend(C.node,C.offset)):(D.setEnd(C.node,C.offset),L.addRange(D))}}}}for(F=[],L=_;L=L.parentNode;)L.nodeType===1&&F.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<F.length;_++){var I=F[_];I.element.scrollLeft=I.left,I.element.scrollTop=I.top}}yl=!!Oc,wc=Oc=null}finally{Ne=o,Q.p=s,k.T=a}}e.current=t,ot=2}}function pp(){if(ot===2){ot=0;var e=or,t=Ra,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=k.T,k.T=null;var s=Q.p;Q.p=2;var o=Ne;Ne|=4;try{Y0(e,t.alternate,t)}finally{Ne=o,Q.p=s,k.T=a}}ot=3}}function gp(){if(ot===4||ot===3){ot=0,$b();var e=or,t=Ra,a=Ca,s=rp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ot=5:(ot=0,Ra=or=null,yp(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(lr=null),Bo(a),t=t.stateNode,wt&&typeof wt.onCommitFiberRoot=="function")try{wt.onCommitFiberRoot(Pa,t,void 0,(t.current.flags&128)===128)}catch{}if(s!==null){t=k.T,o=Q.p,Q.p=2,k.T=null;try{for(var f=e.onRecoverableError,p=0;p<s.length;p++){var _=s[p];f(_.value,{componentStack:_.stack})}}finally{k.T=t,Q.p=o}}(Ca&3)!==0&&il(),pn(e),o=e.pendingLanes,(a&4194090)!==0&&(o&42)!==0?e===hc?Ci++:(Ci=0,hc=e):Ci=0,Ni(0)}}function yp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ui(t)))}function il(e){return mp(),pp(),gp(),vp()}function vp(){if(ot!==5)return!1;var e=or,t=cc;cc=0;var a=Bo(Ca),s=k.T,o=Q.p;try{Q.p=32>a?32:a,k.T=null,a=fc,fc=null;var f=or,p=Ca;if(ot=0,Ra=or=null,Ca=0,(Ne&6)!==0)throw Error(l(331));var _=Ne;if(Ne|=4,tp(f.current),J0(f,f.current,p,a),Ne=_,Ni(0,!1),wt&&typeof wt.onPostCommitFiberRoot=="function")try{wt.onPostCommitFiberRoot(Pa,f)}catch{}return!0}finally{Q.p=o,k.T=s,yp(e,t)}}function _p(e,t,a){t=Vt(a,t),t=Vu(e.stateNode,t,2),e=Jn(e,t,2),e!==null&&(Za(e,2),pn(e))}function Le(e,t,a){if(e.tag===3)_p(e,e,a);else for(;t!==null;){if(t.tag===3){_p(t,e,a);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(lr===null||!lr.has(s))){e=Vt(a,e),a=T0(2),s=Jn(t,a,2),s!==null&&(x0(a,s,t,e),Za(s,2),pn(s));break}}t=t.return}}function gc(e,t,a){var s=e.pingCache;if(s===null){s=e.pingCache=new xE;var o=new Set;s.set(t,o)}else o=s.get(t),o===void 0&&(o=new Set,s.set(t,o));o.has(a)||(sc=!0,o.add(a),e=CE.bind(null,e,t,a),t.then(e,e))}function CE(e,t,a){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,ze===e&&(Ae&a)===a&&(Ve===4||Ve===3&&(Ae&62914560)===Ae&&300>cn()-uc?(Ne&2)===0&&Na(e,0):lc|=a,wa===Ae&&(wa=0)),pn(e)}function bp(e,t){t===0&&(t=gd()),e=ha(e,t),e!==null&&(Za(e,t),pn(e))}function NE(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),bp(e,a)}function DE(e,t){var a=0;switch(e.tag){case 13:var s=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(l(314))}s!==null&&s.delete(t),bp(e,a)}function ME(e,t){return Tn(e,t)}var sl=null,Ma=null,yc=!1,ll=!1,vc=!1,kr=0;function pn(e){e!==Ma&&e.next===null&&(Ma===null?sl=Ma=e:Ma=Ma.next=e),ll=!0,yc||(yc=!0,jE())}function Ni(e,t){if(!vc&&ll){vc=!0;do for(var a=!1,s=sl;s!==null;){if(e!==0){var o=s.pendingLanes;if(o===0)var f=0;else{var p=s.suspendedLanes,_=s.pingedLanes;f=(1<<31-Rt(42|e)+1)-1,f&=o&~(p&~_),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(a=!0,xp(s,f))}else f=Ae,f=ds(s,s===ze?f:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(f&3)===0||Ya(s,f)||(a=!0,xp(s,f));s=s.next}while(a);vc=!1}}function BE(){Ep()}function Ep(){ll=yc=!1;var e=0;kr!==0&&(IE()&&(e=kr),kr=0);for(var t=cn(),a=null,s=sl;s!==null;){var o=s.next,f=Sp(s,t);f===0?(s.next=null,a===null?sl=o:a.next=o,o===null&&(Ma=a)):(a=s,(e!==0||(f&3)!==0)&&(ll=!0)),s=o}Ni(e)}function Sp(e,t){for(var a=e.suspendedLanes,s=e.pingedLanes,o=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var p=31-Rt(f),_=1<<p,A=o[p];A===-1?((_&a)===0||(_&s)!==0)&&(o[p]=i1(_,t)):A<=t&&(e.expiredLanes|=_),f&=~_}if(t=ze,a=Ae,a=ds(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,a===0||e===t&&(De===2||De===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&No(s),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Ya(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(s!==null&&No(s),Bo(a)){case 2:case 8:a=dd;break;case 32:a=cs;break;case 268435456:a=md;break;default:a=cs}return s=Tp.bind(null,e),a=Tn(a,s),e.callbackPriority=t,e.callbackNode=a,t}return s!==null&&s!==null&&No(s),e.callbackPriority=2,e.callbackNode=null,2}function Tp(e,t){if(ot!==0&&ot!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(il()&&e.callbackNode!==a)return null;var s=Ae;return s=ds(e,e===ze?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(ip(e,s,t),Sp(e,cn()),e.callbackNode!=null&&e.callbackNode===a?Tp.bind(null,e):null)}function xp(e,t){if(il())return null;ip(e,t,!0)}function jE(){VE(function(){(Ne&6)!==0?Tn(hd,BE):Ep()})}function _c(){return kr===0&&(kr=pd()),kr}function Ap(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:vs(""+e)}function Op(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function UE(e,t,a,s,o){if(t==="submit"&&a&&a.stateNode===o){var f=Ap((o[bt]||null).action),p=s.submitter;p&&(t=(t=p[bt]||null)?Ap(t.formAction):p.getAttribute("formAction"),t!==null&&(f=t,p=null));var _=new Ss("action","action",null,s,o);e.push({event:_,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(kr!==0){var A=p?Op(o,p):new FormData(o);ku(a,{pending:!0,data:A,method:o.method,action:f},null,A)}}else typeof f=="function"&&(_.preventDefault(),A=p?Op(o,p):new FormData(o),ku(a,{pending:!0,data:A,method:o.method,action:f},f,A))},currentTarget:o}]})}}for(var bc=0;bc<au.length;bc++){var Ec=au[bc],LE=Ec.toLowerCase(),HE=Ec[0].toUpperCase()+Ec.slice(1);en(LE,"on"+HE)}en(im,"onAnimationEnd"),en(sm,"onAnimationIteration"),en(lm,"onAnimationStart"),en("dblclick","onDoubleClick"),en("focusin","onFocus"),en("focusout","onBlur"),en(eE,"onTransitionRun"),en(tE,"onTransitionStart"),en(nE,"onTransitionCancel"),en(om,"onTransitionEnd"),na("onMouseEnter",["mouseout","mouseover"]),na("onMouseLeave",["mouseout","mouseover"]),na("onPointerEnter",["pointerout","pointerover"]),na("onPointerLeave",["pointerout","pointerover"]),Tr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Tr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Tr("onBeforeInput",["compositionend","keypress","textInput","paste"]),Tr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Tr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Tr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Di="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(" "),zE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Di));function wp(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var s=e[a],o=s.event;s=s.listeners;e:{var f=void 0;if(t)for(var p=s.length-1;0<=p;p--){var _=s[p],A=_.instance,B=_.currentTarget;if(_=_.listener,A!==f&&o.isPropagationStopped())break e;f=_,o.currentTarget=B;try{f(o)}catch(G){Xs(G)}o.currentTarget=null,f=A}else for(p=0;p<s.length;p++){if(_=s[p],A=_.instance,B=_.currentTarget,_=_.listener,A!==f&&o.isPropagationStopped())break e;f=_,o.currentTarget=B;try{f(o)}catch(G){Xs(G)}o.currentTarget=null,f=A}}}}function be(e,t){var a=t[jo];a===void 0&&(a=t[jo]=new Set);var s=e+"__bubble";a.has(s)||(Rp(t,e,2,!1),a.add(s))}function Sc(e,t,a){var s=0;t&&(s|=4),Rp(a,e,s,t)}var ol="_reactListening"+Math.random().toString(36).slice(2);function Tc(e){if(!e[ol]){e[ol]=!0,Ed.forEach(function(a){a!=="selectionchange"&&(zE.has(a)||Sc(a,!1,e),Sc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ol]||(t[ol]=!0,Sc("selectionchange",!1,t))}}function Rp(e,t,a,s){switch(Jp(t)){case 2:var o=f2;break;case 8:o=h2;break;default:o=Hc}a=o.bind(null,t,a,e),o=void 0,!Po||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),s?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function xc(e,t,a,s,o){var f=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var p=s.tag;if(p===3||p===4){var _=s.stateNode.containerInfo;if(_===o)break;if(p===4)for(p=s.return;p!==null;){var A=p.tag;if((A===3||A===4)&&p.stateNode.containerInfo===o)return;p=p.return}for(;_!==null;){if(p=Wr(_),p===null)return;if(A=p.tag,A===5||A===6||A===26||A===27){s=f=p;continue e}_=_.parentNode}}s=s.return}Ud(function(){var B=f,G=Fo(a),F=[];e:{var U=um.get(e);if(U!==void 0){var L=Ss,fe=e;switch(e){case"keypress":if(bs(a)===0)break e;case"keydown":case"keyup":L=M1;break;case"focusin":fe="focus",L=Qo;break;case"focusout":fe="blur",L=Qo;break;case"beforeblur":case"afterblur":L=Qo;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":L=zd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=b1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=U1;break;case im:case sm:case lm:L=T1;break;case om:L=H1;break;case"scroll":case"scrollend":L=v1;break;case"wheel":L=k1;break;case"copy":case"cut":case"paste":L=A1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=Gd;break;case"toggle":case"beforetoggle":L=q1}var oe=(t&4)!==0,Ue=!oe&&(e==="scroll"||e==="scrollend"),N=oe?U!==null?U+"Capture":null:U;oe=[];for(var C=B,D;C!==null;){var I=C;if(D=I.stateNode,I=I.tag,I!==5&&I!==26&&I!==27||D===null||N===null||(I=Ka(C,N),I!=null&&oe.push(Mi(C,I,D))),Ue)break;C=C.return}0<oe.length&&(U=new L(U,fe,null,a,G),F.push({event:U,listeners:oe}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",L=e==="mouseout"||e==="pointerout",U&&a!==Io&&(fe=a.relatedTarget||a.fromElement)&&(Wr(fe)||fe[Jr]))break e;if((L||U)&&(U=G.window===G?G:(U=G.ownerDocument)?U.defaultView||U.parentWindow:window,L?(fe=a.relatedTarget||a.toElement,L=B,fe=fe?Wr(fe):null,fe!==null&&(Ue=c(fe),oe=fe.tag,fe!==Ue||oe!==5&&oe!==27&&oe!==6)&&(fe=null)):(L=null,fe=B),L!==fe)){if(oe=zd,I="onMouseLeave",N="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(oe=Gd,I="onPointerLeave",N="onPointerEnter",C="pointer"),Ue=L==null?U:Qa(L),D=fe==null?U:Qa(fe),U=new oe(I,C+"leave",L,a,G),U.target=Ue,U.relatedTarget=D,I=null,Wr(G)===B&&(oe=new oe(N,C+"enter",fe,a,G),oe.target=D,oe.relatedTarget=Ue,I=oe),Ue=I,L&&fe)t:{for(oe=L,N=fe,C=0,D=oe;D;D=Ba(D))C++;for(D=0,I=N;I;I=Ba(I))D++;for(;0<C-D;)oe=Ba(oe),C--;for(;0<D-C;)N=Ba(N),D--;for(;C--;){if(oe===N||N!==null&&oe===N.alternate)break t;oe=Ba(oe),N=Ba(N)}oe=null}else oe=null;L!==null&&Cp(F,U,L,oe,!1),fe!==null&&Ue!==null&&Cp(F,Ue,fe,oe,!0)}}e:{if(U=B?Qa(B):window,L=U.nodeName&&U.nodeName.toLowerCase(),L==="select"||L==="input"&&U.type==="file")var ee=Xd;else if(Yd(U))if(Qd)ee=$1;else{ee=Q1;var ve=X1}else L=U.nodeName,!L||L.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?B&&qo(B.elementType)&&(ee=Xd):ee=K1;if(ee&&(ee=ee(e,B))){Zd(F,ee,a,G);break e}ve&&ve(e,U,B),e==="focusout"&&B&&U.type==="number"&&B.memoizedProps.value!=null&&Go(U,"number",U.value)}switch(ve=B?Qa(B):window,e){case"focusin":(Yd(ve)||ve.contentEditable==="true")&&(ua=ve,tu=B,ai=null);break;case"focusout":ai=tu=ua=null;break;case"mousedown":nu=!0;break;case"contextmenu":case"mouseup":case"dragend":nu=!1,rm(F,a,G);break;case"selectionchange":if(W1)break;case"keydown":case"keyup":rm(F,a,G)}var ae;if($o)e:{switch(e){case"compositionstart":var ce="onCompositionStart";break e;case"compositionend":ce="onCompositionEnd";break e;case"compositionupdate":ce="onCompositionUpdate";break e}ce=void 0}else oa?Vd(e,a)&&(ce="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ce="onCompositionStart");ce&&(qd&&a.locale!=="ko"&&(oa||ce!=="onCompositionStart"?ce==="onCompositionEnd"&&oa&&(ae=Ld()):(Xn=G,Yo="value"in Xn?Xn.value:Xn.textContent,oa=!0)),ve=ul(B,ce),0<ve.length&&(ce=new kd(ce,e,null,a,G),F.push({event:ce,listeners:ve}),ae?ce.data=ae:(ae=Pd(a),ae!==null&&(ce.data=ae)))),(ae=F1?V1(e,a):P1(e,a))&&(ce=ul(B,"onBeforeInput"),0<ce.length&&(ve=new kd("onBeforeInput","beforeinput",null,a,G),F.push({event:ve,listeners:ce}),ve.data=ae)),UE(F,e,B,a,G)}wp(F,t)})}function Mi(e,t,a){return{instance:e,listener:t,currentTarget:a}}function ul(e,t){for(var a=t+"Capture",s=[];e!==null;){var o=e,f=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||f===null||(o=Ka(e,a),o!=null&&s.unshift(Mi(e,o,f)),o=Ka(e,t),o!=null&&s.push(Mi(e,o,f))),e.tag===3)return s;e=e.return}return[]}function Ba(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Cp(e,t,a,s,o){for(var f=t._reactName,p=[];a!==null&&a!==s;){var _=a,A=_.alternate,B=_.stateNode;if(_=_.tag,A!==null&&A===s)break;_!==5&&_!==26&&_!==27||B===null||(A=B,o?(B=Ka(a,f),B!=null&&p.unshift(Mi(a,B,A))):o||(B=Ka(a,f),B!=null&&p.push(Mi(a,B,A)))),a=a.return}p.length!==0&&e.push({event:t,listeners:p})}var kE=/\r\n?/g,GE=/\u0000|\uFFFD/g;function Np(e){return(typeof e=="string"?e:""+e).replace(kE,`
49
- `).replace(GE,"")}function Dp(e,t){return t=Np(t),Np(e)===t}function cl(){}function je(e,t,a,s,o,f){switch(a){case"children":typeof s=="string"?t==="body"||t==="textarea"&&s===""||ia(e,s):(typeof s=="number"||typeof s=="bigint")&&t!=="body"&&ia(e,""+s);break;case"className":ps(e,"class",s);break;case"tabIndex":ps(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":ps(e,a,s);break;case"style":Bd(e,s,f);break;case"data":if(t!=="object"){ps(e,"data",s);break}case"src":case"href":if(s===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(a);break}s=vs(""+s),e.setAttribute(a,s);break;case"action":case"formAction":if(typeof s=="function"){e.setAttribute(a,"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 f=="function"&&(a==="formAction"?(t!=="input"&&je(e,t,"name",o.name,o,null),je(e,t,"formEncType",o.formEncType,o,null),je(e,t,"formMethod",o.formMethod,o,null),je(e,t,"formTarget",o.formTarget,o,null)):(je(e,t,"encType",o.encType,o,null),je(e,t,"method",o.method,o,null),je(e,t,"target",o.target,o,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(a);break}s=vs(""+s),e.setAttribute(a,s);break;case"onClick":s!=null&&(e.onclick=cl);break;case"onScroll":s!=null&&be("scroll",e);break;case"onScrollEnd":s!=null&&be("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(l(61));if(a=s.__html,a!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=a}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}a=vs(""+s),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,""+s):e.removeAttribute(a);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":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":s===!0?e.setAttribute(a,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,s):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(a,s):e.removeAttribute(a);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(a):e.setAttribute(a,s);break;case"popover":be("beforetoggle",e),be("toggle",e),ms(e,"popover",s);break;case"xlinkActuate":xn(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":xn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":xn(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":xn(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":xn(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":xn(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":xn(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":xn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":xn(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":ms(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=g1.get(a)||a,ms(e,a,s))}}function Ac(e,t,a,s,o,f){switch(a){case"style":Bd(e,s,f);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(l(61));if(a=s.__html,a!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=a}}break;case"children":typeof s=="string"?ia(e,s):(typeof s=="number"||typeof s=="bigint")&&ia(e,""+s);break;case"onScroll":s!=null&&be("scroll",e);break;case"onScrollEnd":s!=null&&be("scrollend",e);break;case"onClick":s!=null&&(e.onclick=cl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Sd.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),t=a.slice(2,o?a.length-7:void 0),f=e[bt]||null,f=f!=null?f[a]:null,typeof f=="function"&&e.removeEventListener(t,f,o),typeof s=="function")){typeof f!="function"&&f!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,s,o);break e}a in e?e[a]=s:s===!0?e.setAttribute(a,""):ms(e,a,s)}}}function ut(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":be("error",e),be("load",e);var s=!1,o=!1,f;for(f in a)if(a.hasOwnProperty(f)){var p=a[f];if(p!=null)switch(f){case"src":s=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:je(e,t,f,p,a,null)}}o&&je(e,t,"srcSet",a.srcSet,a,null),s&&je(e,t,"src",a.src,a,null);return;case"input":be("invalid",e);var _=f=p=o=null,A=null,B=null;for(s in a)if(a.hasOwnProperty(s)){var G=a[s];if(G!=null)switch(s){case"name":o=G;break;case"type":p=G;break;case"checked":A=G;break;case"defaultChecked":B=G;break;case"value":f=G;break;case"defaultValue":_=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(l(137,t));break;default:je(e,t,s,G,a,null)}}Cd(e,f,_,A,B,p,o,!1),gs(e);return;case"select":be("invalid",e),s=p=f=null;for(o in a)if(a.hasOwnProperty(o)&&(_=a[o],_!=null))switch(o){case"value":f=_;break;case"defaultValue":p=_;break;case"multiple":s=_;default:je(e,t,o,_,a,null)}t=f,a=p,e.multiple=!!s,t!=null?aa(e,!!s,t,!1):a!=null&&aa(e,!!s,a,!0);return;case"textarea":be("invalid",e),f=o=s=null;for(p in a)if(a.hasOwnProperty(p)&&(_=a[p],_!=null))switch(p){case"value":s=_;break;case"defaultValue":o=_;break;case"children":f=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(l(91));break;default:je(e,t,p,_,a,null)}Dd(e,s,o,f),gs(e);return;case"option":for(A in a)if(a.hasOwnProperty(A)&&(s=a[A],s!=null))switch(A){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:je(e,t,A,s,a,null)}return;case"dialog":be("beforetoggle",e),be("toggle",e),be("cancel",e),be("close",e);break;case"iframe":case"object":be("load",e);break;case"video":case"audio":for(s=0;s<Di.length;s++)be(Di[s],e);break;case"image":be("error",e),be("load",e);break;case"details":be("toggle",e);break;case"embed":case"source":case"link":be("error",e),be("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(B in a)if(a.hasOwnProperty(B)&&(s=a[B],s!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:je(e,t,B,s,a,null)}return;default:if(qo(t)){for(G in a)a.hasOwnProperty(G)&&(s=a[G],s!==void 0&&Ac(e,t,G,s,a,void 0));return}}for(_ in a)a.hasOwnProperty(_)&&(s=a[_],s!=null&&je(e,t,_,s,a,null))}function qE(e,t,a,s){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,f=null,p=null,_=null,A=null,B=null,G=null;for(L in a){var F=a[L];if(a.hasOwnProperty(L)&&F!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":A=F;default:s.hasOwnProperty(L)||je(e,t,L,null,s,F)}}for(var U in s){var L=s[U];if(F=a[U],s.hasOwnProperty(U)&&(L!=null||F!=null))switch(U){case"type":f=L;break;case"name":o=L;break;case"checked":B=L;break;case"defaultChecked":G=L;break;case"value":p=L;break;case"defaultValue":_=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(l(137,t));break;default:L!==F&&je(e,t,U,L,s,F)}}ko(e,p,_,A,B,G,f,o);return;case"select":L=p=_=U=null;for(f in a)if(A=a[f],a.hasOwnProperty(f)&&A!=null)switch(f){case"value":break;case"multiple":L=A;default:s.hasOwnProperty(f)||je(e,t,f,null,s,A)}for(o in s)if(f=s[o],A=a[o],s.hasOwnProperty(o)&&(f!=null||A!=null))switch(o){case"value":U=f;break;case"defaultValue":_=f;break;case"multiple":p=f;default:f!==A&&je(e,t,o,f,s,A)}t=_,a=p,s=L,U!=null?aa(e,!!a,U,!1):!!s!=!!a&&(t!=null?aa(e,!!a,t,!0):aa(e,!!a,a?[]:"",!1));return;case"textarea":L=U=null;for(_ in a)if(o=a[_],a.hasOwnProperty(_)&&o!=null&&!s.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:je(e,t,_,null,s,o)}for(p in s)if(o=s[p],f=a[p],s.hasOwnProperty(p)&&(o!=null||f!=null))switch(p){case"value":U=o;break;case"defaultValue":L=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(l(91));break;default:o!==f&&je(e,t,p,o,s,f)}Nd(e,U,L);return;case"option":for(var fe in a)if(U=a[fe],a.hasOwnProperty(fe)&&U!=null&&!s.hasOwnProperty(fe))switch(fe){case"selected":e.selected=!1;break;default:je(e,t,fe,null,s,U)}for(A in s)if(U=s[A],L=a[A],s.hasOwnProperty(A)&&U!==L&&(U!=null||L!=null))switch(A){case"selected":e.selected=U&&typeof U!="function"&&typeof U!="symbol";break;default:je(e,t,A,U,s,L)}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 oe in a)U=a[oe],a.hasOwnProperty(oe)&&U!=null&&!s.hasOwnProperty(oe)&&je(e,t,oe,null,s,U);for(B in s)if(U=s[B],L=a[B],s.hasOwnProperty(B)&&U!==L&&(U!=null||L!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(l(137,t));break;default:je(e,t,B,U,s,L)}return;default:if(qo(t)){for(var Ue in a)U=a[Ue],a.hasOwnProperty(Ue)&&U!==void 0&&!s.hasOwnProperty(Ue)&&Ac(e,t,Ue,void 0,s,U);for(G in s)U=s[G],L=a[G],!s.hasOwnProperty(G)||U===L||U===void 0&&L===void 0||Ac(e,t,G,U,s,L);return}}for(var N in a)U=a[N],a.hasOwnProperty(N)&&U!=null&&!s.hasOwnProperty(N)&&je(e,t,N,null,s,U);for(F in s)U=s[F],L=a[F],!s.hasOwnProperty(F)||U===L||U==null&&L==null||je(e,t,F,U,s,L)}var Oc=null,wc=null;function fl(e){return e.nodeType===9?e:e.ownerDocument}function Mp(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 Bp(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Rc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Cc=null;function IE(){var e=window.event;return e&&e.type==="popstate"?e===Cc?!1:(Cc=e,!0):(Cc=null,!1)}var jp=typeof setTimeout=="function"?setTimeout:void 0,FE=typeof clearTimeout=="function"?clearTimeout:void 0,Up=typeof Promise=="function"?Promise:void 0,VE=typeof queueMicrotask=="function"?queueMicrotask:typeof Up<"u"?function(e){return Up.resolve(null).then(e).catch(PE)}:jp;function PE(e){setTimeout(function(){throw e})}function cr(e){return e==="head"}function Lp(e,t){var a=t,s=0,o=0;do{var f=a.nextSibling;if(e.removeChild(a),f&&f.nodeType===8)if(a=f.data,a==="/$"){if(0<s&&8>s){a=s;var p=e.ownerDocument;if(a&1&&Bi(p.documentElement),a&2&&Bi(p.body),a&4)for(a=p.head,Bi(a),p=a.firstChild;p;){var _=p.nextSibling,A=p.nodeName;p[Xa]||A==="SCRIPT"||A==="STYLE"||A==="LINK"&&p.rel.toLowerCase()==="stylesheet"||a.removeChild(p),p=_}}if(o===0){e.removeChild(f),qi(t);return}o--}else a==="$"||a==="$?"||a==="$!"?o++:s=a.charCodeAt(0)-48;else s=0;a=f}while(a);qi(t)}function Nc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Nc(a),Uo(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function YE(e,t,a,s){for(;e.nodeType===1;){var o=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[Xa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=nn(e.nextSibling),e===null)break}return null}function ZE(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=nn(e.nextSibling),e===null))return null;return e}function Dc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function XE(e,t){var a=e.ownerDocument;if(e.data!=="$?"||a.readyState==="complete")t();else{var s=function(){t(),a.removeEventListener("DOMContentLoaded",s)};a.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function nn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var Mc=null;function Hp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(t===0)return e;t--}else a==="/$"&&t++}e=e.previousSibling}return null}function zp(e,t,a){switch(t=fl(a),e){case"html":if(e=t.documentElement,!e)throw Error(l(452));return e;case"head":if(e=t.head,!e)throw Error(l(453));return e;case"body":if(e=t.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function Bi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Uo(e)}var Kt=new Map,kp=new Set;function hl(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var zn=Q.d;Q.d={f:QE,r:KE,D:$E,C:JE,L:WE,m:e2,X:n2,S:t2,M:r2};function QE(){var e=zn.f(),t=rl();return e||t}function KE(e){var t=ea(e);t!==null&&t.tag===5&&t.type==="form"?i0(t):zn.r(e)}var ja=typeof document>"u"?null:document;function Gp(e,t,a){var s=ja;if(s&&typeof t=="string"&&t){var o=Ft(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),kp.has(o)||(kp.add(o),e={rel:e,crossOrigin:a,href:t},s.querySelector(o)===null&&(t=s.createElement("link"),ut(t,"link",e),nt(t),s.head.appendChild(t)))}}function $E(e){zn.D(e),Gp("dns-prefetch",e,null)}function JE(e,t){zn.C(e,t),Gp("preconnect",e,t)}function WE(e,t,a){zn.L(e,t,a);var s=ja;if(s&&e&&t){var o='link[rel="preload"][as="'+Ft(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+Ft(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+Ft(a.imageSizes)+'"]')):o+='[href="'+Ft(e)+'"]';var f=o;switch(t){case"style":f=Ua(e);break;case"script":f=La(e)}Kt.has(f)||(e=y({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Kt.set(f,e),s.querySelector(o)!==null||t==="style"&&s.querySelector(ji(f))||t==="script"&&s.querySelector(Ui(f))||(t=s.createElement("link"),ut(t,"link",e),nt(t),s.head.appendChild(t)))}}function e2(e,t){zn.m(e,t);var a=ja;if(a&&e){var s=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Ft(s)+'"][href="'+Ft(e)+'"]',f=o;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=La(e)}if(!Kt.has(f)&&(e=y({rel:"modulepreload",href:e},t),Kt.set(f,e),a.querySelector(o)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Ui(f)))return}s=a.createElement("link"),ut(s,"link",e),nt(s),a.head.appendChild(s)}}}function t2(e,t,a){zn.S(e,t,a);var s=ja;if(s&&e){var o=ta(s).hoistableStyles,f=Ua(e);t=t||"default";var p=o.get(f);if(!p){var _={loading:0,preload:null};if(p=s.querySelector(ji(f)))_.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Kt.get(f))&&Bc(e,a);var A=p=s.createElement("link");nt(A),ut(A,"link",e),A._p=new Promise(function(B,G){A.onload=B,A.onerror=G}),A.addEventListener("load",function(){_.loading|=1}),A.addEventListener("error",function(){_.loading|=2}),_.loading|=4,dl(p,t,s)}p={type:"stylesheet",instance:p,count:1,state:_},o.set(f,p)}}}function n2(e,t){zn.X(e,t);var a=ja;if(a&&e){var s=ta(a).hoistableScripts,o=La(e),f=s.get(o);f||(f=a.querySelector(Ui(o)),f||(e=y({src:e,async:!0},t),(t=Kt.get(o))&&jc(e,t),f=a.createElement("script"),nt(f),ut(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},s.set(o,f))}}function r2(e,t){zn.M(e,t);var a=ja;if(a&&e){var s=ta(a).hoistableScripts,o=La(e),f=s.get(o);f||(f=a.querySelector(Ui(o)),f||(e=y({src:e,async:!0,type:"module"},t),(t=Kt.get(o))&&jc(e,t),f=a.createElement("script"),nt(f),ut(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},s.set(o,f))}}function qp(e,t,a,s){var o=(o=ue.current)?hl(o):null;if(!o)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Ua(a.href),a=ta(o).hoistableStyles,s=a.get(t),s||(s={type:"style",instance:null,count:0,state:null},a.set(t,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Ua(a.href);var f=ta(o).hoistableStyles,p=f.get(e);if(p||(o=o.ownerDocument||o,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,p),(f=o.querySelector(ji(e)))&&!f._p&&(p.instance=f,p.state.loading=5),Kt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Kt.set(e,a),f||a2(o,e,a,p.state))),t&&s===null)throw Error(l(528,""));return p}if(t&&s!==null)throw Error(l(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=La(a),a=ta(o).hoistableScripts,s=a.get(t),s||(s={type:"script",instance:null,count:0,state:null},a.set(t,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function Ua(e){return'href="'+Ft(e)+'"'}function ji(e){return'link[rel="stylesheet"]['+e+"]"}function Ip(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function a2(e,t,a,s){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?s.loading=1:(t=e.createElement("link"),s.preload=t,t.addEventListener("load",function(){return s.loading|=1}),t.addEventListener("error",function(){return s.loading|=2}),ut(t,"link",a),nt(t),e.head.appendChild(t))}function La(e){return'[src="'+Ft(e)+'"]'}function Ui(e){return"script[async]"+e}function Fp(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+Ft(a.href)+'"]');if(s)return t.instance=s,nt(s),s;var o=y({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),nt(s),ut(s,"style",o),dl(s,a.precedence,e),t.instance=s;case"stylesheet":o=Ua(a.href);var f=e.querySelector(ji(o));if(f)return t.state.loading|=4,t.instance=f,nt(f),f;s=Ip(a),(o=Kt.get(o))&&Bc(s,o),f=(e.ownerDocument||e).createElement("link"),nt(f);var p=f;return p._p=new Promise(function(_,A){p.onload=_,p.onerror=A}),ut(f,"link",s),t.state.loading|=4,dl(f,a.precedence,e),t.instance=f;case"script":return f=La(a.src),(o=e.querySelector(Ui(f)))?(t.instance=o,nt(o),o):(s=a,(o=Kt.get(f))&&(s=y({},a),jc(s,o)),e=e.ownerDocument||e,o=e.createElement("script"),nt(o),ut(o,"link",s),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(l(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(s=t.instance,t.state.loading|=4,dl(s,a.precedence,e));return t.instance}function dl(e,t,a){for(var s=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=s.length?s[s.length-1]:null,f=o,p=0;p<s.length;p++){var _=s[p];if(_.dataset.precedence===t)f=_;else if(f!==o)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Bc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function jc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ml=null;function Vp(e,t,a){if(ml===null){var s=new Map,o=ml=new Map;o.set(a,s)}else o=ml,s=o.get(a),s||(s=new Map,o.set(a,s));if(s.has(e))return s;for(s.set(e,null),a=a.getElementsByTagName(e),o=0;o<a.length;o++){var f=a[o];if(!(f[Xa]||f[mt]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var p=f.getAttribute(t)||"";p=e+p;var _=s.get(p);_?_.push(f):s.set(p,[f])}}return s}function Pp(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function i2(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Yp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Li=null;function s2(){}function l2(e,t,a){if(Li===null)throw Error(l(475));var s=Li;if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var o=Ua(a.href),f=e.querySelector(ji(o));if(f){e=f._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(s.count++,s=pl.bind(s),e.then(s,s)),t.state.loading|=4,t.instance=f,nt(f);return}f=e.ownerDocument||e,a=Ip(a),(o=Kt.get(o))&&Bc(a,o),f=f.createElement("link"),nt(f);var p=f;p._p=new Promise(function(_,A){p.onload=_,p.onerror=A}),ut(f,"link",a),t.instance=f}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(s.count++,t=pl.bind(s),e.addEventListener("load",t),e.addEventListener("error",t))}}function o2(){if(Li===null)throw Error(l(475));var e=Li;return e.stylesheets&&e.count===0&&Uc(e,e.stylesheets),0<e.count?function(t){var a=setTimeout(function(){if(e.stylesheets&&Uc(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(a)}}:null}function pl(){if(this.count--,this.count===0){if(this.stylesheets)Uc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var gl=null;function Uc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,gl=new Map,t.forEach(u2,e),gl=null,pl.call(e))}function u2(e,t){if(!(t.state.loading&4)){var a=gl.get(e);if(a)var s=a.get(null);else{a=new Map,gl.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<o.length;f++){var p=o[f];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(a.set(p.dataset.precedence,p),s=p)}s&&a.set(null,s)}o=t.instance,p=o.getAttribute("data-precedence"),f=a.get(p)||s,f===s&&a.set(null,o),a.set(p,o),this.count++,s=pl.bind(this),o.addEventListener("load",s),o.addEventListener("error",s),f?f.parentNode.insertBefore(o,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Hi={$$typeof:b,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function c2(e,t,a,s,o,f,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=Do(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Do(0),this.hiddenUpdates=Do(null),this.identifierPrefix=s,this.onUncaughtError=o,this.onCaughtError=f,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map}function Zp(e,t,a,s,o,f,p,_,A,B,G,F){return e=new c2(e,t,a,p,_,A,B,F),t=1,f===!0&&(t|=24),f=Nt(3,null,null,t),e.current=f,f.stateNode=e,t=gu(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:s,isDehydrated:a,cache:t},bu(f),e}function Xp(e){return e?(e=da,e):da}function Qp(e,t,a,s,o,f){o=Xp(o),s.context===null?s.context=o:s.pendingContext=o,s=$n(t),s.payload={element:a},f=f===void 0?null:f,f!==null&&(s.callback=f),a=Jn(e,s,t),a!==null&&(Ut(a,e,t),di(a,e,t))}function Kp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Lc(e,t){Kp(e,t),(e=e.alternate)&&Kp(e,t)}function $p(e){if(e.tag===13){var t=ha(e,67108864);t!==null&&Ut(t,e,67108864),Lc(e,67108864)}}var yl=!0;function f2(e,t,a,s){var o=k.T;k.T=null;var f=Q.p;try{Q.p=2,Hc(e,t,a,s)}finally{Q.p=f,k.T=o}}function h2(e,t,a,s){var o=k.T;k.T=null;var f=Q.p;try{Q.p=8,Hc(e,t,a,s)}finally{Q.p=f,k.T=o}}function Hc(e,t,a,s){if(yl){var o=zc(s);if(o===null)xc(e,t,s,vl,a),Wp(e,s);else if(m2(o,e,t,a,s))s.stopPropagation();else if(Wp(e,s),t&4&&-1<d2.indexOf(e)){for(;o!==null;){var f=ea(o);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var p=Sr(f.pendingLanes);if(p!==0){var _=f;for(_.pendingLanes|=2,_.entangledLanes|=2;p;){var A=1<<31-Rt(p);_.entanglements[1]|=A,p&=~A}pn(f),(Ne&6)===0&&(tl=cn()+500,Ni(0))}}break;case 13:_=ha(f,2),_!==null&&Ut(_,f,2),rl(),Lc(f,2)}if(f=zc(s),f===null&&xc(e,t,s,vl,a),f===o)break;o=f}o!==null&&s.stopPropagation()}else xc(e,t,s,null,a)}}function zc(e){return e=Fo(e),kc(e)}var vl=null;function kc(e){if(vl=null,e=Wr(e),e!==null){var t=c(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=h(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return vl=e,null}function Jp(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(Jb()){case hd:return 2;case dd:return 8;case cs:case Wb:return 32;case md:return 268435456;default:return 32}default:return 32}}var Gc=!1,fr=null,hr=null,dr=null,zi=new Map,ki=new Map,mr=[],d2="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 Wp(e,t){switch(e){case"focusin":case"focusout":fr=null;break;case"dragenter":case"dragleave":hr=null;break;case"mouseover":case"mouseout":dr=null;break;case"pointerover":case"pointerout":zi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ki.delete(t.pointerId)}}function Gi(e,t,a,s,o,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:a,eventSystemFlags:s,nativeEvent:f,targetContainers:[o]},t!==null&&(t=ea(t),t!==null&&$p(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function m2(e,t,a,s,o){switch(t){case"focusin":return fr=Gi(fr,e,t,a,s,o),!0;case"dragenter":return hr=Gi(hr,e,t,a,s,o),!0;case"mouseover":return dr=Gi(dr,e,t,a,s,o),!0;case"pointerover":var f=o.pointerId;return zi.set(f,Gi(zi.get(f)||null,e,t,a,s,o)),!0;case"gotpointercapture":return f=o.pointerId,ki.set(f,Gi(ki.get(f)||null,e,t,a,s,o)),!0}return!1}function eg(e){var t=Wr(e.target);if(t!==null){var a=c(t);if(a!==null){if(t=a.tag,t===13){if(t=h(a),t!==null){e.blockedOn=t,l1(e.priority,function(){if(a.tag===13){var s=jt();s=Mo(s);var o=ha(a,s);o!==null&&Ut(o,a,s),Lc(a,s)}});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function _l(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=zc(e.nativeEvent);if(a===null){a=e.nativeEvent;var s=new a.constructor(a.type,a);Io=s,a.target.dispatchEvent(s),Io=null}else return t=ea(a),t!==null&&$p(t),e.blockedOn=a,!1;t.shift()}return!0}function tg(e,t,a){_l(e)&&a.delete(t)}function p2(){Gc=!1,fr!==null&&_l(fr)&&(fr=null),hr!==null&&_l(hr)&&(hr=null),dr!==null&&_l(dr)&&(dr=null),zi.forEach(tg),ki.forEach(tg)}function bl(e,t){e.blockedOn===t&&(e.blockedOn=null,Gc||(Gc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,p2)))}var El=null;function ng(e){El!==e&&(El=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){El===e&&(El=null);for(var t=0;t<e.length;t+=3){var a=e[t],s=e[t+1],o=e[t+2];if(typeof s!="function"){if(kc(s||a)===null)continue;break}var f=ea(a);f!==null&&(e.splice(t,3),t-=3,ku(f,{pending:!0,data:o,method:a.method,action:s},s,o))}}))}function qi(e){function t(A){return bl(A,e)}fr!==null&&bl(fr,e),hr!==null&&bl(hr,e),dr!==null&&bl(dr,e),zi.forEach(t),ki.forEach(t);for(var a=0;a<mr.length;a++){var s=mr[a];s.blockedOn===e&&(s.blockedOn=null)}for(;0<mr.length&&(a=mr[0],a.blockedOn===null);)eg(a),a.blockedOn===null&&mr.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(s=0;s<a.length;s+=3){var o=a[s],f=a[s+1],p=o[bt]||null;if(typeof f=="function")p||ng(a);else if(p){var _=null;if(f&&f.hasAttribute("formAction")){if(o=f,p=f[bt]||null)_=p.formAction;else if(kc(o)!==null)continue}else _=p.action;typeof _=="function"?a[s+1]=_:(a.splice(s,3),s-=3),ng(a)}}}function qc(e){this._internalRoot=e}Sl.prototype.render=qc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(l(409));var a=t.current,s=jt();Qp(a,s,e,t,null,null)},Sl.prototype.unmount=qc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Qp(e.current,2,null,e,null,null),rl(),t[Jr]=null}};function Sl(e){this._internalRoot=e}Sl.prototype.unstable_scheduleHydration=function(e){if(e){var t=_d();e={blockedOn:null,target:e,priority:t};for(var a=0;a<mr.length&&t!==0&&t<mr[a].priority;a++);mr.splice(a,0,e),a===0&&eg(e)}};var rg=r.version;if(rg!=="19.1.0")throw Error(l(527,rg,"19.1.0"));Q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=m(t),e=e!==null?g(e):null,e=e===null?null:e.stateNode,e};var g2={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Tl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Tl.isDisabled&&Tl.supportsFiber)try{Pa=Tl.inject(g2),wt=Tl}catch{}}return Fi.createRoot=function(e,t){if(!u(e))throw Error(l(299));var a=!1,s="",o=_0,f=b0,p=E0,_=null;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(_=t.unstable_transitionCallbacks)),t=Zp(e,1,!1,null,null,a,s,o,f,p,_,null),e[Jr]=t.current,Tc(e),new qc(t)},Fi.hydrateRoot=function(e,t,a){if(!u(e))throw Error(l(299));var s=!1,o="",f=_0,p=b0,_=E0,A=null,B=null;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(p=a.onCaughtError),a.onRecoverableError!==void 0&&(_=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(A=a.unstable_transitionCallbacks),a.formState!==void 0&&(B=a.formState)),t=Zp(e,1,!0,t,a??null,s,o,f,p,_,A,B),t.context=Xp(null),a=t.current,s=jt(),s=Mo(s),o=$n(s),o.callback=null,Jn(a,o,s),a=s,t.current.lanes=a,Za(t,a),pn(t),e[Jr]=t.current,Tc(e),new Sl(t)},Fi.version="19.1.0",Fi}var dg;function O2(){if(dg)return Fc.exports;dg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Fc.exports=A2(),Fc.exports}var w2=O2(),H=Ga();const Kv=po(H);var Xc={exports:{}},Qc={};/**
50
- * @license React
51
- * use-sync-external-store-with-selector.production.js
52
- *
53
- * Copyright (c) Meta Platforms, Inc. and affiliates.
54
- *
55
- * This source code is licensed under the MIT license found in the
56
- * LICENSE file in the root directory of this source tree.
57
- */var mg;function R2(){if(mg)return Qc;mg=1;var n=Ga();function r(m,g){return m===g&&(m!==0||1/m===1/g)||m!==m&&g!==g}var i=typeof Object.is=="function"?Object.is:r,l=n.useSyncExternalStore,u=n.useRef,c=n.useEffect,h=n.useMemo,d=n.useDebugValue;return Qc.useSyncExternalStoreWithSelector=function(m,g,y,T,O){var j=u(null);if(j.current===null){var M={hasValue:!1,value:null};j.current=M}else M=j.current;j=h(function(){function q(S){if(!E){if(E=!0,x=S,S=T(S),O!==void 0&&M.hasValue){var z=M.value;if(O(z,S))return b=z}return b=S}if(z=b,i(x,S))return z;var Y=T(S);return O!==void 0&&O(z,Y)?(x=S,z):(x=S,b=Y)}var E=!1,x,b,w=y===void 0?null:y;return[function(){return q(g())},w===null?void 0:function(){return q(w())}]},[g,y,T,O]);var V=l(m,j[0],j[1]);return c(function(){M.hasValue=!0,M.value=V},[V]),d(V),V},Qc}var pg;function C2(){return pg||(pg=1,Xc.exports=R2()),Xc.exports}var N2=C2(),D2=H.version.startsWith("19"),M2=Symbol.for(D2?"react.transitional.element":"react.element"),B2=Symbol.for("react.portal"),j2=Symbol.for("react.fragment"),U2=Symbol.for("react.strict_mode"),L2=Symbol.for("react.profiler"),H2=Symbol.for("react.consumer"),z2=Symbol.for("react.context"),$v=Symbol.for("react.forward_ref"),k2=Symbol.for("react.suspense"),G2=Symbol.for("react.suspense_list"),Rh=Symbol.for("react.memo"),q2=Symbol.for("react.lazy"),I2=$v,F2=Rh;function V2(n){if(typeof n=="object"&&n!==null){const{$$typeof:r}=n;switch(r){case M2:switch(n=n.type,n){case j2:case L2:case U2:case k2:case G2:return n;default:switch(n=n&&n.$$typeof,n){case z2:case $v:case q2:case Rh:return n;case H2:return n;default:return r}}case B2:return r}}}function P2(n){return V2(n)===Rh}function Y2(n,r,i,l,{areStatesEqual:u,areOwnPropsEqual:c,areStatePropsEqual:h}){let d=!1,m,g,y,T,O;function j(x,b){return m=x,g=b,y=n(m,g),T=r(l,g),O=i(y,T,g),d=!0,O}function M(){return y=n(m,g),r.dependsOnOwnProps&&(T=r(l,g)),O=i(y,T,g),O}function V(){return n.dependsOnOwnProps&&(y=n(m,g)),r.dependsOnOwnProps&&(T=r(l,g)),O=i(y,T,g),O}function q(){const x=n(m,g),b=!h(x,y);return y=x,b&&(O=i(y,T,g)),O}function E(x,b){const w=!c(b,g),S=!u(x,m,b,g);return m=x,g=b,w&&S?M():w?V():S?q():O}return function(b,w){return d?E(b,w):j(b,w)}}function Z2(n,{initMapStateToProps:r,initMapDispatchToProps:i,initMergeProps:l,...u}){const c=r(n,u),h=i(n,u),d=l(n,u);return Y2(c,h,d,n,u)}function X2(n,r){const i={};for(const l in n){const u=n[l];typeof u=="function"&&(i[l]=(...c)=>r(u(...c)))}return i}function Jf(n){return function(i){const l=n(i);function u(){return l}return u.dependsOnOwnProps=!1,u}}function gg(n){return n.dependsOnOwnProps?!!n.dependsOnOwnProps:n.length!==1}function Jv(n,r){return function(l,{displayName:u}){const c=function(d,m){return c.dependsOnOwnProps?c.mapToProps(d,m):c.mapToProps(d,void 0)};return c.dependsOnOwnProps=!0,c.mapToProps=function(d,m){c.mapToProps=n,c.dependsOnOwnProps=gg(n);let g=c(d,m);return typeof g=="function"&&(c.mapToProps=g,c.dependsOnOwnProps=gg(g),g=c(d,m)),g},c}}function Ch(n,r){return(i,l)=>{throw new Error(`Invalid value of type ${typeof n} for ${r} argument when connecting component ${l.wrappedComponentName}.`)}}function Q2(n){return n&&typeof n=="object"?Jf(r=>X2(n,r)):n?typeof n=="function"?Jv(n):Ch(n,"mapDispatchToProps"):Jf(r=>({dispatch:r}))}function K2(n){return n?typeof n=="function"?Jv(n):Ch(n,"mapStateToProps"):Jf(()=>({}))}function $2(n,r,i){return{...i,...n,...r}}function J2(n){return function(i,{displayName:l,areMergedPropsEqual:u}){let c=!1,h;return function(m,g,y){const T=n(m,g,y);return c?u(T,h)||(h=T):(c=!0,h=T),h}}}function W2(n){return n?typeof n=="function"?J2(n):Ch(n,"mergeProps"):()=>$2}function eS(n){n()}function tS(){let n=null,r=null;return{clear(){n=null,r=null},notify(){eS(()=>{let i=n;for(;i;)i.callback(),i=i.next})},get(){const i=[];let l=n;for(;l;)i.push(l),l=l.next;return i},subscribe(i){let l=!0;const u=r={callback:i,next:null,prev:r};return u.prev?u.prev.next=u:n=u,function(){!l||n===null||(l=!1,u.next?u.next.prev=u.prev:r=u.prev,u.prev?u.prev.next=u.next:n=u.next)}}}}var yg={notify(){},get:()=>[]};function Wv(n,r){let i,l=yg,u=0,c=!1;function h(V){y();const q=l.subscribe(V);let E=!1;return()=>{E||(E=!0,q(),T())}}function d(){l.notify()}function m(){M.onStateChange&&M.onStateChange()}function g(){return c}function y(){u++,i||(i=r?r.addNestedSub(m):n.subscribe(m),l=tS())}function T(){u--,i&&u===0&&(i(),i=void 0,l.clear(),l=yg)}function O(){c||(c=!0,y())}function j(){c&&(c=!1,T())}const M={addNestedSub:h,notifyNestedSubs:d,handleChangeWrapper:m,isSubscribed:g,trySubscribe:O,tryUnsubscribe:j,getListeners:()=>l};return M}var nS=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",rS=nS(),aS=()=>typeof navigator<"u"&&navigator.product==="ReactNative",iS=aS(),sS=()=>rS||iS?H.useLayoutEffect:H.useEffect,so=sS();function vg(n,r){return n===r?n!==0||r!==0||1/n===1/r:n!==n&&r!==r}function Kc(n,r){if(vg(n,r))return!0;if(typeof n!="object"||n===null||typeof r!="object"||r===null)return!1;const i=Object.keys(n),l=Object.keys(r);if(i.length!==l.length)return!1;for(let u=0;u<i.length;u++)if(!Object.prototype.hasOwnProperty.call(r,i[u])||!vg(n[i[u]],r[i[u]]))return!1;return!0}var lS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},oS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},uS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},e_={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},cS={[I2]:uS,[F2]:e_};function _g(n){return P2(n)?e_:cS[n.$$typeof]||lS}var fS=Object.defineProperty,hS=Object.getOwnPropertyNames,bg=Object.getOwnPropertySymbols,dS=Object.getOwnPropertyDescriptor,mS=Object.getPrototypeOf,Eg=Object.prototype;function Wf(n,r){if(typeof r!="string"){if(Eg){const c=mS(r);c&&c!==Eg&&Wf(n,c)}let i=hS(r);bg&&(i=i.concat(bg(r)));const l=_g(n),u=_g(r);for(let c=0;c<i.length;++c){const h=i[c];if(!oS[h]&&!(u&&u[h])&&!(l&&l[h])){const d=dS(r,h);try{fS(n,h,d)}catch{}}}}return n}var pS=Symbol.for("react-redux-context"),gS=typeof globalThis<"u"?globalThis:{};function yS(){if(!H.createContext)return{};const n=gS[pS]??=new Map;let r=n.get(H.createContext);return r||(r=H.createContext(null),n.set(H.createContext,r)),r}var Vn=yS(),vS=[null,null];function _S(n,r,i){so(()=>n(...r),i)}function bS(n,r,i,l,u,c){n.current=l,i.current=!1,u.current&&(u.current=null,c())}function ES(n,r,i,l,u,c,h,d,m,g,y){if(!n)return()=>{};let T=!1,O=null;const j=()=>{if(T||!d.current)return;const V=r.getState();let q,E;try{q=l(V,u.current)}catch(x){E=x,O=x}E||(O=null),q===c.current?h.current||g():(c.current=q,m.current=q,h.current=!0,y())};return i.onStateChange=j,i.trySubscribe(),j(),()=>{if(T=!0,i.tryUnsubscribe(),i.onStateChange=null,O)throw O}}function SS(n,r){return n===r}function TS(n,r,i,{pure:l,areStatesEqual:u=SS,areOwnPropsEqual:c=Kc,areStatePropsEqual:h=Kc,areMergedPropsEqual:d=Kc,forwardRef:m=!1,context:g=Vn}={}){const y=g,T=K2(n),O=Q2(r),j=W2(i),M=!!n;return q=>{const E=q.displayName||q.name||"Component",x=`Connect(${E})`,b={shouldHandleStateChanges:M,displayName:x,wrappedComponentName:E,WrappedComponent:q,initMapStateToProps:T,initMapDispatchToProps:O,initMergeProps:j,areStatesEqual:u,areStatePropsEqual:h,areOwnPropsEqual:c,areMergedPropsEqual:d};function w(Y){const[$,ie,J]=H.useMemo(()=>{const{reactReduxForwardedRef:dt,...Tn}=Y;return[Y.context,dt,Tn]},[Y]),W=H.useMemo(()=>{let dt=y;return $?.Consumer,dt},[$,y]),se=H.useContext(W),le=!!Y.store&&!!Y.store.getState&&!!Y.store.dispatch,Ye=!!se&&!!se.store,ye=le?Y.store:se.store,k=Ye?se.getServerState:ye.getState,Q=H.useMemo(()=>Z2(ye.dispatch,b),[ye]),[te,Se]=H.useMemo(()=>{if(!M)return vS;const dt=Wv(ye,le?void 0:se.subscription),Tn=dt.notifyNestedSubs.bind(dt);return[dt,Tn]},[ye,le,se]),R=H.useMemo(()=>le?se:{...se,subscription:te},[le,se,te]),P=H.useRef(void 0),K=H.useRef(J),Z=H.useRef(void 0),ne=H.useRef(!1),pe=H.useRef(!1),ue=H.useRef(void 0);so(()=>(pe.current=!0,()=>{pe.current=!1}),[]);const tt=H.useMemo(()=>()=>Z.current&&J===K.current?Z.current:Q(ye.getState(),J),[ye,J]),He=H.useMemo(()=>Tn=>te?ES(M,ye,te,Q,K,P,ne,pe,Z,Se,Tn):()=>{},[te]);_S(bS,[K,P,ne,J,Z,Se]);let Ot;try{Ot=H.useSyncExternalStore(He,tt,k?()=>Q(k(),J):tt)}catch(dt){throw ue.current&&(dt.message+=`
58
- The error may be correlated with this previous error:
59
- ${ue.current.stack}
60
-
61
- `),dt}so(()=>{ue.current=void 0,Z.current=void 0,P.current=Ot});const Er=H.useMemo(()=>H.createElement(q,{...Ot,ref:ie}),[ie,q,Ot]);return H.useMemo(()=>M?H.createElement(W.Provider,{value:R},Er):Er,[W,Er,R])}const z=H.memo(w);if(z.WrappedComponent=q,z.displayName=w.displayName=x,m){const $=H.forwardRef(function(J,W){return H.createElement(z,{...J,reactReduxForwardedRef:W})});return $.displayName=x,$.WrappedComponent=q,Wf($,q)}return Wf(z,q)}}var xS=TS;function AS(n){const{children:r,context:i,serverState:l,store:u}=n,c=H.useMemo(()=>{const m=Wv(u);return{store:u,subscription:m,getServerState:l?()=>l:void 0}},[u,l]),h=H.useMemo(()=>u.getState(),[u]);so(()=>{const{subscription:m}=c;return m.onStateChange=m.notifyNestedSubs,m.trySubscribe(),h!==u.getState()&&m.notifyNestedSubs(),()=>{m.tryUnsubscribe(),m.onStateChange=void 0}},[c,h]);const d=i||Vn;return H.createElement(d.Provider,{value:c},r)}var OS=AS;function Nh(n=Vn){return function(){return H.useContext(n)}}var t_=Nh();function n_(n=Vn){const r=n===Vn?t_:Nh(n),i=()=>{const{store:l}=r();return l};return Object.assign(i,{withTypes:()=>i}),i}var wS=n_();function RS(n=Vn){const r=n===Vn?wS:n_(n),i=()=>r().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var CS=RS(),NS=(n,r)=>n===r;function DS(n=Vn){const r=n===Vn?t_:Nh(n),i=(l,u={})=>{const{equalityFn:c=NS}=typeof u=="function"?{equalityFn:u}:u,h=r(),{store:d,subscription:m,getServerState:g}=h;H.useRef(!0);const y=H.useCallback({[l.name](O){return l(O)}}[l.name],[l]),T=N2.useSyncExternalStoreWithSelector(m.addNestedSub,d.getState,g||d.getState,y,c);return H.useDebugValue(T),T};return Object.assign(i,{withTypes:()=>i}),i}var MS=DS(),$c={exports:{}};/*!
62
- Copyright (c) 2018 Jed Watson.
63
- Licensed under the MIT License (MIT), see
64
- http://jedwatson.github.io/classnames
65
- */var Sg;function BS(){return Sg||(Sg=1,function(n){(function(){var r={}.hasOwnProperty;function i(){for(var c="",h=0;h<arguments.length;h++){var d=arguments[h];d&&(c=u(c,l(d)))}return c}function l(c){if(typeof c=="string"||typeof c=="number")return c;if(typeof c!="object")return"";if(Array.isArray(c))return i.apply(null,c);if(c.toString!==Object.prototype.toString&&!c.toString.toString().includes("[native code]"))return c.toString();var h="";for(var d in c)r.call(c,d)&&c[d]&&(h=u(h,d));return h}function u(c,h){return h?c?c+" "+h:c+h:c}n.exports?(i.default=i,n.exports=i):window.classNames=i})()}($c)),$c.exports}var jS=BS();const X=po(jS);var eh=function(n,r){return eh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(i[u]=l[u])},eh(n,r)};function Jt(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");eh(n,r);function i(){this.constructor=n}n.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}var re=function(){return re=Object.assign||function(r){for(var i,l=1,u=arguments.length;l<u;l++){i=arguments[l];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(r[c]=i[c])}return r},re.apply(this,arguments)};function go(n,r){var i={};for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&r.indexOf(l)<0&&(i[l]=n[l]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,l=Object.getOwnPropertySymbols(n);u<l.length;u++)r.indexOf(l[u])<0&&Object.prototype.propertyIsEnumerable.call(n,l[u])&&(i[l[u]]=n[l[u]]);return i}function vn(n,r,i){if(i||arguments.length===2)for(var l=0,u=r.length,c;l<u;l++)(c||!(l in r))&&(c||(c=Array.prototype.slice.call(r,0,l)),c[l]=r[l]);return n.concat(c||Array.prototype.slice.call(r))}function gn(n,r){var i=r&&r.cache?r.cache:qS,l=r&&r.serializer?r.serializer:kS,u=r&&r.strategy?r.strategy:HS;return u(n,{cache:i,serializer:l})}function US(n){return n==null||typeof n=="number"||typeof n=="boolean"}function LS(n,r,i,l){var u=US(l)?l:i(l),c=r.get(u);return typeof c>"u"&&(c=n.call(this,l),r.set(u,c)),c}function r_(n,r,i){var l=Array.prototype.slice.call(arguments,3),u=i(l),c=r.get(u);return typeof c>"u"&&(c=n.apply(this,l),r.set(u,c)),c}function a_(n,r,i,l,u){return i.bind(r,n,l,u)}function HS(n,r){var i=n.length===1?LS:r_;return a_(n,this,i,r.cache.create(),r.serializer)}function zS(n,r){return a_(n,this,r_,r.cache.create(),r.serializer)}var kS=function(){return JSON.stringify(arguments)},GS=function(){function n(){this.cache=Object.create(null)}return n.prototype.get=function(r){return this.cache[r]},n.prototype.set=function(r,i){this.cache[r]=i},n}(),qS={create:function(){return new GS}},yn={variadic:zS},Te;(function(n){n[n.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",n[n.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",n[n.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",n[n.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",n[n.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",n[n.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",n[n.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",n[n.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",n[n.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",n[n.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",n[n.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",n[n.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",n[n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",n[n.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",n[n.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",n[n.INVALID_TAG=23]="INVALID_TAG",n[n.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",n[n.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",n[n.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(Te||(Te={}));var ke;(function(n){n[n.literal=0]="literal",n[n.argument=1]="argument",n[n.number=2]="number",n[n.date=3]="date",n[n.time=4]="time",n[n.select=5]="select",n[n.plural=6]="plural",n[n.pound=7]="pound",n[n.tag=8]="tag"})(ke||(ke={}));var za;(function(n){n[n.number=0]="number",n[n.dateTime=1]="dateTime"})(za||(za={}));function Tg(n){return n.type===ke.literal}function IS(n){return n.type===ke.argument}function i_(n){return n.type===ke.number}function s_(n){return n.type===ke.date}function l_(n){return n.type===ke.time}function o_(n){return n.type===ke.select}function u_(n){return n.type===ke.plural}function FS(n){return n.type===ke.pound}function c_(n){return n.type===ke.tag}function f_(n){return!!(n&&typeof n=="object"&&n.type===za.number)}function th(n){return!!(n&&typeof n=="object"&&n.type===za.dateTime)}var h_=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,VS=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function PS(n){var r={};return n.replace(VS,function(i){var l=i.length;switch(i[0]){case"G":r.era=l===4?"long":l===5?"narrow":"short";break;case"y":r.year=l===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":r.month=["numeric","2-digit","short","long","narrow"][l-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":r.day=["numeric","2-digit"][l-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":r.weekday=l===4?"long":l===5?"narrow":"short";break;case"e":if(l<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][l-4];break;case"c":if(l<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][l-4];break;case"a":r.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":r.hourCycle="h12",r.hour=["numeric","2-digit"][l-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][l-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][l-1];break;case"k":r.hourCycle="h24",r.hour=["numeric","2-digit"][l-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":r.minute=["numeric","2-digit"][l-1];break;case"s":r.second=["numeric","2-digit"][l-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":r.timeZoneName=l<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),r}var YS=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function ZS(n){if(n.length===0)throw new Error("Number skeleton cannot be empty");for(var r=n.split(YS).filter(function(O){return O.length>0}),i=[],l=0,u=r;l<u.length;l++){var c=u[l],h=c.split("/");if(h.length===0)throw new Error("Invalid number skeleton");for(var d=h[0],m=h.slice(1),g=0,y=m;g<y.length;g++){var T=y[g];if(T.length===0)throw new Error("Invalid number skeleton")}i.push({stem:d,options:m})}return i}function XS(n){return n.replace(/^(.*?)-/,"")}var xg=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,d_=/^(@+)?(\+|#+)?[rs]?$/g,QS=/(\*)(0+)|(#+)(0+)|(0+)/g,m_=/^(0+)$/;function Ag(n){var r={};return n[n.length-1]==="r"?r.roundingPriority="morePrecision":n[n.length-1]==="s"&&(r.roundingPriority="lessPrecision"),n.replace(d_,function(i,l,u){return typeof u!="string"?(r.minimumSignificantDigits=l.length,r.maximumSignificantDigits=l.length):u==="+"?r.minimumSignificantDigits=l.length:l[0]==="#"?r.maximumSignificantDigits=l.length:(r.minimumSignificantDigits=l.length,r.maximumSignificantDigits=l.length+(typeof u=="string"?u.length:0)),""}),r}function p_(n){switch(n){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function KS(n){var r;if(n[0]==="E"&&n[1]==="E"?(r={notation:"engineering"},n=n.slice(2)):n[0]==="E"&&(r={notation:"scientific"},n=n.slice(1)),r){var i=n.slice(0,2);if(i==="+!"?(r.signDisplay="always",n=n.slice(2)):i==="+?"&&(r.signDisplay="exceptZero",n=n.slice(2)),!m_.test(n))throw new Error("Malformed concise eng/scientific notation");r.minimumIntegerDigits=n.length}return r}function Og(n){var r={},i=p_(n);return i||r}function $S(n){for(var r={},i=0,l=n;i<l.length;i++){var u=l[i];switch(u.stem){case"percent":case"%":r.style="percent";continue;case"%x100":r.style="percent",r.scale=100;continue;case"currency":r.style="currency",r.currency=u.options[0];continue;case"group-off":case",_":r.useGrouping=!1;continue;case"precision-integer":case".":r.maximumFractionDigits=0;continue;case"measure-unit":case"unit":r.style="unit",r.unit=XS(u.options[0]);continue;case"compact-short":case"K":r.notation="compact",r.compactDisplay="short";continue;case"compact-long":case"KK":r.notation="compact",r.compactDisplay="long";continue;case"scientific":r=re(re(re({},r),{notation:"scientific"}),u.options.reduce(function(m,g){return re(re({},m),Og(g))},{}));continue;case"engineering":r=re(re(re({},r),{notation:"engineering"}),u.options.reduce(function(m,g){return re(re({},m),Og(g))},{}));continue;case"notation-simple":r.notation="standard";continue;case"unit-width-narrow":r.currencyDisplay="narrowSymbol",r.unitDisplay="narrow";continue;case"unit-width-short":r.currencyDisplay="code",r.unitDisplay="short";continue;case"unit-width-full-name":r.currencyDisplay="name",r.unitDisplay="long";continue;case"unit-width-iso-code":r.currencyDisplay="symbol";continue;case"scale":r.scale=parseFloat(u.options[0]);continue;case"rounding-mode-floor":r.roundingMode="floor";continue;case"rounding-mode-ceiling":r.roundingMode="ceil";continue;case"rounding-mode-down":r.roundingMode="trunc";continue;case"rounding-mode-up":r.roundingMode="expand";continue;case"rounding-mode-half-even":r.roundingMode="halfEven";continue;case"rounding-mode-half-down":r.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":r.roundingMode="halfExpand";continue;case"integer-width":if(u.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");u.options[0].replace(QS,function(m,g,y,T,O,j){if(g)r.minimumIntegerDigits=y.length;else{if(T&&O)throw new Error("We currently do not support maximum integer digits");if(j)throw new Error("We currently do not support exact integer digits")}return""});continue}if(m_.test(u.stem)){r.minimumIntegerDigits=u.stem.length;continue}if(xg.test(u.stem)){if(u.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");u.stem.replace(xg,function(m,g,y,T,O,j){return y==="*"?r.minimumFractionDigits=g.length:T&&T[0]==="#"?r.maximumFractionDigits=T.length:O&&j?(r.minimumFractionDigits=O.length,r.maximumFractionDigits=O.length+j.length):(r.minimumFractionDigits=g.length,r.maximumFractionDigits=g.length),""});var c=u.options[0];c==="w"?r=re(re({},r),{trailingZeroDisplay:"stripIfInteger"}):c&&(r=re(re({},r),Ag(c)));continue}if(d_.test(u.stem)){r=re(re({},r),Ag(u.stem));continue}var h=p_(u.stem);h&&(r=re(re({},r),h));var d=KS(u.stem);d&&(r=re(re({},r),d))}return r}var Al={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function JS(n,r){for(var i="",l=0;l<n.length;l++){var u=n.charAt(l);if(u==="j"){for(var c=0;l+1<n.length&&n.charAt(l+1)===u;)c++,l++;var h=1+(c&1),d=c<2?1:3+(c>>1),m="a",g=WS(r);for((g=="H"||g=="k")&&(d=0);d-- >0;)i+=m;for(;h-- >0;)i=g+i}else u==="J"?i+="H":i+=u}return i}function WS(n){var r=n.hourCycle;if(r===void 0&&n.hourCycles&&n.hourCycles.length&&(r=n.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var i=n.language,l;i!=="root"&&(l=n.maximize().region);var u=Al[l||""]||Al[i||""]||Al["".concat(i,"-001")]||Al["001"];return u[0]}var Jc,eT=new RegExp("^".concat(h_.source,"*")),tT=new RegExp("".concat(h_.source,"*$"));function Oe(n,r){return{start:n,end:r}}var nT=!!String.prototype.startsWith&&"_a".startsWith("a",1),rT=!!String.fromCodePoint,aT=!!Object.fromEntries,iT=!!String.prototype.codePointAt,sT=!!String.prototype.trimStart,lT=!!String.prototype.trimEnd,oT=!!Number.isSafeInteger,uT=oT?Number.isSafeInteger:function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n&&Math.abs(n)<=9007199254740991},nh=!0;try{var cT=y_("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");nh=((Jc=cT.exec("a"))===null||Jc===void 0?void 0:Jc[0])==="a"}catch{nh=!1}var wg=nT?function(r,i,l){return r.startsWith(i,l)}:function(r,i,l){return r.slice(l,l+i.length)===i},rh=rT?String.fromCodePoint:function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];for(var l="",u=r.length,c=0,h;u>c;){if(h=r[c++],h>1114111)throw RangeError(h+" is not a valid code point");l+=h<65536?String.fromCharCode(h):String.fromCharCode(((h-=65536)>>10)+55296,h%1024+56320)}return l},Rg=aT?Object.fromEntries:function(r){for(var i={},l=0,u=r;l<u.length;l++){var c=u[l],h=c[0],d=c[1];i[h]=d}return i},g_=iT?function(r,i){return r.codePointAt(i)}:function(r,i){var l=r.length;if(!(i<0||i>=l)){var u=r.charCodeAt(i),c;return u<55296||u>56319||i+1===l||(c=r.charCodeAt(i+1))<56320||c>57343?u:(u-55296<<10)+(c-56320)+65536}},fT=sT?function(r){return r.trimStart()}:function(r){return r.replace(eT,"")},hT=lT?function(r){return r.trimEnd()}:function(r){return r.replace(tT,"")};function y_(n,r){return new RegExp(n,r)}var ah;if(nh){var Cg=y_("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ah=function(r,i){var l;Cg.lastIndex=i;var u=Cg.exec(r);return(l=u[1])!==null&&l!==void 0?l:""}}else ah=function(r,i){for(var l=[];;){var u=g_(r,i);if(u===void 0||v_(u)||gT(u))break;l.push(u),i+=u>=65536?2:1}return rh.apply(void 0,l)};var dT=function(){function n(r,i){i===void 0&&(i={}),this.message=r,this.position={offset:0,line:1,column:1},this.ignoreTag=!!i.ignoreTag,this.locale=i.locale,this.requiresOtherClause=!!i.requiresOtherClause,this.shouldParseSkeletons=!!i.shouldParseSkeletons}return n.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},n.prototype.parseMessage=function(r,i,l){for(var u=[];!this.isEOF();){var c=this.char();if(c===123){var h=this.parseArgument(r,l);if(h.err)return h;u.push(h.val)}else{if(c===125&&r>0)break;if(c===35&&(i==="plural"||i==="selectordinal")){var d=this.clonePosition();this.bump(),u.push({type:ke.pound,location:Oe(d,this.clonePosition())})}else if(c===60&&!this.ignoreTag&&this.peek()===47){if(l)break;return this.error(Te.UNMATCHED_CLOSING_TAG,Oe(this.clonePosition(),this.clonePosition()))}else if(c===60&&!this.ignoreTag&&ih(this.peek()||0)){var h=this.parseTag(r,i);if(h.err)return h;u.push(h.val)}else{var h=this.parseLiteral(r,i);if(h.err)return h;u.push(h.val)}}}return{val:u,err:null}},n.prototype.parseTag=function(r,i){var l=this.clonePosition();this.bump();var u=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ke.literal,value:"<".concat(u,"/>"),location:Oe(l,this.clonePosition())},err:null};if(this.bumpIf(">")){var c=this.parseMessage(r+1,i,!0);if(c.err)return c;var h=c.val,d=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ih(this.char()))return this.error(Te.INVALID_TAG,Oe(d,this.clonePosition()));var m=this.clonePosition(),g=this.parseTagName();return u!==g?this.error(Te.UNMATCHED_CLOSING_TAG,Oe(m,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ke.tag,value:u,children:h,location:Oe(l,this.clonePosition())},err:null}:this.error(Te.INVALID_TAG,Oe(d,this.clonePosition())))}else return this.error(Te.UNCLOSED_TAG,Oe(l,this.clonePosition()))}else return this.error(Te.INVALID_TAG,Oe(l,this.clonePosition()))},n.prototype.parseTagName=function(){var r=this.offset();for(this.bump();!this.isEOF()&&pT(this.char());)this.bump();return this.message.slice(r,this.offset())},n.prototype.parseLiteral=function(r,i){for(var l=this.clonePosition(),u="";;){var c=this.tryParseQuote(i);if(c){u+=c;continue}var h=this.tryParseUnquoted(r,i);if(h){u+=h;continue}var d=this.tryParseLeftAngleBracket();if(d){u+=d;continue}break}var m=Oe(l,this.clonePosition());return{val:{type:ke.literal,value:u,location:m},err:null}},n.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!mT(this.peek()||0))?(this.bump(),"<"):null},n.prototype.tryParseQuote=function(r){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(r==="plural"||r==="selectordinal")break;return null;default:return null}this.bump();var i=[this.char()];for(this.bump();!this.isEOF();){var l=this.char();if(l===39)if(this.peek()===39)i.push(39),this.bump();else{this.bump();break}else i.push(l);this.bump()}return rh.apply(void 0,i)},n.prototype.tryParseUnquoted=function(r,i){if(this.isEOF())return null;var l=this.char();return l===60||l===123||l===35&&(i==="plural"||i==="selectordinal")||l===125&&r>0?null:(this.bump(),rh(l))},n.prototype.parseArgument=function(r,i){var l=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Te.EXPECT_ARGUMENT_CLOSING_BRACE,Oe(l,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Te.EMPTY_ARGUMENT,Oe(l,this.clonePosition()));var u=this.parseIdentifierIfPossible().value;if(!u)return this.error(Te.MALFORMED_ARGUMENT,Oe(l,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Te.EXPECT_ARGUMENT_CLOSING_BRACE,Oe(l,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ke.argument,value:u,location:Oe(l,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Te.EXPECT_ARGUMENT_CLOSING_BRACE,Oe(l,this.clonePosition())):this.parseArgumentOptions(r,i,u,l);default:return this.error(Te.MALFORMED_ARGUMENT,Oe(l,this.clonePosition()))}},n.prototype.parseIdentifierIfPossible=function(){var r=this.clonePosition(),i=this.offset(),l=ah(this.message,i),u=i+l.length;this.bumpTo(u);var c=this.clonePosition(),h=Oe(r,c);return{value:l,location:h}},n.prototype.parseArgumentOptions=function(r,i,l,u){var c,h=this.clonePosition(),d=this.parseIdentifierIfPossible().value,m=this.clonePosition();switch(d){case"":return this.error(Te.EXPECT_ARGUMENT_TYPE,Oe(h,m));case"number":case"date":case"time":{this.bumpSpace();var g=null;if(this.bumpIf(",")){this.bumpSpace();var y=this.clonePosition(),T=this.parseSimpleArgStyleIfPossible();if(T.err)return T;var O=hT(T.val);if(O.length===0)return this.error(Te.EXPECT_ARGUMENT_STYLE,Oe(this.clonePosition(),this.clonePosition()));var j=Oe(y,this.clonePosition());g={style:O,styleLocation:j}}var M=this.tryParseArgumentClose(u);if(M.err)return M;var V=Oe(u,this.clonePosition());if(g&&wg(g?.style,"::",0)){var q=fT(g.style.slice(2));if(d==="number"){var T=this.parseNumberSkeletonFromString(q,g.styleLocation);return T.err?T:{val:{type:ke.number,value:l,location:V,style:T.val},err:null}}else{if(q.length===0)return this.error(Te.EXPECT_DATE_TIME_SKELETON,V);var E=q;this.locale&&(E=JS(q,this.locale));var O={type:za.dateTime,pattern:E,location:g.styleLocation,parsedOptions:this.shouldParseSkeletons?PS(E):{}},x=d==="date"?ke.date:ke.time;return{val:{type:x,value:l,location:V,style:O},err:null}}}return{val:{type:d==="number"?ke.number:d==="date"?ke.date:ke.time,value:l,location:V,style:(c=g?.style)!==null&&c!==void 0?c:null},err:null}}case"plural":case"selectordinal":case"select":{var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Te.EXPECT_SELECT_ARGUMENT_OPTIONS,Oe(b,re({},b)));this.bumpSpace();var w=this.parseIdentifierIfPossible(),S=0;if(d!=="select"&&w.value==="offset"){if(!this.bumpIf(":"))return this.error(Te.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Oe(this.clonePosition(),this.clonePosition()));this.bumpSpace();var T=this.tryParseDecimalInteger(Te.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Te.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(T.err)return T;this.bumpSpace(),w=this.parseIdentifierIfPossible(),S=T.val}var z=this.tryParsePluralOrSelectOptions(r,d,i,w);if(z.err)return z;var M=this.tryParseArgumentClose(u);if(M.err)return M;var Y=Oe(u,this.clonePosition());return d==="select"?{val:{type:ke.select,value:l,options:Rg(z.val),location:Y},err:null}:{val:{type:ke.plural,value:l,options:Rg(z.val),offset:S,pluralType:d==="plural"?"cardinal":"ordinal",location:Y},err:null}}default:return this.error(Te.INVALID_ARGUMENT_TYPE,Oe(h,m))}},n.prototype.tryParseArgumentClose=function(r){return this.isEOF()||this.char()!==125?this.error(Te.EXPECT_ARGUMENT_CLOSING_BRACE,Oe(r,this.clonePosition())):(this.bump(),{val:!0,err:null})},n.prototype.parseSimpleArgStyleIfPossible=function(){for(var r=0,i=this.clonePosition();!this.isEOF();){var l=this.char();switch(l){case 39:{this.bump();var u=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Te.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Oe(u,this.clonePosition()));this.bump();break}case 123:{r+=1,this.bump();break}case 125:{if(r>0)r-=1;else return{val:this.message.slice(i.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(i.offset,this.offset()),err:null}},n.prototype.parseNumberSkeletonFromString=function(r,i){var l=[];try{l=ZS(r)}catch{return this.error(Te.INVALID_NUMBER_SKELETON,i)}return{val:{type:za.number,tokens:l,location:i,parsedOptions:this.shouldParseSkeletons?$S(l):{}},err:null}},n.prototype.tryParsePluralOrSelectOptions=function(r,i,l,u){for(var c,h=!1,d=[],m=new Set,g=u.value,y=u.location;;){if(g.length===0){var T=this.clonePosition();if(i!=="select"&&this.bumpIf("=")){var O=this.tryParseDecimalInteger(Te.EXPECT_PLURAL_ARGUMENT_SELECTOR,Te.INVALID_PLURAL_ARGUMENT_SELECTOR);if(O.err)return O;y=Oe(T,this.clonePosition()),g=this.message.slice(T.offset,this.offset())}else break}if(m.has(g))return this.error(i==="select"?Te.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Te.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,y);g==="other"&&(h=!0),this.bumpSpace();var j=this.clonePosition();if(!this.bumpIf("{"))return this.error(i==="select"?Te.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Te.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Oe(this.clonePosition(),this.clonePosition()));var M=this.parseMessage(r+1,i,l);if(M.err)return M;var V=this.tryParseArgumentClose(j);if(V.err)return V;d.push([g,{value:M.val,location:Oe(j,this.clonePosition())}]),m.add(g),this.bumpSpace(),c=this.parseIdentifierIfPossible(),g=c.value,y=c.location}return d.length===0?this.error(i==="select"?Te.EXPECT_SELECT_ARGUMENT_SELECTOR:Te.EXPECT_PLURAL_ARGUMENT_SELECTOR,Oe(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!h?this.error(Te.MISSING_OTHER_CLAUSE,Oe(this.clonePosition(),this.clonePosition())):{val:d,err:null}},n.prototype.tryParseDecimalInteger=function(r,i){var l=1,u=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(l=-1);for(var c=!1,h=0;!this.isEOF();){var d=this.char();if(d>=48&&d<=57)c=!0,h=h*10+(d-48),this.bump();else break}var m=Oe(u,this.clonePosition());return c?(h*=l,uT(h)?{val:h,err:null}:this.error(i,m)):this.error(r,m)},n.prototype.offset=function(){return this.position.offset},n.prototype.isEOF=function(){return this.offset()===this.message.length},n.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},n.prototype.char=function(){var r=this.position.offset;if(r>=this.message.length)throw Error("out of bound");var i=g_(this.message,r);if(i===void 0)throw Error("Offset ".concat(r," is at invalid UTF-16 code unit boundary"));return i},n.prototype.error=function(r,i){return{val:null,err:{kind:r,message:this.message,location:i}}},n.prototype.bump=function(){if(!this.isEOF()){var r=this.char();r===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=r<65536?1:2)}},n.prototype.bumpIf=function(r){if(wg(this.message,r,this.offset())){for(var i=0;i<r.length;i++)this.bump();return!0}return!1},n.prototype.bumpUntil=function(r){var i=this.offset(),l=this.message.indexOf(r,i);return l>=0?(this.bumpTo(l),!0):(this.bumpTo(this.message.length),!1)},n.prototype.bumpTo=function(r){if(this.offset()>r)throw Error("targetOffset ".concat(r," must be greater than or equal to the current offset ").concat(this.offset()));for(r=Math.min(r,this.message.length);;){var i=this.offset();if(i===r)break;if(i>r)throw Error("targetOffset ".concat(r," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},n.prototype.bumpSpace=function(){for(;!this.isEOF()&&v_(this.char());)this.bump()},n.prototype.peek=function(){if(this.isEOF())return null;var r=this.char(),i=this.offset(),l=this.message.charCodeAt(i+(r>=65536?2:1));return l??null},n}();function ih(n){return n>=97&&n<=122||n>=65&&n<=90}function mT(n){return ih(n)||n===47}function pT(n){return n===45||n===46||n>=48&&n<=57||n===95||n>=97&&n<=122||n>=65&&n<=90||n==183||n>=192&&n<=214||n>=216&&n<=246||n>=248&&n<=893||n>=895&&n<=8191||n>=8204&&n<=8205||n>=8255&&n<=8256||n>=8304&&n<=8591||n>=11264&&n<=12271||n>=12289&&n<=55295||n>=63744&&n<=64975||n>=65008&&n<=65533||n>=65536&&n<=983039}function v_(n){return n>=9&&n<=13||n===32||n===133||n>=8206&&n<=8207||n===8232||n===8233}function gT(n){return n>=33&&n<=35||n===36||n>=37&&n<=39||n===40||n===41||n===42||n===43||n===44||n===45||n>=46&&n<=47||n>=58&&n<=59||n>=60&&n<=62||n>=63&&n<=64||n===91||n===92||n===93||n===94||n===96||n===123||n===124||n===125||n===126||n===161||n>=162&&n<=165||n===166||n===167||n===169||n===171||n===172||n===174||n===176||n===177||n===182||n===187||n===191||n===215||n===247||n>=8208&&n<=8213||n>=8214&&n<=8215||n===8216||n===8217||n===8218||n>=8219&&n<=8220||n===8221||n===8222||n===8223||n>=8224&&n<=8231||n>=8240&&n<=8248||n===8249||n===8250||n>=8251&&n<=8254||n>=8257&&n<=8259||n===8260||n===8261||n===8262||n>=8263&&n<=8273||n===8274||n===8275||n>=8277&&n<=8286||n>=8592&&n<=8596||n>=8597&&n<=8601||n>=8602&&n<=8603||n>=8604&&n<=8607||n===8608||n>=8609&&n<=8610||n===8611||n>=8612&&n<=8613||n===8614||n>=8615&&n<=8621||n===8622||n>=8623&&n<=8653||n>=8654&&n<=8655||n>=8656&&n<=8657||n===8658||n===8659||n===8660||n>=8661&&n<=8691||n>=8692&&n<=8959||n>=8960&&n<=8967||n===8968||n===8969||n===8970||n===8971||n>=8972&&n<=8991||n>=8992&&n<=8993||n>=8994&&n<=9e3||n===9001||n===9002||n>=9003&&n<=9083||n===9084||n>=9085&&n<=9114||n>=9115&&n<=9139||n>=9140&&n<=9179||n>=9180&&n<=9185||n>=9186&&n<=9254||n>=9255&&n<=9279||n>=9280&&n<=9290||n>=9291&&n<=9311||n>=9472&&n<=9654||n===9655||n>=9656&&n<=9664||n===9665||n>=9666&&n<=9719||n>=9720&&n<=9727||n>=9728&&n<=9838||n===9839||n>=9840&&n<=10087||n===10088||n===10089||n===10090||n===10091||n===10092||n===10093||n===10094||n===10095||n===10096||n===10097||n===10098||n===10099||n===10100||n===10101||n>=10132&&n<=10175||n>=10176&&n<=10180||n===10181||n===10182||n>=10183&&n<=10213||n===10214||n===10215||n===10216||n===10217||n===10218||n===10219||n===10220||n===10221||n===10222||n===10223||n>=10224&&n<=10239||n>=10240&&n<=10495||n>=10496&&n<=10626||n===10627||n===10628||n===10629||n===10630||n===10631||n===10632||n===10633||n===10634||n===10635||n===10636||n===10637||n===10638||n===10639||n===10640||n===10641||n===10642||n===10643||n===10644||n===10645||n===10646||n===10647||n===10648||n>=10649&&n<=10711||n===10712||n===10713||n===10714||n===10715||n>=10716&&n<=10747||n===10748||n===10749||n>=10750&&n<=11007||n>=11008&&n<=11055||n>=11056&&n<=11076||n>=11077&&n<=11078||n>=11079&&n<=11084||n>=11085&&n<=11123||n>=11124&&n<=11125||n>=11126&&n<=11157||n===11158||n>=11159&&n<=11263||n>=11776&&n<=11777||n===11778||n===11779||n===11780||n===11781||n>=11782&&n<=11784||n===11785||n===11786||n===11787||n===11788||n===11789||n>=11790&&n<=11798||n===11799||n>=11800&&n<=11801||n===11802||n===11803||n===11804||n===11805||n>=11806&&n<=11807||n===11808||n===11809||n===11810||n===11811||n===11812||n===11813||n===11814||n===11815||n===11816||n===11817||n>=11818&&n<=11822||n===11823||n>=11824&&n<=11833||n>=11834&&n<=11835||n>=11836&&n<=11839||n===11840||n===11841||n===11842||n>=11843&&n<=11855||n>=11856&&n<=11857||n===11858||n>=11859&&n<=11903||n>=12289&&n<=12291||n===12296||n===12297||n===12298||n===12299||n===12300||n===12301||n===12302||n===12303||n===12304||n===12305||n>=12306&&n<=12307||n===12308||n===12309||n===12310||n===12311||n===12312||n===12313||n===12314||n===12315||n===12316||n===12317||n>=12318&&n<=12319||n===12320||n===12336||n===64830||n===64831||n>=65093&&n<=65094}function sh(n){n.forEach(function(r){if(delete r.location,o_(r)||u_(r))for(var i in r.options)delete r.options[i].location,sh(r.options[i].value);else i_(r)&&f_(r.style)||(s_(r)||l_(r))&&th(r.style)?delete r.style.location:c_(r)&&sh(r.children)})}function yT(n,r){r===void 0&&(r={}),r=re({shouldParseSkeletons:!0,requiresOtherClause:!0},r);var i=new dT(n,r).parse();if(i.err){var l=SyntaxError(Te[i.err.kind]);throw l.location=i.err.location,l.originalMessage=i.err.message,l}return r?.captureLocation||sh(i.val),i.val}var En;(function(n){n.MISSING_VALUE="MISSING_VALUE",n.INVALID_VALUE="INVALID_VALUE",n.MISSING_INTL_API="MISSING_INTL_API"})(En||(En={}));var br=function(n){Jt(r,n);function r(i,l,u){var c=n.call(this,i)||this;return c.code=l,c.originalMessage=u,c}return r.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},r}(Error),Ng=function(n){Jt(r,n);function r(i,l,u,c){return n.call(this,'Invalid values for "'.concat(i,'": "').concat(l,'". Options are "').concat(Object.keys(u).join('", "'),'"'),En.INVALID_VALUE,c)||this}return r}(br),vT=function(n){Jt(r,n);function r(i,l,u){return n.call(this,'Value for "'.concat(i,'" must be of type ').concat(l),En.INVALID_VALUE,u)||this}return r}(br),_T=function(n){Jt(r,n);function r(i,l){return n.call(this,'The intl string context variable "'.concat(i,'" was not provided to the string "').concat(l,'"'),En.MISSING_VALUE,l)||this}return r}(br),vt;(function(n){n[n.literal=0]="literal",n[n.object=1]="object"})(vt||(vt={}));function bT(n){return n.length<2?n:n.reduce(function(r,i){var l=r[r.length-1];return!l||l.type!==vt.literal||i.type!==vt.literal?r.push(i):l.value+=i.value,r},[])}function __(n){return typeof n=="function"}function eo(n,r,i,l,u,c,h){if(n.length===1&&Tg(n[0]))return[{type:vt.literal,value:n[0].value}];for(var d=[],m=0,g=n;m<g.length;m++){var y=g[m];if(Tg(y)){d.push({type:vt.literal,value:y.value});continue}if(FS(y)){typeof c=="number"&&d.push({type:vt.literal,value:i.getNumberFormat(r).format(c)});continue}var T=y.value;if(!(u&&T in u))throw new _T(T,h);var O=u[T];if(IS(y)){(!O||typeof O=="string"||typeof O=="number")&&(O=typeof O=="string"||typeof O=="number"?String(O):""),d.push({type:typeof O=="string"?vt.literal:vt.object,value:O});continue}if(s_(y)){var j=typeof y.style=="string"?l.date[y.style]:th(y.style)?y.style.parsedOptions:void 0;d.push({type:vt.literal,value:i.getDateTimeFormat(r,j).format(O)});continue}if(l_(y)){var j=typeof y.style=="string"?l.time[y.style]:th(y.style)?y.style.parsedOptions:l.time.medium;d.push({type:vt.literal,value:i.getDateTimeFormat(r,j).format(O)});continue}if(i_(y)){var j=typeof y.style=="string"?l.number[y.style]:f_(y.style)?y.style.parsedOptions:void 0;j&&j.scale&&(O=O*(j.scale||1)),d.push({type:vt.literal,value:i.getNumberFormat(r,j).format(O)});continue}if(c_(y)){var M=y.children,V=y.value,q=u[V];if(!__(q))throw new vT(V,"function",h);var E=eo(M,r,i,l,u,c),x=q(E.map(function(S){return S.value}));Array.isArray(x)||(x=[x]),d.push.apply(d,x.map(function(S){return{type:typeof S=="string"?vt.literal:vt.object,value:S}}))}if(o_(y)){var b=y.options[O]||y.options.other;if(!b)throw new Ng(y.value,O,Object.keys(y.options),h);d.push.apply(d,eo(b.value,r,i,l,u));continue}if(u_(y)){var b=y.options["=".concat(O)];if(!b){if(!Intl.PluralRules)throw new br(`Intl.PluralRules is not available in this environment.
66
- Try polyfilling it using "@formatjs/intl-pluralrules"
67
- `,En.MISSING_INTL_API,h);var w=i.getPluralRules(r,{type:y.pluralType}).select(O-(y.offset||0));b=y.options[w]||y.options.other}if(!b)throw new Ng(y.value,O,Object.keys(y.options),h);d.push.apply(d,eo(b.value,r,i,l,u,O-(y.offset||0)));continue}}return bT(d)}function ET(n,r){return r?re(re(re({},n||{}),r||{}),Object.keys(n).reduce(function(i,l){return i[l]=re(re({},n[l]),r[l]||{}),i},{})):n}function ST(n,r){return r?Object.keys(n).reduce(function(i,l){return i[l]=ET(n[l],r[l]),i},re({},n)):n}function Wc(n){return{create:function(){return{get:function(r){return n[r]},set:function(r,i){n[r]=i}}}}}function TT(n){return n===void 0&&(n={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:gn(function(){for(var r,i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return new((r=Intl.NumberFormat).bind.apply(r,vn([void 0],i,!1)))},{cache:Wc(n.number),strategy:yn.variadic}),getDateTimeFormat:gn(function(){for(var r,i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return new((r=Intl.DateTimeFormat).bind.apply(r,vn([void 0],i,!1)))},{cache:Wc(n.dateTime),strategy:yn.variadic}),getPluralRules:gn(function(){for(var r,i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return new((r=Intl.PluralRules).bind.apply(r,vn([void 0],i,!1)))},{cache:Wc(n.pluralRules),strategy:yn.variadic})}}var b_=function(){function n(r,i,l,u){i===void 0&&(i=n.defaultLocale);var c=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(m){var g=c.formatToParts(m);if(g.length===1)return g[0].value;var y=g.reduce(function(T,O){return!T.length||O.type!==vt.literal||typeof T[T.length-1]!="string"?T.push(O.value):T[T.length-1]+=O.value,T},[]);return y.length<=1?y[0]||"":y},this.formatToParts=function(m){return eo(c.ast,c.locales,c.formatters,c.formats,m,void 0,c.message)},this.resolvedOptions=function(){var m;return{locale:((m=c.resolvedLocale)===null||m===void 0?void 0:m.toString())||Intl.NumberFormat.supportedLocalesOf(c.locales)[0]}},this.getAst=function(){return c.ast},this.locales=i,this.resolvedLocale=n.resolveLocale(i),typeof r=="string"){if(this.message=r,!n.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var h=u||{};h.formatters;var d=go(h,["formatters"]);this.ast=n.__parse(r,re(re({},d),{locale:this.resolvedLocale}))}else this.ast=r;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=ST(n.formats,l),this.formatters=u&&u.formatters||TT(this.formatterCache)}return Object.defineProperty(n,"defaultLocale",{get:function(){return n.memoizedDefaultLocale||(n.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),n.memoizedDefaultLocale},enumerable:!1,configurable:!0}),n.memoizedDefaultLocale=null,n.resolveLocale=function(r){if(!(typeof Intl.Locale>"u")){var i=Intl.NumberFormat.supportedLocalesOf(r);return i.length>0?new Intl.Locale(i[0]):new Intl.Locale(typeof r=="string"?r:r[0])}},n.__parse=yT,n.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},n}(),Qr;(function(n){n.FORMAT_ERROR="FORMAT_ERROR",n.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",n.INVALID_CONFIG="INVALID_CONFIG",n.MISSING_DATA="MISSING_DATA",n.MISSING_TRANSLATION="MISSING_TRANSLATION"})(Qr||(Qr={}));var ss=function(n){Jt(r,n);function r(i,l,u){var c=this,h=u?u instanceof Error?u:new Error(String(u)):void 0;return c=n.call(this,"[@formatjs/intl Error ".concat(i,"] ").concat(l,`
68
- `).concat(h?`
69
- `.concat(h.message,`
70
- `).concat(h.stack):""))||this,c.code=i,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(c,r),c}return r}(Error),xT=function(n){Jt(r,n);function r(i,l){return n.call(this,Qr.UNSUPPORTED_FORMATTER,i,l)||this}return r}(ss),AT=function(n){Jt(r,n);function r(i,l){return n.call(this,Qr.INVALID_CONFIG,i,l)||this}return r}(ss),Dg=function(n){Jt(r,n);function r(i,l){return n.call(this,Qr.MISSING_DATA,i,l)||this}return r}(ss),Wt=function(n){Jt(r,n);function r(i,l,u){var c=n.call(this,Qr.FORMAT_ERROR,"".concat(i,`
71
- Locale: `).concat(l,`
72
- `),u)||this;return c.locale=l,c}return r}(ss),ef=function(n){Jt(r,n);function r(i,l,u,c){var h=n.call(this,"".concat(i,`
73
- MessageID: `).concat(u?.id,`
74
- Default Message: `).concat(u?.defaultMessage,`
75
- Description: `).concat(u?.description,`
76
- `),l,c)||this;return h.descriptor=u,h.locale=l,h}return r}(Wt),OT=function(n){Jt(r,n);function r(i,l){var u=n.call(this,Qr.MISSING_TRANSLATION,'Missing message: "'.concat(i.id,'" for locale "').concat(l,'", using ').concat(i.defaultMessage?"default message (".concat(typeof i.defaultMessage=="string"?i.defaultMessage:i.defaultMessage.map(function(c){var h;return(h=c.value)!==null&&h!==void 0?h:JSON.stringify(c)}).join(),")"):"id"," as fallback."))||this;return u.descriptor=i,u}return r}(ss);function wT(n,r,i){if(i===void 0&&(i=Error),!n)throw new i(r)}function qa(n,r,i){return i===void 0&&(i={}),r.reduce(function(l,u){return u in n?l[u]=n[u]:u in i&&(l[u]=i[u]),l},{})}var RT=function(n){},CT=function(n){},E_={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:RT,onWarn:CT};function S_(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Gr(n){return{create:function(){return{get:function(r){return n[r]},set:function(r,i){n[r]=i}}}}}function NT(n){n===void 0&&(n=S_());var r=Intl.RelativeTimeFormat,i=Intl.ListFormat,l=Intl.DisplayNames,u=gn(function(){for(var d,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];return new((d=Intl.DateTimeFormat).bind.apply(d,vn([void 0],m,!1)))},{cache:Gr(n.dateTime),strategy:yn.variadic}),c=gn(function(){for(var d,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];return new((d=Intl.NumberFormat).bind.apply(d,vn([void 0],m,!1)))},{cache:Gr(n.number),strategy:yn.variadic}),h=gn(function(){for(var d,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];return new((d=Intl.PluralRules).bind.apply(d,vn([void 0],m,!1)))},{cache:Gr(n.pluralRules),strategy:yn.variadic});return{getDateTimeFormat:u,getNumberFormat:c,getMessageFormat:gn(function(d,m,g,y){return new b_(d,m,g,re({formatters:{getNumberFormat:c,getDateTimeFormat:u,getPluralRules:h}},y||{}))},{cache:Gr(n.message),strategy:yn.variadic}),getRelativeTimeFormat:gn(function(){for(var d=[],m=0;m<arguments.length;m++)d[m]=arguments[m];return new(r.bind.apply(r,vn([void 0],d,!1)))},{cache:Gr(n.relativeTime),strategy:yn.variadic}),getPluralRules:h,getListFormat:gn(function(){for(var d=[],m=0;m<arguments.length;m++)d[m]=arguments[m];return new(i.bind.apply(i,vn([void 0],d,!1)))},{cache:Gr(n.list),strategy:yn.variadic}),getDisplayNames:gn(function(){for(var d=[],m=0;m<arguments.length;m++)d[m]=arguments[m];return new(l.bind.apply(l,vn([void 0],d,!1)))},{cache:Gr(n.displayNames),strategy:yn.variadic})}}function Dh(n,r,i,l){var u=n&&n[r],c;if(u&&(c=u[i]),c)return c;l(new xT("No ".concat(r," format named: ").concat(i)))}function Ol(n,r){return Object.keys(n).reduce(function(i,l){return i[l]=re({timeZone:r},n[l]),i},{})}function Mg(n,r){var i=Object.keys(re(re({},n),r));return i.reduce(function(l,u){return l[u]=re(re({},n[u]||{}),r[u]||{}),l},{})}function Bg(n,r){if(!r)return n;var i=b_.formats;return re(re(re({},i),n),{date:Mg(Ol(i.date,r),Ol(n.date||{},r)),time:Mg(Ol(i.time,r),Ol(n.time||{},r))})}var lh=function(n,r,i,l,u){var c=n.locale,h=n.formats,d=n.messages,m=n.defaultLocale,g=n.defaultFormats,y=n.fallbackOnEmptyString,T=n.onError,O=n.timeZone,j=n.defaultRichTextElements;i===void 0&&(i={id:""});var M=i.id,V=i.defaultMessage;wT(!!M,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.github.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.github.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.github.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var q=String(M),E=d&&Object.prototype.hasOwnProperty.call(d,q)&&d[q];if(Array.isArray(E)&&E.length===1&&E[0].type===ke.literal)return E[0].value;if(!l&&E&&typeof E=="string"&&!j)return E.replace(/'\{(.*?)\}'/gi,"{$1}");if(l=re(re({},j),l||{}),h=Bg(h,O),g=Bg(g,O),!E){if(y===!1&&E==="")return E;if((!V||c&&c.toLowerCase()!==m.toLowerCase())&&T(new OT(i,c)),V)try{var x=r.getMessageFormat(V,m,g,u);return x.format(l)}catch(b){return T(new ef('Error formatting default message for: "'.concat(q,'", rendering default message verbatim'),c,i,b)),typeof V=="string"?V:q}return q}try{var x=r.getMessageFormat(E,c,h,re({formatters:r},u||{}));return x.format(l)}catch(b){T(new ef('Error formatting message: "'.concat(q,'", using ').concat(V?"default message":"id"," as fallback."),c,i,b))}if(V)try{var x=r.getMessageFormat(V,m,g,u);return x.format(l)}catch(b){T(new ef('Error formatting the default message for: "'.concat(q,'", rendering message verbatim'),c,i,b))}return typeof E=="string"?E:typeof V=="string"?V:q},DT=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function ls(n,r,i,l){var u=n.locale,c=n.formats,h=n.onError,d=n.timeZone;l===void 0&&(l={});var m=l.format,g=re(re({},d&&{timeZone:d}),m&&Dh(c,r,m,h)),y=qa(l,DT,g);return r==="time"&&!y.hour&&!y.minute&&!y.second&&!y.timeStyle&&!y.dateStyle&&(y=re(re({},y),{hour:"numeric",minute:"numeric"})),i(u,y)}function MT(n,r){for(var i=[],l=2;l<arguments.length;l++)i[l-2]=arguments[l];var u=i[0],c=i[1],h=c===void 0?{}:c,d=typeof u=="string"?new Date(u||0):u;try{return ls(n,"date",r,h).format(d)}catch(m){n.onError(new Wt("Error formatting date.",n.locale,m))}return String(d)}function BT(n,r){for(var i=[],l=2;l<arguments.length;l++)i[l-2]=arguments[l];var u=i[0],c=i[1],h=c===void 0?{}:c,d=typeof u=="string"?new Date(u||0):u;try{return ls(n,"time",r,h).format(d)}catch(m){n.onError(new Wt("Error formatting time.",n.locale,m))}return String(d)}function jT(n,r){for(var i=[],l=2;l<arguments.length;l++)i[l-2]=arguments[l];var u=i[0],c=i[1],h=i[2],d=h===void 0?{}:h,m=typeof u=="string"?new Date(u||0):u,g=typeof c=="string"?new Date(c||0):c;try{return ls(n,"dateTimeRange",r,d).formatRange(m,g)}catch(y){n.onError(new Wt("Error formatting date time range.",n.locale,y))}return String(m)}function UT(n,r){for(var i=[],l=2;l<arguments.length;l++)i[l-2]=arguments[l];var u=i[0],c=i[1],h=c===void 0?{}:c,d=typeof u=="string"?new Date(u||0):u;try{return ls(n,"date",r,h).formatToParts(d)}catch(m){n.onError(new Wt("Error formatting date.",n.locale,m))}return[]}function LT(n,r){for(var i=[],l=2;l<arguments.length;l++)i[l-2]=arguments[l];var u=i[0],c=i[1],h=c===void 0?{}:c,d=typeof u=="string"?new Date(u||0):u;try{return ls(n,"time",r,h).formatToParts(d)}catch(m){n.onError(new Wt("Error formatting time.",n.locale,m))}return[]}var HT=["style","type","fallback","languageDisplay"];function zT(n,r,i,l){var u=n.locale,c=n.onError,h=Intl.DisplayNames;h||c(new br(`Intl.DisplayNames is not available in this environment.
77
- Try polyfilling it using "@formatjs/intl-displaynames"
78
- `,En.MISSING_INTL_API));var d=qa(l,HT);try{return r(u,d).of(i)}catch(m){c(new Wt("Error formatting display name.",u,m))}}var kT=["type","style"],jg=Date.now();function GT(n){return"".concat(jg,"_").concat(n,"_").concat(jg)}function qT(n,r,i,l){l===void 0&&(l={});var u=T_(n,r,i,l).reduce(function(c,h){var d=h.value;return typeof d!="string"?c.push(d):typeof c[c.length-1]=="string"?c[c.length-1]+=d:c.push(d),c},[]);return u.length===1?u[0]:u.length===0?"":u}function T_(n,r,i,l){var u=n.locale,c=n.onError;l===void 0&&(l={});var h=Intl.ListFormat;h||c(new br(`Intl.ListFormat is not available in this environment.
79
- Try polyfilling it using "@formatjs/intl-listformat"
80
- `,En.MISSING_INTL_API));var d=qa(l,kT);try{var m={},g=i.map(function(y,T){if(typeof y=="object"){var O=GT(T);return m[O]=y,O}return String(y)});return r(u,d).formatToParts(g).map(function(y){return y.type==="literal"?y:re(re({},y),{value:m[y.value]||y.value})})}catch(y){c(new Wt("Error formatting list.",u,y))}return i}var IT=["type"];function FT(n,r,i,l){var u=n.locale,c=n.onError;l===void 0&&(l={}),Intl.PluralRules||c(new br(`Intl.PluralRules is not available in this environment.
81
- Try polyfilling it using "@formatjs/intl-pluralrules"
82
- `,En.MISSING_INTL_API));var h=qa(l,IT);try{return r(u,h).select(i)}catch(d){c(new Wt("Error formatting plural.",u,d))}return"other"}var VT=["numeric","style"];function PT(n,r,i){var l=n.locale,u=n.formats,c=n.onError;i===void 0&&(i={});var h=i.format,d=!!h&&Dh(u,"relative",h,c)||{},m=qa(i,VT,d);return r(l,m)}function YT(n,r,i,l,u){u===void 0&&(u={}),l||(l="second");var c=Intl.RelativeTimeFormat;c||n.onError(new br(`Intl.RelativeTimeFormat is not available in this environment.
83
- Try polyfilling it using "@formatjs/intl-relativetimeformat"
84
- `,En.MISSING_INTL_API));try{return PT(n,r,u).format(i,l)}catch(h){n.onError(new Wt("Error formatting relative time.",n.locale,h))}return String(i)}var ZT=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function x_(n,r,i){var l=n.locale,u=n.formats,c=n.onError;i===void 0&&(i={});var h=i.format,d=h&&Dh(u,"number",h,c)||{},m=qa(i,ZT,d);return r(l,m)}function XT(n,r,i,l){l===void 0&&(l={});try{return x_(n,r,l).format(i)}catch(u){n.onError(new Wt("Error formatting number.",n.locale,u))}return String(i)}function QT(n,r,i,l){l===void 0&&(l={});try{return x_(n,r,l).formatToParts(i)}catch(u){n.onError(new Wt("Error formatting number.",n.locale,u))}return[]}function KT(n){var r=n?n[Object.keys(n)[0]]:void 0;return typeof r=="string"}function $T(n){n.onWarn&&n.defaultRichTextElements&&KT(n.messages||{})&&n.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
85
- Please consider using "@formatjs/cli" to pre-compile your messages for performance.
86
- For more details see https://formatjs.github.io/docs/getting-started/message-distribution`)}function JT(n,r){var i=NT(r),l=re(re({},E_),n),u=l.locale,c=l.defaultLocale,h=l.onError;return u?!Intl.NumberFormat.supportedLocalesOf(u).length&&h?h(new Dg('Missing locale data for locale: "'.concat(u,'" in Intl.NumberFormat. Using default locale: "').concat(c,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(u).length&&h&&h(new Dg('Missing locale data for locale: "'.concat(u,'" in Intl.DateTimeFormat. Using default locale: "').concat(c,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):(h&&h(new AT('"locale" was not configured, using "'.concat(c,'" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))),l.locale=l.defaultLocale||"en"),$T(l),re(re({},l),{formatters:i,formatNumber:XT.bind(null,l,i.getNumberFormat),formatNumberToParts:QT.bind(null,l,i.getNumberFormat),formatRelativeTime:YT.bind(null,l,i.getRelativeTimeFormat),formatDate:MT.bind(null,l,i.getDateTimeFormat),formatDateToParts:UT.bind(null,l,i.getDateTimeFormat),formatTime:BT.bind(null,l,i.getDateTimeFormat),formatDateTimeRange:jT.bind(null,l,i.getDateTimeFormat),formatTimeToParts:LT.bind(null,l,i.getDateTimeFormat),formatPlural:FT.bind(null,l,i.getPluralRules),formatMessage:lh.bind(null,l,i),$t:lh.bind(null,l,i),formatList:qT.bind(null,l,i.getListFormat),formatListToParts:T_.bind(null,l,i.getListFormat),formatDisplayName:zT.bind(null,l,i.getDisplayNames)})}function WT(n,r,i){if(i===void 0&&(i=Error),!n)throw new i(r)}function A_(n){WT(n,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var O_=re(re({},E_),{textComponent:H.Fragment}),ex={key:42},tx=function(n){return H.isValidElement(n)?H.createElement(H.Fragment,ex,n):n},nx=function(n){var r;return(r=H.Children.map(n,tx))!==null&&r!==void 0?r:[]};function rx(n){return function(r){return n(H.Children.toArray(r))}}function ax(n,r){if(n===r)return!0;if(!n||!r)return!1;var i=Object.keys(n),l=Object.keys(r),u=i.length;if(l.length!==u)return!1;for(var c=0;c<u;c++){var h=i[c];if(n[h]!==r[h]||!Object.prototype.hasOwnProperty.call(r,h))return!1}return!0}var tf={exports:{}},Ce={};/** @license React v16.13.1
87
- * react-is.production.min.js
88
- *
89
- * Copyright (c) Facebook, Inc. and its affiliates.
90
- *
91
- * This source code is licensed under the MIT license found in the
92
- * LICENSE file in the root directory of this source tree.
93
- */var Ug;function ix(){if(Ug)return Ce;Ug=1;var n=typeof Symbol=="function"&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,l=n?Symbol.for("react.fragment"):60107,u=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,h=n?Symbol.for("react.provider"):60109,d=n?Symbol.for("react.context"):60110,m=n?Symbol.for("react.async_mode"):60111,g=n?Symbol.for("react.concurrent_mode"):60111,y=n?Symbol.for("react.forward_ref"):60112,T=n?Symbol.for("react.suspense"):60113,O=n?Symbol.for("react.suspense_list"):60120,j=n?Symbol.for("react.memo"):60115,M=n?Symbol.for("react.lazy"):60116,V=n?Symbol.for("react.block"):60121,q=n?Symbol.for("react.fundamental"):60117,E=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function b(S){if(typeof S=="object"&&S!==null){var z=S.$$typeof;switch(z){case r:switch(S=S.type,S){case m:case g:case l:case c:case u:case T:return S;default:switch(S=S&&S.$$typeof,S){case d:case y:case M:case j:case h:return S;default:return z}}case i:return z}}}function w(S){return b(S)===g}return Ce.AsyncMode=m,Ce.ConcurrentMode=g,Ce.ContextConsumer=d,Ce.ContextProvider=h,Ce.Element=r,Ce.ForwardRef=y,Ce.Fragment=l,Ce.Lazy=M,Ce.Memo=j,Ce.Portal=i,Ce.Profiler=c,Ce.StrictMode=u,Ce.Suspense=T,Ce.isAsyncMode=function(S){return w(S)||b(S)===m},Ce.isConcurrentMode=w,Ce.isContextConsumer=function(S){return b(S)===d},Ce.isContextProvider=function(S){return b(S)===h},Ce.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===r},Ce.isForwardRef=function(S){return b(S)===y},Ce.isFragment=function(S){return b(S)===l},Ce.isLazy=function(S){return b(S)===M},Ce.isMemo=function(S){return b(S)===j},Ce.isPortal=function(S){return b(S)===i},Ce.isProfiler=function(S){return b(S)===c},Ce.isStrictMode=function(S){return b(S)===u},Ce.isSuspense=function(S){return b(S)===T},Ce.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===l||S===g||S===c||S===u||S===T||S===O||typeof S=="object"&&S!==null&&(S.$$typeof===M||S.$$typeof===j||S.$$typeof===h||S.$$typeof===d||S.$$typeof===y||S.$$typeof===q||S.$$typeof===E||S.$$typeof===x||S.$$typeof===V)},Ce.typeOf=b,Ce}var Lg;function sx(){return Lg||(Lg=1,tf.exports=ix()),tf.exports}var nf,Hg;function lx(){if(Hg)return nf;Hg=1;var n=sx(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},l={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};c[n.ForwardRef]=l,c[n.Memo]=u;function h(M){return n.isMemo(M)?u:c[M.$$typeof]||r}var d=Object.defineProperty,m=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,T=Object.getPrototypeOf,O=Object.prototype;function j(M,V,q){if(typeof V!="string"){if(O){var E=T(V);E&&E!==O&&j(M,E,q)}var x=m(V);g&&(x=x.concat(g(V)));for(var b=h(M),w=h(V),S=0;S<x.length;++S){var z=x[S];if(!i[z]&&!(q&&q[z])&&!(w&&w[z])&&!(b&&b[z])){var Y=y(V,z);try{d(M,z,Y)}catch{}}}}return M}return nf=j,nf}lx();var Mh=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=H.createContext(null)):H.createContext(null);Mh.Consumer;var ox=Mh.Provider,ux=ox,cx=Mh;function yo(){var n=H.useContext(cx);return A_(n),n}var oh;(function(n){n.formatDate="FormattedDate",n.formatTime="FormattedTime",n.formatNumber="FormattedNumber",n.formatList="FormattedList",n.formatDisplayName="FormattedDisplayName"})(oh||(oh={}));var uh;(function(n){n.formatDate="FormattedDateParts",n.formatTime="FormattedTimeParts",n.formatNumber="FormattedNumberParts",n.formatList="FormattedListParts"})(uh||(uh={}));function w_(n){var r=function(i){var l=yo(),u=i.value,c=i.children,h=go(i,["value","children"]),d=typeof u=="string"?new Date(u||0):u,m=n==="formatDate"?l.formatDateToParts(d,h):l.formatTimeToParts(d,h);return c(m)};return r.displayName=uh[n],r}function os(n){var r=function(i){var l=yo(),u=i.value,c=i.children,h=go(i,["value","children"]),d=l[n](u,h);if(typeof c=="function")return c(d);var m=l.textComponent||H.Fragment;return H.createElement(m,null,d)};return r.displayName=oh[n],r}function R_(n){return n&&Object.keys(n).reduce(function(r,i){var l=n[i];return r[i]=__(l)?rx(l):l,r},{})}var zg=function(n,r,i,l){for(var u=[],c=4;c<arguments.length;c++)u[c-4]=arguments[c];var h=R_(l),d=lh.apply(void 0,vn([n,r,i,h],u,!1));return Array.isArray(d)?nx(d):d},kg=function(n,r){var i=n.defaultRichTextElements,l=go(n,["defaultRichTextElements"]),u=R_(i),c=JT(re(re(re({},O_),l),{defaultRichTextElements:u}),r),h={locale:c.locale,timeZone:c.timeZone,fallbackOnEmptyString:c.fallbackOnEmptyString,formats:c.formats,defaultLocale:c.defaultLocale,defaultFormats:c.defaultFormats,messages:c.messages,onError:c.onError,defaultRichTextElements:u};return re(re({},c),{formatMessage:zg.bind(null,h,c.formatters),$t:zg.bind(null,h,c.formatters)})};function rf(n){return{locale:n.locale,timeZone:n.timeZone,fallbackOnEmptyString:n.fallbackOnEmptyString,formats:n.formats,textComponent:n.textComponent,messages:n.messages,defaultLocale:n.defaultLocale,defaultFormats:n.defaultFormats,onError:n.onError,onWarn:n.onWarn,wrapRichTextChunksInFragment:n.wrapRichTextChunksInFragment,defaultRichTextElements:n.defaultRichTextElements}}var fx=function(n){Jt(r,n);function r(){var i=n!==null&&n.apply(this,arguments)||this;return i.cache=S_(),i.state={cache:i.cache,intl:kg(rf(i.props),i.cache),prevConfig:rf(i.props)},i}return r.getDerivedStateFromProps=function(i,l){var u=l.prevConfig,c=l.cache,h=rf(i);return ax(u,h)?null:{intl:kg(h,c),prevConfig:h}},r.prototype.render=function(){return A_(this.state.intl),H.createElement(ux,{value:this.state.intl},this.props.children)},r.displayName="IntlProvider",r.defaultProps=O_,r}(H.PureComponent);os("formatDate");os("formatTime");os("formatNumber");os("formatList");os("formatDisplayName");w_("formatDate");w_("formatTime");const hx="_app_1rj0t_1",dx={app:hx},Ia=CS,zt=MS,C_="%[a-f0-9]{2}",Gg=new RegExp("("+C_+")|([^%]+?)","gi"),qg=new RegExp("("+C_+")+","gi");function ch(n,r){try{return[decodeURIComponent(n.join(""))]}catch{}if(n.length===1)return n;r=r||1;const i=n.slice(0,r),l=n.slice(r);return Array.prototype.concat.call([],ch(i),ch(l))}function mx(n){try{return decodeURIComponent(n)}catch{let r=n.match(Gg)||[];for(let i=1;i<r.length;i++)n=ch(r,i).join(""),r=n.match(Gg)||[];return n}}function px(n){const r={"%FE%FF":"��","%FF%FE":"��"};let i=qg.exec(n);for(;i;){try{r[i[0]]=decodeURIComponent(i[0])}catch{const u=mx(i[0]);u!==i[0]&&(r[i[0]]=u)}i=qg.exec(n)}r["%C2"]="�";const l=Object.keys(r);for(const u of l)n=n.replace(new RegExp(u,"g"),r[u]);return n}function gx(n){if(typeof n!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof n+"`");try{return decodeURIComponent(n)}catch{return px(n)}}function yx(n,r){const i={};if(Array.isArray(r))for(const l of r){const u=Object.getOwnPropertyDescriptor(n,l);u?.enumerable&&Object.defineProperty(i,l,u)}else for(const l of Reflect.ownKeys(n)){const u=Object.getOwnPropertyDescriptor(n,l);if(u.enumerable){const c=n[l];r(l,c,n)&&Object.defineProperty(i,l,u)}}return i}function N_(n,r){if(!(typeof n=="string"&&typeof r=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(n===""||r==="")return[];const i=n.indexOf(r);return i===-1?[]:[n.slice(0,i),n.slice(i+r.length)]}const vx=n=>n==null,_x=n=>encodeURIComponent(n).replaceAll(/[!'()*]/g,r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`),fh=Symbol("encodeFragmentIdentifier");function bx(n){switch(n.arrayFormat){case"index":return r=>(i,l)=>{const u=i.length;return l===void 0||n.skipNull&&l===null||n.skipEmptyString&&l===""?i:l===null?[...i,[$e(r,n),"[",u,"]"].join("")]:[...i,[$e(r,n),"[",$e(u,n),"]=",$e(l,n)].join("")]};case"bracket":return r=>(i,l)=>l===void 0||n.skipNull&&l===null||n.skipEmptyString&&l===""?i:l===null?[...i,[$e(r,n),"[]"].join("")]:[...i,[$e(r,n),"[]=",$e(l,n)].join("")];case"colon-list-separator":return r=>(i,l)=>l===void 0||n.skipNull&&l===null||n.skipEmptyString&&l===""?i:l===null?[...i,[$e(r,n),":list="].join("")]:[...i,[$e(r,n),":list=",$e(l,n)].join("")];case"comma":case"separator":case"bracket-separator":{const r=n.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(l,u)=>u===void 0||n.skipNull&&u===null||n.skipEmptyString&&u===""?l:(u=u===null?"":u,l.length===0?[[$e(i,n),r,$e(u,n)].join("")]:[[l,$e(u,n)].join(n.arrayFormatSeparator)])}default:return r=>(i,l)=>l===void 0||n.skipNull&&l===null||n.skipEmptyString&&l===""?i:l===null?[...i,$e(r,n)]:[...i,[$e(r,n),"=",$e(l,n)].join("")]}}function Ex(n){let r;switch(n.arrayFormat){case"index":return(i,l,u)=>{if(r=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!r){u[i]=l;return}u[i]===void 0&&(u[i]={}),u[i][r[1]]=l};case"bracket":return(i,l,u)=>{if(r=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!r){u[i]=l;return}if(u[i]===void 0){u[i]=[l];return}u[i]=[...u[i],l]};case"colon-list-separator":return(i,l,u)=>{if(r=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!r){u[i]=l;return}if(u[i]===void 0){u[i]=[l];return}u[i]=[...u[i],l]};case"comma":case"separator":return(i,l,u)=>{const c=typeof l=="string"&&l.includes(n.arrayFormatSeparator),h=typeof l=="string"&&!c&&qn(l,n).includes(n.arrayFormatSeparator);l=h?qn(l,n):l;const d=c||h?l.split(n.arrayFormatSeparator).map(m=>qn(m,n)):l===null?l:qn(l,n);u[i]=d};case"bracket-separator":return(i,l,u)=>{const c=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!c){u[i]=l&&qn(l,n);return}const h=l===null?[]:qn(l,n).split(n.arrayFormatSeparator);if(u[i]===void 0){u[i]=h;return}u[i]=[...u[i],...h]};default:return(i,l,u)=>{if(u[i]===void 0){u[i]=l;return}u[i]=[...[u[i]].flat(),l]}}}function D_(n){if(typeof n!="string"||n.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function $e(n,r){return r.encode?r.strict?_x(n):encodeURIComponent(n):n}function qn(n,r){return r.decode?gx(n):n}function M_(n){return Array.isArray(n)?n.sort():typeof n=="object"?M_(Object.keys(n)).sort((r,i)=>Number(r)-Number(i)).map(r=>n[r]):n}function B_(n){const r=n.indexOf("#");return r!==-1&&(n=n.slice(0,r)),n}function Sx(n){let r="";const i=n.indexOf("#");return i!==-1&&(r=n.slice(i)),r}function Ig(n,r,i){return i==="string"&&typeof n=="string"?n:typeof i=="function"&&typeof n=="string"?i(n):i==="boolean"&&n!==null&&(n.toLowerCase()==="true"||n.toLowerCase()==="false")?n.toLowerCase()==="true":i==="boolean"&&n!==null&&(n.toLowerCase()==="1"||n.toLowerCase()==="0")?n.toLowerCase()==="1":i==="string[]"&&r.arrayFormat!=="none"&&typeof n=="string"?[n]:i==="number[]"&&r.arrayFormat!=="none"&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?[Number(n)]:i==="number"&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?Number(n):r.parseBooleans&&n!==null&&(n.toLowerCase()==="true"||n.toLowerCase()==="false")?n.toLowerCase()==="true":r.parseNumbers&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?Number(n):n}function Bh(n){n=B_(n);const r=n.indexOf("?");return r===-1?"":n.slice(r+1)}function jh(n,r){r={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...r},D_(r.arrayFormatSeparator);const i=Ex(r),l=Object.create(null);if(typeof n!="string"||(n=n.trim().replace(/^[?#&]/,""),!n))return l;for(const u of n.split("&")){if(u==="")continue;const c=r.decode?u.replaceAll("+"," "):u;let[h,d]=N_(c,"=");h===void 0&&(h=c),d=d===void 0?null:["comma","separator","bracket-separator"].includes(r.arrayFormat)?d:qn(d,r),i(qn(h,r),d,l)}for(const[u,c]of Object.entries(l))if(typeof c=="object"&&c!==null&&r.types[u]!=="string")for(const[h,d]of Object.entries(c)){const m=r.types[u]?r.types[u].replace("[]",""):void 0;c[h]=Ig(d,r,m)}else typeof c=="object"&&c!==null&&r.types[u]==="string"?l[u]=Object.values(c).join(r.arrayFormatSeparator):l[u]=Ig(c,r,r.types[u]);return r.sort===!1?l:(r.sort===!0?Object.keys(l).sort():Object.keys(l).sort(r.sort)).reduce((u,c)=>{const h=l[c];return u[c]=h&&typeof h=="object"&&!Array.isArray(h)?M_(h):h,u},Object.create(null))}function j_(n,r){if(!n)return"";r={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...r},D_(r.arrayFormatSeparator);const i=h=>r.skipNull&&vx(n[h])||r.skipEmptyString&&n[h]==="",l=bx(r),u={};for(const[h,d]of Object.entries(n))i(h)||(u[h]=d);const c=Object.keys(u);return r.sort!==!1&&c.sort(r.sort),c.map(h=>{const d=n[h];return d===void 0?"":d===null?$e(h,r):Array.isArray(d)?d.length===0&&r.arrayFormat==="bracket-separator"?$e(h,r)+"[]":d.reduce(l(h),[]).join("&"):$e(h,r)+"="+$e(d,r)}).filter(h=>h.length>0).join("&")}function U_(n,r){r={decode:!0,...r};let[i,l]=N_(n,"#");return i===void 0&&(i=n),{url:i?.split("?")?.[0]??"",query:jh(Bh(n),r),...r&&r.parseFragmentIdentifier&&l?{fragmentIdentifier:qn(l,r)}:{}}}function L_(n,r){r={encode:!0,strict:!0,[fh]:!0,...r};const i=B_(n.url).split("?")[0]||"",l=Bh(n.url),u={...jh(l,{sort:!1,...r}),...n.query};let c=j_(u,r);c&&=`?${c}`;let h=Sx(n.url);if(typeof n.fragmentIdentifier=="string"){const d=new URL(i);d.hash=n.fragmentIdentifier,h=r[fh]?d.hash:`#${n.fragmentIdentifier}`}return`${i}${c}${h}`}function H_(n,r,i){i={parseFragmentIdentifier:!0,[fh]:!1,...i};const{url:l,query:u,fragmentIdentifier:c}=U_(n,i);return L_({url:l,query:yx(u,r),fragmentIdentifier:c},i)}function Tx(n,r,i){const l=Array.isArray(r)?u=>!r.includes(u):(u,c)=>!r(u,c);return H_(n,l,i)}const vo=Object.freeze(Object.defineProperty({__proto__:null,exclude:Tx,extract:Bh,parse:jh,parseUrl:U_,pick:H_,stringify:j_,stringifyUrl:L_},Symbol.toStringTag,{value:"Module"}));var rn={},an={},Me={},wl={},he={},Fg;function qt(){return Fg||(Fg=1,Object.defineProperty(he,"__esModule",{value:!0}),he.GUEST_LOCALE_CHANGED=he.DRAWER_CLOSE=he.DRAWER_OPEN=he.CONVERSATION_RATING_FROM_GUEST=he.TRANSCRIPT_ITEM_GUEST_REACTION=he.TRANSCRIPT_MAIL_REQUEST=he.INBOX_CONNECT_REQUEST=he.RESTART_CHAT_REQUEST=he.EVENT_TO_GUEST=he.NLU_REQUEST_EVENT=he.EXPERTS_DISCONNECTED=he.EXPERTS_DISCONNECT_REQUEST=he.EXPERTS_CONNECTED=he.EXPERTS_CONNECT_REQUEST=he.MESSAGE_TO_GUEST=he.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST=he.MESSAGE_FROM_GUEST=he.GUEST_FEEDBACK_RESPONSE=he.GUEST_DISCONNECTED=he.GUEST_CONNECTED=he.TYPING_OFF=he.TYPING_ON=void 0,he.TYPING_ON="core.typing.on",he.TYPING_OFF="core.typing.off",he.GUEST_CONNECTED="core.guest.connected",he.GUEST_DISCONNECTED="core.guest.disconnected",he.GUEST_FEEDBACK_RESPONSE="core.guest.feedback.response",he.MESSAGE_FROM_GUEST="core.message.from.guest",he.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST="core.message.without.analysis.from.guest",he.MESSAGE_TO_GUEST="core.message.to.guest",he.EXPERTS_CONNECT_REQUEST="core.experts.connect.request",he.EXPERTS_CONNECTED="core.experts.connected",he.EXPERTS_DISCONNECT_REQUEST="core.experts.disconnect.request",he.EXPERTS_DISCONNECTED="core.experts.disconnected",he.NLU_REQUEST_EVENT="core.nlu.request.event",he.EVENT_TO_GUEST="core.event.to.guest",he.RESTART_CHAT_REQUEST="core.chat.restart.request",he.INBOX_CONNECT_REQUEST="core.inbox.connect.request",he.TRANSCRIPT_MAIL_REQUEST="core.transcript.mail.request",he.TRANSCRIPT_ITEM_GUEST_REACTION="core.transcript.item.guest.reaction",he.CONVERSATION_RATING_FROM_GUEST="core.conversation.rating.from.guest",he.DRAWER_OPEN="core.drawer.open",he.DRAWER_CLOSE="core.drawer.close",he.GUEST_LOCALE_CHANGED="core.guest.locale.changed"),he}var Vg;function xx(){if(Vg)return wl;Vg=1,Object.defineProperty(wl,"__esModule",{value:!0});const n=qt(),r=()=>({type:n.DRAWER_CLOSE});return wl.default=r,wl}var Rl={},Pg;function Ax(){if(Pg)return Rl;Pg=1,Object.defineProperty(Rl,"__esModule",{value:!0});const n=qt(),r=(i,l)=>({type:n.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:i,intent:l}});return Rl.default=r,Rl}var Cl={},Yg;function Ox(){if(Yg)return Cl;Yg=1,Object.defineProperty(Cl,"__esModule",{value:!0});const n=qt(),r=i=>({type:n.GUEST_CONNECTED,payload:{sessionId:i}});return Cl.default=r,Cl}var Nl={},Zg;function wx(){if(Zg)return Nl;Zg=1,Object.defineProperty(Nl,"__esModule",{value:!0});const n=qt(),r=i=>({type:n.GUEST_DISCONNECTED,payload:{sessionId:i}});return Nl.default=r,Nl}var Dl={},Xg;function Rx(){if(Xg)return Dl;Xg=1,Object.defineProperty(Dl,"__esModule",{value:!0});const n=qt(),r=(i,l)=>({type:n.GUEST_LOCALE_CHANGED,payload:{previousLocale:i,newLocale:l}});return Dl.default=r,Dl}var Ml={},Qg;function Cx(){if(Qg)return Ml;Qg=1,Object.defineProperty(Ml,"__esModule",{value:!0});const n=qt(),r=i=>({type:n.DRAWER_OPEN,payload:{parameters:{contentUrl:i}}});return Ml.default=r,Ml}var Bl={},Ie={},Kg;function Uh(){if(Kg)return Ie;Kg=1,Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.getStringRepresentationFromMessage=Ie.MessageTypeEnum=Ie.AudioMessage=Ie.FileMessage=Ie.ImageMessage=Ie.VideoMessage=Ie.MarkdownMessage=Ie.DetailMessage=Ie.TextMessage=Ie.Message=void 0;class n{type;sender;sources;quickReplies;constructor(T,O,j=[],M=[]){this.type=T,this.sender=O,this.sources=j,this.quickReplies=M}addQuickReply(T,O){this.quickReplies.push({label:T,payload:O})}}Ie.Message=n;class r extends n{text;constructor(T,O,j=[],M=[]){super(m.TEXT,O,j,M),this.text=T}}Ie.TextMessage=r;class i extends n{title;subtitle;text;imageUrl;itemUrl;buttons;constructor(T,O){super(m.DETAIL,O),this.title=T,this.text="",this.subtitle="",this.imageUrl="",this.itemUrl="",this.buttons=[]}setImageUrl(T){this.imageUrl=T}setItemUrl(T){this.itemUrl=T}setSubtitle(T){this.subtitle=T}setText(T){this.text=T}addButton(T){this.buttons.push(T)}}Ie.DetailMessage=i;class l extends n{markdown;constructor(T,O,j=[],M=[]){super(m.MARKDOWN,O,j,M),this.markdown=T}}Ie.MarkdownMessage=l;class u extends n{url;constructor(T,O){super(m.VIDEO,O),this.url=T}}Ie.VideoMessage=u;class c extends n{url;constructor(T,O){super(m.IMAGE,O),this.url=T}}Ie.ImageMessage=c;class h extends n{url;constructor(T,O){super(m.FILE,O),this.url=T}}Ie.FileMessage=h;class d extends n{url;constructor(T,O){super(m.AUDIO,O),this.url=T}}Ie.AudioMessage=d;var m;(function(y){y.TEXT="TEXT",y.DETAIL="DETAIL",y.MARKDOWN="MARKDOWN",y.VIDEO="VIDEO",y.IMAGE="IMAGE",y.FILE="FILE",y.AUDIO="AUDIO"})(m||(Ie.MessageTypeEnum=m={}));const g=y=>{switch(y.type){case m.TEXT:return y.text;case m.DETAIL:{const T=y;return`${T.title} // ${T.subtitle}`}case m.MARKDOWN:return y.markdown;case m.VIDEO:return`Video Url: ${y.url}`;case m.IMAGE:return`Image Url: ${y.url}`;case m.FILE:return`File Url: ${y.url}`;case m.AUDIO:return`Audio Url: ${y.url}`;default:throw new Error("Unknown message type "+y.type)}};return Ie.getStringRepresentationFromMessage=g,Ie}var Lt={},$g;function Lh(){if($g)return Lt;$g=1,Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.UserType=Lt.PersonUser=Lt.GuestUser=Lt.BotUser=Lt.User=void 0;class n{type;id;name;avatar;constructor(h,d,m,g){this.type=h,this.id=d,this.name=m,this.avatar=g}}Lt.User=n;class r extends n{constructor(){super(u.BOT,null,"Chatbot","bot.svg")}}Lt.BotUser=r;class i extends n{constructor(){super(u.GUEST,null,"Guest","visitor.svg")}}Lt.GuestUser=i;class l extends n{constructor(h,d,m){super(u.PERSON,h,d,m)}}Lt.PersonUser=l;var u;return function(c){c.GUEST="GUEST",c.BOT="BOT",c.PERSON="PERSON"}(u||(Lt.UserType=u={})),Lt}var Jg;function Nx(){if(Jg)return Bl;Jg=1,Object.defineProperty(Bl,"__esModule",{value:!0});const n=Uh(),r=Lh(),i=qt(),l=u=>{const c=new n.TextMessage(u,new r.GuestUser);return{type:i.MESSAGE_FROM_GUEST,message:c}};return Bl.default=l,Bl}var jl={},Wg;function Dx(){if(Wg)return jl;Wg=1,Object.defineProperty(jl,"__esModule",{value:!0});const n=Uh(),r=Lh(),i=qt(),l=(u,c={})=>{const h=new n.TextMessage(u,new r.GuestUser);return{type:i.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST,message:h,payload:c}};return jl.default=l,jl}var Ul={},ey;function Mx(){if(ey)return Ul;ey=1,Object.defineProperty(Ul,"__esModule",{value:!0});const n=qt(),r=i=>({type:n.NLU_REQUEST_EVENT,event:i});return Ul.default=r,Ul}var Ll={},ty;function Bx(){if(ty)return Ll;ty=1,Object.defineProperty(Ll,"__esModule",{value:!0});const n=qt(),r=()=>({type:n.RESTART_CHAT_REQUEST});return Ll.default=r,Ll}var Hl={},ny;function jx(){if(ny)return Hl;ny=1,Object.defineProperty(Hl,"__esModule",{value:!0});const n=qt(),r=i=>({type:n.MESSAGE_TO_GUEST,message:i});return Hl.default=r,Hl}var zl={},ry;function Ux(){if(ry)return zl;ry=1,Object.defineProperty(zl,"__esModule",{value:!0});const n=qt(),r=(i,l)=>({type:n.TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:i,reaction:l}});return zl.default=r,zl}var ay;function Lx(){if(ay)return Me;ay=1;var n=Me&&Me.__importDefault||function(j){return j&&j.__esModule?j:{default:j}};Object.defineProperty(Me,"__esModule",{value:!0}),Me.transcriptItemGuestReaction=Me.sendMessageToGuest=Me.restartChatRequest=Me.requestNLUEvent=Me.receiveTextMessageWithoutAnalysisFromGuest=Me.receiveTextMessageFromGuest=Me.openDrawer=Me.guestLocaleChanged=Me.guestDisconnected=Me.guestConnected=Me.feedbackFromGuestResponse=Me.closeDrawer=void 0;const r=n(xx());Me.closeDrawer=r.default;const i=n(Ax());Me.feedbackFromGuestResponse=i.default;const l=n(Ox());Me.guestConnected=l.default;const u=n(wx());Me.guestDisconnected=u.default;const c=n(Rx());Me.guestLocaleChanged=c.default;const h=n(Cx());Me.openDrawer=h.default;const d=n(Nx());Me.receiveTextMessageFromGuest=d.default;const m=n(Dx());Me.receiveTextMessageWithoutAnalysisFromGuest=m.default;const g=n(Mx());Me.requestNLUEvent=g.default;const y=n(Bx());Me.restartChatRequest=y.default;const T=n(jx());Me.sendMessageToGuest=T.default;const O=n(Ux());return Me.transcriptItemGuestReaction=O.default,Me}var af={},iy;function Hx(){return iy||(iy=1,Object.defineProperty(af,"__esModule",{value:!0})),af}var sy;function zx(){return sy||(sy=1,function(n){var r=an&&an.__createBinding||(Object.create?function(c,h,d,m){m===void 0&&(m=d);var g=Object.getOwnPropertyDescriptor(h,d);(!g||("get"in g?!h.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return h[d]}}),Object.defineProperty(c,m,g)}:function(c,h,d,m){m===void 0&&(m=d),c[m]=h[d]}),i=an&&an.__setModuleDefault||(Object.create?function(c,h){Object.defineProperty(c,"default",{enumerable:!0,value:h})}:function(c,h){c.default=h}),l=an&&an.__importStar||function(){var c=function(h){return c=Object.getOwnPropertyNames||function(d){var m=[];for(var g in d)Object.prototype.hasOwnProperty.call(d,g)&&(m[m.length]=g);return m},c(h)};return function(h){if(h&&h.__esModule)return h;var d={};if(h!=null)for(var m=c(h),g=0;g<m.length;g++)m[g]!=="default"&&r(d,h,m[g]);return i(d,h),d}}(),u=an&&an.__exportStar||function(c,h){for(var d in c)d!=="default"&&!Object.prototype.hasOwnProperty.call(h,d)&&r(h,c,d)};Object.defineProperty(n,"__esModule",{value:!0}),n.ActionTypes=n.Actions=void 0,n.Actions=l(Lx()),n.ActionTypes=l(qt()),u(Hx(),n)}(an)),an}var Ht={},sf={},ly;function kx(){return ly||(ly=1,Object.defineProperty(sf,"__esModule",{value:!0})),sf}var Vi={},oy;function Gx(){if(oy)return Vi;oy=1,Object.defineProperty(Vi,"__esModule",{value:!0}),Vi.NullableKnowledgeBaseAdapter=void 0;class n{async createApiKnowledgeBase(i){throw new Error("Method not implemented.")}async updateApiKnowledgeBase(i,l){throw new Error("Method not implemented.")}async deleteApiKnowledgeBase(i){throw new Error("Method not implemented.")}async upsertApiKnowledgeBase(i){throw new Error("Method not implemented.")}async findApiKnowledgeBaseById(i){throw new Error("Method not implemented.")}async findApiKnowledgeBaseByName(i){throw new Error("Method not implemented.")}async findApiKnowledgeBases(){throw new Error("Method not implemented.")}async deleteApiKnowledgeBaseByName(i){throw new Error("Method not implemented.")}async findKnowledgeBaseEntries(i){throw new Error("Method not implemented.")}async createKnowledgeBaseEntry(i,l){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntry(i,l,u){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntry(i,l){throw new Error("Method not implemented.")}async upsertKnowledgeBaseEntry(i,l){throw new Error("Method not implemented.")}async retrieveKnowledgeBaseEntryConfig(i,l){throw new Error("Method not implemented.")}async findKnowledgeBaseEntryByUriAlias(i,l){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntriesIndexedBeforeDate(i,l){throw new Error("Method not implemented.")}async findKnowledgeBaseEntryAttachments(i,l){throw new Error("Method not implemented.")}async createKnowledgeBaseEntryAttachment(i,l,u){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntryAttachment(i,l,u,c){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntryAttachment(i,l,u){throw new Error("Method not implemented.")}async setIndexingStatus(i,l){throw new Error("Method not implemented.")}async subscribeToReindex(i,l){throw new Error("Method not implemented.")}isContentTypeSupported(i){throw new Error("Method not implemented.")}registerTool(i,l){throw new Error("Method not implemented.")}async getTools(i){throw new Error("Method not implemented.")}}return Vi.NullableKnowledgeBaseAdapter=n,Vi}var uy;function qx(){if(uy)return Ht;uy=1;var n=Ht&&Ht.__createBinding||(Object.create?function(u,c,h,d){d===void 0&&(d=h);var m=Object.getOwnPropertyDescriptor(c,h);(!m||("get"in m?!c.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return c[h]}}),Object.defineProperty(u,d,m)}:function(u,c,h,d){d===void 0&&(d=h),u[d]=c[h]}),r=Ht&&Ht.__setModuleDefault||(Object.create?function(u,c){Object.defineProperty(u,"default",{enumerable:!0,value:c})}:function(u,c){u.default=c}),i=Ht&&Ht.__importStar||function(){var u=function(c){return u=Object.getOwnPropertyNames||function(h){var d=[];for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&(d[d.length]=m);return d},u(c)};return function(c){if(c&&c.__esModule)return c;var h={};if(c!=null)for(var d=u(c),m=0;m<d.length;m++)d[m]!=="default"&&n(h,c,d[m]);return r(h,c),h}}();Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.NullableCmsAdapter=Ht.KnowledgeBase=void 0,Ht.KnowledgeBase=i(kx());const l=Gx();return Ht.NullableCmsAdapter={knowledgeBase:new l.NullableKnowledgeBaseAdapter},Ht}var qr={},lf={},cy;function Ix(){return cy||(cy=1,Object.defineProperty(lf,"__esModule",{value:!0})),lf}var of={},fy;function Fx(){return fy||(fy=1,Object.defineProperty(of,"__esModule",{value:!0})),of}var uf={},hy;function Vx(){return hy||(hy=1,Object.defineProperty(uf,"__esModule",{value:!0})),uf}var cf={},dy;function Px(){return dy||(dy=1,Object.defineProperty(cf,"__esModule",{value:!0})),cf}var Pi={},my;function Yx(){if(my)return Pi;my=1,Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.checkMiddlewareCondition=void 0;const n=async(r,i,l)=>(Array.isArray(r)?r:[r]).reduce(async(c,h)=>await c?await h(i,l):!1,Promise.resolve(!0));return Pi.checkMiddlewareCondition=n,Pi}var ff={},py;function Zx(){return py||(py=1,Object.defineProperty(ff,"__esModule",{value:!0})),ff}var hf={},gy;function Xx(){return gy||(gy=1,Object.defineProperty(hf,"__esModule",{value:!0})),hf}var df={},yy;function Qx(){return yy||(yy=1,Object.defineProperty(df,"__esModule",{value:!0})),df}var vy;function Kx(){return vy||(vy=1,function(n){var r=qr&&qr.__createBinding||(Object.create?function(l,u,c,h){h===void 0&&(h=c);var d=Object.getOwnPropertyDescriptor(u,c);(!d||("get"in d?!u.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return u[c]}}),Object.defineProperty(l,h,d)}:function(l,u,c,h){h===void 0&&(h=c),l[h]=u[c]}),i=qr&&qr.__exportStar||function(l,u){for(var c in l)c!=="default"&&!Object.prototype.hasOwnProperty.call(u,c)&&r(u,l,c)};Object.defineProperty(n,"__esModule",{value:!0}),i(Ix(),n),i(Fx(),n),i(Vx(),n),i(Px(),n),i(Yx(),n),i(Zx(),n),i(Xx(),n),i(Qx(),n)}(qr)),qr}var Ir={},sn={},_y;function $x(){if(_y)return sn;_y=1,Object.defineProperty(sn,"__esModule",{value:!0}),sn.ButtonTypeEnum=sn.PostbackButton=sn.UrlButton=sn.Button=void 0;class n{title;type;constructor(c,h){this.title=c,this.type=h}}sn.Button=n;class r extends n{url;constructor(c,h){super(c,l.WEB_URL),this.url=h}}sn.UrlButton=r;class i extends n{payload;constructor(c,h){super(c,l.POSTBACK),this.payload=h}}sn.PostbackButton=i;var l;return function(u){u.WEB_URL="web_url",u.POSTBACK="postback"}(l||(sn.ButtonTypeEnum=l={})),sn}var mf={},by;function Jx(){return by||(by=1,Object.defineProperty(mf,"__esModule",{value:!0})),mf}var Yi={},Ey;function Wx(){if(Ey)return Yi;Ey=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.SatisfactionEnum=void 0;var n;return function(r){r.GOOD="GOOD",r.BAD="BAD"}(n||(Yi.SatisfactionEnum=n={})),Yi}var Sy;function Ty(){return Sy||(Sy=1,function(n){var r=Ir&&Ir.__createBinding||(Object.create?function(l,u,c,h){h===void 0&&(h=c);var d=Object.getOwnPropertyDescriptor(u,c);(!d||("get"in d?!u.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return u[c]}}),Object.defineProperty(l,h,d)}:function(l,u,c,h){h===void 0&&(h=c),l[h]=u[c]}),i=Ir&&Ir.__exportStar||function(l,u){for(var c in l)c!=="default"&&!Object.prototype.hasOwnProperty.call(u,c)&&r(u,l,c)};Object.defineProperty(n,"__esModule",{value:!0}),i($x(),n),i(Jx(),n),i(Wx(),n),i(Uh(),n),i(Lh(),n)}(Ir)),Ir}var xy;function eA(){return xy||(xy=1,function(n){var r=rn&&rn.__createBinding||(Object.create?function(c,h,d,m){m===void 0&&(m=d);var g=Object.getOwnPropertyDescriptor(h,d);(!g||("get"in g?!h.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return h[d]}}),Object.defineProperty(c,m,g)}:function(c,h,d,m){m===void 0&&(m=d),c[m]=h[d]}),i=rn&&rn.__setModuleDefault||(Object.create?function(c,h){Object.defineProperty(c,"default",{enumerable:!0,value:h})}:function(c,h){c.default=h}),l=rn&&rn.__exportStar||function(c,h){for(var d in c)d!=="default"&&!Object.prototype.hasOwnProperty.call(h,d)&&r(h,c,d)},u=rn&&rn.__importStar||function(){var c=function(h){return c=Object.getOwnPropertyNames||function(d){var m=[];for(var g in d)Object.prototype.hasOwnProperty.call(d,g)&&(m[m.length]=g);return m},c(h)};return function(h){if(h&&h.__esModule)return h;var d={};if(h!=null)for(var m=c(h),g=0;g<m.length;g++)m[g]!=="default"&&r(d,h,m[g]);return i(d,h),d}}();Object.defineProperty(n,"__esModule",{value:!0}),n.Model=n.CMS=void 0,l(zx(),n),n.CMS=u(qx()),l(Kx(),n),l(Ty(),n),n.Model=u(Ty())}(rn)),rn}var Ee=eA();const z_=n=>r=>(n.payload.type!==Ee.ActionTypes.MESSAGE_FROM_GUEST&&r(Ee.Actions.receiveTextMessageWithoutAnalysisFromGuest(n.label,n.payload)),r(n.payload)),k_=n=>(r,i)=>{const{quickReplies:l}=i().chat,u=l.find(c=>n.toLocaleLowerCase().indexOf(c.label.toLocaleLowerCase())>-1);return r(u?z_({...u,label:n}):JSON.parse(JSON.stringify(Ee.Actions.receiveTextMessageFromGuest(n))))},Hh="MESSAGE_TO_PARENT_PAGE",zh="RESTORE_PREVIOUS_CHAT_MESSAGES",kh="AUDIO_MESSAGE_FROM_USER",tA="EXPORT_TRANSCRIPT",Gh="RECEIVE_SPEECH_TRANSCRIPTION",qh="ENABLE_CONVERSATION_RATING",G_="LOAD_SOURCE_INFOS_RESPONSE",Ih="LOAD_SOURCE_INFOS_ERROR",Fh="LOAD_SOURCE_INFOS_REQUEST",Vh="CLOSE_SOURCE_INFOS",nA="webclient.get.started",q_="webclient.window.expand",I_="webclient.window.close",F_="webclient.transcript.pdf.download",rA=[Hh,zh,kh,tA,Gh,qh,Fh,Vh],aA=n=>({type:kh,buffer:n}),iA=n=>({type:Gh,transcription:n}),sA=n=>({type:Ee.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:n}}}),lA=()=>({type:F_}),oA=({rating:n})=>({type:qh,payload:{rating:n}}),uA=(n,r)=>({type:Ee.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:n,feedback:r}}),V_=n=>Ee.Actions.requestNLUEvent(n),cA=n=>({type:zh,messages:n}),fA=n=>{switch(n.type){case Ee.ButtonTypeEnum.WEB_URL:return P_(n.url);case Ee.ButtonTypeEnum.POSTBACK:return n.payload;default:throw new Error(`unknown button type ${n.type}`)}},hA=n=>P_(n),P_=n=>({type:Hh,message:{type:"webclient.change.url",url:n}});/*! js-cookie v3.0.5 | MIT */function kl(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var l in i)n[l]=i[l]}return n}var dA={read:function(n){return n[0]==='"'&&(n=n.slice(1,-1)),n.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(n){return encodeURIComponent(n).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function hh(n,r){function i(u,c,h){if(!(typeof document>"u")){h=kl({},r,h),typeof h.expires=="number"&&(h.expires=new Date(Date.now()+h.expires*864e5)),h.expires&&(h.expires=h.expires.toUTCString()),u=encodeURIComponent(u).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var d="";for(var m in h)h[m]&&(d+="; "+m,h[m]!==!0&&(d+="="+h[m].split(";")[0]));return document.cookie=u+"="+n.write(c,u)+d}}function l(u){if(!(typeof document>"u"||arguments.length&&!u)){for(var c=document.cookie?document.cookie.split("; "):[],h={},d=0;d<c.length;d++){var m=c[d].split("="),g=m.slice(1).join("=");try{var y=decodeURIComponent(m[0]);if(h[y]=n.read(g,y),u===y)break}catch{}}return u?h[u]:h}}return Object.create({set:i,get:l,remove:function(u,c){i(u,"",kl({},c,{expires:-1}))},withAttributes:function(u){return hh(this.converter,kl({},this.attributes,u))},withConverter:function(u){return hh(kl({},this.converter,u),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(n)}})}var Gl=hh(dA,{path:"/"});const ct=[];for(let n=0;n<256;++n)ct.push((n+256).toString(16).slice(1));function mA(n,r=0){return(ct[n[r+0]]+ct[n[r+1]]+ct[n[r+2]]+ct[n[r+3]]+"-"+ct[n[r+4]]+ct[n[r+5]]+"-"+ct[n[r+6]]+ct[n[r+7]]+"-"+ct[n[r+8]]+ct[n[r+9]]+"-"+ct[n[r+10]]+ct[n[r+11]]+ct[n[r+12]]+ct[n[r+13]]+ct[n[r+14]]+ct[n[r+15]]).toLowerCase()}let pf;const pA=new Uint8Array(16);function gA(){if(!pf){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");pf=crypto.getRandomValues.bind(crypto)}return pf(pA)}const yA=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Ay={randomUUID:yA};function dh(n,r,i){if(Ay.randomUUID&&!n)return Ay.randomUUID();n=n||{};const l=n.random??n.rng?.()??gA();if(l.length<16)throw new Error("Random bytes length must be >= 16");return l[6]=l[6]&15|64,l[8]=l[8]&63|128,mA(l)}function ft(n){return`Minified Redux error #${n}; visit https://redux.js.org/Errors?code=${n} for the full message or use the non-minified dev environment for full errors. `}var vA=typeof Symbol=="function"&&Symbol.observable||"@@observable",Oy=vA,gf=()=>Math.random().toString(36).substring(7).split("").join("."),_A={INIT:`@@redux/INIT${gf()}`,REPLACE:`@@redux/REPLACE${gf()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${gf()}`},lo=_A;function Ph(n){if(typeof n!="object"||n===null)return!1;let r=n;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(n)===r||Object.getPrototypeOf(n)===null}function Y_(n,r,i){if(typeof n!="function")throw new Error(ft(2));if(typeof r=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(ft(0));if(typeof r=="function"&&typeof i>"u"&&(i=r,r=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(ft(1));return i(Y_)(n,r)}let l=n,u=r,c=new Map,h=c,d=0,m=!1;function g(){h===c&&(h=new Map,c.forEach((q,E)=>{h.set(E,q)}))}function y(){if(m)throw new Error(ft(3));return u}function T(q){if(typeof q!="function")throw new Error(ft(4));if(m)throw new Error(ft(5));let E=!0;g();const x=d++;return h.set(x,q),function(){if(E){if(m)throw new Error(ft(6));E=!1,g(),h.delete(x),c=null}}}function O(q){if(!Ph(q))throw new Error(ft(7));if(typeof q.type>"u")throw new Error(ft(8));if(typeof q.type!="string")throw new Error(ft(17));if(m)throw new Error(ft(9));try{m=!0,u=l(u,q)}finally{m=!1}return(c=h).forEach(x=>{x()}),q}function j(q){if(typeof q!="function")throw new Error(ft(10));l=q,O({type:lo.REPLACE})}function M(){const q=T;return{subscribe(E){if(typeof E!="object"||E===null)throw new Error(ft(11));function x(){const w=E;w.next&&w.next(y())}return x(),{unsubscribe:q(x)}},[Oy](){return this}}}return O({type:lo.INIT}),{dispatch:O,subscribe:T,getState:y,replaceReducer:j,[Oy]:M}}function bA(n){Object.keys(n).forEach(r=>{const i=n[r];if(typeof i(void 0,{type:lo.INIT})>"u")throw new Error(ft(12));if(typeof i(void 0,{type:lo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ft(13))})}function Z_(n){const r=Object.keys(n),i={};for(let c=0;c<r.length;c++){const h=r[c];typeof n[h]=="function"&&(i[h]=n[h])}const l=Object.keys(i);let u;try{bA(i)}catch(c){u=c}return function(h={},d){if(u)throw u;let m=!1;const g={};for(let y=0;y<l.length;y++){const T=l[y],O=i[T],j=h[T],M=O(j,d);if(typeof M>"u")throw d&&d.type,new Error(ft(14));g[T]=M,m=m||M!==j}return m=m||l.length!==Object.keys(h).length,m?g:h}}function oo(...n){return n.length===0?r=>r:n.length===1?n[0]:n.reduce((r,i)=>(...l)=>r(i(...l)))}function EA(...n){return r=>(i,l)=>{const u=r(i,l);let c=()=>{throw new Error(ft(15))};const h={getState:u.getState,dispatch:(m,...g)=>c(m,...g)},d=n.map(m=>m(h));return c=oo(...d)(u.dispatch),{...u,dispatch:c}}}function SA(n){return Ph(n)&&"type"in n&&typeof n.type=="string"}var X_=Symbol.for("immer-nothing"),wy=Symbol.for("immer-draftable"),kt=Symbol.for("immer-state");function un(n,...r){throw new Error(`[Immer] minified error nr: ${n}. Full error at: https://bit.ly/3cXEKWf`)}var ka=Object.getPrototypeOf;function Kr(n){return!!n&&!!n[kt]}function Pn(n){return n?Q_(n)||Array.isArray(n)||!!n[wy]||!!n.constructor?.[wy]||bo(n)||Eo(n):!1}var TA=Object.prototype.constructor.toString();function Q_(n){if(!n||typeof n!="object")return!1;const r=ka(n);if(r===null)return!0;const i=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return i===Object?!0:typeof i=="function"&&Function.toString.call(i)===TA}function uo(n,r){_o(n)===0?Reflect.ownKeys(n).forEach(i=>{r(i,n[i],n)}):n.forEach((i,l)=>r(l,i,n))}function _o(n){const r=n[kt];return r?r.type_:Array.isArray(n)?1:bo(n)?2:Eo(n)?3:0}function mh(n,r){return _o(n)===2?n.has(r):Object.prototype.hasOwnProperty.call(n,r)}function K_(n,r,i){const l=_o(n);l===2?n.set(r,i):l===3?n.add(i):n[r]=i}function xA(n,r){return n===r?n!==0||1/n===1/r:n!==n&&r!==r}function bo(n){return n instanceof Map}function Eo(n){return n instanceof Set}function Yr(n){return n.copy_||n.base_}function ph(n,r){if(bo(n))return new Map(n);if(Eo(n))return new Set(n);if(Array.isArray(n))return Array.prototype.slice.call(n);const i=Q_(n);if(r===!0||r==="class_only"&&!i){const l=Object.getOwnPropertyDescriptors(n);delete l[kt];let u=Reflect.ownKeys(l);for(let c=0;c<u.length;c++){const h=u[c],d=l[h];d.writable===!1&&(d.writable=!0,d.configurable=!0),(d.get||d.set)&&(l[h]={configurable:!0,writable:!0,enumerable:d.enumerable,value:n[h]})}return Object.create(ka(n),l)}else{const l=ka(n);if(l!==null&&i)return{...n};const u=Object.create(l);return Object.assign(u,n)}}function Yh(n,r=!1){return So(n)||Kr(n)||!Pn(n)||(_o(n)>1&&(n.set=n.add=n.clear=n.delete=AA),Object.freeze(n),r&&Object.entries(n).forEach(([i,l])=>Yh(l,!0))),n}function AA(){un(2)}function So(n){return Object.isFrozen(n)}var OA={};function $r(n){const r=OA[n];return r||un(0,n),r}var ns;function $_(){return ns}function wA(n,r){return{drafts_:[],parent_:n,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Ry(n,r){r&&($r("Patches"),n.patches_=[],n.inversePatches_=[],n.patchListener_=r)}function gh(n){yh(n),n.drafts_.forEach(RA),n.drafts_=null}function yh(n){n===ns&&(ns=n.parent_)}function Cy(n){return ns=wA(ns,n)}function RA(n){const r=n[kt];r.type_===0||r.type_===1?r.revoke_():r.revoked_=!0}function Ny(n,r){r.unfinalizedDrafts_=r.drafts_.length;const i=r.drafts_[0];return n!==void 0&&n!==i?(i[kt].modified_&&(gh(r),un(4)),Pn(n)&&(n=co(r,n),r.parent_||fo(r,n)),r.patches_&&$r("Patches").generateReplacementPatches_(i[kt].base_,n,r.patches_,r.inversePatches_)):n=co(r,i,[]),gh(r),r.patches_&&r.patchListener_(r.patches_,r.inversePatches_),n!==X_?n:void 0}function co(n,r,i){if(So(r))return r;const l=r[kt];if(!l)return uo(r,(u,c)=>Dy(n,l,r,u,c,i)),r;if(l.scope_!==n)return r;if(!l.modified_)return fo(n,l.base_,!0),l.base_;if(!l.finalized_){l.finalized_=!0,l.scope_.unfinalizedDrafts_--;const u=l.copy_;let c=u,h=!1;l.type_===3&&(c=new Set(u),u.clear(),h=!0),uo(c,(d,m)=>Dy(n,l,u,d,m,i,h)),fo(n,u,!1),i&&n.patches_&&$r("Patches").generatePatches_(l,i,n.patches_,n.inversePatches_)}return l.copy_}function Dy(n,r,i,l,u,c,h){if(Kr(u)){const d=c&&r&&r.type_!==3&&!mh(r.assigned_,l)?c.concat(l):void 0,m=co(n,u,d);if(K_(i,l,m),Kr(m))n.canAutoFreeze_=!1;else return}else h&&i.add(u);if(Pn(u)&&!So(u)){if(!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1)return;co(n,u),(!r||!r.scope_.parent_)&&typeof l!="symbol"&&Object.prototype.propertyIsEnumerable.call(i,l)&&fo(n,u)}}function fo(n,r,i=!1){!n.parent_&&n.immer_.autoFreeze_&&n.canAutoFreeze_&&Yh(r,i)}function CA(n,r){const i=Array.isArray(n),l={type_:i?1:0,scope_:r?r.scope_:$_(),modified_:!1,finalized_:!1,assigned_:{},parent_:r,base_:n,draft_:null,copy_:null,revoke_:null,isManual_:!1};let u=l,c=Zh;i&&(u=[l],c=rs);const{revoke:h,proxy:d}=Proxy.revocable(u,c);return l.draft_=d,l.revoke_=h,d}var Zh={get(n,r){if(r===kt)return n;const i=Yr(n);if(!mh(i,r))return NA(n,i,r);const l=i[r];return n.finalized_||!Pn(l)?l:l===yf(n.base_,r)?(vf(n),n.copy_[r]=_h(l,n)):l},has(n,r){return r in Yr(n)},ownKeys(n){return Reflect.ownKeys(Yr(n))},set(n,r,i){const l=J_(Yr(n),r);if(l?.set)return l.set.call(n.draft_,i),!0;if(!n.modified_){const u=yf(Yr(n),r),c=u?.[kt];if(c&&c.base_===i)return n.copy_[r]=i,n.assigned_[r]=!1,!0;if(xA(i,u)&&(i!==void 0||mh(n.base_,r)))return!0;vf(n),vh(n)}return n.copy_[r]===i&&(i!==void 0||r in n.copy_)||Number.isNaN(i)&&Number.isNaN(n.copy_[r])||(n.copy_[r]=i,n.assigned_[r]=!0),!0},deleteProperty(n,r){return yf(n.base_,r)!==void 0||r in n.base_?(n.assigned_[r]=!1,vf(n),vh(n)):delete n.assigned_[r],n.copy_&&delete n.copy_[r],!0},getOwnPropertyDescriptor(n,r){const i=Yr(n),l=Reflect.getOwnPropertyDescriptor(i,r);return l&&{writable:!0,configurable:n.type_!==1||r!=="length",enumerable:l.enumerable,value:i[r]}},defineProperty(){un(11)},getPrototypeOf(n){return ka(n.base_)},setPrototypeOf(){un(12)}},rs={};uo(Zh,(n,r)=>{rs[n]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}});rs.deleteProperty=function(n,r){return rs.set.call(this,n,r,void 0)};rs.set=function(n,r,i){return Zh.set.call(this,n[0],r,i,n[0])};function yf(n,r){const i=n[kt];return(i?Yr(i):n)[r]}function NA(n,r,i){const l=J_(r,i);return l?"value"in l?l.value:l.get?.call(n.draft_):void 0}function J_(n,r){if(!(r in n))return;let i=ka(n);for(;i;){const l=Object.getOwnPropertyDescriptor(i,r);if(l)return l;i=ka(i)}}function vh(n){n.modified_||(n.modified_=!0,n.parent_&&vh(n.parent_))}function vf(n){n.copy_||(n.copy_=ph(n.base_,n.scope_.immer_.useStrictShallowCopy_))}var DA=class{constructor(n){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(r,i,l)=>{if(typeof r=="function"&&typeof i!="function"){const c=i;i=r;const h=this;return function(m=c,...g){return h.produce(m,y=>i.call(this,y,...g))}}typeof i!="function"&&un(6),l!==void 0&&typeof l!="function"&&un(7);let u;if(Pn(r)){const c=Cy(this),h=_h(r,void 0);let d=!0;try{u=i(h),d=!1}finally{d?gh(c):yh(c)}return Ry(c,l),Ny(u,c)}else if(!r||typeof r!="object"){if(u=i(r),u===void 0&&(u=r),u===X_&&(u=void 0),this.autoFreeze_&&Yh(u,!0),l){const c=[],h=[];$r("Patches").generateReplacementPatches_(r,u,c,h),l(c,h)}return u}else un(1,r)},this.produceWithPatches=(r,i)=>{if(typeof r=="function")return(h,...d)=>this.produceWithPatches(h,m=>r(m,...d));let l,u;return[this.produce(r,i,(h,d)=>{l=h,u=d}),l,u]},typeof n?.autoFreeze=="boolean"&&this.setAutoFreeze(n.autoFreeze),typeof n?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(n.useStrictShallowCopy)}createDraft(n){Pn(n)||un(8),Kr(n)&&(n=MA(n));const r=Cy(this),i=_h(n,void 0);return i[kt].isManual_=!0,yh(r),i}finishDraft(n,r){const i=n&&n[kt];(!i||!i.isManual_)&&un(9);const{scope_:l}=i;return Ry(l,r),Ny(void 0,l)}setAutoFreeze(n){this.autoFreeze_=n}setUseStrictShallowCopy(n){this.useStrictShallowCopy_=n}applyPatches(n,r){let i;for(i=r.length-1;i>=0;i--){const u=r[i];if(u.path.length===0&&u.op==="replace"){n=u.value;break}}i>-1&&(r=r.slice(i+1));const l=$r("Patches").applyPatches_;return Kr(n)?l(n,r):this.produce(n,u=>l(u,r))}};function _h(n,r){const i=bo(n)?$r("MapSet").proxyMap_(n,r):Eo(n)?$r("MapSet").proxySet_(n,r):CA(n,r);return(r?r.scope_:$_()).drafts_.push(i),i}function MA(n){return Kr(n)||un(10,n),W_(n)}function W_(n){if(!Pn(n)||So(n))return n;const r=n[kt];let i;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,i=ph(n,r.scope_.immer_.useStrictShallowCopy_)}else i=ph(n,!0);return uo(i,(l,u)=>{K_(i,l,W_(u))}),r&&(r.finalized_=!1),i}var Gt=new DA,eb=Gt.produce;Gt.produceWithPatches.bind(Gt);Gt.setAutoFreeze.bind(Gt);Gt.setUseStrictShallowCopy.bind(Gt);Gt.applyPatches.bind(Gt);Gt.createDraft.bind(Gt);Gt.finishDraft.bind(Gt);function tb(n){return({dispatch:i,getState:l})=>u=>c=>typeof c=="function"?c(i,l,n):u(c)}var BA=tb(),jA=tb,UA=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?oo:oo.apply(null,arguments)};function My(n,r){function i(...l){if(r){let u=r(...l);if(!u)throw new Error(In(0));return{type:n,payload:u.payload,..."meta"in u&&{meta:u.meta},..."error"in u&&{error:u.error}}}return{type:n,payload:l[0]}}return i.toString=()=>`${n}`,i.type=n,i.match=l=>SA(l)&&l.type===n,i}var nb=class Ji extends Array{constructor(...r){super(...r),Object.setPrototypeOf(this,Ji.prototype)}static get[Symbol.species](){return Ji}concat(...r){return super.concat.apply(this,r)}prepend(...r){return r.length===1&&Array.isArray(r[0])?new Ji(...r[0].concat(this)):new Ji(...r.concat(this))}};function By(n){return Pn(n)?eb(n,()=>{}):n}function ql(n,r,i){return n.has(r)?n.get(r):n.set(r,i(r)).get(r)}function LA(n){return typeof n=="boolean"}var HA=()=>function(r){const{thunk:i=!0,immutableCheck:l=!0,serializableCheck:u=!0,actionCreatorCheck:c=!0}=r??{};let h=new nb;return i&&(LA(i)?h.push(BA):h.push(jA(i.extraArgument))),h},zA="RTK_autoBatch",jy=n=>r=>{setTimeout(r,n)},kA=(n={type:"raf"})=>r=>(...i)=>{const l=r(...i);let u=!0,c=!1,h=!1;const d=new Set,m=n.type==="tick"?queueMicrotask:n.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:jy(10):n.type==="callback"?n.queueNotification:jy(n.timeout),g=()=>{h=!1,c&&(c=!1,d.forEach(y=>y()))};return Object.assign({},l,{subscribe(y){const T=()=>u&&y(),O=l.subscribe(T);return d.add(y),()=>{O(),d.delete(y)}},dispatch(y){try{return u=!y?.meta?.[zA],c=!u,c&&(h||(h=!0,m(g))),l.dispatch(y)}finally{u=!0}}})},GA=n=>function(i){const{autoBatch:l=!0}=i??{};let u=new nb(n);return l&&u.push(kA(typeof l=="object"?l:void 0)),u};function qA(n){const r=HA(),{reducer:i=void 0,middleware:l,devTools:u=!0,preloadedState:c=void 0,enhancers:h=void 0}=n||{};let d;if(typeof i=="function")d=i;else if(Ph(i))d=Z_(i);else throw new Error(In(1));let m;typeof l=="function"?m=l(r):m=r();let g=oo;u&&(g=UA({trace:!1,...typeof u=="object"&&u}));const y=EA(...m),T=GA(y);let O=typeof h=="function"?h(T):T();const j=g(...O);return Y_(d,c,j)}function rb(n){const r={},i=[];let l;const u={addCase(c,h){const d=typeof c=="string"?c:c.type;if(!d)throw new Error(In(28));if(d in r)throw new Error(In(29));return r[d]=h,u},addMatcher(c,h){return i.push({matcher:c,reducer:h}),u},addDefaultCase(c){return l=c,u}};return n(u),[r,i,l]}function IA(n){return typeof n=="function"}function FA(n,r){let[i,l,u]=rb(r),c;if(IA(n))c=()=>By(n());else{const d=By(n);c=()=>d}function h(d=c(),m){let g=[i[m.type],...l.filter(({matcher:y})=>y(m)).map(({reducer:y})=>y)];return g.filter(y=>!!y).length===0&&(g=[u]),g.reduce((y,T)=>{if(T)if(Kr(y)){const j=T(y,m);return j===void 0?y:j}else{if(Pn(y))return eb(y,O=>T(O,m));{const O=T(y,m);if(O===void 0){if(y===null)return y;throw Error("A case reducer on a non-draftable value must not return undefined")}return O}}return y},d)}return h.getInitialState=c,h}var VA=Symbol.for("rtk-slice-createasyncthunk");function PA(n,r){return`${n}/${r}`}function YA({creators:n}={}){const r=n?.asyncThunk?.[VA];return function(l){const{name:u,reducerPath:c=u}=l;if(!u)throw new Error(In(11));const h=(typeof l.reducers=="function"?l.reducers(XA()):l.reducers)||{},d=Object.keys(h),m={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},g={addCase(b,w){const S=typeof b=="string"?b:b.type;if(!S)throw new Error(In(12));if(S in m.sliceCaseReducersByType)throw new Error(In(13));return m.sliceCaseReducersByType[S]=w,g},addMatcher(b,w){return m.sliceMatchers.push({matcher:b,reducer:w}),g},exposeAction(b,w){return m.actionCreators[b]=w,g},exposeCaseReducer(b,w){return m.sliceCaseReducersByName[b]=w,g}};d.forEach(b=>{const w=h[b],S={reducerName:b,type:PA(u,b),createNotation:typeof l.reducers=="function"};KA(w)?JA(S,w,g,r):QA(S,w,g)});function y(){const[b={},w=[],S=void 0]=typeof l.extraReducers=="function"?rb(l.extraReducers):[l.extraReducers],z={...b,...m.sliceCaseReducersByType};return FA(l.initialState,Y=>{for(let $ in z)Y.addCase($,z[$]);for(let $ of m.sliceMatchers)Y.addMatcher($.matcher,$.reducer);for(let $ of w)Y.addMatcher($.matcher,$.reducer);S&&Y.addDefaultCase(S)})}const T=b=>b,O=new Map,j=new WeakMap;let M;function V(b,w){return M||(M=y()),M(b,w)}function q(){return M||(M=y()),M.getInitialState()}function E(b,w=!1){function S(Y){let $=Y[b];return typeof $>"u"&&w&&($=ql(j,S,q)),$}function z(Y=T){const $=ql(O,w,()=>new WeakMap);return ql($,Y,()=>{const ie={};for(const[J,W]of Object.entries(l.selectors??{}))ie[J]=ZA(W,Y,()=>ql(j,Y,q),w);return ie})}return{reducerPath:b,getSelectors:z,get selectors(){return z(S)},selectSlice:S}}const x={name:u,reducer:V,actions:m.actionCreators,caseReducers:m.sliceCaseReducersByName,getInitialState:q,...E(c),injectInto(b,{reducerPath:w,...S}={}){const z=w??c;return b.inject({reducerPath:z,reducer:V},S),{...x,...E(z,!0)}}};return x}}function ZA(n,r,i,l){function u(c,...h){let d=r(c);return typeof d>"u"&&l&&(d=i()),n(d,...h)}return u.unwrapped=n,u}var Xh=YA();function XA(){function n(r,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:r,...i}}return n.withTypes=()=>n,{reducer(r){return Object.assign({[r.name](...i){return r(...i)}}[r.name],{_reducerDefinitionType:"reducer"})},preparedReducer(r,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:r,reducer:i}},asyncThunk:n}}function QA({type:n,reducerName:r,createNotation:i},l,u){let c,h;if("reducer"in l){if(i&&!$A(l))throw new Error(In(17));c=l.reducer,h=l.prepare}else c=l;u.addCase(n,c).exposeCaseReducer(r,c).exposeAction(r,h?My(n,h):My(n))}function KA(n){return n._reducerDefinitionType==="asyncThunk"}function $A(n){return n._reducerDefinitionType==="reducerWithPrepare"}function JA({type:n,reducerName:r},i,l,u){if(!u)throw new Error(In(18));const{payloadCreator:c,fulfilled:h,pending:d,rejected:m,settled:g,options:y}=i,T=u(n,c,y);l.exposeAction(r,T),h&&l.addCase(T.fulfilled,h),d&&l.addCase(T.pending,d),m&&l.addCase(T.rejected,m),g&&l.addMatcher(T.settled,g),l.exposeCaseReducer(r,{fulfilled:h||Il,pending:d||Il,rejected:m||Il,settled:g||Il})}function Il(){}function In(n){return`Minified Redux Toolkit error #${n}; visit https://redux-toolkit.js.org/Errors?code=${n} for the full message or use the non-minified dev environment for full errors. `}const WA={formValues:{}},ab=Xh({name:"start-screen",initialState:WA,reducers:{showStartScreen(n){n.startScreenStatus="VISIBLE",n.formValues={}},startChat(n,r){n.startScreenStatus="HIDDEN",n.formValues=r.payload}}}),{startChat:eO,showStartScreen:tO}=ab.actions,nO=ab.reducer,ib="RESET_CHAT_STATE",rO=()=>({type:I_}),aO=()=>({type:ib}),Uy=(n,r,i)=>(l,u)=>{try{const c=u().connection.sessionId;if(!c)throw new Error("Session ID is not available");l({type:Fh,payload:{chunkId:i}}),Ly(n,c,r,i,!1,l),Ly(n,c,r,i,!0,l)}catch(c){console.error("Error loading source infos:",c),l({type:Ih})}},Ly=(n,r,i,l,u,c)=>{const h=`/${n}/me/chat-widget/transcript/${i}/chunks/${l}?highlight=${u}`;fetch(h,{headers:{"x-bubble-chat-session-id":r}}).then(d=>{if(!d.ok)throw new Error(`HTTP error! Status: ${d.status}`);return d.json()}).then(d=>{const m={...d,chunkId:l,highlighted:u};c({type:G_,payload:m})}).catch(d=>{console.error("Error fetching source infos:",d),c({type:Ih,payload:{highlighted:u}})})},iO=()=>({type:Vh}),Qh="CONNECT",Kh="CONNECTING",$h="CONNECTED",Jh="DISCONNECTED",Wh="RECONNECTED",ed="RESTORE_SESSION_ID",To="START",xo="CLEAR_SESSION_ID",sO=[Qh,Kh,$h,Jh,Wh,ed],lO=(n,r)=>({type:Qh,clientName:n,querystrings:r}),oO=n=>({type:ed,sessionId:n}),uO=()=>({type:Kh}),cO=()=>({type:$h}),fO=()=>({type:Jh}),hO=()=>({type:Wh}),sb=(n,r)=>(i,l)=>{const u=l().connection,c=l().startScreen.formValues;let h=u.sessionId;h===void 0&&(h=dh());let d=u.userId;if(d===void 0){const m=Gl.get("bubble-chat-user-id")||Gl.get("bubble-chat-userId")||Gl.get("bf-webclient-userId");d=m||dh(),Gl.set("bubble-chat-user-id",d)}i({type:To,payload:{sessionId:h,userId:d,clientName:n,querystrings:{...r,...c}}})},Ao=(n,r)=>(i,l)=>{const u=l().connection.sessionId||"";if(i(dO(u)),i(aO()),l().settings.enableStartScreen)i(tO());else return i(sb(n,r))},dO=n=>({type:xo,payload:{sessionId:n}}),Pe=()=>{const n=yo();return i=>{const l=n.formatMessage({id:i});return l===i?void 0:l}};var Xr=(n=>(n[n.CONNECTING=0]="CONNECTING",n[n.CONNECTED=1]="CONNECTED",n[n.RECONNECTED=2]="RECONNECTED",n[n.DISCONNECTED=3]="DISCONNECTED",n))(Xr||{}),ho=(n=>(n.GUEST="GUEST",n.BOT="BOT",n.PERSON="PERSON",n))(ho||{});const mO="_container_q2uun_1",pO="_chatcontent_q2uun_6",gO="_accessabilityHidden_q2uun_12",_f={container:mO,chatcontent:pO,accessabilityHidden:gO},yO="_messageContainer_ofi0g_1",vO="_messages_ofi0g_12",Hy={messageContainer:yO,messages:vO};function Zr(){return Zr=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(n[l]=i[l])}return n},Zr.apply(this,arguments)}const _O=["children","options"],bO={footnoteReference:"7"},zy=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((n,r)=>(n[r.toLowerCase()]=r,n),{class:"className",for:"htmlFor"}),ky={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},EO=["style","script"],SO=["src","href","data","formAction","srcDoc","action"],TO=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,xO=/mailto:/i,AO=/\n{2,}$/,Gy=/^(\s*>[\s\S]*?)(?=\n\n|$)/,OO=/^ *> ?/gm,wO=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,RO=/^ {2,}\n/,CO=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,qy=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,Iy=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,NO=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,DO=/^(?:\n *)*\n/,MO=/\r\n?/g,BO=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,jO=/^\[\^([^\]]+)]/,UO=/\f/g,LO=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,HO=/^\s*?\[(x|\s)\]/,Fy=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Vy=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Py=/^([^\n]+)\n *(=|-){3,} *\n/,bf=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,zO=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Yy=/^<!--[\s\S]*?(?:-->)/,kO=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Ef=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,GO=/^\{.*\}$/,qO=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,IO=/^<([^ >]+@[^ >]+)>/,FO=/^<([^ >]+:\/[^ >]+)>/,VO=/-([a-z])?/gi,Zy=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,PO=/^[^\n]+(?: \n|\n{2,})/,YO=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,ZO=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,XO=/^\[([^\]]*)\] ?\[([^\]]*)\]/,QO=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,KO=/\t/g,$O=/(^ *\||\| *$)/g,JO=/^ *:-+: *$/,WO=/^ *:-+ *$/,ew=/^ *-+: *$/,Oo="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",tw=RegExp(`^([*_])\\1${Oo}\\1\\1(?!\\1)`),nw=RegExp(`^([*_])${Oo}\\1(?!\\1)`),rw=RegExp(`^(==)${Oo}\\1`),aw=RegExp(`^(~~)${Oo}\\1`),iw=/^\\([^0-9A-Za-z\s])/,Xy=/\\([^0-9A-Za-z\s])/g,sw=/^[\s\S](?:(?! |[0-9]\.|http)[^=*_~\-\n<`\\\[!])*/,lw=/^\n+/,ow=/^([ \t]*)/,uw=/\\([^\\])/g,cw=/(?:^|\n)( *)$/,td="(?:\\d+\\.)",nd="(?:[*+-])";function lb(n){return"( *)("+(n===1?td:nd)+") +"}const ob=lb(1),ub=lb(2);function cb(n){return RegExp("^"+(n===1?ob:ub))}const fw=cb(1),hw=cb(2);function fb(n){return RegExp("^"+(n===1?ob:ub)+"[^\\n]*(?:\\n(?!\\1"+(n===1?td:nd)+" )[^\\n]*)*(\\n|$)","gm")}const dw=fb(1),mw=fb(2);function hb(n){const r=n===1?td:nd;return RegExp("^( *)("+r+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+r+" (?!"+r+" ))\\n*|\\s*\\n*$)")}const db=hb(1),mb=hb(2);function Qy(n,r){const i=r===1,l=i?db:mb,u=i?dw:mw,c=i?fw:hw;return{t:h=>c.test(h),o:us(function(h,d){const m=cw.exec(d.prevCapture);return m&&(d.list||!d.inline&&!d.simple)?l.exec(h=m[1]+h):null}),i:1,u(h,d,m){const g=i?+h[2]:void 0,y=h[0].replace(AO,`
94
- `).match(u);let T=!1;return{items:y.map(function(O,j){const M=c.exec(O)[0].length,V=RegExp("^ {1,"+M+"}","gm"),q=O.replace(V,"").replace(c,""),E=j===y.length-1,x=q.indexOf(`
95
-
96
- `)!==-1||E&&T;T=x;const b=m.inline,w=m.list;let S;m.list=!0,x?(m.inline=!1,S=ts(q)+`
97
-
98
- `):(m.inline=!0,S=ts(q));const z=d(S,m);return m.inline=b,m.list=w,z}),ordered:i,start:g}},l:(h,d,m)=>n(h.ordered?"ol":"ul",{key:m.key,start:h.type==="20"?h.start:void 0},h.items.map(function(g,y){return n("li",{key:y},d(g,m))}))}}const pw=RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),gw=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function ts(n){let r=n.length;for(;r>0&&n[r-1]<=" ";)r--;return n.slice(0,r)}function bh(n,r){return n.startsWith(r)}function yw(n,r,i){if(Array.isArray(i)){for(let l=0;l<i.length;l++)if(bh(n,i[l]))return!0;return!1}return i(n,r)}function Zi(n){return n.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function vw(n){return ew.test(n)?"right":JO.test(n)?"center":WO.test(n)?"left":null}function Ky(n,r,i,l){const u=i.inTable;i.inTable=!0;let c=[[]],h="";function d(){if(!h)return;const m=c[c.length-1];m.push.apply(m,r(h,i)),h=""}return n.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((m,g,y)=>{m.trim()==="|"&&(d(),l)?g!==0&&g!==y.length-1&&c.push([]):h+=m}),d(),i.inTable=u,c}function _w(n,r,i){i.inline=!0;const l=n[2]?n[2].replace($O,"").split("|").map(vw):[],u=n[3]?function(h,d,m){return h.trim().split(`
99
- `).map(function(g){return Ky(g,d,m,!0)})}(n[3],r,i):[],c=Ky(n[1],r,i,!!u.length);return i.inline=!1,u.length?{align:l,cells:u,header:c,type:"25"}:{children:c,type:"21"}}function $y(n,r){return n.align[r]==null?{}:{textAlign:n.align[r]}}function us(n){return n.inline=1,n}function gr(n){return us(function(r,i){return i.inline?n.exec(r):null})}function yr(n){return us(function(r,i){return i.inline||i.simple?n.exec(r):null})}function kn(n){return function(r,i){return i.inline||i.simple?null:n.exec(r)}}function Xi(n){return us(function(r){return n.exec(r)})}const bw=/(javascript|vbscript|data(?!:image)):/i;function Ew(n){try{const r=decodeURIComponent(n).replace(/[^A-Za-z0-9/:]/g,"");if(bw.test(r))return null}catch{return null}return n}function Jy(n){return n.replace(uw,"$1")}function to(n,r,i){const l=i.inline||!1,u=i.simple||!1;i.inline=!0,i.simple=!0;const c=n(r,i);return i.inline=l,i.simple=u,c}function Sw(n,r,i){const l=i.inline||!1,u=i.simple||!1;i.inline=!1,i.simple=!0;const c=n(r,i);return i.inline=l,i.simple=u,c}function Tw(n,r,i){const l=i.inline||!1;i.inline=!1;const u=n(r,i);return i.inline=l,u}const Sf=(n,r,i)=>({children:to(r,n[2],i)});function Tf(){return{}}function xf(){return null}function xw(...n){return n.filter(Boolean).join(" ")}function Af(n,r,i){let l=n;const u=r.split(".");for(;u.length&&(l=l[u[0]],l!==void 0);)u.shift();return l||i}function Aw(n="",r={}){r.overrides=r.overrides||{},r.namedCodesToUnicode=r.namedCodesToUnicode?Zr({},ky,r.namedCodesToUnicode):ky;const i=r.slugify||Zi,l=r.sanitizer||Ew,u=r.createElement||H.createElement,c=[Gy,qy,Iy,r.enforceAtxHeadings?Vy:Fy,Py,Zy,db,mb],h=[...c,PO,bf,Yy,Ef];function d(E,x,...b){const w=Af(r.overrides,E+".props",{});return u(function(S,z){const Y=Af(z,S);return Y?typeof Y=="function"||typeof Y=="object"&&"render"in Y?Y:Af(z,S+".component",S):S}(E,r.overrides),Zr({},x,w,{className:xw(x?.className,w.className)||void 0}),...b)}function m(E){E=E.replace(LO,"");let x=!1;r.forceInline?x=!0:r.forceBlock||(x=QO.test(E)===!1);const b=M(j(x?E:ts(E).replace(lw,"")+`
100
-
101
- `,{inline:x}));for(;typeof b[b.length-1]=="string"&&!b[b.length-1].trim();)b.pop();if(r.wrapper===null)return b;const w=r.wrapper||(x?"span":"div");let S;if(b.length>1||r.forceWrapper)S=b;else{if(b.length===1)return S=b[0],typeof S=="string"?d("span",{key:"outer"},S):S;S=null}return u(w,{key:"outer"},S)}function g(E,x){if(!x||!x.trim())return null;const b=x.match(TO);return b?b.reduce(function(w,S){const z=S.indexOf("=");if(z!==-1){const Y=function(W){return W.indexOf("-")!==-1&&W.match(kO)===null&&(W=W.replace(VO,function(se,le){return le.toUpperCase()})),W}(S.slice(0,z)).trim(),$=function(W){const se=W[0];return(se==='"'||se==="'")&&W.length>=2&&W[W.length-1]===se?W.slice(1,-1):W}(S.slice(z+1).trim()),ie=zy[Y]||Y;if(ie==="ref")return w;const J=w[ie]=function(W,se,le,Ye){return se==="style"?function(ye){const k=[];let Q="",te=!1,Se=!1,R="";if(!ye)return k;for(let K=0;K<ye.length;K++){const Z=ye[K];if(Z!=='"'&&Z!=="'"||te||(Se?Z===R&&(Se=!1,R=""):(Se=!0,R=Z)),Z==="("&&Q.endsWith("url")?te=!0:Z===")"&&te&&(te=!1),Z!==";"||Se||te)Q+=Z;else{const ne=Q.trim();if(ne){const pe=ne.indexOf(":");if(pe>0){const ue=ne.slice(0,pe).trim(),tt=ne.slice(pe+1).trim();k.push([ue,tt])}}Q=""}}const P=Q.trim();if(P){const K=P.indexOf(":");if(K>0){const Z=P.slice(0,K).trim(),ne=P.slice(K+1).trim();k.push([Z,ne])}}return k}(le).reduce(function(ye,[k,Q]){return ye[k.replace(/(-[a-z])/g,te=>te[1].toUpperCase())]=Ye(Q,W,k),ye},{}):SO.indexOf(se)!==-1?Ye(le,W,se):(le.match(GO)&&(le=le.slice(1,le.length-1)),le==="true"||le!=="false"&&le)}(E,Y,$,l);typeof J=="string"&&(bf.test(J)||Ef.test(J))&&(w[ie]=m(J.trim()))}else S!=="style"&&(w[zy[S]||S]=!0);return w},{}):null}const y=[],T={},O={0:{t:[">"],o:kn(Gy),i:1,u(E,x,b){const[,w,S]=E[0].replace(OO,"").match(wO);return{alert:w,children:x(S,b)}},l(E,x,b){const w={key:b.key};return E.alert&&(w.className="markdown-alert-"+i(E.alert.toLowerCase(),Zi),E.children.unshift({attrs:{},children:[{type:"27",text:E.alert}],noInnerParse:!0,type:"11",tag:"header"})),d("blockquote",w,x(E.children,b))}},1:{o:Xi(RO),i:1,u:Tf,l:(E,x,b)=>d("br",{key:b.key})},2:{t:E=>{const x=E[0];return x==="-"||x==="*"||x==="_"},o:kn(CO),i:1,u:Tf,l:(E,x,b)=>d("hr",{key:b.key})},3:{t:[" "],o:kn(Iy),i:0,u:E=>({lang:void 0,text:ts(E[0].replace(/^ {4}/gm,"")).replace(Xy,"$1")}),l:(E,x,b)=>d("pre",{key:b.key},d("code",Zr({},E.attrs,{className:E.lang?"lang-"+E.lang:""}),E.text))},4:{t:["```","~~~"],o:kn(qy),i:0,u:E=>({attrs:g("code",E[3]||""),lang:E[2]||void 0,text:E[4],type:"3"})},5:{t:["`"],o:yr(NO),i:3,u:E=>({text:E[2].replace(Xy,"$1")}),l:(E,x,b)=>d("code",{key:b.key},E.text)},6:{t:["[^"],o:kn(BO),i:0,u:E=>(y.push({footnote:E[2],identifier:E[1]}),{}),l:xf},7:{t:["[^"],o:gr(jO),i:1,u:E=>({target:"#"+i(E[1],Zi),text:E[1]}),l:(E,x,b)=>d("a",{key:b.key,href:l(E.target,"a","href")},d("sup",{key:b.key},E.text))},8:{t:["[ ]","[x]"],o:gr(HO),i:1,u:E=>({completed:E[1].toLowerCase()==="x"}),l:(E,x,b)=>d("input",{checked:E.completed,key:b.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:kn(r.enforceAtxHeadings?Vy:Fy),i:1,u:(E,x,b)=>({children:to(x,E[2],b),id:i(E[2],Zi),level:E[1].length}),l:(E,x,b)=>d("h"+E.level,{id:E.id,key:b.key},x(E.children,b))},10:{o:kn(Py),i:0,u:(E,x,b)=>({children:to(x,E[1],b),level:E[2]==="="?1:2,type:"9"})},11:{t:["<"],o:Xi(bf),i:1,u(E,x,b){const[,w]=E[3].match(ow),S=RegExp("^"+w,"gm"),z=E[3].replace(S,""),Y=($=z,h.some(le=>le.test($))?Tw:to);var $;const ie=E[1].toLowerCase(),J=EO.indexOf(ie)!==-1,W=(J?ie:E[1]).trim(),se={attrs:g(W,E[2]),noInnerParse:J,tag:W};return b.inAnchor=b.inAnchor||ie==="a",J?se.text=E[3]:se.children=Y(x,z,b),b.inAnchor=!1,se},l:(E,x,b)=>d(E.tag,Zr({key:b.key},E.attrs),E.text||(E.children?x(E.children,b):""))},13:{t:["<"],o:Xi(Ef),i:1,u(E){const x=E[1].trim();return{attrs:g(x,E[2]||""),tag:x}},l:(E,x,b)=>d(E.tag,Zr({},E.attrs,{key:b.key}))},12:{t:["<!--"],o:Xi(Yy),i:1,u:()=>({}),l:xf},14:{t:["!["],o:yr(gw),i:1,u:E=>({alt:E[1],target:Jy(E[2]),title:E[3]}),l:(E,x,b)=>d("img",{key:b.key,alt:E.alt||void 0,title:E.title||void 0,src:l(E.target,"img","src")})},15:{t:["["],o:gr(pw),i:3,u:(E,x,b)=>({children:Sw(x,E[1],b),target:Jy(E[2]),title:E[3]}),l:(E,x,b)=>d("a",{key:b.key,href:l(E.target,"a","href"),title:E.title},x(E.children,b))},16:{t:["<"],o:gr(FO),i:0,u:E=>({children:[{text:E[1],type:"27"}],target:E[1],type:"15"})},17:{t:(E,x)=>!x.inAnchor&&!r.disableAutoLink&&(bh(E,"http://")||bh(E,"https://")),o:gr(qO),i:0,u:E=>({children:[{text:E[1],type:"27"}],target:E[1],title:void 0,type:"15"})},18:{t:["<"],o:gr(IO),i:0,u(E){let x=E[1],b=E[1];return xO.test(b)||(b="mailto:"+b),{children:[{text:x.replace("mailto:",""),type:"27"}],target:b,type:"15"}}},20:Qy(d,1),33:Qy(d,2),19:{o:kn(DO),i:3,u:Tf,l:()=>`
102
- `},21:{o:us(function(E,x){if(x.inline||x.simple)return null;let b="";E.split(`
103
- `).every(S=>(S+=`
104
- `,!c.some(z=>z.test(S))&&(b+=S,!!S.trim())));const w=ts(b);return w===""?null:[b,,w]}),i:3,u:Sf,l:(E,x,b)=>d("p",{key:b.key},x(E.children,b))},22:{t:["["],o:gr(YO),i:0,u:E=>(T[E[1]]={target:E[2],title:E[4]},{}),l:xf},23:{t:["!["],o:yr(ZO),i:0,u:E=>({alt:E[1]||void 0,ref:E[2]}),l:(E,x,b)=>T[E.ref]?d("img",{key:b.key,alt:E.alt,src:l(T[E.ref].target,"img","src"),title:T[E.ref].title}):null},24:{t:["["],o:gr(XO),i:0,u:(E,x,b)=>({children:x(E[1],b),fallbackChildren:E[0],ref:E[2]}),l:(E,x,b)=>T[E.ref]?d("a",{key:b.key,href:l(T[E.ref].target,"a","href"),title:T[E.ref].title},x(E.children,b)):d("span",{key:b.key},E.fallbackChildren)},25:{t:["|"],o:kn(Zy),i:1,u:_w,l(E,x,b){const w=E;return d("table",{key:b.key},d("thead",null,d("tr",null,w.header.map(function(S,z){return d("th",{key:z,style:$y(w,z)},x(S,b))}))),d("tbody",null,w.cells.map(function(S,z){return d("tr",{key:z},S.map(function(Y,$){return d("td",{key:$,style:$y(w,$)},x(Y,b))}))})))}},27:{o:Xi(sw),i:4,u(E){const x=E[0];return{text:x.indexOf("&")===-1?x:x.replace(zO,(b,w)=>r.namedCodesToUnicode[w]||b)}},l:E=>E.text},28:{t:["**","__"],o:yr(tw),i:2,u:(E,x,b)=>({children:x(E[2],b)}),l:(E,x,b)=>d("strong",{key:b.key},x(E.children,b))},29:{t:E=>{const x=E[0];return(x==="*"||x==="_")&&E[1]!==x},o:yr(nw),i:3,u:(E,x,b)=>({children:x(E[2],b)}),l:(E,x,b)=>d("em",{key:b.key},x(E.children,b))},30:{t:["\\"],o:yr(iw),i:1,u:E=>({text:E[1],type:"27"})},31:{t:["=="],o:yr(rw),i:3,u:Sf,l:(E,x,b)=>d("mark",{key:b.key},x(E.children,b))},32:{t:["~~"],o:yr(aw),i:3,u:Sf,l:(E,x,b)=>d("del",{key:b.key},x(E.children,b))}};r.disableParsingRawHTML===!0&&(delete O[11],delete O[13]);const j=function(E){var x=Object.keys(E);function b(w,S){var z=[];if(S.prevCapture=S.prevCapture||"",w.trim())for(;w;)for(var Y=0;Y<x.length;){var $=x[Y],ie=E[$];if(!ie.t||yw(w,S,ie.t)){var J=ie.o(w,S);if(J&&J[0]){S.prevCapture+=J[0],w=w.substring(J[0].length);var W=ie.u(J,b,S);W.type||(W.type=$),z.push(W);break}Y++}else Y++}return S.prevCapture="",z}return x.sort(function(w,S){return E[w].i-E[S].i||(w<S?-1:1)}),function(w,S){return b(function(z){return z.replace(MO,`
105
- `).replace(UO,"").replace(KO," ")}(w),S)}}(O),M=(V=function(E,x){return function(b,w,S){const z=E[b.type].l;return x?x(()=>z(b,w,S),b,w,S):z(b,w,S)}}(O,r.renderRule),function E(x,b={}){if(Array.isArray(x)){const w=b.key,S=[];let z=!1;for(let Y=0;Y<x.length;Y++){b.key=Y;const $=E(x[Y],b),ie=typeof $=="string";ie&&z?S[S.length-1]+=$:$!==null&&S.push($),z=ie}return b.key=w,S}return V(x,E,b)});var V;const q=m(n);return y.length?d("div",null,q,d("footer",{key:"footer"},y.map(function(E){return d("div",{id:i(E.identifier,Zi),key:E.identifier},E.identifier,M(j(E.footnote,{inline:!0})))}))):q}const _n=n=>{let{children:r="",options:i}=n,l=function(u,c){if(u==null)return{};var h,d,m={},g=Object.keys(u);for(d=0;d<g.length;d++)c.indexOf(h=g[d])>=0||(m[h]=u[h]);return m}(n,_O);return H.cloneElement(Aw(r,i),l)},Ow="_generalConditionsContainer_55hjg_1",ww="_generalConditions_55hjg_1",Rw="_generalConditionsHeader_55hjg_15",Cw="_generalConditionsBody_55hjg_26",Nw="_generalConditionsAccept_55hjg_35",Qi={generalConditionsContainer:Ow,generalConditions:ww,generalConditionsHeader:Rw,generalConditionsBody:Cw,generalConditionsAccept:Nw},Dw=()=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:v.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"})}),Mw=()=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:v.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"})}),Bw="general-conditions.header",jw="general-conditions.body",Wy="general-conditions.accept-conditions-note",Uw=()=>{const n=Pe(),[r,i]=H.useState(!1),l=()=>i(!r),u=d=>{d.key==="ArrowDown"||d.key==="ArrowRight"?i(!0):d.key==="ArrowUp"||d.key==="ArrowLeft"||d.key==="Escape"?i(!1):(d.key==="Enter"||d.key==="Space"||d.key===" ")&&l()},c=n(Bw),h=n(Wy);return v.jsxs("div",{className:X(Qi.generalConditionsContainer,"chat__generalConditions"),children:[!!c?.length&&v.jsxs("div",{className:Qi.generalConditions,children:[v.jsxs("div",{role:"button",onClick:l,onKeyDown:u,tabIndex:0,className:X(Qi.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":r?"true":"false","aria-pressed":r?"true":"false",children:[v.jsx(_n,{children:c}),r?v.jsx(Mw,{}):v.jsx(Dw,{})]}),v.jsx("div",{className:X(Qi.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:r&&v.jsx(_n,{children:n(jw)||""})})]}),!!h?.length&&v.jsx("div",{className:X(Qi.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:v.jsx(_n,{children:n(Wy)||""})})]})},Lw="_message_6i1zm_1",Hw="_messageBot_6i1zm_9",zw="_messageBotLast_6i1zm_19",kw="_avatar_6i1zm_19",Gw="_messageBotFirst_6i1zm_24",qw="_messageBotAnimated_6i1zm_37",Iw="_messageGuest_6i1zm_48",Fw="_messageGuestFirst_6i1zm_54",Vw="_messageGuestLast_6i1zm_60",Pw="_botAvatar_6i1zm_74",Yw="_agentAvatar_6i1zm_78",Zw="_bubble_6i1zm_82",Xw="_bubbleContent_6i1zm_88",Qw="_bubbleLeft_6i1zm_102",Kw="_leftText_6i1zm_113",$w="_bubbleRight_6i1zm_120",Jw="_rightText_6i1zm_130",Ww="_sourceInfoReference_6i1zm_162",eR="_sourceInfoReferenceActive_6i1zm_174",de={message:Lw,messageBot:Hw,messageBotLast:zw,avatar:kw,messageBotFirst:Gw,messageBotAnimated:qw,messageGuest:Iw,messageGuestFirst:Fw,messageGuestLast:Vw,botAvatar:Pw,agentAvatar:Yw,bubble:Zw,bubbleContent:Xw,bubbleLeft:Qw,leftText:Kw,bubbleRight:$w,rightText:Jw,sourceInfoReference:Ww,sourceInfoReferenceActive:eR},tR="_botMessageActions_1dl7x_1",nR="_alwaysVisible_1dl7x_22",rR="_reported_1dl7x_29",aR="_action_1dl7x_33",vr={botMessageActions:tR,alwaysVisible:nR,reported:rR,action:aR},iR=({alwaysVisible:n,senderType:r,reaction:i,botMessageRef:l,onReaction:u})=>{const c=Pe(),[h,d]=H.useState(!1),m=y=>()=>u(y),g=H.useCallback(async()=>{if(l.current)try{d(!0);const y=l.current.innerHTML,T=l.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([y],{type:"text/html"}),"text/plain":new Blob([T],{type:"text/plain"})})]),await new Promise(O=>setTimeout(O,1500))}finally{d(!1)}},[l]);return v.jsxs("div",{className:X(vr.botMessageActions,n&&vr.alwaysVisible,i&&vr.reported),children:[r===ho.BOT&&v.jsx("button",{className:X(vr.action,i==="GOOD"&&vr.reported,"tooltip--top-right"),tabIndex:0,"aria-label":c(i==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),"data-title":c(i==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),onClick:m(i==="GOOD"?null:"GOOD"),children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:i==="GOOD"?v.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"}):v.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"})})}),r===ho.BOT&&v.jsx("button",{className:X(vr.action,i==="BAD"&&vr.reported,"tooltip--top-right"),tabIndex:0,"aria-label":c(i==="BAD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.bad"),"data-title":c(i==="BAD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.bad"),onClick:m(i==="BAD"?null:"BAD"),children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:i==="BAD"?v.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"}):v.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"})})}),v.jsx("button",{className:X(vr.action,"tooltip--top-right"),tabIndex:0,"aria-label":c("bot-bubble.copy"),"data-title":c("bot-bubble.copy"),onClick:g,children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:h?v.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"}):v.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"})})})]})},pb=H.forwardRef(({message:n,isAnimated:r,isLastMessage:i,isFirstMessageBySender:l,isLastMessageBySender:u,children:c,onReaction:h},d)=>{const m=Pe(),g=H.useRef(null),y=n.sender.type===Ee.UserType.BOT;return v.jsxs("li",{ref:d,className:X(de.message,de.messageBot,i&&de.lastMessage,l&&de.messageBotFirst,u&&de.messageBotLast,"chat__bubbleContainer",r&&de.messageBotAnimated,r&&"chat__bubbleContainer--animated",y?"chat__botBubbleContainer":"chat__agentBubbleContainer",l&&"chat__bubbleContainer--first",u&&"chat__bubbleContainer--last"),children:[v.jsx("img",{className:X(de.avatar,y?de.botAvatar:de.agentAvatar,"chat__avatar",y?"chat__botAvatar":"chat__agentAvatar"),src:`${n.sender.avatar}`,alt:y?"Bot":"Agent",referrerPolicy:"no-referrer"}),v.jsx("div",{ref:g,className:X(de.bubble,de.bubbleLeft,"chat__bubble",y?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":m(y?"bot-bubble.label":"agent-bubble.label"),children:v.jsx("div",{className:X(de.leftText),children:c})}),h&&v.jsx(iR,{alwaysVisible:i&&u,senderType:n.sender.type,reaction:n.reaction,botMessageRef:g,onReaction:h})]})}),sR="_sourceList_1n31h_1",lR="_source_1n31h_1",oR="_label_1n31h_37",Of={sourceList:sR,source:lR,label:oR},gb=n=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:v.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"})}),yb=n=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:v.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"})}),vb=n=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:v.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"})}),_b=n=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:v.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"})}),uR=({type:n,...r})=>{switch(n){case"WEBSITE":return v.jsx(_b,{...r});case"PDF":return v.jsx(vb,{...r});case"DOCX":return v.jsx(gb,{...r});default:return v.jsx(yb,{...r})}},rd=({sources:n,onLinkClick:r})=>{const i=Pe(),l=c=>()=>{r(c.url)},u=c=>h=>{(h.key==="Enter"||h.key===" ")&&r(c.url)};return n.length?v.jsx("ul",{className:Of.sourceList,"aria-label":i("bot-bubble.sources"),children:n.map(c=>v.jsx("li",{className:Of.source,children:v.jsxs("a",{role:"button",tabIndex:0,"aria-label":`${i("bot-bubble.source.open")}: ${c.label}`,onClick:l(c),onKeyDown:u(c),children:[v.jsx(uR,{type:c.type,"aria-hidden":"true"}),v.jsx("div",{className:Of.label,children:c.label})]})},c.url))}):null},cR="_button_3ui4g_1",fR="_buttonDefault_3ui4g_13",hR="_buttonPrimary_3ui4g_28",as={button:cR,buttonDefault:fR,buttonPrimary:hR},wo=({className:n,children:r,...i})=>v.jsx("button",{className:X(as.button,n),type:"button",role:"button",...i,children:r}),dR="_title_b904h_1",mR="_subtitle_b904h_6",pR="_buttons_b904h_11",gR="_button_b904h_11",yR="_imageContainer_b904h_34",vR="_image_b904h_34",_R="_video_container_b904h_49",bR="_video_b904h_49",ER="_only_b904h_63",At={title:dR,subtitle:mR,buttons:pR,button:gR,imageContainer:yR,image:vR,video_container:_R,video:bR,only:ER},SR=({buttons:n,onButtonClick:r})=>v.jsx("div",{className:X(At.buttons,"chat__bubbleButtons"),children:n.map((i,l)=>v.jsx(wo,{className:X(At.button,"chat__bubbleButton"),onClick:()=>r(i),children:i.title},l))});var Fl={},Vl={},Pl={},ev;function TR(){if(ev)return Pl;ev=1,Object.defineProperty(Pl,"__esModule",{value:!0});var n=Ga(),r=i(n);function i(l){if(l&&l.__esModule)return l;var u={};if(l!=null)for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(u[c]=l[c]);return u.default=l,u}return Pl.default=function(l,u,c){return r.createElement("a",{href:l,key:c},u)},Pl}var Yl={},tv;function xR(){return tv||(tv=1,Object.defineProperty(Yl,"__esModule",{value:!0}),Yl.default=function(n){return n}),Yl}var Zl={},wf,nv;function AR(){return nv||(nv=1,wf=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),wf}var Rf,rv;function OR(){return rv||(rv=1,Rf=/[\0-\x1F\x7F-\x9F]/),Rf}var Cf,av;function wR(){return av||(av=1,Cf=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Cf}var Nf,iv;function RR(){return iv||(iv=1,Nf=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/),Nf}var Df,sv;function CR(){return sv||(sv=1,Df=function(n){var r={};r.src_Any=AR().source,r.src_Cc=OR().source,r.src_Z=wR().source,r.src_P=RR().source,r.src_ZPCc=[r.src_Z,r.src_P,r.src_Cc].join("|"),r.src_ZCc=[r.src_Z,r.src_Cc].join("|");var i="[><|]";return r.src_pseudo_letter="(?:(?!"+i+"|"+r.src_ZPCc+")"+r.src_Any+")",r.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",r.src_auth="(?:(?:(?!"+r.src_ZCc+"|[@/\\[\\]()]).)+@)?",r.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",r.src_host_terminator="(?=$|"+i+"|"+r.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+r.src_ZPCc+"))",r.src_path="(?:[/?#](?:(?!"+r.src_ZCc+"|"+i+`|[()[\\]{}.,"'?!\\-]).|\\[(?:(?!`+r.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+r.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+r.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+r.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+r.src_ZCc+"|[']).)+\\'|\\'(?="+r.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+r.src_ZCc+"|[.]).|"+(n&&n["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+r.src_ZCc+").|\\!(?!"+r.src_ZCc+"|[!]).|\\?(?!"+r.src_ZCc+"|[?]).)+|\\/)?",r.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',r.src_xn="xn--[a-z0-9\\-]{1,59}",r.src_domain_root="(?:"+r.src_xn+"|"+r.src_pseudo_letter+"{1,63})",r.src_domain="(?:"+r.src_xn+"|(?:"+r.src_pseudo_letter+")|(?:"+r.src_pseudo_letter+"(?:-|"+r.src_pseudo_letter+"){0,61}"+r.src_pseudo_letter+"))",r.src_host="(?:(?:(?:(?:"+r.src_domain+")\\.)*"+r.src_domain+"))",r.tpl_host_fuzzy="(?:"+r.src_ip4+"|(?:(?:(?:"+r.src_domain+")\\.)+(?:%TLDS%)))",r.tpl_host_no_ip_fuzzy="(?:(?:(?:"+r.src_domain+")\\.)+(?:%TLDS%))",r.src_host_strict=r.src_host+r.src_host_terminator,r.tpl_host_fuzzy_strict=r.tpl_host_fuzzy+r.src_host_terminator,r.src_host_port_strict=r.src_host+r.src_port+r.src_host_terminator,r.tpl_host_port_fuzzy_strict=r.tpl_host_fuzzy+r.src_port+r.src_host_terminator,r.tpl_host_port_no_ip_fuzzy_strict=r.tpl_host_no_ip_fuzzy+r.src_port+r.src_host_terminator,r.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+r.src_ZPCc+"|>|$))",r.tpl_email_fuzzy="(^|"+i+'|"|\\(|'+r.src_ZCc+")("+r.src_email_name+"@"+r.tpl_host_fuzzy_strict+")",r.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+r.src_ZPCc+"))((?![$+<=>^`||])"+r.tpl_host_port_fuzzy_strict+r.src_path+")",r.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+r.src_ZPCc+"))((?![$+<=>^`||])"+r.tpl_host_port_no_ip_fuzzy_strict+r.src_path+")",r}),Df}var Mf,lv;function NR(){if(lv)return Mf;lv=1;function n(b){var w=Array.prototype.slice.call(arguments,1);return w.forEach(function(S){S&&Object.keys(S).forEach(function(z){b[z]=S[z]})}),b}function r(b){return Object.prototype.toString.call(b)}function i(b){return r(b)==="[object String]"}function l(b){return r(b)==="[object Object]"}function u(b){return r(b)==="[object RegExp]"}function c(b){return r(b)==="[object Function]"}function h(b){return b.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var d={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function m(b){return Object.keys(b||{}).reduce(function(w,S){return w||d.hasOwnProperty(S)},!1)}var g={"http:":{validate:function(b,w,S){var z=b.slice(w);return S.re.http||(S.re.http=new RegExp("^\\/\\/"+S.re.src_auth+S.re.src_host_port_strict+S.re.src_path,"i")),S.re.http.test(z)?z.match(S.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(b,w,S){var z=b.slice(w);return S.re.no_http||(S.re.no_http=new RegExp("^"+S.re.src_auth+"(?:localhost|(?:(?:"+S.re.src_domain+")\\.)+"+S.re.src_domain_root+")"+S.re.src_port+S.re.src_host_terminator+S.re.src_path,"i")),S.re.no_http.test(z)?w>=3&&b[w-3]===":"||w>=3&&b[w-3]==="/"?0:z.match(S.re.no_http)[0].length:0}},"mailto:":{validate:function(b,w,S){var z=b.slice(w);return S.re.mailto||(S.re.mailto=new RegExp("^"+S.re.src_email_name+"@"+S.re.src_host_strict,"i")),S.re.mailto.test(z)?z.match(S.re.mailto)[0].length:0}}},y="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",T="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function O(b){b.__index__=-1,b.__text_cache__=""}function j(b){return function(w,S){var z=w.slice(S);return b.test(z)?z.match(b)[0].length:0}}function M(){return function(b,w){w.normalize(b)}}function V(b){var w=b.re=CR()(b.__opts__),S=b.__tlds__.slice();b.onCompile(),b.__tlds_replaced__||S.push(y),S.push(w.src_xn),w.src_tlds=S.join("|");function z(J){return J.replace("%TLDS%",w.src_tlds)}w.email_fuzzy=RegExp(z(w.tpl_email_fuzzy),"i"),w.link_fuzzy=RegExp(z(w.tpl_link_fuzzy),"i"),w.link_no_ip_fuzzy=RegExp(z(w.tpl_link_no_ip_fuzzy),"i"),w.host_fuzzy_test=RegExp(z(w.tpl_host_fuzzy_test),"i");var Y=[];b.__compiled__={};function $(J,W){throw new Error('(LinkifyIt) Invalid schema "'+J+'": '+W)}Object.keys(b.__schemas__).forEach(function(J){var W=b.__schemas__[J];if(W!==null){var se={validate:null,link:null};if(b.__compiled__[J]=se,l(W)){u(W.validate)?se.validate=j(W.validate):c(W.validate)?se.validate=W.validate:$(J,W),c(W.normalize)?se.normalize=W.normalize:W.normalize?$(J,W):se.normalize=M();return}if(i(W)){Y.push(J);return}$(J,W)}}),Y.forEach(function(J){b.__compiled__[b.__schemas__[J]]&&(b.__compiled__[J].validate=b.__compiled__[b.__schemas__[J]].validate,b.__compiled__[J].normalize=b.__compiled__[b.__schemas__[J]].normalize)}),b.__compiled__[""]={validate:null,normalize:M()};var ie=Object.keys(b.__compiled__).filter(function(J){return J.length>0&&b.__compiled__[J]}).map(h).join("|");b.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+w.src_ZPCc+"))("+ie+")","i"),b.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+w.src_ZPCc+"))("+ie+")","ig"),b.re.pretest=RegExp("("+b.re.schema_test.source+")|("+b.re.host_fuzzy_test.source+")|@","i"),O(b)}function q(b,w){var S=b.__index__,z=b.__last_index__,Y=b.__text_cache__.slice(S,z);this.schema=b.__schema__.toLowerCase(),this.index=S+w,this.lastIndex=z+w,this.raw=Y,this.text=Y,this.url=Y}function E(b,w){var S=new q(b,w);return b.__compiled__[S.schema].normalize(S,b),S}function x(b,w){if(!(this instanceof x))return new x(b,w);w||m(b)&&(w=b,b={}),this.__opts__=n({},d,w),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=n({},g,b),this.__compiled__={},this.__tlds__=T,this.__tlds_replaced__=!1,this.re={},V(this)}return x.prototype.add=function(w,S){return this.__schemas__[w]=S,V(this),this},x.prototype.set=function(w){return this.__opts__=n(this.__opts__,w),this},x.prototype.test=function(w){if(this.__text_cache__=w,this.__index__=-1,!w.length)return!1;var S,z,Y,$,ie,J,W,se,le;if(this.re.schema_test.test(w)){for(W=this.re.schema_search,W.lastIndex=0;(S=W.exec(w))!==null;)if($=this.testSchemaAt(w,S[2],W.lastIndex),$){this.__schema__=S[2],this.__index__=S.index+S[1].length,this.__last_index__=S.index+S[0].length+$;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(se=w.search(this.re.host_fuzzy_test),se>=0&&(this.__index__<0||se<this.__index__)&&(z=w.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(ie=z.index+z[1].length,(this.__index__<0||ie<this.__index__)&&(this.__schema__="",this.__index__=ie,this.__last_index__=z.index+z[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(le=w.indexOf("@"),le>=0&&(Y=w.match(this.re.email_fuzzy))!==null&&(ie=Y.index+Y[1].length,J=Y.index+Y[0].length,(this.__index__<0||ie<this.__index__||ie===this.__index__&&J>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=ie,this.__last_index__=J))),this.__index__>=0},x.prototype.pretest=function(w){return this.re.pretest.test(w)},x.prototype.testSchemaAt=function(w,S,z){return this.__compiled__[S.toLowerCase()]?this.__compiled__[S.toLowerCase()].validate(w,z,this):0},x.prototype.match=function(w){var S=0,z=[];this.__index__>=0&&this.__text_cache__===w&&(z.push(E(this,S)),S=this.__last_index__);for(var Y=S?w.slice(S):w;this.test(Y);)z.push(E(this,S)),Y=Y.slice(this.__last_index__),S+=this.__last_index__;return z.length?z:null},x.prototype.tlds=function(w,S){return w=Array.isArray(w)?w:[w],S?(this.__tlds__=this.__tlds__.concat(w).sort().filter(function(z,Y,$){return z!==$[Y-1]}).reverse(),V(this),this):(this.__tlds__=w.slice(),this.__tlds_replaced__=!0,V(this),this)},x.prototype.normalize=function(w){w.schema||(w.url="http://"+w.url),w.schema==="mailto:"&&!/^mailto:/i.test(w.url)&&(w.url="mailto:"+w.url)},x.prototype.onCompile=function(){},Mf=x,Mf}const DR=JSON.parse('["aaa","aarp","abb","abbott","abbvie","abc","able","abogado","abudhabi","ac","academy","accenture","accountant","accountants","aco","actor","ad","ads","adult","ae","aeg","aero","aetna","af","afl","africa","ag","agakhan","agency","ai","aig","airbus","airforce","airtel","akdn","al","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","am","amazon","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","ao","aol","apartments","app","apple","aq","aquarelle","ar","arab","aramco","archi","army","arpa","art","arte","as","asda","asia","associates","at","athleta","attorney","au","auction","audi","audible","audio","auspost","author","auto","autos","aw","aws","ax","axa","az","azure","ba","baby","baidu","banamex","band","bank","bar","barcelona","barclaycard","barclays","barefoot","bargains","baseball","basketball","bauhaus","bayern","bb","bbc","bbt","bbva","bcg","bcn","bd","be","beats","beauty","beer","bentley","berlin","best","bestbuy","bet","bf","bg","bh","bharti","bi","bible","bid","bike","bing","bingo","bio","biz","bj","black","blackfriday","blockbuster","blog","bloomberg","blue","bm","bms","bmw","bn","bnpparibas","bo","boats","boehringer","bofa","bom","bond","boo","book","booking","bosch","bostik","boston","bot","boutique","box","br","bradesco","bridgestone","broadway","broker","brother","brussels","bs","bt","build","builders","business","buy","buzz","bv","bw","by","bz","bzh","ca","cab","cafe","cal","call","calvinklein","cam","camera","camp","canon","capetown","capital","capitalone","car","caravan","cards","care","career","careers","cars","casa","case","cash","casino","cat","catering","catholic","cba","cbn","cbre","cc","cd","center","ceo","cern","cf","cfa","cfd","cg","ch","chanel","channel","charity","chase","chat","cheap","chintai","christmas","chrome","church","ci","cipriani","circle","cisco","citadel","citi","citic","city","ck","cl","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","cm","cn","co","coach","codes","coffee","college","cologne","com","commbank","community","company","compare","computer","comsec","condos","construction","consulting","contact","contractors","cooking","cool","coop","corsica","country","coupon","coupons","courses","cpa","cr","credit","creditcard","creditunion","cricket","crown","crs","cruise","cruises","cu","cuisinella","cv","cw","cx","cy","cymru","cyou","cz","dad","dance","data","date","dating","datsun","day","dclk","dds","de","deal","dealer","deals","degree","delivery","dell","deloitte","delta","democrat","dental","dentist","desi","design","dev","dhl","diamonds","diet","digital","direct","directory","discount","discover","dish","diy","dj","dk","dm","dnp","do","docs","doctor","dog","domains","dot","download","drive","dtv","dubai","dunlop","dupont","durban","dvag","dvr","dz","earth","eat","ec","eco","edeka","edu","education","ee","eg","email","emerck","energy","engineer","engineering","enterprises","epson","equipment","er","ericsson","erni","es","esq","estate","et","eu","eurovision","eus","events","exchange","expert","exposed","express","extraspace","fage","fail","fairwinds","faith","family","fan","fans","farm","farmers","fashion","fast","fedex","feedback","ferrari","ferrero","fi","fidelity","fido","film","final","finance","financial","fire","firestone","firmdale","fish","fishing","fit","fitness","fj","fk","flickr","flights","flir","florist","flowers","fly","fm","fo","foo","food","football","ford","forex","forsale","forum","foundation","fox","fr","free","fresenius","frl","frogans","frontier","ftr","fujitsu","fun","fund","furniture","futbol","fyi","ga","gal","gallery","gallo","gallup","game","games","gap","garden","gay","gb","gbiz","gd","gdn","ge","gea","gent","genting","george","gf","gg","ggee","gh","gi","gift","gifts","gives","giving","gl","glass","gle","global","globo","gm","gmail","gmbh","gmo","gmx","gn","godaddy","gold","goldpoint","golf","goo","goodyear","goog","google","gop","got","gov","gp","gq","gr","grainger","graphics","gratis","green","gripe","grocery","group","gs","gt","gu","gucci","guge","guide","guitars","guru","gw","gy","hair","hamburg","hangout","haus","hbo","hdfc","hdfcbank","health","healthcare","help","helsinki","here","hermes","hiphop","hisamitsu","hitachi","hiv","hk","hkt","hm","hn","hockey","holdings","holiday","homedepot","homegoods","homes","homesense","honda","horse","hospital","host","hosting","hot","hotels","hotmail","house","how","hr","hsbc","ht","hu","hughes","hyatt","hyundai","ibm","icbc","ice","icu","id","ie","ieee","ifm","ikano","il","im","imamat","imdb","immo","immobilien","in","inc","industries","infiniti","info","ing","ink","institute","insurance","insure","int","international","intuit","investments","io","ipiranga","iq","ir","irish","is","ismaili","ist","istanbul","it","itau","itv","jaguar","java","jcb","je","jeep","jetzt","jewelry","jio","jll","jm","jmp","jnj","jo","jobs","joburg","jot","joy","jp","jpmorgan","jprs","juegos","juniper","kaufen","kddi","ke","kerryhotels","kerryproperties","kfh","kg","kh","ki","kia","kids","kim","kindle","kitchen","kiwi","km","kn","koeln","komatsu","kosher","kp","kpmg","kpn","kr","krd","kred","kuokgroup","kw","ky","kyoto","kz","la","lacaixa","lamborghini","lamer","lancaster","land","landrover","lanxess","lasalle","lat","latino","latrobe","law","lawyer","lb","lc","lds","lease","leclerc","lefrak","legal","lego","lexus","lgbt","li","lidl","life","lifeinsurance","lifestyle","lighting","like","lilly","limited","limo","lincoln","link","live","living","lk","llc","llp","loan","loans","locker","locus","lol","london","lotte","lotto","love","lpl","lplfinancial","lr","ls","lt","ltd","ltda","lu","lundbeck","luxe","luxury","lv","ly","ma","madrid","maif","maison","makeup","man","management","mango","map","market","marketing","markets","marriott","marshalls","mattel","mba","mc","mckinsey","md","me","med","media","meet","melbourne","meme","memorial","men","menu","merckmsd","mg","mh","miami","microsoft","mil","mini","mint","mit","mitsubishi","mk","ml","mlb","mls","mm","mma","mn","mo","mobi","mobile","moda","moe","moi","mom","monash","money","monster","mormon","mortgage","moscow","moto","motorcycles","mov","movie","mp","mq","mr","ms","msd","mt","mtn","mtr","mu","museum","music","mv","mw","mx","my","mz","na","nab","nagoya","name","navy","nba","nc","ne","nec","net","netbank","netflix","network","neustar","new","news","next","nextdirect","nexus","nf","nfl","ng","ngo","nhk","ni","nico","nike","nikon","ninja","nissan","nissay","nl","no","nokia","norton","now","nowruz","nowtv","np","nr","nra","nrw","ntt","nu","nyc","nz","obi","observer","office","okinawa","olayan","olayangroup","ollo","om","omega","one","ong","onl","online","ooo","open","oracle","orange","org","organic","origins","osaka","otsuka","ott","ovh","pa","page","panasonic","paris","pars","partners","parts","party","pay","pccw","pe","pet","pf","pfizer","pg","ph","pharmacy","phd","philips","phone","photo","photography","photos","physio","pics","pictet","pictures","pid","pin","ping","pink","pioneer","pizza","pk","pl","place","play","playstation","plumbing","plus","pm","pn","pnc","pohl","poker","politie","porn","post","pr","pramerica","praxi","press","prime","pro","prod","productions","prof","progressive","promo","properties","property","protection","pru","prudential","ps","pt","pub","pw","pwc","py","qa","qpon","quebec","quest","racing","radio","re","read","realestate","realtor","realty","recipes","red","redstone","redumbrella","rehab","reise","reisen","reit","reliance","ren","rent","rentals","repair","report","republican","rest","restaurant","review","reviews","rexroth","rich","richardli","ricoh","ril","rio","rip","ro","rocks","rodeo","rogers","room","rs","rsvp","ru","rugby","ruhr","run","rw","rwe","ryukyu","sa","saarland","safe","safety","sakura","sale","salon","samsclub","samsung","sandvik","sandvikcoromant","sanofi","sap","sarl","sas","save","saxo","sb","sbi","sbs","sc","scb","schaeffler","schmidt","scholarships","school","schule","schwarz","science","scot","sd","se","search","seat","secure","security","seek","select","sener","services","seven","sew","sex","sexy","sfr","sg","sh","shangrila","sharp","shell","shia","shiksha","shoes","shop","shopping","shouji","show","si","silk","sina","singles","site","sj","sk","ski","skin","sky","skype","sl","sling","sm","smart","smile","sn","sncf","so","soccer","social","softbank","software","sohu","solar","solutions","song","sony","soy","spa","space","sport","spot","sr","srl","ss","st","stada","staples","star","statebank","statefarm","stc","stcgroup","stockholm","storage","store","stream","studio","study","style","su","sucks","supplies","supply","support","surf","surgery","suzuki","sv","swatch","swiss","sx","sy","sydney","systems","sz","tab","taipei","talk","taobao","target","tatamotors","tatar","tattoo","tax","taxi","tc","tci","td","tdk","team","tech","technology","tel","temasek","tennis","teva","tf","tg","th","thd","theater","theatre","tiaa","tickets","tienda","tips","tires","tirol","tj","tjmaxx","tjx","tk","tkmaxx","tl","tm","tmall","tn","to","today","tokyo","tools","top","toray","toshiba","total","tours","town","toyota","toys","tr","trade","trading","training","travel","travelers","travelersinsurance","trust","trv","tt","tube","tui","tunes","tushu","tv","tvs","tw","tz","ua","ubank","ubs","ug","uk","unicom","university","uno","uol","ups","us","uy","uz","va","vacations","vana","vanguard","vc","ve","vegas","ventures","verisign","vermögensberater","vermögensberatung","versicherung","vet","vg","vi","viajes","video","vig","viking","villas","vin","vip","virgin","visa","vision","viva","vivo","vlaanderen","vn","vodka","volvo","vote","voting","voto","voyage","vu","wales","walmart","walter","wang","wanggou","watch","watches","weather","weatherchannel","webcam","weber","website","wed","wedding","weibo","weir","wf","whoswho","wien","wiki","williamhill","win","windows","wine","winners","wme","wolterskluwer","woodside","work","works","world","wow","ws","wtc","wtf","xbox","xerox","xihuan","xin","xxx","xyz","yachts","yahoo","yamaxun","yandex","ye","yodobashi","yoga","yokohama","you","youtube","yt","yun","za","zappos","zara","zero","zip","zm","zone","zuerich","zw","ελ","ευ","бг","бел","дети","ею","католик","ком","мкд","мон","москва","онлайн","орг","рус","рф","сайт","срб","укр","қаз","հայ","ישראל","קום","ابوظبي","ارامكو","الاردن","البحرين","الجزائر","السعودية","العليان","المغرب","امارات","ایران","بارت","بازار","بيتك","بھارت","تونس","سودان","سورية","شبكة","عراق","عرب","عمان","فلسطين","قطر","كاثوليك","كوم","مصر","مليسيا","موريتانيا","موقع","همراه","پاکستان","ڀارت","कॉम","नेट","भारत","भारतम्","भारोत","संगठन","বাংলা","ভারত","ভাৰত","ਭਾਰਤ","ભારત","ଭାରତ","இந்தியா","இலங்கை","சிங்கப்பூர்","భారత్","ಭಾರತ","ഭാരതം","ලංකා","คอม","ไทย","ລາວ","გე","みんな","アマゾン","クラウド","グーグル","コム","ストア","セール","ファッション","ポイント","世界","中信","中国","中國","中文网","亚马逊","企业","佛山","信息","健康","八卦","公司","公益","台湾","台灣","商城","商店","商标","嘉里","嘉里大酒店","在线","大拿","天主教","娱乐","家電","广东","微博","慈善","我爱你","手机","招聘","政务","政府","新加坡","新闻","时尚","書籍","机构","淡马锡","游戏","澳門","点看","移动","组织机构","网址","网店","网站","网络","联通","谷歌","购物","通販","集团","電訊盈科","飞利浦","食品","餐厅","香格里拉","香港","닷넷","닷컴","삼성","한국"]');var ov;function MR(){if(ov)return Zl;ov=1,Object.defineProperty(Zl,"__esModule",{value:!0});var n=NR(),r=u(n),i=DR,l=u(i);function u(h){return h&&h.__esModule?h:{default:h}}var c=new r.default;return c.tlds(l.default),Zl.default=function(h){return c.match(h)},Zl}var Xl={},uv;function BR(){return uv||(uv=1,Object.defineProperty(Xl,"__esModule",{value:!0}),Xl.default=function(n){return n}),Xl}var cv;function jR(){if(cv)return Vl;cv=1,Object.defineProperty(Vl,"__esModule",{value:!0});var n=function(){function E(x,b){for(var w=0;w<b.length;w++){var S=b[w];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(x,S.key,S)}}return function(x,b,w){return b&&E(x.prototype,b),w&&E(x,w),x}}(),r=Ga(),i=O(r),l=TR(),u=T(l),c=xR(),h=T(c),d=MR(),m=T(d),g=BR(),y=T(g);function T(E){return E&&E.__esModule?E:{default:E}}function O(E){if(E&&E.__esModule)return E;var x={};if(E!=null)for(var b in E)Object.prototype.hasOwnProperty.call(E,b)&&(x[b]=E[b]);return x.default=E,x}function j(E,x){if(!(E instanceof x))throw new TypeError("Cannot call a class as a function")}function M(E,x){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:E}function V(E,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);E.prototype=Object.create(x&&x.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(E,x):E.__proto__=x)}var q=function(E){V(x,E);function x(){return j(this,x),M(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return n(x,[{key:"parseString",value:function(w){var S=this;if(w==="")return w;var z=this.props.matchDecorator(w);if(!z)return w;var Y=[],$=0;return z.forEach(function(ie,J){ie.index>$&&Y.push(w.substring($,ie.index));var W=S.props.hrefDecorator(ie.url),se=S.props.textDecorator(ie.text),le=S.props.componentDecorator(W,se,J);Y.push(le),$=ie.lastIndex}),w.length>$&&Y.push(w.substring($)),Y.length===1?Y[0]:Y}},{key:"parse",value:function(w){var S=this,z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof w=="string"?this.parseString(w):i.isValidElement(w)&&w.type!=="a"&&w.type!=="button"?i.cloneElement(w,{key:z},this.parse(w.props.children)):Array.isArray(w)?w.map(function(Y,$){return S.parse(Y,$)}):w}},{key:"render",value:function(){return i.createElement(i.Fragment,null,this.parse(this.props.children))}}]),x}(i.Component);return q.defaultProps={componentDecorator:u.default,hrefDecorator:h.default,matchDecorator:m.default,textDecorator:y.default},Vl.default=q,Vl}var fv;function UR(){if(fv)return Fl;fv=1,Object.defineProperty(Fl,"__esModule",{value:!0});var n=jR(),r=i(n);function i(l){return l&&l.__esModule?l:{default:l}}return Fl.default=r.default,Fl}var LR=UR();const HR=po(LR),zR="_text_gp0s0_1",kR="_command_gp0s0_5",hv={text:zR,command:kR},bb=({text:n,commands:r=[],onLinkClick:i})=>{const l=d=>m=>(m.preventDefault(),d&&i(d),!1),u=(d,m,g)=>v.jsx("a",{onClick:l(d),role:"button",children:m},g),c=r.find(d=>n.startsWith(`/${d}`)),h=c?n.slice(c.length+1):n;return v.jsxs("div",{children:[c&&v.jsxs("code",{className:hv.command,children:["/",c]}),h.split(`
106
- `).map((d,m)=>v.jsxs("span",{className:hv.text,children:[v.jsx(HR,{componentDecorator:u,children:d}),v.jsx("br",{})]},m))]})},GR=({subtitle:n,onLinkClick:r})=>n?v.jsx("div",{className:At.subtitle,children:v.jsx(bb,{text:n,onLinkClick:r})}):null,dv="newtab#",Eb=({markdown:n,markdownOptions:r={},onLinkClick:i})=>{const l=c=>h=>(h.preventDefault(),c&&i(c),!1),u=({title:c,href:h,children:d})=>h.indexOf(dv)===0?v.jsx("a",{href:h.slice(dv.length),title:c,target:"_blank",rel:"noopener noreferrer",children:d}):v.jsx("a",{onClick:l(h),title:c,href:h,children:d});return v.jsx(_n,{options:{...r,overrides:{a:u}},children:n})},qR=({text:n,onLinkClick:r})=>n?v.jsx("div",{children:v.jsx(Eb,{markdown:n,onLinkClick:r})}):null,IR=({title:n})=>n?v.jsx("h1",{className:At.title,children:n}):null,FR=({title:n,text:r,subtitle:i,buttons:l,onButtonClick:u,onLinkClick:c})=>n?.length||r?.length||i?.length||l?.length?v.jsxs("div",{className:X(de.bubbleContent),children:[v.jsx(IR,{title:n}),v.jsx(qR,{text:r,onLinkClick:c}),v.jsx(GR,{subtitle:i,onLinkClick:c}),v.jsx(SR,{buttons:l,onButtonClick:u})]}):null,VR=({alt:n,imageUrl:r,itemUrl:i,hasBody:l})=>r?i?i.indexOf("youtube.com")>-1?v.jsx("div",{className:At.video_container,children:v.jsx("iframe",{className:X(At.video,{[At.only]:!l}),title:"Youtube",width:"100%",src:i+"?rel=0",frameBorder:"0",allowFullScreen:!0})}):v.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",children:v.jsx("div",{className:At.imageContainer,children:v.jsx("img",{className:X(At.image,{[At.only]:!l}),src:r,alt:n})})}):v.jsx("div",{className:At.imageContainer,children:v.jsx("img",{className:X(At.image,{[At.only]:!l}),src:r,alt:n})}):null,PR=({title:n,text:r,subtitle:i,imageUrl:l,itemUrl:u,buttons:c,sources:h,onButtonClick:d,onLinkClick:m})=>{const g=!!n?.length||!!r?.length||!!i?.length||!!c?.length;return v.jsxs("div",{className:X(At.detailMessage),children:[v.jsx(VR,{hasBody:g,imageUrl:l,itemUrl:u,alt:n||i}),g&&v.jsx(FR,{title:n,text:r,subtitle:i,buttons:c,onLinkClick:m,onButtonClick:d}),v.jsx(rd,{sources:h,onLinkClick:m})]})},YR=H.forwardRef(({isFirstMessageBySender:n,isLastMessageBySender:r,children:i},l)=>{const u=Pe();return v.jsx("li",{ref:l,className:X(de.message,de.messageGuest,n&&de.messageGuestFirst,r&&de.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",n&&"chat__bubbleContainer--first",r&&"chat__bubbleContainer--last"),children:v.jsx("div",{className:X(de.bubble,de.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":u("guest-bubble.label"),children:v.jsx("div",{className:X(de.rightText),children:i})})})}),ZR="_markdown_nw7vg_1",Sb={markdown:ZR},Tb=()=>XR(window.location.pathname),XR=n=>{const r=n.split("/"),i=n.endsWith("/");return r[r.length-(i?2:1)]},ad=()=>H.useMemo(()=>Tb(),[]),Ql="source-info-reference",QR=({actionId:n,markdown:r,sources:i,onLinkClick:l})=>{const u=ad(),c=Ia(),h=KR(),d=zt(y=>{const T=y.chat.sourceInfos;if(T?.type==="loaded"||T?.type==="loading")return T.chunkId}),m=y=>T=>{const O=T.key;(O==="ArrowDown"||O==="ArrowRight"||O==="Enter"||O===" "||O==="Space")&&(T.stopPropagation(),c(Uy(u,n,y)))},g=y=>()=>{c(Uy(u,n,y))};return H.useLayoutEffect(()=>{document.querySelectorAll(`.${Ql}`).forEach(y=>{const T=y.previousSibling;T&&T.nodeType===Node.TEXT_NODE&&T.textContent?.endsWith(" ")&&T.textContent?.trim().length&&y.classList.add(`${Ql}--before-space`);const O=y.nextSibling;O&&O.nodeType===Node.TEXT_NODE&&O.textContent?.startsWith(" ")&&O.textContent?.trim().length&&y.classList.add(`${Ql}--after-space`)})},[r]),v.jsxs("div",{className:de.bubbleContent,children:[v.jsx("div",{className:Sb.markdown,children:v.jsx(Eb,{markdown:r,onLinkClick:l,markdownOptions:{renderRule(y,T,O,j){if(T.type===bO.footnoteReference){const M=T.text===d;return v.jsx("span",{className:X(de.sourceInfoReference,M&&de.sourceInfoReferenceActive,Ql),children:v.jsx("a",{type:"button",tabIndex:0,onClick:g(T.text),onKeyDown:m(T.text),children:h(T.text)})},j.key)}return y()}}})}),v.jsx(rd,{sources:i,onLinkClick:l})]})},KR=()=>{const n=[];return i=>{const l=n.indexOf(i);return l>-1?l+1:(n.push(i),n.length)}},$R=({text:n,commands:r,sources:i,onLinkClick:l})=>v.jsxs("div",{className:de.bubbleContent,children:[v.jsx(bb,{text:n,commands:r,onLinkClick:l}),v.jsx(rd,{sources:i,onLinkClick:l})]}),JR=H.forwardRef(({message:n,commands:r,isLastMessage:i,isFirstMessageBySender:l,isLastMessageBySender:u,onReaction:c,onButtonClick:h,onLinkClick:d},m)=>{const g=WR(n._id,n,r,h,d);switch(n.sender.type){case Ee.UserType.GUEST:return v.jsx(YR,{ref:m,isFirstMessageBySender:l,isLastMessageBySender:u,children:g});default:{const y=T=>c(n._id,T);return v.jsx(pb,{ref:m,message:n,isAnimated:!1,isLastMessage:i,isFirstMessageBySender:l,isLastMessageBySender:u,onReaction:y,children:g})}}}),WR=(n,r,i,l,u)=>{switch(r.type){case Ee.MessageTypeEnum.TEXT:{const c=r;return v.jsx($R,{text:c.text,commands:i,sources:r.sources||[],onLinkClick:u})}case Ee.MessageTypeEnum.DETAIL:{const c=r;return v.jsx(PR,{title:c.title,text:c.text,subtitle:c.subtitle,imageUrl:c.imageUrl,itemUrl:c.itemUrl,buttons:c.buttons,sources:r.sources||[],onButtonClick:l,onLinkClick:u})}case Ee.MessageTypeEnum.MARKDOWN:{const c=r;return v.jsx(QR,{actionId:n,markdown:c.markdown,sources:c.sources||[],onLinkClick:u})}}},eC=(n,r)=>n.message._id===r.message._id&&n.message.reaction===r.message.reaction&&n.isLastMessage===r.isLastMessage&&n.isFirstMessageBySender===r.isFirstMessageBySender&&n.isLastMessageBySender===r.isLastMessageBySender,tC=Kv.memo(JR,eC),nC="_ticontainer_xg0dn_1",rC="_tiblock_xg0dn_5",aC="_tidot_xg0dn_12",Ki={ticontainer:nC,tiblock:rC,tidot:aC},iC=({isTyping:n=!1})=>v.jsx("div",{className:Ki.ticontainer,children:v.jsx("div",{className:Ki.tiblock,children:n?v.jsxs(v.Fragment,{children:[v.jsx("div",{className:X(Ki.tidot,"chat__typingIndicator")}),v.jsx("div",{className:X(Ki.tidot,"chat__typingIndicator")}),v.jsx("div",{className:X(Ki.tidot,"chat__typingIndicator")})]}):null})}),sC=Object.assign({_id:"typing-indicator"},new Ee.TextMessage("",new Ee.BotUser)),lC=({messages:n,isBotTyping:r,commands:i,onTranscriptItemReaction:l,onButtonClick:u,onLinkClick:c})=>{const h=H.useRef(0),d=H.useRef(!0),m=H.useRef(null),g=H.useRef(null),y=H.useRef(null),T=zt(M=>M.settings.enableGeneralConditions);H.useLayoutEffect(()=>{if(n.length&&m.current&&(h.current<n.length||r)){if(g.current){const M=g.current.offsetTop;m.current.scrollTop=M}else if(y.current){const M=y.current.offsetTop;m.current.scrollTop=M}d.current&&(d.current=!1),h.current=n.length}},[n,d,r]);let O;const j=n.length;return v.jsxs("div",{ref:m,className:X(Hy.messageContainer,"chat__messageContainer"),style:{scrollBehavior:n.length&&d.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[T&&v.jsx(Uw,{}),v.jsxs("ul",{className:Hy.messages,children:[n.map((M,V)=>{const q=oC(M,O),E=uC(M,V,n,r);O=M.sender.type;const x=V+1===j,b=M._id||`added-${V}`;return v.jsx(tC,{ref:x?y:null,message:M,commands:i,isLastMessage:x,isFirstMessageBySender:q,isLastMessageBySender:E,onButtonClick:u,onLinkClick:c,onReaction:l},x&&!r?"last":b)}),r&&v.jsx(pb,{ref:g,message:sC,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:O!==Ee.UserType.BOT,isLastMessageBySender:!0,children:v.jsx(iC,{isTyping:!0})},"last")]})]})},oC=(n,r)=>!r||r!==n.sender.type,uC=(n,r,i,l)=>{const u=n.sender.type,c=i.length;return r+1===c?!(u===Ee.UserType.BOT&&l):u!==i.at(r+1)?.sender.type},cC="_bottomSheet_jp8dl_1",fC="_bottomSheetOpen_jp8dl_15",hC="_bottomSheetClose_jp8dl_20",Fn={bottomSheet:cC,bottomSheetOpen:fC,bottomSheetClose:hC},dC="_container_xc2nx_1",mv={container:dC},mC=({contentUrl:n})=>{const r=zt(c=>c.connection.sessionId),[i,l]=H.useState(!1);H.useEffect(()=>{l(c=>c||!!n)},[n]);const u=H.useMemo(()=>{if(n&&r){const c=new URL(n,document.baseURI);return c.searchParams.set("sessionId",r),c.toString()}else return},[n,r]);return v.jsx("div",{className:X(mv.container,Fn.bottomSheet,{[Fn.bottomSheetOpen]:!!n,[Fn.bottomSheetClose]:i&&!n}),children:u&&v.jsx("iframe",{title:"Drawer",src:u,className:mv.iframe})})},pC="_container_z787n_1",gC={container:pC},yC=({title:n,href:r,children:i})=>v.jsx("a",{href:r,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),vC=()=>{const r=Pe()("powered-by");return r&&r.length?v.jsx("div",{className:X(gC.container,"chat__poweredBy"),children:v.jsx(_n,{options:{overrides:{a:yC}},children:r})}):null},pv=({className:n,children:r,...i})=>v.jsx(wo,{className:X(as.buttonDefault,n),type:"button",...i,children:r}),is=({className:n,children:r,...i})=>v.jsx(wo,{className:X(as.buttonPrimary,n),...i,children:r}),_C="_container_h23mk_1",bC="_formContainer_h23mk_17",EC="_emailInput_h23mk_22",SC="_description_h23mk_52",TC="_actions_h23mk_57",xC="_validationError_h23mk_67",AC="_submitted_h23mk_74",Gn={container:_C,formContainer:bC,emailInput:EC,description:SC,actions:TC,validationError:xC,submitted:AC},OC=({visible:n,enableTranscriptExportPdf:r,enableTranscriptExportEmail:i,onEmailExport:l,onPdfExport:u,onClose:c})=>{const h=Pe(),[d,m]=H.useState(void 0),[g,y]=H.useState(!1),[T,O]=H.useState(!1),[j,M]=H.useState(void 0),V=H.useRef(null);H.useEffect(()=>{n?(V.current?.focus(),y(!1),O(!1),m(n)):d===!0&&m(!1)},[n,d]);const q=b=>{b.preventDefault(),j&&j.length>0&&(l(j),y(!0),setTimeout(c,3*1e3))},E=b=>{const w=b.target.value.trim(),S=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(w);M(S?w:"")},x=()=>{O(!0),u(),setTimeout(c,3*1e3)};return v.jsxs("div",{className:X(Gn.container,Fn.bottomSheet,{[Fn.bottomSheetOpen]:d===!0,[Fn.bottomSheetClose]:d===!1}),children:[r&&v.jsxs(v.Fragment,{children:[v.jsx("h2",{children:h("export-transcript.pdf.title")}),v.jsx(_n,{className:Gn.description,children:h("export-transcript.pdf.description")||""}),v.jsxs("div",{className:Gn.actions,children:[v.jsx(pv,{onClick:c,children:h("export-transcript.pdf.cancel")}),v.jsx(is,{onClick:x,disabled:T,children:h("export-transcript.pdf.download")})]})]}),i&&v.jsxs(v.Fragment,{children:[v.jsx("h2",{children:h("export-transcript.email.title")}),v.jsx(_n,{className:Gn.description,children:h("export-transcript.email.description")||""}),v.jsxs("form",{onSubmit:q,className:Gn.formContainer,children:[v.jsxs("div",{children:[v.jsx("input",{disabled:g,ref:V,type:"email",placeholder:h("export-transcript.email.placeholder"),className:Gn.emailInput,onChange:E}),j?.length===0?v.jsx("div",{className:Gn.validationError,children:h("export-transcript.email.invalid")}):null]}),v.jsxs("div",{className:Gn.actions,children:[v.jsx(pv,{onClick:c,children:h("export-transcript.email.cancel")}),v.jsx(is,{type:"submit",disabled:g||j===void 0||j.length===0,children:h("export-transcript.email.send")})]})]}),g&&v.jsx("div",{className:Gn.submitted,children:h("export-transcript.email.success")})]})]})},wC="_inputContainer_fi5ao_1",RC={inputContainer:wC},CC="_blockUserInput_pot9c_1",NC={blockUserInput:CC},DC=({visible:n})=>{const r=Pe();return n?v.jsx("div",{className:X(NC.blockUserInput,"chat__blockUserInput"),children:r("block-user-input.title")}):null},MC="_commandsDropdown_5ytuv_1",BC="_commands_5ytuv_1",jC="_command_5ytuv_1",UC="_commandActive_5ytuv_46",LC="_commandsSelections_5ytuv_55",Wi={commandsDropdown:MC,commands:BC,command:jC,commandActive:UC,commandsSelections:LC},HC=(n,r)=>{H.useEffect(()=>{const i=l=>{n.current&&!n.current.contains(l.target)&&r()};return document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)},[n,r])},zC=(n,r,i,l,u)=>{H.useEffect(()=>{const c=h=>{if(n.length)switch(h.key){case"Enter":i(n[r]);break;case"ArrowUp":l(d=>d>0?d-1:n.length-1);break;case"ArrowDown":l(d=>d<n.length-1?d+1:0);break;case"Escape":u([]);break}};return document.addEventListener("keydown",c),()=>{document.removeEventListener("keydown",c)}},[n,r,i,l,u])},kC=({text:n,commands:r,onSelectCommand:i,onVisibilityChange:l})=>{const u=H.useRef(null),c=Pe(),[h,d]=H.useState([]),[m,g]=H.useState(gv(r)),[y,T]=H.useState(0),O=j=>i(`/${j}`);return HC(u,()=>d([])),zC(h,y,O,T,d),H.useEffect(()=>{g(gv(r))},[r]),H.useEffect(()=>{const j=n.length||0;j===0||j>m||!n.startsWith("/")?d([]):d(r.filter(GC(n))),T(0)},[r,n,m]),H.useEffect(()=>{l(!!h.length)},[h,l]),h.length?v.jsx("div",{ref:u,className:Wi.commandsDropdown,children:v.jsx("ul",{id:"command-list",className:Wi.commands,role:"listbox",children:h.map((j,M)=>v.jsxs("li",{className:X([Wi.command,y===M&&Wi.commandActive]),role:"option",onClick:()=>O(j),onMouseOver:()=>T(M),children:[v.jsxs("h1",{children:["/",j]}),v.jsx("p",{children:c(`commands.${j}`)})]},j))})}):null},gv=n=>Math.max(...n.map(r=>r.length+1)),GC=n=>r=>{const i=`/${r}`;return i.startsWith(n)&&i.length>=n.length},yv=3,qC=({commands:n,onSelectCommand:r})=>{const i=Pe(),[l,u]=H.useState(!1),c=g=>()=>{r(`/${g}`),u(!1)},h=()=>{u(!0)},d=()=>{u(!1)},m=l?n:n.slice(0,yv);return v.jsxs("div",{className:Wi.commandsSelections,children:[m.map(g=>v.jsxs("button",{className:"tooltip--top-center","aria-label":i(`commands.${g}`),"data-title":i(`commands.${g}`),tabIndex:0,onClick:c(g),children:["/",g]},g)),m.length<n.length?v.jsx("button",{"aria-label":i("commands.show-more.tooltip"),"data-title":i("commands.show-more.tooltip"),tabIndex:0,onClick:h,children:i("commands.show-more.action")},"show-more"):m.length>yv?v.jsx("button",{"aria-label":i("commands.show-less.tooltip"),"data-title":i("commands.show-less.tooltip"),tabIndex:0,onClick:d,children:i("commands.show-less.action")},"show-less"):null]})},IC="_callToActionContainer_1pojq_1",FC="_callToActionTitle_1pojq_23",VC="_rateOverlay_1pojq_30",PC="_body_1pojq_52",YC="_footer_1pojq_60",ZC="_actions_1pojq_73",XC="_bubbles_1pojq_101",QC="_stars_1pojq_203",KC="_starsSmall_1pojq_217",$C="_starsLarge_1pojq_223",JC="_star_1pojq_203",WC="_starReadonly_1pojq_237",e3="_starIcon_1pojq_247",t3="_starsDescriptionContainer_1pojq_265",n3="_starsDescription_1pojq_265",_t={callToActionContainer:IC,callToActionTitle:FC,rateOverlay:VC,body:PC,footer:YC,actions:ZC,bubbles:XC,stars:QC,starsSmall:KC,starsLarge:$C,star:JC,starReadonly:WC,starIcon:e3,starsDescriptionContainer:t3,starsDescription:n3},r3=({value:n,index:r,count:i,readonly:l,onHover:u,onClick:c})=>{const h=d=>{c&&d.key==="Enter"&&c()};return v.jsx("li",{className:X(_t.star,{[_t.starReadonly]:l},"chat__conversationRating__star"),children:v.jsx("div",{role:"radio","aria-checked":n>r?"true":"false","aria-posinset":r+1,"aria-setsize":i,tabIndex:0,onMouseOver:u,onKeyDown:h,onClick:c,children:v.jsx("span",{role:"img","aria-label":"Star",className:X(_t.starIcon),children:v.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"star",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:v.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"})})})})})},vv=5,xb=({value:n,size:r,readonly:i=!1,onChange:l})=>{const[u,c]=H.useState(void 0),h=()=>{c(void 0)},d=g=>()=>{if(!i){const y=g+1;c(y)}},m=g=>()=>{l&&!i&&(l(g===0&&n===1?0:g+1),c(void 0))};return v.jsx("ul",{tabIndex:0,role:"radiogroup",className:X(_t.stars,{[_t.starsSmall]:r==="small",[_t.starsLarge]:r==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:r==="small",chat__conversationRating__stars__large:r==="large"}),onMouseOut:h,children:Array(vv).fill(0).map((g,y)=>v.jsx(r3,{value:u===void 0?n:u,index:y,count:vv,readonly:i,onHover:d(y),onClick:m(y)},y))})},a3=({visible:n,onRate:r})=>{const i=Pe();return n?v.jsxs("div",{className:X(_t.callToActionContainer,"chat__conversationRating__callToAction"),children:[v.jsx("div",{className:X(_t.callToActionTitle,"chat__conversationRating__callToAction__title"),children:i("conversation-rating.call-to-action.title")}),v.jsx(xb,{value:0,size:"small",onChange:r})]}):null},Bf=({isFirstMessageBySender:n,isLastMessageBySender:r,children:i})=>v.jsxs("div",{className:X(de.message,de.messageBot,n&&de.messageBotFirst,r&&de.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",n&&"chat__bubbleContainer--first",r&&"chat__bubbleContainer--last"),children:[v.jsx("img",{className:X(de.avatar,de.botAvatar),src:"bot.svg",alt:"Bot"}),v.jsx("div",{className:X(de.bubble,de.bubbleLeft,"chat__bubble","chat__botBubble"),children:v.jsx("div",{className:X(de.leftText,de.bubbleContent),children:i})})]}),i3=({children:n})=>v.jsx("div",{className:X(de.message,de.messageGuest,de.messageGuestFirst,de.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:v.jsx("div",{className:X(de.bubble,de.bubbleRight,"chat__bubble","chat__guestBubble"),children:v.jsx("div",{className:X(de.rightText,de.bubbleContent),children:n})})}),s3=({visible:n,rating:r,onRate:i,onClose:l})=>{const u=Pe(),[c,h]=H.useState(r),[d,m]=H.useState(void 0),[g,y]=H.useState(void 0),[T,O]=H.useState({submitted:!1,feedback:""}),[j,M]=H.useState(!1),V=H.useRef(null);H.useEffect(()=>{n?(O({submitted:!1,feedback:""}),y(n)):g===!0&&y(!1)},[n,g]),H.useEffect(()=>{h(r)},[r]),H.useEffect(()=>{const E=c>0?u(`conversation-rating.overlay.bot-message.rate-feedback.value-${c}`):void 0;m(E?.length?E:void 0)},[c,u]),H.useEffect(()=>{T.submitted?setTimeout(()=>M(!0),T.feedback.length?500:0):M(!1)},[T]);const q=E=>{E.preventDefault();const x=V.current?.value?.trim()||"";i(c,x),O({submitted:!0,feedback:x})};return v.jsx("div",{className:X(_t.rateOverlay,Fn.bottomSheet,"chat__conversationRating__overlay",{[Fn.bottomSheetOpen]:g===!0,[Fn.bottomSheetClose]:g===!1}),children:v.jsxs("form",{onSubmit:q,children:[v.jsxs("div",{className:X(_t.body,"chat__conversationRating__overlay__body"),children:[v.jsx("div",{}),v.jsx("div",{className:X(_t.bubbles),children:n&&d&&v.jsxs(v.Fragment,{children:[v.jsxs(Bf,{isFirstMessageBySender:!0,isLastMessageBySender:!1,children:[v.jsx("h2",{children:u("conversation-rating.overlay.title")}),v.jsxs("div",{className:X(_t.starsDescriptionContainer),children:[v.jsx(xb,{value:c,size:"large",readonly:T.submitted,onChange:h}),v.jsxs("div",{className:X(_t.starsDescription),children:[v.jsx("div",{children:u("conversation-rating.overlay.star.very-bad")}),v.jsx("div",{children:u("conversation-rating.overlay.star.very-good")})]})]})]}),v.jsx(Bf,{isFirstMessageBySender:!1,isLastMessageBySender:!j||!!T.feedback.length,children:v.jsx("div",{children:d})}),!!T.feedback.length&&v.jsx(i3,{children:T.feedback}),j&&v.jsx(Bf,{isFirstMessageBySender:!!T.feedback.length,isLastMessageBySender:!0,children:v.jsx("div",{children:u("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),v.jsxs("div",{className:X(_t.footer,"chat__conversationRating__overlay__footer"),children:[!T.submitted&&v.jsx("input",{ref:V,placeholder:u("conversation-rating.overlay.guest-feedback.input-placeholder")}),v.jsx("div",{className:X(_t.actions,"chat__conversationRating__overlay__footer__actions"),children:T.submitted?v.jsx(is,{type:"button",onClick:l,children:u("conversation-rating.overlay.action.close")}):v.jsx(is,{type:"submit",children:u("conversation-rating.overlay.action.submit")})})]})]})})},l3=({conversationRating:{enabled:n,rating:r},numberOfMessagesFromGuest:i,showRatingOverlay:l,setShowRatingOverlay:u,onRate:c})=>{const[h,d]=H.useState(0),m=T=>{d(T),u(!0)},g=()=>u(!1),y=!r&&i>=1;return n?v.jsxs(v.Fragment,{children:[v.jsx(a3,{visible:y,onRate:m}),v.jsx(s3,{visible:l,rating:h,onRate:c,onClose:g})]}):null},o3=H.memo(l3),u3="_inputWrapper_e3h44_1",c3="_withOpenCommands_e3h44_14",f3="_messageInputWrapper_e3h44_20",h3="_messageInput_e3h44_20",d3="_buttons_e3h44_44",m3="_button_e3h44_44",Fr={inputWrapper:u3,withOpenCommands:c3,messageInputWrapper:f3,messageInput:h3,buttons:d3,button:m3},p3="_audioRecorder_g845f_1",g3="_audioButton_g845f_6",y3="_recorderIcon_g845f_37",v3="_spinning_g845f_60",Vr={audioRecorder:p3,audioButton:g3,recorderIcon:y3,spinning:v3},_v=2048,mo=16e3;class _3 extends Kv.Component{audioInput=null;volume=null;leftchannel=[];recorder=null;recordingLength=0;sampleRate=null;mediaStream=null;constructor(r){super(r),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(r){this.mediaStream=r,this.leftchannel.length=0,this.recordingLength=0,this.initRecording(r)}initRecording(r){const i=window.AudioContext||window.webkitAudioContext,l=new i;this.sampleRate=l.sampleRate,this.volume=l.createGain(),this.audioInput=l.createMediaStreamSource(r),this.audioInput.connect(this.volume),this.recorder=l.createScriptProcessor(_v,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(l.destination)}processRecordingInput(r){if(this.state.recordingState==="connecting"&&this.setState({recordingState:"recording"}),this.state.recordingState!=="none"){const i=r.inputBuffer.getChannelData(0);this.leftchannel.push(new Float32Array(i)),this.recordingLength+=_v}}handleClickSubmitAudio(){const r=E3(this.leftchannel,this.recordingLength),i=S3(r,this.sampleRate||0),l=b3(i);this.props.onAudioRecorded(l),this.handleClickStopAudio()}handleClickStopAudio(){this.setState({recordingState:"none"}),this.audioInput?.disconnect(),this.volume?.disconnect(),this.recorder?.disconnect(),this.mediaStream&&this.mediaStream?.getAudioTracks().forEach(r=>{r.stop()})}render(){return v.jsxs("div",{className:Vr.audioRecorder,children:[this.state.recordingState==="none"&&v.jsx("button",{className:X(Vr.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:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[v.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"}),v.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),this.state.recordingState==="connecting"&&v.jsxs("svg",{className:Vr.spinning,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[v.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"}),v.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),this.state.recordingState==="recording"&&v.jsxs("div",{className:Vr.audioRecorder,children:[v.jsx("button",{className:X(Vr.audioButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate("message-input.actions.stop-audio-recording.label"),tabIndex:0,children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[v.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"}),v.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),v.jsx("div",{className:Vr.recorderIcon}),v.jsx("button",{className:X(Vr.audioButton),type:"submit",onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate("message-input.actions.submit-audio-recording.label"),tabIndex:0,autoFocus:!0,children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[v.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),v.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})]})})]})]})}}const b3=n=>{const r=new ArrayBuffer(44+n.length*2),i=new DataView(r);Kl(i,0,"RIFF"),i.setUint32(4,44+n.length*2,!0),Kl(i,8,"WAVE"),Kl(i,12,"fmt "),i.setUint32(16,16,!0),i.setUint16(20,1,!0),i.setUint16(22,1,!0),i.setUint32(24,mo,!0),i.setUint32(28,mo*4,!0),i.setUint16(32,4,!0),i.setUint16(34,16,!0),Kl(i,36,"data"),i.setUint32(40,n.length*2,!0);const l=n.length;let u=44;const c=1;for(let h=0;h<l;h++)i.setInt16(u,n[h]*(32767*c),!0),u+=2;return new Blob([i],{type:"audio/wav"})},Kl=(n,r,i)=>{for(let l=0;l<i.length;l++)n.setUint8(r+l,i.charCodeAt(l))},E3=(n,r)=>{const i=new Float32Array(r);let l=0;const u=n.length;for(let c=0;c<u;c++){const h=n[c];i.set(h,l),l+=h.length}return i},S3=(n,r)=>{if(mo===r)return n;const i=r/mo,l=Math.round(n.length/i),u=new Float32Array(l);let c=0,h=0;for(;c<u.length;){const d=Math.round((c+1)*i);let m=0,g=0;for(let y=h;y<d&&y<n.length;y++)m+=n[y],g++;u[c]=m/g,c++,h=d}return u},T3=({disabled:n,textInput:r,commandsVisible:i,hasCommands:l,onTextInput:u,onTextInputSubmit:c,onAudioRecorded:h,onOpenTranscriptExportModal:d})=>{const m=Pe(),g=H.useRef(null),{enableTranscriptExportPdf:y,enableTranscriptExportEmail:T,enableSpeechSupport:O}=zt(E=>E.settings);H.useEffect(()=>{g.current?.focus()},[r]);const j=()=>{const E=g.current;E&&r.trim().length>=1&&c(r.trim())&&(E.value="",E.style.height="",E.focus())},M=E=>{E.preventDefault(),j()},V=E=>{const x=E.target.value;u(x),E.target.style.height="";const{scrollHeight:b}=E.target;E.target.style.height=`${b>150?150:b}px`},q=E=>{E.code==="Enter"&&!E.shiftKey?(E.repeat||j(),E.preventDefault()):i&&(E.code==="ArrowUp"||E.code==="ArrowDown")&&E.preventDefault()};return v.jsxs("form",{className:X(Fr.inputWrapper,i&&Fr.withOpenCommands,"chat__textInput"),onSubmit:M,children:[v.jsx("div",{className:Fr.messageInputWrapper,children:v.jsx("textarea",{id:"user_input",ref:g,className:Fr.messageInput,tabIndex:0,placeholder:m("message-input-placeholder"),value:r,onChange:V,onKeyDown:q,"aria-label":m("message-input-label"),"aria-controls":l?"command-list":void 0,"aria-haspopup":l?"listbox":void 0})}),v.jsxs("div",{className:X(Fr.buttons,"chat__buttons"),children:[!r.length&&(y||T)&&v.jsx("button",{type:"button",className:X(Fr.button,"chat__button"),"aria-label":m("message-input.actions.export-transcript.label"),"data-title":m("message-input.actions.export-transcript.label"),tabIndex:0,onClick:d,children:v.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:v.jsx("path",{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"})})}),r.length||!O||navigator.mediaDevices===void 0?v.jsx("button",{className:X(Fr.button,"chat__button"),type:"submit","aria-label":m("message-input.actions.submit.label"),"data-title":m("message-input.actions.submit.label"),tabIndex:0,disabled:n,children:v.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:v.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"})})}):O&&navigator.mediaDevices!==void 0&&v.jsx(_3,{translate:m,onAudioRecorded:h})]})]})},x3="_quickReplies_83npe_1",A3="_quickReply_83npe_9",bv={quickReplies:x3,quickReply:A3},O3=({quickReplies:n,onQuickReplyClick:r})=>n.length?v.jsx("div",{className:X(bv.quickReplies,"chat__quickReplies"),children:n.map(i=>v.jsx(wo,{tabIndex:0,className:X(bv.quickReply,"chat__button","chat__quickReply"),onClick:()=>r(i),children:i.label},i.label))}):null,Ev=5e3,w3=1e3,R3=({isBotTyping:n,quickReplies:r,conversationRating:i,numberOfMessagesFromGuest:l,showRatingOverlay:u,commands:c,setShowRatingOverlay:h,onTextInput:d,onRate:m,onQuickReplyClick:g,onAudioRecorded:y,onOpenTranscriptExportModal:T})=>{const[O,j]=H.useState(""),[M,V]=H.useState(!1),[q,E]=H.useState(!1),x=H.useRef(0),b=H.useRef(0);H.useEffect(()=>{if(M&&!n){const z=x.current?Date.now()-x.current:0;z>Ev?V(!1):setTimeout(()=>{V(!1)},Ev-z)}},[M,n]),H.useEffect(()=>{M&&(x.current=Date.now())},[M]);const w=z=>{const Y=Date.now()-b.current<w3;return q?!1:n||Y?(V(!0),!1):(d(z),j(""),b.current=Date.now(),!0)},S=z=>{j(z+" ")};return v.jsxs("div",{className:X(RC.inputContainer),children:[v.jsx(O3,{quickReplies:r,onQuickReplyClick:g}),v.jsx(DC,{visible:M}),!M&&v.jsx(o3,{conversationRating:i,numberOfMessagesFromGuest:l,onRate:m,showRatingOverlay:u,setShowRatingOverlay:h}),!!c?.length&&v.jsx(kC,{text:O,commands:c,onSelectCommand:S,onVisibilityChange:E}),v.jsx(T3,{textInput:O,disabled:M,commandsVisible:q,hasCommands:!!c?.length,onTextInput:j,onTextInputSubmit:w,onOpenTranscriptExportModal:T,onAudioRecorded:y}),!!c?.length&&v.jsx(qC,{commands:c,onSelectCommand:j})]})},C3=({clientName:n,messages:r,quickReplies:i,isBotTyping:l,drawerContentUrl:u,conversationRating:c,onMessageFromUser:h,onRate:d,onQuickReplyClick:m,onButtonClick:g,onLinkClick:y,onAudioRecorded:T,onTranscriptExport:O,onPdfExport:j,onTranscriptItemReaction:M})=>{const V=Ia(),q=zt(J=>J.connection.connectionState),{enableTranscriptExportPdf:E,enableTranscriptExportEmail:x,commands:b}=zt(J=>J.settings),[w,S]=H.useState(!1),[z,Y]=H.useState(!1),$=E||x,ie=r.filter(J=>J.sender.type===ho.GUEST).length;return H.useEffect(()=>{if(q===Xr.CONNECTED){const J=vo.parse(window.location.search);V(sb(n,J))}},[n,q,V]),v.jsxs("div",{className:_f.container,children:[v.jsxs("div",{className:X([_f.chatcontent,(w||z)&&_f.accessabilityHidden]),children:[v.jsx(lC,{messages:r,isBotTyping:l,commands:b,onButtonClick:g,onLinkClick:y,onTranscriptItemReaction:M}),v.jsx(R3,{isBotTyping:l,quickReplies:l?[]:i,numberOfMessagesFromGuest:ie,conversationRating:w?{enabled:!1}:c,showRatingOverlay:z,setShowRatingOverlay:Y,commands:b,onRate:d,onQuickReplyClick:m,onTextInput:h,onAudioRecorded:T,onOpenTranscriptExportModal:()=>S(!w)}),v.jsx(vC,{})]}),$&&v.jsx(OC,{enableTranscriptExportPdf:E,enableTranscriptExportEmail:x,visible:w,onEmailExport:O,onPdfExport:j,onClose:()=>S(!1)}),v.jsx(mC,{contentUrl:u})]})},N3=n=>{const{messages:r,quickReplies:i,isBotTyping:l,drawerContentUrl:u,conversationRating:c}=n.chat;return{messages:r,quickReplies:i,isBotTyping:l,drawerContentUrl:u,conversationRating:c}},D3=n=>({onRestartChat:(r,i)=>n(Ao(r,i)),onMessageFromUser:r=>n(k_(r)),onRate:(r,i)=>n(uA(r,i)),onAudioRecorded:r=>n(aA(r)),onActionFromUser:r=>n(r),onQuickReplyClick:r=>n(z_(r)),onNluEvent:r=>n(V_(r)),onButtonClick:r=>n(fA(r)),onLinkClick:r=>n(hA(r)),onTranscriptExport:r=>n(sA(r)),onPdfExport:()=>n(lA()),onTranscriptItemReaction:(r,i)=>n(Ee.Actions.transcriptItemGuestReaction(r,i||null))}),M3=xS(N3,D3)(C3),Ab=()=>{const[n,r]=H.useState(!1);return H.useEffect(()=>{r((()=>{try{return window.self!==window.top}catch{return!0}})())},[]),n},id=n=>r=>{const i=r.key;(i==="ArrowDown"||i==="ArrowRight"||i==="Enter"||i===" "||i==="Space")&&(r.stopPropagation(),n())},B3=({onClick:n})=>{const r=Pe();return Ab()?v.jsx("button",{className:"tooltip--bottom-left","aria-label":r("header.close-chat"),"data-title":r("header.close-chat"),tabIndex:0,onClick:n,onKeyDown:id(n),children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:v.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},j3=()=>{const n=Pe(),r=Ab(),i=zt(u=>u.settings.enableStandaloneView),l=()=>{window.open(window.location.href,"_blank")};return r&&i?v.jsx("button",{className:"tooltip--bottom-left","aria-label":n("header.expand-chat"),"data-title":n("header.expand-chat"),tabIndex:0,onClick:l,onKeyDown:id(l),children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:v.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"})})}):null},U3="_header_1hky6_1",L3="_logoContainer_1hky6_13",H3="_logo_1hky6_13",z3="_actions_1hky6_27",$l={header:U3,logoContainer:L3,logo:H3,actions:z3},k3=({onClick:n})=>{const r=Pe();return v.jsx("button",{className:"tooltip--bottom-left","aria-label":r("header.restart-chat"),"data-title":r("header.restart-chat"),tabIndex:0,onClick:n,onKeyDown:id(n),children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 32 32",children:[v.jsx("path",{d:"M14.506,23.578l-5.511,0l-3.993,3.501l-0.007,0.006c-0.302,0.261 -0.687,0.405 -1.084,0.405c-0.245,-0.001 -0.488,-0.055 -0.711,-0.161c-0.595,-0.277 -0.978,-0.886 -0.974,-1.551l-0,-19.558c-0,-0.939 0.761,-1.711 1.685,-1.711l21.189,-0c0.924,-0 1.685,0.772 1.685,1.711l0,5.104l-1.444,0l-0,-5.104c-0,-0.134 -0.109,-0.244 -0.241,-0.244l-21.189,-0c-0.132,-0 -0.24,0.11 -0.24,0.244l-0,19.558c0.001,0.133 0.109,0.242 0.24,0.242c0.056,-0 0.109,-0.019 0.152,-0.055l4.192,-3.675c0.131,-0.115 0.299,-0.179 0.472,-0.179l5.779,0l-0,1.467Z"}),v.jsx("path",{d:"M29.869,20.148c0,4.137 -3.373,7.556 -7.509,7.612l-0.102,-0c-1.943,0.004 -3.814,-0.741 -5.223,-2.078c-0.183,-0.172 -0.286,-0.412 -0.286,-0.664c-0,-0.501 0.412,-0.913 0.913,-0.913c0.233,-0 0.458,0.089 0.627,0.249c1.074,1.014 2.495,1.579 3.971,1.579c3.174,-0 5.785,-2.612 5.785,-5.785c-0,-3.173 -2.611,-5.784 -5.785,-5.784c-1.533,-0 -3.006,0.61 -4.09,1.694c-0.01,0.01 -0.019,0.019 -0.03,0.028l-1.447,1.322l1.302,0c0.502,0 0.914,0.413 0.914,0.914c-0,0.501 -0.412,0.913 -0.914,0.913l-3.653,0c-0.501,0 -0.913,-0.412 -0.913,-0.913l-0,-3.654c-0,-0.501 0.412,-0.913 0.913,-0.913c0.501,0 0.913,0.412 0.913,0.913l0,1.577l1.635,-1.496c1.426,-1.418 3.357,-2.215 5.368,-2.215c4.175,0 7.611,3.436 7.611,7.611c-0,0.001 -0,0.002 -0,0.003Z"})]})})},Sv=({className:n,withActions:r=!0,...i})=>{const l=Ia(),u=ad(),c=()=>{const d=vo.parse(window.location.search);l(Ao(u,d))},h=()=>{l(rO())};return v.jsxs("div",{className:X([$l.header,n]),...i,children:[v.jsx("div",{className:$l.logoContainer,children:v.jsx("div",{className:$l.logo})}),v.jsxs("div",{className:$l.actions,children:[r&&v.jsx(k3,{onClick:c}),v.jsx(j3,{}),v.jsx(B3,{onClick:h})]})]})},G3="_chatwindow_rkbir_1",q3="_chatwindowWithAside_rkbir_21",Tv={chatwindow:G3,chatwindowWithAside:q3},Ob=()=>{const[n,r]=H.useState(!1);return H.useEffect(()=>{const i=window.matchMedia("(max-width: 1023px)"),l=()=>r(i.matches);return l(),i.addEventListener("change",l),()=>i.removeEventListener("change",l)},[]),n},I3="_sourceInfos_vei0l_1",F3="_waitForLoading_vei0l_24",V3="_loadingContent_vei0l_28",P3="_sourceHeader_vei0l_37",Y3="_sourceHeaderIcon_vei0l_57",Z3="_sourceContent_vei0l_61",X3="_openSourceButton_vei0l_69",Q3="_sourceButtonLabel_vei0l_79",K3="_closeSourceInfosButton_vei0l_101",$3="_loadingSourceInfos_vei0l_125",J3="_loading_vei0l_28",W3="_loadingError_vei0l_139",e6="_highlightLoadingInfo_vei0l_155",t6="_highlightLoadingInfoInnerContainer_vei0l_169",n6="_highlightLoadingInfoContent_vei0l_178",r6="_highlightLoadingInfoCloseIcon_vei0l_198",a6="_highlightLoader_vei0l_203",i6="_highlightLoaderLoading_vei0l_210",st={sourceInfos:I3,waitForLoading:F3,loadingContent:V3,sourceHeader:P3,sourceHeaderIcon:Y3,sourceContent:Z3,openSourceButton:X3,sourceButtonLabel:Q3,closeSourceInfosButton:K3,loadingSourceInfos:$3,loading:J3,loadingError:W3,highlightLoadingInfo:e6,highlightLoadingInfoInnerContainer:t6,highlightLoadingInfoContent:n6,highlightLoadingInfoCloseIcon:r6,highlightLoader:a6,highlightLoaderLoading:i6},s6=({onClick:n})=>{const r=Pe();return v.jsx("button",{className:X(st.closeSourceInfosButton,"tooltip--bottom-left"),"aria-label":r("source-infos.close"),"data-title":r("source-infos.close"),tabIndex:0,onClick:n,children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:v.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"})})})},l6=H.forwardRef(({sourceInfos:n,onClose:r,...i},l)=>v.jsxs("div",{className:st.sourceHeader,...i,ref:l,children:[v.jsx("div",{children:n?v.jsx("p",{id:"source-info-title",children:n.title}):v.jsx("p",{children:" "})}),v.jsx(s6,{onClick:r})]})),o6=({loading:n})=>v.jsx("div",{className:st.highlightLoader,children:n&&v.jsx("div",{className:st.highlightLoaderLoading})}),u6=({onClose:n})=>{const r=Pe();return v.jsxs("div",{className:st.highlightLoadingInfo,onClick:n,children:[v.jsx("div",{className:st.highlightLoadingInfoCloseIcon,children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:v.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"})})}),v.jsxs("div",{className:st.highlightLoadingInfoInnerContainer,children:[v.jsxs("div",{className:st.highlightLoadingInfoContent,children:[v.jsx("h3",{children:r("source-infos.highlight-loading.title")}),v.jsx("p",{children:r("source-infos.highlight-loading.description")})]}),v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"#000000",viewBox:"0 0 256 256",children:v.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"})})]})]})},c6=({title:n,href:r,children:i})=>v.jsx("a",{href:r,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),f6=({className:n,children:r,...i})=>v.jsx("a",{className:X(as.button,as.buttonDefault,n),type:"button",role:"button",...i,children:r}),h6=n=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...n,children:v.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"})}),d6=({type:n,...r})=>{switch(n){case"WEBSITE":return v.jsx(_b,{...r});case"PDF":return v.jsx(vb,{...r});case"DOCX":return v.jsx(gb,{...r});case"TEXT":return v.jsx(h6,{...r});default:return v.jsx(yb,{...r})}},m6=({url:n,knowledgeBaseType:r})=>{const i=Pe();return v.jsx(f6,{className:st.openSourceButton,href:n,target:"_blank",children:v.jsxs("div",{className:st.sourceButtonLabel,children:[v.jsx("div",{className:st.sourceHeaderIcon,children:v.jsx(d6,{type:r})}),v.jsx("p",{children:i("source-infos.open-source")})]})})},p6=({sourceInfos:{content:n,url:r,knowledgeBaseType:i,highlighted:l}})=>{const[u,c]=H.useState(!l);return H.useEffect(()=>{l&&c(!1)},[l]),v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:X(st.sourceContent,Sb.markdown),children:[v.jsx(_n,{options:{overrides:{a:c6}},children:n}),u&&v.jsx(u6,{onClose:()=>c(!1)})]}),v.jsx(m6,{url:r,knowledgeBaseType:i})]})},g6=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,y6=()=>{const n=Pe();return v.jsxs("div",{className:st.loadingError,children:[v.jsx("h1",{children:n("source-infos.error.title")}),v.jsx("img",{src:g6,title:n("source-infos.error.title")}),v.jsx("p",{children:n("source-infos.error.info")})]})},v6=()=>v.jsx("div",{className:st.loadingSourceInfos,children:v.jsx("svg",{className:st.loading,xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:v.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 _6({sourceInfos:n,onClose:r,threshold:i=100}){const l=H.useRef(null),[u,c]=H.useState(0),[h,d]=H.useState(!1),m=H.useRef(null),g=H.useRef(null),y=H.useCallback(M=>{m.current=M,d(!0)},[]),T=H.useCallback(M=>{if(m.current!==null&&h){const V=M-m.current;V>0&&c(V)}},[h]),O=H.useCallback(()=>{d(!1),u>i&&r(),c(0),m.current=null},[u,i,r]),j=H.useCallback(M=>{const V=S=>y(S.touches[0].clientY),q=S=>T(S.touches[0].clientY),E=()=>O(),x=S=>{S.preventDefault(),y(S.clientY),window.addEventListener("mousemove",b),window.addEventListener("mouseup",w)},b=S=>T(S.clientY),w=()=>{O(),window.removeEventListener("mousemove",b),window.removeEventListener("mouseup",w)};M.addEventListener("touchstart",V),M.addEventListener("touchmove",q),M.addEventListener("touchend",E),M.addEventListener("mousedown",x),g.current=()=>{M.removeEventListener("touchstart",V),M.removeEventListener("touchmove",q),M.removeEventListener("touchend",E),M.removeEventListener("mousedown",x),window.removeEventListener("mousemove",b),window.removeEventListener("mouseup",w)}},[y,T,O]);return H.useEffect(()=>{let M;return(()=>{l.current?(g.current?.(),j(l.current)):(M=new MutationObserver(()=>{l.current&&(g.current?.(),j(l.current),M?.disconnect())}),M.observe(document.body,{childList:!0,subtree:!0}))})(),()=>{M?.disconnect(),g.current?.()}},[j,n]),{ref:l,dragOffsetY:u,isDragging:h}}const b6=n=>{const[r,i]=H.useState(!0);return H.useEffect(()=>{let l=null;return n?.type==="loading"?(i(!0),l=setTimeout(()=>{i(!1)},300)):i(!n),()=>{l&&clearTimeout(l)}},[n]),r},E6=()=>{const n=Ia(),r=zt(m=>m.chat.sourceInfos),i=Ob(),l=H.useRef(null),u=b6(r);H.useEffect(()=>{l.current&&r?.type==="loading"&&(i?l.current.showModal():(l.current.setAttribute("open","true"),l.current?.focus()))},[r,i]);const c=H.useCallback(()=>{l.current&&(i?l.current.close():l.current.removeAttribute("open"),n(iO()))},[n,i]),{ref:h,dragOffsetY:d}=_6({onClose:c,sourceInfos:r});return r?v.jsx("dialog",{ref:l,className:X(st.sourceInfos,u?st.waitForLoading:r.type==="loading"?st.loadingContent:""),style:i&&d?{transform:`translateY(${d}px)`}:{},onClose:c,autoFocus:!0,role:"dialog","aria-labelledby":"source-info-title",children:u?null:v.jsxs(v.Fragment,{children:[v.jsx(l6,{ref:h,tabIndex:-1,sourceInfos:r.type==="loaded"?r:void 0,onClose:c}),r.type==="loading"?v.jsx(v6,{}):r.type==="loading-error"?v.jsx(y6,{}):v.jsxs(v.Fragment,{children:[v.jsx(o6,{loading:!r.highlighted}),v.jsx(p6,{sourceInfos:r})]})]})}):null},S6="_container_114wy_1",T6="_body_114wy_7",x6="_intro_114wy_14",A6="_footer_114wy_39",O6="_footnote_114wy_43",w6="_containerWithFootnote_114wy_58",R6="_startChatButton_114wy_73",C6="_formFields_114wy_77",N6="_formField_114wy_77",D6="_radio_114wy_89",M6="_checkbox_114wy_96",B6="_input_114wy_104",j6="_inputLabel_114wy_138",U6="_selectWrapper_114wy_142",L6="_select_114wy_142",H6="_selectLabel_114wy_188",ht={container:S6,body:T6,intro:x6,footer:A6,footnote:O6,containerWithFootnote:w6,startChatButton:R6,formFields:C6,formField:N6,radio:D6,checkbox:M6,input:B6,inputLabel:j6,selectWrapper:U6,select:L6,selectLabel:H6},z6=({name:n,label:r,defaultValue:i,required:l,onChange:u})=>{const c=h=>{u(h.currentTarget.checked?"true":"false")};return v.jsxs("label",{className:X(ht.checkbox,"chat__startScreen__checkbox"),htmlFor:n,children:[v.jsx("input",{type:"checkbox",id:n,name:n,defaultChecked:i==="true",required:l,onChange:c}),v.jsx("div",{children:r})]})},k6=({type:n,name:r,label:i,defaultValue:l,placeholder:u,required:c,multiple:h,min:d,max:m,pattern:g,onChange:y})=>{const T=O=>{y(O.target.value)};return v.jsxs("label",{className:X(ht.input,"chat__startScreen__input"),htmlFor:r,children:[v.jsx("div",{className:X(ht.inputLabel),children:i}),v.jsx("input",{type:n,id:r,name:r,defaultValue:l,placeholder:u,required:c,multiple:h,min:d,max:m,pattern:g,onChange:T})]})},G6=({name:n,value:r,label:i,defaultChecked:l,required:u,onChange:c})=>{const h=`${n}-${r}`,d=m=>{c(m.target.value)};return v.jsxs("label",{className:X(ht.radio,"chat__startScreen__radio"),htmlFor:h,children:[v.jsx("input",{id:h,type:"radio",name:n,value:r,defaultChecked:l,required:u,onChange:d}),v.jsx("span",{className:X(ht.label),children:i})]})},q6=({name:n,label:r,defaultValue:i,required:l,multiple:u,options:c,onChange:h})=>{const d=m=>{h(m.target.value)};return v.jsxs("label",{className:X(ht.select,"chat__startScreen__select"),htmlFor:n,children:[v.jsx("div",{className:X(ht.selectLabel),children:r}),v.jsx("div",{className:X(ht.selectWrapper),children:v.jsx("select",{id:n,name:n,defaultValue:i,required:l,multiple:u,onChange:d,children:Object.entries(c||{}).map(([m,g])=>v.jsx("option",{value:m,selected:g===i,children:g}))})})]})},I6="start-screen.intro",F6="start-screen.start-chat",V6="start-screen.footnote",ln="start-screen.form",xv=`${ln}.fields`,P6=()=>{const n=Pe(),r=Ia(),[i,l]=H.useState({}),u=()=>{const T=Object.entries(i).reduce((O,[j,M])=>({...O,[j]:M.value}),{});r(eO(T))},c=n(I6),h=n(F6),d=n(V6),m=H.useMemo(()=>n(xv)?.split(";").map(T=>T.trim())??[],[n(xv)]);H.useEffect(()=>{m.length&&Object.keys(i).length===0&&l(m.reduce((T,O)=>({...T,[O]:Y6(O,n)}),{}))},[n,m,i]);const g=T=>{T.preventDefault(),u()},y=T=>O=>{l(j=>({...j,[T]:{...j[T],value:O}}))};return v.jsxs("form",{onSubmit:g,className:X(ht.container,d&&ht.containerWithFootnote,"chat__startScreen"),children:[v.jsxs("div",{className:X(ht.body,"chat__startScreen__body"),children:[c&&v.jsx("div",{className:X(ht.intro,"chat__startScreen__intro"),children:v.jsx(_n,{options:{overrides:{a:Av}},children:c})}),v.jsx("div",{className:X(ht.formFields,"chat__startScreen__fields"),children:Object.values(i).map(({type:T,name:O,label:j,placeholder:M,defaultValue:V,options:q,required:E,multiple:x,min:b,max:w,pattern:S})=>v.jsx("div",{className:X(ht.formField,"chat__startScreen__field"),children:(()=>{switch(T){case"radio":return v.jsxs(v.Fragment,{children:[v.jsx("div",{children:j}),Object.entries(q||{}).map(([z,Y])=>v.jsx(G6,{name:O,value:z,label:Y,defaultChecked:z===V,required:E,onChange:y(O)},z))]});case"checkbox":return v.jsx(z6,{name:O,label:j,defaultValue:V,required:E,onChange:y(O)});case"select":return v.jsx(q6,{name:O,label:j,defaultValue:V,required:E,multiple:x,options:q,onChange:y(O)});default:return v.jsx(k6,{type:T,name:O,label:j,placeholder:M,defaultValue:V,required:E,multiple:x,min:b,max:w,pattern:S,onChange:y(O)})}})()},O))})]}),v.jsxs("div",{className:X(ht.footer,"chat__startScreen__footer"),children:[v.jsx(is,{type:"submit",className:ht.startChatButton,children:h}),d&&v.jsx("div",{className:ht.footnote,children:v.jsx(_n,{options:{overrides:{a:Av}},children:d})})]})]})},Av=({title:n,href:r,children:i})=>v.jsx("a",{href:r,title:n,target:"_blank",rel:"noopener noreferrer",children:i}),Y6=(n,r)=>{const i=r(`${ln}.${n}.type`)||"text",l=r(`${ln}.${n}.required`)==="true",u=r(`${ln}.${n}.multiple`)==="true",c=r(`${ln}.${n}.placeholder`),h=r(`${ln}.${n}.label`)||"",d=r(`${ln}.${n}.defaultValue`),m=r(`${ln}.${n}.min`),g=r(`${ln}.${n}.max`),y=r(`${ln}.${n}.pattern`),T=X6(r(`${ln}.${n}.options`));return{name:n,label:h,placeholder:c,value:Z6(i,d,T)||"",defaultValue:d,options:T,type:i,required:l,multiple:u,min:m,max:g,pattern:y}},Z6=(n,r,i)=>r||n==="select"&&Object.keys(i)[0]||"",X6=(n="")=>n.split(";").map(r=>r.trim()).reduce((r,i)=>{const[l,u]=i.split(":").map(c=>c.trim());return{...r,[l]:u}},{}),Q6=()=>{const n=yo();H.useEffect(()=>{window.document.documentElement.lang=n.locale},[n.locale])},Ha={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"},K6=({clientName:n})=>{Q6();const r=Ia(),i=zt(y=>y.intl.messages),l=Pe(),u=zt(y=>y.settings.enableStartScreen),c=zt(y=>y.startScreen.startScreenStatus),[h,d]=H.useState(void 0);H.useEffect(()=>{const y=vo.parse(window.location.search);y.cssClassName&&d(y.cssClassName);const T=O=>{switch(O.data.type){case Ha.TRIGGER_ACTION:r(O.data.action);break;case Ha.TRIGGER_STORY:r(V_(O.data.story));break;case Ha.ON_CHAT_WINDOW_OPEN:r({type:"webclient.chatwindow.opened"});break;case Ha.ON_CHAT_WINDOW_CLOSE:r({type:"webclient.chatwindow.closed"});break;case Ha.CHAT_MESSAGE_FROM_GUEST:r(k_(O.data.text));break;case Ha.RESTART_CHAT:r(Ao(n,y));break}};return r(lO(n,y)),window.addEventListener("message",O=>T(O),!1),()=>window.removeEventListener("message",T)},[n,r]),H.useEffect(()=>{const y=l("page.title");y&&document&&(document.title=y)},[i,l]);const m=u===void 0,g=u===!1||c==="HIDDEN";return v.jsx("div",{className:X(Tv.chatwindow,g&&Tv.chatwindowWithAside,"chat__chatwindow",h),children:m?null:g?v.jsxs(v.Fragment,{children:[v.jsx("header",{children:v.jsx(Sv,{})}),v.jsx("main",{children:v.jsx(M3,{clientName:n})}),v.jsx("aside",{children:v.jsx(E6,{})})]}):v.jsxs(v.Fragment,{children:[v.jsx("header",{children:v.jsx(Sv,{withActions:!1})}),v.jsx("main",{children:v.jsx(P6,{})})]})})},$6=()=>{const n=ad(),r=Ob(),i=zt(u=>u.intl.locale),l=zt(u=>u.intl.messages);return v.jsx(fx,{locale:i,messages:l,onError:()=>{},children:v.jsx("div",{className:X([dx.app,r?"chat__small":"chat__large"]),children:v.jsx(K6,{clientName:n})})})};var jf,Ov;function sd(){if(Ov)return jf;Ov=1;function n(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}return jf=n,jf}var Uf,wv;function J6(){if(wv)return Uf;wv=1;var n=typeof xl=="object"&&xl&&xl.Object===Object&&xl;return Uf=n,Uf}var Lf,Rv;function wb(){if(Rv)return Lf;Rv=1;var n=J6(),r=typeof self=="object"&&self&&self.Object===Object&&self,i=n||r||Function("return this")();return Lf=i,Lf}var Hf,Cv;function W6(){if(Cv)return Hf;Cv=1;var n=wb(),r=function(){return n.Date.now()};return Hf=r,Hf}var zf,Nv;function e4(){if(Nv)return zf;Nv=1;var n=/\s/;function r(i){for(var l=i.length;l--&&n.test(i.charAt(l)););return l}return zf=r,zf}var kf,Dv;function t4(){if(Dv)return kf;Dv=1;var n=e4(),r=/^\s+/;function i(l){return l&&l.slice(0,n(l)+1).replace(r,"")}return kf=i,kf}var Gf,Mv;function Rb(){if(Mv)return Gf;Mv=1;var n=wb(),r=n.Symbol;return Gf=r,Gf}var qf,Bv;function n4(){if(Bv)return qf;Bv=1;var n=Rb(),r=Object.prototype,i=r.hasOwnProperty,l=r.toString,u=n?n.toStringTag:void 0;function c(h){var d=i.call(h,u),m=h[u];try{h[u]=void 0;var g=!0}catch{}var y=l.call(h);return g&&(d?h[u]=m:delete h[u]),y}return qf=c,qf}var If,jv;function r4(){if(jv)return If;jv=1;var n=Object.prototype,r=n.toString;function i(l){return r.call(l)}return If=i,If}var Ff,Uv;function a4(){if(Uv)return Ff;Uv=1;var n=Rb(),r=n4(),i=r4(),l="[object Null]",u="[object Undefined]",c=n?n.toStringTag:void 0;function h(d){return d==null?d===void 0?u:l:c&&c in Object(d)?r(d):i(d)}return Ff=h,Ff}var Vf,Lv;function i4(){if(Lv)return Vf;Lv=1;function n(r){return r!=null&&typeof r=="object"}return Vf=n,Vf}var Pf,Hv;function s4(){if(Hv)return Pf;Hv=1;var n=a4(),r=i4(),i="[object Symbol]";function l(u){return typeof u=="symbol"||r(u)&&n(u)==i}return Pf=l,Pf}var Yf,zv;function l4(){if(zv)return Yf;zv=1;var n=t4(),r=sd(),i=s4(),l=NaN,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,h=/^0o[0-7]+$/i,d=parseInt;function m(g){if(typeof g=="number")return g;if(i(g))return l;if(r(g)){var y=typeof g.valueOf=="function"?g.valueOf():g;g=r(y)?y+"":y}if(typeof g!="string")return g===0?g:+g;g=n(g);var T=c.test(g);return T||h.test(g)?d(g.slice(2),T?2:8):u.test(g)?l:+g}return Yf=m,Yf}var Zf,kv;function o4(){if(kv)return Zf;kv=1;var n=sd(),r=W6(),i=l4(),l="Expected a function",u=Math.max,c=Math.min;function h(d,m,g){var y,T,O,j,M,V,q=0,E=!1,x=!1,b=!0;if(typeof d!="function")throw new TypeError(l);m=i(m)||0,n(g)&&(E=!!g.leading,x="maxWait"in g,O=x?u(i(g.maxWait)||0,m):O,b="trailing"in g?!!g.trailing:b);function w(le){var Ye=y,ye=T;return y=T=void 0,q=le,j=d.apply(ye,Ye),j}function S(le){return q=le,M=setTimeout($,m),E?w(le):j}function z(le){var Ye=le-V,ye=le-q,k=m-Ye;return x?c(k,O-ye):k}function Y(le){var Ye=le-V,ye=le-q;return V===void 0||Ye>=m||Ye<0||x&&ye>=O}function $(){var le=r();if(Y(le))return ie(le);M=setTimeout($,z(le))}function ie(le){return M=void 0,b&&y?w(le):(y=T=void 0,j)}function J(){M!==void 0&&clearTimeout(M),q=0,y=V=T=M=void 0}function W(){return M===void 0?j:ie(r())}function se(){var le=r(),Ye=Y(le);if(y=arguments,T=this,V=le,Ye){if(M===void 0)return S(V);if(x)return clearTimeout(M),M=setTimeout($,m),w(V)}return M===void 0&&(M=setTimeout($,m)),j}return se.cancel=J,se.flush=W,se}return Zf=h,Zf}var Xf,Gv;function u4(){if(Gv)return Xf;Gv=1;var n=o4(),r=sd(),i="Expected a function";function l(u,c,h){var d=!0,m=!0;if(typeof u!="function")throw new TypeError(i);return r(h)&&(d="leading"in h?!!h.leading:d,m="trailing"in h?!!h.trailing:m),n(u,c,{leading:d,maxWait:c,trailing:m})}return Xf=l,Xf}var c4=u4();const f4=po(c4);function h4(n){return n&&n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function d4(n){return n}function m4(n,r){r=r||{};const i=r.delimiter||".",l=r.maxDepth,u=r.transformKey||d4,c={};function h(d,m,g){g=g||1,Object.keys(d).forEach(function(y){const T=d[y],O=r.safe&&Array.isArray(T),j=Object.prototype.toString.call(T),M=h4(T),V=j==="[object Object]"||j==="[object Array]",q=m?m+i+u(y):u(y);if(!O&&!M&&V&&Object.keys(T).length&&(!r.maxDepth||g<l))return h(T,q,g+1);c[q]=T})}return h(n),c}const Cb={"page.title":"Bubble Chat Chatbot","message-input-label":"Benutzereingabe","message-input-placeholder":"Nachricht","message-input.actions.submit.label":"Nachricht senden","message-input.actions.export-transcript.label":"Konversation exportieren","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","guest-bubble.label":"Ihre Nachricht","bot-bubble.label":"Nachricht des Chatbots","bot-bubble.reaction.good":"Gefällt mir","bot-bubble.reaction.bad":"Gefällt mir nicht","bot-bubble.reaction.remove":"Markierung entfernen","bot-bubble.copy":"Kopieren","bot-bubble.sources":"Quellenliste","bot-bubble.source.open":"Quelle öffnen","agent-bubble.label":"Nachricht des Live-Agenten","export-transcript.email.title":"Konversation per E-Mail versenden","export-transcript.email.description":"Geben Sie Ihre E-Mail-Adresse ein, um den Chatverlauf zu erhalten.","export-transcript.email.cancel":"Abbrechen","export-transcript.email.send":"Senden","export-transcript.email.placeholder":"Ihre E-Mail-Adresse","export-transcript.email.invalid":"Bitte gültige E-Mail-Adresse eingeben.","export-transcript.email.success":"Ich habe den Chatverlauf an Ihre E-Mail-Adresse gesendet.","export-transcript.pdf.title":"Konversation als PDF erhalten","export-transcript.pdf.description":"Laden Sie die Konversation als PDF herunter.","export-transcript.pdf.cancel":"Abbrechen","export-transcript.pdf.download":"Herunterladen","general-conditions.header":"**Nutzungsbedingungen**","general-conditions.body":`Bitte berücksichtigen Sie die folgenden Punkte:
107
-
108
- - Der Chatverlauf wird im EU-Raum gespeichert und kann nur von autorisierten Personen eingesehen werden.
109
- - 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.close":"Zurück zum Chat","start-screen.intro":"","start-screen.start-chat":"Chat starten","header.restart-chat":"Chat neu starten","header.expand-chat":"Chat vergrössern","header.close-chat":"Chat minimieren","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"},p4={"page.title":"Bubble Chat Chatbot","message-input-label":"User input","message-input-placeholder":"Message","message-input.actions.submit.label":"Send message","message-input.actions.export-transcript.label":"Export conversation","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","bot-bubble.label":"Message from the chatbot","bot-bubble.reaction.good":"I like","bot-bubble.reaction.bad":"I don't like it","bot-bubble.reaction.remove":"Remove marker","bot-bubble.copy":"Copy","bot-bubble.sources":"Source list","bot-bubble.source.open":"Open source","agent-bubble.label":"Message from the live agent","export-transcript.email.title":"Receive Conversation","export-transcript.email.description":"Enter your email address to receive the chat history.","export-transcript.email.cancel":"Cancel","export-transcript.email.send":"Send","export-transcript.email.placeholder":"Your email address","export-transcript.email.invalid":"Please enter a valid e-mail address.","export-transcript.email.success":"I have sent the chat history to your email address.","export-transcript.pdf.title":"Get conversation as PDF","export-transcript.pdf.description":"Download this conversation as PDF.","export-transcript.pdf.cancel":"Cancel","export-transcript.pdf.download":"Download","general-conditions.header":"**Terms of use**","general-conditions.body":`Please consider the following points:
110
-
111
- - The chat history is stored in the EU area and can only be viewed by authorized personnel.
112
- - 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.close":"Close","start-screen.intro":"","start-screen.start-chat":"Start chat","header.restart-chat":"Restart chat","header.expand-chat":"Expand chat","header.close-chat":"Minimize 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"},g4={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Entrée utilisateur","message-input.actions.submit.label":"Envoyer un message","message-input.actions.export-transcript.label":"Exporter la conversation","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","guest-bubble.label":"Votre message","bot-bubble.label":"Message du chatbot","bot-bubble.reaction.good":"J'aime bien","bot-bubble.reaction.bad":"Je n'aime pas","bot-bubble.reaction.remove":"Retirer le marqueur","bot-bubble.copy":"Copie","bot-bubble.sources":"Liste des sources","bot-bubble.source.open":"Ouvrir la source","agent-bubble.label":"Message de l'agent en direct","export-transcript.email.title":"Recevoir conversation","export-transcript.email.description":"Entrez votre adresse électronique pour recevoir l'historique du chat.","export-transcript.email.cancel":"Annuler","export-transcript.email.send":"Envoyer","export-transcript.email.placeholder":"Votre adresse électronique","export-transcript.email.invalid":"Veuillez entrer une adresse électronique valide.","export-transcript.email.success":"J'ai envoyé l'historique du chat à votre adresse électronique.","export-transcript.pdf.title":"Recevoir la conversation en PDF","export-transcript.pdf.description":"Téléchargez la conversation en format PDF.","export-transcript.pdf.cancel":"Annuler","export-transcript.pdf.download":"Télécharger","general-conditions.header":"**Conditions d'utilisation**","general-conditions.body":`Veuillez considérer les points suivants:
113
-
114
- - L'historique du chat est stocké dans l'espace UE et ne peut être consulté que par les personnes autorisées.
115
- - 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.close":"Fermer","start-screen.intro":"","start-screen.start-chat":"Démarrer le chat","header.restart-chat":"Redémarrer le chat","header.expand-chat":"Agrandir le chat","header.close-chat":"Minimiser 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"},y4={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Messaggio","message-input.actions.submit.label":"Invia messaggio","message-input.actions.export-transcript.label":"Esportare la conversazione","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","guest-bubble.label":"Il tuo messaggio","bot-bubble.label":"Messaggio del chatbot","bot-bubble.reaction.good":"Mi piace","bot-bubble.reaction.bad":"Non mi piace","bot-bubble.reaction.remove":"Rimuovere il marcatore","bot-bubble.copy":"Copia","bot-bubble.sources":"Elenco delle fonti","bot-bubble.source.open":"Fonte aperta","agent-bubble.label":"Messaggio dell'agente dal vivo","export-transcript.email.title":"Ricevere la conversazione","export-transcript.email.description":"Inserisci il tuo indirizzo e-mail per ricevere la cronologia della chat.","export-transcript.email.cancel":"Annulla","export-transcript.email.send":"Invia","export-transcript.email.placeholder":"Il tuo indirizzo e-mail","export-transcript.email.invalid":"Inserire un indirizzo e-mail valido.","export-transcript.email.success":"Ho inviato la cronologia della chat al vostro indirizzo e-mail.","export-transcript.pdf.title":"Ricevi la conversazione come PDF","export-transcript.pdf.description":"Scarica questa conversazione in PDF.","export-transcript.pdf.cancel":"Annulla","export-transcript.pdf.download":"Scaricare","general-conditions.header":"**Condizioni di utilizzo**","general-conditions.body":`Si prega di considerare i seguenti punti:
116
-
117
- - La cronologia delle chat è memorizzata nell'area UE e può essere visualizzata solo da persone autorizzate.
118
- - 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.close":"Chiudere","start-screen.intro":"","start-screen.start-chat":"Avviare la chat","header.restart-chat":"Riavviare la chat","header.expand-chat":"Allarga la chat","header.close-chat":"Ridurre al minimo la chat","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"},v4=["de","en","fr","it"],Nb={locale:"de",messages:Cb},_4=(n,r)=>{if(v4.includes(n)){const i=b4(n),l=m4(r);return{...i,...l}}return r},b4=n=>{switch(n.toString()){case"en":return p4;case"fr":return g4;case"it":return y4;default:return Cb}},E4=(n=S4,r)=>{switch(r.type){case Kh:return Object.assign({},n,{connectionState:Xr.CONNECTING});case $h:return Object.assign({},n,{connectionState:Xr.CONNECTED});case Jh:return Object.assign({},n,{connectionState:Xr.DISCONNECTED});case Wh:return Object.assign({},n,{connectionState:Xr.RECONNECTED});case ed:return Object.assign({},n,{sessionId:r.sessionId});case To:return Object.assign({},n,{sessionId:r.payload.sessionId,userId:r.payload.userId});case xo:return Object.assign({},n,{sessionId:void 0});default:return n}},S4={connectionState:Xr.DISCONNECTED,sessionId:void 0,userId:void 0},T4=(n=Iv,r)=>{switch(r.type){case ib:return Iv;case To:return Pr({type:"webclient.chat.started"}),n;case xo:return Pr({type:"webclient.chat.ended"}),n;case Ee.ActionTypes.TYPING_ON:return Object.assign({},n,{isBotTyping:!0});case Ee.ActionTypes.TYPING_OFF:return Object.assign({},n,{isBotTyping:!1});case Ee.ActionTypes.MESSAGE_FROM_GUEST:case Ee.ActionTypes.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST:return qv(n,r.message);case Ee.ActionTypes.MESSAGE_TO_GUEST:{Pr(r);const i=Object.assign({},r.message,{_id:r.meta.actionId}),l=n.messages.filter(u=>u._id===r.meta.actionId).length>0;return Object.assign({},n,{isBotTyping:!1,messages:l?n.messages:n.messages.concat([i]),quickReplies:i.quickReplies?i.quickReplies:[]})}case zh:{const i=r.messages,l=i.length?i[i.length-1]:void 0;return Object.assign({},n,{isBotTyping:!1,messages:i,quickReplies:l?.quickReplies||[]})}case Hh:return Pr(r.message),n;case Ee.ActionTypes.EVENT_TO_GUEST:return Pr(r.event),n;case Ee.ActionTypes.DRAWER_OPEN:return Object.assign({},n,{drawerContentUrl:r.payload.parameters.contentUrl});case Ee.ActionTypes.DRAWER_CLOSE:return Object.assign({},n,{drawerContentUrl:void 0});case Ee.ActionTypes.GUEST_LOCALE_CHANGED:return Object.assign({},n,{locale:r.payload.locale});case q_:return Pr(r),n;case I_:return Pr(r),n;case Gh:{const i=new Ee.TextMessage(r.transcription,new Ee.GuestUser),l=Object.assign({},i,{_id:dh()});return qv(n,l)}case Ee.ActionTypes.TRANSCRIPT_ITEM_GUEST_REACTION:{const i=n.messages.map(l=>l._id===r.payload.actionId?Object.assign({},l,{reaction:r.payload.reaction}):l);return Object.assign({},n,{messages:i})}case qh:{const i={enabled:!0,rating:r.payload.rating};return Object.assign({},n,{conversationRating:i})}case Ee.ActionTypes.CONVERSATION_RATING_FROM_GUEST:{const i={...n.conversationRating,rating:r.payload};return Object.assign({},n,{conversationRating:i})}case Fh:return{...n,sourceInfos:{type:"loading",chunkId:r.payload.chunkId}};case Ih:{const{highlighted:i}=r.payload;return n.sourceInfos?.type==="loaded"&&i?{...n,sourceInfos:{...n.sourceInfos,highlighted:!0}}:{...n,sourceInfos:{type:"loading-error"}}}case G_:{const i=n.sourceInfos?.type,{chunkId:l,knowledgeBaseType:u,title:c,content:h,highlighted:d,url:m}=r.payload,g=n.sourceInfos?.type==="loading"||n.sourceInfos?.type==="loaded"?n.sourceInfos?.chunkId:void 0;return g&&g!==l?n:i==="loading"||i==="loaded"&&d?{...n,sourceInfos:{type:"loaded",chunkId:l,knowledgeBaseType:u,title:c,content:h,highlighted:d,url:m}}:n}case Vh:return{...n,sourceInfos:void 0};default:return n}},qv=(n,r)=>{const i=n.messages[n.messages.length-1],l=i?.text===r.text;return i&&i.sender.type===r.sender.type&&l?n:Object.assign({},n,{messages:n.messages.concat([r]),quickReplies:[]})},Pr=n=>{x4()?window.top?.postMessage(n,"*"):n.type==="webclient.change.url"&&window.open(n.url)},x4=()=>typeof window<"u"&&window.self!==window.top,Iv={messages:[],quickReplies:[],isBotTyping:!1,conversationRating:{enabled:!1}},Db=Xh({name:"intl",initialState:Nb,reducers:{updateIntl:(n,r)=>{n.locale=r.payload.language,n.messages=r.payload.messages}}}),{updateIntl:A4}=Db.actions,O4=Db.reducer,w4={enableStartScreen:void 0,enableStandaloneView:!1,enableTranscriptExportEmail:!1,enableTranscriptExportPdf:!1,enableGeneralConditions:!1,enableSpeechSupport:!1,commands:[]},Mb=Xh({name:"settings",initialState:w4,reducers:{setSettings(n,r){n.enableStartScreen=r.payload.enableStartScreen,n.enableStandaloneView=r.payload.enableStandaloneView,n.enableTranscriptExportEmail=r.payload.enableTranscriptExportEmail,n.enableTranscriptExportPdf=r.payload.enableTranscriptExportPdf,n.enableGeneralConditions=r.payload.enableGeneralConditions,n.enableSpeechSupport=r.payload.enableSpeechSupport,n.commands=r.payload.commands}}}),{setSettings:R4}=Mb.actions,C4=Mb.reducer,N4=Z_({settings:C4,chat:T4,startScreen:nO,connection:E4,intl:O4}),D4="bubble-chat",Bb="state-last-saved-at",jb="state",M4=n=>{try{if(!U4())return;const r=Fv(n,Bb);if(j4(r))return;{const i=Fv(n,jb);return i===null?void 0:JSON.parse(i)}}catch(r){console.error(r);return}},B4=(n,r)=>{try{const i=JSON.stringify(r);Vv(n,jb,i);const l=new Date().toISOString();Vv(n,Bb,l)}catch(i){console.error(i)}},j4=n=>{if(n===null)return!1;const r=new Date(n);return r.setHours(r.getHours()+12),new Date>r},U4=()=>typeof localStorage<"u",Fv=(n,r)=>{const i=Ub(n,r);return localStorage.getItem(i)},Vv=(n,r,i)=>{const l=Ub(n,r);return localStorage.setItem(l,i)},Ub=(n,r)=>`${D4}-${n}-${r}`,Sn=Object.create(null);Sn.open="0";Sn.close="1";Sn.ping="2";Sn.pong="3";Sn.message="4";Sn.upgrade="5";Sn.noop="6";const no=Object.create(null);Object.keys(Sn).forEach(n=>{no[Sn[n]]=n});const Eh={type:"error",data:"parser error"},Lb=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Hb=typeof ArrayBuffer=="function",zb=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,ld=({type:n,data:r},i,l)=>Lb&&r instanceof Blob?i?l(r):Pv(r,l):Hb&&(r instanceof ArrayBuffer||zb(r))?i?l(r):Pv(new Blob([r]),l):l(Sn[n]+(r||"")),Pv=(n,r)=>{const i=new FileReader;return i.onload=function(){const l=i.result.split(",")[1];r("b"+(l||""))},i.readAsDataURL(n)};function Yv(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let Qf;function L4(n,r){if(Lb&&n.data instanceof Blob)return n.data.arrayBuffer().then(Yv).then(r);if(Hb&&(n.data instanceof ArrayBuffer||zb(n.data)))return r(Yv(n.data));ld(n,!1,i=>{Qf||(Qf=new TextEncoder),r(Qf.encode(i))})}const Zv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",es=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<Zv.length;n++)es[Zv.charCodeAt(n)]=n;const H4=n=>{let r=n.length*.75,i=n.length,l,u=0,c,h,d,m;n[n.length-1]==="="&&(r--,n[n.length-2]==="="&&r--);const g=new ArrayBuffer(r),y=new Uint8Array(g);for(l=0;l<i;l+=4)c=es[n.charCodeAt(l)],h=es[n.charCodeAt(l+1)],d=es[n.charCodeAt(l+2)],m=es[n.charCodeAt(l+3)],y[u++]=c<<2|h>>4,y[u++]=(h&15)<<4|d>>2,y[u++]=(d&3)<<6|m&63;return g},z4=typeof ArrayBuffer=="function",od=(n,r)=>{if(typeof n!="string")return{type:"message",data:kb(n,r)};const i=n.charAt(0);return i==="b"?{type:"message",data:k4(n.substring(1),r)}:no[i]?n.length>1?{type:no[i],data:n.substring(1)}:{type:no[i]}:Eh},k4=(n,r)=>{if(z4){const i=H4(n);return kb(i,r)}else return{base64:!0,data:n}},kb=(n,r)=>{switch(r){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},Gb="",G4=(n,r)=>{const i=n.length,l=new Array(i);let u=0;n.forEach((c,h)=>{ld(c,!1,d=>{l[h]=d,++u===i&&r(l.join(Gb))})})},q4=(n,r)=>{const i=n.split(Gb),l=[];for(let u=0;u<i.length;u++){const c=od(i[u],r);if(l.push(c),c.type==="error")break}return l};function I4(){return new TransformStream({transform(n,r){L4(n,i=>{const l=i.length;let u;if(l<126)u=new Uint8Array(1),new DataView(u.buffer).setUint8(0,l);else if(l<65536){u=new Uint8Array(3);const c=new DataView(u.buffer);c.setUint8(0,126),c.setUint16(1,l)}else{u=new Uint8Array(9);const c=new DataView(u.buffer);c.setUint8(0,127),c.setBigUint64(1,BigInt(l))}n.data&&typeof n.data!="string"&&(u[0]|=128),r.enqueue(u),r.enqueue(i)})}})}let Kf;function Jl(n){return n.reduce((r,i)=>r+i.length,0)}function Wl(n,r){if(n[0].length===r)return n.shift();const i=new Uint8Array(r);let l=0;for(let u=0;u<r;u++)i[u]=n[0][l++],l===n[0].length&&(n.shift(),l=0);return n.length&&l<n[0].length&&(n[0]=n[0].slice(l)),i}function F4(n,r){Kf||(Kf=new TextDecoder);const i=[];let l=0,u=-1,c=!1;return new TransformStream({transform(h,d){for(i.push(h);;){if(l===0){if(Jl(i)<1)break;const m=Wl(i,1);c=(m[0]&128)===128,u=m[0]&127,u<126?l=3:u===126?l=1:l=2}else if(l===1){if(Jl(i)<2)break;const m=Wl(i,2);u=new DataView(m.buffer,m.byteOffset,m.length).getUint16(0),l=3}else if(l===2){if(Jl(i)<8)break;const m=Wl(i,8),g=new DataView(m.buffer,m.byteOffset,m.length),y=g.getUint32(0);if(y>Math.pow(2,21)-1){d.enqueue(Eh);break}u=y*Math.pow(2,32)+g.getUint32(4),l=3}else{if(Jl(i)<u)break;const m=Wl(i,u);d.enqueue(od(c?m:Kf.decode(m),r)),l=0}if(u===0||u>n){d.enqueue(Eh);break}}}})}const qb=4;function Je(n){if(n)return V4(n)}function V4(n){for(var r in Je.prototype)n[r]=Je.prototype[r];return n}Je.prototype.on=Je.prototype.addEventListener=function(n,r){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(r),this};Je.prototype.once=function(n,r){function i(){this.off(n,i),r.apply(this,arguments)}return i.fn=r,this.on(n,i),this};Je.prototype.off=Je.prototype.removeListener=Je.prototype.removeAllListeners=Je.prototype.removeEventListener=function(n,r){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i=this._callbacks["$"+n];if(!i)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var l,u=0;u<i.length;u++)if(l=i[u],l===r||l.fn===r){i.splice(u,1);break}return i.length===0&&delete this._callbacks["$"+n],this};Je.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var r=new Array(arguments.length-1),i=this._callbacks["$"+n],l=1;l<arguments.length;l++)r[l-1]=arguments[l];if(i){i=i.slice(0);for(var l=0,u=i.length;l<u;++l)i[l].apply(this,r)}return this};Je.prototype.emitReserved=Je.prototype.emit;Je.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]};Je.prototype.hasListeners=function(n){return!!this.listeners(n).length};const Ro=typeof Promise=="function"&&typeof Promise.resolve=="function"?r=>Promise.resolve().then(r):(r,i)=>i(r,0),$t=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),P4="arraybuffer";function Ib(n,...r){return r.reduce((i,l)=>(n.hasOwnProperty(l)&&(i[l]=n[l]),i),{})}const Y4=$t.setTimeout,Z4=$t.clearTimeout;function Co(n,r){r.useNativeTimers?(n.setTimeoutFn=Y4.bind($t),n.clearTimeoutFn=Z4.bind($t)):(n.setTimeoutFn=$t.setTimeout.bind($t),n.clearTimeoutFn=$t.clearTimeout.bind($t))}const X4=1.33;function Q4(n){return typeof n=="string"?K4(n):Math.ceil((n.byteLength||n.size)*X4)}function K4(n){let r=0,i=0;for(let l=0,u=n.length;l<u;l++)r=n.charCodeAt(l),r<128?i+=1:r<2048?i+=2:r<55296||r>=57344?i+=3:(l++,i+=4);return i}function Fb(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function $4(n){let r="";for(let i in n)n.hasOwnProperty(i)&&(r.length&&(r+="&"),r+=encodeURIComponent(i)+"="+encodeURIComponent(n[i]));return r}function J4(n){let r={},i=n.split("&");for(let l=0,u=i.length;l<u;l++){let c=i[l].split("=");r[decodeURIComponent(c[0])]=decodeURIComponent(c[1])}return r}class W4 extends Error{constructor(r,i,l){super(r),this.description=i,this.context=l,this.type="TransportError"}}class ud extends Je{constructor(r){super(),this.writable=!1,Co(this,r),this.opts=r,this.query=r.query,this.socket=r.socket,this.supportsBinary=!r.forceBase64}onError(r,i,l){return super.emitReserved("error",new W4(r,i,l)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(r){this.readyState==="open"&&this.write(r)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(r){const i=od(r,this.socket.binaryType);this.onPacket(i)}onPacket(r){super.emitReserved("packet",r)}onClose(r){this.readyState="closed",super.emitReserved("close",r)}pause(r){}createUri(r,i={}){return r+"://"+this._hostname()+this._port()+this.opts.path+this._query(i)}_hostname(){const r=this.opts.hostname;return r.indexOf(":")===-1?r:"["+r+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(r){const i=$4(r);return i.length?"?"+i:""}}class eN extends ud{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(r){this.readyState="pausing";const i=()=>{this.readyState="paused",r()};if(this._polling||!this.writable){let l=0;this._polling&&(l++,this.once("pollComplete",function(){--l||i()})),this.writable||(l++,this.once("drain",function(){--l||i()}))}else i()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(r){const i=l=>{if(this.readyState==="opening"&&l.type==="open"&&this.onOpen(),l.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(l)};q4(r,this.socket.binaryType).forEach(i),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const r=()=>{this.write([{type:"close"}])};this.readyState==="open"?r():this.once("open",r)}write(r){this.writable=!1,G4(r,i=>{this.doWrite(i,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const r=this.opts.secure?"https":"http",i=this.query||{};return this.opts.timestampRequests!==!1&&(i[this.opts.timestampParam]=Fb()),!this.supportsBinary&&!i.sid&&(i.b64=1),this.createUri(r,i)}}let Vb=!1;try{Vb=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const tN=Vb;function nN(){}class rN extends eN{constructor(r){if(super(r),typeof location<"u"){const i=location.protocol==="https:";let l=location.port;l||(l=i?"443":"80"),this.xd=typeof location<"u"&&r.hostname!==location.hostname||l!==r.port}}doWrite(r,i){const l=this.request({method:"POST",data:r});l.on("success",i),l.on("error",(u,c)=>{this.onError("xhr post error",u,c)})}doPoll(){const r=this.request();r.on("data",this.onData.bind(this)),r.on("error",(i,l)=>{this.onError("xhr poll error",i,l)}),this.pollXhr=r}}class bn extends Je{constructor(r,i,l){super(),this.createRequest=r,Co(this,l),this._opts=l,this._method=l.method||"GET",this._uri=i,this._data=l.data!==void 0?l.data:null,this._create()}_create(){var r;const i=Ib(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");i.xdomain=!!this._opts.xd;const l=this._xhr=this.createRequest(i);try{l.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){l.setDisableHeaderCheck&&l.setDisableHeaderCheck(!0);for(let u in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(u)&&l.setRequestHeader(u,this._opts.extraHeaders[u])}}catch{}if(this._method==="POST")try{l.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{l.setRequestHeader("Accept","*/*")}catch{}(r=this._opts.cookieJar)===null||r===void 0||r.addCookies(l),"withCredentials"in l&&(l.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(l.timeout=this._opts.requestTimeout),l.onreadystatechange=()=>{var u;l.readyState===3&&((u=this._opts.cookieJar)===null||u===void 0||u.parseCookies(l.getResponseHeader("set-cookie"))),l.readyState===4&&(l.status===200||l.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof l.status=="number"?l.status:0)},0))},l.send(this._data)}catch(u){this.setTimeoutFn(()=>{this._onError(u)},0);return}typeof document<"u"&&(this._index=bn.requestsCount++,bn.requests[this._index]=this)}_onError(r){this.emitReserved("error",r,this._xhr),this._cleanup(!0)}_cleanup(r){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=nN,r)try{this._xhr.abort()}catch{}typeof document<"u"&&delete bn.requests[this._index],this._xhr=null}}_onLoad(){const r=this._xhr.responseText;r!==null&&(this.emitReserved("data",r),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}bn.requestsCount=0;bn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Xv);else if(typeof addEventListener=="function"){const n="onpagehide"in $t?"pagehide":"unload";addEventListener(n,Xv,!1)}}function Xv(){for(let n in bn.requests)bn.requests.hasOwnProperty(n)&&bn.requests[n].abort()}const aN=function(){const n=Pb({xdomain:!1});return n&&n.responseType!==null}();class iN extends rN{constructor(r){super(r);const i=r&&r.forceBase64;this.supportsBinary=aN&&!i}request(r={}){return Object.assign(r,{xd:this.xd},this.opts),new bn(Pb,this.uri(),r)}}function Pb(n){const r=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!r||tN))return new XMLHttpRequest}catch{}if(!r)try{return new $t[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Yb=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class sN extends ud{get name(){return"websocket"}doOpen(){const r=this.uri(),i=this.opts.protocols,l=Yb?{}:Ib(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(l.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(r,i,l)}catch(u){return this.emitReserved("error",u)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=r=>this.onClose({description:"websocket connection closed",context:r}),this.ws.onmessage=r=>this.onData(r.data),this.ws.onerror=r=>this.onError("websocket error",r)}write(r){this.writable=!1;for(let i=0;i<r.length;i++){const l=r[i],u=i===r.length-1;ld(l,this.supportsBinary,c=>{try{this.doWrite(l,c)}catch{}u&&Ro(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const r=this.opts.secure?"wss":"ws",i=this.query||{};return this.opts.timestampRequests&&(i[this.opts.timestampParam]=Fb()),this.supportsBinary||(i.b64=1),this.createUri(r,i)}}const $f=$t.WebSocket||$t.MozWebSocket;class lN extends sN{createSocket(r,i,l){return Yb?new $f(r,i,l):i?new $f(r,i):new $f(r)}doWrite(r,i){this.ws.send(i)}}class oN extends ud{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(r){return this.emitReserved("error",r)}this._transport.closed.then(()=>{this.onClose()}).catch(r=>{this.onError("webtransport error",r)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(r=>{const i=F4(Number.MAX_SAFE_INTEGER,this.socket.binaryType),l=r.readable.pipeThrough(i).getReader(),u=I4();u.readable.pipeTo(r.writable),this._writer=u.writable.getWriter();const c=()=>{l.read().then(({done:d,value:m})=>{d||(this.onPacket(m),c())}).catch(d=>{})};c();const h={type:"open"};this.query.sid&&(h.data=`{"sid":"${this.query.sid}"}`),this._writer.write(h).then(()=>this.onOpen())})})}write(r){this.writable=!1;for(let i=0;i<r.length;i++){const l=r[i],u=i===r.length-1;this._writer.write(l).then(()=>{u&&Ro(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var r;(r=this._transport)===null||r===void 0||r.close()}}const uN={websocket:lN,webtransport:oN,polling:iN},cN=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,fN=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Sh(n){if(n.length>8e3)throw"URI too long";const r=n,i=n.indexOf("["),l=n.indexOf("]");i!=-1&&l!=-1&&(n=n.substring(0,i)+n.substring(i,l).replace(/:/g,";")+n.substring(l,n.length));let u=cN.exec(n||""),c={},h=14;for(;h--;)c[fN[h]]=u[h]||"";return i!=-1&&l!=-1&&(c.source=r,c.host=c.host.substring(1,c.host.length-1).replace(/;/g,":"),c.authority=c.authority.replace("[","").replace("]","").replace(/;/g,":"),c.ipv6uri=!0),c.pathNames=hN(c,c.path),c.queryKey=dN(c,c.query),c}function hN(n,r){const i=/\/{2,9}/g,l=r.replace(i,"/").split("/");return(r.slice(0,1)=="/"||r.length===0)&&l.splice(0,1),r.slice(-1)=="/"&&l.splice(l.length-1,1),l}function dN(n,r){const i={};return r.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(l,u,c){u&&(i[u]=c)}),i}const Th=typeof addEventListener=="function"&&typeof removeEventListener=="function",ro=[];Th&&addEventListener("offline",()=>{ro.forEach(n=>n())},!1);class _r extends Je{constructor(r,i){if(super(),this.binaryType=P4,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,r&&typeof r=="object"&&(i=r,r=null),r){const l=Sh(r);i.hostname=l.host,i.secure=l.protocol==="https"||l.protocol==="wss",i.port=l.port,l.query&&(i.query=l.query)}else i.host&&(i.hostname=Sh(i.host).host);Co(this,i),this.secure=i.secure!=null?i.secure:typeof location<"u"&&location.protocol==="https:",i.hostname&&!i.port&&(i.port=this.secure?"443":"80"),this.hostname=i.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=i.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},i.transports.forEach(l=>{const u=l.prototype.name;this.transports.push(u),this._transportsByName[u]=l}),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},i),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=J4(this.opts.query)),Th&&(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"})},ro.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(r){const i=Object.assign({},this.opts.query);i.EIO=qb,i.transport=r,this.id&&(i.sid=this.id);const l=Object.assign({},this.opts,{query:i,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[r]);return new this._transportsByName[r](l)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const r=this.opts.rememberUpgrade&&_r.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const i=this.createTransport(r);i.open(),this.setTransport(i)}setTransport(r){this.transport&&this.transport.removeAllListeners(),this.transport=r,r.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",i=>this._onClose("transport close",i))}onOpen(){this.readyState="open",_r.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",r),this.emitReserved("heartbeat"),r.type){case"open":this.onHandshake(JSON.parse(r.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const i=new Error("server error");i.code=r.data,this._onError(i);break;case"message":this.emitReserved("data",r.data),this.emitReserved("message",r.data);break}}onHandshake(r){this.emitReserved("handshake",r),this.id=r.sid,this.transport.query.sid=r.sid,this._pingInterval=r.pingInterval,this._pingTimeout=r.pingTimeout,this._maxPayload=r.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const r=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+r,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},r),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 r=this._getWritablePackets();this.transport.send(r),this._prevBufferLen=r.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let i=1;for(let l=0;l<this.writeBuffer.length;l++){const u=this.writeBuffer[l].data;if(u&&(i+=Q4(u)),l>0&&i>this._maxPayload)return this.writeBuffer.slice(0,l);i+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const r=Date.now()>this._pingTimeoutTime;return r&&(this._pingTimeoutTime=0,Ro(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),r}write(r,i,l){return this._sendPacket("message",r,i,l),this}send(r,i,l){return this._sendPacket("message",r,i,l),this}_sendPacket(r,i,l,u){if(typeof i=="function"&&(u=i,i=void 0),typeof l=="function"&&(u=l,l=null),this.readyState==="closing"||this.readyState==="closed")return;l=l||{},l.compress=l.compress!==!1;const c={type:r,data:i,options:l};this.emitReserved("packetCreate",c),this.writeBuffer.push(c),u&&this.once("flush",u),this.flush()}close(){const r=()=>{this._onClose("forced close"),this.transport.close()},i=()=>{this.off("upgrade",i),this.off("upgradeError",i),r()},l=()=>{this.once("upgrade",i),this.once("upgradeError",i)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?l():r()}):this.upgrading?l():r()),this}_onError(r){if(_r.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",r),this._onClose("transport error",r)}_onClose(r,i){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(),Th&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const l=ro.indexOf(this._offlineEventListener);l!==-1&&ro.splice(l,1)}this.readyState="closed",this.id=null,this.emitReserved("close",r,i),this.writeBuffer=[],this._prevBufferLen=0}}}_r.protocol=qb;class mN extends _r{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let r=0;r<this._upgrades.length;r++)this._probe(this._upgrades[r])}_probe(r){let i=this.createTransport(r),l=!1;_r.priorWebsocketSuccess=!1;const u=()=>{l||(i.send([{type:"ping",data:"probe"}]),i.once("packet",T=>{if(!l)if(T.type==="pong"&&T.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",i),!i)return;_r.priorWebsocketSuccess=i.name==="websocket",this.transport.pause(()=>{l||this.readyState!=="closed"&&(y(),this.setTransport(i),i.send([{type:"upgrade"}]),this.emitReserved("upgrade",i),i=null,this.upgrading=!1,this.flush())})}else{const O=new Error("probe error");O.transport=i.name,this.emitReserved("upgradeError",O)}}))};function c(){l||(l=!0,y(),i.close(),i=null)}const h=T=>{const O=new Error("probe error: "+T);O.transport=i.name,c(),this.emitReserved("upgradeError",O)};function d(){h("transport closed")}function m(){h("socket closed")}function g(T){i&&T.name!==i.name&&c()}const y=()=>{i.removeListener("open",u),i.removeListener("error",h),i.removeListener("close",d),this.off("close",m),this.off("upgrading",g)};i.once("open",u),i.once("error",h),i.once("close",d),this.once("close",m),this.once("upgrading",g),this._upgrades.indexOf("webtransport")!==-1&&r!=="webtransport"?this.setTimeoutFn(()=>{l||i.open()},200):i.open()}onHandshake(r){this._upgrades=this._filterUpgrades(r.upgrades),super.onHandshake(r)}_filterUpgrades(r){const i=[];for(let l=0;l<r.length;l++)~this.transports.indexOf(r[l])&&i.push(r[l]);return i}}let pN=class extends mN{constructor(r,i={}){const l=typeof r=="object"?r:i;(!l.transports||l.transports&&typeof l.transports[0]=="string")&&(l.transports=(l.transports||["polling","websocket","webtransport"]).map(u=>uN[u]).filter(u=>!!u)),super(r,l)}};function gN(n,r="",i){let l=n;i=i||typeof location<"u"&&location,n==null&&(n=i.protocol+"//"+i.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=i.protocol+n:n=i.host+n),/^(https?|wss?):\/\//.test(n)||(typeof i<"u"?n=i.protocol+"//"+n:n="https://"+n),l=Sh(n)),l.port||(/^(http|ws)$/.test(l.protocol)?l.port="80":/^(http|ws)s$/.test(l.protocol)&&(l.port="443")),l.path=l.path||"/";const c=l.host.indexOf(":")!==-1?"["+l.host+"]":l.host;return l.id=l.protocol+"://"+c+":"+l.port+r,l.href=l.protocol+"://"+c+(i&&i.port===l.port?"":":"+l.port),l}const yN=typeof ArrayBuffer=="function",vN=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,Zb=Object.prototype.toString,_N=typeof Blob=="function"||typeof Blob<"u"&&Zb.call(Blob)==="[object BlobConstructor]",bN=typeof File=="function"||typeof File<"u"&&Zb.call(File)==="[object FileConstructor]";function cd(n){return yN&&(n instanceof ArrayBuffer||vN(n))||_N&&n instanceof Blob||bN&&n instanceof File}function ao(n,r){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let i=0,l=n.length;i<l;i++)if(ao(n[i]))return!0;return!1}if(cd(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return ao(n.toJSON(),!0);for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&ao(n[i]))return!0;return!1}function EN(n){const r=[],i=n.data,l=n;return l.data=xh(i,r),l.attachments=r.length,{packet:l,buffers:r}}function xh(n,r){if(!n)return n;if(cd(n)){const i={_placeholder:!0,num:r.length};return r.push(n),i}else if(Array.isArray(n)){const i=new Array(n.length);for(let l=0;l<n.length;l++)i[l]=xh(n[l],r);return i}else if(typeof n=="object"&&!(n instanceof Date)){const i={};for(const l in n)Object.prototype.hasOwnProperty.call(n,l)&&(i[l]=xh(n[l],r));return i}return n}function SN(n,r){return n.data=Ah(n.data,r),delete n.attachments,n}function Ah(n,r){if(!n)return n;if(n&&n._placeholder===!0){if(typeof n.num=="number"&&n.num>=0&&n.num<r.length)return r[n.num];throw new Error("illegal attachments")}else if(Array.isArray(n))for(let i=0;i<n.length;i++)n[i]=Ah(n[i],r);else if(typeof n=="object")for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(n[i]=Ah(n[i],r));return n}const TN=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],xN=5;var xe;(function(n){n[n.CONNECT=0]="CONNECT",n[n.DISCONNECT=1]="DISCONNECT",n[n.EVENT=2]="EVENT",n[n.ACK=3]="ACK",n[n.CONNECT_ERROR=4]="CONNECT_ERROR",n[n.BINARY_EVENT=5]="BINARY_EVENT",n[n.BINARY_ACK=6]="BINARY_ACK"})(xe||(xe={}));class AN{constructor(r){this.replacer=r}encode(r){return(r.type===xe.EVENT||r.type===xe.ACK)&&ao(r)?this.encodeAsBinary({type:r.type===xe.EVENT?xe.BINARY_EVENT:xe.BINARY_ACK,nsp:r.nsp,data:r.data,id:r.id}):[this.encodeAsString(r)]}encodeAsString(r){let i=""+r.type;return(r.type===xe.BINARY_EVENT||r.type===xe.BINARY_ACK)&&(i+=r.attachments+"-"),r.nsp&&r.nsp!=="/"&&(i+=r.nsp+","),r.id!=null&&(i+=r.id),r.data!=null&&(i+=JSON.stringify(r.data,this.replacer)),i}encodeAsBinary(r){const i=EN(r),l=this.encodeAsString(i.packet),u=i.buffers;return u.unshift(l),u}}function Qv(n){return Object.prototype.toString.call(n)==="[object Object]"}class fd extends Je{constructor(r){super(),this.reviver=r}add(r){let i;if(typeof r=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");i=this.decodeString(r);const l=i.type===xe.BINARY_EVENT;l||i.type===xe.BINARY_ACK?(i.type=l?xe.EVENT:xe.ACK,this.reconstructor=new ON(i),i.attachments===0&&super.emitReserved("decoded",i)):super.emitReserved("decoded",i)}else if(cd(r)||r.base64)if(this.reconstructor)i=this.reconstructor.takeBinaryData(r),i&&(this.reconstructor=null,super.emitReserved("decoded",i));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+r)}decodeString(r){let i=0;const l={type:Number(r.charAt(0))};if(xe[l.type]===void 0)throw new Error("unknown packet type "+l.type);if(l.type===xe.BINARY_EVENT||l.type===xe.BINARY_ACK){const c=i+1;for(;r.charAt(++i)!=="-"&&i!=r.length;);const h=r.substring(c,i);if(h!=Number(h)||r.charAt(i)!=="-")throw new Error("Illegal attachments");l.attachments=Number(h)}if(r.charAt(i+1)==="/"){const c=i+1;for(;++i&&!(r.charAt(i)===","||i===r.length););l.nsp=r.substring(c,i)}else l.nsp="/";const u=r.charAt(i+1);if(u!==""&&Number(u)==u){const c=i+1;for(;++i;){const h=r.charAt(i);if(h==null||Number(h)!=h){--i;break}if(i===r.length)break}l.id=Number(r.substring(c,i+1))}if(r.charAt(++i)){const c=this.tryParse(r.substr(i));if(fd.isPayloadValid(l.type,c))l.data=c;else throw new Error("invalid payload")}return l}tryParse(r){try{return JSON.parse(r,this.reviver)}catch{return!1}}static isPayloadValid(r,i){switch(r){case xe.CONNECT:return Qv(i);case xe.DISCONNECT:return i===void 0;case xe.CONNECT_ERROR:return typeof i=="string"||Qv(i);case xe.EVENT:case xe.BINARY_EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&TN.indexOf(i[0])===-1);case xe.ACK:case xe.BINARY_ACK:return Array.isArray(i)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class ON{constructor(r){this.packet=r,this.buffers=[],this.reconPack=r}takeBinaryData(r){if(this.buffers.push(r),this.buffers.length===this.reconPack.attachments){const i=SN(this.reconPack,this.buffers);return this.finishedReconstruction(),i}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const wN=Object.freeze(Object.defineProperty({__proto__:null,Decoder:fd,Encoder:AN,get PacketType(){return xe},protocol:xN},Symbol.toStringTag,{value:"Module"}));function on(n,r,i){return n.on(r,i),function(){n.off(r,i)}}const RN=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Xb extends Je{constructor(r,i,l){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=r,this.nsp=i,l&&l.auth&&(this.auth=l.auth),this._opts=Object.assign({},l),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const r=this.io;this.subs=[on(r,"open",this.onopen.bind(this)),on(r,"packet",this.onpacket.bind(this)),on(r,"error",this.onerror.bind(this)),on(r,"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(...r){return r.unshift("message"),this.emit.apply(this,r),this}emit(r,...i){var l,u,c;if(RN.hasOwnProperty(r))throw new Error('"'+r.toString()+'" is a reserved event name');if(i.unshift(r),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(i),this;const h={type:xe.EVENT,data:i};if(h.options={},h.options.compress=this.flags.compress!==!1,typeof i[i.length-1]=="function"){const y=this.ids++,T=i.pop();this._registerAckCallback(y,T),h.id=y}const d=(u=(l=this.io.engine)===null||l===void 0?void 0:l.transport)===null||u===void 0?void 0:u.writable,m=this.connected&&!(!((c=this.io.engine)===null||c===void 0)&&c._hasPingExpired());return this.flags.volatile&&!d||(m?(this.notifyOutgoingListeners(h),this.packet(h)):this.sendBuffer.push(h)),this.flags={},this}_registerAckCallback(r,i){var l;const u=(l=this.flags.timeout)!==null&&l!==void 0?l:this._opts.ackTimeout;if(u===void 0){this.acks[r]=i;return}const c=this.io.setTimeoutFn(()=>{delete this.acks[r];for(let d=0;d<this.sendBuffer.length;d++)this.sendBuffer[d].id===r&&this.sendBuffer.splice(d,1);i.call(this,new Error("operation has timed out"))},u),h=(...d)=>{this.io.clearTimeoutFn(c),i.apply(this,d)};h.withError=!0,this.acks[r]=h}emitWithAck(r,...i){return new Promise((l,u)=>{const c=(h,d)=>h?u(h):l(d);c.withError=!0,i.push(c),this.emit(r,...i)})}_addToQueue(r){let i;typeof r[r.length-1]=="function"&&(i=r.pop());const l={id:this._queueSeq++,tryCount:0,pending:!1,args:r,flags:Object.assign({fromQueue:!0},this.flags)};r.push((u,...c)=>l!==this._queue[0]?void 0:(u!==null?l.tryCount>this._opts.retries&&(this._queue.shift(),i&&i(u)):(this._queue.shift(),i&&i(null,...c)),l.pending=!1,this._drainQueue())),this._queue.push(l),this._drainQueue()}_drainQueue(r=!1){if(!this.connected||this._queue.length===0)return;const i=this._queue[0];i.pending&&!r||(i.pending=!0,i.tryCount++,this.flags=i.flags,this.emit.apply(this,i.args))}packet(r){r.nsp=this.nsp,this.io._packet(r)}onopen(){typeof this.auth=="function"?this.auth(r=>{this._sendConnectPacket(r)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(r){this.packet({type:xe.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},r):r})}onerror(r){this.connected||this.emitReserved("connect_error",r)}onclose(r,i){this.connected=!1,delete this.id,this.emitReserved("disconnect",r,i),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(r=>{if(!this.sendBuffer.some(l=>String(l.id)===r)){const l=this.acks[r];delete this.acks[r],l.withError&&l.call(this,new Error("socket has been disconnected"))}})}onpacket(r){if(r.nsp===this.nsp)switch(r.type){case xe.CONNECT:r.data&&r.data.sid?this.onconnect(r.data.sid,r.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 xe.EVENT:case xe.BINARY_EVENT:this.onevent(r);break;case xe.ACK:case xe.BINARY_ACK:this.onack(r);break;case xe.DISCONNECT:this.ondisconnect();break;case xe.CONNECT_ERROR:this.destroy();const l=new Error(r.data.message);l.data=r.data.data,this.emitReserved("connect_error",l);break}}onevent(r){const i=r.data||[];r.id!=null&&i.push(this.ack(r.id)),this.connected?this.emitEvent(i):this.receiveBuffer.push(Object.freeze(i))}emitEvent(r){if(this._anyListeners&&this._anyListeners.length){const i=this._anyListeners.slice();for(const l of i)l.apply(this,r)}super.emit.apply(this,r),this._pid&&r.length&&typeof r[r.length-1]=="string"&&(this._lastOffset=r[r.length-1])}ack(r){const i=this;let l=!1;return function(...u){l||(l=!0,i.packet({type:xe.ACK,id:r,data:u}))}}onack(r){const i=this.acks[r.id];typeof i=="function"&&(delete this.acks[r.id],i.withError&&r.data.unshift(null),i.apply(this,r.data))}onconnect(r,i){this.id=r,this.recovered=i&&this._pid===i,this._pid=i,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(r=>this.emitEvent(r)),this.receiveBuffer=[],this.sendBuffer.forEach(r=>{this.notifyOutgoingListeners(r),this.packet(r)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(r=>r()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:xe.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(r){return this.flags.compress=r,this}get volatile(){return this.flags.volatile=!0,this}timeout(r){return this.flags.timeout=r,this}onAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(r),this}prependAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(r),this}offAny(r){if(!this._anyListeners)return this;if(r){const i=this._anyListeners;for(let l=0;l<i.length;l++)if(r===i[l])return i.splice(l,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(r){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(r),this}prependAnyOutgoing(r){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(r),this}offAnyOutgoing(r){if(!this._anyOutgoingListeners)return this;if(r){const i=this._anyOutgoingListeners;for(let l=0;l<i.length;l++)if(r===i[l])return i.splice(l,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(r){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const i=this._anyOutgoingListeners.slice();for(const l of i)l.apply(this,r.data)}}}function Fa(n){n=n||{},this.ms=n.min||100,this.max=n.max||1e4,this.factor=n.factor||2,this.jitter=n.jitter>0&&n.jitter<=1?n.jitter:0,this.attempts=0}Fa.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var r=Math.random(),i=Math.floor(r*this.jitter*n);n=(Math.floor(r*10)&1)==0?n-i:n+i}return Math.min(n,this.max)|0};Fa.prototype.reset=function(){this.attempts=0};Fa.prototype.setMin=function(n){this.ms=n};Fa.prototype.setMax=function(n){this.max=n};Fa.prototype.setJitter=function(n){this.jitter=n};class Oh extends Je{constructor(r,i){var l;super(),this.nsps={},this.subs=[],r&&typeof r=="object"&&(i=r,r=void 0),i=i||{},i.path=i.path||"/socket.io",this.opts=i,Co(this,i),this.reconnection(i.reconnection!==!1),this.reconnectionAttempts(i.reconnectionAttempts||1/0),this.reconnectionDelay(i.reconnectionDelay||1e3),this.reconnectionDelayMax(i.reconnectionDelayMax||5e3),this.randomizationFactor((l=i.randomizationFactor)!==null&&l!==void 0?l:.5),this.backoff=new Fa({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(i.timeout==null?2e4:i.timeout),this._readyState="closed",this.uri=r;const u=i.parser||wN;this.encoder=new u.Encoder,this.decoder=new u.Decoder,this._autoConnect=i.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(r){return arguments.length?(this._reconnection=!!r,r||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(r){return r===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=r,this)}reconnectionDelay(r){var i;return r===void 0?this._reconnectionDelay:(this._reconnectionDelay=r,(i=this.backoff)===null||i===void 0||i.setMin(r),this)}randomizationFactor(r){var i;return r===void 0?this._randomizationFactor:(this._randomizationFactor=r,(i=this.backoff)===null||i===void 0||i.setJitter(r),this)}reconnectionDelayMax(r){var i;return r===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=r,(i=this.backoff)===null||i===void 0||i.setMax(r),this)}timeout(r){return arguments.length?(this._timeout=r,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(r){if(~this._readyState.indexOf("open"))return this;this.engine=new pN(this.uri,this.opts);const i=this.engine,l=this;this._readyState="opening",this.skipReconnect=!1;const u=on(i,"open",function(){l.onopen(),r&&r()}),c=d=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",d),r?r(d):this.maybeReconnectOnOpen()},h=on(i,"error",c);if(this._timeout!==!1){const d=this._timeout,m=this.setTimeoutFn(()=>{u(),c(new Error("timeout")),i.close()},d);this.opts.autoUnref&&m.unref(),this.subs.push(()=>{this.clearTimeoutFn(m)})}return this.subs.push(u),this.subs.push(h),this}connect(r){return this.open(r)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const r=this.engine;this.subs.push(on(r,"ping",this.onping.bind(this)),on(r,"data",this.ondata.bind(this)),on(r,"error",this.onerror.bind(this)),on(r,"close",this.onclose.bind(this)),on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(r){try{this.decoder.add(r)}catch(i){this.onclose("parse error",i)}}ondecoded(r){Ro(()=>{this.emitReserved("packet",r)},this.setTimeoutFn)}onerror(r){this.emitReserved("error",r)}socket(r,i){let l=this.nsps[r];return l?this._autoConnect&&!l.active&&l.connect():(l=new Xb(this,r,i),this.nsps[r]=l),l}_destroy(r){const i=Object.keys(this.nsps);for(const l of i)if(this.nsps[l].active)return;this._close()}_packet(r){const i=this.encoder.encode(r);for(let l=0;l<i.length;l++)this.engine.write(i[l],r.options)}cleanup(){this.subs.forEach(r=>r()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(r,i){var l;this.cleanup(),(l=this.engine)===null||l===void 0||l.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",r,i),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const r=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const i=this.backoff.duration();this._reconnecting=!0;const l=this.setTimeoutFn(()=>{r.skipReconnect||(this.emitReserved("reconnect_attempt",r.backoff.attempts),!r.skipReconnect&&r.open(u=>{u?(r._reconnecting=!1,r.reconnect(),this.emitReserved("reconnect_error",u)):r.onreconnect()}))},i);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}}onreconnect(){const r=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",r)}}const $i={};function io(n,r){typeof n=="object"&&(r=n,n=void 0),r=r||{};const i=gN(n,r.path||"/socket.io"),l=i.source,u=i.id,c=i.path,h=$i[u]&&c in $i[u].nsps,d=r.forceNew||r["force new connection"]||r.multiplex===!1||h;let m;return d?m=new Oh(l,r):($i[u]||($i[u]=new Oh(l,r)),m=$i[u]),i.query&&!r.query&&(r.query=i.queryKey),m.socket(i.path,r)}Object.assign(io,{Manager:Oh,Socket:Xb,io,connect:io});const CN=[Ee.ActionTypes.MESSAGE_TO_GUEST,Ee.ActionTypes.EVENT_TO_GUEST,Ee.ActionTypes.TYPING_ON,Ee.ActionTypes.TYPING_OFF,Ee.ActionTypes.RESTART_CHAT_REQUEST,...sO,...rA,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],NN=({dispatch:n,getState:r})=>i=>{let l=null;return u=>{const c=i(u);if(u.type===Qh){l?.disconnect(),n(uO());const h=`/chat?${vo.stringify(u.querystrings)}`;l=io(`/${u.clientName}${h}`),l.on("action",n),l.on("connect",()=>n(cO())),l.on("disconnect",()=>n(fO())),l.on("reconnect",()=>n(hO())),l.on("set-translations",(d,m)=>{n(A4({language:d,messages:_4(d,m)}))}),l.on("set-settings",d=>{n(R4(d))}),l.on("enable-conversation-rating",d=>n(oA(d))),l.on("speech-transcription",d=>n(iA(d))),l.on("restore-client-state",d=>{n(oO(d.sessionId)),n(cA(d.messages))}),l.on("expand-window",({devices:d,initial:m=!1})=>{n({type:q_,devices:d,initial:m})}),l.on("restart-chat",()=>{n(Ao(u.clientName,u.querystrings))})}else if(u.type===To)l?.emit("start-chat",u.payload);else if(u.type===xo)l?.emit("terminate-session",u.payload);else if(u.type===nA)l?.emit("get-started",JSON.stringify(u));else if(u.type===kh)l?.emit("audio-message",u.buffer);else if(u.type===Ee.ActionTypes.CONVERSATION_RATING_FROM_GUEST)l?.emit("conversation-rating",u.payload);else if(u.type===F_){const{connection:{sessionId:h}}=r();window.location.href=`/transcript-pdf/${h}`}else CN.indexOf(u.type)===-1&&u.meta===void 0&&l&&l.emit("action",JSON.stringify(u));return c}},Qb=Tb(),DN={...M4(Qb),intl:Nb},wh=qA({middleware:n=>n().concat(NN),reducer:N4,preloadedState:DN});wh.subscribe(f4(()=>{const n=wh.getState();B4(Qb,{connection:n.connection,startScreen:n.startScreen})},1e3));const MN=document.getElementById("root"),BN=w2.createRoot(MN);BN.render(v.jsx(OS,{store:wh,children:v.jsx($6,{})}));
119
- //# sourceMappingURL=index-ux2toNv6.js.map