@botfabrik/engine-webclient 4.96.20 → 4.96.22-alpha.0

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.
@@ -0,0 +1,124 @@
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"]'))s(u);new MutationObserver(u=>{for(const c of u)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).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 s(u){if(u.ep)return;u.ep=!0;const c=i(u);fetch(u.href,c)}})();var go=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gh(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Df={exports:{}},Ls={};/**
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 Dg;function H2(){if(Dg)return Ls;Dg=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function i(s,u,c){var d=null;if(c!==void 0&&(d=""+c),u.key!==void 0&&(d=""+u.key),"key"in u){c={};for(var h in u)h!=="key"&&(c[h]=u[h])}else c=u;return u=c.ref,{$$typeof:t,type:s,key:d,ref:u!==void 0?u:null,props:c}}return Ls.Fragment=r,Ls.jsx=i,Ls.jsxs=i,Ls}var Lg;function j2(){return Lg||(Lg=1,Df.exports=H2()),Df.exports}var v=j2(),Lf={exports:{}},Bs={},Bf={exports:{}},Uf={};/**
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 Bg;function I2(){return Bg||(Bg=1,function(t){function r(z,K){var ee=z.length;z.push(K);e:for(;0<ee;){var Ae=ee-1>>>1,O=z[Ae];if(0<u(O,K))z[Ae]=K,z[ee]=O,ee=Ae;else break e}}function i(z){return z.length===0?null:z[0]}function s(z){if(z.length===0)return null;var K=z[0],ee=z.pop();if(ee!==K){z[0]=ee;e:for(var Ae=0,O=z.length,k=O>>>1;Ae<k;){var $=2*(Ae+1)-1,Y=z[$],te=$+1,re=z[te];if(0>u(Y,ee))te<O&&0>u(re,Y)?(z[Ae]=re,z[te]=ee,Ae=te):(z[Ae]=Y,z[$]=ee,Ae=$);else if(te<O&&0>u(re,ee))z[Ae]=re,z[te]=ee,Ae=te;else break e}}return K}function u(z,K){var ee=z.sortIndex-K.sortIndex;return ee!==0?ee:z.id-K.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var d=Date,h=d.now();t.unstable_now=function(){return d.now()-h}}var m=[],p=[],y=1,E=null,A=3,U=!1,R=!1,F=!1,G=!1,_=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;function I(z){for(var K=i(p);K!==null;){if(K.callback===null)s(p);else if(K.startTime<=z)s(p),K.sortIndex=K.expirationTime,r(m,K);else break;K=i(p)}}function x(z){if(F=!1,I(z),!R)if(i(m)!==null)R=!0,Z||(Z=!0,me());else{var K=i(p);K!==null&&be(x,K.startTime-z)}}var Z=!1,W=-1,ae=5,ge=-1;function Ee(){return G?!0:!(t.unstable_now()-ge<ae)}function se(){if(G=!1,Z){var z=t.unstable_now();ge=z;var K=!0;try{e:{R=!1,F&&(F=!1,C(W),W=-1),U=!0;var ee=A;try{t:{for(I(z),E=i(m);E!==null&&!(E.expirationTime>z&&Ee());){var Ae=E.callback;if(typeof Ae=="function"){E.callback=null,A=E.priorityLevel;var O=Ae(E.expirationTime<=z);if(z=t.unstable_now(),typeof O=="function"){E.callback=O,I(z),K=!0;break t}E===i(m)&&s(m),I(z)}else s(m);E=i(m)}if(E!==null)K=!0;else{var k=i(p);k!==null&&be(x,k.startTime-z),K=!1}}break e}finally{E=null,A=ee,U=!1}K=void 0}}finally{K?me():Z=!1}}}var me;if(typeof S=="function")me=function(){S(se)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,Pe=ce.port2;ce.port1.onmessage=se,me=function(){Pe.postMessage(null)}}else me=function(){_(se,0)};function be(z,K){W=_(function(){z(t.unstable_now())},K)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(z){z.callback=null},t.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ae=0<z?Math.floor(1e3/z):5},t.unstable_getCurrentPriorityLevel=function(){return A},t.unstable_next=function(z){switch(A){case 1:case 2:case 3:var K=3;break;default:K=A}var ee=A;A=K;try{return z()}finally{A=ee}},t.unstable_requestPaint=function(){G=!0},t.unstable_runWithPriority=function(z,K){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var ee=A;A=z;try{return K()}finally{A=ee}},t.unstable_scheduleCallback=function(z,K,ee){var Ae=t.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?Ae+ee:Ae):ee=Ae,z){case 1:var O=-1;break;case 2:O=250;break;case 5:O=1073741823;break;case 4:O=1e4;break;default:O=5e3}return O=ee+O,z={id:y++,callback:K,priorityLevel:z,startTime:ee,expirationTime:O,sortIndex:-1},ee>Ae?(z.sortIndex=ee,r(p,z),i(m)===null&&z===i(p)&&(F?(C(W),W=-1):F=!0,be(x,ee-Ae))):(z.sortIndex=O,r(m,z),R||U||(R=!0,Z||(Z=!0,me()))),z},t.unstable_shouldYield=Ee,t.unstable_wrapCallback=function(z){var K=A;return function(){var ee=A;A=K;try{return z.apply(this,arguments)}finally{A=ee}}}}(Uf)),Uf}var Ug;function z2(){return Ug||(Ug=1,Bf.exports=I2()),Bf.exports}var Hf={exports:{}},ve={};/**
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 Hg;function G2(){if(Hg)return ve;Hg=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),E=Symbol.iterator;function A(O){return O===null||typeof O!="object"?null:(O=E&&O[E]||O["@@iterator"],typeof O=="function"?O:null)}var U={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,F={};function G(O,k,$){this.props=O,this.context=k,this.refs=F,this.updater=$||U}G.prototype.isReactComponent={},G.prototype.setState=function(O,k){if(typeof O!="object"&&typeof O!="function"&&O!=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,O,k,"setState")},G.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function _(){}_.prototype=G.prototype;function C(O,k,$){this.props=O,this.context=k,this.refs=F,this.updater=$||U}var S=C.prototype=new _;S.constructor=C,R(S,G.prototype),S.isPureReactComponent=!0;var I=Array.isArray,x={H:null,A:null,T:null,S:null,V:null},Z=Object.prototype.hasOwnProperty;function W(O,k,$,Y,te,re){return $=re.ref,{$$typeof:t,type:O,key:k,ref:$!==void 0?$:null,props:re}}function ae(O,k){return W(O.type,k,void 0,void 0,void 0,O.props)}function ge(O){return typeof O=="object"&&O!==null&&O.$$typeof===t}function Ee(O){var k={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function($){return k[$]})}var se=/\/+/g;function me(O,k){return typeof O=="object"&&O!==null&&O.key!=null?Ee(""+O.key):k.toString(36)}function ce(){}function Pe(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(ce,ce):(O.status="pending",O.then(function(k){O.status==="pending"&&(O.status="fulfilled",O.value=k)},function(k){O.status==="pending"&&(O.status="rejected",O.reason=k)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function be(O,k,$,Y,te){var re=typeof O;(re==="undefined"||re==="boolean")&&(O=null);var ue=!1;if(O===null)ue=!0;else switch(re){case"bigint":case"string":case"number":ue=!0;break;case"object":switch(O.$$typeof){case t:case r:ue=!0;break;case y:return ue=O._init,be(ue(O._payload),k,$,Y,te)}}if(ue)return te=te(O),ue=Y===""?"."+me(O,0):Y,I(te)?($="",ue!=null&&($=ue.replace(se,"$&/")+"/"),be(te,k,$,"",function(Et){return Et})):te!=null&&(ge(te)&&(te=ae(te,$+(te.key==null||O&&O.key===te.key?"":(""+te.key).replace(se,"$&/")+"/")+ue)),k.push(te)),1;ue=0;var $e=Y===""?".":Y+":";if(I(O))for(var Ue=0;Ue<O.length;Ue++)Y=O[Ue],re=$e+me(Y,Ue),ue+=be(Y,k,$,re,te);else if(Ue=A(O),typeof Ue=="function")for(O=Ue.call(O),Ue=0;!(Y=O.next()).done;)Y=Y.value,re=$e+me(Y,Ue++),ue+=be(Y,k,$,re,te);else if(re==="object"){if(typeof O.then=="function")return be(Pe(O),k,$,Y,te);throw k=String(O),Error("Objects are not valid as a React child (found: "+(k==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":k)+"). If you meant to render a collection of children, use an array instead.")}return ue}function z(O,k,$){if(O==null)return O;var Y=[],te=0;return be(O,Y,"","",function(re){return k.call($,re,te++)}),Y}function K(O){if(O._status===-1){var k=O._result;k=k(),k.then(function($){(O._status===0||O._status===-1)&&(O._status=1,O._result=$)},function($){(O._status===0||O._status===-1)&&(O._status=2,O._result=$)}),O._status===-1&&(O._status=0,O._result=k)}if(O._status===1)return O._result.default;throw O._result}var ee=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var k=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(k))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)};function Ae(){}return ve.Children={map:z,forEach:function(O,k,$){z(O,function(){k.apply(this,arguments)},$)},count:function(O){var k=0;return z(O,function(){k++}),k},toArray:function(O){return z(O,function(k){return k})||[]},only:function(O){if(!ge(O))throw Error("React.Children.only expected to receive a single React element child.");return O}},ve.Component=G,ve.Fragment=i,ve.Profiler=u,ve.PureComponent=C,ve.StrictMode=s,ve.Suspense=m,ve.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=x,ve.__COMPILER_RUNTIME={__proto__:null,c:function(O){return x.H.useMemoCache(O)}},ve.cache=function(O){return function(){return O.apply(null,arguments)}},ve.cloneElement=function(O,k,$){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var Y=R({},O.props),te=O.key,re=void 0;if(k!=null)for(ue in k.ref!==void 0&&(re=void 0),k.key!==void 0&&(te=""+k.key),k)!Z.call(k,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&k.ref===void 0||(Y[ue]=k[ue]);var ue=arguments.length-2;if(ue===1)Y.children=$;else if(1<ue){for(var $e=Array(ue),Ue=0;Ue<ue;Ue++)$e[Ue]=arguments[Ue+2];Y.children=$e}return W(O.type,te,void 0,void 0,re,Y)},ve.createContext=function(O){return O={$$typeof:d,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:c,_context:O},O},ve.createElement=function(O,k,$){var Y,te={},re=null;if(k!=null)for(Y in k.key!==void 0&&(re=""+k.key),k)Z.call(k,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(te[Y]=k[Y]);var ue=arguments.length-2;if(ue===1)te.children=$;else if(1<ue){for(var $e=Array(ue),Ue=0;Ue<ue;Ue++)$e[Ue]=arguments[Ue+2];te.children=$e}if(O&&O.defaultProps)for(Y in ue=O.defaultProps,ue)te[Y]===void 0&&(te[Y]=ue[Y]);return W(O,re,void 0,void 0,null,te)},ve.createRef=function(){return{current:null}},ve.forwardRef=function(O){return{$$typeof:h,render:O}},ve.isValidElement=ge,ve.lazy=function(O){return{$$typeof:y,_payload:{_status:-1,_result:O},_init:K}},ve.memo=function(O,k){return{$$typeof:p,type:O,compare:k===void 0?null:k}},ve.startTransition=function(O){var k=x.T,$={};x.T=$;try{var Y=O(),te=x.S;te!==null&&te($,Y),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"&&Y.then(Ae,ee)}catch(re){ee(re)}finally{x.T=k}},ve.unstable_useCacheRefresh=function(){return x.H.useCacheRefresh()},ve.use=function(O){return x.H.use(O)},ve.useActionState=function(O,k,$){return x.H.useActionState(O,k,$)},ve.useCallback=function(O,k){return x.H.useCallback(O,k)},ve.useContext=function(O){return x.H.useContext(O)},ve.useDebugValue=function(){},ve.useDeferredValue=function(O,k){return x.H.useDeferredValue(O,k)},ve.useEffect=function(O,k,$){var Y=x.H;if(typeof $=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Y.useEffect(O,k)},ve.useId=function(){return x.H.useId()},ve.useImperativeHandle=function(O,k,$){return x.H.useImperativeHandle(O,k,$)},ve.useInsertionEffect=function(O,k){return x.H.useInsertionEffect(O,k)},ve.useLayoutEffect=function(O,k){return x.H.useLayoutEffect(O,k)},ve.useMemo=function(O,k){return x.H.useMemo(O,k)},ve.useOptimistic=function(O,k){return x.H.useOptimistic(O,k)},ve.useReducer=function(O,k,$){return x.H.useReducer(O,k,$)},ve.useRef=function(O){return x.H.useRef(O)},ve.useState=function(O){return x.H.useState(O)},ve.useSyncExternalStore=function(O,k,$){return x.H.useSyncExternalStore(O,k,$)},ve.useTransition=function(){return x.H.useTransition()},ve.version="19.1.1",ve}var jg;function su(){return jg||(jg=1,Hf.exports=G2()),Hf.exports}var jf={exports:{}},Bt={};/**
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 Ig;function k2(){if(Ig)return Bt;Ig=1;var t=su();function r(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)p+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var s={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,p,y){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:E==null?null:""+E,children:m,containerInfo:p,implementation:y}}var d=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Bt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Bt.createPortal=function(m,p){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(r(299));return c(m,p,null,y)},Bt.flushSync=function(m){var p=d.T,y=s.p;try{if(d.T=null,s.p=2,m)return m()}finally{d.T=p,s.p=y,s.d.f()}},Bt.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(m,p))},Bt.prefetchDNS=function(m){typeof m=="string"&&s.d.D(m)},Bt.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var y=p.as,E=h(y,p.crossOrigin),A=typeof p.integrity=="string"?p.integrity:void 0,U=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;y==="style"?s.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:E,integrity:A,fetchPriority:U}):y==="script"&&s.d.X(m,{crossOrigin:E,integrity:A,fetchPriority:U,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Bt.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var y=h(p.as,p.crossOrigin);s.d.M(m,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&s.d.M(m)},Bt.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var y=p.as,E=h(y,p.crossOrigin);s.d.L(m,y,{crossOrigin:E,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Bt.preloadModule=function(m,p){if(typeof m=="string")if(p){var y=h(p.as,p.crossOrigin);s.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(m)},Bt.requestFormReset=function(m){s.d.r(m)},Bt.unstable_batchedUpdates=function(m,p){return m(p)},Bt.useFormState=function(m,p,y){return d.H.useFormState(m,p,y)},Bt.useFormStatus=function(){return d.H.useHostTransitionStatus()},Bt.version="19.1.1",Bt}var zg;function q2(){if(zg)return jf.exports;zg=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),jf.exports=k2(),jf.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 Gg;function F2(){if(Gg)return Bs;Gg=1;var t=z2(),r=su(),i=q2();function s(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)n+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+n+" 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 n=e,a=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(a=n.return),e=n.return;while(e)}return n.tag===3?a:null}function d(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function h(e){if(c(e)!==e)throw Error(s(188))}function m(e){var n=e.alternate;if(!n){if(n=c(e),n===null)throw Error(s(188));return n!==e?null:e}for(var a=e,l=n;;){var o=a.return;if(o===null)break;var f=o.alternate;if(f===null){if(l=o.return,l!==null){a=l;continue}break}if(o.child===f.child){for(f=o.child;f;){if(f===a)return h(o),e;if(f===l)return h(o),n;f=f.sibling}throw Error(s(188))}if(a.return!==l.return)a=o,l=f;else{for(var g=!1,b=o.child;b;){if(b===a){g=!0,a=o,l=f;break}if(b===l){g=!0,l=o,a=f;break}b=b.sibling}if(!g){for(b=f.child;b;){if(b===a){g=!0,a=f,l=o;break}if(b===l){g=!0,l=f,a=o;break}b=b.sibling}if(!g)throw Error(s(189))}}if(a.alternate!==l)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:n}function p(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=p(e),n!==null)return n;e=e.sibling}return null}var y=Object.assign,E=Symbol.for("react.element"),A=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),C=Symbol.for("react.consumer"),S=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),ae=Symbol.for("react.lazy"),ge=Symbol.for("react.activity"),Ee=Symbol.for("react.memo_cache_sentinel"),se=Symbol.iterator;function me(e){return e===null||typeof e!="object"?null:(e=se&&e[se]||e["@@iterator"],typeof e=="function"?e:null)}var ce=Symbol.for("react.client.reference");function Pe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ce?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case R:return"Fragment";case G:return"Profiler";case F:return"StrictMode";case x:return"Suspense";case Z:return"SuspenseList";case ge:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case U:return"Portal";case S:return(e.displayName||"Context")+".Provider";case C:return(e._context.displayName||"Context")+".Consumer";case I:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case W:return n=e.displayName||null,n!==null?n:Pe(e.type)||"Memo";case ae:n=e._payload,e=e._init;try{return Pe(e(n))}catch{}}return null}var be=Array.isArray,z=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},Ae=[],O=-1;function k(e){return{current:e}}function $(e){0>O||(e.current=Ae[O],Ae[O]=null,O--)}function Y(e,n){O++,Ae[O]=e.current,e.current=n}var te=k(null),re=k(null),ue=k(null),$e=k(null);function Ue(e,n){switch(Y(ue,n),Y(re,e),Y(te,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?sg(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=sg(n),e=lg(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}$(te),Y(te,e)}function Et(){$(te),$(re),$(ue)}function zn(e){e.memoizedState!==null&&Y($e,e);var n=te.current,a=lg(n,e.type);n!==a&&(Y(re,e),Y(te,a))}function Nr(e){re.current===e&&($(te),$(re)),$e.current===e&&($($e),ws._currentValue=ee)}var Ze=Object.prototype.hasOwnProperty,kt=t.unstable_scheduleCallback,xn=t.unstable_cancelCallback,Di=t.unstable_shouldYield,Li=t.unstable_requestPaint,St=t.unstable_now,qa=t.unstable_getCurrentPriorityLevel,ua=t.unstable_ImmediatePriority,Bi=t.unstable_UserBlockingPriority,ca=t.unstable_NormalPriority,Tu=t.unstable_LowPriority,Fa=t.unstable_IdlePriority,fa=t.log,Mr=t.unstable_setDisableYieldValue,fn=null,Ct=null;function On(e){if(typeof fa=="function"&&Mr(e),Ct&&typeof Ct.setStrictMode=="function")try{Ct.setStrictMode(fn,e)}catch{}}var Nt=Math.clz32?Math.clz32:Va,Ui=Math.log,rl=Math.LN2;function Va(e){return e>>>=0,e===0?32:31-(Ui(e)/rl|0)|0}var tr=256,qt=4194304;function Ft(e){var n=e&42;if(n!==0)return n;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 Dr(e,n,a){var l=e.pendingLanes;if(l===0)return 0;var o=0,f=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var b=l&134217727;return b!==0?(l=b&~f,l!==0?o=Ft(l):(g&=b,g!==0?o=Ft(g):a||(a=b&~e,a!==0&&(o=Ft(a))))):(b=l&~f,b!==0?o=Ft(b):g!==0?o=Ft(g):a||(a=l&~e,a!==0&&(o=Ft(a)))),o===0?0:n!==0&&n!==o&&(n&f)===0&&(f=o&-o,a=n&-n,f>=a||f===32&&(a&4194048)!==0)?n:o}function nr(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function Au(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+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 n+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 da(){var e=tr;return tr<<=1,(tr&4194048)===0&&(tr=256),e}function ha(){var e=qt;return qt<<=1,(qt&62914560)===0&&(qt=4194304),e}function Hi(e){for(var n=[],a=0;31>a;a++)n.push(e);return n}function Rn(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function xu(e,n,a,l,o,f){var g=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 b=e.entanglements,T=e.expirationTimes,L=e.hiddenUpdates;for(a=g&~a;0<a;){var q=31-Nt(a),P=1<<q;b[q]=0,T[q]=-1;var B=L[q];if(B!==null)for(L[q]=null,q=0;q<B.length;q++){var j=B[q];j!==null&&(j.lane&=-536870913)}a&=~P}l!==0&&al(e,l,0),f!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=f&~(g&~n))}function al(e,n,a){e.pendingLanes|=n,e.suspendedLanes&=~n;var l=31-Nt(n);e.entangledLanes|=n,e.entanglements[l]=e.entanglements[l]|1073741824|a&4194090}function nt(e,n){var a=e.entangledLanes|=n;for(e=e.entanglements;a;){var l=31-Nt(a),o=1<<l;o&n|e[l]&n&&(e[l]|=n),a&=~o}}function Gn(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 ji(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ii(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:Og(e.type))}function zi(e,n){var a=K.p;try{return K.p=e,n()}finally{K.p=a}}var wn=Math.random().toString(36).slice(2),dt="__reactFiber$"+wn,Mt="__reactProps$"+wn,Tt="__reactContainer$"+wn,kn="__reactEvents$"+wn,il="__reactListeners$"+wn,sl="__reactHandles$"+wn,Pa="__reactResources$"+wn,Lr="__reactMarker$"+wn;function Qt(e){delete e[dt],delete e[Mt],delete e[kn],delete e[il],delete e[sl]}function rr(e){var n=e[dt];if(n)return n;for(var a=e.parentNode;a;){if(n=a[Tt]||a[dt]){if(a=n.alternate,n.child!==null||a!==null&&a.child!==null)for(e=fg(e);e!==null;){if(a=e[dt])return a;e=fg(e)}return n}e=a,a=e.parentNode}return null}function ar(e){if(e=e[dt]||e[Tt]){var n=e.tag;if(n===5||n===6||n===13||n===26||n===27||n===3)return e}return null}function Br(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(s(33))}function ir(e){var n=e[Pa];return n||(n=e[Pa]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function st(e){e[Lr]=!0}var le=new Set,N={};function X(e,n){J(e,n),J(e+"Capture",n)}function J(e,n){for(N[e]=n,e=0;e<n.length;e++)le.add(n[e])}var Fe=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]*$"),ht={},We={};function Dt(e){return Ze.call(We,e)?!0:Ze.call(ht,e)?!1:Fe.test(e)?We[e]=!0:(ht[e]=!0,!1)}function Vt(e,n,a){if(Dt(n))if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var l=n.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+a)}}function qn(e,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+a)}}function Kt(e,n,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(n,a,""+l)}}var lt,Gi;function sr(e){if(lt===void 0)try{throw Error()}catch(a){var n=a.stack.trim().match(/\n( *(at )?)/);lt=n&&n[1]||"",Gi=-1<a.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+lt+e+Gi}var Ou=!1;function Ru(e,n){if(!e||Ou)return"";Ou=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(n){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(j){var B=j}Reflect.construct(e,[],P)}else{try{P.call()}catch(j){B=j}e.call(P.prototype)}}else{try{throw Error()}catch(j){B=j}(P=e())&&typeof P.catch=="function"&&P.catch(function(){})}}catch(j){if(j&&B&&typeof j.stack=="string")return[j.stack,B.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=l.DetermineComponentFrameRoot(),g=f[0],b=f[1];if(g&&b){var T=g.split(`
44
+ `),L=b.split(`
45
+ `);for(o=l=0;l<T.length&&!T[l].includes("DetermineComponentFrameRoot");)l++;for(;o<L.length&&!L[o].includes("DetermineComponentFrameRoot");)o++;if(l===T.length||o===L.length)for(l=T.length-1,o=L.length-1;1<=l&&0<=o&&T[l]!==L[o];)o--;for(;1<=l&&0<=o;l--,o--)if(T[l]!==L[o]){if(l!==1||o!==1)do if(l--,o--,0>o||T[l]!==L[o]){var q=`
46
+ `+T[l].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),q}while(1<=l&&0<=o);break}}}finally{Ou=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?sr(a):""}function N_(e){switch(e.tag){case 26:case 27:case 5:return sr(e.type);case 16:return sr("Lazy");case 13:return sr("Suspense");case 19:return sr("SuspenseList");case 0:case 15:return Ru(e.type,!1);case 11:return Ru(e.type.render,!1);case 1:return Ru(e.type,!0);case 31:return sr("Activity");default:return""}}function em(e){try{var n="";do n+=N_(e),e=e.return;while(e);return n}catch(a){return`
47
+ Error generating stack: `+a.message+`
48
+ `+a.stack}}function dn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function tm(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function M_(e){var n=tm(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),l=""+e[n];if(!e.hasOwnProperty(n)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,f=a.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return o.call(this)},set:function(g){l=""+g,f.call(this,g)}}),Object.defineProperty(e,n,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(g){l=""+g},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function ll(e){e._valueTracker||(e._valueTracker=M_(e))}function nm(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var a=n.getValue(),l="";return e&&(l=tm(e)?e.checked?"true":"false":e.value),e=l,e!==a?(n.setValue(e),!0):!1}function ol(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 D_=/[\n"\\]/g;function hn(e){return e.replace(D_,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function wu(e,n,a,l,o,f,g,b){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),n!=null?g==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+dn(n)):e.value!==""+dn(n)&&(e.value=""+dn(n)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),n!=null?Cu(e,g,dn(n)):a!=null?Cu(e,g,dn(a)):l!=null&&e.removeAttribute("value"),o==null&&f!=null&&(e.defaultChecked=!!f),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+dn(b):e.removeAttribute("name")}function rm(e,n,a,l,o,f,g,b){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),n!=null||a!=null){if(!(f!=="submit"&&f!=="reset"||n!=null))return;a=a!=null?""+dn(a):"",n=n!=null?""+dn(n):a,b||n===e.value||(e.value=n),e.defaultValue=n}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=b?e.checked:!!l,e.defaultChecked=!!l,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g)}function Cu(e,n,a){n==="number"&&ol(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Ya(e,n,a,l){if(e=e.options,n){n={};for(var o=0;o<a.length;o++)n["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=n.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&l&&(e[a].defaultSelected=!0)}else{for(a=""+dn(a),n=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,l&&(e[o].defaultSelected=!0);return}n!==null||e[o].disabled||(n=e[o])}n!==null&&(n.selected=!0)}}function am(e,n,a){if(n!=null&&(n=""+dn(n),n!==e.value&&(e.value=n),a==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=a!=null?""+dn(a):""}function im(e,n,a,l){if(n==null){if(l!=null){if(a!=null)throw Error(s(92));if(be(l)){if(1<l.length)throw Error(s(93));l=l[0]}a=l}a==null&&(a=""),n=a}a=dn(n),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l)}function Xa(e,n){if(n){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=n;return}}e.textContent=n}var L_=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 sm(e,n,a){var l=n.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":l?e.setProperty(n,a):typeof a!="number"||a===0||L_.has(n)?n==="float"?e.cssFloat=a:e[n]=(""+a).trim():e[n]=a+"px"}function lm(e,n,a){if(n!=null&&typeof n!="object")throw Error(s(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||n!=null&&n.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var o in n)l=n[o],n.hasOwnProperty(o)&&a[o]!==l&&sm(e,o,l)}else for(var f in n)n.hasOwnProperty(f)&&sm(e,f,n[f])}function Nu(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 B_=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"]]),U_=/^[\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 ul(e){return U_.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Mu=null;function Du(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Za=null,Qa=null;function om(e){var n=ar(e);if(n&&(e=n.stateNode)){var a=e[Mt]||null;e:switch(e=n.stateNode,n.type){case"input":if(wu(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),n=a.name,a.type==="radio"&&n!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+hn(""+n)+'"][type="radio"]'),n=0;n<a.length;n++){var l=a[n];if(l!==e&&l.form===e.form){var o=l[Mt]||null;if(!o)throw Error(s(90));wu(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(n=0;n<a.length;n++)l=a[n],l.form===e.form&&nm(l)}break e;case"textarea":am(e,a.value,a.defaultValue);break e;case"select":n=a.value,n!=null&&Ya(e,!!a.multiple,n,!1)}}}var Lu=!1;function um(e,n,a){if(Lu)return e(n,a);Lu=!0;try{var l=e(n);return l}finally{if(Lu=!1,(Za!==null||Qa!==null)&&(Zl(),Za&&(n=Za,e=Qa,Qa=Za=null,om(n),e)))for(n=0;n<e.length;n++)om(e[n])}}function ki(e,n){var a=e.stateNode;if(a===null)return null;var l=a[Mt]||null;if(l===null)return null;a=l[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,n,typeof a));return a}var lr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bu=!1;if(lr)try{var qi={};Object.defineProperty(qi,"passive",{get:function(){Bu=!0}}),window.addEventListener("test",qi,qi),window.removeEventListener("test",qi,qi)}catch{Bu=!1}var Ur=null,Uu=null,cl=null;function cm(){if(cl)return cl;var e,n=Uu,a=n.length,l,o="value"in Ur?Ur.value:Ur.textContent,f=o.length;for(e=0;e<a&&n[e]===o[e];e++);var g=a-e;for(l=1;l<=g&&n[a-l]===o[f-l];l++);return cl=o.slice(e,1<l?1-l:void 0)}function fl(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function dl(){return!0}function fm(){return!1}function Pt(e){function n(a,l,o,f,g){this._reactName=a,this._targetInst=o,this.type=l,this.nativeEvent=f,this.target=g,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(a=e[b],this[b]=a?a(f):f[b]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?dl:fm,this.isPropagationStopped=fm,this}return y(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=dl)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=dl)},persist:function(){},isPersistent:dl}),n}var ma={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hl=Pt(ma),Fi=y({},ma,{view:0,detail:0}),H_=Pt(Fi),Hu,ju,Vi,ml=y({},Fi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zu,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!==Vi&&(Vi&&e.type==="mousemove"?(Hu=e.screenX-Vi.screenX,ju=e.screenY-Vi.screenY):ju=Hu=0,Vi=e),Hu)},movementY:function(e){return"movementY"in e?e.movementY:ju}}),dm=Pt(ml),j_=y({},ml,{dataTransfer:0}),I_=Pt(j_),z_=y({},Fi,{relatedTarget:0}),Iu=Pt(z_),G_=y({},ma,{animationName:0,elapsedTime:0,pseudoElement:0}),k_=Pt(G_),q_=y({},ma,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),F_=Pt(q_),V_=y({},ma,{data:0}),hm=Pt(V_),P_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Y_={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"},X_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Z_(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=X_[e])?!!n[e]:!1}function zu(){return Z_}var Q_=y({},Fi,{key:function(e){if(e.key){var n=P_[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=fl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Y_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zu,charCode:function(e){return e.type==="keypress"?fl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?fl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),K_=Pt(Q_),$_=y({},ml,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),mm=Pt($_),W_=y({},Fi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zu}),J_=Pt(W_),eE=y({},ma,{propertyName:0,elapsedTime:0,pseudoElement:0}),tE=Pt(eE),nE=y({},ml,{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}),rE=Pt(nE),aE=y({},ma,{newState:0,oldState:0}),iE=Pt(aE),sE=[9,13,27,32],Gu=lr&&"CompositionEvent"in window,Pi=null;lr&&"documentMode"in document&&(Pi=document.documentMode);var lE=lr&&"TextEvent"in window&&!Pi,pm=lr&&(!Gu||Pi&&8<Pi&&11>=Pi),gm=" ",ym=!1;function vm(e,n){switch(e){case"keyup":return sE.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ka=!1;function oE(e,n){switch(e){case"compositionend":return bm(n);case"keypress":return n.which!==32?null:(ym=!0,gm);case"textInput":return e=n.data,e===gm&&ym?null:e;default:return null}}function uE(e,n){if(Ka)return e==="compositionend"||!Gu&&vm(e,n)?(e=cm(),cl=Uu=Ur=null,Ka=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return pm&&n.locale!=="ko"?null:n.data;default:return null}}var cE={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 _m(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!cE[e.type]:n==="textarea"}function Em(e,n,a,l){Za?Qa?Qa.push(l):Qa=[l]:Za=l,n=eo(n,"onChange"),0<n.length&&(a=new hl("onChange","change",null,a,l),e.push({event:a,listeners:n}))}var Yi=null,Xi=null;function fE(e){tg(e,0)}function pl(e){var n=Br(e);if(nm(n))return e}function Sm(e,n){if(e==="change")return n}var Tm=!1;if(lr){var ku;if(lr){var qu="oninput"in document;if(!qu){var Am=document.createElement("div");Am.setAttribute("oninput","return;"),qu=typeof Am.oninput=="function"}ku=qu}else ku=!1;Tm=ku&&(!document.documentMode||9<document.documentMode)}function xm(){Yi&&(Yi.detachEvent("onpropertychange",Om),Xi=Yi=null)}function Om(e){if(e.propertyName==="value"&&pl(Xi)){var n=[];Em(n,Xi,e,Du(e)),um(fE,n)}}function dE(e,n,a){e==="focusin"?(xm(),Yi=n,Xi=a,Yi.attachEvent("onpropertychange",Om)):e==="focusout"&&xm()}function hE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return pl(Xi)}function mE(e,n){if(e==="click")return pl(n)}function pE(e,n){if(e==="input"||e==="change")return pl(n)}function gE(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var $t=typeof Object.is=="function"?Object.is:gE;function Zi(e,n){if($t(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var a=Object.keys(e),l=Object.keys(n);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var o=a[l];if(!Ze.call(n,o)||!$t(e[o],n[o]))return!1}return!0}function Rm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function wm(e,n){var a=Rm(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=n&&l>=n)return{node:a,offset:n-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Rm(a)}}function Cm(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Cm(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Nm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=ol(e.document);n instanceof e.HTMLIFrameElement;){try{var a=typeof n.contentWindow.location.href=="string"}catch{a=!1}if(a)e=n.contentWindow;else break;n=ol(e.document)}return n}function Fu(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var yE=lr&&"documentMode"in document&&11>=document.documentMode,$a=null,Vu=null,Qi=null,Pu=!1;function Mm(e,n,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Pu||$a==null||$a!==ol(l)||(l=$a,"selectionStart"in l&&Fu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Qi&&Zi(Qi,l)||(Qi=l,l=eo(Vu,"onSelect"),0<l.length&&(n=new hl("onSelect","select",null,n,a),e.push({event:n,listeners:l}),n.target=$a)))}function pa(e,n){var a={};return a[e.toLowerCase()]=n.toLowerCase(),a["Webkit"+e]="webkit"+n,a["Moz"+e]="moz"+n,a}var Wa={animationend:pa("Animation","AnimationEnd"),animationiteration:pa("Animation","AnimationIteration"),animationstart:pa("Animation","AnimationStart"),transitionrun:pa("Transition","TransitionRun"),transitionstart:pa("Transition","TransitionStart"),transitioncancel:pa("Transition","TransitionCancel"),transitionend:pa("Transition","TransitionEnd")},Yu={},Dm={};lr&&(Dm=document.createElement("div").style,"AnimationEvent"in window||(delete Wa.animationend.animation,delete Wa.animationiteration.animation,delete Wa.animationstart.animation),"TransitionEvent"in window||delete Wa.transitionend.transition);function ga(e){if(Yu[e])return Yu[e];if(!Wa[e])return e;var n=Wa[e],a;for(a in n)if(n.hasOwnProperty(a)&&a in Dm)return Yu[e]=n[a];return e}var Lm=ga("animationend"),Bm=ga("animationiteration"),Um=ga("animationstart"),vE=ga("transitionrun"),bE=ga("transitionstart"),_E=ga("transitioncancel"),Hm=ga("transitionend"),jm=new Map,Xu="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(" ");Xu.push("scrollEnd");function Cn(e,n){jm.set(e,n),X(n,[e])}var Im=new WeakMap;function mn(e,n){if(typeof e=="object"&&e!==null){var a=Im.get(e);return a!==void 0?a:(n={value:e,source:n,stack:em(n)},Im.set(e,n),n)}return{value:e,source:n,stack:em(n)}}var pn=[],Ja=0,Zu=0;function gl(){for(var e=Ja,n=Zu=Ja=0;n<e;){var a=pn[n];pn[n++]=null;var l=pn[n];pn[n++]=null;var o=pn[n];pn[n++]=null;var f=pn[n];if(pn[n++]=null,l!==null&&o!==null){var g=l.pending;g===null?o.next=o:(o.next=g.next,g.next=o),l.pending=o}f!==0&&zm(a,o,f)}}function yl(e,n,a,l){pn[Ja++]=e,pn[Ja++]=n,pn[Ja++]=a,pn[Ja++]=l,Zu|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Qu(e,n,a,l){return yl(e,n,a,l),vl(e)}function ei(e,n){return yl(e,null,null,n),vl(e)}function zm(e,n,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var o=!1,f=e.return;f!==null;)f.childLanes|=a,l=f.alternate,l!==null&&(l.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&&n!==null&&(o=31-Nt(a),e=f.hiddenUpdates,l=e[o],l===null?e[o]=[n]:l.push(n),n.lane=a|536870912),f):null}function vl(e){if(50<_s)throw _s=0,tf=null,Error(s(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var ti={};function EE(e,n,a,l){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=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wt(e,n,a,l){return new EE(e,n,a,l)}function Ku(e){return e=e.prototype,!(!e||!e.isReactComponent)}function or(e,n){var a=e.alternate;return a===null?(a=Wt(e.tag,n,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=n,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,n=e.dependencies,a.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Gm(e,n){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=n,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,n=a.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function bl(e,n,a,l,o,f){var g=0;if(l=e,typeof e=="function")Ku(e)&&(g=1);else if(typeof e=="string")g=T2(e,a,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ge:return e=Wt(31,a,n,o),e.elementType=ge,e.lanes=f,e;case R:return ya(a.children,o,f,n);case F:g=8,o|=24;break;case G:return e=Wt(12,a,n,o|2),e.elementType=G,e.lanes=f,e;case x:return e=Wt(13,a,n,o),e.elementType=x,e.lanes=f,e;case Z:return e=Wt(19,a,n,o),e.elementType=Z,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case _:case S:g=10;break e;case C:g=9;break e;case I:g=11;break e;case W:g=14;break e;case ae:g=16,l=null;break e}g=29,a=Error(s(130,e===null?"null":typeof e,"")),l=null}return n=Wt(g,a,n,o),n.elementType=e,n.type=l,n.lanes=f,n}function ya(e,n,a,l){return e=Wt(7,e,l,n),e.lanes=a,e}function $u(e,n,a){return e=Wt(6,e,null,n),e.lanes=a,e}function Wu(e,n,a){return n=Wt(4,e.children!==null?e.children:[],e.key,n),n.lanes=a,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var ni=[],ri=0,_l=null,El=0,gn=[],yn=0,va=null,ur=1,cr="";function ba(e,n){ni[ri++]=El,ni[ri++]=_l,_l=e,El=n}function km(e,n,a){gn[yn++]=ur,gn[yn++]=cr,gn[yn++]=va,va=e;var l=ur;e=cr;var o=32-Nt(l)-1;l&=~(1<<o),a+=1;var f=32-Nt(n)+o;if(30<f){var g=o-o%5;f=(l&(1<<g)-1).toString(32),l>>=g,o-=g,ur=1<<32-Nt(n)+o|a<<o|l,cr=f+e}else ur=1<<f|a<<o|l,cr=e}function Ju(e){e.return!==null&&(ba(e,1),km(e,1,0))}function ec(e){for(;e===_l;)_l=ni[--ri],ni[ri]=null,El=ni[--ri],ni[ri]=null;for(;e===va;)va=gn[--yn],gn[yn]=null,cr=gn[--yn],gn[yn]=null,ur=gn[--yn],gn[yn]=null}var Ut=null,Je=null,Le=!1,_a=null,Fn=!1,tc=Error(s(519));function Ea(e){var n=Error(s(418,""));throw Wi(mn(n,e)),tc}function qm(e){var n=e.stateNode,a=e.type,l=e.memoizedProps;switch(n[dt]=e,n[Mt]=l,a){case"dialog":Oe("cancel",n),Oe("close",n);break;case"iframe":case"object":case"embed":Oe("load",n);break;case"video":case"audio":for(a=0;a<Ss.length;a++)Oe(Ss[a],n);break;case"source":Oe("error",n);break;case"img":case"image":case"link":Oe("error",n),Oe("load",n);break;case"details":Oe("toggle",n);break;case"input":Oe("invalid",n),rm(n,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),ll(n);break;case"select":Oe("invalid",n);break;case"textarea":Oe("invalid",n),im(n,l.value,l.defaultValue,l.children),ll(n)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||n.textContent===""+a||l.suppressHydrationWarning===!0||ig(n.textContent,a)?(l.popover!=null&&(Oe("beforetoggle",n),Oe("toggle",n)),l.onScroll!=null&&Oe("scroll",n),l.onScrollEnd!=null&&Oe("scrollend",n),l.onClick!=null&&(n.onclick=to),n=!0):n=!1,n||Ea(e)}function Fm(e){for(Ut=e.return;Ut;)switch(Ut.tag){case 5:case 13:Fn=!1;return;case 27:case 3:Fn=!0;return;default:Ut=Ut.return}}function Ki(e){if(e!==Ut)return!1;if(!Le)return Fm(e),Le=!0,!1;var n=e.tag,a;if((a=n!==3&&n!==27)&&((a=n===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||vf(e.type,e.memoizedProps)),a=!a),a&&Je&&Ea(e),Fm(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8)if(a=e.data,a==="/$"){if(n===0){Je=Mn(e.nextSibling);break e}n--}else a!=="$"&&a!=="$!"&&a!=="$?"||n++;e=e.nextSibling}Je=null}}else n===27?(n=Je,$r(e.type)?(e=Sf,Sf=null,Je=e):Je=n):Je=Ut?Mn(e.stateNode.nextSibling):null;return!0}function $i(){Je=Ut=null,Le=!1}function Vm(){var e=_a;return e!==null&&(Zt===null?Zt=e:Zt.push.apply(Zt,e),_a=null),e}function Wi(e){_a===null?_a=[e]:_a.push(e)}var nc=k(null),Sa=null,fr=null;function Hr(e,n,a){Y(nc,n._currentValue),n._currentValue=a}function dr(e){e._currentValue=nc.current,$(nc)}function rc(e,n,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,l!==null&&(l.childLanes|=n)):l!==null&&(l.childLanes&n)!==n&&(l.childLanes|=n),e===a)break;e=e.return}}function ac(e,n,a,l){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var f=o.dependencies;if(f!==null){var g=o.child;f=f.firstContext;e:for(;f!==null;){var b=f;f=o;for(var T=0;T<n.length;T++)if(b.context===n[T]){f.lanes|=a,b=f.alternate,b!==null&&(b.lanes|=a),rc(f.return,a,e),l||(g=null);break e}f=b.next}}else if(o.tag===18){if(g=o.return,g===null)throw Error(s(341));g.lanes|=a,f=g.alternate,f!==null&&(f.lanes|=a),rc(g,a,e),g=null}else g=o.child;if(g!==null)g.return=o;else for(g=o;g!==null;){if(g===e){g=null;break}if(o=g.sibling,o!==null){o.return=g.return,g=o;break}g=g.return}o=g}}function Ji(e,n,a,l){e=null;for(var o=n,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 g=o.alternate;if(g===null)throw Error(s(387));if(g=g.memoizedProps,g!==null){var b=o.type;$t(o.pendingProps.value,g.value)||(e!==null?e.push(b):e=[b])}}else if(o===$e.current){if(g=o.alternate,g===null)throw Error(s(387));g.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(ws):e=[ws])}o=o.return}e!==null&&ac(n,e,a,l),n.flags|=262144}function Sl(e){for(e=e.firstContext;e!==null;){if(!$t(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ta(e){Sa=e,fr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Lt(e){return Pm(Sa,e)}function Tl(e,n){return Sa===null&&Ta(e),Pm(e,n)}function Pm(e,n){var a=n._currentValue;if(n={context:n,memoizedValue:a,next:null},fr===null){if(e===null)throw Error(s(308));fr=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else fr=fr.next=n;return a}var SE=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){n.aborted=!0,e.forEach(function(a){return a()})}},TE=t.unstable_scheduleCallback,AE=t.unstable_NormalPriority,mt={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ic(){return{controller:new SE,data:new Map,refCount:0}}function es(e){e.refCount--,e.refCount===0&&TE(AE,function(){e.controller.abort()})}var ts=null,sc=0,ai=0,ii=null;function xE(e,n){if(ts===null){var a=ts=[];sc=0,ai=uf(),ii={status:"pending",value:void 0,then:function(l){a.push(l)}}}return sc++,n.then(Ym,Ym),n}function Ym(){if(--sc===0&&ts!==null){ii!==null&&(ii.status="fulfilled");var e=ts;ts=null,ai=0,ii=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function OE(e,n){var a=[],l={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return e.then(function(){l.status="fulfilled",l.value=n;for(var o=0;o<a.length;o++)(0,a[o])(n)},function(o){for(l.status="rejected",l.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),l}var Xm=z.S;z.S=function(e,n){typeof n=="object"&&n!==null&&typeof n.then=="function"&&xE(e,n),Xm!==null&&Xm(e,n)};var Aa=k(null);function lc(){var e=Aa.current;return e!==null?e:Ve.pooledCache}function Al(e,n){n===null?Y(Aa,Aa.current):Y(Aa,n.pool)}function Zm(){var e=lc();return e===null?null:{parent:mt._currentValue,pool:e}}var ns=Error(s(460)),Qm=Error(s(474)),xl=Error(s(542)),oc={then:function(){}};function Km(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ol(){}function $m(e,n,a){switch(a=e[a],a===void 0?e.push(n):a!==n&&(n.then(Ol,Ol),n=a),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Jm(e),e;default:if(typeof n.status=="string")n.then(Ol,Ol);else{if(e=Ve,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=n,e.status="pending",e.then(function(l){if(n.status==="pending"){var o=n;o.status="fulfilled",o.value=l}},function(l){if(n.status==="pending"){var o=n;o.status="rejected",o.reason=l}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Jm(e),e}throw rs=n,ns}}var rs=null;function Wm(){if(rs===null)throw Error(s(459));var e=rs;return rs=null,e}function Jm(e){if(e===ns||e===xl)throw Error(s(483))}var jr=!1;function uc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function cc(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ir(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function zr(e,n,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(He&2)!==0){var o=l.pending;return o===null?n.next=n:(n.next=o.next,o.next=n),l.pending=n,n=vl(e),zm(e,null,a),n}return yl(e,l,n,a),vl(e)}function as(e,n,a){if(n=n.updateQueue,n!==null&&(n=n.shared,(a&4194048)!==0)){var l=n.lanes;l&=e.pendingLanes,a|=l,n.lanes=a,nt(e,a)}}function fc(e,n){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var o=null,f=null;if(a=a.firstBaseUpdate,a!==null){do{var g={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};f===null?o=f=g:f=f.next=g,a=a.next}while(a!==null);f===null?o=f=n:f=f.next=n}else o=f=n;a={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:f,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=n:e.next=n,a.lastBaseUpdate=n}var dc=!1;function is(){if(dc){var e=ii;if(e!==null)throw e}}function ss(e,n,a,l){dc=!1;var o=e.updateQueue;jr=!1;var f=o.firstBaseUpdate,g=o.lastBaseUpdate,b=o.shared.pending;if(b!==null){o.shared.pending=null;var T=b,L=T.next;T.next=null,g===null?f=L:g.next=L,g=T;var q=e.alternate;q!==null&&(q=q.updateQueue,b=q.lastBaseUpdate,b!==g&&(b===null?q.firstBaseUpdate=L:b.next=L,q.lastBaseUpdate=T))}if(f!==null){var P=o.baseState;g=0,q=L=T=null,b=f;do{var B=b.lane&-536870913,j=B!==b.lane;if(j?(Ne&B)===B:(l&B)===B){B!==0&&B===ai&&(dc=!0),q!==null&&(q=q.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var he=e,fe=b;B=n;var ke=a;switch(fe.tag){case 1:if(he=fe.payload,typeof he=="function"){P=he.call(ke,P,B);break e}P=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=fe.payload,B=typeof he=="function"?he.call(ke,P,B):he,B==null)break e;P=y({},P,B);break e;case 2:jr=!0}}B=b.callback,B!==null&&(e.flags|=64,j&&(e.flags|=8192),j=o.callbacks,j===null?o.callbacks=[B]:j.push(B))}else j={lane:B,tag:b.tag,payload:b.payload,callback:b.callback,next:null},q===null?(L=q=j,T=P):q=q.next=j,g|=B;if(b=b.next,b===null){if(b=o.shared.pending,b===null)break;j=b,b=j.next,j.next=null,o.lastBaseUpdate=j,o.shared.pending=null}}while(!0);q===null&&(T=P),o.baseState=T,o.firstBaseUpdate=L,o.lastBaseUpdate=q,f===null&&(o.shared.lanes=0),Xr|=g,e.lanes=g,e.memoizedState=P}}function e0(e,n){if(typeof e!="function")throw Error(s(191,e));e.call(n)}function t0(e,n){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)e0(a[e],n)}var si=k(null),Rl=k(0);function n0(e,n){e=br,Y(Rl,e),Y(si,n),br=e|n.baseLanes}function hc(){Y(Rl,br),Y(si,si.current)}function mc(){br=Rl.current,$(si),$(Rl)}var Gr=0,_e=null,ze=null,ot=null,wl=!1,li=!1,xa=!1,Cl=0,ls=0,oi=null,RE=0;function rt(){throw Error(s(321))}function pc(e,n){if(n===null)return!1;for(var a=0;a<n.length&&a<e.length;a++)if(!$t(e[a],n[a]))return!1;return!0}function gc(e,n,a,l,o,f){return Gr=f,_e=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,z.H=e===null||e.memoizedState===null?z0:G0,xa=!1,f=a(l,o),xa=!1,li&&(f=a0(n,a,l,o)),r0(e),f}function r0(e){z.H=Ul;var n=ze!==null&&ze.next!==null;if(Gr=0,ot=ze=_e=null,wl=!1,ls=0,oi=null,n)throw Error(s(300));e===null||gt||(e=e.dependencies,e!==null&&Sl(e)&&(gt=!0))}function a0(e,n,a,l){_e=e;var o=0;do{if(li&&(oi=null),ls=0,li=!1,25<=o)throw Error(s(301));if(o+=1,ot=ze=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}z.H=BE,f=n(a,l)}while(li);return f}function wE(){var e=z.H,n=e.useState()[0];return n=typeof n.then=="function"?os(n):n,e=e.useState()[0],(ze!==null?ze.memoizedState:null)!==e&&(_e.flags|=1024),n}function yc(){var e=Cl!==0;return Cl=0,e}function vc(e,n,a){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~a}function bc(e){if(wl){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}wl=!1}Gr=0,ot=ze=_e=null,li=!1,ls=Cl=0,oi=null}function Yt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ot===null?_e.memoizedState=ot=e:ot=ot.next=e,ot}function ut(){if(ze===null){var e=_e.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var n=ot===null?_e.memoizedState:ot.next;if(n!==null)ot=n,ze=e;else{if(e===null)throw _e.alternate===null?Error(s(467)):Error(s(310));ze=e,e={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},ot===null?_e.memoizedState=ot=e:ot=ot.next=e}return ot}function _c(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function os(e){var n=ls;return ls+=1,oi===null&&(oi=[]),e=$m(oi,e,n),n=_e,(ot===null?n.memoizedState:ot.next)===null&&(n=n.alternate,z.H=n===null||n.memoizedState===null?z0:G0),e}function Nl(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return os(e);if(e.$$typeof===S)return Lt(e)}throw Error(s(438,String(e)))}function Ec(e){var n=null,a=_e.updateQueue;if(a!==null&&(n=a.memoCache),n==null){var l=_e.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(n={data:l.data.map(function(o){return o.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),a===null&&(a=_c(),_e.updateQueue=a),a.memoCache=n,a=n.data[n.index],a===void 0)for(a=n.data[n.index]=Array(e),l=0;l<e;l++)a[l]=Ee;return n.index++,a}function hr(e,n){return typeof n=="function"?n(e):n}function Ml(e){var n=ut();return Sc(n,ze,e)}function Sc(e,n,a){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=a;var o=e.baseQueue,f=l.pending;if(f!==null){if(o!==null){var g=o.next;o.next=f.next,f.next=g}n.baseQueue=o=f,l.pending=null}if(f=e.baseState,o===null)e.memoizedState=f;else{n=o.next;var b=g=null,T=null,L=n,q=!1;do{var P=L.lane&-536870913;if(P!==L.lane?(Ne&P)===P:(Gr&P)===P){var B=L.revertLane;if(B===0)T!==null&&(T=T.next={lane:0,revertLane:0,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),P===ai&&(q=!0);else if((Gr&B)===B){L=L.next,B===ai&&(q=!0);continue}else P={lane:0,revertLane:L.revertLane,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},T===null?(b=T=P,g=f):T=T.next=P,_e.lanes|=B,Xr|=B;P=L.action,xa&&a(f,P),f=L.hasEagerState?L.eagerState:a(f,P)}else B={lane:P,revertLane:L.revertLane,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},T===null?(b=T=B,g=f):T=T.next=B,_e.lanes|=P,Xr|=P;L=L.next}while(L!==null&&L!==n);if(T===null?g=f:T.next=b,!$t(f,e.memoizedState)&&(gt=!0,q&&(a=ii,a!==null)))throw a;e.memoizedState=f,e.baseState=g,e.baseQueue=T,l.lastRenderedState=f}return o===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Tc(e){var n=ut(),a=n.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var l=a.dispatch,o=a.pending,f=n.memoizedState;if(o!==null){a.pending=null;var g=o=o.next;do f=e(f,g.action),g=g.next;while(g!==o);$t(f,n.memoizedState)||(gt=!0),n.memoizedState=f,n.baseQueue===null&&(n.baseState=f),a.lastRenderedState=f}return[f,l]}function i0(e,n,a){var l=_e,o=ut(),f=Le;if(f){if(a===void 0)throw Error(s(407));a=a()}else a=n();var g=!$t((ze||o).memoizedState,a);g&&(o.memoizedState=a,gt=!0),o=o.queue;var b=o0.bind(null,l,o,e);if(us(2048,8,b,[e]),o.getSnapshot!==n||g||ot!==null&&ot.memoizedState.tag&1){if(l.flags|=2048,ui(9,Dl(),l0.bind(null,l,o,a,n),null),Ve===null)throw Error(s(349));f||(Gr&124)!==0||s0(l,n,a)}return a}function s0(e,n,a){e.flags|=16384,e={getSnapshot:n,value:a},n=_e.updateQueue,n===null?(n=_c(),_e.updateQueue=n,n.stores=[e]):(a=n.stores,a===null?n.stores=[e]:a.push(e))}function l0(e,n,a,l){n.value=a,n.getSnapshot=l,u0(n)&&c0(e)}function o0(e,n,a){return a(function(){u0(n)&&c0(e)})}function u0(e){var n=e.getSnapshot;e=e.value;try{var a=n();return!$t(e,a)}catch{return!0}}function c0(e){var n=ei(e,2);n!==null&&rn(n,e,2)}function Ac(e){var n=Yt();if(typeof e=="function"){var a=e;if(e=a(),xa){On(!0);try{a()}finally{On(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hr,lastRenderedState:e},n}function f0(e,n,a,l){return e.baseState=a,Sc(e,ze,typeof l=="function"?l:hr)}function CE(e,n,a,l,o){if(Bl(e))throw Error(s(485));if(e=n.action,e!==null){var f={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){f.listeners.push(g)}};z.T!==null?a(!0):f.isTransition=!1,l(f),a=n.pending,a===null?(f.next=n.pending=f,d0(n,f)):(f.next=a.next,n.pending=a.next=f)}}function d0(e,n){var a=n.action,l=n.payload,o=e.state;if(n.isTransition){var f=z.T,g={};z.T=g;try{var b=a(o,l),T=z.S;T!==null&&T(g,b),h0(e,n,b)}catch(L){xc(e,n,L)}finally{z.T=f}}else try{f=a(o,l),h0(e,n,f)}catch(L){xc(e,n,L)}}function h0(e,n,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){m0(e,n,l)},function(l){return xc(e,n,l)}):m0(e,n,a)}function m0(e,n,a){n.status="fulfilled",n.value=a,p0(n),e.state=a,n=e.pending,n!==null&&(a=n.next,a===n?e.pending=null:(a=a.next,n.next=a,d0(e,a)))}function xc(e,n,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do n.status="rejected",n.reason=a,p0(n),n=n.next;while(n!==l)}e.action=null}function p0(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function g0(e,n){return n}function y0(e,n){if(Le){var a=Ve.formState;if(a!==null){e:{var l=_e;if(Le){if(Je){t:{for(var o=Je,f=Fn;o.nodeType!==8;){if(!f){o=null;break t}if(o=Mn(o.nextSibling),o===null){o=null;break t}}f=o.data,o=f==="F!"||f==="F"?o:null}if(o){Je=Mn(o.nextSibling),l=o.data==="F!";break e}}Ea(l)}l=!1}l&&(n=a[0])}}return a=Yt(),a.memoizedState=a.baseState=n,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:g0,lastRenderedState:n},a.queue=l,a=H0.bind(null,_e,l),l.dispatch=a,l=Ac(!1),f=Nc.bind(null,_e,!1,l.queue),l=Yt(),o={state:n,dispatch:null,action:e,pending:null},l.queue=o,a=CE.bind(null,_e,o,f,a),o.dispatch=a,l.memoizedState=e,[n,a,!1]}function v0(e){var n=ut();return b0(n,ze,e)}function b0(e,n,a){if(n=Sc(e,n,g0)[0],e=Ml(hr)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var l=os(n)}catch(g){throw g===ns?xl:g}else l=n;n=ut();var o=n.queue,f=o.dispatch;return a!==n.memoizedState&&(_e.flags|=2048,ui(9,Dl(),NE.bind(null,o,a),null)),[l,f,e]}function NE(e,n){e.action=n}function _0(e){var n=ut(),a=ze;if(a!==null)return b0(n,a,e);ut(),n=n.memoizedState,a=ut();var l=a.queue.dispatch;return a.memoizedState=e,[n,l,!1]}function ui(e,n,a,l){return e={tag:e,create:a,deps:l,inst:n,next:null},n=_e.updateQueue,n===null&&(n=_c(),_e.updateQueue=n),a=n.lastEffect,a===null?n.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,n.lastEffect=e),e}function Dl(){return{destroy:void 0,resource:void 0}}function E0(){return ut().memoizedState}function Ll(e,n,a,l){var o=Yt();l=l===void 0?null:l,_e.flags|=e,o.memoizedState=ui(1|n,Dl(),a,l)}function us(e,n,a,l){var o=ut();l=l===void 0?null:l;var f=o.memoizedState.inst;ze!==null&&l!==null&&pc(l,ze.memoizedState.deps)?o.memoizedState=ui(n,f,a,l):(_e.flags|=e,o.memoizedState=ui(1|n,f,a,l))}function S0(e,n){Ll(8390656,8,e,n)}function T0(e,n){us(2048,8,e,n)}function A0(e,n){return us(4,2,e,n)}function x0(e,n){return us(4,4,e,n)}function O0(e,n){if(typeof n=="function"){e=e();var a=n(e);return function(){typeof a=="function"?a():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function R0(e,n,a){a=a!=null?a.concat([e]):null,us(4,4,O0.bind(null,n,e),a)}function Oc(){}function w0(e,n){var a=ut();n=n===void 0?null:n;var l=a.memoizedState;return n!==null&&pc(n,l[1])?l[0]:(a.memoizedState=[e,n],e)}function C0(e,n){var a=ut();n=n===void 0?null:n;var l=a.memoizedState;if(n!==null&&pc(n,l[1]))return l[0];if(l=e(),xa){On(!0);try{e()}finally{On(!1)}}return a.memoizedState=[l,n],l}function Rc(e,n,a){return a===void 0||(Gr&1073741824)!==0?e.memoizedState=n:(e.memoizedState=a,e=Dp(),_e.lanes|=e,Xr|=e,a)}function N0(e,n,a,l){return $t(a,n)?a:si.current!==null?(e=Rc(e,a,l),$t(e,n)||(gt=!0),e):(Gr&42)===0?(gt=!0,e.memoizedState=a):(e=Dp(),_e.lanes|=e,Xr|=e,n)}function M0(e,n,a,l,o){var f=K.p;K.p=f!==0&&8>f?f:8;var g=z.T,b={};z.T=b,Nc(e,!1,n,a);try{var T=o(),L=z.S;if(L!==null&&L(b,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var q=OE(T,l);cs(e,n,q,nn(e))}else cs(e,n,l,nn(e))}catch(P){cs(e,n,{then:function(){},status:"rejected",reason:P},nn())}finally{K.p=f,z.T=g}}function ME(){}function wc(e,n,a,l){if(e.tag!==5)throw Error(s(476));var o=D0(e).queue;M0(e,o,n,ee,a===null?ME:function(){return L0(e),a(l)})}function D0(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hr,lastRenderedState:ee},next:null};var a={};return n.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hr,lastRenderedState:a},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function L0(e){var n=D0(e).next.queue;cs(e,n,{},nn())}function Cc(){return Lt(ws)}function B0(){return ut().memoizedState}function U0(){return ut().memoizedState}function DE(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var a=nn();e=Ir(a);var l=zr(n,e,a);l!==null&&(rn(l,n,a),as(l,n,a)),n={cache:ic()},e.payload=n;return}n=n.return}}function LE(e,n,a){var l=nn();a={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Bl(e)?j0(n,a):(a=Qu(e,n,a,l),a!==null&&(rn(a,e,l),I0(a,n,l)))}function H0(e,n,a){var l=nn();cs(e,n,a,l)}function cs(e,n,a,l){var o={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Bl(e))j0(n,o);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=n.lastRenderedReducer,f!==null))try{var g=n.lastRenderedState,b=f(g,a);if(o.hasEagerState=!0,o.eagerState=b,$t(b,g))return yl(e,n,o,0),Ve===null&&gl(),!1}catch{}finally{}if(a=Qu(e,n,o,l),a!==null)return rn(a,e,l),I0(a,n,l),!0}return!1}function Nc(e,n,a,l){if(l={lane:2,revertLane:uf(),action:l,hasEagerState:!1,eagerState:null,next:null},Bl(e)){if(n)throw Error(s(479))}else n=Qu(e,a,l,2),n!==null&&rn(n,e,2)}function Bl(e){var n=e.alternate;return e===_e||n!==null&&n===_e}function j0(e,n){li=wl=!0;var a=e.pending;a===null?n.next=n:(n.next=a.next,a.next=n),e.pending=n}function I0(e,n,a){if((a&4194048)!==0){var l=n.lanes;l&=e.pendingLanes,a|=l,n.lanes=a,nt(e,a)}}var Ul={readContext:Lt,use:Nl,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useLayoutEffect:rt,useInsertionEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useSyncExternalStore:rt,useId:rt,useHostTransitionStatus:rt,useFormState:rt,useActionState:rt,useOptimistic:rt,useMemoCache:rt,useCacheRefresh:rt},z0={readContext:Lt,use:Nl,useCallback:function(e,n){return Yt().memoizedState=[e,n===void 0?null:n],e},useContext:Lt,useEffect:S0,useImperativeHandle:function(e,n,a){a=a!=null?a.concat([e]):null,Ll(4194308,4,O0.bind(null,n,e),a)},useLayoutEffect:function(e,n){return Ll(4194308,4,e,n)},useInsertionEffect:function(e,n){Ll(4,2,e,n)},useMemo:function(e,n){var a=Yt();n=n===void 0?null:n;var l=e();if(xa){On(!0);try{e()}finally{On(!1)}}return a.memoizedState=[l,n],l},useReducer:function(e,n,a){var l=Yt();if(a!==void 0){var o=a(n);if(xa){On(!0);try{a(n)}finally{On(!1)}}}else o=n;return l.memoizedState=l.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},l.queue=e,e=e.dispatch=LE.bind(null,_e,e),[l.memoizedState,e]},useRef:function(e){var n=Yt();return e={current:e},n.memoizedState=e},useState:function(e){e=Ac(e);var n=e.queue,a=H0.bind(null,_e,n);return n.dispatch=a,[e.memoizedState,a]},useDebugValue:Oc,useDeferredValue:function(e,n){var a=Yt();return Rc(a,e,n)},useTransition:function(){var e=Ac(!1);return e=M0.bind(null,_e,e.queue,!0,!1),Yt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,a){var l=_e,o=Yt();if(Le){if(a===void 0)throw Error(s(407));a=a()}else{if(a=n(),Ve===null)throw Error(s(349));(Ne&124)!==0||s0(l,n,a)}o.memoizedState=a;var f={value:a,getSnapshot:n};return o.queue=f,S0(o0.bind(null,l,f,e),[e]),l.flags|=2048,ui(9,Dl(),l0.bind(null,l,f,a,n),null),a},useId:function(){var e=Yt(),n=Ve.identifierPrefix;if(Le){var a=cr,l=ur;a=(l&~(1<<32-Nt(l)-1)).toString(32)+a,n="«"+n+"R"+a,a=Cl++,0<a&&(n+="H"+a.toString(32)),n+="»"}else a=RE++,n="«"+n+"r"+a.toString(32)+"»";return e.memoizedState=n},useHostTransitionStatus:Cc,useFormState:y0,useActionState:y0,useOptimistic:function(e){var n=Yt();n.memoizedState=n.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=a,n=Nc.bind(null,_e,!0,a),a.dispatch=n,[e,n]},useMemoCache:Ec,useCacheRefresh:function(){return Yt().memoizedState=DE.bind(null,_e)}},G0={readContext:Lt,use:Nl,useCallback:w0,useContext:Lt,useEffect:T0,useImperativeHandle:R0,useInsertionEffect:A0,useLayoutEffect:x0,useMemo:C0,useReducer:Ml,useRef:E0,useState:function(){return Ml(hr)},useDebugValue:Oc,useDeferredValue:function(e,n){var a=ut();return N0(a,ze.memoizedState,e,n)},useTransition:function(){var e=Ml(hr)[0],n=ut().memoizedState;return[typeof e=="boolean"?e:os(e),n]},useSyncExternalStore:i0,useId:B0,useHostTransitionStatus:Cc,useFormState:v0,useActionState:v0,useOptimistic:function(e,n){var a=ut();return f0(a,ze,e,n)},useMemoCache:Ec,useCacheRefresh:U0},BE={readContext:Lt,use:Nl,useCallback:w0,useContext:Lt,useEffect:T0,useImperativeHandle:R0,useInsertionEffect:A0,useLayoutEffect:x0,useMemo:C0,useReducer:Tc,useRef:E0,useState:function(){return Tc(hr)},useDebugValue:Oc,useDeferredValue:function(e,n){var a=ut();return ze===null?Rc(a,e,n):N0(a,ze.memoizedState,e,n)},useTransition:function(){var e=Tc(hr)[0],n=ut().memoizedState;return[typeof e=="boolean"?e:os(e),n]},useSyncExternalStore:i0,useId:B0,useHostTransitionStatus:Cc,useFormState:_0,useActionState:_0,useOptimistic:function(e,n){var a=ut();return ze!==null?f0(a,ze,e,n):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Ec,useCacheRefresh:U0},ci=null,fs=0;function Hl(e){var n=fs;return fs+=1,ci===null&&(ci=[]),$m(ci,e,n)}function ds(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function jl(e,n){throw n.$$typeof===E?Error(s(525)):(e=Object.prototype.toString.call(n),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function k0(e){var n=e._init;return n(e._payload)}function q0(e){function n(M,w){if(e){var D=M.deletions;D===null?(M.deletions=[w],M.flags|=16):D.push(w)}}function a(M,w){if(!e)return null;for(;w!==null;)n(M,w),w=w.sibling;return null}function l(M){for(var w=new Map;M!==null;)M.key!==null?w.set(M.key,M):w.set(M.index,M),M=M.sibling;return w}function o(M,w){return M=or(M,w),M.index=0,M.sibling=null,M}function f(M,w,D){return M.index=D,e?(D=M.alternate,D!==null?(D=D.index,D<w?(M.flags|=67108866,w):D):(M.flags|=67108866,w)):(M.flags|=1048576,w)}function g(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function b(M,w,D,V){return w===null||w.tag!==6?(w=$u(D,M.mode,V),w.return=M,w):(w=o(w,D),w.return=M,w)}function T(M,w,D,V){var ne=D.type;return ne===R?q(M,w,D.props.children,V,D.key):w!==null&&(w.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===ae&&k0(ne)===w.type)?(w=o(w,D.props),ds(w,D),w.return=M,w):(w=bl(D.type,D.key,D.props,null,M.mode,V),ds(w,D),w.return=M,w)}function L(M,w,D,V){return w===null||w.tag!==4||w.stateNode.containerInfo!==D.containerInfo||w.stateNode.implementation!==D.implementation?(w=Wu(D,M.mode,V),w.return=M,w):(w=o(w,D.children||[]),w.return=M,w)}function q(M,w,D,V,ne){return w===null||w.tag!==7?(w=ya(D,M.mode,V,ne),w.return=M,w):(w=o(w,D),w.return=M,w)}function P(M,w,D){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=$u(""+w,M.mode,D),w.return=M,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case A:return D=bl(w.type,w.key,w.props,null,M.mode,D),ds(D,w),D.return=M,D;case U:return w=Wu(w,M.mode,D),w.return=M,w;case ae:var V=w._init;return w=V(w._payload),P(M,w,D)}if(be(w)||me(w))return w=ya(w,M.mode,D,null),w.return=M,w;if(typeof w.then=="function")return P(M,Hl(w),D);if(w.$$typeof===S)return P(M,Tl(M,w),D);jl(M,w)}return null}function B(M,w,D,V){var ne=w!==null?w.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return ne!==null?null:b(M,w,""+D,V);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case A:return D.key===ne?T(M,w,D,V):null;case U:return D.key===ne?L(M,w,D,V):null;case ae:return ne=D._init,D=ne(D._payload),B(M,w,D,V)}if(be(D)||me(D))return ne!==null?null:q(M,w,D,V,null);if(typeof D.then=="function")return B(M,w,Hl(D),V);if(D.$$typeof===S)return B(M,w,Tl(M,D),V);jl(M,D)}return null}function j(M,w,D,V,ne){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return M=M.get(D)||null,b(w,M,""+V,ne);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case A:return M=M.get(V.key===null?D:V.key)||null,T(w,M,V,ne);case U:return M=M.get(V.key===null?D:V.key)||null,L(w,M,V,ne);case ae:var Se=V._init;return V=Se(V._payload),j(M,w,D,V,ne)}if(be(V)||me(V))return M=M.get(D)||null,q(w,M,V,ne,null);if(typeof V.then=="function")return j(M,w,D,Hl(V),ne);if(V.$$typeof===S)return j(M,w,D,Tl(w,V),ne);jl(w,V)}return null}function he(M,w,D,V){for(var ne=null,Se=null,oe=w,de=w=0,vt=null;oe!==null&&de<D.length;de++){oe.index>de?(vt=oe,oe=null):vt=oe.sibling;var De=B(M,oe,D[de],V);if(De===null){oe===null&&(oe=vt);break}e&&oe&&De.alternate===null&&n(M,oe),w=f(De,w,de),Se===null?ne=De:Se.sibling=De,Se=De,oe=vt}if(de===D.length)return a(M,oe),Le&&ba(M,de),ne;if(oe===null){for(;de<D.length;de++)oe=P(M,D[de],V),oe!==null&&(w=f(oe,w,de),Se===null?ne=oe:Se.sibling=oe,Se=oe);return Le&&ba(M,de),ne}for(oe=l(oe);de<D.length;de++)vt=j(oe,M,de,D[de],V),vt!==null&&(e&&vt.alternate!==null&&oe.delete(vt.key===null?de:vt.key),w=f(vt,w,de),Se===null?ne=vt:Se.sibling=vt,Se=vt);return e&&oe.forEach(function(na){return n(M,na)}),Le&&ba(M,de),ne}function fe(M,w,D,V){if(D==null)throw Error(s(151));for(var ne=null,Se=null,oe=w,de=w=0,vt=null,De=D.next();oe!==null&&!De.done;de++,De=D.next()){oe.index>de?(vt=oe,oe=null):vt=oe.sibling;var na=B(M,oe,De.value,V);if(na===null){oe===null&&(oe=vt);break}e&&oe&&na.alternate===null&&n(M,oe),w=f(na,w,de),Se===null?ne=na:Se.sibling=na,Se=na,oe=vt}if(De.done)return a(M,oe),Le&&ba(M,de),ne;if(oe===null){for(;!De.done;de++,De=D.next())De=P(M,De.value,V),De!==null&&(w=f(De,w,de),Se===null?ne=De:Se.sibling=De,Se=De);return Le&&ba(M,de),ne}for(oe=l(oe);!De.done;de++,De=D.next())De=j(oe,M,de,De.value,V),De!==null&&(e&&De.alternate!==null&&oe.delete(De.key===null?de:De.key),w=f(De,w,de),Se===null?ne=De:Se.sibling=De,Se=De);return e&&oe.forEach(function(U2){return n(M,U2)}),Le&&ba(M,de),ne}function ke(M,w,D,V){if(typeof D=="object"&&D!==null&&D.type===R&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case A:e:{for(var ne=D.key;w!==null;){if(w.key===ne){if(ne=D.type,ne===R){if(w.tag===7){a(M,w.sibling),V=o(w,D.props.children),V.return=M,M=V;break e}}else if(w.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===ae&&k0(ne)===w.type){a(M,w.sibling),V=o(w,D.props),ds(V,D),V.return=M,M=V;break e}a(M,w);break}else n(M,w);w=w.sibling}D.type===R?(V=ya(D.props.children,M.mode,V,D.key),V.return=M,M=V):(V=bl(D.type,D.key,D.props,null,M.mode,V),ds(V,D),V.return=M,M=V)}return g(M);case U:e:{for(ne=D.key;w!==null;){if(w.key===ne)if(w.tag===4&&w.stateNode.containerInfo===D.containerInfo&&w.stateNode.implementation===D.implementation){a(M,w.sibling),V=o(w,D.children||[]),V.return=M,M=V;break e}else{a(M,w);break}else n(M,w);w=w.sibling}V=Wu(D,M.mode,V),V.return=M,M=V}return g(M);case ae:return ne=D._init,D=ne(D._payload),ke(M,w,D,V)}if(be(D))return he(M,w,D,V);if(me(D)){if(ne=me(D),typeof ne!="function")throw Error(s(150));return D=ne.call(D),fe(M,w,D,V)}if(typeof D.then=="function")return ke(M,w,Hl(D),V);if(D.$$typeof===S)return ke(M,w,Tl(M,D),V);jl(M,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,w!==null&&w.tag===6?(a(M,w.sibling),V=o(w,D),V.return=M,M=V):(a(M,w),V=$u(D,M.mode,V),V.return=M,M=V),g(M)):a(M,w)}return function(M,w,D,V){try{fs=0;var ne=ke(M,w,D,V);return ci=null,ne}catch(oe){if(oe===ns||oe===xl)throw oe;var Se=Wt(29,oe,null,M.mode);return Se.lanes=V,Se.return=M,Se}finally{}}}var fi=q0(!0),F0=q0(!1),vn=k(null),Vn=null;function kr(e){var n=e.alternate;Y(pt,pt.current&1),Y(vn,e),Vn===null&&(n===null||si.current!==null||n.memoizedState!==null)&&(Vn=e)}function V0(e){if(e.tag===22){if(Y(pt,pt.current),Y(vn,e),Vn===null){var n=e.alternate;n!==null&&n.memoizedState!==null&&(Vn=e)}}else qr()}function qr(){Y(pt,pt.current),Y(vn,vn.current)}function mr(e){$(vn),Vn===e&&(Vn=null),$(pt)}var pt=k(0);function Il(e){for(var n=e;n!==null;){if(n.tag===13){var a=n.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||Ef(a)))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function Mc(e,n,a,l){n=e.memoizedState,a=a(l,n),a=a==null?n:y({},n,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Dc={enqueueSetState:function(e,n,a){e=e._reactInternals;var l=nn(),o=Ir(l);o.payload=n,a!=null&&(o.callback=a),n=zr(e,o,l),n!==null&&(rn(n,e,l),as(n,e,l))},enqueueReplaceState:function(e,n,a){e=e._reactInternals;var l=nn(),o=Ir(l);o.tag=1,o.payload=n,a!=null&&(o.callback=a),n=zr(e,o,l),n!==null&&(rn(n,e,l),as(n,e,l))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var a=nn(),l=Ir(a);l.tag=2,n!=null&&(l.callback=n),n=zr(e,l,a),n!==null&&(rn(n,e,a),as(n,e,a))}};function P0(e,n,a,l,o,f,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,f,g):n.prototype&&n.prototype.isPureReactComponent?!Zi(a,l)||!Zi(o,f):!0}function Y0(e,n,a,l){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(a,l),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(a,l),n.state!==e&&Dc.enqueueReplaceState(n,n.state,null)}function Oa(e,n){var a=n;if("ref"in n){a={};for(var l in n)l!=="ref"&&(a[l]=n[l])}if(e=e.defaultProps){a===n&&(a=y({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}var zl=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=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(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function X0(e){zl(e)}function Z0(e){console.error(e)}function Q0(e){zl(e)}function Gl(e,n){try{var a=e.onUncaughtError;a(n.value,{componentStack:n.stack})}catch(l){setTimeout(function(){throw l})}}function K0(e,n,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Lc(e,n,a){return a=Ir(a),a.tag=3,a.payload={element:null},a.callback=function(){Gl(e,n)},a}function $0(e){return e=Ir(e),e.tag=3,e}function W0(e,n,a,l){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var f=l.value;e.payload=function(){return o(f)},e.callback=function(){K0(n,a,l)}}var g=a.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){K0(n,a,l),typeof o!="function"&&(Zr===null?Zr=new Set([this]):Zr.add(this));var b=l.stack;this.componentDidCatch(l.value,{componentStack:b!==null?b:""})})}function UE(e,n,a,l,o){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(n=a.alternate,n!==null&&Ji(n,a,o,!0),a=vn.current,a!==null){switch(a.tag){case 13:return Vn===null?rf():a.alternate===null&&et===0&&(et=3),a.flags&=-257,a.flags|=65536,a.lanes=o,l===oc?a.flags|=16384:(n=a.updateQueue,n===null?a.updateQueue=new Set([l]):n.add(l),sf(e,l,o)),!1;case 22:return a.flags|=65536,l===oc?a.flags|=16384:(n=a.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=n):(a=n.retryQueue,a===null?n.retryQueue=new Set([l]):a.add(l)),sf(e,l,o)),!1}throw Error(s(435,a.tag))}return sf(e,l,o),rf(),!1}if(Le)return n=vn.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=o,l!==tc&&(e=Error(s(422),{cause:l}),Wi(mn(e,a)))):(l!==tc&&(n=Error(s(423),{cause:l}),Wi(mn(n,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,l=mn(l,a),o=Lc(e.stateNode,l,o),fc(e,o),et!==4&&(et=2)),!1;var f=Error(s(520),{cause:l});if(f=mn(f,a),bs===null?bs=[f]:bs.push(f),et!==4&&(et=2),n===null)return!0;l=mn(l,a),a=n;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=Lc(a.stateNode,l,e),fc(a,e),!1;case 1:if(n=a.type,f=a.stateNode,(a.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Zr===null||!Zr.has(f))))return a.flags|=65536,o&=-o,a.lanes|=o,o=$0(o),W0(o,e,a,l),fc(a,o),!1}a=a.return}while(a!==null);return!1}var J0=Error(s(461)),gt=!1;function At(e,n,a,l){n.child=e===null?F0(n,null,a,l):fi(n,e.child,a,l)}function ep(e,n,a,l,o){a=a.render;var f=n.ref;if("ref"in l){var g={};for(var b in l)b!=="ref"&&(g[b]=l[b])}else g=l;return Ta(n),l=gc(e,n,a,g,f,o),b=yc(),e!==null&&!gt?(vc(e,n,o),pr(e,n,o)):(Le&&b&&Ju(n),n.flags|=1,At(e,n,l,o),n.child)}function tp(e,n,a,l,o){if(e===null){var f=a.type;return typeof f=="function"&&!Ku(f)&&f.defaultProps===void 0&&a.compare===null?(n.tag=15,n.type=f,np(e,n,f,l,o)):(e=bl(a.type,null,l,n,n.mode,o),e.ref=n.ref,e.return=n,n.child=e)}if(f=e.child,!kc(e,o)){var g=f.memoizedProps;if(a=a.compare,a=a!==null?a:Zi,a(g,l)&&e.ref===n.ref)return pr(e,n,o)}return n.flags|=1,e=or(f,l),e.ref=n.ref,e.return=n,n.child=e}function np(e,n,a,l,o){if(e!==null){var f=e.memoizedProps;if(Zi(f,l)&&e.ref===n.ref)if(gt=!1,n.pendingProps=l=f,kc(e,o))(e.flags&131072)!==0&&(gt=!0);else return n.lanes=e.lanes,pr(e,n,o)}return Bc(e,n,a,l,o)}function rp(e,n,a){var l=n.pendingProps,o=l.children,f=e!==null?e.memoizedState:null;if(l.mode==="hidden"){if((n.flags&128)!==0){if(l=f!==null?f.baseLanes|a:a,e!==null){for(o=n.child=e.child,f=0;o!==null;)f=f|o.lanes|o.childLanes,o=o.sibling;n.childLanes=f&~l}else n.childLanes=0,n.child=null;return ap(e,n,l,a)}if((a&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&Al(n,f!==null?f.cachePool:null),f!==null?n0(n,f):hc(),V0(n);else return n.lanes=n.childLanes=536870912,ap(e,n,f!==null?f.baseLanes|a:a,a)}else f!==null?(Al(n,f.cachePool),n0(n,f),qr(),n.memoizedState=null):(e!==null&&Al(n,null),hc(),qr());return At(e,n,o,a),n.child}function ap(e,n,a,l){var o=lc();return o=o===null?null:{parent:mt._currentValue,pool:o},n.memoizedState={baseLanes:a,cachePool:o},e!==null&&Al(n,null),hc(),V0(n),e!==null&&Ji(e,n,l,!0),null}function kl(e,n){var a=n.ref;if(a===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(n.flags|=4194816)}}function Bc(e,n,a,l,o){return Ta(n),a=gc(e,n,a,l,void 0,o),l=yc(),e!==null&&!gt?(vc(e,n,o),pr(e,n,o)):(Le&&l&&Ju(n),n.flags|=1,At(e,n,a,o),n.child)}function ip(e,n,a,l,o,f){return Ta(n),n.updateQueue=null,a=a0(n,l,a,o),r0(e),l=yc(),e!==null&&!gt?(vc(e,n,f),pr(e,n,f)):(Le&&l&&Ju(n),n.flags|=1,At(e,n,a,f),n.child)}function sp(e,n,a,l,o){if(Ta(n),n.stateNode===null){var f=ti,g=a.contextType;typeof g=="object"&&g!==null&&(f=Lt(g)),f=new a(l,f),n.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Dc,n.stateNode=f,f._reactInternals=n,f=n.stateNode,f.props=l,f.state=n.memoizedState,f.refs={},uc(n),g=a.contextType,f.context=typeof g=="object"&&g!==null?Lt(g):ti,f.state=n.memoizedState,g=a.getDerivedStateFromProps,typeof g=="function"&&(Mc(n,a,g,l),f.state=n.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(g=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),g!==f.state&&Dc.enqueueReplaceState(f,f.state,null),ss(n,l,f,o),is(),f.state=n.memoizedState),typeof f.componentDidMount=="function"&&(n.flags|=4194308),l=!0}else if(e===null){f=n.stateNode;var b=n.memoizedProps,T=Oa(a,b);f.props=T;var L=f.context,q=a.contextType;g=ti,typeof q=="object"&&q!==null&&(g=Lt(q));var P=a.getDerivedStateFromProps;q=typeof P=="function"||typeof f.getSnapshotBeforeUpdate=="function",b=n.pendingProps!==b,q||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(b||L!==g)&&Y0(n,f,l,g),jr=!1;var B=n.memoizedState;f.state=B,ss(n,l,f,o),is(),L=n.memoizedState,b||B!==L||jr?(typeof P=="function"&&(Mc(n,a,P,l),L=n.memoizedState),(T=jr||P0(n,a,T,l,B,L,g))?(q||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"&&(n.flags|=4194308)):(typeof f.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=l,n.memoizedState=L),f.props=l,f.state=L,f.context=g,l=T):(typeof f.componentDidMount=="function"&&(n.flags|=4194308),l=!1)}else{f=n.stateNode,cc(e,n),g=n.memoizedProps,q=Oa(a,g),f.props=q,P=n.pendingProps,B=f.context,L=a.contextType,T=ti,typeof L=="object"&&L!==null&&(T=Lt(L)),b=a.getDerivedStateFromProps,(L=typeof b=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(g!==P||B!==T)&&Y0(n,f,l,T),jr=!1,B=n.memoizedState,f.state=B,ss(n,l,f,o),is();var j=n.memoizedState;g!==P||B!==j||jr||e!==null&&e.dependencies!==null&&Sl(e.dependencies)?(typeof b=="function"&&(Mc(n,a,b,l),j=n.memoizedState),(q=jr||P0(n,a,q,l,B,j,T)||e!==null&&e.dependencies!==null&&Sl(e.dependencies))?(L||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(l,j,T),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(l,j,T)),typeof f.componentDidUpdate=="function"&&(n.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&B===e.memoizedState||(n.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&B===e.memoizedState||(n.flags|=1024),n.memoizedProps=l,n.memoizedState=j),f.props=l,f.state=j,f.context=T,l=q):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&B===e.memoizedState||(n.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&B===e.memoizedState||(n.flags|=1024),l=!1)}return f=l,kl(e,n),l=(n.flags&128)!==0,f||l?(f=n.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:f.render(),n.flags|=1,e!==null&&l?(n.child=fi(n,e.child,null,o),n.child=fi(n,null,a,o)):At(e,n,a,o),n.memoizedState=f.state,e=n.child):e=pr(e,n,o),e}function lp(e,n,a,l){return $i(),n.flags|=256,At(e,n,a,l),n.child}var Uc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Hc(e){return{baseLanes:e,cachePool:Zm()}}function jc(e,n,a){return e=e!==null?e.childLanes&~a:0,n&&(e|=bn),e}function op(e,n,a){var l=n.pendingProps,o=!1,f=(n.flags&128)!==0,g;if((g=f)||(g=e!==null&&e.memoizedState===null?!1:(pt.current&2)!==0),g&&(o=!0,n.flags&=-129),g=(n.flags&32)!==0,n.flags&=-33,e===null){if(Le){if(o?kr(n):qr(),Le){var b=Je,T;if(T=b){e:{for(T=b,b=Fn;T.nodeType!==8;){if(!b){b=null;break e}if(T=Mn(T.nextSibling),T===null){b=null;break e}}b=T}b!==null?(n.memoizedState={dehydrated:b,treeContext:va!==null?{id:ur,overflow:cr}:null,retryLane:536870912,hydrationErrors:null},T=Wt(18,null,null,0),T.stateNode=b,T.return=n,n.child=T,Ut=n,Je=null,T=!0):T=!1}T||Ea(n)}if(b=n.memoizedState,b!==null&&(b=b.dehydrated,b!==null))return Ef(b)?n.lanes=32:n.lanes=536870912,null;mr(n)}return b=l.children,l=l.fallback,o?(qr(),o=n.mode,b=ql({mode:"hidden",children:b},o),l=ya(l,o,a,null),b.return=n,l.return=n,b.sibling=l,n.child=b,o=n.child,o.memoizedState=Hc(a),o.childLanes=jc(e,g,a),n.memoizedState=Uc,l):(kr(n),Ic(n,b))}if(T=e.memoizedState,T!==null&&(b=T.dehydrated,b!==null)){if(f)n.flags&256?(kr(n),n.flags&=-257,n=zc(e,n,a)):n.memoizedState!==null?(qr(),n.child=e.child,n.flags|=128,n=null):(qr(),o=l.fallback,b=n.mode,l=ql({mode:"visible",children:l.children},b),o=ya(o,b,a,null),o.flags|=2,l.return=n,o.return=n,l.sibling=o,n.child=l,fi(n,e.child,null,a),l=n.child,l.memoizedState=Hc(a),l.childLanes=jc(e,g,a),n.memoizedState=Uc,n=o);else if(kr(n),Ef(b)){if(g=b.nextSibling&&b.nextSibling.dataset,g)var L=g.dgst;g=L,l=Error(s(419)),l.stack="",l.digest=g,Wi({value:l,source:null,stack:null}),n=zc(e,n,a)}else if(gt||Ji(e,n,a,!1),g=(a&e.childLanes)!==0,gt||g){if(g=Ve,g!==null&&(l=a&-a,l=(l&42)!==0?1:Gn(l),l=(l&(g.suspendedLanes|a))!==0?0:l,l!==0&&l!==T.retryLane))throw T.retryLane=l,ei(e,l),rn(g,e,l),J0;b.data==="$?"||rf(),n=zc(e,n,a)}else b.data==="$?"?(n.flags|=192,n.child=e.child,n=null):(e=T.treeContext,Je=Mn(b.nextSibling),Ut=n,Le=!0,_a=null,Fn=!1,e!==null&&(gn[yn++]=ur,gn[yn++]=cr,gn[yn++]=va,ur=e.id,cr=e.overflow,va=n),n=Ic(n,l.children),n.flags|=4096);return n}return o?(qr(),o=l.fallback,b=n.mode,T=e.child,L=T.sibling,l=or(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,L!==null?o=or(L,o):(o=ya(o,b,a,null),o.flags|=2),o.return=n,l.return=n,l.sibling=o,n.child=l,l=o,o=n.child,b=e.child.memoizedState,b===null?b=Hc(a):(T=b.cachePool,T!==null?(L=mt._currentValue,T=T.parent!==L?{parent:L,pool:L}:T):T=Zm(),b={baseLanes:b.baseLanes|a,cachePool:T}),o.memoizedState=b,o.childLanes=jc(e,g,a),n.memoizedState=Uc,l):(kr(n),a=e.child,e=a.sibling,a=or(a,{mode:"visible",children:l.children}),a.return=n,a.sibling=null,e!==null&&(g=n.deletions,g===null?(n.deletions=[e],n.flags|=16):g.push(e)),n.child=a,n.memoizedState=null,a)}function Ic(e,n){return n=ql({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function ql(e,n){return e=Wt(22,e,null,n),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function zc(e,n,a){return fi(n,e.child,null,a),e=Ic(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function up(e,n,a){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n),rc(e.return,n,a)}function Gc(e,n,a,l,o){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:o}:(f.isBackwards=n,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=a,f.tailMode=o)}function cp(e,n,a){var l=n.pendingProps,o=l.revealOrder,f=l.tail;if(At(e,n,l.children,a),l=pt.current,(l&2)!==0)l=l&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&up(e,a,n);else if(e.tag===19)up(e,a,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}l&=1}switch(Y(pt,l),o){case"forwards":for(a=n.child,o=null;a!==null;)e=a.alternate,e!==null&&Il(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=n.child,n.child=null):(o=a.sibling,a.sibling=null),Gc(n,!1,o,a,f);break;case"backwards":for(a=null,o=n.child,n.child=null;o!==null;){if(e=o.alternate,e!==null&&Il(e)===null){n.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}Gc(n,!0,a,null,f);break;case"together":Gc(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function pr(e,n,a){if(e!==null&&(n.dependencies=e.dependencies),Xr|=n.lanes,(a&n.childLanes)===0)if(e!==null){if(Ji(e,n,a,!1),(a&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(s(153));if(n.child!==null){for(e=n.child,a=or(e,e.pendingProps),n.child=a,a.return=n;e.sibling!==null;)e=e.sibling,a=a.sibling=or(e,e.pendingProps),a.return=n;a.sibling=null}return n.child}function kc(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&Sl(e)))}function HE(e,n,a){switch(n.tag){case 3:Ue(n,n.stateNode.containerInfo),Hr(n,mt,e.memoizedState.cache),$i();break;case 27:case 5:zn(n);break;case 4:Ue(n,n.stateNode.containerInfo);break;case 10:Hr(n,n.type,n.memoizedProps.value);break;case 13:var l=n.memoizedState;if(l!==null)return l.dehydrated!==null?(kr(n),n.flags|=128,null):(a&n.child.childLanes)!==0?op(e,n,a):(kr(n),e=pr(e,n,a),e!==null?e.sibling:null);kr(n);break;case 19:var o=(e.flags&128)!==0;if(l=(a&n.childLanes)!==0,l||(Ji(e,n,a,!1),l=(a&n.childLanes)!==0),o){if(l)return cp(e,n,a);n.flags|=128}if(o=n.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Y(pt,pt.current),l)break;return null;case 22:case 23:return n.lanes=0,rp(e,n,a);case 24:Hr(n,mt,e.memoizedState.cache)}return pr(e,n,a)}function fp(e,n,a){if(e!==null)if(e.memoizedProps!==n.pendingProps)gt=!0;else{if(!kc(e,a)&&(n.flags&128)===0)return gt=!1,HE(e,n,a);gt=(e.flags&131072)!==0}else gt=!1,Le&&(n.flags&1048576)!==0&&km(n,El,n.index);switch(n.lanes=0,n.tag){case 16:e:{e=n.pendingProps;var l=n.elementType,o=l._init;if(l=o(l._payload),n.type=l,typeof l=="function")Ku(l)?(e=Oa(l,e),n.tag=1,n=sp(null,n,l,e,a)):(n.tag=0,n=Bc(null,n,l,e,a));else{if(l!=null){if(o=l.$$typeof,o===I){n.tag=11,n=ep(null,n,l,e,a);break e}else if(o===W){n.tag=14,n=tp(null,n,l,e,a);break e}}throw n=Pe(l)||l,Error(s(306,n,""))}}return n;case 0:return Bc(e,n,n.type,n.pendingProps,a);case 1:return l=n.type,o=Oa(l,n.pendingProps),sp(e,n,l,o,a);case 3:e:{if(Ue(n,n.stateNode.containerInfo),e===null)throw Error(s(387));l=n.pendingProps;var f=n.memoizedState;o=f.element,cc(e,n),ss(n,l,null,a);var g=n.memoizedState;if(l=g.cache,Hr(n,mt,l),l!==f.cache&&ac(n,[mt],a,!0),is(),l=g.element,f.isDehydrated)if(f={element:l,isDehydrated:!1,cache:g.cache},n.updateQueue.baseState=f,n.memoizedState=f,n.flags&256){n=lp(e,n,l,a);break e}else if(l!==o){o=mn(Error(s(424)),n),Wi(o),n=lp(e,n,l,a);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Je=Mn(e.firstChild),Ut=n,Le=!0,_a=null,Fn=!0,a=F0(n,null,l,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if($i(),l===o){n=pr(e,n,a);break e}At(e,n,l,a)}n=n.child}return n;case 26:return kl(e,n),e===null?(a=pg(n.type,null,n.pendingProps,null))?n.memoizedState=a:Le||(a=n.type,e=n.pendingProps,l=no(ue.current).createElement(a),l[dt]=n,l[Mt]=e,Ot(l,a,e),st(l),n.stateNode=l):n.memoizedState=pg(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return zn(n),e===null&&Le&&(l=n.stateNode=dg(n.type,n.pendingProps,ue.current),Ut=n,Fn=!0,o=Je,$r(n.type)?(Sf=o,Je=Mn(l.firstChild)):Je=o),At(e,n,n.pendingProps.children,a),kl(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Le&&((o=l=Je)&&(l=c2(l,n.type,n.pendingProps,Fn),l!==null?(n.stateNode=l,Ut=n,Je=Mn(l.firstChild),Fn=!1,o=!0):o=!1),o||Ea(n)),zn(n),o=n.type,f=n.pendingProps,g=e!==null?e.memoizedProps:null,l=f.children,vf(o,f)?l=null:g!==null&&vf(o,g)&&(n.flags|=32),n.memoizedState!==null&&(o=gc(e,n,wE,null,null,a),ws._currentValue=o),kl(e,n),At(e,n,l,a),n.child;case 6:return e===null&&Le&&((e=a=Je)&&(a=f2(a,n.pendingProps,Fn),a!==null?(n.stateNode=a,Ut=n,Je=null,e=!0):e=!1),e||Ea(n)),null;case 13:return op(e,n,a);case 4:return Ue(n,n.stateNode.containerInfo),l=n.pendingProps,e===null?n.child=fi(n,null,l,a):At(e,n,l,a),n.child;case 11:return ep(e,n,n.type,n.pendingProps,a);case 7:return At(e,n,n.pendingProps,a),n.child;case 8:return At(e,n,n.pendingProps.children,a),n.child;case 12:return At(e,n,n.pendingProps.children,a),n.child;case 10:return l=n.pendingProps,Hr(n,n.type,l.value),At(e,n,l.children,a),n.child;case 9:return o=n.type._context,l=n.pendingProps.children,Ta(n),o=Lt(o),l=l(o),n.flags|=1,At(e,n,l,a),n.child;case 14:return tp(e,n,n.type,n.pendingProps,a);case 15:return np(e,n,n.type,n.pendingProps,a);case 19:return cp(e,n,a);case 31:return l=n.pendingProps,a=n.mode,l={mode:l.mode,children:l.children},e===null?(a=ql(l,a),a.ref=n.ref,n.child=a,a.return=n,n=a):(a=or(e.child,l),a.ref=n.ref,n.child=a,a.return=n,n=a),n;case 22:return rp(e,n,a);case 24:return Ta(n),l=Lt(mt),e===null?(o=lc(),o===null&&(o=Ve,f=ic(),o.pooledCache=f,f.refCount++,f!==null&&(o.pooledCacheLanes|=a),o=f),n.memoizedState={parent:l,cache:o},uc(n),Hr(n,mt,o)):((e.lanes&a)!==0&&(cc(e,n),ss(n,null,null,a),is()),o=e.memoizedState,f=n.memoizedState,o.parent!==l?(o={parent:l,cache:l},n.memoizedState=o,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=o),Hr(n,mt,l)):(l=f.cache,Hr(n,mt,l),l!==o.cache&&ac(n,[mt],a,!0))),At(e,n,n.pendingProps.children,a),n.child;case 29:throw n.pendingProps}throw Error(s(156,n.tag))}function gr(e){e.flags|=4}function dp(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!_g(n)){if(n=vn.current,n!==null&&((Ne&4194048)===Ne?Vn!==null:(Ne&62914560)!==Ne&&(Ne&536870912)===0||n!==Vn))throw rs=oc,Qm;e.flags|=8192}}function Fl(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?ha():536870912,e.lanes|=n,pi|=n)}function hs(e,n){if(!Le)switch(e.tailMode){case"hidden":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Qe(e){var n=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(n)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=l,e.childLanes=a,n}function jE(e,n,a){var l=n.pendingProps;switch(ec(n),n.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qe(n),null;case 1:return Qe(n),null;case 3:return a=n.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),n.memoizedState.cache!==l&&(n.flags|=2048),dr(mt),Et(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Ki(n)?gr(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Vm())),Qe(n),null;case 26:return a=n.memoizedState,e===null?(gr(n),a!==null?(Qe(n),dp(n,a)):(Qe(n),n.flags&=-16777217)):a?a!==e.memoizedState?(gr(n),Qe(n),dp(n,a)):(Qe(n),n.flags&=-16777217):(e.memoizedProps!==l&&gr(n),Qe(n),n.flags&=-16777217),null;case 27:Nr(n),a=ue.current;var o=n.type;if(e!==null&&n.stateNode!=null)e.memoizedProps!==l&&gr(n);else{if(!l){if(n.stateNode===null)throw Error(s(166));return Qe(n),null}e=te.current,Ki(n)?qm(n):(e=dg(o,l,a),n.stateNode=e,gr(n))}return Qe(n),null;case 5:if(Nr(n),a=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==l&&gr(n);else{if(!l){if(n.stateNode===null)throw Error(s(166));return Qe(n),null}if(e=te.current,Ki(n))qm(n);else{switch(o=no(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 l.is=="string"?o.createElement("select",{is:l.is}):o.createElement("select"),l.multiple?e.multiple=!0:l.size&&(e.size=l.size);break;default:e=typeof l.is=="string"?o.createElement(a,{is:l.is}):o.createElement(a)}}e[dt]=n,e[Mt]=l;e:for(o=n.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===n)break e;for(;o.sibling===null;){if(o.return===null||o.return===n)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}n.stateNode=e;e:switch(Ot(e,a,l),a){case"button":case"input":case"select":case"textarea":e=!!l.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&gr(n)}}return Qe(n),n.flags&=-16777217,null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==l&&gr(n);else{if(typeof l!="string"&&n.stateNode===null)throw Error(s(166));if(e=ue.current,Ki(n)){if(e=n.stateNode,a=n.memoizedProps,l=null,o=Ut,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}e[dt]=n,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||ig(e.nodeValue,a)),e||Ea(n)}else e=no(e).createTextNode(l),e[dt]=n,n.stateNode=e}return Qe(n),null;case 13:if(l=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Ki(n),l!==null&&l.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=n.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[dt]=n}else $i(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Qe(n),o=!1}else o=Vm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return n.flags&256?(mr(n),n):(mr(n),null)}if(mr(n),(n.flags&128)!==0)return n.lanes=a,n;if(a=l!==null,e=e!==null&&e.memoizedState!==null,a){l=n.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool);var f=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(f=l.memoizedState.cachePool.pool),f!==o&&(l.flags|=2048)}return a!==e&&a&&(n.child.flags|=8192),Fl(n,n.updateQueue),Qe(n),null;case 4:return Et(),e===null&&hf(n.stateNode.containerInfo),Qe(n),null;case 10:return dr(n.type),Qe(n),null;case 19:if($(pt),o=n.memoizedState,o===null)return Qe(n),null;if(l=(n.flags&128)!==0,f=o.rendering,f===null)if(l)hs(o,!1);else{if(et!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(f=Il(e),f!==null){for(n.flags|=128,hs(o,!1),e=f.updateQueue,n.updateQueue=e,Fl(n,e),n.subtreeFlags=0,e=a,a=n.child;a!==null;)Gm(a,e),a=a.sibling;return Y(pt,pt.current&1|2),n.child}e=e.sibling}o.tail!==null&&St()>Yl&&(n.flags|=128,l=!0,hs(o,!1),n.lanes=4194304)}else{if(!l)if(e=Il(f),e!==null){if(n.flags|=128,l=!0,e=e.updateQueue,n.updateQueue=e,Fl(n,e),hs(o,!0),o.tail===null&&o.tailMode==="hidden"&&!f.alternate&&!Le)return Qe(n),null}else 2*St()-o.renderingStartTime>Yl&&a!==536870912&&(n.flags|=128,l=!0,hs(o,!1),n.lanes=4194304);o.isBackwards?(f.sibling=n.child,n.child=f):(e=o.last,e!==null?e.sibling=f:n.child=f,o.last=f)}return o.tail!==null?(n=o.tail,o.rendering=n,o.tail=n.sibling,o.renderingStartTime=St(),n.sibling=null,e=pt.current,Y(pt,l?e&1|2:e&1),n):(Qe(n),null);case 22:case 23:return mr(n),mc(),l=n.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(n.flags|=8192):l&&(n.flags|=8192),l?(a&536870912)!==0&&(n.flags&128)===0&&(Qe(n),n.subtreeFlags&6&&(n.flags|=8192)):Qe(n),a=n.updateQueue,a!==null&&Fl(n,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),l!==a&&(n.flags|=2048),e!==null&&$(Aa),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),n.memoizedState.cache!==a&&(n.flags|=2048),dr(mt),Qe(n),null;case 25:return null;case 30:return null}throw Error(s(156,n.tag))}function IE(e,n){switch(ec(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return dr(mt),Et(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return Nr(n),null;case 13:if(mr(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(s(340));$i()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return $(pt),null;case 4:return Et(),null;case 10:return dr(n.type),null;case 22:case 23:return mr(n),mc(),e!==null&&$(Aa),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return dr(mt),null;case 25:return null;default:return null}}function hp(e,n){switch(ec(n),n.tag){case 3:dr(mt),Et();break;case 26:case 27:case 5:Nr(n);break;case 4:Et();break;case 13:mr(n);break;case 19:$(pt);break;case 10:dr(n.type);break;case 22:case 23:mr(n),mc(),e!==null&&$(Aa);break;case 24:dr(mt)}}function ms(e,n){try{var a=n.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var o=l.next;a=o;do{if((a.tag&e)===e){l=void 0;var f=a.create,g=a.inst;l=f(),g.destroy=l}a=a.next}while(a!==o)}}catch(b){qe(n,n.return,b)}}function Fr(e,n,a){try{var l=n.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var f=o.next;l=f;do{if((l.tag&e)===e){var g=l.inst,b=g.destroy;if(b!==void 0){g.destroy=void 0,o=n;var T=a,L=b;try{L()}catch(q){qe(o,T,q)}}}l=l.next}while(l!==f)}}catch(q){qe(n,n.return,q)}}function mp(e){var n=e.updateQueue;if(n!==null){var a=e.stateNode;try{t0(n,a)}catch(l){qe(e,e.return,l)}}}function pp(e,n,a){a.props=Oa(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){qe(e,n,l)}}function ps(e,n){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(o){qe(e,n,o)}}function Pn(e,n){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(o){qe(e,n,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){qe(e,n,o)}else a.current=null}function gp(e){var n=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(o){qe(e,e.return,o)}}function qc(e,n,a){try{var l=e.stateNode;i2(l,e.type,a,n),l[Mt]=n}catch(o){qe(e,e.return,o)}}function yp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&$r(e.type)||e.tag===4}function Fc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yp(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&&$r(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 Vc(e,n,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,n?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,n):(n=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,n.appendChild(e),a=a._reactRootContainer,a!=null||n.onclick!==null||(n.onclick=to));else if(l!==4&&(l===27&&$r(e.type)&&(a=e.stateNode,n=null),e=e.child,e!==null))for(Vc(e,n,a),e=e.sibling;e!==null;)Vc(e,n,a),e=e.sibling}function Vl(e,n,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,n?a.insertBefore(e,n):a.appendChild(e);else if(l!==4&&(l===27&&$r(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Vl(e,n,a),e=e.sibling;e!==null;)Vl(e,n,a),e=e.sibling}function vp(e){var n=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,o=n.attributes;o.length;)n.removeAttributeNode(o[0]);Ot(n,l,a),n[dt]=e,n[Mt]=a}catch(f){qe(e,e.return,f)}}var yr=!1,at=!1,Pc=!1,bp=typeof WeakSet=="function"?WeakSet:Set,yt=null;function zE(e,n){if(e=e.containerInfo,gf=oo,e=Nm(e),Fu(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var o=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{a.nodeType,f.nodeType}catch{a=null;break e}var g=0,b=-1,T=-1,L=0,q=0,P=e,B=null;t:for(;;){for(var j;P!==a||o!==0&&P.nodeType!==3||(b=g+o),P!==f||l!==0&&P.nodeType!==3||(T=g+l),P.nodeType===3&&(g+=P.nodeValue.length),(j=P.firstChild)!==null;)B=P,P=j;for(;;){if(P===e)break t;if(B===a&&++L===o&&(b=g),B===f&&++q===l&&(T=g),(j=P.nextSibling)!==null)break;P=B,B=P.parentNode}P=j}a=b===-1||T===-1?null:{start:b,end:T}}else a=null}a=a||{start:0,end:0}}else a=null;for(yf={focusedElem:e,selectionRange:a},oo=!1,yt=n;yt!==null;)if(n=yt,e=n.child,(n.subtreeFlags&1024)!==0&&e!==null)e.return=n,yt=e;else for(;yt!==null;){switch(n=yt,f=n.alternate,e=n.flags,n.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,a=n,o=f.memoizedProps,f=f.memoizedState,l=a.stateNode;try{var he=Oa(a.type,o,a.elementType===a.type);e=l.getSnapshotBeforeUpdate(he,f),l.__reactInternalSnapshotBeforeUpdate=e}catch(fe){qe(a,a.return,fe)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,a=e.nodeType,a===9)_f(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":_f(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(s(163))}if(e=n.sibling,e!==null){e.return=n.return,yt=e;break}yt=n.return}}function _p(e,n,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:Vr(e,a),l&4&&ms(5,a);break;case 1:if(Vr(e,a),l&4)if(e=a.stateNode,n===null)try{e.componentDidMount()}catch(g){qe(a,a.return,g)}else{var o=Oa(a.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(o,n,e.__reactInternalSnapshotBeforeUpdate)}catch(g){qe(a,a.return,g)}}l&64&&mp(a),l&512&&ps(a,a.return);break;case 3:if(Vr(e,a),l&64&&(e=a.updateQueue,e!==null)){if(n=null,a.child!==null)switch(a.child.tag){case 27:case 5:n=a.child.stateNode;break;case 1:n=a.child.stateNode}try{t0(e,n)}catch(g){qe(a,a.return,g)}}break;case 27:n===null&&l&4&&vp(a);case 26:case 5:Vr(e,a),n===null&&l&4&&gp(a),l&512&&ps(a,a.return);break;case 12:Vr(e,a);break;case 13:Vr(e,a),l&4&&Tp(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=ZE.bind(null,a),d2(e,a))));break;case 22:if(l=a.memoizedState!==null||yr,!l){n=n!==null&&n.memoizedState!==null||at,o=yr;var f=at;yr=l,(at=n)&&!f?Pr(e,a,(a.subtreeFlags&8772)!==0):Vr(e,a),yr=o,at=f}break;case 30:break;default:Vr(e,a)}}function Ep(e){var n=e.alternate;n!==null&&(e.alternate=null,Ep(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&Qt(n)),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 Xe=null,Xt=!1;function vr(e,n,a){for(a=a.child;a!==null;)Sp(e,n,a),a=a.sibling}function Sp(e,n,a){if(Ct&&typeof Ct.onCommitFiberUnmount=="function")try{Ct.onCommitFiberUnmount(fn,a)}catch{}switch(a.tag){case 26:at||Pn(a,n),vr(e,n,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:at||Pn(a,n);var l=Xe,o=Xt;$r(a.type)&&(Xe=a.stateNode,Xt=!1),vr(e,n,a),As(a.stateNode),Xe=l,Xt=o;break;case 5:at||Pn(a,n);case 6:if(l=Xe,o=Xt,Xe=null,vr(e,n,a),Xe=l,Xt=o,Xe!==null)if(Xt)try{(Xe.nodeType===9?Xe.body:Xe.nodeName==="HTML"?Xe.ownerDocument.body:Xe).removeChild(a.stateNode)}catch(f){qe(a,n,f)}else try{Xe.removeChild(a.stateNode)}catch(f){qe(a,n,f)}break;case 18:Xe!==null&&(Xt?(e=Xe,cg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ds(e)):cg(Xe,a.stateNode));break;case 4:l=Xe,o=Xt,Xe=a.stateNode.containerInfo,Xt=!0,vr(e,n,a),Xe=l,Xt=o;break;case 0:case 11:case 14:case 15:at||Fr(2,a,n),at||Fr(4,a,n),vr(e,n,a);break;case 1:at||(Pn(a,n),l=a.stateNode,typeof l.componentWillUnmount=="function"&&pp(a,n,l)),vr(e,n,a);break;case 21:vr(e,n,a);break;case 22:at=(l=at)||a.memoizedState!==null,vr(e,n,a),at=l;break;default:vr(e,n,a)}}function Tp(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ds(e)}catch(a){qe(n,n.return,a)}}function GE(e){switch(e.tag){case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new bp),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new bp),n;default:throw Error(s(435,e.tag))}}function Yc(e,n){var a=GE(e);n.forEach(function(l){var o=QE.bind(null,e,l);a.has(l)||(a.add(l),l.then(o,o))})}function Jt(e,n){var a=n.deletions;if(a!==null)for(var l=0;l<a.length;l++){var o=a[l],f=e,g=n,b=g;e:for(;b!==null;){switch(b.tag){case 27:if($r(b.type)){Xe=b.stateNode,Xt=!1;break e}break;case 5:Xe=b.stateNode,Xt=!1;break e;case 3:case 4:Xe=b.stateNode.containerInfo,Xt=!0;break e}b=b.return}if(Xe===null)throw Error(s(160));Sp(f,g,o),Xe=null,Xt=!1,f=o.alternate,f!==null&&(f.return=null),o.return=null}if(n.subtreeFlags&13878)for(n=n.child;n!==null;)Ap(n,e),n=n.sibling}var Nn=null;function Ap(e,n){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Jt(n,e),en(e),l&4&&(Fr(3,e,e.return),ms(3,e),Fr(5,e,e.return));break;case 1:Jt(n,e),en(e),l&512&&(at||a===null||Pn(a,a.return)),l&64&&yr&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var o=Nn;if(Jt(n,e),en(e),l&512&&(at||a===null||Pn(a,a.return)),l&4){var f=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,o=o.ownerDocument||o;t:switch(l){case"title":f=o.getElementsByTagName("title")[0],(!f||f[Lr]||f[dt]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=o.createElement(l),o.head.insertBefore(f,o.querySelector("head > title"))),Ot(f,l,a),f[dt]=e,st(f),l=f;break e;case"link":var g=vg("link","href",o).get(l+(a.href||""));if(g){for(var b=0;b<g.length;b++)if(f=g[b],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)){g.splice(b,1);break t}}f=o.createElement(l),Ot(f,l,a),o.head.appendChild(f);break;case"meta":if(g=vg("meta","content",o).get(l+(a.content||""))){for(b=0;b<g.length;b++)if(f=g[b],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)){g.splice(b,1);break t}}f=o.createElement(l),Ot(f,l,a),o.head.appendChild(f);break;default:throw Error(s(468,l))}f[dt]=e,st(f),l=f}e.stateNode=l}else bg(o,e.type,e.stateNode);else e.stateNode=yg(o,l,e.memoizedProps);else f!==l?(f===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):f.count--,l===null?bg(o,e.type,e.stateNode):yg(o,l,e.memoizedProps)):l===null&&e.stateNode!==null&&qc(e,e.memoizedProps,a.memoizedProps)}break;case 27:Jt(n,e),en(e),l&512&&(at||a===null||Pn(a,a.return)),a!==null&&l&4&&qc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Jt(n,e),en(e),l&512&&(at||a===null||Pn(a,a.return)),e.flags&32){o=e.stateNode;try{Xa(o,"")}catch(j){qe(e,e.return,j)}}l&4&&e.stateNode!=null&&(o=e.memoizedProps,qc(e,o,a!==null?a.memoizedProps:o)),l&1024&&(Pc=!0);break;case 6:if(Jt(n,e),en(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(j){qe(e,e.return,j)}}break;case 3:if(io=null,o=Nn,Nn=ro(n.containerInfo),Jt(n,e),Nn=o,en(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Ds(n.containerInfo)}catch(j){qe(e,e.return,j)}Pc&&(Pc=!1,xp(e));break;case 4:l=Nn,Nn=ro(e.stateNode.containerInfo),Jt(n,e),en(e),Nn=l;break;case 12:Jt(n,e),en(e);break;case 13:Jt(n,e),en(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Wc=St()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Yc(e,l)));break;case 22:o=e.memoizedState!==null;var T=a!==null&&a.memoizedState!==null,L=yr,q=at;if(yr=L||o,at=q||T,Jt(n,e),at=q,yr=L,en(e),l&8192)e:for(n=e.stateNode,n._visibility=o?n._visibility&-2:n._visibility|1,o&&(a===null||T||yr||at||Ra(e)),a=null,n=e;;){if(n.tag===5||n.tag===26){if(a===null){T=a=n;try{if(f=T.stateNode,o)g=f.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{b=T.stateNode;var P=T.memoizedProps.style,B=P!=null&&P.hasOwnProperty("display")?P.display:null;b.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(j){qe(T,T.return,j)}}}else if(n.tag===6){if(a===null){T=n;try{T.stateNode.nodeValue=o?"":T.memoizedProps}catch(j){qe(T,T.return,j)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;a===n&&(a=null),n=n.return}a===n&&(a=null),n.sibling.return=n.return,n=n.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Yc(e,a))));break;case 19:Jt(n,e),en(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Yc(e,l)));break;case 30:break;case 21:break;default:Jt(n,e),en(e)}}function en(e){var n=e.flags;if(n&2){try{for(var a,l=e.return;l!==null;){if(yp(l)){a=l;break}l=l.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var o=a.stateNode,f=Fc(e);Vl(e,f,o);break;case 5:var g=a.stateNode;a.flags&32&&(Xa(g,""),a.flags&=-33);var b=Fc(e);Vl(e,b,g);break;case 3:case 4:var T=a.stateNode.containerInfo,L=Fc(e);Vc(e,L,T);break;default:throw Error(s(161))}}catch(q){qe(e,e.return,q)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function xp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;xp(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Vr(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)_p(e,n.alternate,n),n=n.sibling}function Ra(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:Fr(4,n,n.return),Ra(n);break;case 1:Pn(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&pp(n,n.return,a),Ra(n);break;case 27:As(n.stateNode);case 26:case 5:Pn(n,n.return),Ra(n);break;case 22:n.memoizedState===null&&Ra(n);break;case 30:Ra(n);break;default:Ra(n)}e=e.sibling}}function Pr(e,n,a){for(a=a&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var l=n.alternate,o=e,f=n,g=f.flags;switch(f.tag){case 0:case 11:case 15:Pr(o,f,a),ms(4,f);break;case 1:if(Pr(o,f,a),l=f,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(L){qe(l,l.return,L)}if(l=f,o=l.updateQueue,o!==null){var b=l.stateNode;try{var T=o.shared.hiddenCallbacks;if(T!==null)for(o.shared.hiddenCallbacks=null,o=0;o<T.length;o++)e0(T[o],b)}catch(L){qe(l,l.return,L)}}a&&g&64&&mp(f),ps(f,f.return);break;case 27:vp(f);case 26:case 5:Pr(o,f,a),a&&l===null&&g&4&&gp(f),ps(f,f.return);break;case 12:Pr(o,f,a);break;case 13:Pr(o,f,a),a&&g&4&&Tp(o,f);break;case 22:f.memoizedState===null&&Pr(o,f,a),ps(f,f.return);break;case 30:break;default:Pr(o,f,a)}n=n.sibling}}function Xc(e,n){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&es(a))}function Zc(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&es(e))}function Yn(e,n,a,l){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Op(e,n,a,l),n=n.sibling}function Op(e,n,a,l){var o=n.flags;switch(n.tag){case 0:case 11:case 15:Yn(e,n,a,l),o&2048&&ms(9,n);break;case 1:Yn(e,n,a,l);break;case 3:Yn(e,n,a,l),o&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&es(e)));break;case 12:if(o&2048){Yn(e,n,a,l),e=n.stateNode;try{var f=n.memoizedProps,g=f.id,b=f.onPostCommit;typeof b=="function"&&b(g,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){qe(n,n.return,T)}}else Yn(e,n,a,l);break;case 13:Yn(e,n,a,l);break;case 23:break;case 22:f=n.stateNode,g=n.alternate,n.memoizedState!==null?f._visibility&2?Yn(e,n,a,l):gs(e,n):f._visibility&2?Yn(e,n,a,l):(f._visibility|=2,di(e,n,a,l,(n.subtreeFlags&10256)!==0)),o&2048&&Xc(g,n);break;case 24:Yn(e,n,a,l),o&2048&&Zc(n.alternate,n);break;default:Yn(e,n,a,l)}}function di(e,n,a,l,o){for(o=o&&(n.subtreeFlags&10256)!==0,n=n.child;n!==null;){var f=e,g=n,b=a,T=l,L=g.flags;switch(g.tag){case 0:case 11:case 15:di(f,g,b,T,o),ms(8,g);break;case 23:break;case 22:var q=g.stateNode;g.memoizedState!==null?q._visibility&2?di(f,g,b,T,o):gs(f,g):(q._visibility|=2,di(f,g,b,T,o)),o&&L&2048&&Xc(g.alternate,g);break;case 24:di(f,g,b,T,o),o&&L&2048&&Zc(g.alternate,g);break;default:di(f,g,b,T,o)}n=n.sibling}}function gs(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var a=e,l=n,o=l.flags;switch(l.tag){case 22:gs(a,l),o&2048&&Xc(l.alternate,l);break;case 24:gs(a,l),o&2048&&Zc(l.alternate,l);break;default:gs(a,l)}n=n.sibling}}var ys=8192;function hi(e){if(e.subtreeFlags&ys)for(e=e.child;e!==null;)Rp(e),e=e.sibling}function Rp(e){switch(e.tag){case 26:hi(e),e.flags&ys&&e.memoizedState!==null&&x2(Nn,e.memoizedState,e.memoizedProps);break;case 5:hi(e);break;case 3:case 4:var n=Nn;Nn=ro(e.stateNode.containerInfo),hi(e),Nn=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=ys,ys=16777216,hi(e),ys=n):hi(e));break;default:hi(e)}}function wp(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function vs(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var l=n[a];yt=l,Np(l,e)}wp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Cp(e),e=e.sibling}function Cp(e){switch(e.tag){case 0:case 11:case 15:vs(e),e.flags&2048&&Fr(9,e,e.return);break;case 3:vs(e);break;case 12:vs(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,Pl(e)):vs(e);break;default:vs(e)}}function Pl(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var l=n[a];yt=l,Np(l,e)}wp(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Fr(8,n,n.return),Pl(n);break;case 22:a=n.stateNode,a._visibility&2&&(a._visibility&=-3,Pl(n));break;default:Pl(n)}e=e.sibling}}function Np(e,n){for(;yt!==null;){var a=yt;switch(a.tag){case 0:case 11:case 15:Fr(8,a,n);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:es(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,yt=l;else e:for(a=e;yt!==null;){l=yt;var o=l.sibling,f=l.return;if(Ep(l),l===a){yt=null;break e}if(o!==null){o.return=f,yt=o;break e}yt=f}}}var kE={getCacheForType:function(e){var n=Lt(mt),a=n.data.get(e);return a===void 0&&(a=e(),n.data.set(e,a)),a}},qE=typeof WeakMap=="function"?WeakMap:Map,He=0,Ve=null,xe=null,Ne=0,je=0,tn=null,Yr=!1,mi=!1,Qc=!1,br=0,et=0,Xr=0,wa=0,Kc=0,bn=0,pi=0,bs=null,Zt=null,$c=!1,Wc=0,Yl=1/0,Xl=null,Zr=null,xt=0,Qr=null,gi=null,yi=0,Jc=0,ef=null,Mp=null,_s=0,tf=null;function nn(){if((He&2)!==0&&Ne!==0)return Ne&-Ne;if(z.T!==null){var e=ai;return e!==0?e:uf()}return Ii()}function Dp(){bn===0&&(bn=(Ne&536870912)===0||Le?da():536870912);var e=vn.current;return e!==null&&(e.flags|=32),bn}function rn(e,n,a){(e===Ve&&(je===2||je===9)||e.cancelPendingCommit!==null)&&(vi(e,0),Kr(e,Ne,bn,!1)),Rn(e,a),((He&2)===0||e!==Ve)&&(e===Ve&&((He&2)===0&&(wa|=a),et===4&&Kr(e,Ne,bn,!1)),Xn(e))}function Lp(e,n,a){if((He&6)!==0)throw Error(s(327));var l=!a&&(n&124)===0&&(n&e.expiredLanes)===0||nr(e,n),o=l?PE(e,n):af(e,n,!0),f=l;do{if(o===0){mi&&!l&&Kr(e,n,0,!1);break}else{if(a=e.current.alternate,f&&!FE(a)){o=af(e,n,!1),f=!1;continue}if(o===2){if(f=n,e.errorRecoveryDisabledLanes&f)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){n=g;e:{var b=e;o=bs;var T=b.current.memoizedState.isDehydrated;if(T&&(vi(b,g).flags|=256),g=af(b,g,!1),g!==2){if(Qc&&!T){b.errorRecoveryDisabledLanes|=f,wa|=f,o=4;break e}f=Zt,Zt=o,f!==null&&(Zt===null?Zt=f:Zt.push.apply(Zt,f))}o=g}if(f=!1,o!==2)continue}}if(o===1){vi(e,0),Kr(e,n,0,!0);break}e:{switch(l=e,f=o,f){case 0:case 1:throw Error(s(345));case 4:if((n&4194048)!==n)break;case 6:Kr(l,n,bn,!Yr);break e;case 2:Zt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((n&62914560)===n&&(o=Wc+300-St(),10<o)){if(Kr(l,n,bn,!Yr),Dr(l,0,!0)!==0)break e;l.timeoutHandle=og(Bp.bind(null,l,a,Zt,Xl,$c,n,bn,wa,pi,Yr,f,2,-0,0),o);break e}Bp(l,a,Zt,Xl,$c,n,bn,wa,pi,Yr,f,0,-0,0)}}break}while(!0);Xn(e)}function Bp(e,n,a,l,o,f,g,b,T,L,q,P,B,j){if(e.timeoutHandle=-1,P=n.subtreeFlags,(P&8192||(P&16785408)===16785408)&&(Rs={stylesheets:null,count:0,unsuspend:A2},Rp(n),P=O2(),P!==null)){e.cancelPendingCommit=P(kp.bind(null,e,n,f,a,l,o,g,b,T,q,1,B,j)),Kr(e,f,g,!L);return}kp(e,n,f,a,l,o,g,b,T)}function FE(e){for(var n=e;;){var a=n.tag;if((a===0||a===11||a===15)&&n.flags&16384&&(a=n.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var o=a[l],f=o.getSnapshot;o=o.value;try{if(!$t(f(),o))return!1}catch{return!1}}if(a=n.child,n.subtreeFlags&16384&&a!==null)a.return=n,n=a;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Kr(e,n,a,l){n&=~Kc,n&=~wa,e.suspendedLanes|=n,e.pingedLanes&=~n,l&&(e.warmLanes|=n),l=e.expirationTimes;for(var o=n;0<o;){var f=31-Nt(o),g=1<<f;l[f]=-1,o&=~g}a!==0&&al(e,a,n)}function Zl(){return(He&6)===0?(Es(0),!1):!0}function nf(){if(xe!==null){if(je===0)var e=xe.return;else e=xe,fr=Sa=null,bc(e),ci=null,fs=0,e=xe;for(;e!==null;)hp(e.alternate,e),e=e.return;xe=null}}function vi(e,n){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,l2(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),nf(),Ve=e,xe=a=or(e.current,null),Ne=n,je=0,tn=null,Yr=!1,mi=nr(e,n),Qc=!1,pi=bn=Kc=wa=Xr=et=0,Zt=bs=null,$c=!1,(n&8)!==0&&(n|=n&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=n;0<l;){var o=31-Nt(l),f=1<<o;n|=e[o],l&=~f}return br=n,gl(),a}function Up(e,n){_e=null,z.H=Ul,n===ns||n===xl?(n=Wm(),je=3):n===Qm?(n=Wm(),je=4):je=n===J0?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,tn=n,xe===null&&(et=1,Gl(e,mn(n,e.current)))}function Hp(){var e=z.H;return z.H=Ul,e===null?Ul:e}function jp(){var e=z.A;return z.A=kE,e}function rf(){et=4,Yr||(Ne&4194048)!==Ne&&vn.current!==null||(mi=!0),(Xr&134217727)===0&&(wa&134217727)===0||Ve===null||Kr(Ve,Ne,bn,!1)}function af(e,n,a){var l=He;He|=2;var o=Hp(),f=jp();(Ve!==e||Ne!==n)&&(Xl=null,vi(e,n)),n=!1;var g=et;e:do try{if(je!==0&&xe!==null){var b=xe,T=tn;switch(je){case 8:nf(),g=6;break e;case 3:case 2:case 9:case 6:vn.current===null&&(n=!0);var L=je;if(je=0,tn=null,bi(e,b,T,L),a&&mi){g=0;break e}break;default:L=je,je=0,tn=null,bi(e,b,T,L)}}VE(),g=et;break}catch(q){Up(e,q)}while(!0);return n&&e.shellSuspendCounter++,fr=Sa=null,He=l,z.H=o,z.A=f,xe===null&&(Ve=null,Ne=0,gl()),g}function VE(){for(;xe!==null;)Ip(xe)}function PE(e,n){var a=He;He|=2;var l=Hp(),o=jp();Ve!==e||Ne!==n?(Xl=null,Yl=St()+500,vi(e,n)):mi=nr(e,n);e:do try{if(je!==0&&xe!==null){n=xe;var f=tn;t:switch(je){case 1:je=0,tn=null,bi(e,n,f,1);break;case 2:case 9:if(Km(f)){je=0,tn=null,zp(n);break}n=function(){je!==2&&je!==9||Ve!==e||(je=7),Xn(e)},f.then(n,n);break e;case 3:je=7;break e;case 4:je=5;break e;case 7:Km(f)?(je=0,tn=null,zp(n)):(je=0,tn=null,bi(e,n,f,7));break;case 5:var g=null;switch(xe.tag){case 26:g=xe.memoizedState;case 5:case 27:var b=xe;if(!g||_g(g)){je=0,tn=null;var T=b.sibling;if(T!==null)xe=T;else{var L=b.return;L!==null?(xe=L,Ql(L)):xe=null}break t}}je=0,tn=null,bi(e,n,f,5);break;case 6:je=0,tn=null,bi(e,n,f,6);break;case 8:nf(),et=6;break e;default:throw Error(s(462))}}YE();break}catch(q){Up(e,q)}while(!0);return fr=Sa=null,z.H=l,z.A=o,He=a,xe!==null?0:(Ve=null,Ne=0,gl(),et)}function YE(){for(;xe!==null&&!Di();)Ip(xe)}function Ip(e){var n=fp(e.alternate,e,br);e.memoizedProps=e.pendingProps,n===null?Ql(e):xe=n}function zp(e){var n=e,a=n.alternate;switch(n.tag){case 15:case 0:n=ip(a,n,n.pendingProps,n.type,void 0,Ne);break;case 11:n=ip(a,n,n.pendingProps,n.type.render,n.ref,Ne);break;case 5:bc(n);default:hp(a,n),n=xe=Gm(n,br),n=fp(a,n,br)}e.memoizedProps=e.pendingProps,n===null?Ql(e):xe=n}function bi(e,n,a,l){fr=Sa=null,bc(n),ci=null,fs=0;var o=n.return;try{if(UE(e,o,n,a,Ne)){et=1,Gl(e,mn(a,e.current)),xe=null;return}}catch(f){if(o!==null)throw xe=o,f;et=1,Gl(e,mn(a,e.current)),xe=null;return}n.flags&32768?(Le||l===1?e=!0:mi||(Ne&536870912)!==0?e=!1:(Yr=e=!0,(l===2||l===9||l===3||l===6)&&(l=vn.current,l!==null&&l.tag===13&&(l.flags|=16384))),Gp(n,e)):Ql(n)}function Ql(e){var n=e;do{if((n.flags&32768)!==0){Gp(n,Yr);return}e=n.return;var a=jE(n.alternate,n,br);if(a!==null){xe=a;return}if(n=n.sibling,n!==null){xe=n;return}xe=n=e}while(n!==null);et===0&&(et=5)}function Gp(e,n){do{var a=IE(e.alternate,e);if(a!==null){a.flags&=32767,xe=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!n&&(e=e.sibling,e!==null)){xe=e;return}xe=e=a}while(e!==null);et=6,xe=null}function kp(e,n,a,l,o,f,g,b,T){e.cancelPendingCommit=null;do Kl();while(xt!==0);if((He&6)!==0)throw Error(s(327));if(n!==null){if(n===e.current)throw Error(s(177));if(f=n.lanes|n.childLanes,f|=Zu,xu(e,a,f,g,b,T),e===Ve&&(xe=Ve=null,Ne=0),gi=n,Qr=e,yi=a,Jc=f,ef=o,Mp=l,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,KE(ca,function(){return Yp(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||l){l=z.T,z.T=null,o=K.p,K.p=2,g=He,He|=4;try{zE(e,n,a)}finally{He=g,K.p=o,z.T=l}}xt=1,qp(),Fp(),Vp()}}function qp(){if(xt===1){xt=0;var e=Qr,n=gi,a=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||a){a=z.T,z.T=null;var l=K.p;K.p=2;var o=He;He|=4;try{Ap(n,e);var f=yf,g=Nm(e.containerInfo),b=f.focusedElem,T=f.selectionRange;if(g!==b&&b&&b.ownerDocument&&Cm(b.ownerDocument.documentElement,b)){if(T!==null&&Fu(b)){var L=T.start,q=T.end;if(q===void 0&&(q=L),"selectionStart"in b)b.selectionStart=L,b.selectionEnd=Math.min(q,b.value.length);else{var P=b.ownerDocument||document,B=P&&P.defaultView||window;if(B.getSelection){var j=B.getSelection(),he=b.textContent.length,fe=Math.min(T.start,he),ke=T.end===void 0?fe:Math.min(T.end,he);!j.extend&&fe>ke&&(g=ke,ke=fe,fe=g);var M=wm(b,fe),w=wm(b,ke);if(M&&w&&(j.rangeCount!==1||j.anchorNode!==M.node||j.anchorOffset!==M.offset||j.focusNode!==w.node||j.focusOffset!==w.offset)){var D=P.createRange();D.setStart(M.node,M.offset),j.removeAllRanges(),fe>ke?(j.addRange(D),j.extend(w.node,w.offset)):(D.setEnd(w.node,w.offset),j.addRange(D))}}}}for(P=[],j=b;j=j.parentNode;)j.nodeType===1&&P.push({element:j,left:j.scrollLeft,top:j.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<P.length;b++){var V=P[b];V.element.scrollLeft=V.left,V.element.scrollTop=V.top}}oo=!!gf,yf=gf=null}finally{He=o,K.p=l,z.T=a}}e.current=n,xt=2}}function Fp(){if(xt===2){xt=0;var e=Qr,n=gi,a=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||a){a=z.T,z.T=null;var l=K.p;K.p=2;var o=He;He|=4;try{_p(e,n.alternate,n)}finally{He=o,K.p=l,z.T=a}}xt=3}}function Vp(){if(xt===4||xt===3){xt=0,Li();var e=Qr,n=gi,a=yi,l=Mp;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?xt=5:(xt=0,gi=Qr=null,Pp(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Zr=null),ji(a),n=n.stateNode,Ct&&typeof Ct.onCommitFiberRoot=="function")try{Ct.onCommitFiberRoot(fn,n,void 0,(n.current.flags&128)===128)}catch{}if(l!==null){n=z.T,o=K.p,K.p=2,z.T=null;try{for(var f=e.onRecoverableError,g=0;g<l.length;g++){var b=l[g];f(b.value,{componentStack:b.stack})}}finally{z.T=n,K.p=o}}(yi&3)!==0&&Kl(),Xn(e),o=e.pendingLanes,(a&4194090)!==0&&(o&42)!==0?e===tf?_s++:(_s=0,tf=e):_s=0,Es(0)}}function Pp(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,es(n)))}function Kl(e){return qp(),Fp(),Vp(),Yp()}function Yp(){if(xt!==5)return!1;var e=Qr,n=Jc;Jc=0;var a=ji(yi),l=z.T,o=K.p;try{K.p=32>a?32:a,z.T=null,a=ef,ef=null;var f=Qr,g=yi;if(xt=0,gi=Qr=null,yi=0,(He&6)!==0)throw Error(s(331));var b=He;if(He|=4,Cp(f.current),Op(f,f.current,g,a),He=b,Es(0,!1),Ct&&typeof Ct.onPostCommitFiberRoot=="function")try{Ct.onPostCommitFiberRoot(fn,f)}catch{}return!0}finally{K.p=o,z.T=l,Pp(e,n)}}function Xp(e,n,a){n=mn(a,n),n=Lc(e.stateNode,n,2),e=zr(e,n,2),e!==null&&(Rn(e,2),Xn(e))}function qe(e,n,a){if(e.tag===3)Xp(e,e,a);else for(;n!==null;){if(n.tag===3){Xp(n,e,a);break}else if(n.tag===1){var l=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Zr===null||!Zr.has(l))){e=mn(a,e),a=$0(2),l=zr(n,a,2),l!==null&&(W0(a,l,n,e),Rn(l,2),Xn(l));break}}n=n.return}}function sf(e,n,a){var l=e.pingCache;if(l===null){l=e.pingCache=new qE;var o=new Set;l.set(n,o)}else o=l.get(n),o===void 0&&(o=new Set,l.set(n,o));o.has(a)||(Qc=!0,o.add(a),e=XE.bind(null,e,n,a),n.then(e,e))}function XE(e,n,a){var l=e.pingCache;l!==null&&l.delete(n),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ve===e&&(Ne&a)===a&&(et===4||et===3&&(Ne&62914560)===Ne&&300>St()-Wc?(He&2)===0&&vi(e,0):Kc|=a,pi===Ne&&(pi=0)),Xn(e)}function Zp(e,n){n===0&&(n=ha()),e=ei(e,n),e!==null&&(Rn(e,n),Xn(e))}function ZE(e){var n=e.memoizedState,a=0;n!==null&&(a=n.retryLane),Zp(e,a)}function QE(e,n){var a=0;switch(e.tag){case 13:var l=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(n),Zp(e,a)}function KE(e,n){return kt(e,n)}var $l=null,_i=null,lf=!1,Wl=!1,of=!1,Ca=0;function Xn(e){e!==_i&&e.next===null&&(_i===null?$l=_i=e:_i=_i.next=e),Wl=!0,lf||(lf=!0,WE())}function Es(e,n){if(!of&&Wl){of=!0;do for(var a=!1,l=$l;l!==null;){if(e!==0){var o=l.pendingLanes;if(o===0)var f=0;else{var g=l.suspendedLanes,b=l.pingedLanes;f=(1<<31-Nt(42|e)+1)-1,f&=o&~(g&~b),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(a=!0,Wp(l,f))}else f=Ne,f=Dr(l,l===Ve?f:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(f&3)===0||nr(l,f)||(a=!0,Wp(l,f));l=l.next}while(a);of=!1}}function $E(){Qp()}function Qp(){Wl=lf=!1;var e=0;Ca!==0&&(s2()&&(e=Ca),Ca=0);for(var n=St(),a=null,l=$l;l!==null;){var o=l.next,f=Kp(l,n);f===0?(l.next=null,a===null?$l=o:a.next=o,o===null&&(_i=a)):(a=l,(e!==0||(f&3)!==0)&&(Wl=!0)),l=o}Es(e)}function Kp(e,n){for(var a=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var g=31-Nt(f),b=1<<g,T=o[g];T===-1?((b&a)===0||(b&l)!==0)&&(o[g]=Au(b,n)):T<=n&&(e.expiredLanes|=b),f&=~b}if(n=Ve,a=Ne,a=Dr(e,e===n?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===n&&(je===2||je===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&xn(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||nr(e,a)){if(n=a&-a,n===e.callbackPriority)return n;switch(l!==null&&xn(l),ji(a)){case 2:case 8:a=Bi;break;case 32:a=ca;break;case 268435456:a=Fa;break;default:a=ca}return l=$p.bind(null,e),a=kt(a,l),e.callbackPriority=n,e.callbackNode=a,n}return l!==null&&l!==null&&xn(l),e.callbackPriority=2,e.callbackNode=null,2}function $p(e,n){if(xt!==0&&xt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Kl()&&e.callbackNode!==a)return null;var l=Ne;return l=Dr(e,e===Ve?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Lp(e,l,n),Kp(e,St()),e.callbackNode!=null&&e.callbackNode===a?$p.bind(null,e):null)}function Wp(e,n){if(Kl())return null;Lp(e,n,!0)}function WE(){o2(function(){(He&6)!==0?kt(ua,$E):Qp()})}function uf(){return Ca===0&&(Ca=da()),Ca}function Jp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ul(""+e)}function eg(e,n){var a=n.ownerDocument.createElement("input");return a.name=n.name,a.value=n.value,e.id&&a.setAttribute("form",e.id),n.parentNode.insertBefore(a,n),e=new FormData(e),a.parentNode.removeChild(a),e}function JE(e,n,a,l,o){if(n==="submit"&&a&&a.stateNode===o){var f=Jp((o[Mt]||null).action),g=l.submitter;g&&(n=(n=g[Mt]||null)?Jp(n.formAction):g.getAttribute("formAction"),n!==null&&(f=n,g=null));var b=new hl("action","action",null,l,o);e.push({event:b,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Ca!==0){var T=g?eg(o,g):new FormData(o);wc(a,{pending:!0,data:T,method:o.method,action:f},null,T)}}else typeof f=="function"&&(b.preventDefault(),T=g?eg(o,g):new FormData(o),wc(a,{pending:!0,data:T,method:o.method,action:f},f,T))},currentTarget:o}]})}}for(var cf=0;cf<Xu.length;cf++){var ff=Xu[cf],e2=ff.toLowerCase(),t2=ff[0].toUpperCase()+ff.slice(1);Cn(e2,"on"+t2)}Cn(Lm,"onAnimationEnd"),Cn(Bm,"onAnimationIteration"),Cn(Um,"onAnimationStart"),Cn("dblclick","onDoubleClick"),Cn("focusin","onFocus"),Cn("focusout","onBlur"),Cn(vE,"onTransitionRun"),Cn(bE,"onTransitionStart"),Cn(_E,"onTransitionCancel"),Cn(Hm,"onTransitionEnd"),J("onMouseEnter",["mouseout","mouseover"]),J("onMouseLeave",["mouseout","mouseover"]),J("onPointerEnter",["pointerout","pointerover"]),J("onPointerLeave",["pointerout","pointerover"]),X("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),X("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),X("onBeforeInput",["compositionend","keypress","textInput","paste"]),X("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),X("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),X("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ss="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(" "),n2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ss));function tg(e,n){n=(n&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],o=l.event;l=l.listeners;e:{var f=void 0;if(n)for(var g=l.length-1;0<=g;g--){var b=l[g],T=b.instance,L=b.currentTarget;if(b=b.listener,T!==f&&o.isPropagationStopped())break e;f=b,o.currentTarget=L;try{f(o)}catch(q){zl(q)}o.currentTarget=null,f=T}else for(g=0;g<l.length;g++){if(b=l[g],T=b.instance,L=b.currentTarget,b=b.listener,T!==f&&o.isPropagationStopped())break e;f=b,o.currentTarget=L;try{f(o)}catch(q){zl(q)}o.currentTarget=null,f=T}}}}function Oe(e,n){var a=n[kn];a===void 0&&(a=n[kn]=new Set);var l=e+"__bubble";a.has(l)||(ng(n,e,2,!1),a.add(l))}function df(e,n,a){var l=0;n&&(l|=4),ng(a,e,l,n)}var Jl="_reactListening"+Math.random().toString(36).slice(2);function hf(e){if(!e[Jl]){e[Jl]=!0,le.forEach(function(a){a!=="selectionchange"&&(n2.has(a)||df(a,!1,e),df(a,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Jl]||(n[Jl]=!0,df("selectionchange",!1,n))}}function ng(e,n,a,l){switch(Og(n)){case 2:var o=C2;break;case 8:o=N2;break;default:o=Rf}a=o.bind(null,n,a,e),o=void 0,!Bu||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(o=!0),l?o!==void 0?e.addEventListener(n,a,{capture:!0,passive:o}):e.addEventListener(n,a,!0):o!==void 0?e.addEventListener(n,a,{passive:o}):e.addEventListener(n,a,!1)}function mf(e,n,a,l,o){var f=l;if((n&1)===0&&(n&2)===0&&l!==null)e:for(;;){if(l===null)return;var g=l.tag;if(g===3||g===4){var b=l.stateNode.containerInfo;if(b===o)break;if(g===4)for(g=l.return;g!==null;){var T=g.tag;if((T===3||T===4)&&g.stateNode.containerInfo===o)return;g=g.return}for(;b!==null;){if(g=rr(b),g===null)return;if(T=g.tag,T===5||T===6||T===26||T===27){l=f=g;continue e}b=b.parentNode}}l=l.return}um(function(){var L=f,q=Du(a),P=[];e:{var B=jm.get(e);if(B!==void 0){var j=hl,he=e;switch(e){case"keypress":if(fl(a)===0)break e;case"keydown":case"keyup":j=K_;break;case"focusin":he="focus",j=Iu;break;case"focusout":he="blur",j=Iu;break;case"beforeblur":case"afterblur":j=Iu;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":j=dm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":j=I_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":j=J_;break;case Lm:case Bm:case Um:j=k_;break;case Hm:j=tE;break;case"scroll":case"scrollend":j=H_;break;case"wheel":j=rE;break;case"copy":case"cut":case"paste":j=F_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":j=mm;break;case"toggle":case"beforetoggle":j=iE}var fe=(n&4)!==0,ke=!fe&&(e==="scroll"||e==="scrollend"),M=fe?B!==null?B+"Capture":null:B;fe=[];for(var w=L,D;w!==null;){var V=w;if(D=V.stateNode,V=V.tag,V!==5&&V!==26&&V!==27||D===null||M===null||(V=ki(w,M),V!=null&&fe.push(Ts(w,V,D))),ke)break;w=w.return}0<fe.length&&(B=new j(B,he,null,a,q),P.push({event:B,listeners:fe}))}}if((n&7)===0){e:{if(B=e==="mouseover"||e==="pointerover",j=e==="mouseout"||e==="pointerout",B&&a!==Mu&&(he=a.relatedTarget||a.fromElement)&&(rr(he)||he[Tt]))break e;if((j||B)&&(B=q.window===q?q:(B=q.ownerDocument)?B.defaultView||B.parentWindow:window,j?(he=a.relatedTarget||a.toElement,j=L,he=he?rr(he):null,he!==null&&(ke=c(he),fe=he.tag,he!==ke||fe!==5&&fe!==27&&fe!==6)&&(he=null)):(j=null,he=L),j!==he)){if(fe=dm,V="onMouseLeave",M="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(fe=mm,V="onPointerLeave",M="onPointerEnter",w="pointer"),ke=j==null?B:Br(j),D=he==null?B:Br(he),B=new fe(V,w+"leave",j,a,q),B.target=ke,B.relatedTarget=D,V=null,rr(q)===L&&(fe=new fe(M,w+"enter",he,a,q),fe.target=D,fe.relatedTarget=ke,V=fe),ke=V,j&&he)t:{for(fe=j,M=he,w=0,D=fe;D;D=Ei(D))w++;for(D=0,V=M;V;V=Ei(V))D++;for(;0<w-D;)fe=Ei(fe),w--;for(;0<D-w;)M=Ei(M),D--;for(;w--;){if(fe===M||M!==null&&fe===M.alternate)break t;fe=Ei(fe),M=Ei(M)}fe=null}else fe=null;j!==null&&rg(P,B,j,fe,!1),he!==null&&ke!==null&&rg(P,ke,he,fe,!0)}}e:{if(B=L?Br(L):window,j=B.nodeName&&B.nodeName.toLowerCase(),j==="select"||j==="input"&&B.type==="file")var ne=Sm;else if(_m(B))if(Tm)ne=pE;else{ne=hE;var Se=dE}else j=B.nodeName,!j||j.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?L&&Nu(L.elementType)&&(ne=Sm):ne=mE;if(ne&&(ne=ne(e,L))){Em(P,ne,a,q);break e}Se&&Se(e,B,L),e==="focusout"&&L&&B.type==="number"&&L.memoizedProps.value!=null&&Cu(B,"number",B.value)}switch(Se=L?Br(L):window,e){case"focusin":(_m(Se)||Se.contentEditable==="true")&&($a=Se,Vu=L,Qi=null);break;case"focusout":Qi=Vu=$a=null;break;case"mousedown":Pu=!0;break;case"contextmenu":case"mouseup":case"dragend":Pu=!1,Mm(P,a,q);break;case"selectionchange":if(yE)break;case"keydown":case"keyup":Mm(P,a,q)}var oe;if(Gu)e:{switch(e){case"compositionstart":var de="onCompositionStart";break e;case"compositionend":de="onCompositionEnd";break e;case"compositionupdate":de="onCompositionUpdate";break e}de=void 0}else Ka?vm(e,a)&&(de="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(de="onCompositionStart");de&&(pm&&a.locale!=="ko"&&(Ka||de!=="onCompositionStart"?de==="onCompositionEnd"&&Ka&&(oe=cm()):(Ur=q,Uu="value"in Ur?Ur.value:Ur.textContent,Ka=!0)),Se=eo(L,de),0<Se.length&&(de=new hm(de,e,null,a,q),P.push({event:de,listeners:Se}),oe?de.data=oe:(oe=bm(a),oe!==null&&(de.data=oe)))),(oe=lE?oE(e,a):uE(e,a))&&(de=eo(L,"onBeforeInput"),0<de.length&&(Se=new hm("onBeforeInput","beforeinput",null,a,q),P.push({event:Se,listeners:de}),Se.data=oe)),JE(P,e,L,a,q)}tg(P,n)})}function Ts(e,n,a){return{instance:e,listener:n,currentTarget:a}}function eo(e,n){for(var a=n+"Capture",l=[];e!==null;){var o=e,f=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||f===null||(o=ki(e,a),o!=null&&l.unshift(Ts(e,o,f)),o=ki(e,n),o!=null&&l.push(Ts(e,o,f))),e.tag===3)return l;e=e.return}return[]}function Ei(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function rg(e,n,a,l,o){for(var f=n._reactName,g=[];a!==null&&a!==l;){var b=a,T=b.alternate,L=b.stateNode;if(b=b.tag,T!==null&&T===l)break;b!==5&&b!==26&&b!==27||L===null||(T=L,o?(L=ki(a,f),L!=null&&g.unshift(Ts(a,L,T))):o||(L=ki(a,f),L!=null&&g.push(Ts(a,L,T)))),a=a.return}g.length!==0&&e.push({event:n,listeners:g})}var r2=/\r\n?/g,a2=/\u0000|\uFFFD/g;function ag(e){return(typeof e=="string"?e:""+e).replace(r2,`
49
+ `).replace(a2,"")}function ig(e,n){return n=ag(n),ag(e)===n}function to(){}function Ge(e,n,a,l,o,f){switch(a){case"children":typeof l=="string"?n==="body"||n==="textarea"&&l===""||Xa(e,l):(typeof l=="number"||typeof l=="bigint")&&n!=="body"&&Xa(e,""+l);break;case"className":qn(e,"class",l);break;case"tabIndex":qn(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":qn(e,a,l);break;case"style":lm(e,l,f);break;case"data":if(n!=="object"){qn(e,"data",l);break}case"src":case"href":if(l===""&&(n!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=ul(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="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"?(n!=="input"&&Ge(e,n,"name",o.name,o,null),Ge(e,n,"formEncType",o.formEncType,o,null),Ge(e,n,"formMethod",o.formMethod,o,null),Ge(e,n,"formTarget",o.formTarget,o,null)):(Ge(e,n,"encType",o.encType,o,null),Ge(e,n,"method",o.method,o,null),Ge(e,n,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=ul(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=to);break;case"onScroll":l!=null&&Oe("scroll",e);break;case"onScrollEnd":l!=null&&Oe("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=ul(""+l),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":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":Oe("beforetoggle",e),Oe("toggle",e),Vt(e,"popover",l);break;case"xlinkActuate":Kt(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Kt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Kt(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Kt(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Kt(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Kt(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Kt(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Kt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Kt(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Vt(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=B_.get(a)||a,Vt(e,a,l))}}function pf(e,n,a,l,o,f){switch(a){case"style":lm(e,l,f);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof l=="string"?Xa(e,l):(typeof l=="number"||typeof l=="bigint")&&Xa(e,""+l);break;case"onScroll":l!=null&&Oe("scroll",e);break;case"onScrollEnd":l!=null&&Oe("scrollend",e);break;case"onClick":l!=null&&(e.onclick=to);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!N.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),n=a.slice(2,o?a.length-7:void 0),f=e[Mt]||null,f=f!=null?f[a]:null,typeof f=="function"&&e.removeEventListener(n,f,o),typeof l=="function")){typeof f!="function"&&f!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(n,l,o);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):Vt(e,a,l)}}}function Ot(e,n,a){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Oe("error",e),Oe("load",e);var l=!1,o=!1,f;for(f in a)if(a.hasOwnProperty(f)){var g=a[f];if(g!=null)switch(f){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,n));default:Ge(e,n,f,g,a,null)}}o&&Ge(e,n,"srcSet",a.srcSet,a,null),l&&Ge(e,n,"src",a.src,a,null);return;case"input":Oe("invalid",e);var b=f=g=o=null,T=null,L=null;for(l in a)if(a.hasOwnProperty(l)){var q=a[l];if(q!=null)switch(l){case"name":o=q;break;case"type":g=q;break;case"checked":T=q;break;case"defaultChecked":L=q;break;case"value":f=q;break;case"defaultValue":b=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(s(137,n));break;default:Ge(e,n,l,q,a,null)}}rm(e,f,b,T,L,g,o,!1),ll(e);return;case"select":Oe("invalid",e),l=g=f=null;for(o in a)if(a.hasOwnProperty(o)&&(b=a[o],b!=null))switch(o){case"value":f=b;break;case"defaultValue":g=b;break;case"multiple":l=b;default:Ge(e,n,o,b,a,null)}n=f,a=g,e.multiple=!!l,n!=null?Ya(e,!!l,n,!1):a!=null&&Ya(e,!!l,a,!0);return;case"textarea":Oe("invalid",e),f=o=l=null;for(g in a)if(a.hasOwnProperty(g)&&(b=a[g],b!=null))switch(g){case"value":l=b;break;case"defaultValue":o=b;break;case"children":f=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(s(91));break;default:Ge(e,n,g,b,a,null)}im(e,l,o,f),ll(e);return;case"option":for(T in a)if(a.hasOwnProperty(T)&&(l=a[T],l!=null))switch(T){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ge(e,n,T,l,a,null)}return;case"dialog":Oe("beforetoggle",e),Oe("toggle",e),Oe("cancel",e),Oe("close",e);break;case"iframe":case"object":Oe("load",e);break;case"video":case"audio":for(l=0;l<Ss.length;l++)Oe(Ss[l],e);break;case"image":Oe("error",e),Oe("load",e);break;case"details":Oe("toggle",e);break;case"embed":case"source":case"link":Oe("error",e),Oe("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(L in a)if(a.hasOwnProperty(L)&&(l=a[L],l!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,n));default:Ge(e,n,L,l,a,null)}return;default:if(Nu(n)){for(q in a)a.hasOwnProperty(q)&&(l=a[q],l!==void 0&&pf(e,n,q,l,a,void 0));return}}for(b in a)a.hasOwnProperty(b)&&(l=a[b],l!=null&&Ge(e,n,b,l,a,null))}function i2(e,n,a,l){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,f=null,g=null,b=null,T=null,L=null,q=null;for(j in a){var P=a[j];if(a.hasOwnProperty(j)&&P!=null)switch(j){case"checked":break;case"value":break;case"defaultValue":T=P;default:l.hasOwnProperty(j)||Ge(e,n,j,null,l,P)}}for(var B in l){var j=l[B];if(P=a[B],l.hasOwnProperty(B)&&(j!=null||P!=null))switch(B){case"type":f=j;break;case"name":o=j;break;case"checked":L=j;break;case"defaultChecked":q=j;break;case"value":g=j;break;case"defaultValue":b=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(s(137,n));break;default:j!==P&&Ge(e,n,B,j,l,P)}}wu(e,g,b,T,L,q,f,o);return;case"select":j=g=b=B=null;for(f in a)if(T=a[f],a.hasOwnProperty(f)&&T!=null)switch(f){case"value":break;case"multiple":j=T;default:l.hasOwnProperty(f)||Ge(e,n,f,null,l,T)}for(o in l)if(f=l[o],T=a[o],l.hasOwnProperty(o)&&(f!=null||T!=null))switch(o){case"value":B=f;break;case"defaultValue":b=f;break;case"multiple":g=f;default:f!==T&&Ge(e,n,o,f,l,T)}n=b,a=g,l=j,B!=null?Ya(e,!!a,B,!1):!!l!=!!a&&(n!=null?Ya(e,!!a,n,!0):Ya(e,!!a,a?[]:"",!1));return;case"textarea":j=B=null;for(b in a)if(o=a[b],a.hasOwnProperty(b)&&o!=null&&!l.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:Ge(e,n,b,null,l,o)}for(g in l)if(o=l[g],f=a[g],l.hasOwnProperty(g)&&(o!=null||f!=null))switch(g){case"value":B=o;break;case"defaultValue":j=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==f&&Ge(e,n,g,o,l,f)}am(e,B,j);return;case"option":for(var he in a)if(B=a[he],a.hasOwnProperty(he)&&B!=null&&!l.hasOwnProperty(he))switch(he){case"selected":e.selected=!1;break;default:Ge(e,n,he,null,l,B)}for(T in l)if(B=l[T],j=a[T],l.hasOwnProperty(T)&&B!==j&&(B!=null||j!=null))switch(T){case"selected":e.selected=B&&typeof B!="function"&&typeof B!="symbol";break;default:Ge(e,n,T,B,l,j)}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 fe in a)B=a[fe],a.hasOwnProperty(fe)&&B!=null&&!l.hasOwnProperty(fe)&&Ge(e,n,fe,null,l,B);for(L in l)if(B=l[L],j=a[L],l.hasOwnProperty(L)&&B!==j&&(B!=null||j!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(s(137,n));break;default:Ge(e,n,L,B,l,j)}return;default:if(Nu(n)){for(var ke in a)B=a[ke],a.hasOwnProperty(ke)&&B!==void 0&&!l.hasOwnProperty(ke)&&pf(e,n,ke,void 0,l,B);for(q in l)B=l[q],j=a[q],!l.hasOwnProperty(q)||B===j||B===void 0&&j===void 0||pf(e,n,q,B,l,j);return}}for(var M in a)B=a[M],a.hasOwnProperty(M)&&B!=null&&!l.hasOwnProperty(M)&&Ge(e,n,M,null,l,B);for(P in l)B=l[P],j=a[P],!l.hasOwnProperty(P)||B===j||B==null&&j==null||Ge(e,n,P,B,l,j)}var gf=null,yf=null;function no(e){return e.nodeType===9?e:e.ownerDocument}function sg(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 lg(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function vf(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var bf=null;function s2(){var e=window.event;return e&&e.type==="popstate"?e===bf?!1:(bf=e,!0):(bf=null,!1)}var og=typeof setTimeout=="function"?setTimeout:void 0,l2=typeof clearTimeout=="function"?clearTimeout:void 0,ug=typeof Promise=="function"?Promise:void 0,o2=typeof queueMicrotask=="function"?queueMicrotask:typeof ug<"u"?function(e){return ug.resolve(null).then(e).catch(u2)}:og;function u2(e){setTimeout(function(){throw e})}function $r(e){return e==="head"}function cg(e,n){var a=n,l=0,o=0;do{var f=a.nextSibling;if(e.removeChild(a),f&&f.nodeType===8)if(a=f.data,a==="/$"){if(0<l&&8>l){a=l;var g=e.ownerDocument;if(a&1&&As(g.documentElement),a&2&&As(g.body),a&4)for(a=g.head,As(a),g=a.firstChild;g;){var b=g.nextSibling,T=g.nodeName;g[Lr]||T==="SCRIPT"||T==="STYLE"||T==="LINK"&&g.rel.toLowerCase()==="stylesheet"||a.removeChild(g),g=b}}if(o===0){e.removeChild(f),Ds(n);return}o--}else a==="$"||a==="$?"||a==="$!"?o++:l=a.charCodeAt(0)-48;else l=0;a=f}while(a);Ds(n)}function _f(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var a=n;switch(n=n.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":_f(a),Qt(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function c2(e,n,a,l){for(;e.nodeType===1;){var o=a;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Lr])switch(n){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(n==="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=Mn(e.nextSibling),e===null)break}return null}function f2(e,n,a){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Mn(e.nextSibling),e===null))return null;return e}function Ef(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function d2(e,n){var a=e.ownerDocument;if(e.data!=="$?"||a.readyState==="complete")n();else{var l=function(){n(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Mn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="F!"||n==="F")break;if(n==="/$")return null}}return e}var Sf=null;function fg(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(n===0)return e;n--}else a==="/$"&&n++}e=e.previousSibling}return null}function dg(e,n,a){switch(n=no(a),e){case"html":if(e=n.documentElement,!e)throw Error(s(452));return e;case"head":if(e=n.head,!e)throw Error(s(453));return e;case"body":if(e=n.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function As(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);Qt(e)}var _n=new Map,hg=new Set;function ro(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var _r=K.d;K.d={f:h2,r:m2,D:p2,C:g2,L:y2,m:v2,X:_2,S:b2,M:E2};function h2(){var e=_r.f(),n=Zl();return e||n}function m2(e){var n=ar(e);n!==null&&n.tag===5&&n.type==="form"?L0(n):_r.r(e)}var Si=typeof document>"u"?null:document;function mg(e,n,a){var l=Si;if(l&&typeof n=="string"&&n){var o=hn(n);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),hg.has(o)||(hg.add(o),e={rel:e,crossOrigin:a,href:n},l.querySelector(o)===null&&(n=l.createElement("link"),Ot(n,"link",e),st(n),l.head.appendChild(n)))}}function p2(e){_r.D(e),mg("dns-prefetch",e,null)}function g2(e,n){_r.C(e,n),mg("preconnect",e,n)}function y2(e,n,a){_r.L(e,n,a);var l=Si;if(l&&e&&n){var o='link[rel="preload"][as="'+hn(n)+'"]';n==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+hn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+hn(a.imageSizes)+'"]')):o+='[href="'+hn(e)+'"]';var f=o;switch(n){case"style":f=Ti(e);break;case"script":f=Ai(e)}_n.has(f)||(e=y({rel:"preload",href:n==="image"&&a&&a.imageSrcSet?void 0:e,as:n},a),_n.set(f,e),l.querySelector(o)!==null||n==="style"&&l.querySelector(xs(f))||n==="script"&&l.querySelector(Os(f))||(n=l.createElement("link"),Ot(n,"link",e),st(n),l.head.appendChild(n)))}}function v2(e,n){_r.m(e,n);var a=Si;if(a&&e){var l=n&&typeof n.as=="string"?n.as:"script",o='link[rel="modulepreload"][as="'+hn(l)+'"][href="'+hn(e)+'"]',f=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=Ai(e)}if(!_n.has(f)&&(e=y({rel:"modulepreload",href:e},n),_n.set(f,e),a.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Os(f)))return}l=a.createElement("link"),Ot(l,"link",e),st(l),a.head.appendChild(l)}}}function b2(e,n,a){_r.S(e,n,a);var l=Si;if(l&&e){var o=ir(l).hoistableStyles,f=Ti(e);n=n||"default";var g=o.get(f);if(!g){var b={loading:0,preload:null};if(g=l.querySelector(xs(f)))b.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":n},a),(a=_n.get(f))&&Tf(e,a);var T=g=l.createElement("link");st(T),Ot(T,"link",e),T._p=new Promise(function(L,q){T.onload=L,T.onerror=q}),T.addEventListener("load",function(){b.loading|=1}),T.addEventListener("error",function(){b.loading|=2}),b.loading|=4,ao(g,n,l)}g={type:"stylesheet",instance:g,count:1,state:b},o.set(f,g)}}}function _2(e,n){_r.X(e,n);var a=Si;if(a&&e){var l=ir(a).hoistableScripts,o=Ai(e),f=l.get(o);f||(f=a.querySelector(Os(o)),f||(e=y({src:e,async:!0},n),(n=_n.get(o))&&Af(e,n),f=a.createElement("script"),st(f),Ot(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(o,f))}}function E2(e,n){_r.M(e,n);var a=Si;if(a&&e){var l=ir(a).hoistableScripts,o=Ai(e),f=l.get(o);f||(f=a.querySelector(Os(o)),f||(e=y({src:e,async:!0,type:"module"},n),(n=_n.get(o))&&Af(e,n),f=a.createElement("script"),st(f),Ot(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(o,f))}}function pg(e,n,a,l){var o=(o=ue.current)?ro(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(n=Ti(a.href),a=ir(o).hoistableStyles,l=a.get(n),l||(l={type:"style",instance:null,count:0,state:null},a.set(n,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Ti(a.href);var f=ir(o).hoistableStyles,g=f.get(e);if(g||(o=o.ownerDocument||o,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,g),(f=o.querySelector(xs(e)))&&!f._p&&(g.instance=f,g.state.loading=5),_n.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},_n.set(e,a),f||S2(o,e,a,g.state))),n&&l===null)throw Error(s(528,""));return g}if(n&&l!==null)throw Error(s(529,""));return null;case"script":return n=a.async,a=a.src,typeof a=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Ai(a),a=ir(o).hoistableScripts,l=a.get(n),l||(l={type:"script",instance:null,count:0,state:null},a.set(n,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Ti(e){return'href="'+hn(e)+'"'}function xs(e){return'link[rel="stylesheet"]['+e+"]"}function gg(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function S2(e,n,a,l){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?l.loading=1:(n=e.createElement("link"),l.preload=n,n.addEventListener("load",function(){return l.loading|=1}),n.addEventListener("error",function(){return l.loading|=2}),Ot(n,"link",a),st(n),e.head.appendChild(n))}function Ai(e){return'[src="'+hn(e)+'"]'}function Os(e){return"script[async]"+e}function yg(e,n,a){if(n.count++,n.instance===null)switch(n.type){case"style":var l=e.querySelector('style[data-href~="'+hn(a.href)+'"]');if(l)return n.instance=l,st(l),l;var o=y({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),st(l),Ot(l,"style",o),ao(l,a.precedence,e),n.instance=l;case"stylesheet":o=Ti(a.href);var f=e.querySelector(xs(o));if(f)return n.state.loading|=4,n.instance=f,st(f),f;l=gg(a),(o=_n.get(o))&&Tf(l,o),f=(e.ownerDocument||e).createElement("link"),st(f);var g=f;return g._p=new Promise(function(b,T){g.onload=b,g.onerror=T}),Ot(f,"link",l),n.state.loading|=4,ao(f,a.precedence,e),n.instance=f;case"script":return f=Ai(a.src),(o=e.querySelector(Os(f)))?(n.instance=o,st(o),o):(l=a,(o=_n.get(f))&&(l=y({},a),Af(l,o)),e=e.ownerDocument||e,o=e.createElement("script"),st(o),Ot(o,"link",l),e.head.appendChild(o),n.instance=o);case"void":return null;default:throw Error(s(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(l=n.instance,n.state.loading|=4,ao(l,a.precedence,e));return n.instance}function ao(e,n,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,f=o,g=0;g<l.length;g++){var b=l[g];if(b.dataset.precedence===n)f=b;else if(f!==o)break}f?f.parentNode.insertBefore(e,f.nextSibling):(n=a.nodeType===9?a.head:a,n.insertBefore(e,n.firstChild))}function Tf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function Af(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var io=null;function vg(e,n,a){if(io===null){var l=new Map,o=io=new Map;o.set(a,l)}else o=io,l=o.get(a),l||(l=new Map,o.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),o=0;o<a.length;o++){var f=a[o];if(!(f[Lr]||f[dt]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var g=f.getAttribute(n)||"";g=e+g;var b=l.get(g);b?b.push(f):l.set(g,[f])}}return l}function bg(e,n,a){e=e.ownerDocument||e,e.head.insertBefore(a,n==="title"?e.querySelector("head > title"):null)}function T2(e,n,a){if(a===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function _g(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Rs=null;function A2(){}function x2(e,n,a){if(Rs===null)throw Error(s(475));var l=Rs;if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=Ti(a.href),f=e.querySelector(xs(o));if(f){e=f._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(l.count++,l=so.bind(l),e.then(l,l)),n.state.loading|=4,n.instance=f,st(f);return}f=e.ownerDocument||e,a=gg(a),(o=_n.get(o))&&Tf(a,o),f=f.createElement("link"),st(f);var g=f;g._p=new Promise(function(b,T){g.onload=b,g.onerror=T}),Ot(f,"link",a),n.instance=f}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(l.count++,n=so.bind(l),e.addEventListener("load",n),e.addEventListener("error",n))}}function O2(){if(Rs===null)throw Error(s(475));var e=Rs;return e.stylesheets&&e.count===0&&xf(e,e.stylesheets),0<e.count?function(n){var a=setTimeout(function(){if(e.stylesheets&&xf(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a)}}:null}function so(){if(this.count--,this.count===0){if(this.stylesheets)xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var lo=null;function xf(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,lo=new Map,n.forEach(R2,e),lo=null,so.call(e))}function R2(e,n){if(!(n.state.loading&4)){var a=lo.get(e);if(a)var l=a.get(null);else{a=new Map,lo.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<o.length;f++){var g=o[f];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(a.set(g.dataset.precedence,g),l=g)}l&&a.set(null,l)}o=n.instance,g=o.getAttribute("data-precedence"),f=a.get(g)||l,f===l&&a.set(null,o),a.set(g,o),this.count++,l=so.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),f?f.parentNode.insertBefore(o,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),n.state.loading|=4}}var ws={$$typeof:S,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function w2(e,n,a,l,o,f,g,b){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=Hi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hi(0),this.hiddenUpdates=Hi(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=f,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function Eg(e,n,a,l,o,f,g,b,T,L,q,P){return e=new w2(e,n,a,g,b,T,L,P),n=1,f===!0&&(n|=24),f=Wt(3,null,null,n),e.current=f,f.stateNode=e,n=ic(),n.refCount++,e.pooledCache=n,n.refCount++,f.memoizedState={element:l,isDehydrated:a,cache:n},uc(f),e}function Sg(e){return e?(e=ti,e):ti}function Tg(e,n,a,l,o,f){o=Sg(o),l.context===null?l.context=o:l.pendingContext=o,l=Ir(n),l.payload={element:a},f=f===void 0?null:f,f!==null&&(l.callback=f),a=zr(e,l,n),a!==null&&(rn(a,e,n),as(a,e,n))}function Ag(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<n?a:n}}function Of(e,n){Ag(e,n),(e=e.alternate)&&Ag(e,n)}function xg(e){if(e.tag===13){var n=ei(e,67108864);n!==null&&rn(n,e,67108864),Of(e,67108864)}}var oo=!0;function C2(e,n,a,l){var o=z.T;z.T=null;var f=K.p;try{K.p=2,Rf(e,n,a,l)}finally{K.p=f,z.T=o}}function N2(e,n,a,l){var o=z.T;z.T=null;var f=K.p;try{K.p=8,Rf(e,n,a,l)}finally{K.p=f,z.T=o}}function Rf(e,n,a,l){if(oo){var o=wf(l);if(o===null)mf(e,n,l,uo,a),Rg(e,l);else if(D2(o,e,n,a,l))l.stopPropagation();else if(Rg(e,l),n&4&&-1<M2.indexOf(e)){for(;o!==null;){var f=ar(o);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var g=Ft(f.pendingLanes);if(g!==0){var b=f;for(b.pendingLanes|=2,b.entangledLanes|=2;g;){var T=1<<31-Nt(g);b.entanglements[1]|=T,g&=~T}Xn(f),(He&6)===0&&(Yl=St()+500,Es(0))}}break;case 13:b=ei(f,2),b!==null&&rn(b,f,2),Zl(),Of(f,2)}if(f=wf(l),f===null&&mf(e,n,l,uo,a),f===o)break;o=f}o!==null&&l.stopPropagation()}else mf(e,n,l,null,a)}}function wf(e){return e=Du(e),Cf(e)}var uo=null;function Cf(e){if(uo=null,e=rr(e),e!==null){var n=c(e);if(n===null)e=null;else{var a=n.tag;if(a===13){if(e=d(n),e!==null)return e;e=null}else if(a===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return uo=e,null}function Og(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(qa()){case ua:return 2;case Bi:return 8;case ca:case Tu:return 32;case Fa:return 268435456;default:return 32}default:return 32}}var Nf=!1,Wr=null,Jr=null,ea=null,Cs=new Map,Ns=new Map,ta=[],M2="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 Rg(e,n){switch(e){case"focusin":case"focusout":Wr=null;break;case"dragenter":case"dragleave":Jr=null;break;case"mouseover":case"mouseout":ea=null;break;case"pointerover":case"pointerout":Cs.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ns.delete(n.pointerId)}}function Ms(e,n,a,l,o,f){return e===null||e.nativeEvent!==f?(e={blockedOn:n,domEventName:a,eventSystemFlags:l,nativeEvent:f,targetContainers:[o]},n!==null&&(n=ar(n),n!==null&&xg(n)),e):(e.eventSystemFlags|=l,n=e.targetContainers,o!==null&&n.indexOf(o)===-1&&n.push(o),e)}function D2(e,n,a,l,o){switch(n){case"focusin":return Wr=Ms(Wr,e,n,a,l,o),!0;case"dragenter":return Jr=Ms(Jr,e,n,a,l,o),!0;case"mouseover":return ea=Ms(ea,e,n,a,l,o),!0;case"pointerover":var f=o.pointerId;return Cs.set(f,Ms(Cs.get(f)||null,e,n,a,l,o)),!0;case"gotpointercapture":return f=o.pointerId,Ns.set(f,Ms(Ns.get(f)||null,e,n,a,l,o)),!0}return!1}function wg(e){var n=rr(e.target);if(n!==null){var a=c(n);if(a!==null){if(n=a.tag,n===13){if(n=d(a),n!==null){e.blockedOn=n,zi(e.priority,function(){if(a.tag===13){var l=nn();l=Gn(l);var o=ei(a,l);o!==null&&rn(o,a,l),Of(a,l)}});return}}else if(n===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function co(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var a=wf(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Mu=l,a.target.dispatchEvent(l),Mu=null}else return n=ar(a),n!==null&&xg(n),e.blockedOn=a,!1;n.shift()}return!0}function Cg(e,n,a){co(e)&&a.delete(n)}function L2(){Nf=!1,Wr!==null&&co(Wr)&&(Wr=null),Jr!==null&&co(Jr)&&(Jr=null),ea!==null&&co(ea)&&(ea=null),Cs.forEach(Cg),Ns.forEach(Cg)}function fo(e,n){e.blockedOn===n&&(e.blockedOn=null,Nf||(Nf=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,L2)))}var ho=null;function Ng(e){ho!==e&&(ho=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){ho===e&&(ho=null);for(var n=0;n<e.length;n+=3){var a=e[n],l=e[n+1],o=e[n+2];if(typeof l!="function"){if(Cf(l||a)===null)continue;break}var f=ar(a);f!==null&&(e.splice(n,3),n-=3,wc(f,{pending:!0,data:o,method:a.method,action:l},l,o))}}))}function Ds(e){function n(T){return fo(T,e)}Wr!==null&&fo(Wr,e),Jr!==null&&fo(Jr,e),ea!==null&&fo(ea,e),Cs.forEach(n),Ns.forEach(n);for(var a=0;a<ta.length;a++){var l=ta[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<ta.length&&(a=ta[0],a.blockedOn===null);)wg(a),a.blockedOn===null&&ta.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var o=a[l],f=a[l+1],g=o[Mt]||null;if(typeof f=="function")g||Ng(a);else if(g){var b=null;if(f&&f.hasAttribute("formAction")){if(o=f,g=f[Mt]||null)b=g.formAction;else if(Cf(o)!==null)continue}else b=g.action;typeof b=="function"?a[l+1]=b:(a.splice(l,3),l-=3),Ng(a)}}}function Mf(e){this._internalRoot=e}mo.prototype.render=Mf.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(s(409));var a=n.current,l=nn();Tg(a,l,e,n,null,null)},mo.prototype.unmount=Mf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Tg(e.current,2,null,e,null,null),Zl(),n[Tt]=null}};function mo(e){this._internalRoot=e}mo.prototype.unstable_scheduleHydration=function(e){if(e){var n=Ii();e={blockedOn:null,target:e,priority:n};for(var a=0;a<ta.length&&n!==0&&n<ta[a].priority;a++);ta.splice(a,0,e),a===0&&wg(e)}};var Mg=r.version;if(Mg!=="19.1.1")throw Error(s(527,Mg,"19.1.1"));K.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=m(n),e=e!==null?p(e):null,e=e===null?null:e.stateNode,e};var B2={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var po=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!po.isDisabled&&po.supportsFiber)try{fn=po.inject(B2),Ct=po}catch{}}return Bs.createRoot=function(e,n){if(!u(e))throw Error(s(299));var a=!1,l="",o=X0,f=Z0,g=Q0,b=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(g=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(b=n.unstable_transitionCallbacks)),n=Eg(e,1,!1,null,null,a,l,o,f,g,b,null),e[Tt]=n.current,hf(e),new Mf(n)},Bs.hydrateRoot=function(e,n,a){if(!u(e))throw Error(s(299));var l=!1,o="",f=X0,g=Z0,b=Q0,T=null,L=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(g=a.onCaughtError),a.onRecoverableError!==void 0&&(b=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(T=a.unstable_transitionCallbacks),a.formState!==void 0&&(L=a.formState)),n=Eg(e,1,!0,n,a??null,l,o,f,g,b,T,L),n.context=Sg(null),a=n.current,l=nn(),l=Gn(l),o=Ir(l),o.callback=null,zr(a,o,l),a=l,n.current.lanes=a,Rn(n,a),Xn(n),e[Tt]=n.current,hf(e),new mo(n)},Bs.version="19.1.1",Bs}var kg;function V2(){if(kg)return Lf.exports;kg=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),Lf.exports=F2(),Lf.exports}var P2=V2(),H=su();const v1=gh(H);var If={exports:{}},zf={};/**
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 qg;function Y2(){if(qg)return zf;qg=1;var t=su();function r(m,p){return m===p&&(m!==0||1/m===1/p)||m!==m&&p!==p}var i=typeof Object.is=="function"?Object.is:r,s=t.useSyncExternalStore,u=t.useRef,c=t.useEffect,d=t.useMemo,h=t.useDebugValue;return zf.useSyncExternalStoreWithSelector=function(m,p,y,E,A){var U=u(null);if(U.current===null){var R={hasValue:!1,value:null};U.current=R}else R=U.current;U=d(function(){function G(x){if(!_){if(_=!0,C=x,x=E(x),A!==void 0&&R.hasValue){var Z=R.value;if(A(Z,x))return S=Z}return S=x}if(Z=S,i(C,x))return Z;var W=E(x);return A!==void 0&&A(Z,W)?(C=x,Z):(C=x,S=W)}var _=!1,C,S,I=y===void 0?null:y;return[function(){return G(p())},I===null?void 0:function(){return G(I())}]},[p,y,E,A]);var F=s(m,U[0],U[1]);return c(function(){R.hasValue=!0,R.value=F},[F]),h(F),F},zf}var Fg;function X2(){return Fg||(Fg=1,If.exports=Y2()),If.exports}var Z2=X2(),Q2=H.version.startsWith("19"),K2=Symbol.for(Q2?"react.transitional.element":"react.element"),$2=Symbol.for("react.portal"),W2=Symbol.for("react.fragment"),J2=Symbol.for("react.strict_mode"),eS=Symbol.for("react.profiler"),tS=Symbol.for("react.consumer"),nS=Symbol.for("react.context"),b1=Symbol.for("react.forward_ref"),rS=Symbol.for("react.suspense"),aS=Symbol.for("react.suspense_list"),yh=Symbol.for("react.memo"),iS=Symbol.for("react.lazy"),sS=b1,lS=yh;function oS(t){if(typeof t=="object"&&t!==null){const{$$typeof:r}=t;switch(r){case K2:switch(t=t.type,t){case W2:case eS:case J2:case rS:case aS:return t;default:switch(t=t&&t.$$typeof,t){case nS:case b1:case iS:case yh:return t;case tS:return t;default:return r}}case $2:return r}}}function uS(t){return oS(t)===yh}function cS(t,r,i,s,{areStatesEqual:u,areOwnPropsEqual:c,areStatePropsEqual:d}){let h=!1,m,p,y,E,A;function U(C,S){return m=C,p=S,y=t(m,p),E=r(s,p),A=i(y,E,p),h=!0,A}function R(){return y=t(m,p),r.dependsOnOwnProps&&(E=r(s,p)),A=i(y,E,p),A}function F(){return t.dependsOnOwnProps&&(y=t(m,p)),r.dependsOnOwnProps&&(E=r(s,p)),A=i(y,E,p),A}function G(){const C=t(m,p),S=!d(C,y);return y=C,S&&(A=i(y,E,p)),A}function _(C,S){const I=!c(S,p),x=!u(C,m,S,p);return m=C,p=S,I&&x?R():I?F():x?G():A}return function(S,I){return h?_(S,I):U(S,I)}}function fS(t,{initMapStateToProps:r,initMapDispatchToProps:i,initMergeProps:s,...u}){const c=r(t,u),d=i(t,u),h=s(t,u);return cS(c,d,h,t,u)}function dS(t,r){const i={};for(const s in t){const u=t[s];typeof u=="function"&&(i[s]=(...c)=>r(u(...c)))}return i}function Gd(t){return function(i){const s=t(i);function u(){return s}return u.dependsOnOwnProps=!1,u}}function Vg(t){return t.dependsOnOwnProps?!!t.dependsOnOwnProps:t.length!==1}function _1(t,r){return function(s,{displayName:u}){const c=function(h,m){return c.dependsOnOwnProps?c.mapToProps(h,m):c.mapToProps(h,void 0)};return c.dependsOnOwnProps=!0,c.mapToProps=function(h,m){c.mapToProps=t,c.dependsOnOwnProps=Vg(t);let p=c(h,m);return typeof p=="function"&&(c.mapToProps=p,c.dependsOnOwnProps=Vg(p),p=c(h,m)),p},c}}function vh(t,r){return(i,s)=>{throw new Error(`Invalid value of type ${typeof t} for ${r} argument when connecting component ${s.wrappedComponentName}.`)}}function hS(t){return t&&typeof t=="object"?Gd(r=>dS(t,r)):t?typeof t=="function"?_1(t):vh(t,"mapDispatchToProps"):Gd(r=>({dispatch:r}))}function mS(t){return t?typeof t=="function"?_1(t):vh(t,"mapStateToProps"):Gd(()=>({}))}function pS(t,r,i){return{...i,...t,...r}}function gS(t){return function(i,{displayName:s,areMergedPropsEqual:u}){let c=!1,d;return function(m,p,y){const E=t(m,p,y);return c?u(E,d)||(d=E):(c=!0,d=E),d}}}function yS(t){return t?typeof t=="function"?gS(t):vh(t,"mergeProps"):()=>pS}function vS(t){t()}function bS(){let t=null,r=null;return{clear(){t=null,r=null},notify(){vS(()=>{let i=t;for(;i;)i.callback(),i=i.next})},get(){const i=[];let s=t;for(;s;)i.push(s),s=s.next;return i},subscribe(i){let s=!0;const u=r={callback:i,next:null,prev:r};return u.prev?u.prev.next=u:t=u,function(){!s||t===null||(s=!1,u.next?u.next.prev=u.prev:r=u.prev,u.prev?u.prev.next=u.next:t=u.next)}}}}var Pg={notify(){},get:()=>[]};function E1(t,r){let i,s=Pg,u=0,c=!1;function d(F){y();const G=s.subscribe(F);let _=!1;return()=>{_||(_=!0,G(),E())}}function h(){s.notify()}function m(){R.onStateChange&&R.onStateChange()}function p(){return c}function y(){u++,i||(i=r?r.addNestedSub(m):t.subscribe(m),s=bS())}function E(){u--,i&&u===0&&(i(),i=void 0,s.clear(),s=Pg)}function A(){c||(c=!0,y())}function U(){c&&(c=!1,E())}const R={addNestedSub:d,notifyNestedSubs:h,handleChangeWrapper:m,isSubscribed:p,trySubscribe:A,tryUnsubscribe:U,getListeners:()=>s};return R}var _S=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ES=_S(),SS=()=>typeof navigator<"u"&&navigator.product==="ReactNative",TS=SS(),AS=()=>ES||TS?H.useLayoutEffect:H.useEffect,Ko=AS();function Yg(t,r){return t===r?t!==0||r!==0||1/t===1/r:t!==t&&r!==r}function Gf(t,r){if(Yg(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;const i=Object.keys(t),s=Object.keys(r);if(i.length!==s.length)return!1;for(let u=0;u<i.length;u++)if(!Object.prototype.hasOwnProperty.call(r,i[u])||!Yg(t[i[u]],r[i[u]]))return!1;return!0}var xS={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},RS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},S1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},wS={[sS]:RS,[lS]:S1};function Xg(t){return uS(t)?S1:wS[t.$$typeof]||xS}var CS=Object.defineProperty,NS=Object.getOwnPropertyNames,Zg=Object.getOwnPropertySymbols,MS=Object.getOwnPropertyDescriptor,DS=Object.getPrototypeOf,Qg=Object.prototype;function kd(t,r){if(typeof r!="string"){if(Qg){const c=DS(r);c&&c!==Qg&&kd(t,c)}let i=NS(r);Zg&&(i=i.concat(Zg(r)));const s=Xg(t),u=Xg(r);for(let c=0;c<i.length;++c){const d=i[c];if(!OS[d]&&!(u&&u[d])&&!(s&&s[d])){const h=MS(r,d);try{CS(t,d,h)}catch{}}}}return t}var LS=Symbol.for("react-redux-context"),BS=typeof globalThis<"u"?globalThis:{};function US(){if(!H.createContext)return{};const t=BS[LS]??=new Map;let r=t.get(H.createContext);return r||(r=H.createContext(null),t.set(H.createContext,r)),r}var Rr=US(),HS=[null,null];function jS(t,r,i){Ko(()=>t(...r),i)}function IS(t,r,i,s,u,c){t.current=s,i.current=!1,u.current&&(u.current=null,c())}function zS(t,r,i,s,u,c,d,h,m,p,y){if(!t)return()=>{};let E=!1,A=null;const U=()=>{if(E||!h.current)return;const F=r.getState();let G,_;try{G=s(F,u.current)}catch(C){_=C,A=C}_||(A=null),G===c.current?d.current||p():(c.current=G,m.current=G,d.current=!0,y())};return i.onStateChange=U,i.trySubscribe(),U(),()=>{if(E=!0,i.tryUnsubscribe(),i.onStateChange=null,A)throw A}}function GS(t,r){return t===r}function kS(t,r,i,{pure:s,areStatesEqual:u=GS,areOwnPropsEqual:c=Gf,areStatePropsEqual:d=Gf,areMergedPropsEqual:h=Gf,forwardRef:m=!1,context:p=Rr}={}){const y=p,E=mS(t),A=hS(r),U=yS(i),R=!!t;return G=>{const _=G.displayName||G.name||"Component",C=`Connect(${_})`,S={shouldHandleStateChanges:R,displayName:C,wrappedComponentName:_,WrappedComponent:G,initMapStateToProps:E,initMapDispatchToProps:A,initMergeProps:U,areStatesEqual:u,areStatePropsEqual:d,areOwnPropsEqual:c,areMergedPropsEqual:h};function I(W){const[ae,ge,Ee]=H.useMemo(()=>{const{reactReduxForwardedRef:Ze,...kt}=W;return[W.context,Ze,kt]},[W]),se=H.useMemo(()=>{let Ze=y;return ae?.Consumer,Ze},[ae,y]),me=H.useContext(se),ce=!!W.store&&!!W.store.getState&&!!W.store.dispatch,Pe=!!me&&!!me.store,be=ce?W.store:me.store,z=Pe?me.getServerState:be.getState,K=H.useMemo(()=>fS(be.dispatch,S),[be]),[ee,Ae]=H.useMemo(()=>{if(!R)return HS;const Ze=E1(be,ce?void 0:me.subscription),kt=Ze.notifyNestedSubs.bind(Ze);return[Ze,kt]},[be,ce,me]),O=H.useMemo(()=>ce?me:{...me,subscription:ee},[ce,me,ee]),k=H.useRef(void 0),$=H.useRef(Ee),Y=H.useRef(void 0),te=H.useRef(!1),re=H.useRef(!1),ue=H.useRef(void 0);Ko(()=>(re.current=!0,()=>{re.current=!1}),[]);const $e=H.useMemo(()=>()=>Y.current&&Ee===$.current?Y.current:K(be.getState(),Ee),[be,Ee]),Ue=H.useMemo(()=>kt=>ee?zS(R,be,ee,K,$,k,te,re,Y,Ae,kt):()=>{},[ee]);jS(IS,[$,k,te,Ee,Y,Ae]);let Et;try{Et=H.useSyncExternalStore(Ue,$e,z?()=>K(z(),Ee):$e)}catch(Ze){throw ue.current&&(Ze.message+=`
58
+ The error may be correlated with this previous error:
59
+ ${ue.current.stack}
60
+
61
+ `),Ze}Ko(()=>{ue.current=void 0,Y.current=void 0,k.current=Et});const zn=H.useMemo(()=>H.createElement(G,{...Et,ref:ge}),[ge,G,Et]);return H.useMemo(()=>R?H.createElement(se.Provider,{value:O},zn):zn,[se,zn,O])}const Z=H.memo(I);if(Z.WrappedComponent=G,Z.displayName=I.displayName=C,m){const ae=H.forwardRef(function(Ee,se){return H.createElement(Z,{...Ee,reactReduxForwardedRef:se})});return ae.displayName=C,ae.WrappedComponent=G,kd(ae,G)}return kd(Z,G)}}var qS=kS;function FS(t){const{children:r,context:i,serverState:s,store:u}=t,c=H.useMemo(()=>{const m=E1(u);return{store:u,subscription:m,getServerState:s?()=>s:void 0}},[u,s]),d=H.useMemo(()=>u.getState(),[u]);Ko(()=>{const{subscription:m}=c;return m.onStateChange=m.notifyNestedSubs,m.trySubscribe(),d!==u.getState()&&m.notifyNestedSubs(),()=>{m.tryUnsubscribe(),m.onStateChange=void 0}},[c,d]);const h=i||Rr;return H.createElement(h.Provider,{value:c},r)}var VS=FS;function bh(t=Rr){return function(){return H.useContext(t)}}var T1=bh();function A1(t=Rr){const r=t===Rr?T1:bh(t),i=()=>{const{store:s}=r();return s};return Object.assign(i,{withTypes:()=>i}),i}var PS=A1();function YS(t=Rr){const r=t===Rr?PS:A1(t),i=()=>r().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var XS=YS(),ZS=(t,r)=>t===r;function QS(t=Rr){const r=t===Rr?T1:bh(t),i=(s,u={})=>{const{equalityFn:c=ZS}=typeof u=="function"?{equalityFn:u}:u,d=r(),{store:h,subscription:m,getServerState:p}=d;H.useRef(!0);const y=H.useCallback({[s.name](A){return s(A)}}[s.name],[s]),E=Z2.useSyncExternalStoreWithSelector(m.addNestedSub,h.getState,p||h.getState,y,c);return H.useDebugValue(E),E};return Object.assign(i,{withTypes:()=>i}),i}var KS=QS(),kf={exports:{}};/*!
62
+ Copyright (c) 2018 Jed Watson.
63
+ Licensed under the MIT License (MIT), see
64
+ http://jedwatson.github.io/classnames
65
+ */var Kg;function $S(){return Kg||(Kg=1,function(t){(function(){var r={}.hasOwnProperty;function i(){for(var c="",d=0;d<arguments.length;d++){var h=arguments[d];h&&(c=u(c,s(h)))}return c}function s(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 d="";for(var h in c)r.call(c,h)&&c[h]&&(d=u(d,h));return d}function u(c,d){return d?c?c+" "+d:c+d:c}t.exports?(i.default=i,t.exports=i):window.classNames=i})()}(kf)),kf.exports}var WS=$S();const Q=gh(WS);var qd=function(t,r){return qd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s}||function(i,s){for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(i[u]=s[u])},qd(t,r)};function Tn(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");qd(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}var ie=function(){return ie=Object.assign||function(r){for(var i,s=1,u=arguments.length;s<u;s++){i=arguments[s];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(r[c]=i[c])}return r},ie.apply(this,arguments)};function lu(t,r){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&r.indexOf(s)<0&&(i[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,s=Object.getOwnPropertySymbols(t);u<s.length;u++)r.indexOf(s[u])<0&&Object.prototype.propertyIsEnumerable.call(t,s[u])&&(i[s[u]]=t[s[u]]);return i}function $n(t,r,i){if(i||arguments.length===2)for(var s=0,u=r.length,c;s<u;s++)(c||!(s in r))&&(c||(c=Array.prototype.slice.call(r,0,s)),c[s]=r[s]);return t.concat(c||Array.prototype.slice.call(r))}function Qn(t,r){var i=r&&r.cache?r.cache:iT,s=r&&r.serializer?r.serializer:rT,u=r&&r.strategy?r.strategy:tT;return u(t,{cache:i,serializer:s})}function JS(t){return t==null||typeof t=="number"||typeof t=="boolean"}function eT(t,r,i,s){var u=JS(s)?s:i(s),c=r.get(u);return typeof c>"u"&&(c=t.call(this,s),r.set(u,c)),c}function x1(t,r,i){var s=Array.prototype.slice.call(arguments,3),u=i(s),c=r.get(u);return typeof c>"u"&&(c=t.apply(this,s),r.set(u,c)),c}function O1(t,r,i,s,u){return i.bind(r,t,s,u)}function tT(t,r){var i=t.length===1?eT:x1;return O1(t,this,i,r.cache.create(),r.serializer)}function nT(t,r){return O1(t,this,x1,r.cache.create(),r.serializer)}var rT=function(){return JSON.stringify(arguments)},aT=function(){function t(){this.cache=Object.create(null)}return t.prototype.get=function(r){return this.cache[r]},t.prototype.set=function(r,i){this.cache[r]=i},t}(),iT={create:function(){return new aT}},Kn={variadic:nT},we;(function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(we||(we={}));var Ye;(function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"})(Ye||(Ye={}));var Ri;(function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"})(Ri||(Ri={}));function $g(t){return t.type===Ye.literal}function sT(t){return t.type===Ye.argument}function R1(t){return t.type===Ye.number}function w1(t){return t.type===Ye.date}function C1(t){return t.type===Ye.time}function N1(t){return t.type===Ye.select}function M1(t){return t.type===Ye.plural}function lT(t){return t.type===Ye.pound}function D1(t){return t.type===Ye.tag}function L1(t){return!!(t&&typeof t=="object"&&t.type===Ri.number)}function Fd(t){return!!(t&&typeof t=="object"&&t.type===Ri.dateTime)}var B1=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,oT=/(?:[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 uT(t){var r={};return t.replace(oT,function(i){var s=i.length;switch(i[0]){case"G":r.era=s===4?"long":s===5?"narrow":"short";break;case"y":r.year=s===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"][s-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":r.day=["numeric","2-digit"][s-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=s===4?"long":s===5?"narrow":"short";break;case"e":if(s<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][s-4];break;case"c":if(s<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][s-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"][s-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][s-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][s-1];break;case"k":r.hourCycle="h24",r.hour=["numeric","2-digit"][s-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"][s-1];break;case"s":r.second=["numeric","2-digit"][s-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":r.timeZoneName=s<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 cT=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function fT(t){if(t.length===0)throw new Error("Number skeleton cannot be empty");for(var r=t.split(cT).filter(function(A){return A.length>0}),i=[],s=0,u=r;s<u.length;s++){var c=u[s],d=c.split("/");if(d.length===0)throw new Error("Invalid number skeleton");for(var h=d[0],m=d.slice(1),p=0,y=m;p<y.length;p++){var E=y[p];if(E.length===0)throw new Error("Invalid number skeleton")}i.push({stem:h,options:m})}return i}function dT(t){return t.replace(/^(.*?)-/,"")}var Wg=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,U1=/^(@+)?(\+|#+)?[rs]?$/g,hT=/(\*)(0+)|(#+)(0+)|(0+)/g,H1=/^(0+)$/;function Jg(t){var r={};return t[t.length-1]==="r"?r.roundingPriority="morePrecision":t[t.length-1]==="s"&&(r.roundingPriority="lessPrecision"),t.replace(U1,function(i,s,u){return typeof u!="string"?(r.minimumSignificantDigits=s.length,r.maximumSignificantDigits=s.length):u==="+"?r.minimumSignificantDigits=s.length:s[0]==="#"?r.maximumSignificantDigits=s.length:(r.minimumSignificantDigits=s.length,r.maximumSignificantDigits=s.length+(typeof u=="string"?u.length:0)),""}),r}function j1(t){switch(t){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 mT(t){var r;if(t[0]==="E"&&t[1]==="E"?(r={notation:"engineering"},t=t.slice(2)):t[0]==="E"&&(r={notation:"scientific"},t=t.slice(1)),r){var i=t.slice(0,2);if(i==="+!"?(r.signDisplay="always",t=t.slice(2)):i==="+?"&&(r.signDisplay="exceptZero",t=t.slice(2)),!H1.test(t))throw new Error("Malformed concise eng/scientific notation");r.minimumIntegerDigits=t.length}return r}function ey(t){var r={},i=j1(t);return i||r}function pT(t){for(var r={},i=0,s=t;i<s.length;i++){var u=s[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=dT(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=ie(ie(ie({},r),{notation:"scientific"}),u.options.reduce(function(m,p){return ie(ie({},m),ey(p))},{}));continue;case"engineering":r=ie(ie(ie({},r),{notation:"engineering"}),u.options.reduce(function(m,p){return ie(ie({},m),ey(p))},{}));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(hT,function(m,p,y,E,A,U){if(p)r.minimumIntegerDigits=y.length;else{if(E&&A)throw new Error("We currently do not support maximum integer digits");if(U)throw new Error("We currently do not support exact integer digits")}return""});continue}if(H1.test(u.stem)){r.minimumIntegerDigits=u.stem.length;continue}if(Wg.test(u.stem)){if(u.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");u.stem.replace(Wg,function(m,p,y,E,A,U){return y==="*"?r.minimumFractionDigits=p.length:E&&E[0]==="#"?r.maximumFractionDigits=E.length:A&&U?(r.minimumFractionDigits=A.length,r.maximumFractionDigits=A.length+U.length):(r.minimumFractionDigits=p.length,r.maximumFractionDigits=p.length),""});var c=u.options[0];c==="w"?r=ie(ie({},r),{trailingZeroDisplay:"stripIfInteger"}):c&&(r=ie(ie({},r),Jg(c)));continue}if(U1.test(u.stem)){r=ie(ie({},r),Jg(u.stem));continue}var d=j1(u.stem);d&&(r=ie(ie({},r),d));var h=mT(u.stem);h&&(r=ie(ie({},r),h))}return r}var yo={"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 gT(t,r){for(var i="",s=0;s<t.length;s++){var u=t.charAt(s);if(u==="j"){for(var c=0;s+1<t.length&&t.charAt(s+1)===u;)c++,s++;var d=1+(c&1),h=c<2?1:3+(c>>1),m="a",p=yT(r);for((p=="H"||p=="k")&&(h=0);h-- >0;)i+=m;for(;d-- >0;)i=p+i}else u==="J"?i+="H":i+=u}return i}function yT(t){var r=t.hourCycle;if(r===void 0&&t.hourCycles&&t.hourCycles.length&&(r=t.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=t.language,s;i!=="root"&&(s=t.maximize().region);var u=yo[s||""]||yo[i||""]||yo["".concat(i,"-001")]||yo["001"];return u[0]}var qf,vT=new RegExp("^".concat(B1.source,"*")),bT=new RegExp("".concat(B1.source,"*$"));function Me(t,r){return{start:t,end:r}}var _T=!!String.prototype.startsWith&&"_a".startsWith("a",1),ET=!!String.fromCodePoint,ST=!!Object.fromEntries,TT=!!String.prototype.codePointAt,AT=!!String.prototype.trimStart,xT=!!String.prototype.trimEnd,OT=!!Number.isSafeInteger,RT=OT?Number.isSafeInteger:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Vd=!0;try{var wT=z1("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Vd=((qf=wT.exec("a"))===null||qf===void 0?void 0:qf[0])==="a"}catch{Vd=!1}var ty=_T?function(r,i,s){return r.startsWith(i,s)}:function(r,i,s){return r.slice(s,s+i.length)===i},Pd=ET?String.fromCodePoint:function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];for(var s="",u=r.length,c=0,d;u>c;){if(d=r[c++],d>1114111)throw RangeError(d+" is not a valid code point");s+=d<65536?String.fromCharCode(d):String.fromCharCode(((d-=65536)>>10)+55296,d%1024+56320)}return s},ny=ST?Object.fromEntries:function(r){for(var i={},s=0,u=r;s<u.length;s++){var c=u[s],d=c[0],h=c[1];i[d]=h}return i},I1=TT?function(r,i){return r.codePointAt(i)}:function(r,i){var s=r.length;if(!(i<0||i>=s)){var u=r.charCodeAt(i),c;return u<55296||u>56319||i+1===s||(c=r.charCodeAt(i+1))<56320||c>57343?u:(u-55296<<10)+(c-56320)+65536}},CT=AT?function(r){return r.trimStart()}:function(r){return r.replace(vT,"")},NT=xT?function(r){return r.trimEnd()}:function(r){return r.replace(bT,"")};function z1(t,r){return new RegExp(t,r)}var Yd;if(Vd){var ry=z1("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Yd=function(r,i){var s;ry.lastIndex=i;var u=ry.exec(r);return(s=u[1])!==null&&s!==void 0?s:""}}else Yd=function(r,i){for(var s=[];;){var u=I1(r,i);if(u===void 0||G1(u)||BT(u))break;s.push(u),i+=u>=65536?2:1}return Pd.apply(void 0,s)};var MT=function(){function t(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 t.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(r,i,s){for(var u=[];!this.isEOF();){var c=this.char();if(c===123){var d=this.parseArgument(r,s);if(d.err)return d;u.push(d.val)}else{if(c===125&&r>0)break;if(c===35&&(i==="plural"||i==="selectordinal")){var h=this.clonePosition();this.bump(),u.push({type:Ye.pound,location:Me(h,this.clonePosition())})}else if(c===60&&!this.ignoreTag&&this.peek()===47){if(s)break;return this.error(we.UNMATCHED_CLOSING_TAG,Me(this.clonePosition(),this.clonePosition()))}else if(c===60&&!this.ignoreTag&&Xd(this.peek()||0)){var d=this.parseTag(r,i);if(d.err)return d;u.push(d.val)}else{var d=this.parseLiteral(r,i);if(d.err)return d;u.push(d.val)}}}return{val:u,err:null}},t.prototype.parseTag=function(r,i){var s=this.clonePosition();this.bump();var u=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ye.literal,value:"<".concat(u,"/>"),location:Me(s,this.clonePosition())},err:null};if(this.bumpIf(">")){var c=this.parseMessage(r+1,i,!0);if(c.err)return c;var d=c.val,h=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Xd(this.char()))return this.error(we.INVALID_TAG,Me(h,this.clonePosition()));var m=this.clonePosition(),p=this.parseTagName();return u!==p?this.error(we.UNMATCHED_CLOSING_TAG,Me(m,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ye.tag,value:u,children:d,location:Me(s,this.clonePosition())},err:null}:this.error(we.INVALID_TAG,Me(h,this.clonePosition())))}else return this.error(we.UNCLOSED_TAG,Me(s,this.clonePosition()))}else return this.error(we.INVALID_TAG,Me(s,this.clonePosition()))},t.prototype.parseTagName=function(){var r=this.offset();for(this.bump();!this.isEOF()&&LT(this.char());)this.bump();return this.message.slice(r,this.offset())},t.prototype.parseLiteral=function(r,i){for(var s=this.clonePosition(),u="";;){var c=this.tryParseQuote(i);if(c){u+=c;continue}var d=this.tryParseUnquoted(r,i);if(d){u+=d;continue}var h=this.tryParseLeftAngleBracket();if(h){u+=h;continue}break}var m=Me(s,this.clonePosition());return{val:{type:Ye.literal,value:u,location:m},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!DT(this.peek()||0))?(this.bump(),"<"):null},t.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 s=this.char();if(s===39)if(this.peek()===39)i.push(39),this.bump();else{this.bump();break}else i.push(s);this.bump()}return Pd.apply(void 0,i)},t.prototype.tryParseUnquoted=function(r,i){if(this.isEOF())return null;var s=this.char();return s===60||s===123||s===35&&(i==="plural"||i==="selectordinal")||s===125&&r>0?null:(this.bump(),Pd(s))},t.prototype.parseArgument=function(r,i){var s=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(we.EXPECT_ARGUMENT_CLOSING_BRACE,Me(s,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(we.EMPTY_ARGUMENT,Me(s,this.clonePosition()));var u=this.parseIdentifierIfPossible().value;if(!u)return this.error(we.MALFORMED_ARGUMENT,Me(s,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(we.EXPECT_ARGUMENT_CLOSING_BRACE,Me(s,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ye.argument,value:u,location:Me(s,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(we.EXPECT_ARGUMENT_CLOSING_BRACE,Me(s,this.clonePosition())):this.parseArgumentOptions(r,i,u,s);default:return this.error(we.MALFORMED_ARGUMENT,Me(s,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var r=this.clonePosition(),i=this.offset(),s=Yd(this.message,i),u=i+s.length;this.bumpTo(u);var c=this.clonePosition(),d=Me(r,c);return{value:s,location:d}},t.prototype.parseArgumentOptions=function(r,i,s,u){var c,d=this.clonePosition(),h=this.parseIdentifierIfPossible().value,m=this.clonePosition();switch(h){case"":return this.error(we.EXPECT_ARGUMENT_TYPE,Me(d,m));case"number":case"date":case"time":{this.bumpSpace();var p=null;if(this.bumpIf(",")){this.bumpSpace();var y=this.clonePosition(),E=this.parseSimpleArgStyleIfPossible();if(E.err)return E;var A=NT(E.val);if(A.length===0)return this.error(we.EXPECT_ARGUMENT_STYLE,Me(this.clonePosition(),this.clonePosition()));var U=Me(y,this.clonePosition());p={style:A,styleLocation:U}}var R=this.tryParseArgumentClose(u);if(R.err)return R;var F=Me(u,this.clonePosition());if(p&&ty(p?.style,"::",0)){var G=CT(p.style.slice(2));if(h==="number"){var E=this.parseNumberSkeletonFromString(G,p.styleLocation);return E.err?E:{val:{type:Ye.number,value:s,location:F,style:E.val},err:null}}else{if(G.length===0)return this.error(we.EXPECT_DATE_TIME_SKELETON,F);var _=G;this.locale&&(_=gT(G,this.locale));var A={type:Ri.dateTime,pattern:_,location:p.styleLocation,parsedOptions:this.shouldParseSkeletons?uT(_):{}},C=h==="date"?Ye.date:Ye.time;return{val:{type:C,value:s,location:F,style:A},err:null}}}return{val:{type:h==="number"?Ye.number:h==="date"?Ye.date:Ye.time,value:s,location:F,style:(c=p?.style)!==null&&c!==void 0?c:null},err:null}}case"plural":case"selectordinal":case"select":{var S=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(we.EXPECT_SELECT_ARGUMENT_OPTIONS,Me(S,ie({},S)));this.bumpSpace();var I=this.parseIdentifierIfPossible(),x=0;if(h!=="select"&&I.value==="offset"){if(!this.bumpIf(":"))return this.error(we.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Me(this.clonePosition(),this.clonePosition()));this.bumpSpace();var E=this.tryParseDecimalInteger(we.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,we.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(E.err)return E;this.bumpSpace(),I=this.parseIdentifierIfPossible(),x=E.val}var Z=this.tryParsePluralOrSelectOptions(r,h,i,I);if(Z.err)return Z;var R=this.tryParseArgumentClose(u);if(R.err)return R;var W=Me(u,this.clonePosition());return h==="select"?{val:{type:Ye.select,value:s,options:ny(Z.val),location:W},err:null}:{val:{type:Ye.plural,value:s,options:ny(Z.val),offset:x,pluralType:h==="plural"?"cardinal":"ordinal",location:W},err:null}}default:return this.error(we.INVALID_ARGUMENT_TYPE,Me(d,m))}},t.prototype.tryParseArgumentClose=function(r){return this.isEOF()||this.char()!==125?this.error(we.EXPECT_ARGUMENT_CLOSING_BRACE,Me(r,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var r=0,i=this.clonePosition();!this.isEOF();){var s=this.char();switch(s){case 39:{this.bump();var u=this.clonePosition();if(!this.bumpUntil("'"))return this.error(we.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Me(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}},t.prototype.parseNumberSkeletonFromString=function(r,i){var s=[];try{s=fT(r)}catch{return this.error(we.INVALID_NUMBER_SKELETON,i)}return{val:{type:Ri.number,tokens:s,location:i,parsedOptions:this.shouldParseSkeletons?pT(s):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(r,i,s,u){for(var c,d=!1,h=[],m=new Set,p=u.value,y=u.location;;){if(p.length===0){var E=this.clonePosition();if(i!=="select"&&this.bumpIf("=")){var A=this.tryParseDecimalInteger(we.EXPECT_PLURAL_ARGUMENT_SELECTOR,we.INVALID_PLURAL_ARGUMENT_SELECTOR);if(A.err)return A;y=Me(E,this.clonePosition()),p=this.message.slice(E.offset,this.offset())}else break}if(m.has(p))return this.error(i==="select"?we.DUPLICATE_SELECT_ARGUMENT_SELECTOR:we.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,y);p==="other"&&(d=!0),this.bumpSpace();var U=this.clonePosition();if(!this.bumpIf("{"))return this.error(i==="select"?we.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:we.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Me(this.clonePosition(),this.clonePosition()));var R=this.parseMessage(r+1,i,s);if(R.err)return R;var F=this.tryParseArgumentClose(U);if(F.err)return F;h.push([p,{value:R.val,location:Me(U,this.clonePosition())}]),m.add(p),this.bumpSpace(),c=this.parseIdentifierIfPossible(),p=c.value,y=c.location}return h.length===0?this.error(i==="select"?we.EXPECT_SELECT_ARGUMENT_SELECTOR:we.EXPECT_PLURAL_ARGUMENT_SELECTOR,Me(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!d?this.error(we.MISSING_OTHER_CLAUSE,Me(this.clonePosition(),this.clonePosition())):{val:h,err:null}},t.prototype.tryParseDecimalInteger=function(r,i){var s=1,u=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(s=-1);for(var c=!1,d=0;!this.isEOF();){var h=this.char();if(h>=48&&h<=57)c=!0,d=d*10+(h-48),this.bump();else break}var m=Me(u,this.clonePosition());return c?(d*=s,RT(d)?{val:d,err:null}:this.error(i,m)):this.error(r,m)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var r=this.position.offset;if(r>=this.message.length)throw Error("out of bound");var i=I1(this.message,r);if(i===void 0)throw Error("Offset ".concat(r," is at invalid UTF-16 code unit boundary"));return i},t.prototype.error=function(r,i){return{val:null,err:{kind:r,message:this.message,location:i}}},t.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)}},t.prototype.bumpIf=function(r){if(ty(this.message,r,this.offset())){for(var i=0;i<r.length;i++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(r){var i=this.offset(),s=this.message.indexOf(r,i);return s>=0?(this.bumpTo(s),!0):(this.bumpTo(this.message.length),!1)},t.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}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&G1(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var r=this.char(),i=this.offset(),s=this.message.charCodeAt(i+(r>=65536?2:1));return s??null},t}();function Xd(t){return t>=97&&t<=122||t>=65&&t<=90}function DT(t){return Xd(t)||t===47}function LT(t){return t===45||t===46||t>=48&&t<=57||t===95||t>=97&&t<=122||t>=65&&t<=90||t==183||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function G1(t){return t>=9&&t<=13||t===32||t===133||t>=8206&&t<=8207||t===8232||t===8233}function BT(t){return t>=33&&t<=35||t===36||t>=37&&t<=39||t===40||t===41||t===42||t===43||t===44||t===45||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||t===91||t===92||t===93||t===94||t===96||t===123||t===124||t===125||t===126||t===161||t>=162&&t<=165||t===166||t===167||t===169||t===171||t===172||t===174||t===176||t===177||t===182||t===187||t===191||t===215||t===247||t>=8208&&t<=8213||t>=8214&&t<=8215||t===8216||t===8217||t===8218||t>=8219&&t<=8220||t===8221||t===8222||t===8223||t>=8224&&t<=8231||t>=8240&&t<=8248||t===8249||t===8250||t>=8251&&t<=8254||t>=8257&&t<=8259||t===8260||t===8261||t===8262||t>=8263&&t<=8273||t===8274||t===8275||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||t===8608||t>=8609&&t<=8610||t===8611||t>=8612&&t<=8613||t===8614||t>=8615&&t<=8621||t===8622||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||t===8658||t===8659||t===8660||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||t===8968||t===8969||t===8970||t===8971||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||t===9001||t===9002||t>=9003&&t<=9083||t===9084||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||t===9655||t>=9656&&t<=9664||t===9665||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||t===9839||t>=9840&&t<=10087||t===10088||t===10089||t===10090||t===10091||t===10092||t===10093||t===10094||t===10095||t===10096||t===10097||t===10098||t===10099||t===10100||t===10101||t>=10132&&t<=10175||t>=10176&&t<=10180||t===10181||t===10182||t>=10183&&t<=10213||t===10214||t===10215||t===10216||t===10217||t===10218||t===10219||t===10220||t===10221||t===10222||t===10223||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||t===10627||t===10628||t===10629||t===10630||t===10631||t===10632||t===10633||t===10634||t===10635||t===10636||t===10637||t===10638||t===10639||t===10640||t===10641||t===10642||t===10643||t===10644||t===10645||t===10646||t===10647||t===10648||t>=10649&&t<=10711||t===10712||t===10713||t===10714||t===10715||t>=10716&&t<=10747||t===10748||t===10749||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||t===11158||t>=11159&&t<=11263||t>=11776&&t<=11777||t===11778||t===11779||t===11780||t===11781||t>=11782&&t<=11784||t===11785||t===11786||t===11787||t===11788||t===11789||t>=11790&&t<=11798||t===11799||t>=11800&&t<=11801||t===11802||t===11803||t===11804||t===11805||t>=11806&&t<=11807||t===11808||t===11809||t===11810||t===11811||t===11812||t===11813||t===11814||t===11815||t===11816||t===11817||t>=11818&&t<=11822||t===11823||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||t===11840||t===11841||t===11842||t>=11843&&t<=11855||t>=11856&&t<=11857||t===11858||t>=11859&&t<=11903||t>=12289&&t<=12291||t===12296||t===12297||t===12298||t===12299||t===12300||t===12301||t===12302||t===12303||t===12304||t===12305||t>=12306&&t<=12307||t===12308||t===12309||t===12310||t===12311||t===12312||t===12313||t===12314||t===12315||t===12316||t===12317||t>=12318&&t<=12319||t===12320||t===12336||t===64830||t===64831||t>=65093&&t<=65094}function Zd(t){t.forEach(function(r){if(delete r.location,N1(r)||M1(r))for(var i in r.options)delete r.options[i].location,Zd(r.options[i].value);else R1(r)&&L1(r.style)||(w1(r)||C1(r))&&Fd(r.style)?delete r.style.location:D1(r)&&Zd(r.children)})}function UT(t,r){r===void 0&&(r={}),r=ie({shouldParseSkeletons:!0,requiresOtherClause:!0},r);var i=new MT(t,r).parse();if(i.err){var s=SyntaxError(we[i.err.kind]);throw s.location=i.err.location,s.originalMessage=i.err.message,s}return r?.captureLocation||Zd(i.val),i.val}var Jn;(function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"})(Jn||(Jn={}));var oa=function(t){Tn(r,t);function r(i,s,u){var c=t.call(this,i)||this;return c.code=s,c.originalMessage=u,c}return r.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},r}(Error),ay=function(t){Tn(r,t);function r(i,s,u,c){return t.call(this,'Invalid values for "'.concat(i,'": "').concat(s,'". Options are "').concat(Object.keys(u).join('", "'),'"'),Jn.INVALID_VALUE,c)||this}return r}(oa),HT=function(t){Tn(r,t);function r(i,s,u){return t.call(this,'Value for "'.concat(i,'" must be of type ').concat(s),Jn.INVALID_VALUE,u)||this}return r}(oa),jT=function(t){Tn(r,t);function r(i,s){return t.call(this,'The intl string context variable "'.concat(i,'" was not provided to the string "').concat(s,'"'),Jn.MISSING_VALUE,s)||this}return r}(oa),jt;(function(t){t[t.literal=0]="literal",t[t.object=1]="object"})(jt||(jt={}));function IT(t){return t.length<2?t:t.reduce(function(r,i){var s=r[r.length-1];return!s||s.type!==jt.literal||i.type!==jt.literal?r.push(i):s.value+=i.value,r},[])}function k1(t){return typeof t=="function"}function qo(t,r,i,s,u,c,d){if(t.length===1&&$g(t[0]))return[{type:jt.literal,value:t[0].value}];for(var h=[],m=0,p=t;m<p.length;m++){var y=p[m];if($g(y)){h.push({type:jt.literal,value:y.value});continue}if(lT(y)){typeof c=="number"&&h.push({type:jt.literal,value:i.getNumberFormat(r).format(c)});continue}var E=y.value;if(!(u&&E in u))throw new jT(E,d);var A=u[E];if(sT(y)){(!A||typeof A=="string"||typeof A=="number")&&(A=typeof A=="string"||typeof A=="number"?String(A):""),h.push({type:typeof A=="string"?jt.literal:jt.object,value:A});continue}if(w1(y)){var U=typeof y.style=="string"?s.date[y.style]:Fd(y.style)?y.style.parsedOptions:void 0;h.push({type:jt.literal,value:i.getDateTimeFormat(r,U).format(A)});continue}if(C1(y)){var U=typeof y.style=="string"?s.time[y.style]:Fd(y.style)?y.style.parsedOptions:s.time.medium;h.push({type:jt.literal,value:i.getDateTimeFormat(r,U).format(A)});continue}if(R1(y)){var U=typeof y.style=="string"?s.number[y.style]:L1(y.style)?y.style.parsedOptions:void 0;U&&U.scale&&(A=A*(U.scale||1)),h.push({type:jt.literal,value:i.getNumberFormat(r,U).format(A)});continue}if(D1(y)){var R=y.children,F=y.value,G=u[F];if(!k1(G))throw new HT(F,"function",d);var _=qo(R,r,i,s,u,c),C=G(_.map(function(x){return x.value}));Array.isArray(C)||(C=[C]),h.push.apply(h,C.map(function(x){return{type:typeof x=="string"?jt.literal:jt.object,value:x}}))}if(N1(y)){var S=y.options[A]||y.options.other;if(!S)throw new ay(y.value,A,Object.keys(y.options),d);h.push.apply(h,qo(S.value,r,i,s,u));continue}if(M1(y)){var S=y.options["=".concat(A)];if(!S){if(!Intl.PluralRules)throw new oa(`Intl.PluralRules is not available in this environment.
66
+ Try polyfilling it using "@formatjs/intl-pluralrules"
67
+ `,Jn.MISSING_INTL_API,d);var I=i.getPluralRules(r,{type:y.pluralType}).select(A-(y.offset||0));S=y.options[I]||y.options.other}if(!S)throw new ay(y.value,A,Object.keys(y.options),d);h.push.apply(h,qo(S.value,r,i,s,u,A-(y.offset||0)));continue}}return IT(h)}function zT(t,r){return r?ie(ie(ie({},t||{}),r||{}),Object.keys(t).reduce(function(i,s){return i[s]=ie(ie({},t[s]),r[s]||{}),i},{})):t}function GT(t,r){return r?Object.keys(t).reduce(function(i,s){return i[s]=zT(t[s],r[s]),i},ie({},t)):t}function Ff(t){return{create:function(){return{get:function(r){return t[r]},set:function(r,i){t[r]=i}}}}}function kT(t){return t===void 0&&(t={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Qn(function(){for(var r,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((r=Intl.NumberFormat).bind.apply(r,$n([void 0],i,!1)))},{cache:Ff(t.number),strategy:Kn.variadic}),getDateTimeFormat:Qn(function(){for(var r,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((r=Intl.DateTimeFormat).bind.apply(r,$n([void 0],i,!1)))},{cache:Ff(t.dateTime),strategy:Kn.variadic}),getPluralRules:Qn(function(){for(var r,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((r=Intl.PluralRules).bind.apply(r,$n([void 0],i,!1)))},{cache:Ff(t.pluralRules),strategy:Kn.variadic})}}var q1=function(){function t(r,i,s,u){i===void 0&&(i=t.defaultLocale);var c=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(m){var p=c.formatToParts(m);if(p.length===1)return p[0].value;var y=p.reduce(function(E,A){return!E.length||A.type!==jt.literal||typeof E[E.length-1]!="string"?E.push(A.value):E[E.length-1]+=A.value,E},[]);return y.length<=1?y[0]||"":y},this.formatToParts=function(m){return qo(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=t.resolveLocale(i),typeof r=="string"){if(this.message=r,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var d=u||{};d.formatters;var h=lu(d,["formatters"]);this.ast=t.__parse(r,ie(ie({},h),{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=GT(t.formats,s),this.formatters=u&&u.formatters||kT(this.formatterCache)}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.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])}},t.__parse=UT,t.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"}}},t}(),za;(function(t){t.FORMAT_ERROR="FORMAT_ERROR",t.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",t.INVALID_CONFIG="INVALID_CONFIG",t.MISSING_DATA="MISSING_DATA",t.MISSING_TRANSLATION="MISSING_TRANSLATION"})(za||(za={}));var el=function(t){Tn(r,t);function r(i,s,u){var c=this,d=u?u instanceof Error?u:new Error(String(u)):void 0;return c=t.call(this,"[@formatjs/intl Error ".concat(i,"] ").concat(s,`
68
+ `).concat(d?`
69
+ `.concat(d.message,`
70
+ `).concat(d.stack):""))||this,c.code=i,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(c,r),c}return r}(Error),qT=function(t){Tn(r,t);function r(i,s){return t.call(this,za.UNSUPPORTED_FORMATTER,i,s)||this}return r}(el),FT=function(t){Tn(r,t);function r(i,s){return t.call(this,za.INVALID_CONFIG,i,s)||this}return r}(el),iy=function(t){Tn(r,t);function r(i,s){return t.call(this,za.MISSING_DATA,i,s)||this}return r}(el),An=function(t){Tn(r,t);function r(i,s,u){var c=t.call(this,za.FORMAT_ERROR,"".concat(i,`
71
+ Locale: `).concat(s,`
72
+ `),u)||this;return c.locale=s,c}return r}(el),Vf=function(t){Tn(r,t);function r(i,s,u,c){var d=t.call(this,"".concat(i,`
73
+ MessageID: `).concat(u?.id,`
74
+ Default Message: `).concat(u?.defaultMessage,`
75
+ Description: `).concat(u?.description,`
76
+ `),s,c)||this;return d.descriptor=u,d.locale=s,d}return r}(An),VT=function(t){Tn(r,t);function r(i,s){var u=t.call(this,za.MISSING_TRANSLATION,'Missing message: "'.concat(i.id,'" for locale "').concat(s,'", using ').concat(i.defaultMessage?"default message (".concat(typeof i.defaultMessage=="string"?i.defaultMessage:i.defaultMessage.map(function(c){var d;return(d=c.value)!==null&&d!==void 0?d:JSON.stringify(c)}).join(),")"):"id"," as fallback."))||this;return u.descriptor=i,u}return r}(el);function PT(t,r,i){if(i===void 0&&(i=Error),!t)throw new i(r)}function Ni(t,r,i){return i===void 0&&(i={}),r.reduce(function(s,u){return u in t?s[u]=t[u]:u in i&&(s[u]=i[u]),s},{})}var YT=function(t){},XT=function(t){},F1={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:YT,onWarn:XT};function V1(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Na(t){return{create:function(){return{get:function(r){return t[r]},set:function(r,i){t[r]=i}}}}}function ZT(t){t===void 0&&(t=V1());var r=Intl.RelativeTimeFormat,i=Intl.ListFormat,s=Intl.DisplayNames,u=Qn(function(){for(var h,m=[],p=0;p<arguments.length;p++)m[p]=arguments[p];return new((h=Intl.DateTimeFormat).bind.apply(h,$n([void 0],m,!1)))},{cache:Na(t.dateTime),strategy:Kn.variadic}),c=Qn(function(){for(var h,m=[],p=0;p<arguments.length;p++)m[p]=arguments[p];return new((h=Intl.NumberFormat).bind.apply(h,$n([void 0],m,!1)))},{cache:Na(t.number),strategy:Kn.variadic}),d=Qn(function(){for(var h,m=[],p=0;p<arguments.length;p++)m[p]=arguments[p];return new((h=Intl.PluralRules).bind.apply(h,$n([void 0],m,!1)))},{cache:Na(t.pluralRules),strategy:Kn.variadic});return{getDateTimeFormat:u,getNumberFormat:c,getMessageFormat:Qn(function(h,m,p,y){return new q1(h,m,p,ie({formatters:{getNumberFormat:c,getDateTimeFormat:u,getPluralRules:d}},y||{}))},{cache:Na(t.message),strategy:Kn.variadic}),getRelativeTimeFormat:Qn(function(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];return new(r.bind.apply(r,$n([void 0],h,!1)))},{cache:Na(t.relativeTime),strategy:Kn.variadic}),getPluralRules:d,getListFormat:Qn(function(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];return new(i.bind.apply(i,$n([void 0],h,!1)))},{cache:Na(t.list),strategy:Kn.variadic}),getDisplayNames:Qn(function(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];return new(s.bind.apply(s,$n([void 0],h,!1)))},{cache:Na(t.displayNames),strategy:Kn.variadic})}}function _h(t,r,i,s){var u=t&&t[r],c;if(u&&(c=u[i]),c)return c;s(new qT("No ".concat(r," format named: ").concat(i)))}function vo(t,r){return Object.keys(t).reduce(function(i,s){return i[s]=ie({timeZone:r},t[s]),i},{})}function sy(t,r){var i=Object.keys(ie(ie({},t),r));return i.reduce(function(s,u){return s[u]=ie(ie({},t[u]||{}),r[u]||{}),s},{})}function ly(t,r){if(!r)return t;var i=q1.formats;return ie(ie(ie({},i),t),{date:sy(vo(i.date,r),vo(t.date||{},r)),time:sy(vo(i.time,r),vo(t.time||{},r))})}var Qd=function(t,r,i,s,u){var c=t.locale,d=t.formats,h=t.messages,m=t.defaultLocale,p=t.defaultFormats,y=t.fallbackOnEmptyString,E=t.onError,A=t.timeZone,U=t.defaultRichTextElements;i===void 0&&(i={id:""});var R=i.id,F=i.defaultMessage;PT(!!R,"[@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 G=String(R),_=h&&Object.prototype.hasOwnProperty.call(h,G)&&h[G];if(Array.isArray(_)&&_.length===1&&_[0].type===Ye.literal)return _[0].value;if(!s&&_&&typeof _=="string"&&!U)return _.replace(/'\{(.*?)\}'/gi,"{$1}");if(s=ie(ie({},U),s||{}),d=ly(d,A),p=ly(p,A),!_){if(y===!1&&_==="")return _;if((!F||c&&c.toLowerCase()!==m.toLowerCase())&&E(new VT(i,c)),F)try{var C=r.getMessageFormat(F,m,p,u);return C.format(s)}catch(S){return E(new Vf('Error formatting default message for: "'.concat(G,'", rendering default message verbatim'),c,i,S)),typeof F=="string"?F:G}return G}try{var C=r.getMessageFormat(_,c,d,ie({formatters:r},u||{}));return C.format(s)}catch(S){E(new Vf('Error formatting message: "'.concat(G,'", using ').concat(F?"default message":"id"," as fallback."),c,i,S))}if(F)try{var C=r.getMessageFormat(F,m,p,u);return C.format(s)}catch(S){E(new Vf('Error formatting the default message for: "'.concat(G,'", rendering message verbatim'),c,i,S))}return typeof _=="string"?_:typeof F=="string"?F:G},QT=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function tl(t,r,i,s){var u=t.locale,c=t.formats,d=t.onError,h=t.timeZone;s===void 0&&(s={});var m=s.format,p=ie(ie({},h&&{timeZone:h}),m&&_h(c,r,m,d)),y=Ni(s,QT,p);return r==="time"&&!y.hour&&!y.minute&&!y.second&&!y.timeStyle&&!y.dateStyle&&(y=ie(ie({},y),{hour:"numeric",minute:"numeric"})),i(u,y)}function KT(t,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],c=i[1],d=c===void 0?{}:c,h=typeof u=="string"?new Date(u||0):u;try{return tl(t,"date",r,d).format(h)}catch(m){t.onError(new An("Error formatting date.",t.locale,m))}return String(h)}function $T(t,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],c=i[1],d=c===void 0?{}:c,h=typeof u=="string"?new Date(u||0):u;try{return tl(t,"time",r,d).format(h)}catch(m){t.onError(new An("Error formatting time.",t.locale,m))}return String(h)}function WT(t,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],c=i[1],d=i[2],h=d===void 0?{}:d,m=typeof u=="string"?new Date(u||0):u,p=typeof c=="string"?new Date(c||0):c;try{return tl(t,"dateTimeRange",r,h).formatRange(m,p)}catch(y){t.onError(new An("Error formatting date time range.",t.locale,y))}return String(m)}function JT(t,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],c=i[1],d=c===void 0?{}:c,h=typeof u=="string"?new Date(u||0):u;try{return tl(t,"date",r,d).formatToParts(h)}catch(m){t.onError(new An("Error formatting date.",t.locale,m))}return[]}function eA(t,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],c=i[1],d=c===void 0?{}:c,h=typeof u=="string"?new Date(u||0):u;try{return tl(t,"time",r,d).formatToParts(h)}catch(m){t.onError(new An("Error formatting time.",t.locale,m))}return[]}var tA=["style","type","fallback","languageDisplay"];function nA(t,r,i,s){var u=t.locale,c=t.onError,d=Intl.DisplayNames;d||c(new oa(`Intl.DisplayNames is not available in this environment.
77
+ Try polyfilling it using "@formatjs/intl-displaynames"
78
+ `,Jn.MISSING_INTL_API));var h=Ni(s,tA);try{return r(u,h).of(i)}catch(m){c(new An("Error formatting display name.",u,m))}}var rA=["type","style"],oy=Date.now();function aA(t){return"".concat(oy,"_").concat(t,"_").concat(oy)}function iA(t,r,i,s){s===void 0&&(s={});var u=P1(t,r,i,s).reduce(function(c,d){var h=d.value;return typeof h!="string"?c.push(h):typeof c[c.length-1]=="string"?c[c.length-1]+=h:c.push(h),c},[]);return u.length===1?u[0]:u.length===0?"":u}function P1(t,r,i,s){var u=t.locale,c=t.onError;s===void 0&&(s={});var d=Intl.ListFormat;d||c(new oa(`Intl.ListFormat is not available in this environment.
79
+ Try polyfilling it using "@formatjs/intl-listformat"
80
+ `,Jn.MISSING_INTL_API));var h=Ni(s,rA);try{var m={},p=i.map(function(y,E){if(typeof y=="object"){var A=aA(E);return m[A]=y,A}return String(y)});return r(u,h).formatToParts(p).map(function(y){return y.type==="literal"?y:ie(ie({},y),{value:m[y.value]||y.value})})}catch(y){c(new An("Error formatting list.",u,y))}return i}var sA=["type"];function lA(t,r,i,s){var u=t.locale,c=t.onError;s===void 0&&(s={}),Intl.PluralRules||c(new oa(`Intl.PluralRules is not available in this environment.
81
+ Try polyfilling it using "@formatjs/intl-pluralrules"
82
+ `,Jn.MISSING_INTL_API));var d=Ni(s,sA);try{return r(u,d).select(i)}catch(h){c(new An("Error formatting plural.",u,h))}return"other"}var oA=["numeric","style"];function uA(t,r,i){var s=t.locale,u=t.formats,c=t.onError;i===void 0&&(i={});var d=i.format,h=!!d&&_h(u,"relative",d,c)||{},m=Ni(i,oA,h);return r(s,m)}function cA(t,r,i,s,u){u===void 0&&(u={}),s||(s="second");var c=Intl.RelativeTimeFormat;c||t.onError(new oa(`Intl.RelativeTimeFormat is not available in this environment.
83
+ Try polyfilling it using "@formatjs/intl-relativetimeformat"
84
+ `,Jn.MISSING_INTL_API));try{return uA(t,r,u).format(i,s)}catch(d){t.onError(new An("Error formatting relative time.",t.locale,d))}return String(i)}var fA=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function Y1(t,r,i){var s=t.locale,u=t.formats,c=t.onError;i===void 0&&(i={});var d=i.format,h=d&&_h(u,"number",d,c)||{},m=Ni(i,fA,h);return r(s,m)}function dA(t,r,i,s){s===void 0&&(s={});try{return Y1(t,r,s).format(i)}catch(u){t.onError(new An("Error formatting number.",t.locale,u))}return String(i)}function hA(t,r,i,s){s===void 0&&(s={});try{return Y1(t,r,s).formatToParts(i)}catch(u){t.onError(new An("Error formatting number.",t.locale,u))}return[]}function mA(t){var r=t?t[Object.keys(t)[0]]:void 0;return typeof r=="string"}function pA(t){t.onWarn&&t.defaultRichTextElements&&mA(t.messages||{})&&t.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 gA(t,r){var i=ZT(r),s=ie(ie({},F1),t),u=s.locale,c=s.defaultLocale,d=s.onError;return u?!Intl.NumberFormat.supportedLocalesOf(u).length&&d?d(new iy('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&&d&&d(new iy('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'))):(d&&d(new FT('"locale" was not configured, using "'.concat(c,'" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))),s.locale=s.defaultLocale||"en"),pA(s),ie(ie({},s),{formatters:i,formatNumber:dA.bind(null,s,i.getNumberFormat),formatNumberToParts:hA.bind(null,s,i.getNumberFormat),formatRelativeTime:cA.bind(null,s,i.getRelativeTimeFormat),formatDate:KT.bind(null,s,i.getDateTimeFormat),formatDateToParts:JT.bind(null,s,i.getDateTimeFormat),formatTime:$T.bind(null,s,i.getDateTimeFormat),formatDateTimeRange:WT.bind(null,s,i.getDateTimeFormat),formatTimeToParts:eA.bind(null,s,i.getDateTimeFormat),formatPlural:lA.bind(null,s,i.getPluralRules),formatMessage:Qd.bind(null,s,i),$t:Qd.bind(null,s,i),formatList:iA.bind(null,s,i.getListFormat),formatListToParts:P1.bind(null,s,i.getListFormat),formatDisplayName:nA.bind(null,s,i.getDisplayNames)})}function yA(t,r,i){if(i===void 0&&(i=Error),!t)throw new i(r)}function X1(t){yA(t,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Z1=ie(ie({},F1),{textComponent:H.Fragment}),vA={key:42},bA=function(t){return H.isValidElement(t)?H.createElement(H.Fragment,vA,t):t},_A=function(t){var r;return(r=H.Children.map(t,bA))!==null&&r!==void 0?r:[]};function EA(t){return function(r){return t(H.Children.toArray(r))}}function SA(t,r){if(t===r)return!0;if(!t||!r)return!1;var i=Object.keys(t),s=Object.keys(r),u=i.length;if(s.length!==u)return!1;for(var c=0;c<u;c++){var d=i[c];if(t[d]!==r[d]||!Object.prototype.hasOwnProperty.call(r,d))return!1}return!0}var Pf={exports:{}},Be={};/** @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 uy;function TA(){if(uy)return Be;uy=1;var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,i=t?Symbol.for("react.portal"):60106,s=t?Symbol.for("react.fragment"):60107,u=t?Symbol.for("react.strict_mode"):60108,c=t?Symbol.for("react.profiler"):60114,d=t?Symbol.for("react.provider"):60109,h=t?Symbol.for("react.context"):60110,m=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,y=t?Symbol.for("react.forward_ref"):60112,E=t?Symbol.for("react.suspense"):60113,A=t?Symbol.for("react.suspense_list"):60120,U=t?Symbol.for("react.memo"):60115,R=t?Symbol.for("react.lazy"):60116,F=t?Symbol.for("react.block"):60121,G=t?Symbol.for("react.fundamental"):60117,_=t?Symbol.for("react.responder"):60118,C=t?Symbol.for("react.scope"):60119;function S(x){if(typeof x=="object"&&x!==null){var Z=x.$$typeof;switch(Z){case r:switch(x=x.type,x){case m:case p:case s:case c:case u:case E:return x;default:switch(x=x&&x.$$typeof,x){case h:case y:case R:case U:case d:return x;default:return Z}}case i:return Z}}}function I(x){return S(x)===p}return Be.AsyncMode=m,Be.ConcurrentMode=p,Be.ContextConsumer=h,Be.ContextProvider=d,Be.Element=r,Be.ForwardRef=y,Be.Fragment=s,Be.Lazy=R,Be.Memo=U,Be.Portal=i,Be.Profiler=c,Be.StrictMode=u,Be.Suspense=E,Be.isAsyncMode=function(x){return I(x)||S(x)===m},Be.isConcurrentMode=I,Be.isContextConsumer=function(x){return S(x)===h},Be.isContextProvider=function(x){return S(x)===d},Be.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===r},Be.isForwardRef=function(x){return S(x)===y},Be.isFragment=function(x){return S(x)===s},Be.isLazy=function(x){return S(x)===R},Be.isMemo=function(x){return S(x)===U},Be.isPortal=function(x){return S(x)===i},Be.isProfiler=function(x){return S(x)===c},Be.isStrictMode=function(x){return S(x)===u},Be.isSuspense=function(x){return S(x)===E},Be.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===s||x===p||x===c||x===u||x===E||x===A||typeof x=="object"&&x!==null&&(x.$$typeof===R||x.$$typeof===U||x.$$typeof===d||x.$$typeof===h||x.$$typeof===y||x.$$typeof===G||x.$$typeof===_||x.$$typeof===C||x.$$typeof===F)},Be.typeOf=S,Be}var cy;function AA(){return cy||(cy=1,Pf.exports=TA()),Pf.exports}var Yf,fy;function xA(){if(fy)return Yf;fy=1;var t=AA(),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},s={$$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[t.ForwardRef]=s,c[t.Memo]=u;function d(R){return t.isMemo(R)?u:c[R.$$typeof]||r}var h=Object.defineProperty,m=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,E=Object.getPrototypeOf,A=Object.prototype;function U(R,F,G){if(typeof F!="string"){if(A){var _=E(F);_&&_!==A&&U(R,_,G)}var C=m(F);p&&(C=C.concat(p(F)));for(var S=d(R),I=d(F),x=0;x<C.length;++x){var Z=C[x];if(!i[Z]&&!(G&&G[Z])&&!(I&&I[Z])&&!(S&&S[Z])){var W=y(F,Z);try{h(R,Z,W)}catch{}}}}return R}return Yf=U,Yf}xA();var Eh=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=H.createContext(null)):H.createContext(null);Eh.Consumer;var OA=Eh.Provider,RA=OA,wA=Eh;function ou(){var t=H.useContext(wA);return X1(t),t}var Kd;(function(t){t.formatDate="FormattedDate",t.formatTime="FormattedTime",t.formatNumber="FormattedNumber",t.formatList="FormattedList",t.formatDisplayName="FormattedDisplayName"})(Kd||(Kd={}));var $d;(function(t){t.formatDate="FormattedDateParts",t.formatTime="FormattedTimeParts",t.formatNumber="FormattedNumberParts",t.formatList="FormattedListParts"})($d||($d={}));function Q1(t){var r=function(i){var s=ou(),u=i.value,c=i.children,d=lu(i,["value","children"]),h=typeof u=="string"?new Date(u||0):u,m=t==="formatDate"?s.formatDateToParts(h,d):s.formatTimeToParts(h,d);return c(m)};return r.displayName=$d[t],r}function nl(t){var r=function(i){var s=ou(),u=i.value,c=i.children,d=lu(i,["value","children"]),h=s[t](u,d);if(typeof c=="function")return c(h);var m=s.textComponent||H.Fragment;return H.createElement(m,null,h)};return r.displayName=Kd[t],r}function K1(t){return t&&Object.keys(t).reduce(function(r,i){var s=t[i];return r[i]=k1(s)?EA(s):s,r},{})}var dy=function(t,r,i,s){for(var u=[],c=4;c<arguments.length;c++)u[c-4]=arguments[c];var d=K1(s),h=Qd.apply(void 0,$n([t,r,i,d],u,!1));return Array.isArray(h)?_A(h):h},hy=function(t,r){var i=t.defaultRichTextElements,s=lu(t,["defaultRichTextElements"]),u=K1(i),c=gA(ie(ie(ie({},Z1),s),{defaultRichTextElements:u}),r),d={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 ie(ie({},c),{formatMessage:dy.bind(null,d,c.formatters),$t:dy.bind(null,d,c.formatters)})};function Xf(t){return{locale:t.locale,timeZone:t.timeZone,fallbackOnEmptyString:t.fallbackOnEmptyString,formats:t.formats,textComponent:t.textComponent,messages:t.messages,defaultLocale:t.defaultLocale,defaultFormats:t.defaultFormats,onError:t.onError,onWarn:t.onWarn,wrapRichTextChunksInFragment:t.wrapRichTextChunksInFragment,defaultRichTextElements:t.defaultRichTextElements}}var CA=function(t){Tn(r,t);function r(){var i=t!==null&&t.apply(this,arguments)||this;return i.cache=V1(),i.state={cache:i.cache,intl:hy(Xf(i.props),i.cache),prevConfig:Xf(i.props)},i}return r.getDerivedStateFromProps=function(i,s){var u=s.prevConfig,c=s.cache,d=Xf(i);return SA(u,d)?null:{intl:hy(d,c),prevConfig:d}},r.prototype.render=function(){return X1(this.state.intl),H.createElement(RA,{value:this.state.intl},this.props.children)},r.displayName="IntlProvider",r.defaultProps=Z1,r}(H.PureComponent);nl("formatDate");nl("formatTime");nl("formatNumber");nl("formatList");nl("formatDisplayName");Q1("formatDate");Q1("formatTime");const NA="_app_1rj0t_1",MA={app:NA},Cr=XS,it=KS,$1="%[a-f0-9]{2}",my=new RegExp("("+$1+")|([^%]+?)","gi"),py=new RegExp("("+$1+")+","gi");function Wd(t,r){try{return[decodeURIComponent(t.join(""))]}catch{}if(t.length===1)return t;r=r||1;const i=t.slice(0,r),s=t.slice(r);return Array.prototype.concat.call([],Wd(i),Wd(s))}function DA(t){try{return decodeURIComponent(t)}catch{let r=t.match(my)||[];for(let i=1;i<r.length;i++)t=Wd(r,i).join(""),r=t.match(my)||[];return t}}function LA(t){const r={"%FE%FF":"��","%FF%FE":"��"};let i=py.exec(t);for(;i;){try{r[i[0]]=decodeURIComponent(i[0])}catch{const u=DA(i[0]);u!==i[0]&&(r[i[0]]=u)}i=py.exec(t)}r["%C2"]="�";const s=Object.keys(r);for(const u of s)t=t.replace(new RegExp(u,"g"),r[u]);return t}function BA(t){if(typeof t!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return decodeURIComponent(t)}catch{return LA(t)}}function UA(t,r){const i={};if(Array.isArray(r))for(const s of r){const u=Object.getOwnPropertyDescriptor(t,s);u?.enumerable&&Object.defineProperty(i,s,u)}else for(const s of Reflect.ownKeys(t)){const u=Object.getOwnPropertyDescriptor(t,s);if(u.enumerable){const c=t[s];r(s,c,t)&&Object.defineProperty(i,s,u)}}return i}function W1(t,r){if(!(typeof t=="string"&&typeof r=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t===""||r==="")return[];const i=t.indexOf(r);return i===-1?[]:[t.slice(0,i),t.slice(i+r.length)]}const HA=t=>t==null,jA=t=>encodeURIComponent(t).replaceAll(/[!'()*]/g,r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`),Jd=Symbol("encodeFragmentIdentifier");function IA(t){switch(t.arrayFormat){case"index":return r=>(i,s)=>{const u=i.length;return s===void 0||t.skipNull&&s===null||t.skipEmptyString&&s===""?i:s===null?[...i,[ct(r,t),"[",u,"]"].join("")]:[...i,[ct(r,t),"[",ct(u,t),"]=",ct(s,t)].join("")]};case"bracket":return r=>(i,s)=>s===void 0||t.skipNull&&s===null||t.skipEmptyString&&s===""?i:s===null?[...i,[ct(r,t),"[]"].join("")]:[...i,[ct(r,t),"[]=",ct(s,t)].join("")];case"colon-list-separator":return r=>(i,s)=>s===void 0||t.skipNull&&s===null||t.skipEmptyString&&s===""?i:s===null?[...i,[ct(r,t),":list="].join("")]:[...i,[ct(r,t),":list=",ct(s,t)].join("")];case"comma":case"separator":case"bracket-separator":{const r=t.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(s,u)=>u===void 0||t.skipNull&&u===null||t.skipEmptyString&&u===""?s:(u=u===null?"":u,s.length===0?[[ct(i,t),r,ct(u,t)].join("")]:[[s,ct(u,t)].join(t.arrayFormatSeparator)])}default:return r=>(i,s)=>s===void 0||t.skipNull&&s===null||t.skipEmptyString&&s===""?i:s===null?[...i,ct(r,t)]:[...i,[ct(r,t),"=",ct(s,t)].join("")]}}function zA(t){let r;switch(t.arrayFormat){case"index":return(i,s,u)=>{if(r=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!r){u[i]=s;return}u[i]===void 0&&(u[i]={}),u[i][r[1]]=s};case"bracket":return(i,s,u)=>{if(r=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!r){u[i]=s;return}if(u[i]===void 0){u[i]=[s];return}u[i]=[...u[i],s]};case"colon-list-separator":return(i,s,u)=>{if(r=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!r){u[i]=s;return}if(u[i]===void 0){u[i]=[s];return}u[i]=[...u[i],s]};case"comma":case"separator":return(i,s,u)=>{const c=typeof s=="string"&&s.includes(t.arrayFormatSeparator),d=typeof s=="string"&&!c&&Tr(s,t).includes(t.arrayFormatSeparator);s=d?Tr(s,t):s;const h=c||d?s.split(t.arrayFormatSeparator).map(m=>Tr(m,t)):s===null?s:Tr(s,t);u[i]=h};case"bracket-separator":return(i,s,u)=>{const c=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!c){u[i]=s&&Tr(s,t);return}const d=s===null?[]:Tr(s,t).split(t.arrayFormatSeparator);if(u[i]===void 0){u[i]=d;return}u[i]=[...u[i],...d]};default:return(i,s,u)=>{if(u[i]===void 0){u[i]=s;return}u[i]=[...[u[i]].flat(),s]}}}function J1(t){if(typeof t!="string"||t.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function ct(t,r){return r.encode?r.strict?jA(t):encodeURIComponent(t):t}function Tr(t,r){return r.decode?BA(t):t}function eb(t){return Array.isArray(t)?t.sort():typeof t=="object"?eb(Object.keys(t)).sort((r,i)=>Number(r)-Number(i)).map(r=>t[r]):t}function tb(t){const r=t.indexOf("#");return r!==-1&&(t=t.slice(0,r)),t}function GA(t){let r="";const i=t.indexOf("#");return i!==-1&&(r=t.slice(i)),r}function gy(t,r,i){return i==="string"&&typeof t=="string"?t:typeof i=="function"&&typeof t=="string"?i(t):i==="boolean"&&t===null?!0:i==="boolean"&&t!==null&&(t.toLowerCase()==="true"||t.toLowerCase()==="false")?t.toLowerCase()==="true":i==="boolean"&&t!==null&&(t.toLowerCase()==="1"||t.toLowerCase()==="0")?t.toLowerCase()==="1":i==="string[]"&&r.arrayFormat!=="none"&&typeof t=="string"?[t]:i==="number[]"&&r.arrayFormat!=="none"&&!Number.isNaN(Number(t))&&typeof t=="string"&&t.trim()!==""?[Number(t)]:i==="number"&&!Number.isNaN(Number(t))&&typeof t=="string"&&t.trim()!==""?Number(t):r.parseBooleans&&t!==null&&(t.toLowerCase()==="true"||t.toLowerCase()==="false")?t.toLowerCase()==="true":r.parseNumbers&&!Number.isNaN(Number(t))&&typeof t=="string"&&t.trim()!==""?Number(t):t}function Sh(t){t=tb(t);const r=t.indexOf("?");return r===-1?"":t.slice(r+1)}function Th(t,r){r={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...r},J1(r.arrayFormatSeparator);const i=zA(r),s=Object.create(null);if(typeof t!="string"||(t=t.trim().replace(/^[?#&]/,""),!t))return s;for(const u of t.split("&")){if(u==="")continue;const c=r.decode?u.replaceAll("+"," "):u;let[d,h]=W1(c,"=");d===void 0&&(d=c),h=h===void 0?null:["comma","separator","bracket-separator"].includes(r.arrayFormat)?h:Tr(h,r),i(Tr(d,r),h,s)}for(const[u,c]of Object.entries(s))if(typeof c=="object"&&c!==null&&r.types[u]!=="string")for(const[d,h]of Object.entries(c)){const m=r.types[u]?r.types[u].replace("[]",""):void 0;c[d]=gy(h,r,m)}else typeof c=="object"&&c!==null&&r.types[u]==="string"?s[u]=Object.values(c).join(r.arrayFormatSeparator):s[u]=gy(c,r,r.types[u]);return r.sort===!1?s:(r.sort===!0?Object.keys(s).sort():Object.keys(s).sort(r.sort)).reduce((u,c)=>{const d=s[c];return u[c]=d&&typeof d=="object"&&!Array.isArray(d)?eb(d):d,u},Object.create(null))}function nb(t,r){if(!t)return"";r={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...r},J1(r.arrayFormatSeparator);const i=d=>r.skipNull&&HA(t[d])||r.skipEmptyString&&t[d]==="",s=IA(r),u={};for(const[d,h]of Object.entries(t))i(d)||(u[d]=h);const c=Object.keys(u);return r.sort!==!1&&c.sort(r.sort),c.map(d=>{const h=t[d];return h===void 0?"":h===null?ct(d,r):Array.isArray(h)?h.length===0&&r.arrayFormat==="bracket-separator"?ct(d,r)+"[]":h.reduce(s(d),[]).join("&"):ct(d,r)+"="+ct(h,r)}).filter(d=>d.length>0).join("&")}function rb(t,r){r={decode:!0,...r};let[i,s]=W1(t,"#");return i===void 0&&(i=t),{url:i?.split("?")?.[0]??"",query:Th(Sh(t),r),...r&&r.parseFragmentIdentifier&&s?{fragmentIdentifier:Tr(s,r)}:{}}}function ab(t,r){r={encode:!0,strict:!0,[Jd]:!0,...r};const i=tb(t.url).split("?")[0]||"",s=Sh(t.url),u={...Th(s,{sort:!1,...r}),...t.query};let c=nb(u,r);c&&=`?${c}`;let d=GA(t.url);if(typeof t.fragmentIdentifier=="string"){const h=new URL(i);h.hash=t.fragmentIdentifier,d=r[Jd]?h.hash:`#${t.fragmentIdentifier}`}return`${i}${c}${d}`}function ib(t,r,i){i={parseFragmentIdentifier:!0,[Jd]:!1,...i};const{url:s,query:u,fragmentIdentifier:c}=rb(t,i);return ab({url:s,query:UA(u,r),fragmentIdentifier:c},i)}function kA(t,r,i){const s=Array.isArray(r)?u=>!r.includes(u):(u,c)=>!r(u,c);return ib(t,s,i)}const uu=Object.freeze(Object.defineProperty({__proto__:null,exclude:kA,extract:Sh,parse:Th,parseUrl:rb,pick:ib,stringify:nb,stringifyUrl:ab},Symbol.toStringTag,{value:"Module"}));var Dn={},Ln={},Ie={},bo={},pe={},yy;function cn(){return yy||(yy=1,Object.defineProperty(pe,"__esModule",{value:!0}),pe.GUEST_LOCALE_CHANGED=pe.DRAWER_CLOSE=pe.DRAWER_OPEN=pe.CONVERSATION_RATING_FROM_GUEST=pe.TRANSCRIPT_ITEM_GUEST_REACTION=pe.TRANSCRIPT_MAIL_REQUEST=pe.INBOX_CONNECT_REQUEST=pe.RESTART_CHAT_REQUEST=pe.EVENT_TO_GUEST=pe.NLU_REQUEST_EVENT=pe.EXPERTS_DISCONNECTED=pe.EXPERTS_DISCONNECT_REQUEST=pe.EXPERTS_CONNECTED=pe.EXPERTS_CONNECT_REQUEST=pe.MESSAGE_TO_GUEST=pe.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST=pe.MESSAGE_FROM_GUEST=pe.GUEST_FEEDBACK_RESPONSE=pe.GUEST_DISCONNECTED=pe.GUEST_CONNECTED=pe.TYPING_OFF=pe.TYPING_ON=void 0,pe.TYPING_ON="core.typing.on",pe.TYPING_OFF="core.typing.off",pe.GUEST_CONNECTED="core.guest.connected",pe.GUEST_DISCONNECTED="core.guest.disconnected",pe.GUEST_FEEDBACK_RESPONSE="core.guest.feedback.response",pe.MESSAGE_FROM_GUEST="core.message.from.guest",pe.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST="core.message.without.analysis.from.guest",pe.MESSAGE_TO_GUEST="core.message.to.guest",pe.EXPERTS_CONNECT_REQUEST="core.experts.connect.request",pe.EXPERTS_CONNECTED="core.experts.connected",pe.EXPERTS_DISCONNECT_REQUEST="core.experts.disconnect.request",pe.EXPERTS_DISCONNECTED="core.experts.disconnected",pe.NLU_REQUEST_EVENT="core.nlu.request.event",pe.EVENT_TO_GUEST="core.event.to.guest",pe.RESTART_CHAT_REQUEST="core.chat.restart.request",pe.INBOX_CONNECT_REQUEST="core.inbox.connect.request",pe.TRANSCRIPT_MAIL_REQUEST="core.transcript.mail.request",pe.TRANSCRIPT_ITEM_GUEST_REACTION="core.transcript.item.guest.reaction",pe.CONVERSATION_RATING_FROM_GUEST="core.conversation.rating.from.guest",pe.DRAWER_OPEN="core.drawer.open",pe.DRAWER_CLOSE="core.drawer.close",pe.GUEST_LOCALE_CHANGED="core.guest.locale.changed"),pe}var vy;function qA(){if(vy)return bo;vy=1,Object.defineProperty(bo,"__esModule",{value:!0});const t=cn(),r=()=>({type:t.DRAWER_CLOSE});return bo.default=r,bo}var _o={},by;function FA(){if(by)return _o;by=1,Object.defineProperty(_o,"__esModule",{value:!0});const t=cn(),r=(i,s)=>({type:t.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:i,intent:s}});return _o.default=r,_o}var Eo={},_y;function VA(){if(_y)return Eo;_y=1,Object.defineProperty(Eo,"__esModule",{value:!0});const t=cn(),r=i=>({type:t.GUEST_CONNECTED,payload:{sessionId:i}});return Eo.default=r,Eo}var So={},Ey;function PA(){if(Ey)return So;Ey=1,Object.defineProperty(So,"__esModule",{value:!0});const t=cn(),r=i=>({type:t.GUEST_DISCONNECTED,payload:{sessionId:i}});return So.default=r,So}var To={},Sy;function YA(){if(Sy)return To;Sy=1,Object.defineProperty(To,"__esModule",{value:!0});const t=cn(),r=(i,s)=>({type:t.GUEST_LOCALE_CHANGED,payload:{previousLocale:i,newLocale:s}});return To.default=r,To}var Ao={},Ty;function XA(){if(Ty)return Ao;Ty=1,Object.defineProperty(Ao,"__esModule",{value:!0});const t=cn(),r=i=>({type:t.DRAWER_OPEN,payload:{parameters:{contentUrl:i}}});return Ao.default=r,Ao}var xo={},Ke={},Ay;function Ah(){if(Ay)return Ke;Ay=1,Object.defineProperty(Ke,"__esModule",{value:!0}),Ke.getStringRepresentationFromMessage=Ke.MessageTypeEnum=Ke.AudioMessage=Ke.FileMessage=Ke.ImageMessage=Ke.VideoMessage=Ke.MarkdownMessage=Ke.DetailMessage=Ke.TextMessage=Ke.Message=void 0;class t{type;sender;sources;quickReplies;constructor(E,A,U=[],R=[]){this.type=E,this.sender=A,this.sources=U,this.quickReplies=R}addQuickReply(E,A){this.quickReplies.push({label:E,payload:A})}}Ke.Message=t;class r extends t{text;constructor(E,A,U=[],R=[]){super(m.TEXT,A,U,R),this.text=E}}Ke.TextMessage=r;class i extends t{title;text;imageUrl;itemUrl;buttons;constructor(E,A){super(m.DETAIL,A),this.title=E,this.text="",this.imageUrl="",this.itemUrl="",this.buttons=[]}setImageUrl(E){this.imageUrl=E}setItemUrl(E){this.itemUrl=E}setText(E){this.text=E}addButton(E){this.buttons.push(E)}}Ke.DetailMessage=i;class s extends t{markdown;constructor(E,A,U=[],R=[]){super(m.MARKDOWN,A,U,R),this.markdown=E}}Ke.MarkdownMessage=s;class u extends t{url;constructor(E,A){super(m.VIDEO,A),this.url=E}}Ke.VideoMessage=u;class c extends t{url;constructor(E,A){super(m.IMAGE,A),this.url=E}}Ke.ImageMessage=c;class d extends t{url;constructor(E,A){super(m.FILE,A),this.url=E}}Ke.FileMessage=d;class h extends t{url;constructor(E,A){super(m.AUDIO,A),this.url=E}}Ke.AudioMessage=h;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||(Ke.MessageTypeEnum=m={}));const p=y=>{switch(y.type){case m.TEXT:return y.text;case m.DETAIL:return`${y.title}`;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 Ke.getStringRepresentationFromMessage=p,Ke}var an={},xy;function xh(){if(xy)return an;xy=1,Object.defineProperty(an,"__esModule",{value:!0}),an.UserType=an.PersonUser=an.GuestUser=an.BotUser=an.User=void 0;class t{type;id;name;avatar;constructor(d,h,m,p){this.type=d,this.id=h,this.name=m,this.avatar=p}}an.User=t;class r extends t{constructor(){super(u.BOT,null,"Chatbot","bot.svg")}}an.BotUser=r;class i extends t{constructor(){super(u.GUEST,null,"Guest","visitor.svg")}}an.GuestUser=i;class s extends t{constructor(d,h,m){super(u.PERSON,d,h,m)}}an.PersonUser=s;var u;return function(c){c.GUEST="GUEST",c.BOT="BOT",c.PERSON="PERSON"}(u||(an.UserType=u={})),an}var Oy;function ZA(){if(Oy)return xo;Oy=1,Object.defineProperty(xo,"__esModule",{value:!0});const t=Ah(),r=xh(),i=cn(),s=u=>{const c=new t.TextMessage(u,new r.GuestUser);return{type:i.MESSAGE_FROM_GUEST,message:c}};return xo.default=s,xo}var Oo={},Ry;function QA(){if(Ry)return Oo;Ry=1,Object.defineProperty(Oo,"__esModule",{value:!0});const t=Ah(),r=xh(),i=cn(),s=(u,c={})=>{const d=new t.TextMessage(u,new r.GuestUser);return{type:i.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST,message:d,payload:c}};return Oo.default=s,Oo}var Ro={},wy;function KA(){if(wy)return Ro;wy=1,Object.defineProperty(Ro,"__esModule",{value:!0});const t=cn(),r=i=>({type:t.NLU_REQUEST_EVENT,event:i});return Ro.default=r,Ro}var wo={},Cy;function $A(){if(Cy)return wo;Cy=1,Object.defineProperty(wo,"__esModule",{value:!0});const t=cn(),r=()=>({type:t.RESTART_CHAT_REQUEST});return wo.default=r,wo}var Co={},Ny;function WA(){if(Ny)return Co;Ny=1,Object.defineProperty(Co,"__esModule",{value:!0});const t=cn(),r=i=>({type:t.MESSAGE_TO_GUEST,message:i});return Co.default=r,Co}var No={},My;function JA(){if(My)return No;My=1,Object.defineProperty(No,"__esModule",{value:!0});const t=cn(),r=(i,s)=>({type:t.TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:i,reaction:s}});return No.default=r,No}var Dy;function ex(){if(Dy)return Ie;Dy=1;var t=Ie&&Ie.__importDefault||function(U){return U&&U.__esModule?U:{default:U}};Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.transcriptItemGuestReaction=Ie.sendMessageToGuest=Ie.restartChatRequest=Ie.requestNLUEvent=Ie.receiveTextMessageWithoutAnalysisFromGuest=Ie.receiveTextMessageFromGuest=Ie.openDrawer=Ie.guestLocaleChanged=Ie.guestDisconnected=Ie.guestConnected=Ie.feedbackFromGuestResponse=Ie.closeDrawer=void 0;const r=t(qA());Ie.closeDrawer=r.default;const i=t(FA());Ie.feedbackFromGuestResponse=i.default;const s=t(VA());Ie.guestConnected=s.default;const u=t(PA());Ie.guestDisconnected=u.default;const c=t(YA());Ie.guestLocaleChanged=c.default;const d=t(XA());Ie.openDrawer=d.default;const h=t(ZA());Ie.receiveTextMessageFromGuest=h.default;const m=t(QA());Ie.receiveTextMessageWithoutAnalysisFromGuest=m.default;const p=t(KA());Ie.requestNLUEvent=p.default;const y=t($A());Ie.restartChatRequest=y.default;const E=t(WA());Ie.sendMessageToGuest=E.default;const A=t(JA());return Ie.transcriptItemGuestReaction=A.default,Ie}var Zf={},Ly;function tx(){return Ly||(Ly=1,Object.defineProperty(Zf,"__esModule",{value:!0})),Zf}var By;function nx(){return By||(By=1,function(t){var r=Ln&&Ln.__createBinding||(Object.create?function(c,d,h,m){m===void 0&&(m=h);var p=Object.getOwnPropertyDescriptor(d,h);(!p||("get"in p?!d.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return d[h]}}),Object.defineProperty(c,m,p)}:function(c,d,h,m){m===void 0&&(m=h),c[m]=d[h]}),i=Ln&&Ln.__setModuleDefault||(Object.create?function(c,d){Object.defineProperty(c,"default",{enumerable:!0,value:d})}:function(c,d){c.default=d}),s=Ln&&Ln.__importStar||function(){var c=function(d){return c=Object.getOwnPropertyNames||function(h){var m=[];for(var p in h)Object.prototype.hasOwnProperty.call(h,p)&&(m[m.length]=p);return m},c(d)};return function(d){if(d&&d.__esModule)return d;var h={};if(d!=null)for(var m=c(d),p=0;p<m.length;p++)m[p]!=="default"&&r(h,d,m[p]);return i(h,d),h}}(),u=Ln&&Ln.__exportStar||function(c,d){for(var h in c)h!=="default"&&!Object.prototype.hasOwnProperty.call(d,h)&&r(d,c,h)};Object.defineProperty(t,"__esModule",{value:!0}),t.ActionTypes=t.Actions=void 0,t.Actions=s(ex()),t.ActionTypes=s(cn()),u(tx(),t)}(Ln)),Ln}var sn={},Qf={},Uy;function rx(){return Uy||(Uy=1,Object.defineProperty(Qf,"__esModule",{value:!0})),Qf}var Us={},Hy;function ax(){if(Hy)return Us;Hy=1,Object.defineProperty(Us,"__esModule",{value:!0}),Us.NullableKnowledgeBaseAdapter=void 0;class t{async createApiKnowledgeBase(i){throw new Error("Method not implemented.")}async updateApiKnowledgeBase(i,s){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,s){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntry(i,s,u){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async upsertKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async retrieveKnowledgeBaseEntryConfig(i,s){throw new Error("Method not implemented.")}async findKnowledgeBaseEntryByUriAlias(i,s){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntriesIndexedBeforeDate(i,s){throw new Error("Method not implemented.")}async findKnowledgeBaseEntryAttachments(i,s){throw new Error("Method not implemented.")}async createKnowledgeBaseEntryAttachment(i,s,u){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntryAttachment(i,s,u,c){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntryAttachment(i,s,u){throw new Error("Method not implemented.")}async setIndexingStatus(i,s){throw new Error("Method not implemented.")}async subscribeToReindex(i,s){throw new Error("Method not implemented.")}isContentTypeSupported(i){throw new Error("Method not implemented.")}registerTool(i,s){throw new Error("Method not implemented.")}async getTools(i){throw new Error("Method not implemented.")}}return Us.NullableKnowledgeBaseAdapter=t,Us}var jy;function ix(){if(jy)return sn;jy=1;var t=sn&&sn.__createBinding||(Object.create?function(u,c,d,h){h===void 0&&(h=d);var m=Object.getOwnPropertyDescriptor(c,d);(!m||("get"in m?!c.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return c[d]}}),Object.defineProperty(u,h,m)}:function(u,c,d,h){h===void 0&&(h=d),u[h]=c[d]}),r=sn&&sn.__setModuleDefault||(Object.create?function(u,c){Object.defineProperty(u,"default",{enumerable:!0,value:c})}:function(u,c){u.default=c}),i=sn&&sn.__importStar||function(){var u=function(c){return u=Object.getOwnPropertyNames||function(d){var h=[];for(var m in d)Object.prototype.hasOwnProperty.call(d,m)&&(h[h.length]=m);return h},u(c)};return function(c){if(c&&c.__esModule)return c;var d={};if(c!=null)for(var h=u(c),m=0;m<h.length;m++)h[m]!=="default"&&t(d,c,h[m]);return r(d,c),d}}();Object.defineProperty(sn,"__esModule",{value:!0}),sn.NullableCmsAdapter=sn.KnowledgeBase=void 0,sn.KnowledgeBase=i(rx());const s=ax();return sn.NullableCmsAdapter={knowledgeBase:new s.NullableKnowledgeBaseAdapter},sn}var Ma={},Kf={},Iy;function sx(){return Iy||(Iy=1,Object.defineProperty(Kf,"__esModule",{value:!0})),Kf}var $f={},zy;function lx(){return zy||(zy=1,Object.defineProperty($f,"__esModule",{value:!0})),$f}var Wf={},Gy;function ox(){return Gy||(Gy=1,Object.defineProperty(Wf,"__esModule",{value:!0})),Wf}var Jf={},ky;function ux(){return ky||(ky=1,Object.defineProperty(Jf,"__esModule",{value:!0})),Jf}var Hs={},qy;function cx(){if(qy)return Hs;qy=1,Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.checkMiddlewareCondition=void 0;const t=async(r,i,s)=>(Array.isArray(r)?r:[r]).reduce(async(c,d)=>await c?await d(i,s):!1,Promise.resolve(!0));return Hs.checkMiddlewareCondition=t,Hs}var ed={},Fy;function fx(){return Fy||(Fy=1,Object.defineProperty(ed,"__esModule",{value:!0})),ed}var td={},Vy;function dx(){return Vy||(Vy=1,Object.defineProperty(td,"__esModule",{value:!0})),td}var nd={},Py;function hx(){return Py||(Py=1,Object.defineProperty(nd,"__esModule",{value:!0})),nd}var Yy;function mx(){return Yy||(Yy=1,function(t){var r=Ma&&Ma.__createBinding||(Object.create?function(s,u,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(u,c);(!h||("get"in h?!u.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return u[c]}}),Object.defineProperty(s,d,h)}:function(s,u,c,d){d===void 0&&(d=c),s[d]=u[c]}),i=Ma&&Ma.__exportStar||function(s,u){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(u,c)&&r(u,s,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(sx(),t),i(lx(),t),i(ox(),t),i(ux(),t),i(cx(),t),i(fx(),t),i(dx(),t),i(hx(),t)}(Ma)),Ma}var Da={},Bn={},Xy;function px(){if(Xy)return Bn;Xy=1,Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.ButtonTypeEnum=Bn.PostbackButton=Bn.UrlButton=Bn.Button=void 0;class t{title;type;constructor(c,d){this.title=c,this.type=d}}Bn.Button=t;class r extends t{url;constructor(c,d){super(c,s.WEB_URL),this.url=d}}Bn.UrlButton=r;class i extends t{payload;constructor(c,d){super(c,s.POSTBACK),this.payload=d}}Bn.PostbackButton=i;var s;return function(u){u.WEB_URL="web_url",u.POSTBACK="postback"}(s||(Bn.ButtonTypeEnum=s={})),Bn}var rd={},Zy;function gx(){return Zy||(Zy=1,Object.defineProperty(rd,"__esModule",{value:!0})),rd}var js={},Qy;function yx(){if(Qy)return js;Qy=1,Object.defineProperty(js,"__esModule",{value:!0}),js.SatisfactionEnum=void 0;var t;return function(r){r.GOOD="GOOD",r.BAD="BAD"}(t||(js.SatisfactionEnum=t={})),js}var Ky;function $y(){return Ky||(Ky=1,function(t){var r=Da&&Da.__createBinding||(Object.create?function(s,u,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(u,c);(!h||("get"in h?!u.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return u[c]}}),Object.defineProperty(s,d,h)}:function(s,u,c,d){d===void 0&&(d=c),s[d]=u[c]}),i=Da&&Da.__exportStar||function(s,u){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(u,c)&&r(u,s,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(px(),t),i(gx(),t),i(yx(),t),i(Ah(),t),i(xh(),t)}(Da)),Da}var Wy;function vx(){return Wy||(Wy=1,function(t){var r=Dn&&Dn.__createBinding||(Object.create?function(c,d,h,m){m===void 0&&(m=h);var p=Object.getOwnPropertyDescriptor(d,h);(!p||("get"in p?!d.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return d[h]}}),Object.defineProperty(c,m,p)}:function(c,d,h,m){m===void 0&&(m=h),c[m]=d[h]}),i=Dn&&Dn.__setModuleDefault||(Object.create?function(c,d){Object.defineProperty(c,"default",{enumerable:!0,value:d})}:function(c,d){c.default=d}),s=Dn&&Dn.__exportStar||function(c,d){for(var h in c)h!=="default"&&!Object.prototype.hasOwnProperty.call(d,h)&&r(d,c,h)},u=Dn&&Dn.__importStar||function(){var c=function(d){return c=Object.getOwnPropertyNames||function(h){var m=[];for(var p in h)Object.prototype.hasOwnProperty.call(h,p)&&(m[m.length]=p);return m},c(d)};return function(d){if(d&&d.__esModule)return d;var h={};if(d!=null)for(var m=c(d),p=0;p<m.length;p++)m[p]!=="default"&&r(h,d,m[p]);return i(h,d),h}}();Object.defineProperty(t,"__esModule",{value:!0}),t.Model=t.CMS=void 0,s(nx(),t),t.CMS=u(ix()),s(mx(),t),t.Model=u($y()),s($y(),t)}(Dn)),Dn}var Te=vx();const sb=t=>r=>(t.payload.type!==Te.ActionTypes.MESSAGE_FROM_GUEST&&r(Te.Actions.receiveTextMessageWithoutAnalysisFromGuest(t.label,t.payload)),r(t.payload)),lb=t=>(r,i)=>{const{quickReplies:s}=i().chat,u=s.find(c=>t.toLocaleLowerCase().indexOf(c.label.toLocaleLowerCase())>-1);return r(u?sb({...u,label:t}):JSON.parse(JSON.stringify(Te.Actions.receiveTextMessageFromGuest(t))))},Oh="MESSAGE_TO_PARENT_PAGE",Rh="RESTORE_PREVIOUS_CHAT_MESSAGES",wh="AUDIO_MESSAGE_FROM_USER",Ch="RECEIVE_SPEECH_TRANSCRIPTION",Nh="ENABLE_CONVERSATION_RATING",ob="LOAD_SOURCE_INFOS_RESPONSE",Mh="LOAD_SOURCE_INFOS_ERROR",Dh="LOAD_SOURCE_INFOS_REQUEST",Lh="CLOSE_SOURCE_INFOS",bx="webclient.get.started",ub="webclient.window.expand",cb="webclient.window.close",fb="webclient.transcript.pdf.download",_x=[Oh,Rh,wh,Ch,Nh,Dh,Lh],Ex=t=>({type:wh,buffer:t}),Sx=t=>({type:Ch,transcription:t}),Tx=t=>({type:Te.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:t}}}),Ax=()=>({type:fb}),xx=({rating:t})=>({type:Nh,payload:{rating:t}}),Ox=(t,r)=>({type:Te.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:t,feedback:r}}),db=t=>Te.Actions.requestNLUEvent(t),Rx=t=>({type:Rh,messages:t}),wx=t=>{switch(t.type){case Te.ButtonTypeEnum.WEB_URL:return mb(t.url);case Te.ButtonTypeEnum.POSTBACK:return t.payload;default:throw new Error(`unknown button type ${t.type}`)}},hb=t=>mb(t),mb=t=>({type:Oh,message:{type:"webclient.change.url",url:t}});/*! js-cookie v3.0.5 | MIT */function Mo(t){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)t[s]=i[s]}return t}var Cx={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function eh(t,r){function i(u,c,d){if(!(typeof document>"u")){d=Mo({},r,d),typeof d.expires=="number"&&(d.expires=new Date(Date.now()+d.expires*864e5)),d.expires&&(d.expires=d.expires.toUTCString()),u=encodeURIComponent(u).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var h="";for(var m in d)d[m]&&(h+="; "+m,d[m]!==!0&&(h+="="+d[m].split(";")[0]));return document.cookie=u+"="+t.write(c,u)+h}}function s(u){if(!(typeof document>"u"||arguments.length&&!u)){for(var c=document.cookie?document.cookie.split("; "):[],d={},h=0;h<c.length;h++){var m=c[h].split("="),p=m.slice(1).join("=");try{var y=decodeURIComponent(m[0]);if(d[y]=t.read(p,y),u===y)break}catch{}}return u?d[u]:d}}return Object.create({set:i,get:s,remove:function(u,c){i(u,"",Mo({},c,{expires:-1}))},withAttributes:function(u){return eh(this.converter,Mo({},this.attributes,u))},withConverter:function(u){return eh(Mo({},this.converter,u),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(t)}})}var Do=eh(Cx,{path:"/"});const Rt=[];for(let t=0;t<256;++t)Rt.push((t+256).toString(16).slice(1));function Nx(t,r=0){return(Rt[t[r+0]]+Rt[t[r+1]]+Rt[t[r+2]]+Rt[t[r+3]]+"-"+Rt[t[r+4]]+Rt[t[r+5]]+"-"+Rt[t[r+6]]+Rt[t[r+7]]+"-"+Rt[t[r+8]]+Rt[t[r+9]]+"-"+Rt[t[r+10]]+Rt[t[r+11]]+Rt[t[r+12]]+Rt[t[r+13]]+Rt[t[r+14]]+Rt[t[r+15]]).toLowerCase()}let ad;const Mx=new Uint8Array(16);function Dx(){if(!ad){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ad=crypto.getRandomValues.bind(crypto)}return ad(Mx)}const Lx=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Jy={randomUUID:Lx};function $o(t,r,i){if(Jy.randomUUID&&!t)return Jy.randomUUID();t=t||{};const s=t.random??t.rng?.()??Dx();if(s.length<16)throw new Error("Random bytes length must be >= 16");return s[6]=s[6]&15|64,s[8]=s[8]&63|128,Nx(s)}function wt(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var Bx=typeof Symbol=="function"&&Symbol.observable||"@@observable",ev=Bx,id=()=>Math.random().toString(36).substring(7).split("").join("."),Ux={INIT:`@@redux/INIT${id()}`,REPLACE:`@@redux/REPLACE${id()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${id()}`},Wo=Ux;function Bh(t){if(typeof t!="object"||t===null)return!1;let r=t;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(t)===r||Object.getPrototypeOf(t)===null}function pb(t,r,i){if(typeof t!="function")throw new Error(wt(2));if(typeof r=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(wt(0));if(typeof r=="function"&&typeof i>"u"&&(i=r,r=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(wt(1));return i(pb)(t,r)}let s=t,u=r,c=new Map,d=c,h=0,m=!1;function p(){d===c&&(d=new Map,c.forEach((G,_)=>{d.set(_,G)}))}function y(){if(m)throw new Error(wt(3));return u}function E(G){if(typeof G!="function")throw new Error(wt(4));if(m)throw new Error(wt(5));let _=!0;p();const C=h++;return d.set(C,G),function(){if(_){if(m)throw new Error(wt(6));_=!1,p(),d.delete(C),c=null}}}function A(G){if(!Bh(G))throw new Error(wt(7));if(typeof G.type>"u")throw new Error(wt(8));if(typeof G.type!="string")throw new Error(wt(17));if(m)throw new Error(wt(9));try{m=!0,u=s(u,G)}finally{m=!1}return(c=d).forEach(C=>{C()}),G}function U(G){if(typeof G!="function")throw new Error(wt(10));s=G,A({type:Wo.REPLACE})}function R(){const G=E;return{subscribe(_){if(typeof _!="object"||_===null)throw new Error(wt(11));function C(){const I=_;I.next&&I.next(y())}return C(),{unsubscribe:G(C)}},[ev](){return this}}}return A({type:Wo.INIT}),{dispatch:A,subscribe:E,getState:y,replaceReducer:U,[ev]:R}}function Hx(t){Object.keys(t).forEach(r=>{const i=t[r];if(typeof i(void 0,{type:Wo.INIT})>"u")throw new Error(wt(12));if(typeof i(void 0,{type:Wo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(wt(13))})}function gb(t){const r=Object.keys(t),i={};for(let c=0;c<r.length;c++){const d=r[c];typeof t[d]=="function"&&(i[d]=t[d])}const s=Object.keys(i);let u;try{Hx(i)}catch(c){u=c}return function(d={},h){if(u)throw u;let m=!1;const p={};for(let y=0;y<s.length;y++){const E=s[y],A=i[E],U=d[E],R=A(U,h);if(typeof R>"u")throw h&&h.type,new Error(wt(14));p[E]=R,m=m||R!==U}return m=m||s.length!==Object.keys(d).length,m?p:d}}function Jo(...t){return t.length===0?r=>r:t.length===1?t[0]:t.reduce((r,i)=>(...s)=>r(i(...s)))}function jx(...t){return r=>(i,s)=>{const u=r(i,s);let c=()=>{throw new Error(wt(15))};const d={getState:u.getState,dispatch:(m,...p)=>c(m,...p)},h=t.map(m=>m(d));return c=Jo(...h)(u.dispatch),{...u,dispatch:c}}}function Ix(t){return Bh(t)&&"type"in t&&typeof t.type=="string"}var yb=Symbol.for("immer-nothing"),tv=Symbol.for("immer-draftable"),on=Symbol.for("immer-state");function In(t,...r){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var wi=Object.getPrototypeOf;function Ga(t){return!!t&&!!t[on]}function wr(t){return t?vb(t)||Array.isArray(t)||!!t[tv]||!!t.constructor?.[tv]||fu(t)||du(t):!1}var zx=Object.prototype.constructor.toString();function vb(t){if(!t||typeof t!="object")return!1;const r=wi(t);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)===zx}function eu(t,r){cu(t)===0?Reflect.ownKeys(t).forEach(i=>{r(i,t[i],t)}):t.forEach((i,s)=>r(s,i,t))}function cu(t){const r=t[on];return r?r.type_:Array.isArray(t)?1:fu(t)?2:du(t)?3:0}function th(t,r){return cu(t)===2?t.has(r):Object.prototype.hasOwnProperty.call(t,r)}function bb(t,r,i){const s=cu(t);s===2?t.set(r,i):s===3?t.add(i):t[r]=i}function Gx(t,r){return t===r?t!==0||1/t===1/r:t!==t&&r!==r}function fu(t){return t instanceof Map}function du(t){return t instanceof Set}function Ha(t){return t.copy_||t.base_}function nh(t,r){if(fu(t))return new Map(t);if(du(t))return new Set(t);if(Array.isArray(t))return Array.prototype.slice.call(t);const i=vb(t);if(r===!0||r==="class_only"&&!i){const s=Object.getOwnPropertyDescriptors(t);delete s[on];let u=Reflect.ownKeys(s);for(let c=0;c<u.length;c++){const d=u[c],h=s[d];h.writable===!1&&(h.writable=!0,h.configurable=!0),(h.get||h.set)&&(s[d]={configurable:!0,writable:!0,enumerable:h.enumerable,value:t[d]})}return Object.create(wi(t),s)}else{const s=wi(t);if(s!==null&&i)return{...t};const u=Object.create(s);return Object.assign(u,t)}}function Uh(t,r=!1){return hu(t)||Ga(t)||!wr(t)||(cu(t)>1&&(t.set=t.add=t.clear=t.delete=kx),Object.freeze(t),r&&Object.entries(t).forEach(([i,s])=>Uh(s,!0))),t}function kx(){In(2)}function hu(t){return Object.isFrozen(t)}var qx={};function ka(t){const r=qx[t];return r||In(0,t),r}var $s;function _b(){return $s}function Fx(t,r){return{drafts_:[],parent_:t,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function nv(t,r){r&&(ka("Patches"),t.patches_=[],t.inversePatches_=[],t.patchListener_=r)}function rh(t){ah(t),t.drafts_.forEach(Vx),t.drafts_=null}function ah(t){t===$s&&($s=t.parent_)}function rv(t){return $s=Fx($s,t)}function Vx(t){const r=t[on];r.type_===0||r.type_===1?r.revoke_():r.revoked_=!0}function av(t,r){r.unfinalizedDrafts_=r.drafts_.length;const i=r.drafts_[0];return t!==void 0&&t!==i?(i[on].modified_&&(rh(r),In(4)),wr(t)&&(t=tu(r,t),r.parent_||nu(r,t)),r.patches_&&ka("Patches").generateReplacementPatches_(i[on].base_,t,r.patches_,r.inversePatches_)):t=tu(r,i,[]),rh(r),r.patches_&&r.patchListener_(r.patches_,r.inversePatches_),t!==yb?t:void 0}function tu(t,r,i){if(hu(r))return r;const s=r[on];if(!s)return eu(r,(u,c)=>iv(t,s,r,u,c,i)),r;if(s.scope_!==t)return r;if(!s.modified_)return nu(t,s.base_,!0),s.base_;if(!s.finalized_){s.finalized_=!0,s.scope_.unfinalizedDrafts_--;const u=s.copy_;let c=u,d=!1;s.type_===3&&(c=new Set(u),u.clear(),d=!0),eu(c,(h,m)=>iv(t,s,u,h,m,i,d)),nu(t,u,!1),i&&t.patches_&&ka("Patches").generatePatches_(s,i,t.patches_,t.inversePatches_)}return s.copy_}function iv(t,r,i,s,u,c,d){if(Ga(u)){const h=c&&r&&r.type_!==3&&!th(r.assigned_,s)?c.concat(s):void 0,m=tu(t,u,h);if(bb(i,s,m),Ga(m))t.canAutoFreeze_=!1;else return}else d&&i.add(u);if(wr(u)&&!hu(u)){if(!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1)return;tu(t,u),(!r||!r.scope_.parent_)&&typeof s!="symbol"&&Object.prototype.propertyIsEnumerable.call(i,s)&&nu(t,u)}}function nu(t,r,i=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Uh(r,i)}function Px(t,r){const i=Array.isArray(t),s={type_:i?1:0,scope_:r?r.scope_:_b(),modified_:!1,finalized_:!1,assigned_:{},parent_:r,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1};let u=s,c=Hh;i&&(u=[s],c=Ws);const{revoke:d,proxy:h}=Proxy.revocable(u,c);return s.draft_=h,s.revoke_=d,h}var Hh={get(t,r){if(r===on)return t;const i=Ha(t);if(!th(i,r))return Yx(t,i,r);const s=i[r];return t.finalized_||!wr(s)?s:s===sd(t.base_,r)?(ld(t),t.copy_[r]=sh(s,t)):s},has(t,r){return r in Ha(t)},ownKeys(t){return Reflect.ownKeys(Ha(t))},set(t,r,i){const s=Eb(Ha(t),r);if(s?.set)return s.set.call(t.draft_,i),!0;if(!t.modified_){const u=sd(Ha(t),r),c=u?.[on];if(c&&c.base_===i)return t.copy_[r]=i,t.assigned_[r]=!1,!0;if(Gx(i,u)&&(i!==void 0||th(t.base_,r)))return!0;ld(t),ih(t)}return t.copy_[r]===i&&(i!==void 0||r in t.copy_)||Number.isNaN(i)&&Number.isNaN(t.copy_[r])||(t.copy_[r]=i,t.assigned_[r]=!0),!0},deleteProperty(t,r){return sd(t.base_,r)!==void 0||r in t.base_?(t.assigned_[r]=!1,ld(t),ih(t)):delete t.assigned_[r],t.copy_&&delete t.copy_[r],!0},getOwnPropertyDescriptor(t,r){const i=Ha(t),s=Reflect.getOwnPropertyDescriptor(i,r);return s&&{writable:!0,configurable:t.type_!==1||r!=="length",enumerable:s.enumerable,value:i[r]}},defineProperty(){In(11)},getPrototypeOf(t){return wi(t.base_)},setPrototypeOf(){In(12)}},Ws={};eu(Hh,(t,r)=>{Ws[t]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}});Ws.deleteProperty=function(t,r){return Ws.set.call(this,t,r,void 0)};Ws.set=function(t,r,i){return Hh.set.call(this,t[0],r,i,t[0])};function sd(t,r){const i=t[on];return(i?Ha(i):t)[r]}function Yx(t,r,i){const s=Eb(r,i);return s?"value"in s?s.value:s.get?.call(t.draft_):void 0}function Eb(t,r){if(!(r in t))return;let i=wi(t);for(;i;){const s=Object.getOwnPropertyDescriptor(i,r);if(s)return s;i=wi(i)}}function ih(t){t.modified_||(t.modified_=!0,t.parent_&&ih(t.parent_))}function ld(t){t.copy_||(t.copy_=nh(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Xx=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(r,i,s)=>{if(typeof r=="function"&&typeof i!="function"){const c=i;i=r;const d=this;return function(m=c,...p){return d.produce(m,y=>i.call(this,y,...p))}}typeof i!="function"&&In(6),s!==void 0&&typeof s!="function"&&In(7);let u;if(wr(r)){const c=rv(this),d=sh(r,void 0);let h=!0;try{u=i(d),h=!1}finally{h?rh(c):ah(c)}return nv(c,s),av(u,c)}else if(!r||typeof r!="object"){if(u=i(r),u===void 0&&(u=r),u===yb&&(u=void 0),this.autoFreeze_&&Uh(u,!0),s){const c=[],d=[];ka("Patches").generateReplacementPatches_(r,u,c,d),s(c,d)}return u}else In(1,r)},this.produceWithPatches=(r,i)=>{if(typeof r=="function")return(d,...h)=>this.produceWithPatches(d,m=>r(m,...h));let s,u;return[this.produce(r,i,(d,h)=>{s=d,u=h}),s,u]},typeof t?.autoFreeze=="boolean"&&this.setAutoFreeze(t.autoFreeze),typeof t?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(t.useStrictShallowCopy)}createDraft(t){wr(t)||In(8),Ga(t)&&(t=Zx(t));const r=rv(this),i=sh(t,void 0);return i[on].isManual_=!0,ah(r),i}finishDraft(t,r){const i=t&&t[on];(!i||!i.isManual_)&&In(9);const{scope_:s}=i;return nv(s,r),av(void 0,s)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}applyPatches(t,r){let i;for(i=r.length-1;i>=0;i--){const u=r[i];if(u.path.length===0&&u.op==="replace"){t=u.value;break}}i>-1&&(r=r.slice(i+1));const s=ka("Patches").applyPatches_;return Ga(t)?s(t,r):this.produce(t,u=>s(u,r))}};function sh(t,r){const i=fu(t)?ka("MapSet").proxyMap_(t,r):du(t)?ka("MapSet").proxySet_(t,r):Px(t,r);return(r?r.scope_:_b()).drafts_.push(i),i}function Zx(t){return Ga(t)||In(10,t),Sb(t)}function Sb(t){if(!wr(t)||hu(t))return t;const r=t[on];let i;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,i=nh(t,r.scope_.immer_.useStrictShallowCopy_)}else i=nh(t,!0);return eu(i,(s,u)=>{bb(i,s,Sb(u))}),r&&(r.finalized_=!1),i}var un=new Xx,Tb=un.produce;un.produceWithPatches.bind(un);un.setAutoFreeze.bind(un);un.setUseStrictShallowCopy.bind(un);un.applyPatches.bind(un);un.createDraft.bind(un);un.finishDraft.bind(un);function Ab(t){return({dispatch:i,getState:s})=>u=>c=>typeof c=="function"?c(i,s,t):u(c)}var Qx=Ab(),Kx=Ab,$x=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Jo:Jo.apply(null,arguments)};function sv(t,r){function i(...s){if(r){let u=r(...s);if(!u)throw new Error(Ar(0));return{type:t,payload:u.payload,..."meta"in u&&{meta:u.meta},..."error"in u&&{error:u.error}}}return{type:t,payload:s[0]}}return i.toString=()=>`${t}`,i.type=t,i.match=s=>Ix(s)&&s.type===t,i}var xb=class Xs extends Array{constructor(...r){super(...r),Object.setPrototypeOf(this,Xs.prototype)}static get[Symbol.species](){return Xs}concat(...r){return super.concat.apply(this,r)}prepend(...r){return r.length===1&&Array.isArray(r[0])?new Xs(...r[0].concat(this)):new Xs(...r.concat(this))}};function lv(t){return wr(t)?Tb(t,()=>{}):t}function Lo(t,r,i){return t.has(r)?t.get(r):t.set(r,i(r)).get(r)}function Wx(t){return typeof t=="boolean"}var Jx=()=>function(r){const{thunk:i=!0,immutableCheck:s=!0,serializableCheck:u=!0,actionCreatorCheck:c=!0}=r??{};let d=new xb;return i&&(Wx(i)?d.push(Qx):d.push(Kx(i.extraArgument))),d},eO="RTK_autoBatch",ov=t=>r=>{setTimeout(r,t)},tO=(t={type:"raf"})=>r=>(...i)=>{const s=r(...i);let u=!0,c=!1,d=!1;const h=new Set,m=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ov(10):t.type==="callback"?t.queueNotification:ov(t.timeout),p=()=>{d=!1,c&&(c=!1,h.forEach(y=>y()))};return Object.assign({},s,{subscribe(y){const E=()=>u&&y(),A=s.subscribe(E);return h.add(y),()=>{A(),h.delete(y)}},dispatch(y){try{return u=!y?.meta?.[eO],c=!u,c&&(d||(d=!0,m(p))),s.dispatch(y)}finally{u=!0}}})},nO=t=>function(i){const{autoBatch:s=!0}=i??{};let u=new xb(t);return s&&u.push(tO(typeof s=="object"?s:void 0)),u};function rO(t){const r=Jx(),{reducer:i=void 0,middleware:s,devTools:u=!0,preloadedState:c=void 0,enhancers:d=void 0}=t||{};let h;if(typeof i=="function")h=i;else if(Bh(i))h=gb(i);else throw new Error(Ar(1));let m;typeof s=="function"?m=s(r):m=r();let p=Jo;u&&(p=$x({trace:!1,...typeof u=="object"&&u}));const y=jx(...m),E=nO(y);let A=typeof d=="function"?d(E):E();const U=p(...A);return pb(h,c,U)}function Ob(t){const r={},i=[];let s;const u={addCase(c,d){const h=typeof c=="string"?c:c.type;if(!h)throw new Error(Ar(28));if(h in r)throw new Error(Ar(29));return r[h]=d,u},addMatcher(c,d){return i.push({matcher:c,reducer:d}),u},addDefaultCase(c){return s=c,u}};return t(u),[r,i,s]}function aO(t){return typeof t=="function"}function iO(t,r){let[i,s,u]=Ob(r),c;if(aO(t))c=()=>lv(t());else{const h=lv(t);c=()=>h}function d(h=c(),m){let p=[i[m.type],...s.filter(({matcher:y})=>y(m)).map(({reducer:y})=>y)];return p.filter(y=>!!y).length===0&&(p=[u]),p.reduce((y,E)=>{if(E)if(Ga(y)){const U=E(y,m);return U===void 0?y:U}else{if(wr(y))return Tb(y,A=>E(A,m));{const A=E(y,m);if(A===void 0){if(y===null)return y;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}}return y},h)}return d.getInitialState=c,d}var sO=Symbol.for("rtk-slice-createasyncthunk");function lO(t,r){return`${t}/${r}`}function oO({creators:t}={}){const r=t?.asyncThunk?.[sO];return function(s){const{name:u,reducerPath:c=u}=s;if(!u)throw new Error(Ar(11));const d=(typeof s.reducers=="function"?s.reducers(cO()):s.reducers)||{},h=Object.keys(d),m={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(S,I){const x=typeof S=="string"?S:S.type;if(!x)throw new Error(Ar(12));if(x in m.sliceCaseReducersByType)throw new Error(Ar(13));return m.sliceCaseReducersByType[x]=I,p},addMatcher(S,I){return m.sliceMatchers.push({matcher:S,reducer:I}),p},exposeAction(S,I){return m.actionCreators[S]=I,p},exposeCaseReducer(S,I){return m.sliceCaseReducersByName[S]=I,p}};h.forEach(S=>{const I=d[S],x={reducerName:S,type:lO(u,S),createNotation:typeof s.reducers=="function"};dO(I)?mO(x,I,p,r):fO(x,I,p)});function y(){const[S={},I=[],x=void 0]=typeof s.extraReducers=="function"?Ob(s.extraReducers):[s.extraReducers],Z={...S,...m.sliceCaseReducersByType};return iO(s.initialState,W=>{for(let ae in Z)W.addCase(ae,Z[ae]);for(let ae of m.sliceMatchers)W.addMatcher(ae.matcher,ae.reducer);for(let ae of I)W.addMatcher(ae.matcher,ae.reducer);x&&W.addDefaultCase(x)})}const E=S=>S,A=new Map,U=new WeakMap;let R;function F(S,I){return R||(R=y()),R(S,I)}function G(){return R||(R=y()),R.getInitialState()}function _(S,I=!1){function x(W){let ae=W[S];return typeof ae>"u"&&I&&(ae=Lo(U,x,G)),ae}function Z(W=E){const ae=Lo(A,I,()=>new WeakMap);return Lo(ae,W,()=>{const ge={};for(const[Ee,se]of Object.entries(s.selectors??{}))ge[Ee]=uO(se,W,()=>Lo(U,W,G),I);return ge})}return{reducerPath:S,getSelectors:Z,get selectors(){return Z(x)},selectSlice:x}}const C={name:u,reducer:F,actions:m.actionCreators,caseReducers:m.sliceCaseReducersByName,getInitialState:G,..._(c),injectInto(S,{reducerPath:I,...x}={}){const Z=I??c;return S.inject({reducerPath:Z,reducer:F},x),{...C,..._(Z,!0)}}};return C}}function uO(t,r,i,s){function u(c,...d){let h=r(c);return typeof h>"u"&&s&&(h=i()),t(h,...d)}return u.unwrapped=t,u}var jh=oO();function cO(){function t(r,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:r,...i}}return t.withTypes=()=>t,{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:t}}function fO({type:t,reducerName:r,createNotation:i},s,u){let c,d;if("reducer"in s){if(i&&!hO(s))throw new Error(Ar(17));c=s.reducer,d=s.prepare}else c=s;u.addCase(t,c).exposeCaseReducer(r,c).exposeAction(r,d?sv(t,d):sv(t))}function dO(t){return t._reducerDefinitionType==="asyncThunk"}function hO(t){return t._reducerDefinitionType==="reducerWithPrepare"}function mO({type:t,reducerName:r},i,s,u){if(!u)throw new Error(Ar(18));const{payloadCreator:c,fulfilled:d,pending:h,rejected:m,settled:p,options:y}=i,E=u(t,c,y);s.exposeAction(r,E),d&&s.addCase(E.fulfilled,d),h&&s.addCase(E.pending,h),m&&s.addCase(E.rejected,m),p&&s.addMatcher(E.settled,p),s.exposeCaseReducer(r,{fulfilled:d||Bo,pending:h||Bo,rejected:m||Bo,settled:p||Bo})}function Bo(){}function Ar(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}const pO={formValues:{}},Rb=jh({name:"start-screen",initialState:pO,reducers:{showStartScreen(t){t.startScreenStatus="VISIBLE",t.formValues={}},startChat(t,r){t.startScreenStatus="HIDDEN",t.formValues=r.payload.formValues},startAuthenticatedChat(t,r){t.startScreenStatus="HIDDEN",t.loginToken=r.payload.loginToken,t.loginRequestToken=void 0},requestLogin(t,r){t.loginRequestToken=r.payload.loginRequestToken,t.formValues=r.payload.formValues},loginWindowClosed(t){t.loginRequestToken=void 0}}}),{startChat:gO,startAuthenticatedChat:yO,showStartScreen:vO,requestLogin:bO,loginWindowClosed:_O}=Rb.actions,EO=Rb.reducer,wb="RESET_CHAT_STATE",Cb="TOGGLE_TRANSCRIPT_MAIL_OVERLAY",Nb="SHOW_CONVERSATION_RATING_OVERLAY",Mb="HIDE_CONVERSATION_RATING_OVERLAY",Db=()=>({type:cb}),SO=()=>({type:wb}),Lb=()=>({type:Cb}),Ih=(t,r=void 0)=>({type:Nb,payload:{opener:t,defaultRating:r}}),TO=()=>({type:Mb}),uv=(t,r,i)=>(s,u)=>{try{const c=u().connection.sessionId;if(!c)throw new Error("Session ID is not available");s({type:Dh,payload:{chunkId:i}}),cv(t,c,r,i,!1,s),cv(t,c,r,i,!0,s)}catch(c){console.error("Error loading source infos:",c),s({type:Mh})}},cv=(t,r,i,s,u,c)=>{const d=`/${t}/me/chat-widget/transcript/${i}/chunks/${s}?highlight=${u}`;fetch(d,{headers:{"x-bubble-chat-session-id":r}}).then(h=>{if(!h.ok)throw new Error(`HTTP error! Status: ${h.status}`);return h.json()}).then(h=>{const m={...h,chunkId:s,highlighted:u};c({type:ob,payload:m})}).catch(h=>{console.error("Error fetching source infos:",h),c({type:Mh,payload:{highlighted:u}})})},AO=()=>({type:Lh}),zh="CONNECT",Gh="CONNECTING",kh="CONNECTED",qh="DISCONNECTED",Fh="RECONNECTED",Vh="RESTORE_SESSION_ID",mu="START",pu="CLEAR_SESSION_ID",xO=[zh,Gh,kh,qh,Fh,Vh],OO=(t,r)=>({type:zh,clientName:t,querystrings:r}),RO=t=>({type:Vh,sessionId:t}),wO=()=>({type:Gh}),CO=()=>({type:kh}),NO=()=>({type:qh}),MO=()=>({type:Fh}),Bb=(t,r)=>(i,s)=>{const u=s().connection,{formValues:c,loginToken:d}=s().startScreen;let h=u.sessionId;h===void 0&&(h=$o());let m=u.userId;if(m===void 0){const p=Do.get("bubble-chat-user-id")||Do.get("bubble-chat-userId")||Do.get("bf-webclient-userId");m=p||$o(),Do.set("bubble-chat-user-id",m)}i({type:mu,payload:{sessionId:h,userId:m,clientName:t,loginToken:d,querystrings:{...r,...c}}})},gu=(t,r)=>(i,s)=>{const u=s().connection.sessionId||"";if(i(DO(u)),i(SO()),s().settings.enableStartScreen)i(vO());else return i(Bb(t,r))},DO=t=>({type:pu,payload:{sessionId:t}}),tt=()=>{const t=ou();return i=>{const s=t.formatMessage({id:i});return s===i?void 0:s}};var Ia=(t=>(t[t.CONNECTING=0]="CONNECTING",t[t.CONNECTED=1]="CONNECTED",t[t.RECONNECTED=2]="RECONNECTED",t[t.DISCONNECTED=3]="DISCONNECTED",t))(Ia||{}),ru=(t=>(t.GUEST="GUEST",t.BOT="BOT",t.PERSON="PERSON",t))(ru||{});const LO="_container_q2uun_1",BO="_chatcontent_q2uun_6",UO="_accessabilityHidden_q2uun_12",od={container:LO,chatcontent:BO,accessabilityHidden:UO},HO="_messageContainer_ofi0g_1",jO="_messages_ofi0g_12",fv={messageContainer:HO,messages:jO};function ja(){return ja=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s])}return t},ja.apply(this,arguments)}const IO=["children","options"],zO={footnoteReference:"7"},dv=["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((t,r)=>(t[r.toLowerCase()]=r,t),{class:"className",for:"htmlFor"}),hv={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},GO=["style","script","pre"],kO=["src","href","data","formAction","srcDoc","action"],qO=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,FO=/mailto:/i,VO=/\n{2,}$/,mv=/^(\s*>[\s\S]*?)(?=\n\n|$)/,PO=/^ *> ?/gm,YO=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,XO=/^ {2,}\n/,ZO=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,pv=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,gv=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,QO=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,KO=/^(?:\n *)*\n/,$O=/\r\n?/g,WO=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,JO=/^\[\^([^\]]+)]/,eR=/\f/g,tR=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,nR=/^\s*?\[(x|\s)\]/,yv=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,vv=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,bv=/^([^\n]+)\n *(=|-){3,} *\n/,ud=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,rR=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,_v=/^<!--[\s\S]*?(?:-->)/,aR=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,cd=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,iR=/^\{.*\}$/,sR=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,lR=/^<([^ >]+@[^ >]+)>/,oR=/^<([^ >]+:\/[^ >]+)>/,uR=/-([a-z])?/gi,Ev=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,cR=/^[^\n]+(?: \n|\n{2,})/,fR=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,dR=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,hR=/^\[([^\]]*)\] ?\[([^\]]*)\]/,mR=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,pR=/\t/g,gR=/(^ *\||\| *$)/g,yR=/^ *:-+: *$/,vR=/^ *:-+ *$/,bR=/^ *-+: *$/,yu=t=>`(?=[\\s\\S]+?\\1${t?"\\1":""})`,vu="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",_R=RegExp(`^([*_])\\1${yu(1)}${vu}\\1\\1(?!\\1)`),ER=RegExp(`^([*_])${yu(0)}${vu}\\1(?!\\1)`),SR=RegExp(`^(==)${yu(0)}${vu}\\1`),TR=RegExp(`^(~~)${yu(0)}${vu}\\1`),AR=/^(:[a-zA-Z0-9-_]+:)/,xR=/^\\([^0-9A-Za-z\s])/,OR=/\\([^0-9A-Za-z\s])/g,RR=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,wR=/^\n+/,CR=/^([ \t]*)/,NR=/(?:^|\n)( *)$/,Ph="(?:\\d+\\.)",Yh="(?:[*+-])";function Ub(t){return"( *)("+(t===1?Ph:Yh)+") +"}const Hb=Ub(1),jb=Ub(2);function Ib(t){return RegExp("^"+(t===1?Hb:jb))}const MR=Ib(1),DR=Ib(2);function zb(t){return RegExp("^"+(t===1?Hb:jb)+"[^\\n]*(?:\\n(?!\\1"+(t===1?Ph:Yh)+" )[^\\n]*)*(\\n|$)","gm")}const LR=zb(1),BR=zb(2);function Gb(t){const r=t===1?Ph:Yh;return RegExp("^( *)("+r+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+r+" (?!"+r+" ))\\n*|\\s*\\n*$)")}const kb=Gb(1),qb=Gb(2);function Sv(t,r){const i=r===1,s=i?kb:qb,u=i?LR:BR,c=i?MR:DR;return{t:d=>c.test(d),o:Ci(function(d,h){const m=NR.exec(h.prevCapture);return m&&(h.list||!h.inline&&!h.simple)?s.exec(d=m[1]+d):null}),i:1,u(d,h,m){const p=i?+d[2]:void 0,y=d[0].replace(VO,`
94
+ `).match(u);let E=!1;return{items:y.map(function(A,U){const R=c.exec(A)[0].length,F=RegExp("^ {1,"+R+"}","gm"),G=A.replace(F,"").replace(c,""),_=U===y.length-1,C=G.indexOf(`
95
+
96
+ `)!==-1||_&&E;E=C;const S=m.inline,I=m.list;let x;m.list=!0,C?(m.inline=!1,x=Ks(G)+`
97
+
98
+ `):(m.inline=!0,x=Ks(G));const Z=h(x,m);return m.inline=S,m.list=I,Z}),ordered:i,start:p}},l:(d,h,m)=>t(d.ordered?"ol":"ul",{key:m.key,start:d.type==="20"?d.start:void 0},d.items.map(function(p,y){return t("li",{key:y},h(p,m))}))}}const UR=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),HR=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function Ks(t){let r=t.length;for(;r>0&&t[r-1]<=" ";)r--;return t.slice(0,r)}function Fo(t,r){return t.startsWith(r)}function jR(t,r,i){if(Array.isArray(i)){for(let s=0;s<i.length;s++)if(Fo(t,i[s]))return!0;return!1}return i(t,r)}function Is(t){return t.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 IR(t){return bR.test(t)?"right":yR.test(t)?"center":vR.test(t)?"left":null}function Tv(t,r,i,s){const u=i.inTable;i.inTable=!0;let c=[[]],d="";function h(){if(!d)return;const m=c[c.length-1];m.push.apply(m,r(d,i)),d=""}return t.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((m,p,y)=>{m.trim()==="|"&&(h(),s)?p!==0&&p!==y.length-1&&c.push([]):d+=m}),h(),i.inTable=u,c}function zR(t,r,i){i.inline=!0;const s=t[2]?t[2].replace(gR,"").split("|").map(IR):[],u=t[3]?function(d,h,m){return d.trim().split(`
99
+ `).map(function(p){return Tv(p,h,m,!0)})}(t[3],r,i):[],c=Tv(t[1],r,i,!!u.length);return i.inline=!1,u.length?{align:s,cells:u,header:c,type:"25"}:{children:c,type:"21"}}function Av(t,r){return t.align[r]==null?{}:{textAlign:t.align[r]}}function Ci(t){return t.inline=1,t}function ra(t){return Ci(function(r,i){return i.inline?t.exec(r):null})}function aa(t){return Ci(function(r,i){return i.inline||i.simple?t.exec(r):null})}function Er(t){return function(r,i){return i.inline||i.simple?null:t.exec(r)}}function Uo(t){return Ci(function(r){return t.exec(r)})}const GR=/(javascript|vbscript|data(?!:image)):/i;function kR(t){try{const r=decodeURIComponent(t).replace(/[^A-Za-z0-9/:]/g,"");if(GR.test(r))return null}catch{return null}return t}function Zn(t){return t&&t.replace(OR,"$1")}function Vo(t,r,i){const s=i.inline||!1,u=i.simple||!1;i.inline=!0,i.simple=!0;const c=t(r,i);return i.inline=s,i.simple=u,c}function qR(t,r,i){const s=i.inline||!1,u=i.simple||!1;i.inline=!1,i.simple=!0;const c=t(r,i);return i.inline=s,i.simple=u,c}function FR(t,r,i){const s=i.inline||!1;i.inline=!1;const u=t(r,i);return i.inline=s,u}const fd=(t,r,i)=>({children:Vo(r,t[2],i)});function dd(){return{}}function hd(){return null}function VR(...t){return t.filter(Boolean).join(" ")}function md(t,r,i){let s=t;const u=r.split(".");for(;u.length&&(s=s[u[0]],s!==void 0);)u.shift();return s||i}function PR(t="",r={}){r.overrides=r.overrides||{},r.namedCodesToUnicode=r.namedCodesToUnicode?ja({},hv,r.namedCodesToUnicode):hv;const i=r.slugify||Is,s=r.sanitizer||kR,u=r.createElement||H.createElement,c=[mv,pv,gv,r.enforceAtxHeadings?vv:yv,bv,Ev,kb,qb],d=[...c,cR,ud,_v,cd];function h(_,C,...S){const I=md(r.overrides,_+".props",{});return u(function(x,Z){const W=md(Z,x);return W?typeof W=="function"||typeof W=="object"&&"render"in W?W:md(Z,x+".component",x):x}(_,r.overrides),ja({},C,I,{className:VR(C?.className,I.className)||void 0}),...S)}function m(_){_=_.replace(tR,"");let C=!1;r.forceInline?C=!0:r.forceBlock||(C=mR.test(_)===!1);const S=R(U(C?_:Ks(_).replace(wR,"")+`
100
+
101
+ `,{inline:C}));for(;typeof S[S.length-1]=="string"&&!S[S.length-1].trim();)S.pop();if(r.wrapper===null)return S;const I=r.wrapper||(C?"span":"div");let x;if(S.length>1||r.forceWrapper)x=S;else{if(S.length===1)return x=S[0],typeof x=="string"?h("span",{key:"outer"},x):x;x=null}return u(I,{key:"outer"},x)}function p(_,C){if(!C||!C.trim())return null;const S=C.match(qO);return S?S.reduce(function(I,x){const Z=x.indexOf("=");if(Z!==-1){const W=function(se){return se.indexOf("-")!==-1&&se.match(aR)===null&&(se=se.replace(uR,function(me,ce){return ce.toUpperCase()})),se}(x.slice(0,Z)).trim(),ae=function(se){const me=se[0];return(me==='"'||me==="'")&&se.length>=2&&se[se.length-1]===me?se.slice(1,-1):se}(x.slice(Z+1).trim()),ge=dv[W]||W;if(ge==="ref")return I;const Ee=I[ge]=function(se,me,ce,Pe){return me==="style"?function(be){const z=[];let K="",ee=!1,Ae=!1,O="";if(!be)return z;for(let $=0;$<be.length;$++){const Y=be[$];if(Y!=='"'&&Y!=="'"||ee||(Ae?Y===O&&(Ae=!1,O=""):(Ae=!0,O=Y)),Y==="("&&K.endsWith("url")?ee=!0:Y===")"&&ee&&(ee=!1),Y!==";"||Ae||ee)K+=Y;else{const te=K.trim();if(te){const re=te.indexOf(":");if(re>0){const ue=te.slice(0,re).trim(),$e=te.slice(re+1).trim();z.push([ue,$e])}}K=""}}const k=K.trim();if(k){const $=k.indexOf(":");if($>0){const Y=k.slice(0,$).trim(),te=k.slice($+1).trim();z.push([Y,te])}}return z}(ce).reduce(function(be,[z,K]){return be[z.replace(/(-[a-z])/g,ee=>ee[1].toUpperCase())]=Pe(K,se,z),be},{}):kO.indexOf(me)!==-1?Pe(Zn(ce),se,me):(ce.match(iR)&&(ce=Zn(ce.slice(1,ce.length-1))),ce==="true"||ce!=="false"&&ce)}(_,W,ae,s);typeof Ee=="string"&&(ud.test(Ee)||cd.test(Ee))&&(I[ge]=m(Ee.trim()))}else x!=="style"&&(I[dv[x]||x]=!0);return I},{}):null}const y=[],E={},A={0:{t:[">"],o:Er(mv),i:1,u(_,C,S){const[,I,x]=_[0].replace(PO,"").match(YO);return{alert:I,children:C(x,S)}},l(_,C,S){const I={key:S.key};return _.alert&&(I.className="markdown-alert-"+i(_.alert.toLowerCase(),Is),_.children.unshift({attrs:{},children:[{type:"27",text:_.alert}],noInnerParse:!0,type:"11",tag:"header"})),h("blockquote",I,C(_.children,S))}},1:{o:Uo(XO),i:1,u:dd,l:(_,C,S)=>h("br",{key:S.key})},2:{t:_=>{const C=_[0];return C==="-"||C==="*"||C==="_"},o:Er(ZO),i:1,u:dd,l:(_,C,S)=>h("hr",{key:S.key})},3:{t:[" "],o:Er(gv),i:0,u:_=>({lang:void 0,text:Zn(Ks(_[0].replace(/^ {4}/gm,"")))}),l:(_,C,S)=>h("pre",{key:S.key},h("code",ja({},_.attrs,{className:_.lang?"lang-"+_.lang:""}),_.text))},4:{t:["```","~~~"],o:Er(pv),i:0,u:_=>({attrs:p("code",_[3]||""),lang:_[2]||void 0,text:_[4],type:"3"})},5:{t:["`"],o:aa(QO),i:3,u:_=>({text:Zn(_[2])}),l:(_,C,S)=>h("code",{key:S.key},_.text)},6:{t:["[^"],o:Er(WO),i:0,u:_=>(y.push({footnote:_[2],identifier:_[1]}),{}),l:hd},7:{t:["[^"],o:ra(JO),i:1,u:_=>({target:"#"+i(_[1],Is),text:_[1]}),l:(_,C,S)=>h("a",{key:S.key,href:s(_.target,"a","href")},h("sup",{key:S.key},_.text))},8:{t:["[ ]","[x]"],o:ra(nR),i:1,u:_=>({completed:_[1].toLowerCase()==="x"}),l:(_,C,S)=>h("input",{checked:_.completed,key:S.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:Er(r.enforceAtxHeadings?vv:yv),i:1,u:(_,C,S)=>({children:Vo(C,_[2],S),id:i(_[2],Is),level:_[1].length}),l:(_,C,S)=>h("h"+_.level,{id:_.id,key:S.key},C(_.children,S))},10:{o:Er(bv),i:0,u:(_,C,S)=>({children:Vo(C,_[1],S),level:_[2]==="="?1:2,type:"9"})},11:{t:["<"],o:Uo(ud),i:1,u(_,C,S){const[,I]=_[3].match(CR),x=RegExp("^"+I,"gm"),Z=_[3].replace(x,""),W=(ae=Z,d.some(ce=>ce.test(ae))?FR:Vo);var ae;const ge=_[1].toLowerCase(),Ee=GO.indexOf(ge)!==-1,se=(Ee?ge:_[1]).trim(),me={attrs:p(se,_[2]),noInnerParse:Ee,tag:se};if(S.inAnchor=S.inAnchor||ge==="a",Ee)me.text=_[3];else{const ce=S.inHTML;S.inHTML=!0,me.children=W(C,Z,S),S.inHTML=ce}return S.inAnchor=!1,me},l:(_,C,S)=>h(_.tag,ja({key:S.key},_.attrs),_.text||(_.children?C(_.children,S):""))},13:{t:["<"],o:Uo(cd),i:1,u(_){const C=_[1].trim();return{attrs:p(C,_[2]||""),tag:C}},l:(_,C,S)=>h(_.tag,ja({},_.attrs,{key:S.key}))},12:{t:["<!--"],o:Uo(_v),i:1,u:()=>({}),l:hd},14:{t:["!["],o:aa(HR),i:1,u:_=>({alt:Zn(_[1]),target:Zn(_[2]),title:Zn(_[3])}),l:(_,C,S)=>h("img",{key:S.key,alt:_.alt||void 0,title:_.title||void 0,src:s(_.target,"img","src")})},15:{t:["["],o:ra(UR),i:3,u:(_,C,S)=>({children:qR(C,_[1],S),target:Zn(_[2]),title:Zn(_[3])}),l:(_,C,S)=>h("a",{key:S.key,href:s(_.target,"a","href"),title:_.title},C(_.children,S))},16:{t:["<"],o:ra(oR),i:0,u:_=>({children:[{text:_[1],type:"27"}],target:_[1],type:"15"})},17:{t:(_,C)=>!C.inAnchor&&!r.disableAutoLink&&(Fo(_,"http://")||Fo(_,"https://")),o:ra(sR),i:0,u:_=>({children:[{text:_[1],type:"27"}],target:_[1],title:void 0,type:"15"})},18:{t:["<"],o:ra(lR),i:0,u(_){let C=_[1],S=_[1];return FO.test(S)||(S="mailto:"+S),{children:[{text:C.replace("mailto:",""),type:"27"}],target:S,type:"15"}}},20:Sv(h,1),33:Sv(h,2),19:{o:Er(KO),i:3,u:dd,l:()=>`
102
+ `},21:{o:Ci(function(_,C){if(C.inline||C.simple||C.inHTML&&_.indexOf(`
103
+
104
+ `)===-1&&C.prevCapture.indexOf(`
105
+
106
+ `)===-1)return null;let S="";_.split(`
107
+ `).every(x=>(x+=`
108
+ `,!c.some(Z=>Z.test(x))&&(S+=x,!!x.trim())));const I=Ks(S);return I===""?null:[S,,I]}),i:3,u:fd,l:(_,C,S)=>h("p",{key:S.key},C(_.children,S))},22:{t:["["],o:ra(fR),i:0,u:_=>(E[_[1]]={target:_[2],title:_[4]},{}),l:hd},23:{t:["!["],o:aa(dR),i:0,u:_=>({alt:_[1]?Zn(_[1]):void 0,ref:_[2]}),l:(_,C,S)=>E[_.ref]?h("img",{key:S.key,alt:_.alt,src:s(E[_.ref].target,"img","src"),title:E[_.ref].title}):null},24:{t:_=>_[0]==="["&&_.indexOf("](")===-1,o:ra(hR),i:0,u:(_,C,S)=>({children:C(_[1],S),fallbackChildren:_[0],ref:_[2]}),l:(_,C,S)=>E[_.ref]?h("a",{key:S.key,href:s(E[_.ref].target,"a","href"),title:E[_.ref].title},C(_.children,S)):h("span",{key:S.key},_.fallbackChildren)},25:{t:["|"],o:Er(Ev),i:1,u:zR,l(_,C,S){const I=_;return h("table",{key:S.key},h("thead",null,h("tr",null,I.header.map(function(x,Z){return h("th",{key:Z,style:Av(I,Z)},C(x,S))}))),h("tbody",null,I.cells.map(function(x,Z){return h("tr",{key:Z},x.map(function(W,ae){return h("td",{key:ae,style:Av(I,ae)},C(W,S))}))})))}},27:{o:Ci(function(_,C){let S;return Fo(_,":")&&(S=AR.exec(_)),S||RR.exec(_)}),i:4,u(_){const C=_[0];return{text:C.indexOf("&")===-1?C:C.replace(rR,(S,I)=>r.namedCodesToUnicode[I]||S)}},l:_=>_.text},28:{t:["**","__"],o:aa(_R),i:2,u:(_,C,S)=>({children:C(_[2],S)}),l:(_,C,S)=>h("strong",{key:S.key},C(_.children,S))},29:{t:_=>{const C=_[0];return(C==="*"||C==="_")&&_[1]!==C},o:aa(ER),i:3,u:(_,C,S)=>({children:C(_[2],S)}),l:(_,C,S)=>h("em",{key:S.key},C(_.children,S))},30:{t:["\\"],o:aa(xR),i:1,u:_=>({text:_[1],type:"27"})},31:{t:["=="],o:aa(SR),i:3,u:fd,l:(_,C,S)=>h("mark",{key:S.key},C(_.children,S))},32:{t:["~~"],o:aa(TR),i:3,u:fd,l:(_,C,S)=>h("del",{key:S.key},C(_.children,S))}};r.disableParsingRawHTML===!0&&(delete A[11],delete A[13]);const U=function(_){var C=Object.keys(_);function S(I,x){var Z=[];if(x.prevCapture=x.prevCapture||"",I.trim())for(;I;)for(var W=0;W<C.length;){var ae=C[W],ge=_[ae];if(!ge.t||jR(I,x,ge.t)){var Ee=ge.o(I,x);if(Ee&&Ee[0]){I=I.substring(Ee[0].length);var se=ge.u(Ee,S,x);x.prevCapture+=Ee[0],se.type||(se.type=ae),Z.push(se);break}W++}else W++}return x.prevCapture="",Z}return C.sort(function(I,x){return _[I].i-_[x].i||(I<x?-1:1)}),function(I,x){return S(function(Z){return Z.replace($O,`
109
+ `).replace(eR,"").replace(pR," ")}(I),x)}}(A),R=(F=function(_,C){return function(S,I,x){const Z=_[S.type].l;return C?C(()=>Z(S,I,x),S,I,x):Z(S,I,x)}}(A,r.renderRule),function _(C,S={}){if(Array.isArray(C)){const I=S.key,x=[];let Z=!1;for(let W=0;W<C.length;W++){S.key=W;const ae=_(C[W],S),ge=typeof ae=="string";ge&&Z?x[x.length-1]+=ae:ae!==null&&x.push(ae),Z=ge}return S.key=I,x}return F(C,_,S)});var F;const G=m(t);return y.length?h("div",null,G,h("footer",{key:"footer"},y.map(function(_){return h("div",{id:i(_.identifier,Is),key:_.identifier},_.identifier,R(U(_.footnote,{inline:!0})))}))):G}const xr=t=>{let{children:r="",options:i}=t,s=function(u,c){if(u==null)return{};var d,h,m={},p=Object.keys(u);for(h=0;h<p.length;h++)c.indexOf(d=p[h])>=0||(m[d]=u[d]);return m}(t,IO);return H.cloneElement(PR(r,i),s)},YR="_generalConditionsContainer_55hjg_1",XR="_generalConditions_55hjg_1",ZR="_generalConditionsHeader_55hjg_15",QR="_generalConditionsBody_55hjg_26",KR="_generalConditionsAccept_55hjg_35",zs={generalConditionsContainer:YR,generalConditions:XR,generalConditionsHeader:ZR,generalConditionsBody:QR,generalConditionsAccept:KR},$R=()=>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"})}),WR=()=>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"})}),JR="general-conditions.header",ew="general-conditions.body",xv="general-conditions.accept-conditions-note",tw=()=>{const t=tt(),[r,i]=H.useState(!1),s=()=>i(!r),u=h=>{h.key==="ArrowDown"||h.key==="ArrowRight"?i(!0):h.key==="ArrowUp"||h.key==="ArrowLeft"||h.key==="Escape"?i(!1):(h.key==="Enter"||h.key==="Space"||h.key===" ")&&s()},c=t(JR),d=t(xv);return v.jsxs("div",{className:Q(zs.generalConditionsContainer,"chat__generalConditions"),children:[!!c?.length&&v.jsxs("div",{className:zs.generalConditions,children:[v.jsxs("div",{role:"button",onClick:s,onKeyDown:u,tabIndex:0,className:Q(zs.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":r?"true":"false","aria-pressed":r?"true":"false",children:[v.jsx(xr,{children:c}),r?v.jsx(WR,{}):v.jsx($R,{})]}),v.jsx("div",{className:Q(zs.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:r&&v.jsx(xr,{children:t(ew)||""})})]}),!!d?.length&&v.jsx("div",{className:Q(zs.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:v.jsx(xr,{children:t(xv)||""})})]})},nw="_message_1sw52_1",rw="_messageBot_1sw52_9",aw="_messageBotLast_1sw52_19",iw="_avatar_1sw52_19",sw="_messageBotFirst_1sw52_28",lw="_messageBotAnimated_1sw52_41",ow="_messageGuest_1sw52_52",uw="_messageGuestFirst_1sw52_58",cw="_messageGuestLast_1sw52_64",fw="_botAvatar_1sw52_78",dw="_agentAvatar_1sw52_82",hw="_bubble_1sw52_86",mw="_bubbleContent_1sw52_92",pw="_bubbleLeft_1sw52_106",gw="_leftText_1sw52_117",yw="_bubbleRight_1sw52_124",vw="_rightText_1sw52_134",bw="_sourceInfoReference_1sw52_166",_w="_sourceInfoReferenceActive_1sw52_178",ye={message:nw,messageBot:rw,messageBotLast:aw,avatar:iw,messageBotFirst:sw,messageBotAnimated:lw,messageGuest:ow,messageGuestFirst:uw,messageGuestLast:cw,botAvatar:fw,agentAvatar:dw,bubble:hw,bubbleContent:mw,bubbleLeft:pw,leftText:gw,bubbleRight:yw,rightText:vw,sourceInfoReference:bw,sourceInfoReferenceActive:_w},Ew="_botMessageActions_m0f8n_1",Sw="_alwaysVisible_m0f8n_27",Tw="_reported_m0f8n_34",Aw="_action_m0f8n_38",ia={botMessageActions:Ew,alwaysVisible:Sw,reported:Tw,action:Aw},xw=({alwaysVisible:t,senderType:r,reaction:i,botMessageRef:s,onReaction:u})=>{const c=tt(),[d,h]=H.useState(!1),m=y=>()=>u(y),p=H.useCallback(async()=>{if(s.current)try{h(!0);const y=s.current.innerHTML,E=s.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([y],{type:"text/html"}),"text/plain":new Blob([E],{type:"text/plain"})})]),await new Promise(A=>setTimeout(A,1500))}finally{h(!1)}},[s]);return v.jsxs("div",{className:Q(ia.botMessageActions,t&&ia.alwaysVisible,i&&ia.reported),children:[r===ru.BOT&&v.jsx("button",{className:Q(ia.action,i==="GOOD"&&ia.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===ru.BOT&&v.jsx("button",{className:Q(ia.action,i==="BAD"&&ia.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:Q(ia.action,"tooltip--top-right"),tabIndex:0,"aria-label":c("bot-bubble.copy"),"data-title":c("bot-bubble.copy"),onClick:p,children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:d?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"})})})]})},Fb=H.forwardRef(({message:t,isAnimated:r,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:u,children:c,onReaction:d},h)=>{const m=tt(),p=H.useRef(null),y=t.sender.type===Te.UserType.BOT;return v.jsxs("li",{ref:h,className:Q(ye.message,ye.messageBot,i&&ye.lastMessage,s&&ye.messageBotFirst,u&&ye.messageBotLast,"chat__bubbleContainer",r&&ye.messageBotAnimated,r&&"chat__bubbleContainer--animated",y?"chat__botBubbleContainer":"chat__agentBubbleContainer",s&&"chat__bubbleContainer--first",u&&"chat__bubbleContainer--last"),children:[v.jsx("img",{className:Q(ye.avatar,y?ye.botAvatar:ye.agentAvatar,"chat__avatar",y?"chat__botAvatar":"chat__agentAvatar"),src:`${t.sender.avatar}`,alt:y?"Bot":"Agent",referrerPolicy:"no-referrer"}),v.jsxs("div",{ref:p,className:Q(ye.bubble,ye.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:Q(ye.leftText),children:c}),d&&v.jsx(xw,{alwaysVisible:i&&u,senderType:t.sender.type,reaction:t.reaction,botMessageRef:p,onReaction:d})]})]})}),Ow="_sourceList_1n31h_1",Rw="_source_1n31h_1",ww="_label_1n31h_37",pd={sourceList:Ow,source:Rw,label:ww},Vb=t=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,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"})}),Pb=t=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,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"})}),Yb=t=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,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"})}),Xb=t=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,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"})}),Cw=({type:t,...r})=>{switch(t){case"WEBSITE":return v.jsx(Xb,{...r});case"PDF":return v.jsx(Yb,{...r});case"DOCX":return v.jsx(Vb,{...r});default:return v.jsx(Pb,{...r})}},Xh=({sources:t,onLinkClick:r})=>{const i=tt(),s=c=>()=>{r(c.url)},u=c=>d=>{(d.key==="Enter"||d.key===" ")&&r(c.url)};return t.length?v.jsx("ul",{className:pd.sourceList,"aria-label":i("bot-bubble.sources"),children:t.map(c=>v.jsx("li",{className:pd.source,children:v.jsxs("a",{role:"button",tabIndex:0,"aria-label":`${i("bot-bubble.source.open")}: ${c.label}`,onClick:s(c),onKeyDown:u(c),children:[v.jsx(Cw,{type:c.type,"aria-hidden":"true"}),v.jsx("div",{className:pd.label,children:c.label})]})},c.url))}):null},Nw="_button_3ui4g_1",Mw="_buttonDefault_3ui4g_13",Dw="_buttonPrimary_3ui4g_28",Js={button:Nw,buttonDefault:Mw,buttonPrimary:Dw},bu=({className:t,children:r,...i})=>v.jsx("button",{className:Q(Js.button,t),type:"button",role:"button",...i,children:r}),Lw="_title_137pi_1",Bw="_buttons_137pi_6",Uw="_button_137pi_6",Hw="_imageContainer_137pi_29",jw="_image_137pi_29",Iw="_video_container_137pi_44",zw="_video_137pi_44",Gw="_only_137pi_58",ln={title:Lw,buttons:Bw,button:Uw,imageContainer:Hw,image:jw,video_container:Iw,video:zw,only:Gw},kw=({buttons:t,onButtonClick:r})=>v.jsx("div",{className:Q(ln.buttons,"chat__bubbleButtons"),children:t.map((i,s)=>v.jsx(bu,{className:Q(ln.button,"chat__bubbleButton"),onClick:()=>r(i),children:i.title},s))}),Ov="newtab#",Zb=({markdown:t,markdownOptions:r={},onLinkClick:i})=>{const s=c=>d=>(d.preventDefault(),c&&i(c),!1),u=({title:c,href:d,children:h})=>d.indexOf(Ov)===0?v.jsx("a",{href:d.slice(Ov.length),title:c,target:"_blank",rel:"noopener noreferrer",children:h}):v.jsx("a",{onClick:s(d),title:c,href:d,children:h});return v.jsx(xr,{options:{...r,overrides:{a:u}},children:t})},qw=({text:t,onLinkClick:r})=>t?v.jsx("div",{children:v.jsx(Zb,{markdown:t,onLinkClick:r})}):null,Fw=({title:t})=>t?v.jsx("h1",{className:ln.title,children:t}):null,Vw=({title:t,text:r,buttons:i,onButtonClick:s,onLinkClick:u})=>t?.length||r?.length||i?.length?v.jsxs("div",{className:Q(ye.bubbleContent),children:[v.jsx(Fw,{title:t}),v.jsx(qw,{text:r,onLinkClick:u}),v.jsx(kw,{buttons:i,onButtonClick:s})]}):null,Pw=({alt:t,imageUrl:r,itemUrl:i,hasBody:s})=>r?i?i.indexOf("youtube.com")>-1?v.jsx("div",{className:ln.video_container,children:v.jsx("iframe",{className:Q(ln.video,{[ln.only]:!s}),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:ln.imageContainer,children:v.jsx("img",{className:Q(ln.image,{[ln.only]:!s}),src:r,alt:t})})}):v.jsx("div",{className:ln.imageContainer,children:v.jsx("img",{className:Q(ln.image,{[ln.only]:!s}),src:r,alt:t})}):null,Yw=({title:t,text:r,imageUrl:i,itemUrl:s,buttons:u,sources:c,onButtonClick:d,onLinkClick:h})=>{const m=!!t?.length||!!r?.length||!!u?.length;return v.jsxs("div",{className:Q(ln.detailMessage),children:[v.jsx(Pw,{hasBody:m,imageUrl:i,itemUrl:s,alt:t||""}),m&&v.jsx(Vw,{title:t,text:r,buttons:u,onLinkClick:h,onButtonClick:d}),v.jsx(Xh,{sources:c,onLinkClick:h})]})},Xw=H.forwardRef(({isFirstMessageBySender:t,isLastMessageBySender:r,children:i},s)=>{const u=tt();return v.jsx("li",{ref:s,className:Q(ye.message,ye.messageGuest,t&&ye.messageGuestFirst,r&&ye.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",t&&"chat__bubbleContainer--first",r&&"chat__bubbleContainer--last"),children:v.jsx("div",{className:Q(ye.bubble,ye.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":u("guest-bubble.label"),children:v.jsx("div",{className:Q(ye.rightText),children:i})})})}),Zw="_markdown_nw7vg_1",Qb={markdown:Zw},Kb=()=>Qw(window.location.pathname),Qw=t=>{const r=t.split("/"),i=t.endsWith("/");return r[r.length-(i?2:1)]},_u=()=>H.useMemo(()=>Kb(),[]),Ho="source-info-reference",Kw=({actionId:t,markdown:r,sources:i,onLinkClick:s})=>{const u=_u(),c=Cr(),d=$w(),h=it(y=>{const E=y.chat.sourceInfos;if(E?.type==="loaded"||E?.type==="loading")return E.chunkId}),m=y=>E=>{const A=E.key;(A==="ArrowDown"||A==="ArrowRight"||A==="Enter"||A===" "||A==="Space")&&(E.stopPropagation(),c(uv(u,t,y)))},p=y=>()=>{c(uv(u,t,y))};return H.useLayoutEffect(()=>{document.querySelectorAll(`.${Ho}`).forEach(y=>{const E=y.previousSibling;E&&E.nodeType===Node.TEXT_NODE&&E.textContent?.endsWith(" ")&&E.textContent?.trim().length&&y.classList.add(`${Ho}--before-space`);const A=y.nextSibling;A&&A.nodeType===Node.TEXT_NODE&&A.textContent?.startsWith(" ")&&A.textContent?.trim().length&&y.classList.add(`${Ho}--after-space`)})},[r]),v.jsxs("div",{className:ye.bubbleContent,children:[v.jsx("div",{className:Qb.markdown,children:v.jsx(Zb,{markdown:r,onLinkClick:s,markdownOptions:{renderRule(y,E,A,U){if(E.type===zO.footnoteReference){const R=E.text===h;return v.jsx("span",{className:Q(ye.sourceInfoReference,R&&ye.sourceInfoReferenceActive,Ho),children:v.jsx("a",{type:"button",tabIndex:0,onClick:p(E.text),onKeyDown:m(E.text),children:d(E.text)})},U.key)}return y()}}})}),v.jsx(Xh,{sources:i,onLinkClick:s})]})},$w=()=>{const t=[];return i=>{const s=t.indexOf(i);return s>-1?s+1:(t.push(i),t.length)}},Ww="_text_gp0s0_1",Jw="_command_gp0s0_5",Rv={text:Ww,command:Jw},e6=({text:t,commands:r=[]})=>{const i=r.find(u=>t.startsWith(`/${u}`)),s=i?t.slice(i.length+1):t;return v.jsxs("div",{children:[i&&v.jsxs("code",{className:Rv.command,children:["/",i]}),s.split(`
110
+ `).map((u,c)=>v.jsxs("span",{className:Rv.text,children:[u,v.jsx("br",{})]},c))]})},t6=({text:t,commands:r,sources:i,onLinkClick:s})=>v.jsxs("div",{className:ye.bubbleContent,children:[v.jsx(e6,{text:t,commands:r}),v.jsx(Xh,{sources:i,onLinkClick:s})]}),n6=H.forwardRef(({message:t,commands:r,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:u,onReaction:c,onButtonClick:d,onLinkClick:h},m)=>{const p=r6(t._id,t,r,d,h);switch(t.sender.type){case Te.UserType.GUEST:return v.jsx(Xw,{ref:m,isFirstMessageBySender:s,isLastMessageBySender:u,children:p});default:{const y=E=>c(t._id,E);return v.jsx(Fb,{ref:m,message:t,isAnimated:!1,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:u,onReaction:y,children:p})}}}),r6=(t,r,i,s,u)=>{switch(r.type){case Te.MessageTypeEnum.TEXT:{const c=r;return v.jsx(t6,{text:c.text,commands:i,sources:r.sources||[],onLinkClick:u})}case Te.MessageTypeEnum.DETAIL:{const c=r;return v.jsx(Yw,{title:c.title,text:c.text,imageUrl:c.imageUrl,itemUrl:c.itemUrl,buttons:c.buttons,sources:r.sources||[],onButtonClick:s,onLinkClick:u})}case Te.MessageTypeEnum.MARKDOWN:{const c=r;return v.jsx(Kw,{actionId:t,markdown:c.markdown,sources:c.sources||[],onLinkClick:u})}}},a6=(t,r)=>t.message._id===r.message._id&&t.message.reaction===r.message.reaction&&t.isLastMessage===r.isLastMessage&&t.isFirstMessageBySender===r.isFirstMessageBySender&&t.isLastMessageBySender===r.isLastMessageBySender,i6=v1.memo(n6,a6),s6="_ticontainer_xg0dn_1",l6="_tiblock_xg0dn_5",o6="_tidot_xg0dn_12",Gs={ticontainer:s6,tiblock:l6,tidot:o6},u6=({isTyping:t=!1})=>v.jsx("div",{className:Gs.ticontainer,children:v.jsx("div",{className:Gs.tiblock,children:t?v.jsxs(v.Fragment,{children:[v.jsx("div",{className:Q(Gs.tidot,"chat__typingIndicator")}),v.jsx("div",{className:Q(Gs.tidot,"chat__typingIndicator")}),v.jsx("div",{className:Q(Gs.tidot,"chat__typingIndicator")})]}):null})}),c6=Object.assign({_id:"typing-indicator"},new Te.TextMessage("",new Te.BotUser)),f6=({messages:t,isBotTyping:r,commands:i,onTranscriptItemReaction:s,onButtonClick:u,onLinkClick:c})=>{const d=H.useRef(0),h=H.useRef(!0),m=H.useRef(null),p=H.useRef(null),y=H.useRef(null),E=it(R=>R.settings.enableGeneralConditions);H.useLayoutEffect(()=>{if(t.length&&m.current&&(d.current<t.length||r)){if(p.current){const R=p.current.offsetTop;m.current.scrollTop=R}else if(y.current){const R=y.current.offsetTop;m.current.scrollTop=R}h.current&&(h.current=!1),d.current=t.length}},[t,h,r]);let A;const U=t.length;return v.jsxs("div",{ref:m,className:Q(fv.messageContainer,"chat__messageContainer"),style:{scrollBehavior:t.length&&h.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[E&&v.jsx(tw,{}),v.jsxs("ul",{className:fv.messages,children:[t.map((R,F)=>{const G=d6(R,A),_=h6(R,F,t,r);A=R.sender.type;const C=F+1===U,S=R._id||`added-${F}`;return v.jsx(i6,{ref:C?y:null,message:R,commands:i,isLastMessage:C,isFirstMessageBySender:G,isLastMessageBySender:_,onButtonClick:u,onLinkClick:c,onReaction:s},C&&!r?"last":S)}),r&&v.jsx(Fb,{ref:p,message:c6,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:A!==Te.UserType.BOT,isLastMessageBySender:!0,children:v.jsx(u6,{isTyping:!0})},"last")]})]})},d6=(t,r)=>!r||r!==t.sender.type,h6=(t,r,i,s)=>{const u=t.sender.type,c=i.length;return r+1===c?!(u===Te.UserType.BOT&&s):u!==i.at(r+1)?.sender.type},m6="_bottomSheet_jp8dl_1",p6="_bottomSheetOpen_jp8dl_15",g6="_bottomSheetClose_jp8dl_20",Or={bottomSheet:m6,bottomSheetOpen:p6,bottomSheetClose:g6},y6="_container_xc2nx_1",wv={container:y6},v6=({contentUrl:t})=>{const r=it(c=>c.connection.sessionId),[i,s]=H.useState(!1);H.useEffect(()=>{s(c=>c||!!t)},[t]);const u=H.useMemo(()=>{if(t&&r){const c=new URL(t,document.baseURI);return c.searchParams.set("sessionId",r),c.toString()}else return},[t,r]);return v.jsx("div",{className:Q(wv.container,Or.bottomSheet,{[Or.bottomSheetOpen]:!!t,[Or.bottomSheetClose]:i&&!t}),children:u&&v.jsx("iframe",{title:"Drawer",src:u,className:wv.iframe})})},b6="_container_z787n_1",_6={container:b6},E6=({title:t,href:r,children:i})=>v.jsx("a",{href:r,title:t,target:"_blank",rel:"noopener noreferrer",children:i}),S6=()=>{const r=tt()("powered-by");return r&&r.length?v.jsx("div",{className:Q(_6.container,"chat__poweredBy"),children:v.jsx(xr,{options:{overrides:{a:E6}},children:r})}):null},$b=({className:t,children:r,...i})=>v.jsx(bu,{className:Q(Js.buttonDefault,t),type:"button",...i,children:r}),au=({className:t,children:r,...i})=>v.jsx(bu,{className:Q(Js.buttonPrimary,t),...i,children:r}),T6="_container_h23mk_1",A6="_formContainer_h23mk_17",x6="_emailInput_h23mk_22",O6="_description_h23mk_52",R6="_actions_h23mk_57",w6="_validationError_h23mk_67",C6="_submitted_h23mk_74",La={container:T6,formContainer:A6,emailInput:x6,description:O6,actions:R6,validationError:w6,submitted:C6},N6=({visible:t,onEmailExport:r,onClose:i})=>{const s=tt(),[u,c]=H.useState(void 0),[d,h]=H.useState(!1),[m,p]=H.useState(void 0),y=H.useRef(null);H.useEffect(()=>{t?(y.current?.focus(),h(!1),c(t)):u===!0&&c(!1)},[t,u]);const E=U=>{U.preventDefault(),m&&m.length>0&&(r(m),h(!0),setTimeout(i,3*1e3))},A=U=>{const R=U.target.value.trim(),F=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(R);p(F?R:"")};return v.jsxs("div",{className:Q(La.container,Or.bottomSheet,{[Or.bottomSheetOpen]:u===!0,[Or.bottomSheetClose]:u===!1}),children:[v.jsx("h2",{children:s("export-transcript.email.title")}),v.jsx(xr,{className:La.description,children:s("export-transcript.email.description")||""}),v.jsxs("form",{onSubmit:E,className:La.formContainer,children:[v.jsxs("div",{children:[v.jsx("input",{disabled:d,ref:y,type:"email",placeholder:s("export-transcript.email.placeholder"),className:La.emailInput,onChange:A}),m?.length===0?v.jsx("div",{className:La.validationError,children:s("export-transcript.email.invalid")}):null]}),v.jsxs("div",{className:La.actions,children:[v.jsx($b,{onClick:i,children:s("export-transcript.email.cancel")}),v.jsx(au,{type:"submit",disabled:d||m===void 0||m.length===0,children:s("export-transcript.email.send")})]})]}),d&&v.jsx("div",{className:La.submitted,children:s("export-transcript.email.success")})]})},M6="_inputContainer_fi5ao_1",D6={inputContainer:M6},L6="_blockUserInput_pot9c_1",B6={blockUserInput:L6},U6=({visible:t})=>{const r=tt();return t?v.jsx("div",{className:Q(B6.blockUserInput,"chat__blockUserInput"),children:r("block-user-input.title")}):null},H6="_commandsDropdown_5ytuv_1",j6="_commands_5ytuv_1",I6="_command_5ytuv_1",z6="_commandActive_5ytuv_46",G6="_commandsSelections_5ytuv_55",Zs={commandsDropdown:H6,commands:j6,command:I6,commandActive:z6,commandsSelections:G6},Wb=(t,r)=>{H.useEffect(()=>{const i=s=>{t.current&&!t.current.contains(s.target)&&r()};return document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)},[t,r])},k6=(t,r,i,s,u)=>{H.useEffect(()=>{const c=d=>{if(t.length)switch(d.key){case"Enter":i(t[r]);break;case"ArrowUp":s(h=>h>0?h-1:t.length-1);break;case"ArrowDown":s(h=>h<t.length-1?h+1:0);break;case"Escape":u([]);break}};return document.addEventListener("keydown",c),()=>{document.removeEventListener("keydown",c)}},[t,r,i,s,u])},q6=({text:t,commands:r,onSelectCommand:i,onVisibilityChange:s})=>{const u=H.useRef(null),c=tt(),[d,h]=H.useState([]),[m,p]=H.useState(Cv(r)),[y,E]=H.useState(0),A=U=>i(`/${U}`);return Wb(u,()=>h([])),k6(d,y,A,E,h),H.useEffect(()=>{p(Cv(r))},[r]),H.useEffect(()=>{const U=t.length||0;U===0||U>m||!t.startsWith("/")?h([]):h(r.filter(F6(t))),E(0)},[r,t,m]),H.useEffect(()=>{s(!!d.length)},[d,s]),d.length?v.jsx("div",{ref:u,className:Zs.commandsDropdown,children:v.jsx("ul",{id:"command-list",className:Zs.commands,role:"listbox",children:d.map((U,R)=>v.jsxs("li",{className:Q([Zs.command,y===R&&Zs.commandActive]),role:"option",onClick:()=>A(U),onMouseOver:()=>E(R),children:[v.jsxs("h1",{children:["/",U]}),v.jsx("p",{children:c(`commands.${U}`)})]},U))})}):null},Cv=t=>Math.max(...t.map(r=>r.length+1)),F6=t=>r=>{const i=`/${r}`;return i.startsWith(t)&&i.length>=t.length},Nv=3,V6=({commands:t,onSelectCommand:r})=>{const i=tt(),[s,u]=H.useState(!1),c=p=>()=>{r(`/${p}`),u(!1)},d=()=>{u(!0)},h=()=>{u(!1)},m=s?t:t.slice(0,Nv);return v.jsxs("div",{className:Zs.commandsSelections,children:[m.map(p=>v.jsxs("button",{className:"tooltip--top-center","aria-label":i(`commands.${p}`),"data-title":i(`commands.${p}`),tabIndex:0,onClick:c(p),children:["/",p]},p)),m.length<t.length?v.jsx("button",{"aria-label":i("commands.show-more.tooltip"),"data-title":i("commands.show-more.tooltip"),tabIndex:0,onClick:d,children:i("commands.show-more.action")},"show-more"):m.length>Nv?v.jsx("button",{"aria-label":i("commands.show-less.tooltip"),"data-title":i("commands.show-less.tooltip"),tabIndex:0,onClick:h,children:i("commands.show-less.action")},"show-less"):null]})},P6="_callToActionContainer_d8izj_1",Y6="_callToActionTitle_d8izj_23",X6="_rateOverlay_d8izj_30",Z6="_body_d8izj_52",Q6="_footer_d8izj_60",K6="_actions_d8izj_75",$6="_bubbles_d8izj_89",W6="_stars_d8izj_191",J6="_starsSmall_d8izj_205",eC="_starsLarge_d8izj_211",tC="_star_d8izj_191",nC="_starReadonly_d8izj_225",rC="_starIcon_d8izj_235",aC="_starsDescriptionContainer_d8izj_253",iC="_starsDescription_d8izj_253",It={callToActionContainer:P6,callToActionTitle:Y6,rateOverlay:X6,body:Z6,footer:Q6,actions:K6,bubbles:$6,stars:W6,starsSmall:J6,starsLarge:eC,star:tC,starReadonly:nC,starIcon:rC,starsDescriptionContainer:aC,starsDescription:iC},sC=({value:t,index:r,count:i,readonly:s,onHover:u,onClick:c})=>{const d=h=>{c&&h.key==="Enter"&&c()};return v.jsx("li",{className:Q(It.star,{[It.starReadonly]:s},"chat__conversationRating__star"),children:v.jsx("div",{role:"radio","aria-checked":t>r?"true":"false","aria-posinset":r+1,"aria-setsize":i,tabIndex:0,onMouseOver:u,onKeyDown:d,onClick:c,children:v.jsx("span",{role:"img","aria-label":"Star",className:Q(It.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"})})})})})},Mv=5,Jb=({value:t,size:r,readonly:i=!1,onChange:s})=>{const[u,c]=H.useState(void 0),d=()=>{c(void 0)},h=p=>()=>{if(!i){const y=p+1;c(y)}},m=p=>()=>{s&&!i&&(s(p===0&&t===1?0:p+1),c(void 0))};return v.jsx("ul",{tabIndex:0,role:"radiogroup",className:Q(It.stars,{[It.starsSmall]:r==="small",[It.starsLarge]:r==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:r==="small",chat__conversationRating__stars__large:r==="large"}),onMouseOut:d,children:Array(Mv).fill(0).map((p,y)=>v.jsx(sC,{value:u===void 0?t:u,index:y,count:Mv,readonly:i,onHover:h(y),onClick:m(y)},y))})},lC=({visible:t,onRate:r})=>{const i=tt();return t?v.jsxs("div",{className:Q(It.callToActionContainer,"chat__conversationRating__callToAction"),children:[v.jsx("div",{className:Q(It.callToActionTitle,"chat__conversationRating__callToAction__title"),children:i("conversation-rating.call-to-action.title")}),v.jsx(Jb,{value:0,size:"small",onChange:r})]}):null},gd=({isFirstMessageBySender:t,isLastMessageBySender:r,children:i})=>v.jsxs("div",{className:Q(ye.message,ye.messageBot,t&&ye.messageBotFirst,r&&ye.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",t&&"chat__bubbleContainer--first",r&&"chat__bubbleContainer--last"),children:[v.jsx("img",{className:Q(ye.avatar,ye.botAvatar),src:"bot.svg",alt:"Bot"}),v.jsx("div",{className:Q(ye.bubble,ye.bubbleLeft,"chat__bubble","chat__botBubble"),children:v.jsx("div",{className:Q(ye.leftText,ye.bubbleContent),children:i})})]}),oC=({children:t})=>v.jsx("div",{className:Q(ye.message,ye.messageGuest,ye.messageGuestFirst,ye.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:v.jsx("div",{className:Q(ye.bubble,ye.bubbleRight,"chat__bubble","chat__guestBubble"),children:v.jsx("div",{className:Q(ye.rightText,ye.bubbleContent),children:t})})}),uC=()=>{const t=tt(),r=Cr(),i=it(G=>G.chat.conversationRating),[s,u]=H.useState(i.rating?.value||0),[c,d]=H.useState(void 0),[h,m]=H.useState(void 0),[p,y]=H.useState({submitted:!1,feedback:""}),[E,A]=H.useState(!1),U=H.useRef(null);H.useEffect(()=>{i.opener?(y({submitted:!1,feedback:""}),m(!0)):h===!0&&m(!1)},[i.opener,h]),H.useEffect(()=>{u(i.rating?.value||0)},[i.rating?.value,i.opener]),H.useEffect(()=>{U.current&&(U.current.value=i.rating?.feedback||"")},[i.rating?.feedback]),H.useEffect(()=>{const G=s>0?t(`conversation-rating.overlay.bot-message.rate-feedback.value-${s}`):void 0;d(G?.length?G:void 0)},[s,t]),H.useEffect(()=>{p.submitted?setTimeout(()=>A(!0),p.feedback.length?500:0):A(!1)},[p]);const R=G=>{G.preventDefault();const _=U.current?.value?.trim()||"";r(Ox(s,_)),y({submitted:!0,feedback:_})},F=()=>{i.opener==="CLOSE_CHAT"?r(Db()):r(TO())};return v.jsx("div",{className:Q(It.rateOverlay,Or.bottomSheet,"chat__conversationRating__overlay",{[Or.bottomSheetOpen]:h===!0,[Or.bottomSheetClose]:h===!1}),children:v.jsxs("form",{onSubmit:R,children:[v.jsxs("div",{className:Q(It.body,"chat__conversationRating__overlay__body"),children:[v.jsx("div",{}),v.jsx("div",{className:Q(It.bubbles),children:i.opener&&v.jsxs(v.Fragment,{children:[v.jsxs(gd,{isFirstMessageBySender:!0,isLastMessageBySender:!c,children:[v.jsx("h2",{children:t("conversation-rating.overlay.title")}),v.jsxs("div",{className:Q(It.starsDescriptionContainer),children:[v.jsx(Jb,{value:s,size:"large",readonly:p.submitted,onChange:u}),v.jsxs("div",{className:Q(It.starsDescription),children:[v.jsx("div",{children:t("conversation-rating.overlay.star.very-bad")}),v.jsx("div",{children:t("conversation-rating.overlay.star.very-good")})]})]})]}),c&&v.jsx(gd,{isFirstMessageBySender:!1,isLastMessageBySender:!E||!!p.feedback.length,children:v.jsx("div",{children:c})}),!!p.feedback.length&&v.jsx(oC,{children:p.feedback}),E&&v.jsx(gd,{isFirstMessageBySender:!!p.feedback.length,isLastMessageBySender:!0,children:v.jsx("div",{children:t("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),v.jsxs("div",{className:Q(It.footer,"chat__conversationRating__overlay__footer"),children:[!p.submitted&&v.jsx("input",{ref:U,defaultValue:i.rating?.feedback||"",placeholder:t("conversation-rating.overlay.guest-feedback.input-placeholder")}),v.jsxs("div",{className:Q(It.actions,"chat__conversationRating__overlay__footer__actions"),children:[p.submitted?v.jsx(au,{type:"button",disabled:!s,onClick:F,children:i.opener==="CLOSE_CHAT"?t("conversation-rating.overlay.action.close-chat"):t("conversation-rating.overlay.action.back-to-chat")},"close-button"):v.jsx(au,{type:"submit",disabled:!s,children:t("conversation-rating.overlay.action.submit")},"submit-button"),i.opener!=="CHAT"&&!p.submitted&&v.jsx($b,{onClick:F,children:i.opener==="CLOSE_CHAT"?t("conversation-rating.overlay.action.close-chat"):t("conversation-rating.overlay.action.cancel")})]})]})]})})},cC=({numberOfMessagesFromGuest:t})=>{const r=Cr(),i=it(c=>c.chat.conversationRating),s=c=>{r(Ih("CHAT",c))},u=!i.rating?.value&&t>=1;return i.enabled?v.jsxs(v.Fragment,{children:[v.jsx(lC,{visible:u,onRate:s}),v.jsx(uC,{})]}):null},fC=H.memo(cC),dC="_inputWrapper_e3h44_1",hC="_withOpenCommands_e3h44_14",mC="_messageInputWrapper_e3h44_20",pC="_messageInput_e3h44_20",gC="_buttons_e3h44_44",yC="_button_e3h44_44",xi={inputWrapper:dC,withOpenCommands:hC,messageInputWrapper:mC,messageInput:pC,buttons:gC,button:yC},vC="_audioRecorder_g845f_1",bC="_audioButton_g845f_6",_C="_recorderIcon_g845f_37",EC="_spinning_g845f_60",Ba={audioRecorder:vC,audioButton:bC,recorderIcon:_C,spinning:EC},Dv=2048,iu=16e3;class SC extends v1.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,s=new i;this.sampleRate=s.sampleRate,this.volume=s.createGain(),this.audioInput=s.createMediaStreamSource(r),this.audioInput.connect(this.volume),this.recorder=s.createScriptProcessor(Dv,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(s.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+=Dv}}handleClickSubmitAudio(){const r=AC(this.leftchannel,this.recordingLength),i=xC(r,this.sampleRate||0),s=TC(i);this.props.onAudioRecorded(s),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:Ba.audioRecorder,children:[this.state.recordingState==="none"&&v.jsx("button",{className:Q(Ba.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:Ba.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:Ba.audioRecorder,children:[v.jsx("button",{className:Q(Ba.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:Ba.recorderIcon}),v.jsx("button",{className:Q(Ba.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 TC=t=>{const r=new ArrayBuffer(44+t.length*2),i=new DataView(r);jo(i,0,"RIFF"),i.setUint32(4,44+t.length*2,!0),jo(i,8,"WAVE"),jo(i,12,"fmt "),i.setUint32(16,16,!0),i.setUint16(20,1,!0),i.setUint16(22,1,!0),i.setUint32(24,iu,!0),i.setUint32(28,iu*4,!0),i.setUint16(32,4,!0),i.setUint16(34,16,!0),jo(i,36,"data"),i.setUint32(40,t.length*2,!0);const s=t.length;let u=44;const c=1;for(let d=0;d<s;d++)i.setInt16(u,t[d]*(32767*c),!0),u+=2;return new Blob([i],{type:"audio/wav"})},jo=(t,r,i)=>{for(let s=0;s<i.length;s++)t.setUint8(r+s,i.charCodeAt(s))},AC=(t,r)=>{const i=new Float32Array(r);let s=0;const u=t.length;for(let c=0;c<u;c++){const d=t[c];i.set(d,s),s+=d.length}return i},xC=(t,r)=>{if(iu===r)return t;const i=r/iu,s=Math.round(t.length/i),u=new Float32Array(s);let c=0,d=0;for(;c<u.length;){const h=Math.round((c+1)*i);let m=0,p=0;for(let y=d;y<h&&y<t.length;y++)m+=t[y],p++;u[c]=m/p,c++,d=h}return u},OC=({disabled:t,textInput:r,commandsVisible:i,hasCommands:s,onTextInput:u,onTextInputSubmit:c,onAudioRecorded:d})=>{const h=tt(),m=H.useRef(null),{enableSpeechSupport:p}=it(R=>R.settings);H.useEffect(()=>{m.current?.focus()},[r]);const y=()=>{const R=m.current;R&&r.trim().length>=1&&c(r.trim())&&(R.value="",R.style.height="",R.focus())},E=R=>{R.preventDefault(),y()},A=R=>{const F=R.target.value;u(F),R.target.style.height="";const{scrollHeight:G}=R.target;R.target.style.height=`${G>150?150:G}px`},U=R=>{R.code==="Enter"&&!R.shiftKey?(R.repeat||y(),R.preventDefault()):i&&(R.code==="ArrowUp"||R.code==="ArrowDown")&&R.preventDefault()};return v.jsxs("form",{className:Q(xi.inputWrapper,i&&xi.withOpenCommands,"chat__textInput"),onSubmit:E,children:[v.jsx("div",{className:xi.messageInputWrapper,children:v.jsx("textarea",{id:"user_input",ref:m,className:xi.messageInput,tabIndex:0,placeholder:h("message-input-placeholder"),value:r,onChange:A,onKeyDown:U,"aria-label":h("message-input-label"),"aria-controls":s?"command-list":void 0,"aria-haspopup":s?"listbox":void 0})}),v.jsx("div",{className:Q(xi.buttons,"chat__buttons"),children:r.length||!p||navigator.mediaDevices===void 0?v.jsx("button",{className:Q(xi.button,"chat__button"),type:"submit","aria-label":h("message-input.actions.submit.label"),"data-title":h("message-input.actions.submit.label"),tabIndex:0,disabled:t,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"})})}):p&&navigator.mediaDevices!==void 0&&v.jsx(SC,{translate:h,onAudioRecorded:d})})]})},RC="_quickReplies_83npe_1",wC="_quickReply_83npe_9",Lv={quickReplies:RC,quickReply:wC},CC=({quickReplies:t,onQuickReplyClick:r})=>t.length?v.jsx("div",{className:Q(Lv.quickReplies,"chat__quickReplies"),children:t.map(i=>v.jsx(bu,{tabIndex:0,className:Q(Lv.quickReply,"chat__button","chat__quickReply"),onClick:()=>r(i),children:i.label},i.label))}):null,Bv=5e3,NC=1e3,MC=({isBotTyping:t,quickReplies:r,numberOfMessagesFromGuest:i,commands:s,onTextInput:u,onQuickReplyClick:c,onAudioRecorded:d})=>{const[h,m]=H.useState(""),[p,y]=H.useState(!1),[E,A]=H.useState(!1),U=H.useRef(0),R=H.useRef(0);H.useEffect(()=>{if(p&&!t){const _=U.current?Date.now()-U.current:0;_>Bv?y(!1):setTimeout(()=>{y(!1)},Bv-_)}},[p,t]),H.useEffect(()=>{p&&(U.current=Date.now())},[p]);const F=_=>{const C=Date.now()-R.current<NC;return E?!1:t||C?(y(!0),!1):(u(_),m(""),R.current=Date.now(),!0)},G=_=>{m(_+" ")};return v.jsxs("div",{className:Q(D6.inputContainer),children:[v.jsx(CC,{quickReplies:r,onQuickReplyClick:c}),v.jsx(U6,{visible:p}),!p&&v.jsx(fC,{numberOfMessagesFromGuest:i}),!!s?.length&&v.jsx(q6,{text:h,commands:s,onSelectCommand:G,onVisibilityChange:A}),v.jsx(OC,{textInput:h,disabled:p,commandsVisible:E,hasCommands:!!s?.length,onTextInput:m,onTextInputSubmit:F,onAudioRecorded:d}),!!s?.length&&v.jsx(V6,{commands:s,onSelectCommand:m})]})},DC=({clientName:t,messages:r,quickReplies:i,isBotTyping:s,drawerContentUrl:u,onMessageFromUser:c,onQuickReplyClick:d,onButtonClick:h,onLinkClick:m,onAudioRecorded:p,onTranscriptExport:y,onTranscriptItemReaction:E})=>{const A=Cr(),U=it(I=>I.connection.connectionState),{enableTranscriptExportEmail:R,commands:F}=it(I=>I.settings),{showTranscriptMailOverlay:G,conversationRating:_}=it(I=>I.chat),C=r.filter(I=>I.sender.type===ru.GUEST).length;H.useEffect(()=>{if(U===Ia.CONNECTED){const I=uu.parse(window.location.search);A(Bb(t,I))}},[t,U,A]);const S=()=>{A(Lb())};return v.jsxs("div",{className:od.container,children:[v.jsxs("div",{className:Q([od.chatcontent,(G||_?.opener)&&od.accessabilityHidden]),children:[v.jsx(f6,{messages:r,isBotTyping:s,commands:F,onButtonClick:h,onLinkClick:m,onTranscriptItemReaction:E}),v.jsx(MC,{isBotTyping:s,quickReplies:s?[]:i,numberOfMessagesFromGuest:C,commands:F,onQuickReplyClick:d,onTextInput:c,onAudioRecorded:p}),v.jsx(S6,{})]}),R&&v.jsx(N6,{visible:!!G,onEmailExport:y,onClose:S}),v.jsx(v6,{contentUrl:u})]})},LC=t=>{const{messages:r,quickReplies:i,isBotTyping:s,drawerContentUrl:u}=t.chat;return{messages:r,quickReplies:i,isBotTyping:s,drawerContentUrl:u}},BC=t=>({onRestartChat:(r,i)=>t(gu(r,i)),onMessageFromUser:r=>t(lb(r)),onAudioRecorded:r=>t(Ex(r)),onActionFromUser:r=>t(r),onQuickReplyClick:r=>t(sb(r)),onNluEvent:r=>t(db(r)),onButtonClick:r=>t(wx(r)),onLinkClick:r=>t(hb(r)),onTranscriptExport:r=>t(Tx(r)),onTranscriptItemReaction:(r,i)=>t(Te.Actions.transcriptItemGuestReaction(r,i||null))}),UC=qS(LC,BC)(DC),e_=()=>{const[t,r]=H.useState(!1);return H.useEffect(()=>{r((()=>{try{return window.self!==window.top}catch{return!0}})())},[]),t},HC=t=>r=>{const i=r.key;(i==="ArrowDown"||i==="ArrowRight"||i==="Enter"||i===" "||i==="Space")&&(r.stopPropagation(),t())},jC=({onClick:t})=>{const r=tt();return e_()?v.jsx("button",{className:"tooltip--bottom-left","aria-label":r("header.close-chat"),"data-title":r("header.close-chat"),tabIndex:0,onClick:t,onKeyDown:HC(t),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},IC="_header_3gvbz_1",zC="_logoContainer_3gvbz_14",GC="_logo_3gvbz_14",kC="_actions_3gvbz_28",qC="_active_3gvbz_43",FC="_menuContainer_3gvbz_56",VC="_menu_3gvbz_56",PC="_divider_3gvbz_86",sa={header:IC,logoContainer:zC,logo:GC,actions:kC,active:qC,menuContainer:FC,menu:VC,divider:PC},YC=({icon:t})=>{switch(t){case"arrow-counter-clockwise":return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:v.jsx("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"})});case"download":return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:v.jsx("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"})});case"expand":return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",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"})});case"mail":return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:v.jsx("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM203.43,64,128,133.15,52.57,64ZM216,192H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"})});case"phone":return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:v.jsx("path",{d:"M144.27,45.93a8,8,0,0,1,9.8-5.66,86.22,86.22,0,0,1,61.66,61.66,8,8,0,0,1-5.66,9.8A8.23,8.23,0,0,1,208,112a8,8,0,0,1-7.73-5.94,70.35,70.35,0,0,0-50.33-50.33A8,8,0,0,1,144.27,45.93Zm-2.33,41.8c13.79,3.68,22.65,12.54,26.33,26.33A8,8,0,0,0,176,120a8.23,8.23,0,0,0,2.07-.27,8,8,0,0,0,5.66-9.8c-5.12-19.16-18.5-32.54-37.66-37.66a8,8,0,1,0-4.13,15.46Zm81.94,95.35A56.26,56.26,0,0,1,168,232C88.6,232,24,167.4,24,88A56.26,56.26,0,0,1,72.92,32.12a16,16,0,0,1,16.62,9.52l21.12,47.15,0,.12A16,16,0,0,1,109.39,104c-.18.27-.37.52-.57.77L88,129.45c7.49,15.22,23.41,31,38.83,38.51l24.34-20.71a8.12,8.12,0,0,1,.75-.56,16,16,0,0,1,15.17-1.4l.13.06,47.11,21.11A16,16,0,0,1,223.88,183.08Zm-15.88-2s-.07,0-.11,0h0l-47-21.05-24.35,20.71a8.44,8.44,0,0,1-.74.56,16,16,0,0,1-15.75,1.14c-18.73-9.05-37.4-27.58-46.46-46.11a16,16,0,0,1,1-15.7,6.13,6.13,0,0,1,.57-.77L96,95.15l-21-47a.61.61,0,0,1,0-.12A40.2,40.2,0,0,0,40,88,128.14,128.14,0,0,0,168,216,40.21,40.21,0,0,0,208,181.07Z"})});case"scroll":return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:v.jsx("path",{d:"M96,104a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H104A8,8,0,0,1,96,104Zm8,40h64a8,8,0,0,0,0-16H104a8,8,0,0,0,0,16Zm128,48a32,32,0,0,1-32,32H88a32,32,0,0,1-32-32V64a16,16,0,0,0-32,0c0,5.74,4.83,9.62,4.88,9.66h0A8,8,0,0,1,24,88a7.89,7.89,0,0,1-4.79-1.61h0C18.05,85.54,8,77.61,8,64A32,32,0,0,1,40,32H176a32,32,0,0,1,32,32V168h8a8,8,0,0,1,4.8,1.6C222,170.46,232,178.39,232,192ZM96.26,173.48A8.07,8.07,0,0,1,104,168h88V64a16,16,0,0,0-16-16H67.69A31.71,31.71,0,0,1,72,64V192a16,16,0,0,0,32,0c0-5.74-4.83-9.62-4.88-9.66A7.82,7.82,0,0,1,96.26,173.48ZM216,192a12.58,12.58,0,0,0-3.23-8h-94a26.92,26.92,0,0,1,1.21,8,31.82,31.82,0,0,1-4.29,16H200A16,16,0,0,0,216,192Z"})});case"star":return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:v.jsx("path",{d:"M239.18,97.26A16.38,16.38,0,0,0,224.92,86l-59-4.76L143.14,26.15a16.36,16.36,0,0,0-30.27,0L90.11,81.23,31.08,86a16.46,16.46,0,0,0-9.37,28.86l45,38.83L53,211.75a16.38,16.38,0,0,0,24.5,17.82L128,198.49l50.53,31.08A16.4,16.4,0,0,0,203,211.75l-13.76-58.07,45-38.83A16.43,16.43,0,0,0,239.18,97.26Zm-15.34,5.47-48.7,42a8,8,0,0,0-2.56,7.91l14.88,62.8a.37.37,0,0,1-.17.48c-.18.14-.23.11-.38,0l-54.72-33.65a8,8,0,0,0-8.38,0L69.09,215.94c-.15.09-.19.12-.38,0a.37.37,0,0,1-.17-.48l14.88-62.8a8,8,0,0,0-2.56-7.91l-48.7-42c-.12-.1-.23-.19-.13-.5s.18-.27.33-.29l63.92-5.16A8,8,0,0,0,103,91.86l24.62-59.61c.08-.17.11-.25.35-.25s.27.08.35.25L153,91.86a8,8,0,0,0,6.75,4.92l63.92,5.16c.15,0,.24,0,.33.29S224,102.63,223.84,102.73Z"})});case"link":return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:v.jsx("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"})});default:return v.jsx("div",{})}},XC=H.forwardRef(({selected:t,item:r,onClick:i},s)=>{const u=tt(),c=d=>{d.preventDefault(),i()};return v.jsx("li",{"aria-selected":t,role:"option",className:r.withDivider?sa.divider:void 0,children:v.jsxs("a",{ref:s,type:"button",role:"button",tabIndex:-1,onClick:c,children:[v.jsx(YC,{icon:r.icon}),v.jsx("span",{children:u(`header.menu.${r.id}`)})]})})}),ZC=(t,r)=>{const i=e_(),{menuItems:s,enableStandaloneView:u,enableTranscriptExportPdf:c,enableTranscriptExportEmail:d}=it(p=>p.settings),h=it(p=>p.chat.conversationRating.enabled);return H.useMemo(()=>{const p=[],y=s.filter(({visibility:E})=>t?E==="always"||E==="chat-only":E==="always"||E==="start-screen-only");if(t&&(p.push({id:"restart-chat",type:"restart-chat",icon:"arrow-counter-clockwise",visibility:"chat-only"}),i&&u&&p.push({id:"expand-chat-window",type:"expand-chat-window",icon:"expand",visibility:"always"}),r&&c&&p.push({id:"download-transcript",type:"download-transcript",icon:"download",visibility:"chat-only"}),r&&d&&p.push({id:"send-transcript",type:"send-transcript",icon:"mail",visibility:"chat-only"}),r&&h&&p.push({id:"rate-conversation",type:"rate-conversation",icon:"star",visibility:"chat-only"}),p.length>0&&y.length)){const E=p.pop();E&&s.length&&p.push({...E,withDivider:!0})}return p.push(...y),p},[t,r,c,d,u,h,i,s])},QC=({chatStarted:t,hasGuestMessages:r})=>{const i=Cr(),s=_u(),u=tt(),[c,d]=H.useState(!1),[h,m]=H.useState(-1),p=H.useRef(null),y=H.useRef(null),E=H.useRef([]),A=ZC(t,r);H.useEffect(()=>{E.current[h]?.focus()},[h]);const U=H.useCallback(()=>{const _=uu.parse(window.location.search);i(gu(s,_)),d(!1),m(0)},[i,s]),R=H.useCallback(_=>{switch(_.type){case"restart-chat":U();break;case"expand-chat-window":window.open(window.location.href,"_blank");break;case"download-transcript":i(Ax());break;case"send-transcript":i(Lb());break;case"rate-conversation":i(Ih("MENU"));break;case"link":i(hb(_.url));break;case"action":i(JSON.parse(JSON.stringify(_.action)));break}d(!1)},[i,U,d]);H.useEffect(()=>{const _=C=>{if(c)switch(C.key){case"Enter":C.preventDefault(),R(A[h]);break;case"ArrowUp":m(S=>S>0?S-1:A.length-1);break;case"ArrowDown":m(S=>S<A.length-1?S+1:0);break;case"Escape":d(!1);break;case"Tab":h>-1&&d(!1);break}};return document.addEventListener("keydown",_),()=>{document.removeEventListener("keydown",_)}},[c,h,A,m,d,R]),H.useEffect(()=>{c||m(-1)},[c,h]),Wb(y,()=>d(!1));const F=()=>{d(_=>!_)},G=()=>{setTimeout(()=>{const _=document.activeElement;y.current&&!y.current.contains(_)&&d(!1)},0)};return A.length?v.jsxs("div",{className:Q(sa.menuContainer),ref:y,children:[v.jsx("button",{ref:p,className:Q(c&&sa.active,c?"tooltip-hidden":"tooltip--bottom-left"),"aria-label":u("header.menu.title"),"data-title":u("header.menu.title"),onClick:F,onBlur:G,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:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z"})})}),c&&v.jsx("nav",{className:sa.menu,"aria-label":u("header.menu.title"),children:v.jsx("ul",{tabIndex:0,children:A.map((_,C)=>v.jsx(XC,{ref:S=>{E.current[C]=S},selected:h===C,item:_,onClick:()=>R(_)},_.id))})})]}):null},Uv=({className:t,chatStarted:r,...i})=>{const s=Cr(),u=it(h=>h.chat.conversationRating.enabled),c=it(h=>h.chat.messages.some(m=>m.sender.type===Te.UserType.GUEST)),d=()=>{s(u&&c?Ih("CLOSE_CHAT"):Db())};return v.jsxs("div",{className:Q([sa.header,t]),...i,children:[v.jsx("div",{className:sa.logoContainer,children:v.jsx("div",{className:sa.logo})}),v.jsxs("div",{className:sa.actions,children:[v.jsx(QC,{chatStarted:r,hasGuestMessages:c}),v.jsx(jC,{onClick:d})]})]})},KC="_chatwindow_rkbir_1",$C="_chatwindowWithAside_rkbir_21",Hv={chatwindow:KC,chatwindowWithAside:$C},t_=()=>{const[t,r]=H.useState(!1);return H.useEffect(()=>{const i=window.matchMedia("(max-width: 1023px)"),s=()=>r(i.matches);return s(),i.addEventListener("change",s),()=>i.removeEventListener("change",s)},[]),t},WC="_sourceInfos_vei0l_1",JC="_waitForLoading_vei0l_24",e3="_loadingContent_vei0l_28",t3="_sourceHeader_vei0l_37",n3="_sourceHeaderIcon_vei0l_57",r3="_sourceContent_vei0l_61",a3="_openSourceButton_vei0l_69",i3="_sourceButtonLabel_vei0l_79",s3="_closeSourceInfosButton_vei0l_101",l3="_loadingSourceInfos_vei0l_125",o3="_loading_vei0l_28",u3="_loadingError_vei0l_139",c3="_highlightLoadingInfo_vei0l_155",f3="_highlightLoadingInfoInnerContainer_vei0l_169",d3="_highlightLoadingInfoContent_vei0l_178",h3="_highlightLoadingInfoCloseIcon_vei0l_198",m3="_highlightLoader_vei0l_203",p3="_highlightLoaderLoading_vei0l_210",_t={sourceInfos:WC,waitForLoading:JC,loadingContent:e3,sourceHeader:t3,sourceHeaderIcon:n3,sourceContent:r3,openSourceButton:a3,sourceButtonLabel:i3,closeSourceInfosButton:s3,loadingSourceInfos:l3,loading:o3,loadingError:u3,highlightLoadingInfo:c3,highlightLoadingInfoInnerContainer:f3,highlightLoadingInfoContent:d3,highlightLoadingInfoCloseIcon:h3,highlightLoader:m3,highlightLoaderLoading:p3},g3=({onClick:t})=>{const r=tt();return v.jsx("button",{className:Q(_t.closeSourceInfosButton,"tooltip--bottom-left"),"aria-label":r("source-infos.close"),"data-title":r("source-infos.close"),tabIndex:0,onClick:t,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"})})})},y3=H.forwardRef(({sourceInfos:t,onClose:r,...i},s)=>v.jsxs("div",{className:_t.sourceHeader,...i,ref:s,children:[v.jsx("div",{children:t?v.jsx("p",{id:"source-info-title",children:t.title}):v.jsx("p",{children:" "})}),v.jsx(g3,{onClick:r})]})),v3=({loading:t})=>v.jsx("div",{className:_t.highlightLoader,children:t&&v.jsx("div",{className:_t.highlightLoaderLoading})});/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:n_,setPrototypeOf:jv,isFrozen:b3,getPrototypeOf:_3,getOwnPropertyDescriptor:E3}=Object;let{freeze:zt,seal:Sn,create:r_}=Object,{apply:lh,construct:oh}=typeof Reflect<"u"&&Reflect;zt||(zt=function(r){return r});Sn||(Sn=function(r){return r});lh||(lh=function(r,i,s){return r.apply(i,s)});oh||(oh=function(r,i){return new r(...i)});const Io=Gt(Array.prototype.forEach),S3=Gt(Array.prototype.lastIndexOf),Iv=Gt(Array.prototype.pop),ks=Gt(Array.prototype.push),T3=Gt(Array.prototype.splice),Po=Gt(String.prototype.toLowerCase),yd=Gt(String.prototype.toString),zv=Gt(String.prototype.match),qs=Gt(String.prototype.replace),A3=Gt(String.prototype.indexOf),x3=Gt(String.prototype.trim),Hn=Gt(Object.prototype.hasOwnProperty),Ht=Gt(RegExp.prototype.test),Fs=O3(TypeError);function Gt(t){return function(r){r instanceof RegExp&&(r.lastIndex=0);for(var i=arguments.length,s=new Array(i>1?i-1:0),u=1;u<i;u++)s[u-1]=arguments[u];return lh(t,r,s)}}function O3(t){return function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return oh(t,i)}}function Re(t,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Po;jv&&jv(t,null);let s=r.length;for(;s--;){let u=r[s];if(typeof u=="string"){const c=i(u);c!==u&&(b3(r)||(r[s]=c),u=c)}t[u]=!0}return t}function R3(t){for(let r=0;r<t.length;r++)Hn(t,r)||(t[r]=null);return t}function Sr(t){const r=r_(null);for(const[i,s]of n_(t))Hn(t,i)&&(Array.isArray(s)?r[i]=R3(s):s&&typeof s=="object"&&s.constructor===Object?r[i]=Sr(s):r[i]=s);return r}function Vs(t,r){for(;t!==null;){const s=E3(t,r);if(s){if(s.get)return Gt(s.get);if(typeof s.value=="function")return Gt(s.value)}t=_3(t)}function i(){return null}return i}const Gv=zt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),vd=zt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),bd=zt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),w3=zt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),_d=zt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),C3=zt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),kv=zt(["#text"]),qv=zt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Ed=zt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Fv=zt(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),zo=zt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),N3=Sn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),M3=Sn(/<%[\w\W]*|[\w\W]*%>/gm),D3=Sn(/\$\{[\w\W]*/gm),L3=Sn(/^data-[\-\w.\u00B7-\uFFFF]+$/),B3=Sn(/^aria-[\-\w]+$/),a_=Sn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),U3=Sn(/^(?:\w+script|data):/i),H3=Sn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),i_=Sn(/^html$/i),j3=Sn(/^[a-z][.\w]*(-[.\w]+)+$/i);var Vv=Object.freeze({__proto__:null,ARIA_ATTR:B3,ATTR_WHITESPACE:H3,CUSTOM_ELEMENT:j3,DATA_ATTR:L3,DOCTYPE_NAME:i_,ERB_EXPR:M3,IS_ALLOWED_URI:a_,IS_SCRIPT_OR_DATA:U3,MUSTACHE_EXPR:N3,TMPLIT_EXPR:D3});const Ps={element:1,text:3,progressingInstruction:7,comment:8,document:9},I3=function(){return typeof window>"u"?null:window},z3=function(r,i){if(typeof r!="object"||typeof r.createPolicy!="function")return null;let s=null;const u="data-tt-policy-suffix";i&&i.hasAttribute(u)&&(s=i.getAttribute(u));const c="dompurify"+(s?"#"+s:"");try{return r.createPolicy(c,{createHTML(d){return d},createScriptURL(d){return d}})}catch{return console.warn("TrustedTypes policy "+c+" could not be created."),null}},Pv=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function s_(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:I3();const r=le=>s_(le);if(r.version="3.2.6",r.removed=[],!t||!t.document||t.document.nodeType!==Ps.document||!t.Element)return r.isSupported=!1,r;let{document:i}=t;const s=i,u=s.currentScript,{DocumentFragment:c,HTMLTemplateElement:d,Node:h,Element:m,NodeFilter:p,NamedNodeMap:y=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:E,DOMParser:A,trustedTypes:U}=t,R=m.prototype,F=Vs(R,"cloneNode"),G=Vs(R,"remove"),_=Vs(R,"nextSibling"),C=Vs(R,"childNodes"),S=Vs(R,"parentNode");if(typeof d=="function"){const le=i.createElement("template");le.content&&le.content.ownerDocument&&(i=le.content.ownerDocument)}let I,x="";const{implementation:Z,createNodeIterator:W,createDocumentFragment:ae,getElementsByTagName:ge}=i,{importNode:Ee}=s;let se=Pv();r.isSupported=typeof n_=="function"&&typeof S=="function"&&Z&&Z.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:me,ERB_EXPR:ce,TMPLIT_EXPR:Pe,DATA_ATTR:be,ARIA_ATTR:z,IS_SCRIPT_OR_DATA:K,ATTR_WHITESPACE:ee,CUSTOM_ELEMENT:Ae}=Vv;let{IS_ALLOWED_URI:O}=Vv,k=null;const $=Re({},[...Gv,...vd,...bd,..._d,...kv]);let Y=null;const te=Re({},[...qv,...Ed,...Fv,...zo]);let re=Object.seal(r_(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ue=null,$e=null,Ue=!0,Et=!0,zn=!1,Nr=!0,Ze=!1,kt=!0,xn=!1,Di=!1,Li=!1,St=!1,qa=!1,ua=!1,Bi=!0,ca=!1;const Tu="user-content-";let Fa=!0,fa=!1,Mr={},fn=null;const Ct=Re({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let On=null;const Nt=Re({},["audio","video","img","source","image","track"]);let Ui=null;const rl=Re({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Va="http://www.w3.org/1998/Math/MathML",tr="http://www.w3.org/2000/svg",qt="http://www.w3.org/1999/xhtml";let Ft=qt,Dr=!1,nr=null;const Au=Re({},[Va,tr,qt],yd);let da=Re({},["mi","mo","mn","ms","mtext"]),ha=Re({},["annotation-xml"]);const Hi=Re({},["title","style","font","a","script"]);let Rn=null;const xu=["application/xhtml+xml","text/html"],al="text/html";let nt=null,Gn=null;const ji=i.createElement("form"),Ii=function(N){return N instanceof RegExp||N instanceof Function},zi=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Gn&&Gn===N)){if((!N||typeof N!="object")&&(N={}),N=Sr(N),Rn=xu.indexOf(N.PARSER_MEDIA_TYPE)===-1?al:N.PARSER_MEDIA_TYPE,nt=Rn==="application/xhtml+xml"?yd:Po,k=Hn(N,"ALLOWED_TAGS")?Re({},N.ALLOWED_TAGS,nt):$,Y=Hn(N,"ALLOWED_ATTR")?Re({},N.ALLOWED_ATTR,nt):te,nr=Hn(N,"ALLOWED_NAMESPACES")?Re({},N.ALLOWED_NAMESPACES,yd):Au,Ui=Hn(N,"ADD_URI_SAFE_ATTR")?Re(Sr(rl),N.ADD_URI_SAFE_ATTR,nt):rl,On=Hn(N,"ADD_DATA_URI_TAGS")?Re(Sr(Nt),N.ADD_DATA_URI_TAGS,nt):Nt,fn=Hn(N,"FORBID_CONTENTS")?Re({},N.FORBID_CONTENTS,nt):Ct,ue=Hn(N,"FORBID_TAGS")?Re({},N.FORBID_TAGS,nt):Sr({}),$e=Hn(N,"FORBID_ATTR")?Re({},N.FORBID_ATTR,nt):Sr({}),Mr=Hn(N,"USE_PROFILES")?N.USE_PROFILES:!1,Ue=N.ALLOW_ARIA_ATTR!==!1,Et=N.ALLOW_DATA_ATTR!==!1,zn=N.ALLOW_UNKNOWN_PROTOCOLS||!1,Nr=N.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ze=N.SAFE_FOR_TEMPLATES||!1,kt=N.SAFE_FOR_XML!==!1,xn=N.WHOLE_DOCUMENT||!1,St=N.RETURN_DOM||!1,qa=N.RETURN_DOM_FRAGMENT||!1,ua=N.RETURN_TRUSTED_TYPE||!1,Li=N.FORCE_BODY||!1,Bi=N.SANITIZE_DOM!==!1,ca=N.SANITIZE_NAMED_PROPS||!1,Fa=N.KEEP_CONTENT!==!1,fa=N.IN_PLACE||!1,O=N.ALLOWED_URI_REGEXP||a_,Ft=N.NAMESPACE||qt,da=N.MATHML_TEXT_INTEGRATION_POINTS||da,ha=N.HTML_INTEGRATION_POINTS||ha,re=N.CUSTOM_ELEMENT_HANDLING||{},N.CUSTOM_ELEMENT_HANDLING&&Ii(N.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(re.tagNameCheck=N.CUSTOM_ELEMENT_HANDLING.tagNameCheck),N.CUSTOM_ELEMENT_HANDLING&&Ii(N.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(re.attributeNameCheck=N.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),N.CUSTOM_ELEMENT_HANDLING&&typeof N.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(re.allowCustomizedBuiltInElements=N.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ze&&(Et=!1),qa&&(St=!0),Mr&&(k=Re({},kv),Y=[],Mr.html===!0&&(Re(k,Gv),Re(Y,qv)),Mr.svg===!0&&(Re(k,vd),Re(Y,Ed),Re(Y,zo)),Mr.svgFilters===!0&&(Re(k,bd),Re(Y,Ed),Re(Y,zo)),Mr.mathMl===!0&&(Re(k,_d),Re(Y,Fv),Re(Y,zo))),N.ADD_TAGS&&(k===$&&(k=Sr(k)),Re(k,N.ADD_TAGS,nt)),N.ADD_ATTR&&(Y===te&&(Y=Sr(Y)),Re(Y,N.ADD_ATTR,nt)),N.ADD_URI_SAFE_ATTR&&Re(Ui,N.ADD_URI_SAFE_ATTR,nt),N.FORBID_CONTENTS&&(fn===Ct&&(fn=Sr(fn)),Re(fn,N.FORBID_CONTENTS,nt)),Fa&&(k["#text"]=!0),xn&&Re(k,["html","head","body"]),k.table&&(Re(k,["tbody"]),delete ue.tbody),N.TRUSTED_TYPES_POLICY){if(typeof N.TRUSTED_TYPES_POLICY.createHTML!="function")throw Fs('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof N.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Fs('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');I=N.TRUSTED_TYPES_POLICY,x=I.createHTML("")}else I===void 0&&(I=z3(U,u)),I!==null&&typeof x=="string"&&(x=I.createHTML(""));zt&&zt(N),Gn=N}},wn=Re({},[...vd,...bd,...w3]),dt=Re({},[..._d,...C3]),Mt=function(N){let X=S(N);(!X||!X.tagName)&&(X={namespaceURI:Ft,tagName:"template"});const J=Po(N.tagName),Fe=Po(X.tagName);return nr[N.namespaceURI]?N.namespaceURI===tr?X.namespaceURI===qt?J==="svg":X.namespaceURI===Va?J==="svg"&&(Fe==="annotation-xml"||da[Fe]):!!wn[J]:N.namespaceURI===Va?X.namespaceURI===qt?J==="math":X.namespaceURI===tr?J==="math"&&ha[Fe]:!!dt[J]:N.namespaceURI===qt?X.namespaceURI===tr&&!ha[Fe]||X.namespaceURI===Va&&!da[Fe]?!1:!dt[J]&&(Hi[J]||!wn[J]):!!(Rn==="application/xhtml+xml"&&nr[N.namespaceURI]):!1},Tt=function(N){ks(r.removed,{element:N});try{S(N).removeChild(N)}catch{G(N)}},kn=function(N,X){try{ks(r.removed,{attribute:X.getAttributeNode(N),from:X})}catch{ks(r.removed,{attribute:null,from:X})}if(X.removeAttribute(N),N==="is")if(St||qa)try{Tt(X)}catch{}else try{X.setAttribute(N,"")}catch{}},il=function(N){let X=null,J=null;if(Li)N="<remove></remove>"+N;else{const We=zv(N,/^[\r\n\t ]+/);J=We&&We[0]}Rn==="application/xhtml+xml"&&Ft===qt&&(N='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+N+"</body></html>");const Fe=I?I.createHTML(N):N;if(Ft===qt)try{X=new A().parseFromString(Fe,Rn)}catch{}if(!X||!X.documentElement){X=Z.createDocument(Ft,"template",null);try{X.documentElement.innerHTML=Dr?x:Fe}catch{}}const ht=X.body||X.documentElement;return N&&J&&ht.insertBefore(i.createTextNode(J),ht.childNodes[0]||null),Ft===qt?ge.call(X,xn?"html":"body")[0]:xn?X.documentElement:ht},sl=function(N){return W.call(N.ownerDocument||N,N,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},Pa=function(N){return N instanceof E&&(typeof N.nodeName!="string"||typeof N.textContent!="string"||typeof N.removeChild!="function"||!(N.attributes instanceof y)||typeof N.removeAttribute!="function"||typeof N.setAttribute!="function"||typeof N.namespaceURI!="string"||typeof N.insertBefore!="function"||typeof N.hasChildNodes!="function")},Lr=function(N){return typeof h=="function"&&N instanceof h};function Qt(le,N,X){Io(le,J=>{J.call(r,N,X,Gn)})}const rr=function(N){let X=null;if(Qt(se.beforeSanitizeElements,N,null),Pa(N))return Tt(N),!0;const J=nt(N.nodeName);if(Qt(se.uponSanitizeElement,N,{tagName:J,allowedTags:k}),kt&&N.hasChildNodes()&&!Lr(N.firstElementChild)&&Ht(/<[/\w!]/g,N.innerHTML)&&Ht(/<[/\w!]/g,N.textContent)||N.nodeType===Ps.progressingInstruction||kt&&N.nodeType===Ps.comment&&Ht(/<[/\w]/g,N.data))return Tt(N),!0;if(!k[J]||ue[J]){if(!ue[J]&&Br(J)&&(re.tagNameCheck instanceof RegExp&&Ht(re.tagNameCheck,J)||re.tagNameCheck instanceof Function&&re.tagNameCheck(J)))return!1;if(Fa&&!fn[J]){const Fe=S(N)||N.parentNode,ht=C(N)||N.childNodes;if(ht&&Fe){const We=ht.length;for(let Dt=We-1;Dt>=0;--Dt){const Vt=F(ht[Dt],!0);Vt.__removalCount=(N.__removalCount||0)+1,Fe.insertBefore(Vt,_(N))}}}return Tt(N),!0}return N instanceof m&&!Mt(N)||(J==="noscript"||J==="noembed"||J==="noframes")&&Ht(/<\/no(script|embed|frames)/i,N.innerHTML)?(Tt(N),!0):(Ze&&N.nodeType===Ps.text&&(X=N.textContent,Io([me,ce,Pe],Fe=>{X=qs(X,Fe," ")}),N.textContent!==X&&(ks(r.removed,{element:N.cloneNode()}),N.textContent=X)),Qt(se.afterSanitizeElements,N,null),!1)},ar=function(N,X,J){if(Bi&&(X==="id"||X==="name")&&(J in i||J in ji))return!1;if(!(Et&&!$e[X]&&Ht(be,X))){if(!(Ue&&Ht(z,X))){if(!Y[X]||$e[X]){if(!(Br(N)&&(re.tagNameCheck instanceof RegExp&&Ht(re.tagNameCheck,N)||re.tagNameCheck instanceof Function&&re.tagNameCheck(N))&&(re.attributeNameCheck instanceof RegExp&&Ht(re.attributeNameCheck,X)||re.attributeNameCheck instanceof Function&&re.attributeNameCheck(X))||X==="is"&&re.allowCustomizedBuiltInElements&&(re.tagNameCheck instanceof RegExp&&Ht(re.tagNameCheck,J)||re.tagNameCheck instanceof Function&&re.tagNameCheck(J))))return!1}else if(!Ui[X]){if(!Ht(O,qs(J,ee,""))){if(!((X==="src"||X==="xlink:href"||X==="href")&&N!=="script"&&A3(J,"data:")===0&&On[N])){if(!(zn&&!Ht(K,qs(J,ee,"")))){if(J)return!1}}}}}}return!0},Br=function(N){return N!=="annotation-xml"&&zv(N,Ae)},ir=function(N){Qt(se.beforeSanitizeAttributes,N,null);const{attributes:X}=N;if(!X||Pa(N))return;const J={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Y,forceKeepAttr:void 0};let Fe=X.length;for(;Fe--;){const ht=X[Fe],{name:We,namespaceURI:Dt,value:Vt}=ht,qn=nt(We),Kt=Vt;let lt=We==="value"?Kt:x3(Kt);if(J.attrName=qn,J.attrValue=lt,J.keepAttr=!0,J.forceKeepAttr=void 0,Qt(se.uponSanitizeAttribute,N,J),lt=J.attrValue,ca&&(qn==="id"||qn==="name")&&(kn(We,N),lt=Tu+lt),kt&&Ht(/((--!?|])>)|<\/(style|title)/i,lt)){kn(We,N);continue}if(J.forceKeepAttr)continue;if(!J.keepAttr){kn(We,N);continue}if(!Nr&&Ht(/\/>/i,lt)){kn(We,N);continue}Ze&&Io([me,ce,Pe],sr=>{lt=qs(lt,sr," ")});const Gi=nt(N.nodeName);if(!ar(Gi,qn,lt)){kn(We,N);continue}if(I&&typeof U=="object"&&typeof U.getAttributeType=="function"&&!Dt)switch(U.getAttributeType(Gi,qn)){case"TrustedHTML":{lt=I.createHTML(lt);break}case"TrustedScriptURL":{lt=I.createScriptURL(lt);break}}if(lt!==Kt)try{Dt?N.setAttributeNS(Dt,We,lt):N.setAttribute(We,lt),Pa(N)?Tt(N):Iv(r.removed)}catch{kn(We,N)}}Qt(se.afterSanitizeAttributes,N,null)},st=function le(N){let X=null;const J=sl(N);for(Qt(se.beforeSanitizeShadowDOM,N,null);X=J.nextNode();)Qt(se.uponSanitizeShadowNode,X,null),rr(X),ir(X),X.content instanceof c&&le(X.content);Qt(se.afterSanitizeShadowDOM,N,null)};return r.sanitize=function(le){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=null,J=null,Fe=null,ht=null;if(Dr=!le,Dr&&(le="<!-->"),typeof le!="string"&&!Lr(le))if(typeof le.toString=="function"){if(le=le.toString(),typeof le!="string")throw Fs("dirty is not a string, aborting")}else throw Fs("toString is not a function");if(!r.isSupported)return le;if(Di||zi(N),r.removed=[],typeof le=="string"&&(fa=!1),fa){if(le.nodeName){const Vt=nt(le.nodeName);if(!k[Vt]||ue[Vt])throw Fs("root node is forbidden and cannot be sanitized in-place")}}else if(le instanceof h)X=il("<!---->"),J=X.ownerDocument.importNode(le,!0),J.nodeType===Ps.element&&J.nodeName==="BODY"||J.nodeName==="HTML"?X=J:X.appendChild(J);else{if(!St&&!Ze&&!xn&&le.indexOf("<")===-1)return I&&ua?I.createHTML(le):le;if(X=il(le),!X)return St?null:ua?x:""}X&&Li&&Tt(X.firstChild);const We=sl(fa?le:X);for(;Fe=We.nextNode();)rr(Fe),ir(Fe),Fe.content instanceof c&&st(Fe.content);if(fa)return le;if(St){if(qa)for(ht=ae.call(X.ownerDocument);X.firstChild;)ht.appendChild(X.firstChild);else ht=X;return(Y.shadowroot||Y.shadowrootmode)&&(ht=Ee.call(s,ht,!0)),ht}let Dt=xn?X.outerHTML:X.innerHTML;return xn&&k["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&Ht(i_,X.ownerDocument.doctype.name)&&(Dt="<!DOCTYPE "+X.ownerDocument.doctype.name+`>
111
+ `+Dt),Ze&&Io([me,ce,Pe],Vt=>{Dt=qs(Dt,Vt," ")}),I&&ua?I.createHTML(Dt):Dt},r.setConfig=function(){let le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};zi(le),Di=!0},r.clearConfig=function(){Gn=null,Di=!1},r.isValidAttribute=function(le,N,X){Gn||zi({});const J=nt(le),Fe=nt(N);return ar(J,Fe,X)},r.addHook=function(le,N){typeof N=="function"&&ks(se[le],N)},r.removeHook=function(le,N){if(N!==void 0){const X=S3(se[le],N);return X===-1?void 0:T3(se[le],X,1)[0]}return Iv(se[le])},r.removeHooks=function(le){se[le]=[]},r.removeAllHooks=function(){se=Pv()},r}var G3=s_();const k3=({onClose:t})=>{const r=tt();return v.jsxs("div",{className:_t.highlightLoadingInfo,onClick:t,children:[v.jsx("div",{className:_t.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:_t.highlightLoadingInfoInnerContainer,children:[v.jsxs("div",{className:_t.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"})})]})]})},q3=({title:t,href:r,children:i})=>v.jsx("a",{href:r,title:t,target:"_blank",rel:"noopener noreferrer",children:i}),F3=({className:t,children:r,...i})=>v.jsx("a",{className:Q(Js.button,Js.buttonDefault,t),type:"button",role:"button",...i,children:r}),V3=t=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,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"})}),P3=({type:t,...r})=>{switch(t){case"WEBSITE":return v.jsx(Xb,{...r});case"PDF":return v.jsx(Yb,{...r});case"DOCX":return v.jsx(Vb,{...r});case"TEXT":return v.jsx(V3,{...r});default:return v.jsx(Pb,{...r})}},Y3=({url:t,knowledgeBaseType:r})=>{const i=tt();return v.jsx(F3,{className:_t.openSourceButton,href:t,target:"_blank",children:v.jsxs("div",{className:_t.sourceButtonLabel,children:[v.jsx("div",{className:_t.sourceHeaderIcon,children:v.jsx(P3,{type:r})}),v.jsx("p",{children:i("source-infos.open-source")})]})})},X3=({sourceInfos:{content:t,url:r,knowledgeBaseType:i,highlighted:s}})=>{const[u,c]=H.useState(!s);H.useEffect(()=>{s&&c(!1)},[s]);const d=G3.sanitize(t,{USE_PROFILES:{html:!0}});return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:Q(_t.sourceContent,Qb.markdown),children:[v.jsx(xr,{options:{overrides:{a:q3}},children:d}),u&&v.jsx(k3,{onClose:()=>c(!1)})]}),v.jsx(Y3,{url:r,knowledgeBaseType:i})]})},Z3=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,Q3=()=>{const t=tt();return v.jsxs("div",{className:_t.loadingError,children:[v.jsx("h1",{children:t("source-infos.error.title")}),v.jsx("img",{src:Z3,title:t("source-infos.error.title")}),v.jsx("p",{children:t("source-infos.error.info")})]})},K3=()=>v.jsx("div",{className:_t.loadingSourceInfos,children:v.jsx("svg",{className:_t.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 $3({sourceInfos:t,onClose:r,threshold:i=100}){const s=H.useRef(null),[u,c]=H.useState(0),[d,h]=H.useState(!1),m=H.useRef(null),p=H.useRef(null),y=H.useCallback(R=>{m.current=R,h(!0)},[]),E=H.useCallback(R=>{if(m.current!==null&&d){const F=R-m.current;F>0&&c(F)}},[d]),A=H.useCallback(()=>{h(!1),u>i&&r(),c(0),m.current=null},[u,i,r]),U=H.useCallback(R=>{const F=x=>y(x.touches[0].clientY),G=x=>E(x.touches[0].clientY),_=()=>A(),C=x=>{x.preventDefault(),y(x.clientY),window.addEventListener("mousemove",S),window.addEventListener("mouseup",I)},S=x=>E(x.clientY),I=()=>{A(),window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",I)};R.addEventListener("touchstart",F),R.addEventListener("touchmove",G),R.addEventListener("touchend",_),R.addEventListener("mousedown",C),p.current=()=>{R.removeEventListener("touchstart",F),R.removeEventListener("touchmove",G),R.removeEventListener("touchend",_),R.removeEventListener("mousedown",C),window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",I)}},[y,E,A]);return H.useEffect(()=>{let R;return(()=>{s.current?(p.current?.(),U(s.current)):(R=new MutationObserver(()=>{s.current&&(p.current?.(),U(s.current),R?.disconnect())}),R.observe(document.body,{childList:!0,subtree:!0}))})(),()=>{R?.disconnect(),p.current?.()}},[U,t]),{ref:s,dragOffsetY:u,isDragging:d}}const W3=t=>{const[r,i]=H.useState(!0);return H.useEffect(()=>{let s=null;return t?.type==="loading"?(i(!0),s=setTimeout(()=>{i(!1)},300)):i(!t),()=>{s&&clearTimeout(s)}},[t]),r},J3=()=>{const t=Cr(),r=it(m=>m.chat.sourceInfos),i=t_(),s=H.useRef(null),u=W3(r);H.useEffect(()=>{s.current&&r?.type==="loading"&&(i?s.current.showModal():(s.current.setAttribute("open","true"),s.current?.focus()))},[r,i]);const c=H.useCallback(()=>{s.current&&(i?s.current.close():s.current.removeAttribute("open"),t(AO()))},[t,i]),{ref:d,dragOffsetY:h}=$3({onClose:c,sourceInfos:r});return r?v.jsx("dialog",{ref:s,className:Q(_t.sourceInfos,u?_t.waitForLoading:r.type==="loading"?_t.loadingContent:""),style:i&&h?{transform:`translateY(${h}px)`}:{},onClose:c,autoFocus:!0,role:"dialog","aria-labelledby":"source-info-title",children:u?null:v.jsxs(v.Fragment,{children:[v.jsx(y3,{ref:d,tabIndex:-1,sourceInfos:r.type==="loaded"?r:void 0,onClose:c}),r.type==="loading"?v.jsx(K3,{}):r.type==="loading-error"?v.jsx(Q3,{}):v.jsxs(v.Fragment,{children:[v.jsx(v3,{loading:!r.highlighted}),v.jsx(X3,{sourceInfos:r})]})]})}):null},eN="_container_1aof3_1",tN="_body_1aof3_7",nN="_intro_1aof3_14",rN="_footer_1aof3_39",aN="_footnote_1aof3_43",iN="_containerWithFootnote_1aof3_58",sN="_startChatButton_1aof3_73",lN="_spinner_1aof3_88",oN="_formFields_1aof3_92",uN="_formField_1aof3_92",cN="_radio_1aof3_104",fN="_checkbox_1aof3_111",dN="_input_1aof3_119",hN="_inputLabel_1aof3_153",mN="_selectWrapper_1aof3_157",pN="_select_1aof3_157",gN="_selectLabel_1aof3_203",bt={container:eN,body:tN,intro:nN,footer:rN,footnote:aN,containerWithFootnote:iN,startChatButton:sN,spinner:lN,formFields:oN,formField:uN,radio:cN,checkbox:fN,input:dN,inputLabel:hN,selectWrapper:mN,select:pN,selectLabel:gN},yN=({name:t,label:r,defaultValue:i,required:s,onChange:u})=>{const c=d=>{u(d.currentTarget.checked?"true":"false")};return v.jsxs("label",{className:Q(bt.checkbox,"chat__startScreen__checkbox"),htmlFor:t,children:[v.jsx("input",{type:"checkbox",id:t,name:t,defaultChecked:i==="true",required:s,onChange:c}),v.jsx("div",{children:r})]})},vN=({type:t,name:r,label:i,defaultValue:s,placeholder:u,required:c,multiple:d,min:h,max:m,pattern:p,onChange:y})=>{const E=A=>{y(A.target.value)};return v.jsxs("label",{className:Q(bt.input,"chat__startScreen__input"),htmlFor:r,children:[v.jsx("div",{className:Q(bt.inputLabel),children:i}),v.jsx("input",{type:t,id:r,name:r,defaultValue:s,placeholder:u,required:c,multiple:d,min:h,max:m,pattern:p,onChange:E})]})},bN=({name:t,value:r,label:i,defaultChecked:s,required:u,onChange:c})=>{const d=`${t}-${r}`,h=m=>{c(m.target.value)};return v.jsxs("label",{className:Q(bt.radio,"chat__startScreen__radio"),htmlFor:d,children:[v.jsx("input",{id:d,type:"radio",name:t,value:r,defaultChecked:s,required:u,onChange:h}),v.jsx("span",{className:Q(bt.label),children:i})]})},_N=({name:t,label:r,defaultValue:i,required:s,multiple:u,options:c,onChange:d})=>{const h=m=>{d(m.target.value)};return v.jsxs("label",{className:Q(bt.select,"chat__startScreen__select"),htmlFor:t,children:[v.jsx("div",{className:Q(bt.selectLabel),children:r}),v.jsx("div",{className:Q(bt.selectWrapper),children:v.jsx("select",{id:t,name:t,defaultValue:i,required:s,multiple:u,onChange:h,children:Object.entries(c||{}).map(([m,p])=>v.jsx("option",{value:m,selected:p===i,children:p}))})})]})},EN="start-screen.intro",SN="start-screen.start-chat",TN="start-screen.waiting-for-login",AN="start-screen.footnote",Un="start-screen.form",Yv=`${Un}.fields`,xN=()=>{const t=tt(),r=Cr(),i=_u(),s=it(R=>R.startScreen.loginRequestToken),u=it(R=>R.settings.requiresUserAuthentication);H.useEffect(()=>{let R;if(s){const _=window.screenX+(window.outerWidth-600)/2,C=window.screenY+(window.outerHeight-700)/2,S=window.open(`/${i}/auth/login?loginRequestToken=${s}`,"Login",`width=600,height=700,left=${_},top=${C},resizable=yes,scrollbars=yes`);R=setInterval(()=>{S?.closed&&(r(_O()),clearInterval(R))},500)}return()=>{R&&clearInterval(R)}},[i,s,r]);const[c,d]=H.useState({}),h=()=>{const R=Object.entries(c).reduce((F,[G,_])=>({...F,[G]:_.value}),{});r(u?bO({loginRequestToken:$o(),formValues:R}):gO({formValues:R}))},m=t(EN),p=t(s?TN:SN),y=t(AN),E=H.useMemo(()=>t(Yv)?.split(";").map(R=>R.trim())??[],[t(Yv)]);H.useEffect(()=>{E.length&&Object.keys(c).length===0&&d(E.reduce((R,F)=>({...R,[F]:ON(F,t)}),{}))},[t,E,c]);const A=R=>{R.preventDefault(),h()},U=R=>F=>{d(G=>({...G,[R]:{...G[R],value:F}}))};return v.jsxs("form",{onSubmit:A,className:Q(bt.container,y&&bt.containerWithFootnote,"chat__startScreen"),children:[v.jsxs("div",{className:Q(bt.body,"chat__startScreen__body"),children:[m&&v.jsx("div",{className:Q(bt.intro,"chat__startScreen__intro"),children:v.jsx(xr,{options:{overrides:{a:Xv}},children:m})}),v.jsx("div",{className:Q(bt.formFields,"chat__startScreen__fields"),children:Object.values(c).map(({type:R,name:F,label:G,placeholder:_,defaultValue:C,options:S,required:I,multiple:x,min:Z,max:W,pattern:ae})=>v.jsx("div",{className:Q(bt.formField,"chat__startScreen__field"),children:(()=>{switch(R){case"radio":return v.jsxs(v.Fragment,{children:[v.jsx("div",{children:G}),Object.entries(S||{}).map(([ge,Ee])=>v.jsx(bN,{name:F,value:ge,label:Ee,defaultChecked:ge===C,required:I,onChange:U(F)},ge))]});case"checkbox":return v.jsx(yN,{name:F,label:G,defaultValue:C,required:I,onChange:U(F)});case"select":return v.jsx(_N,{name:F,label:G,defaultValue:C,required:I,multiple:x,options:S,onChange:U(F)});default:return v.jsx(vN,{type:R,name:F,label:G,placeholder:_,defaultValue:C,required:I,multiple:x,min:Z,max:W,pattern:ae,onChange:U(F)})}})()},F))})]}),v.jsxs("div",{className:Q(bt.footer,"chat__startScreen__footer"),children:[v.jsxs(au,{type:"submit",className:bt.startChatButton,disabled:!!s,children:[!!s&&v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",className:bt.spinner,children:v.jsx("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm88,88H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"})}),v.jsx("div",{children:p})]}),y&&v.jsx("div",{className:bt.footnote,children:v.jsx(xr,{options:{overrides:{a:Xv}},children:y})})]})]})},Xv=({title:t,href:r,children:i})=>v.jsx("a",{href:r,title:t,target:"_blank",rel:"noopener noreferrer",children:i}),ON=(t,r)=>{const i=r(`${Un}.${t}.type`)||"text",s=r(`${Un}.${t}.required`)==="true",u=r(`${Un}.${t}.multiple`)==="true",c=r(`${Un}.${t}.placeholder`),d=r(`${Un}.${t}.label`)||"",h=r(`${Un}.${t}.defaultValue`),m=r(`${Un}.${t}.min`),p=r(`${Un}.${t}.max`),y=r(`${Un}.${t}.pattern`),E=wN(r(`${Un}.${t}.options`));return{name:t,label:d,placeholder:c,value:RN(i,h,E)||"",defaultValue:h,options:E,type:i,required:s,multiple:u,min:m,max:p,pattern:y}},RN=(t,r,i)=>r||t==="select"&&Object.keys(i)[0]||"",wN=(t="")=>t.split(";").map(r=>r.trim()).reduce((r,i)=>{const[s,u]=i.split(":").map(c=>c.trim());return{...r,[s]:u}},{}),CN=()=>{const t=ou();H.useEffect(()=>{window.document.documentElement.lang=t.locale},[t.locale])},Oi={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"},NN=({clientName:t})=>{CN();const r=Cr(),i=it(y=>y.intl.messages),s=tt(),u=it(y=>y.settings.enableStartScreen),c=it(y=>y.startScreen.startScreenStatus),[d,h]=H.useState(void 0);H.useEffect(()=>{const y=uu.parse(window.location.search);y.cssClassName&&h(y.cssClassName);const E=A=>{switch(A.data.type){case Oi.TRIGGER_ACTION:r(A.data.action);break;case Oi.TRIGGER_STORY:r(db(A.data.story));break;case Oi.ON_CHAT_WINDOW_OPEN:r({type:"webclient.chatwindow.opened"});break;case Oi.ON_CHAT_WINDOW_CLOSE:r({type:"webclient.chatwindow.closed"});break;case Oi.CHAT_MESSAGE_FROM_GUEST:r(lb(A.data.text));break;case Oi.RESTART_CHAT:r(gu(t,y));break}};return r(OO(t,y)),window.addEventListener("message",A=>E(A),!1),()=>window.removeEventListener("message",E)},[t,r]),H.useEffect(()=>{const y=s("page.title");y&&document&&(document.title=y)},[i,s]);const m=u===void 0,p=u===!1||c==="HIDDEN";return v.jsx("div",{className:Q(Hv.chatwindow,p&&Hv.chatwindowWithAside,"chat__chatwindow",d),children:m?null:p?v.jsxs(v.Fragment,{children:[v.jsx("header",{children:v.jsx(Uv,{chatStarted:!0})}),v.jsx("main",{children:v.jsx(UC,{clientName:t})}),v.jsx("aside",{children:v.jsx(J3,{})})]}):v.jsxs(v.Fragment,{children:[v.jsx("header",{children:v.jsx(Uv,{chatStarted:!1})}),v.jsx("main",{children:v.jsx(xN,{})})]})})},MN=()=>{const t=_u(),r=t_(),i=it(u=>u.intl.locale),s=it(u=>u.intl.messages);return v.jsx(CA,{locale:i,messages:s,onError:()=>{},children:v.jsx("div",{className:Q([MA.app,r?"chat__small":"chat__large"]),children:v.jsx(NN,{clientName:t})})})};var Sd,Zv;function Zh(){if(Zv)return Sd;Zv=1;function t(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}return Sd=t,Sd}var Td,Qv;function DN(){if(Qv)return Td;Qv=1;var t=typeof go=="object"&&go&&go.Object===Object&&go;return Td=t,Td}var Ad,Kv;function l_(){if(Kv)return Ad;Kv=1;var t=DN(),r=typeof self=="object"&&self&&self.Object===Object&&self,i=t||r||Function("return this")();return Ad=i,Ad}var xd,$v;function LN(){if($v)return xd;$v=1;var t=l_(),r=function(){return t.Date.now()};return xd=r,xd}var Od,Wv;function BN(){if(Wv)return Od;Wv=1;var t=/\s/;function r(i){for(var s=i.length;s--&&t.test(i.charAt(s)););return s}return Od=r,Od}var Rd,Jv;function UN(){if(Jv)return Rd;Jv=1;var t=BN(),r=/^\s+/;function i(s){return s&&s.slice(0,t(s)+1).replace(r,"")}return Rd=i,Rd}var wd,e1;function o_(){if(e1)return wd;e1=1;var t=l_(),r=t.Symbol;return wd=r,wd}var Cd,t1;function HN(){if(t1)return Cd;t1=1;var t=o_(),r=Object.prototype,i=r.hasOwnProperty,s=r.toString,u=t?t.toStringTag:void 0;function c(d){var h=i.call(d,u),m=d[u];try{d[u]=void 0;var p=!0}catch{}var y=s.call(d);return p&&(h?d[u]=m:delete d[u]),y}return Cd=c,Cd}var Nd,n1;function jN(){if(n1)return Nd;n1=1;var t=Object.prototype,r=t.toString;function i(s){return r.call(s)}return Nd=i,Nd}var Md,r1;function IN(){if(r1)return Md;r1=1;var t=o_(),r=HN(),i=jN(),s="[object Null]",u="[object Undefined]",c=t?t.toStringTag:void 0;function d(h){return h==null?h===void 0?u:s:c&&c in Object(h)?r(h):i(h)}return Md=d,Md}var Dd,a1;function zN(){if(a1)return Dd;a1=1;function t(r){return r!=null&&typeof r=="object"}return Dd=t,Dd}var Ld,i1;function GN(){if(i1)return Ld;i1=1;var t=IN(),r=zN(),i="[object Symbol]";function s(u){return typeof u=="symbol"||r(u)&&t(u)==i}return Ld=s,Ld}var Bd,s1;function kN(){if(s1)return Bd;s1=1;var t=UN(),r=Zh(),i=GN(),s=NaN,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,d=/^0o[0-7]+$/i,h=parseInt;function m(p){if(typeof p=="number")return p;if(i(p))return s;if(r(p)){var y=typeof p.valueOf=="function"?p.valueOf():p;p=r(y)?y+"":y}if(typeof p!="string")return p===0?p:+p;p=t(p);var E=c.test(p);return E||d.test(p)?h(p.slice(2),E?2:8):u.test(p)?s:+p}return Bd=m,Bd}var Ud,l1;function qN(){if(l1)return Ud;l1=1;var t=Zh(),r=LN(),i=kN(),s="Expected a function",u=Math.max,c=Math.min;function d(h,m,p){var y,E,A,U,R,F,G=0,_=!1,C=!1,S=!0;if(typeof h!="function")throw new TypeError(s);m=i(m)||0,t(p)&&(_=!!p.leading,C="maxWait"in p,A=C?u(i(p.maxWait)||0,m):A,S="trailing"in p?!!p.trailing:S);function I(ce){var Pe=y,be=E;return y=E=void 0,G=ce,U=h.apply(be,Pe),U}function x(ce){return G=ce,R=setTimeout(ae,m),_?I(ce):U}function Z(ce){var Pe=ce-F,be=ce-G,z=m-Pe;return C?c(z,A-be):z}function W(ce){var Pe=ce-F,be=ce-G;return F===void 0||Pe>=m||Pe<0||C&&be>=A}function ae(){var ce=r();if(W(ce))return ge(ce);R=setTimeout(ae,Z(ce))}function ge(ce){return R=void 0,S&&y?I(ce):(y=E=void 0,U)}function Ee(){R!==void 0&&clearTimeout(R),G=0,y=F=E=R=void 0}function se(){return R===void 0?U:ge(r())}function me(){var ce=r(),Pe=W(ce);if(y=arguments,E=this,F=ce,Pe){if(R===void 0)return x(F);if(C)return clearTimeout(R),R=setTimeout(ae,m),I(F)}return R===void 0&&(R=setTimeout(ae,m)),U}return me.cancel=Ee,me.flush=se,me}return Ud=d,Ud}var Hd,o1;function FN(){if(o1)return Hd;o1=1;var t=qN(),r=Zh(),i="Expected a function";function s(u,c,d){var h=!0,m=!0;if(typeof u!="function")throw new TypeError(i);return r(d)&&(h="leading"in d?!!d.leading:h,m="trailing"in d?!!d.trailing:m),t(u,c,{leading:h,maxWait:c,trailing:m})}return Hd=s,Hd}var VN=FN();const PN=gh(VN);function YN(t){return t&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function XN(t){return t}function ZN(t,r){r=r||{};const i=r.delimiter||".",s=r.maxDepth,u=r.transformKey||XN,c={};function d(h,m,p){p=p||1,Object.keys(h).forEach(function(y){const E=h[y],A=r.safe&&Array.isArray(E),U=Object.prototype.toString.call(E),R=YN(E),F=U==="[object Object]"||U==="[object Array]",G=m?m+i+u(y):u(y);if(!A&&!R&&F&&Object.keys(E).length&&(!r.maxDepth||p<s))return d(E,G,p+1);c[G]=E})}return d(t),c}const u_={"page.title":"Bubble Chat Chatbot","message-input-label":"Benutzereingabe","message-input-placeholder":"Nachricht","message-input.actions.submit.label":"Nachricht senden","message-input.actions.start-audio-recording.label":"Spracheingabe starten","message-input.actions.stop-audio-recording.label":"Spracheingabe stoppen","message-input.actions.submit-audio-recording.label":"Spracheingabe übermitteln","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":"Chatverlauf per E-Mail versenden","export-transcript.email.description":"Bitte E-Mail-Adresse angeben, an die der Chatverlauf gesendet werden soll.","export-transcript.email.cancel":"Abbrechen","export-transcript.email.send":"Senden","export-transcript.email.placeholder":"E-Mail-Adresse","export-transcript.email.invalid":"Bitte gültige E-Mail-Adresse eingeben.","export-transcript.email.success":"Der Chatverlauf wurde an die hinterlegte E-Mail-Adresse übermittelt.","general-conditions.header":"**Nutzungsbedingungen**","general-conditions.body":`Bitte berücksichtigen Sie die folgenden Punkte:
112
+
113
+ - Der Chatverlauf wird im EU-Raum gespeichert und kann nur von autorisierten Personen eingesehen werden.
114
+ - Geben Sie im Chatfenster keine persönlichen Daten ein (Passwörter, Geburtsdatum usw.).`,"general-conditions.accept-conditions-note":"Mit der Verwendung des Chats erklären Sie sich mit den Nutzungsbedingungen einverstanden.","block-user-input.title":"Bitte auf die Antwort des Chatbots warten.","conversation-rating.call-to-action.title":"Bewerten Sie diesen Chat","conversation-rating.overlay.title":"Wie zufrieden sind Sie mit diesem Chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Feedback bitte hier eingeben (optional)","conversation-rating.overlay.star.very-bad":"Sehr schlecht","conversation-rating.overlay.star.very-good":"Sehr gut","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Durchschnitt ist nicht mein Ziel, was kann ich noch verbessern?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Knapp daneben ist auch vorbei. Was kann ich noch verbessern, um das nächste Mal alle Sterne zu erreichen?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfekt! Dann hoffe ich, dass ich Sie wieder einmal so gut beraten kann.","conversation-rating.overlay.bot-message.submit-feedback":"Vielen Dank für die Rückmeldung. Ich bin bestrebt, mich ständig zu verbessern.","conversation-rating.overlay.action.submit":"Bewertung senden","conversation-rating.overlay.action.back-to-chat":"Zurück zum Chat","conversation-rating.overlay.action.close-chat":"Chat minimieren","conversation-rating.overlay.action.cancel":"Abbrechen","start-screen.intro":"","start-screen.start-chat":"Chat starten","start-screen.waiting-for-login":"Warte auf Login ...","header.close-chat":"Chat minimieren","header.menu.title":"Menü","header.menu.restart-chat":"Chat neu starten","header.menu.expand-chat-window":"Fenster maximieren","header.menu.download-transcript":"Chatverlauf herunterladen","header.menu.send-transcript":"Chatverlauf versenden","header.menu.export-transcript":"Chatverlauf exportieren","header.menu.rate-conversation":"Chat bewerten","source-infos.close":"Schliessen","source-infos.open-source":"Quelle öffnen","source-infos.error.title":"Fehler","source-infos.error.info":"Oops! Etwas ist schiefgelaufen. Bitte versuche es erneut oder kontaktiere den Support, falls das Problem weiterhin besteht.","source-infos.highlight-loading.title":"Relevante Inhalte werden markiert...","source-infos.highlight-loading.description":"Einen Moment – die Quelle wird analysiert.","commands.show-more.action":"Weitere ...","commands.show-more.tooltip":"Weitere Befehle anzeigen","commands.show-less.action":"Weniger ...","commands.show-less.tooltip":"Weniger Befehle anzeigen"},QN={"page.title":"Bubble Chat Chatbot","message-input-label":"User input","message-input-placeholder":"Message","message-input.actions.submit.label":"Send message","message-input.actions.start-audio-recording.label":"Start voice input","message-input.actions.stop-audio-recording.label":"Stop voice input","message-input.actions.submit-audio-recording.label":"Transmit voice input","guest-bubble.label":"Your message","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 chat history","export-transcript.email.description":"Please enter the e-mail address to which the chat history should be sent.","export-transcript.email.cancel":"Cancel","export-transcript.email.send":"Send","export-transcript.email.placeholder":"E-mail address","export-transcript.email.invalid":"Please enter a valid e-mail address.","export-transcript.email.success":"The chat history was sent to the e-mail address provided.","general-conditions.header":"**Terms of use**","general-conditions.body":`Please consider the following points:
115
+
116
+ - The chat history is stored in the EU area and can only be viewed by authorized personnel.
117
+ - Do not enter any personal information in the chat window (passwords, date of birth, etc.)`,"general-conditions.accept-conditions-note":"By using the chat you agree to the terms of use.","block-user-input.title":"Please wait for the chatbot's response.","conversation-rating.call-to-action.title":"Rate this chat","conversation-rating.overlay.title":"How satisfied are you with this chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Please enter feedback here (optional)","conversation-rating.overlay.star.very-bad":"Very bad","conversation-rating.overlay.star.very-good":"Very good","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Average is not my goal, what can I still improve?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Just missed is also over. What can I improve to achieve all stars next time?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfect! Then I hope that I can once again advise you so well.","conversation-rating.overlay.bot-message.submit-feedback":"Thank you for the feedback. I am constantly striving to improve.","conversation-rating.overlay.action.submit":"Send rating","conversation-rating.overlay.action.back-to-chat":"Close","conversation-rating.overlay.action.close-chat":"Minimize chat","conversation-rating.overlay.action.cancel":"Cancel","start-screen.intro":"","start-screen.start-chat":"Start chat","start-screen.waiting-for-login":"Waiting for login ...","header.close-chat":"Minimize chat","header.menu.title":"Menu","header.menu.restart-chat":"Restart chat","header.menu.expand-chat-window":"Maximize window","header.menu.download-transcript":"Download chat history","header.menu.export-transcript":"Export chat history","header.menu.send-transcript":"Send chat history","header.menu.rate-conversation":"Rate chat","source-infos.close":"Close","source-infos.open-source":"Open source","source-infos.error.title":"Error","source-infos.error.info":"Oops! Something went wrong. Please try again or contact support if the problem persists.","source-infos.highlight-loading.title":"Relevant content is highlighted...","source-infos.highlight-loading.description":"One moment - the source is being analyzed.","commands.show-more.action":"More","commands.show-more.tooltip":"Show more commands","commands.show-less.action":"Less","commands.show-less.tooltip":"Show less commands"},KN={"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.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 l'historique du chat","export-transcript.email.description":"Veuillez indiquer l'adresse e-mail à laquelle l'historique de chat doit être envoyé.","export-transcript.email.cancel":"Annuler","export-transcript.email.send":"Envoyer","export-transcript.email.placeholder":"E-mail","export-transcript.email.invalid":"Veuillez entrer une adresse électronique valide.","export-transcript.email.success":"L'historique du chat a été envoyé à l'adresse e-mail fournie.","general-conditions.header":"**Conditions d'utilisation**","general-conditions.body":`Veuillez considérer les points suivants:
118
+
119
+ - L'historique du chat est stocké dans l'espace UE et ne peut être consulté que par les personnes autorisées.
120
+ - Ne saisissez aucune information personnelle dans la fenêtre de chat (mots de passe, date de naissance, etc.).`,"general-conditions.accept-conditions-note":"En utilisant le chat, vous acceptez les conditions d'utilisation.","block-user-input.title":"Veuillez attendre la réponse du chatbot.","conversation-rating.call-to-action.title":"Notez ce chat","conversation-rating.overlay.title":"Dans quelle mesure êtes-vous satisfait de ce chat ?","conversation-rating.overlay.guest-feedback.input-placeholder":"Veuillez saisir vos commentaires ici (facultatif)","conversation-rating.overlay.star.very-bad":"Très mauvais","conversation-rating.overlay.star.very-good":"Très bien","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La moyenne n'est pas mon objectif, que puis-je encore améliorer ?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Le rater de peu, c'est le rater aussi. Que puis-je encore améliorer pour obtenir toutes les étoiles la prochaine fois ?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Parfait ! Alors j'espère pouvoir vous conseiller aussi bien une fois de plus.","conversation-rating.overlay.bot-message.submit-feedback":"Merci beaucoup pour votre feed-back. Je m'efforce de m'améliorer en permanence.","conversation-rating.overlay.action.submit":"Envoyer","conversation-rating.overlay.action.back-to-chat":"Fermer","conversation-rating.overlay.action.close-chat":"Minimiser le chat","conversation-rating.overlay.action.cancel":"Annuler","start-screen.intro":"","start-screen.start-chat":"Démarrer le chat","start-screen.waiting-for-login":"En attente de connexion ...","header.close-chat":"Minimiser le chat","header.menu.title":"Menu","header.menu.restart-chat":"Redémarrer le chat","header.menu.expand-chat-window":"Agrandir la fenêtre","header.menu.download-transcript":"Télécharger l'historique du chat","header.menu.send-transcript":"Envoyer l'historique du chat","header.menu.export-transcript":"Exporter l'historique du chat","header.menu.rate-conversation":"Évaluer le chat","source-infos.close":"Fermer","source-infos.open-source":"Ouvrir source","source-infos.error.title":"Erreur","source-infos.error.info":"Oups ! Quelque chose s'est mal passé. Merci de réessayer ou de contacter le support si le problème persiste.","source-infos.highlight-loading.title":"Contenus pertinents en surbrillance...","source-infos.highlight-loading.description":"Un instant - la source est analysée","commands.show-more.action":"Plus","commands.show-more.tooltip":"Afficher plus de commandes","commands.show-less.action":"Moins","commands.show-less.tooltip":"Afficher moins de commandes"},$N={"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.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 cronologia della chat","export-transcript.email.description":"Inserire l'indirizzo e-mail a cui inviare la cronologia della chat.","export-transcript.email.cancel":"Annulla","export-transcript.email.send":"Invia","export-transcript.email.placeholder":"E-mail","export-transcript.email.invalid":"Inserire un indirizzo e-mail valido.","export-transcript.email.success":"La cronologia della chat è stata inviata all'indirizzo e-mail fornito.","general-conditions.header":"**Condizioni di utilizzo**","general-conditions.body":`Si prega di considerare i seguenti punti:
121
+
122
+ - La cronologia delle chat è memorizzata nell'area UE e può essere visualizzata solo da persone autorizzate.
123
+ - Non inserire dati personali nella finestra di chat (password, data di nascita, ecc.).`,"general-conditions.accept-conditions-note":"Utilizzando la chat si accettano le condizioni d'uso.","block-user-input.title":"Attendere la risposta del chatbot.","conversation-rating.call-to-action.title":"Valuta questa chat","conversation-rating.overlay.title":"Quanto sei soddisfatto di questa chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Inserisci qui il tuo feedback (opzionale)","conversation-rating.overlay.star.very-bad":"Molto male","conversation-rating.overlay.star.very-good":"Molto buono","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La media non è il mio obiettivo, cosa posso ancora migliorare?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Anche l'assenza è finita. Cosa posso migliorare per ottenere tutte le stelle la prossima volta?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfetto! Allora spero di potervi consigliare ancora una volta bene.","conversation-rating.overlay.bot-message.submit-feedback":"Grazie mille per il feedback. Mi impegno costantemente per migliorare.","conversation-rating.overlay.action.submit":"Invia","conversation-rating.overlay.action.back-to-chat":"Chiudere","conversation-rating.overlay.action.close-chat":"Minimizzare la chat","conversation-rating.overlay.action.cancel":"Annulla","start-screen.intro":"","start-screen.start-chat":"Avviare la chat","start-screen.waiting-for-login":"In attesa di login ...","header.close-chat":"Minimizzare la chat","header.menu.title":"Menu","header.menu.restart-chat":"Riavviare la chat","header.menu.expand-chat-window":"Espandere la finestra","header.menu.download-transcript":"Scaricare la trascrizione","header.menu.send-transcript":"Inviare la trascrizione","header.menu.export-transcript":"Esportare la trascrizione","header.menu.rate-conversation":"Valutare la conversazione","source-infos.close":"Chiudere","source-infos.open-source":"Fonte aperta","source-infos.error.title":"Errore","source-infos.error.info":"Ops! Qualcosa è andato storto. Riprovare o contattare l'assistenza se il problema persiste.","source-infos.highlight-loading.title":"Il contenuto rilevante è evidenziato...","source-infos.highlight-loading.description":"Un momento - la fonte è in fase di analisi","commands.show-more.action":"Di più","commands.show-more.tooltip":"Mostra più comandi","commands.show-less.action":"Meno","commands.show-less.tooltip":"Mostra meno comandi"},WN=["de","en","fr","it"],c_={locale:"de",messages:u_},JN=(t,r)=>{if(WN.includes(t)){const i=e8(t),s=ZN(r);return{...i,...s}}return r},e8=t=>{switch(t.toString()){case"en":return QN;case"fr":return KN;case"it":return $N;default:return u_}},t8=(t=n8,r)=>{switch(r.type){case Gh:return Object.assign({},t,{connectionState:Ia.CONNECTING});case kh:return Object.assign({},t,{connectionState:Ia.CONNECTED});case qh:return Object.assign({},t,{connectionState:Ia.DISCONNECTED});case Fh:return Object.assign({},t,{connectionState:Ia.RECONNECTED});case Vh:return Object.assign({},t,{sessionId:r.sessionId});case mu:return Object.assign({},t,{sessionId:r.payload.sessionId,userId:r.payload.userId});case pu:return Object.assign({},t,{sessionId:void 0});default:return t}},n8={connectionState:Ia.DISCONNECTED,sessionId:void 0,userId:void 0},r8=(t=c1,r)=>{switch(r.type){case wb:return c1;case mu:return Ua({type:"webclient.chat.started"}),t;case pu:return Ua({type:"webclient.chat.ended"}),t;case Te.ActionTypes.TYPING_ON:return Object.assign({},t,{isBotTyping:!0});case Te.ActionTypes.TYPING_OFF:return Object.assign({},t,{isBotTyping:!1});case Te.ActionTypes.MESSAGE_FROM_GUEST:case Te.ActionTypes.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST:return u1(t,r.message);case Te.ActionTypes.MESSAGE_TO_GUEST:{Ua(r);const i=Object.assign({},r.message,{_id:r.meta.actionId}),s=t.messages.filter(u=>u._id===r.meta.actionId).length>0;return Object.assign({},t,{isBotTyping:!1,messages:s?t.messages:t.messages.concat([i]),quickReplies:i.quickReplies?i.quickReplies:[]})}case Rh:{const i=r.messages,s=i.length?i[i.length-1]:void 0;return Object.assign({},t,{isBotTyping:!1,messages:i,quickReplies:s?.quickReplies||[]})}case Oh:return Ua(r.message),t;case Te.ActionTypes.EVENT_TO_GUEST:return Ua(r.event),t;case Te.ActionTypes.DRAWER_OPEN:return Object.assign({},t,{drawerContentUrl:r.payload.parameters.contentUrl});case Te.ActionTypes.DRAWER_CLOSE:return Object.assign({},t,{drawerContentUrl:void 0});case Te.ActionTypes.GUEST_LOCALE_CHANGED:return Object.assign({},t,{locale:r.payload.locale});case ub:return Ua(r),t;case cb:return Ua(r),t;case Ch:{const i=new Te.TextMessage(r.transcription,new Te.GuestUser),s=Object.assign({},i,{_id:$o()});return u1(t,s)}case Te.ActionTypes.TRANSCRIPT_ITEM_GUEST_REACTION:{const i=t.messages.map(s=>s._id===r.payload.actionId?Object.assign({},s,{reaction:r.payload.reaction}):s);return Object.assign({},t,{messages:i})}case Nh:{const i={enabled:!0,rating:r.payload.rating};return Object.assign({},t,{conversationRating:i})}case Te.ActionTypes.CONVERSATION_RATING_FROM_GUEST:{const i={...t.conversationRating,rating:r.payload};return Object.assign({},t,{conversationRating:i})}case Nb:{const i={...t.conversationRating,opener:r.payload.opener,...r.payload.defaultRating?{rating:{value:r.payload.defaultRating,feedback:t.conversationRating.rating?.feedback||""}}:{}};return Object.assign({},t,{conversationRating:i})}case Mb:{const i={...t.conversationRating,opener:void 0};return Object.assign({},t,{conversationRating:i})}case Dh:return{...t,sourceInfos:{type:"loading",chunkId:r.payload.chunkId}};case Mh:{const{highlighted:i}=r.payload;return t.sourceInfos?.type==="loaded"&&i?{...t,sourceInfos:{...t.sourceInfos,highlighted:!0}}:{...t,sourceInfos:{type:"loading-error"}}}case ob:{const i=t.sourceInfos?.type,{chunkId:s,knowledgeBaseType:u,title:c,content:d,highlighted:h,url:m}=r.payload,p=t.sourceInfos?.type==="loading"||t.sourceInfos?.type==="loaded"?t.sourceInfos?.chunkId:void 0;return p&&p!==s?t:i==="loading"||i==="loaded"&&h?{...t,sourceInfos:{type:"loaded",chunkId:s,knowledgeBaseType:u,title:c,content:d,highlighted:h,url:m}}:t}case Lh:return{...t,sourceInfos:void 0};case Cb:return{...t,showTranscriptMailOverlay:!t.showTranscriptMailOverlay};default:return t}},u1=(t,r)=>{const i=t.messages[t.messages.length-1],s=i?.text===r.text;return i&&i.sender.type===r.sender.type&&s?t:Object.assign({},t,{messages:t.messages.concat([r]),quickReplies:[]})},Ua=t=>{a8()?window.top?.postMessage(t,"*"):t.type==="webclient.change.url"&&window.open(t.url)},a8=()=>typeof window<"u"&&window.self!==window.top,c1={messages:[],quickReplies:[],isBotTyping:!1,showTranscriptMailOverlay:!1,conversationRating:{enabled:!1}},f_=jh({name:"intl",initialState:c_,reducers:{updateIntl:(t,r)=>{t.locale=r.payload.language,t.messages=r.payload.messages}}}),{updateIntl:i8}=f_.actions,s8=f_.reducer,l8={version:void 0,requiresUserAuthentication:!1,enableStartScreen:void 0,enableStandaloneView:!1,enableTranscriptExportEmail:!1,enableTranscriptExportPdf:!1,enableGeneralConditions:!1,enableSpeechSupport:!1,commands:[],menuItems:[]},d_=jh({name:"settings",initialState:l8,reducers:{setSettings(t,r){t.version&&t.version!==r.payload.version?(console.log("version changed, reloading chat window"),window.location.reload()):(t.version=r.payload.version,t.requiresUserAuthentication=r.payload.requiresUserAuthentication,t.enableStartScreen=r.payload.enableStartScreen,t.enableStandaloneView=r.payload.enableStandaloneView,t.enableTranscriptExportEmail=r.payload.enableTranscriptExportEmail,t.enableTranscriptExportPdf=r.payload.enableTranscriptExportPdf,t.enableGeneralConditions=r.payload.enableGeneralConditions,t.enableSpeechSupport=r.payload.enableSpeechSupport,t.commands=r.payload.commands,t.menuItems=r.payload.menuItems||[])}}}),{setSettings:o8}=d_.actions,u8=d_.reducer,c8=gb({settings:u8,chat:r8,startScreen:EO,connection:t8,intl:s8}),f8="bubble-chat",h_="state-last-saved-at",m_="state",d8=t=>{try{if(!p8())return;const r=f1(t,h_);if(m8(r))return;{const i=f1(t,m_);return i===null?void 0:JSON.parse(i)}}catch(r){console.error(r);return}},h8=(t,r)=>{try{const i=JSON.stringify(r);d1(t,m_,i);const s=new Date().toISOString();d1(t,h_,s)}catch(i){console.error(i)}},m8=t=>{if(t===null)return!1;const r=new Date(t);return r.setHours(r.getHours()+12),new Date>r},p8=()=>typeof localStorage<"u",f1=(t,r)=>{const i=p_(t,r);return localStorage.getItem(i)},d1=(t,r,i)=>{const s=p_(t,r);return localStorage.setItem(s,i)},p_=(t,r)=>`${f8}-${t}-${r}`,er=Object.create(null);er.open="0";er.close="1";er.ping="2";er.pong="3";er.message="4";er.upgrade="5";er.noop="6";const Yo=Object.create(null);Object.keys(er).forEach(t=>{Yo[er[t]]=t});const uh={type:"error",data:"parser error"},g_=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",y_=typeof ArrayBuffer=="function",v_=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,Qh=({type:t,data:r},i,s)=>g_&&r instanceof Blob?i?s(r):h1(r,s):y_&&(r instanceof ArrayBuffer||v_(r))?i?s(r):h1(new Blob([r]),s):s(er[t]+(r||"")),h1=(t,r)=>{const i=new FileReader;return i.onload=function(){const s=i.result.split(",")[1];r("b"+(s||""))},i.readAsDataURL(t)};function m1(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let jd;function g8(t,r){if(g_&&t.data instanceof Blob)return t.data.arrayBuffer().then(m1).then(r);if(y_&&(t.data instanceof ArrayBuffer||v_(t.data)))return r(m1(t.data));Qh(t,!1,i=>{jd||(jd=new TextEncoder),r(jd.encode(i))})}const p1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Qs=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<p1.length;t++)Qs[p1.charCodeAt(t)]=t;const y8=t=>{let r=t.length*.75,i=t.length,s,u=0,c,d,h,m;t[t.length-1]==="="&&(r--,t[t.length-2]==="="&&r--);const p=new ArrayBuffer(r),y=new Uint8Array(p);for(s=0;s<i;s+=4)c=Qs[t.charCodeAt(s)],d=Qs[t.charCodeAt(s+1)],h=Qs[t.charCodeAt(s+2)],m=Qs[t.charCodeAt(s+3)],y[u++]=c<<2|d>>4,y[u++]=(d&15)<<4|h>>2,y[u++]=(h&3)<<6|m&63;return p},v8=typeof ArrayBuffer=="function",Kh=(t,r)=>{if(typeof t!="string")return{type:"message",data:b_(t,r)};const i=t.charAt(0);return i==="b"?{type:"message",data:b8(t.substring(1),r)}:Yo[i]?t.length>1?{type:Yo[i],data:t.substring(1)}:{type:Yo[i]}:uh},b8=(t,r)=>{if(v8){const i=y8(t);return b_(i,r)}else return{base64:!0,data:t}},b_=(t,r)=>{switch(r){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},__="",_8=(t,r)=>{const i=t.length,s=new Array(i);let u=0;t.forEach((c,d)=>{Qh(c,!1,h=>{s[d]=h,++u===i&&r(s.join(__))})})},E8=(t,r)=>{const i=t.split(__),s=[];for(let u=0;u<i.length;u++){const c=Kh(i[u],r);if(s.push(c),c.type==="error")break}return s};function S8(){return new TransformStream({transform(t,r){g8(t,i=>{const s=i.length;let u;if(s<126)u=new Uint8Array(1),new DataView(u.buffer).setUint8(0,s);else if(s<65536){u=new Uint8Array(3);const c=new DataView(u.buffer);c.setUint8(0,126),c.setUint16(1,s)}else{u=new Uint8Array(9);const c=new DataView(u.buffer);c.setUint8(0,127),c.setBigUint64(1,BigInt(s))}t.data&&typeof t.data!="string"&&(u[0]|=128),r.enqueue(u),r.enqueue(i)})}})}let Id;function Go(t){return t.reduce((r,i)=>r+i.length,0)}function ko(t,r){if(t[0].length===r)return t.shift();const i=new Uint8Array(r);let s=0;for(let u=0;u<r;u++)i[u]=t[0][s++],s===t[0].length&&(t.shift(),s=0);return t.length&&s<t[0].length&&(t[0]=t[0].slice(s)),i}function T8(t,r){Id||(Id=new TextDecoder);const i=[];let s=0,u=-1,c=!1;return new TransformStream({transform(d,h){for(i.push(d);;){if(s===0){if(Go(i)<1)break;const m=ko(i,1);c=(m[0]&128)===128,u=m[0]&127,u<126?s=3:u===126?s=1:s=2}else if(s===1){if(Go(i)<2)break;const m=ko(i,2);u=new DataView(m.buffer,m.byteOffset,m.length).getUint16(0),s=3}else if(s===2){if(Go(i)<8)break;const m=ko(i,8),p=new DataView(m.buffer,m.byteOffset,m.length),y=p.getUint32(0);if(y>Math.pow(2,21)-1){h.enqueue(uh);break}u=y*Math.pow(2,32)+p.getUint32(4),s=3}else{if(Go(i)<u)break;const m=ko(i,u);h.enqueue(Kh(c?m:Id.decode(m),r)),s=0}if(u===0||u>t){h.enqueue(uh);break}}}})}const E_=4;function ft(t){if(t)return A8(t)}function A8(t){for(var r in ft.prototype)t[r]=ft.prototype[r];return t}ft.prototype.on=ft.prototype.addEventListener=function(t,r){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(r),this};ft.prototype.once=function(t,r){function i(){this.off(t,i),r.apply(this,arguments)}return i.fn=r,this.on(t,i),this};ft.prototype.off=ft.prototype.removeListener=ft.prototype.removeAllListeners=ft.prototype.removeEventListener=function(t,r){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i=this._callbacks["$"+t];if(!i)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var s,u=0;u<i.length;u++)if(s=i[u],s===r||s.fn===r){i.splice(u,1);break}return i.length===0&&delete this._callbacks["$"+t],this};ft.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var r=new Array(arguments.length-1),i=this._callbacks["$"+t],s=1;s<arguments.length;s++)r[s-1]=arguments[s];if(i){i=i.slice(0);for(var s=0,u=i.length;s<u;++s)i[s].apply(this,r)}return this};ft.prototype.emitReserved=ft.prototype.emit;ft.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};ft.prototype.hasListeners=function(t){return!!this.listeners(t).length};const Eu=typeof Promise=="function"&&typeof Promise.resolve=="function"?r=>Promise.resolve().then(r):(r,i)=>i(r,0),En=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),x8="arraybuffer";function S_(t,...r){return r.reduce((i,s)=>(t.hasOwnProperty(s)&&(i[s]=t[s]),i),{})}const O8=En.setTimeout,R8=En.clearTimeout;function Su(t,r){r.useNativeTimers?(t.setTimeoutFn=O8.bind(En),t.clearTimeoutFn=R8.bind(En)):(t.setTimeoutFn=En.setTimeout.bind(En),t.clearTimeoutFn=En.clearTimeout.bind(En))}const w8=1.33;function C8(t){return typeof t=="string"?N8(t):Math.ceil((t.byteLength||t.size)*w8)}function N8(t){let r=0,i=0;for(let s=0,u=t.length;s<u;s++)r=t.charCodeAt(s),r<128?i+=1:r<2048?i+=2:r<55296||r>=57344?i+=3:(s++,i+=4);return i}function T_(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function M8(t){let r="";for(let i in t)t.hasOwnProperty(i)&&(r.length&&(r+="&"),r+=encodeURIComponent(i)+"="+encodeURIComponent(t[i]));return r}function D8(t){let r={},i=t.split("&");for(let s=0,u=i.length;s<u;s++){let c=i[s].split("=");r[decodeURIComponent(c[0])]=decodeURIComponent(c[1])}return r}class L8 extends Error{constructor(r,i,s){super(r),this.description=i,this.context=s,this.type="TransportError"}}class $h extends ft{constructor(r){super(),this.writable=!1,Su(this,r),this.opts=r,this.query=r.query,this.socket=r.socket,this.supportsBinary=!r.forceBase64}onError(r,i,s){return super.emitReserved("error",new L8(r,i,s)),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=Kh(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=M8(r);return i.length?"?"+i:""}}class B8 extends $h{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 s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||i()})),this.writable||(s++,this.once("drain",function(){--s||i()}))}else i()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(r){const i=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};E8(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,_8(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]=T_()),!this.supportsBinary&&!i.sid&&(i.b64=1),this.createUri(r,i)}}let A_=!1;try{A_=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const U8=A_;function H8(){}class j8 extends B8{constructor(r){if(super(r),typeof location<"u"){const i=location.protocol==="https:";let s=location.port;s||(s=i?"443":"80"),this.xd=typeof location<"u"&&r.hostname!==location.hostname||s!==r.port}}doWrite(r,i){const s=this.request({method:"POST",data:r});s.on("success",i),s.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,s)=>{this.onError("xhr poll error",i,s)}),this.pollXhr=r}}class Wn extends ft{constructor(r,i,s){super(),this.createRequest=r,Su(this,s),this._opts=s,this._method=s.method||"GET",this._uri=i,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var r;const i=S_(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");i.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(i);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let u in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(u)&&s.setRequestHeader(u,this._opts.extraHeaders[u])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(r=this._opts.cookieJar)===null||r===void 0||r.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var u;s.readyState===3&&((u=this._opts.cookieJar)===null||u===void 0||u.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(u){this.setTimeoutFn(()=>{this._onError(u)},0);return}typeof document<"u"&&(this._index=Wn.requestsCount++,Wn.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=H8,r)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Wn.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()}}Wn.requestsCount=0;Wn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",g1);else if(typeof addEventListener=="function"){const t="onpagehide"in En?"pagehide":"unload";addEventListener(t,g1,!1)}}function g1(){for(let t in Wn.requests)Wn.requests.hasOwnProperty(t)&&Wn.requests[t].abort()}const I8=function(){const t=x_({xdomain:!1});return t&&t.responseType!==null}();class z8 extends j8{constructor(r){super(r);const i=r&&r.forceBase64;this.supportsBinary=I8&&!i}request(r={}){return Object.assign(r,{xd:this.xd},this.opts),new Wn(x_,this.uri(),r)}}function x_(t){const r=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!r||U8))return new XMLHttpRequest}catch{}if(!r)try{return new En[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const O_=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class G8 extends $h{get name(){return"websocket"}doOpen(){const r=this.uri(),i=this.opts.protocols,s=O_?{}:S_(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(r,i,s)}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 s=r[i],u=i===r.length-1;Qh(s,this.supportsBinary,c=>{try{this.doWrite(s,c)}catch{}u&&Eu(()=>{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]=T_()),this.supportsBinary||(i.b64=1),this.createUri(r,i)}}const zd=En.WebSocket||En.MozWebSocket;class k8 extends G8{createSocket(r,i,s){return O_?new zd(r,i,s):i?new zd(r,i):new zd(r)}doWrite(r,i){this.ws.send(i)}}class q8 extends $h{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=T8(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=r.readable.pipeThrough(i).getReader(),u=S8();u.readable.pipeTo(r.writable),this._writer=u.writable.getWriter();const c=()=>{s.read().then(({done:h,value:m})=>{h||(this.onPacket(m),c())}).catch(h=>{})};c();const d={type:"open"};this.query.sid&&(d.data=`{"sid":"${this.query.sid}"}`),this._writer.write(d).then(()=>this.onOpen())})})}write(r){this.writable=!1;for(let i=0;i<r.length;i++){const s=r[i],u=i===r.length-1;this._writer.write(s).then(()=>{u&&Eu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var r;(r=this._transport)===null||r===void 0||r.close()}}const F8={websocket:k8,webtransport:q8,polling:z8},V8=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,P8=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ch(t){if(t.length>8e3)throw"URI too long";const r=t,i=t.indexOf("["),s=t.indexOf("]");i!=-1&&s!=-1&&(t=t.substring(0,i)+t.substring(i,s).replace(/:/g,";")+t.substring(s,t.length));let u=V8.exec(t||""),c={},d=14;for(;d--;)c[P8[d]]=u[d]||"";return i!=-1&&s!=-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=Y8(c,c.path),c.queryKey=X8(c,c.query),c}function Y8(t,r){const i=/\/{2,9}/g,s=r.replace(i,"/").split("/");return(r.slice(0,1)=="/"||r.length===0)&&s.splice(0,1),r.slice(-1)=="/"&&s.splice(s.length-1,1),s}function X8(t,r){const i={};return r.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,u,c){u&&(i[u]=c)}),i}const fh=typeof addEventListener=="function"&&typeof removeEventListener=="function",Xo=[];fh&&addEventListener("offline",()=>{Xo.forEach(t=>t())},!1);class la extends ft{constructor(r,i){if(super(),this.binaryType=x8,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 s=ch(r);i.hostname=s.host,i.secure=s.protocol==="https"||s.protocol==="wss",i.port=s.port,s.query&&(i.query=s.query)}else i.host&&(i.hostname=ch(i.host).host);Su(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(s=>{const u=s.prototype.name;this.transports.push(u),this._transportsByName[u]=s}),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=D8(this.opts.query)),fh&&(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"})},Xo.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(r){const i=Object.assign({},this.opts.query);i.EIO=E_,i.transport=r,this.id&&(i.sid=this.id);const s=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](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const r=this.opts.rememberUpgrade&&la.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",la.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 s=0;s<this.writeBuffer.length;s++){const u=this.writeBuffer[s].data;if(u&&(i+=C8(u)),s>0&&i>this._maxPayload)return this.writeBuffer.slice(0,s);i+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const r=Date.now()>this._pingTimeoutTime;return r&&(this._pingTimeoutTime=0,Eu(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),r}write(r,i,s){return this._sendPacket("message",r,i,s),this}send(r,i,s){return this._sendPacket("message",r,i,s),this}_sendPacket(r,i,s,u){if(typeof i=="function"&&(u=i,i=void 0),typeof s=="function"&&(u=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const c={type:r,data:i,options:s};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()},s=()=>{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?s():r()}):this.upgrading?s():r()),this}_onError(r){if(la.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(),fh&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=Xo.indexOf(this._offlineEventListener);s!==-1&&Xo.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",r,i),this.writeBuffer=[],this._prevBufferLen=0}}}la.protocol=E_;class Z8 extends la{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),s=!1;la.priorWebsocketSuccess=!1;const u=()=>{s||(i.send([{type:"ping",data:"probe"}]),i.once("packet",E=>{if(!s)if(E.type==="pong"&&E.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",i),!i)return;la.priorWebsocketSuccess=i.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(y(),this.setTransport(i),i.send([{type:"upgrade"}]),this.emitReserved("upgrade",i),i=null,this.upgrading=!1,this.flush())})}else{const A=new Error("probe error");A.transport=i.name,this.emitReserved("upgradeError",A)}}))};function c(){s||(s=!0,y(),i.close(),i=null)}const d=E=>{const A=new Error("probe error: "+E);A.transport=i.name,c(),this.emitReserved("upgradeError",A)};function h(){d("transport closed")}function m(){d("socket closed")}function p(E){i&&E.name!==i.name&&c()}const y=()=>{i.removeListener("open",u),i.removeListener("error",d),i.removeListener("close",h),this.off("close",m),this.off("upgrading",p)};i.once("open",u),i.once("error",d),i.once("close",h),this.once("close",m),this.once("upgrading",p),this._upgrades.indexOf("webtransport")!==-1&&r!=="webtransport"?this.setTimeoutFn(()=>{s||i.open()},200):i.open()}onHandshake(r){this._upgrades=this._filterUpgrades(r.upgrades),super.onHandshake(r)}_filterUpgrades(r){const i=[];for(let s=0;s<r.length;s++)~this.transports.indexOf(r[s])&&i.push(r[s]);return i}}let Q8=class extends Z8{constructor(r,i={}){const s=typeof r=="object"?r:i;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(u=>F8[u]).filter(u=>!!u)),super(r,s)}};function K8(t,r="",i){let s=t;i=i||typeof location<"u"&&location,t==null&&(t=i.protocol+"//"+i.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=i.protocol+t:t=i.host+t),/^(https?|wss?):\/\//.test(t)||(typeof i<"u"?t=i.protocol+"//"+t:t="https://"+t),s=ch(t)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const c=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+c+":"+s.port+r,s.href=s.protocol+"://"+c+(i&&i.port===s.port?"":":"+s.port),s}const $8=typeof ArrayBuffer=="function",W8=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,R_=Object.prototype.toString,J8=typeof Blob=="function"||typeof Blob<"u"&&R_.call(Blob)==="[object BlobConstructor]",eM=typeof File=="function"||typeof File<"u"&&R_.call(File)==="[object FileConstructor]";function Wh(t){return $8&&(t instanceof ArrayBuffer||W8(t))||J8&&t instanceof Blob||eM&&t instanceof File}function Zo(t,r){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let i=0,s=t.length;i<s;i++)if(Zo(t[i]))return!0;return!1}if(Wh(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return Zo(t.toJSON(),!0);for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&Zo(t[i]))return!0;return!1}function tM(t){const r=[],i=t.data,s=t;return s.data=dh(i,r),s.attachments=r.length,{packet:s,buffers:r}}function dh(t,r){if(!t)return t;if(Wh(t)){const i={_placeholder:!0,num:r.length};return r.push(t),i}else if(Array.isArray(t)){const i=new Array(t.length);for(let s=0;s<t.length;s++)i[s]=dh(t[s],r);return i}else if(typeof t=="object"&&!(t instanceof Date)){const i={};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(i[s]=dh(t[s],r));return i}return t}function nM(t,r){return t.data=hh(t.data,r),delete t.attachments,t}function hh(t,r){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<r.length)return r[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let i=0;i<t.length;i++)t[i]=hh(t[i],r);else if(typeof t=="object")for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(t[i]=hh(t[i],r));return t}const rM=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],aM=5;var Ce;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(Ce||(Ce={}));class iM{constructor(r){this.replacer=r}encode(r){return(r.type===Ce.EVENT||r.type===Ce.ACK)&&Zo(r)?this.encodeAsBinary({type:r.type===Ce.EVENT?Ce.BINARY_EVENT:Ce.BINARY_ACK,nsp:r.nsp,data:r.data,id:r.id}):[this.encodeAsString(r)]}encodeAsString(r){let i=""+r.type;return(r.type===Ce.BINARY_EVENT||r.type===Ce.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=tM(r),s=this.encodeAsString(i.packet),u=i.buffers;return u.unshift(s),u}}function y1(t){return Object.prototype.toString.call(t)==="[object Object]"}class Jh extends ft{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 s=i.type===Ce.BINARY_EVENT;s||i.type===Ce.BINARY_ACK?(i.type=s?Ce.EVENT:Ce.ACK,this.reconstructor=new sM(i),i.attachments===0&&super.emitReserved("decoded",i)):super.emitReserved("decoded",i)}else if(Wh(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 s={type:Number(r.charAt(0))};if(Ce[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===Ce.BINARY_EVENT||s.type===Ce.BINARY_ACK){const c=i+1;for(;r.charAt(++i)!=="-"&&i!=r.length;);const d=r.substring(c,i);if(d!=Number(d)||r.charAt(i)!=="-")throw new Error("Illegal attachments");s.attachments=Number(d)}if(r.charAt(i+1)==="/"){const c=i+1;for(;++i&&!(r.charAt(i)===","||i===r.length););s.nsp=r.substring(c,i)}else s.nsp="/";const u=r.charAt(i+1);if(u!==""&&Number(u)==u){const c=i+1;for(;++i;){const d=r.charAt(i);if(d==null||Number(d)!=d){--i;break}if(i===r.length)break}s.id=Number(r.substring(c,i+1))}if(r.charAt(++i)){const c=this.tryParse(r.substr(i));if(Jh.isPayloadValid(s.type,c))s.data=c;else throw new Error("invalid payload")}return s}tryParse(r){try{return JSON.parse(r,this.reviver)}catch{return!1}}static isPayloadValid(r,i){switch(r){case Ce.CONNECT:return y1(i);case Ce.DISCONNECT:return i===void 0;case Ce.CONNECT_ERROR:return typeof i=="string"||y1(i);case Ce.EVENT:case Ce.BINARY_EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&rM.indexOf(i[0])===-1);case Ce.ACK:case Ce.BINARY_ACK:return Array.isArray(i)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class sM{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=nM(this.reconPack,this.buffers);return this.finishedReconstruction(),i}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const lM=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Jh,Encoder:iM,get PacketType(){return Ce},protocol:aM},Symbol.toStringTag,{value:"Module"}));function jn(t,r,i){return t.on(r,i),function(){t.off(r,i)}}const oM=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class w_ extends ft{constructor(r,i,s){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,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const r=this.io;this.subs=[jn(r,"open",this.onopen.bind(this)),jn(r,"packet",this.onpacket.bind(this)),jn(r,"error",this.onerror.bind(this)),jn(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 s,u,c;if(oM.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 d={type:Ce.EVENT,data:i};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof i[i.length-1]=="function"){const y=this.ids++,E=i.pop();this._registerAckCallback(y,E),d.id=y}const h=(u=(s=this.io.engine)===null||s===void 0?void 0:s.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&&!h||(m?(this.notifyOutgoingListeners(d),this.packet(d)):this.sendBuffer.push(d)),this.flags={},this}_registerAckCallback(r,i){var s;const u=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(u===void 0){this.acks[r]=i;return}const c=this.io.setTimeoutFn(()=>{delete this.acks[r];for(let h=0;h<this.sendBuffer.length;h++)this.sendBuffer[h].id===r&&this.sendBuffer.splice(h,1);i.call(this,new Error("operation has timed out"))},u),d=(...h)=>{this.io.clearTimeoutFn(c),i.apply(this,h)};d.withError=!0,this.acks[r]=d}emitWithAck(r,...i){return new Promise((s,u)=>{const c=(d,h)=>d?u(d):s(h);c.withError=!0,i.push(c),this.emit(r,...i)})}_addToQueue(r){let i;typeof r[r.length-1]=="function"&&(i=r.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:r,flags:Object.assign({fromQueue:!0},this.flags)};r.push((u,...c)=>s!==this._queue[0]?void 0:(u!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),i&&i(u)):(this._queue.shift(),i&&i(null,...c)),s.pending=!1,this._drainQueue())),this._queue.push(s),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:Ce.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(s=>String(s.id)===r)){const s=this.acks[r];delete this.acks[r],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(r){if(r.nsp===this.nsp)switch(r.type){case Ce.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 Ce.EVENT:case Ce.BINARY_EVENT:this.onevent(r);break;case Ce.ACK:case Ce.BINARY_ACK:this.onack(r);break;case Ce.DISCONNECT:this.ondisconnect();break;case Ce.CONNECT_ERROR:this.destroy();const s=new Error(r.data.message);s.data=r.data.data,this.emitReserved("connect_error",s);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 s of i)s.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 s=!1;return function(...u){s||(s=!0,i.packet({type:Ce.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:Ce.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 s=0;s<i.length;s++)if(r===i[s])return i.splice(s,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 s=0;s<i.length;s++)if(r===i[s])return i.splice(s,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 s of i)s.apply(this,r.data)}}}function Mi(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}Mi.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var r=Math.random(),i=Math.floor(r*this.jitter*t);t=(Math.floor(r*10)&1)==0?t-i:t+i}return Math.min(t,this.max)|0};Mi.prototype.reset=function(){this.attempts=0};Mi.prototype.setMin=function(t){this.ms=t};Mi.prototype.setMax=function(t){this.max=t};Mi.prototype.setJitter=function(t){this.jitter=t};class mh extends ft{constructor(r,i){var s;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,Su(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((s=i.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new Mi({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||lM;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 Q8(this.uri,this.opts);const i=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const u=jn(i,"open",function(){s.onopen(),r&&r()}),c=h=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",h),r?r(h):this.maybeReconnectOnOpen()},d=jn(i,"error",c);if(this._timeout!==!1){const h=this._timeout,m=this.setTimeoutFn(()=>{u(),c(new Error("timeout")),i.close()},h);this.opts.autoUnref&&m.unref(),this.subs.push(()=>{this.clearTimeoutFn(m)})}return this.subs.push(u),this.subs.push(d),this}connect(r){return this.open(r)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const r=this.engine;this.subs.push(jn(r,"ping",this.onping.bind(this)),jn(r,"data",this.ondata.bind(this)),jn(r,"error",this.onerror.bind(this)),jn(r,"close",this.onclose.bind(this)),jn(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){Eu(()=>{this.emitReserved("packet",r)},this.setTimeoutFn)}onerror(r){this.emitReserved("error",r)}socket(r,i){let s=this.nsps[r];return s?this._autoConnect&&!s.active&&s.connect():(s=new w_(this,r,i),this.nsps[r]=s),s}_destroy(r){const i=Object.keys(this.nsps);for(const s of i)if(this.nsps[s].active)return;this._close()}_packet(r){const i=this.encoder.encode(r);for(let s=0;s<i.length;s++)this.engine.write(i[s],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 s;this.cleanup(),(s=this.engine)===null||s===void 0||s.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 s=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&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const r=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",r)}}const Ys={};function Qo(t,r){typeof t=="object"&&(r=t,t=void 0),r=r||{};const i=K8(t,r.path||"/socket.io"),s=i.source,u=i.id,c=i.path,d=Ys[u]&&c in Ys[u].nsps,h=r.forceNew||r["force new connection"]||r.multiplex===!1||d;let m;return h?m=new mh(s,r):(Ys[u]||(Ys[u]=new mh(s,r)),m=Ys[u]),i.query&&!r.query&&(r.query=i.queryKey),m.socket(i.path,r)}Object.assign(Qo,{Manager:mh,Socket:w_,io:Qo,connect:Qo});const uM=[Te.ActionTypes.MESSAGE_TO_GUEST,Te.ActionTypes.EVENT_TO_GUEST,Te.ActionTypes.TYPING_ON,Te.ActionTypes.TYPING_OFF,Te.ActionTypes.RESTART_CHAT_REQUEST,...xO,..._x,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],cM=({dispatch:t,getState:r})=>i=>{let s=null;return u=>{const c=i(u);if(u.type===zh){s?.disconnect(),t(wO());const d=`/chat?${uu.stringify(u.querystrings)}`;s=Qo(`/${u.clientName}${d}`),s.on("action",t),s.on("connect",()=>t(CO())),s.on("disconnect",()=>t(NO())),s.on("reconnect",()=>t(MO())),s.on("set-translations",(h,m)=>{t(i8({language:h,messages:JN(h,m)}))}),s.on("set-settings",h=>{t(o8(h))}),s.on("enable-conversation-rating",h=>t(xx(h))),s.on("speech-transcription",h=>t(Sx(h))),s.on("restore-client-state",h=>{t(RO(h.sessionId)),t(Rx(h.messages))}),s.on("expand-window",({devices:h,initial:m=!1})=>{t({type:ub,devices:h,initial:m})}),s.on("restart-chat",()=>{t(gu(u.clientName,u.querystrings))}),s.on("login-success",h=>{t(yO({loginToken:h.loginToken}))})}else if(u.type==="start-screen/requestLogin")s?.emit("login-requested",u.payload);else if(u.type===mu)s?.emit("start-chat",u.payload);else if(u.type===pu)s?.emit("terminate-session",u.payload);else if(u.type===bx)s?.emit("get-started",JSON.stringify(u));else if(u.type===wh)s?.emit("audio-message",u.buffer);else if(u.type===Te.ActionTypes.CONVERSATION_RATING_FROM_GUEST)s?.emit("conversation-rating",u.payload);else if(u.type===fb){const{connection:{sessionId:d}}=r();window.location.href=`/transcript-pdf/${d}`}else uM.indexOf(u.type)===-1&&u.meta===void 0&&s&&s.emit("action",JSON.stringify(u));return c}},C_=Kb(),fM={...d8(C_),intl:c_},ph=rO({middleware:t=>t().concat(cM),reducer:c8,preloadedState:fM});ph.subscribe(PN(()=>{const t=ph.getState();h8(C_,{connection:t.connection,startScreen:t.startScreen})},1e3));const dM=document.getElementById("root"),hM=P2.createRoot(dM);hM.render(v.jsx(VS,{store:ph,children:v.jsx(MN,{})}));
124
+ //# sourceMappingURL=index-Bjs8GtaP.js.map