@botfabrik/engine-webclient 4.99.1 → 4.99.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
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
|
|
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 bo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function uu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Bf={exports:{}},Ls={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var Ug;function I2(){if(Ug)return Ls;Ug=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 jg;function z2(){return jg||(jg=1,Bf.exports=I2()),Bf.exports}var y=z2(),Uf={exports:{}},Bs={},jf={exports:{}},Hf={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* scheduler.production.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var Hg;function G2(){return Hg||(Hg=1,(function(t){function r(G,K){var ee=G.length;G.push(K);e:for(;0<ee;){var Ae=ee-1>>>1,O=G[Ae];if(0<u(O,K))G[Ae]=K,G[ee]=O,ee=Ae;else break e}}function i(G){return G.length===0?null:G[0]}function s(G){if(G.length===0)return null;var K=G[0],ee=G.pop();if(ee!==K){G[0]=ee;e:for(var Ae=0,O=G.length,k=O>>>1;Ae<k;){var $=2*(Ae+1)-1,Y=G[$],te=$+1,re=G[te];if(0>u(Y,ee))te<O&&0>u(re,Y)?(G[Ae]=re,G[te]=ee,Ae=te):(G[Ae]=Y,G[$]=ee,Ae=$);else if(te<O&&0>u(re,ee))G[Ae]=re,G[te]=ee,Ae=te;else break e}}return K}function u(G,K){var ee=G.sortIndex-K.sortIndex;return ee!==0?ee:G.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=[],b=1,_=null,x=3,U=!1,R=!1,q=!1,z=!1,E=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;function H(G){for(var K=i(p);K!==null;){if(K.callback===null)s(p);else if(K.startTime<=G)s(p),K.sortIndex=K.expirationTime,r(m,K);else break;K=i(p)}}function A(G){if(q=!1,H(G),!R)if(i(m)!==null)R=!0,Z||(Z=!0,me());else{var K=i(p);K!==null&&ve(A,K.startTime-G)}}var Z=!1,W=-1,ae=5,ye=-1;function Ee(){return z?!0:!(t.unstable_now()-ye<ae)}function se(){if(z=!1,Z){var G=t.unstable_now();ye=G;var K=!0;try{e:{R=!1,q&&(q=!1,w(W),W=-1),U=!0;var ee=x;try{t:{for(H(G),_=i(m);_!==null&&!(_.expirationTime>G&&Ee());){var Ae=_.callback;if(typeof Ae=="function"){_.callback=null,x=_.priorityLevel;var O=Ae(_.expirationTime<=G);if(G=t.unstable_now(),typeof O=="function"){_.callback=O,H(G),K=!0;break t}_===i(m)&&s(m),H(G)}else s(m);_=i(m)}if(_!==null)K=!0;else{var k=i(p);k!==null&&ve(A,k.startTime-G),K=!1}}break e}finally{_=null,x=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(){E(se,0)};function ve(G,K){W=E(function(){G(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(G){G.callback=null},t.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ae=0<G?Math.floor(1e3/G):5},t.unstable_getCurrentPriorityLevel=function(){return x},t.unstable_next=function(G){switch(x){case 1:case 2:case 3:var K=3;break;default:K=x}var ee=x;x=K;try{return G()}finally{x=ee}},t.unstable_requestPaint=function(){z=!0},t.unstable_runWithPriority=function(G,K){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var ee=x;x=G;try{return K()}finally{x=ee}},t.unstable_scheduleCallback=function(G,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,G){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,G={id:b++,callback:K,priorityLevel:G,startTime:ee,expirationTime:O,sortIndex:-1},ee>Ae?(G.sortIndex=ee,r(p,G),i(m)===null&&G===i(p)&&(q?(w(W),W=-1):q=!0,ve(A,ee-Ae))):(G.sortIndex=O,r(m,G),R||U||(R=!0,Z||(Z=!0,me()))),G},t.unstable_shouldYield=Ee,t.unstable_wrapCallback=function(G){var K=x;return function(){var ee=x;x=K;try{return G.apply(this,arguments)}finally{x=ee}}}})(Hf)),Hf}var Ig;function k2(){return Ig||(Ig=1,jf.exports=G2()),jf.exports}var If={exports:{}},be={};/**
|
|
18
18
|
* @license React
|
|
19
19
|
* react.production.js
|
|
20
20
|
*
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var
|
|
25
|
+
*/var zg;function q2(){if(zg)return be;zg=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"),b=Symbol.for("react.lazy"),_=Symbol.iterator;function x(O){return O===null||typeof O!="object"?null:(O=_&&O[_]||O["@@iterator"],typeof O=="function"?O:null)}var U={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,q={};function z(O,k,$){this.props=O,this.context=k,this.refs=q,this.updater=$||U}z.prototype.isReactComponent={},z.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")},z.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function E(){}E.prototype=z.prototype;function w(O,k,$){this.props=O,this.context=k,this.refs=q,this.updater=$||U}var S=w.prototype=new E;S.constructor=w,R(S,z.prototype),S.isPureReactComponent=!0;var H=Array.isArray,A={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 ye(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 ve(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 b:return ue=O._init,ve(ue(O._payload),k,$,Y,te)}}if(ue)return te=te(O),ue=Y===""?"."+me(O,0):Y,H(te)?($="",ue!=null&&($=ue.replace(se,"$&/")+"/"),ve(te,k,$,"",function(St){return St})):te!=null&&(ye(te)&&(te=ae(te,$+(te.key==null||O&&O.key===te.key?"":(""+te.key).replace(se,"$&/")+"/")+ue)),k.push(te)),1;ue=0;var We=Y===""?".":Y+":";if(H(O))for(var Ue=0;Ue<O.length;Ue++)Y=O[Ue],re=We+me(Y,Ue),ue+=ve(Y,k,$,re,te);else if(Ue=x(O),typeof Ue=="function")for(O=Ue.call(O),Ue=0;!(Y=O.next()).done;)Y=Y.value,re=We+me(Y,Ue++),ue+=ve(Y,k,$,re,te);else if(re==="object"){if(typeof O.then=="function")return ve(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 G(O,k,$){if(O==null)return O;var Y=[],te=0;return ve(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 be.Children={map:G,forEach:function(O,k,$){G(O,function(){k.apply(this,arguments)},$)},count:function(O){var k=0;return G(O,function(){k++}),k},toArray:function(O){return G(O,function(k){return k})||[]},only:function(O){if(!ye(O))throw Error("React.Children.only expected to receive a single React element child.");return O}},be.Component=z,be.Fragment=i,be.Profiler=u,be.PureComponent=w,be.StrictMode=s,be.Suspense=m,be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=A,be.__COMPILER_RUNTIME={__proto__:null,c:function(O){return A.H.useMemoCache(O)}},be.cache=function(O){return function(){return O.apply(null,arguments)}},be.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 We=Array(ue),Ue=0;Ue<ue;Ue++)We[Ue]=arguments[Ue+2];Y.children=We}return W(O.type,te,void 0,void 0,re,Y)},be.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},be.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 We=Array(ue),Ue=0;Ue<ue;Ue++)We[Ue]=arguments[Ue+2];te.children=We}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)},be.createRef=function(){return{current:null}},be.forwardRef=function(O){return{$$typeof:h,render:O}},be.isValidElement=ye,be.lazy=function(O){return{$$typeof:b,_payload:{_status:-1,_result:O},_init:K}},be.memo=function(O,k){return{$$typeof:p,type:O,compare:k===void 0?null:k}},be.startTransition=function(O){var k=A.T,$={};A.T=$;try{var Y=O(),te=A.S;te!==null&&te($,Y),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"&&Y.then(Ae,ee)}catch(re){ee(re)}finally{A.T=k}},be.unstable_useCacheRefresh=function(){return A.H.useCacheRefresh()},be.use=function(O){return A.H.use(O)},be.useActionState=function(O,k,$){return A.H.useActionState(O,k,$)},be.useCallback=function(O,k){return A.H.useCallback(O,k)},be.useContext=function(O){return A.H.useContext(O)},be.useDebugValue=function(){},be.useDeferredValue=function(O,k){return A.H.useDeferredValue(O,k)},be.useEffect=function(O,k,$){var Y=A.H;if(typeof $=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Y.useEffect(O,k)},be.useId=function(){return A.H.useId()},be.useImperativeHandle=function(O,k,$){return A.H.useImperativeHandle(O,k,$)},be.useInsertionEffect=function(O,k){return A.H.useInsertionEffect(O,k)},be.useLayoutEffect=function(O,k){return A.H.useLayoutEffect(O,k)},be.useMemo=function(O,k){return A.H.useMemo(O,k)},be.useOptimistic=function(O,k){return A.H.useOptimistic(O,k)},be.useReducer=function(O,k,$){return A.H.useReducer(O,k,$)},be.useRef=function(O){return A.H.useRef(O)},be.useState=function(O){return A.H.useState(O)},be.useSyncExternalStore=function(O,k,$){return A.H.useSyncExternalStore(O,k,$)},be.useTransition=function(){return A.H.useTransition()},be.version="19.1.1",be}var Gg;function cu(){return Gg||(Gg=1,If.exports=q2()),If.exports}var zf={exports:{}},Ut={};/**
|
|
26
26
|
* @license React
|
|
27
27
|
* react-dom.production.js
|
|
28
28
|
*
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
*
|
|
31
31
|
* This source code is licensed under the MIT license found in the
|
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var
|
|
33
|
+
*/var kg;function F2(){if(kg)return Ut;kg=1;var t=cu();function r(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)p+="&args[]="+encodeURIComponent(arguments[b])}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,b){var _=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:_==null?null:""+_,children:m,containerInfo:p,implementation:b}}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 Ut.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Ut.createPortal=function(m,p){var b=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,b)},Ut.flushSync=function(m){var p=d.T,b=s.p;try{if(d.T=null,s.p=2,m)return m()}finally{d.T=p,s.p=b,s.d.f()}},Ut.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))},Ut.prefetchDNS=function(m){typeof m=="string"&&s.d.D(m)},Ut.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var b=p.as,_=h(b,p.crossOrigin),x=typeof p.integrity=="string"?p.integrity:void 0,U=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;b==="style"?s.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:_,integrity:x,fetchPriority:U}):b==="script"&&s.d.X(m,{crossOrigin:_,integrity:x,fetchPriority:U,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Ut.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var b=h(p.as,p.crossOrigin);s.d.M(m,{crossOrigin:b,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)},Ut.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,_=h(b,p.crossOrigin);s.d.L(m,b,{crossOrigin:_,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})}},Ut.preloadModule=function(m,p){if(typeof m=="string")if(p){var b=h(p.as,p.crossOrigin);s.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(m)},Ut.requestFormReset=function(m){s.d.r(m)},Ut.unstable_batchedUpdates=function(m,p){return m(p)},Ut.useFormState=function(m,p,b){return d.H.useFormState(m,p,b)},Ut.useFormStatus=function(){return d.H.useHostTransitionStatus()},Ut.version="19.1.1",Ut}var qg;function V2(){if(qg)return zf.exports;qg=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(),zf.exports=F2(),zf.exports}/**
|
|
34
34
|
* @license React
|
|
35
35
|
* react-dom-client.production.js
|
|
36
36
|
*
|
|
@@ -38,15 +38,15 @@
|
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the MIT license found in the
|
|
40
40
|
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var qg;function P2(){if(qg)return Bs;qg=1;var t=k2(),r=uu(),i=V2();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,v=o.child;v;){if(v===a){g=!0,a=o,l=f;break}if(v===l){g=!0,l=o,a=f;break}v=v.sibling}if(!g){for(v=f.child;v;){if(v===a){g=!0,a=f,l=o;break}if(v===l){g=!0,l=f,a=o;break}v=v.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 b=Object.assign,E=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),w=Symbol.for("react.consumer"),S=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),ae=Symbol.for("react.lazy"),ye=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 z:return"Profiler";case F:return"StrictMode";case A:return"Suspense";case Z:return"SuspenseList";case ye:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case U:return"Portal";case S:return(e.displayName||"Context")+".Provider";case w:return(e._context.displayName||"Context")+".Consumer";case H: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 ve=Array.isArray,G=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),We=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)?og(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=og(n),e=ug(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}$(te),Y(te,e)}function St(){$(te),$(re),$(ue)}function Gn(e){e.memoizedState!==null&&Y(We,e);var n=te.current,a=ug(n,e.type);n!==a&&(Y(re,e),Y(te,a))}function Mr(e){re.current===e&&($(te),$(re)),We.current===e&&($(We),ws._currentValue=ee)}var Qe=Object.prototype.hasOwnProperty,qt=t.unstable_scheduleCallback,On=t.unstable_cancelCallback,Di=t.unstable_shouldYield,Li=t.unstable_requestPaint,Tt=t.unstable_now,qa=t.unstable_getCurrentPriorityLevel,ua=t.unstable_ImmediatePriority,Bi=t.unstable_UserBlockingPriority,ca=t.unstable_NormalPriority,Ou=t.unstable_LowPriority,Fa=t.unstable_IdlePriority,fa=t.log,Dr=t.unstable_setDisableYieldValue,dn=null,Nt=null;function Rn(e){if(typeof fa=="function"&&Dr(e),Nt&&typeof Nt.setStrictMode=="function")try{Nt.setStrictMode(dn,e)}catch{}}var Mt=Math.clz32?Math.clz32:Va,Ui=Math.log,al=Math.LN2;function Va(e){return e>>>=0,e===0?32:31-(Ui(e)/al|0)|0}var nr=256,Ft=4194304;function Vt(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 Lr(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 v=l&134217727;return v!==0?(l=v&~f,l!==0?o=Vt(l):(g&=v,g!==0?o=Vt(g):a||(a=v&~e,a!==0&&(o=Vt(a))))):(v=l&~f,v!==0?o=Vt(v):g!==0?o=Vt(g):a||(a=l&~e,a!==0&&(o=Vt(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 rr(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function Ru(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=nr;return nr<<=1,(nr&4194048)===0&&(nr=256),e}function ha(){var e=Ft;return Ft<<=1,(Ft&62914560)===0&&(Ft=4194304),e}function ji(e){for(var n=[],a=0;31>a;a++)n.push(e);return n}function wn(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function wu(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 v=e.entanglements,T=e.expirationTimes,L=e.hiddenUpdates;for(a=g&~a;0<a;){var q=31-Mt(a),P=1<<q;v[q]=0,T[q]=-1;var j=L[q];if(j!==null)for(L[q]=null,q=0;q<j.length;q++){var I=j[q];I!==null&&(I.lane&=-536870913)}a&=~P}l!==0&&il(e,l,0),f!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=f&~(g&~n))}function il(e,n,a){e.pendingLanes|=n,e.suspendedLanes&=~n;var l=31-Mt(n);e.entangledLanes|=n,e.entanglements[l]=e.entanglements[l]|1073741824|a&4194090}function rt(e,n){var a=e.entangledLanes|=n;for(e=e.entanglements;a;){var l=31-Mt(a),o=1<<l;o&n|e[l]&n&&(e[l]|=n),a&=~o}}function kn(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 Hi(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:wg(e.type))}function zi(e,n){var a=K.p;try{return K.p=e,n()}finally{K.p=a}}var Cn=Math.random().toString(36).slice(2),ht="__reactFiber$"+Cn,Dt="__reactProps$"+Cn,At="__reactContainer$"+Cn,qn="__reactEvents$"+Cn,sl="__reactListeners$"+Cn,ll="__reactHandles$"+Cn,Pa="__reactResources$"+Cn,Br="__reactMarker$"+Cn;function Kt(e){delete e[ht],delete e[Dt],delete e[qn],delete e[sl],delete e[ll]}function ar(e){var n=e[ht];if(n)return n;for(var a=e.parentNode;a;){if(n=a[At]||a[ht]){if(a=n.alternate,n.child!==null||a!==null&&a.child!==null)for(e=hg(e);e!==null;){if(a=e[ht])return a;e=hg(e)}return n}e=a,a=e.parentNode}return null}function ir(e){if(e=e[ht]||e[At]){var n=e.tag;if(n===5||n===6||n===13||n===26||n===27||n===3)return e}return null}function Ur(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(s(33))}function sr(e){var n=e[Pa];return n||(n=e[Pa]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function lt(e){e[Br]=!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]*$"),mt={},Je={};function Lt(e){return Qe.call(Je,e)?!0:Qe.call(mt,e)?!1:Fe.test(e)?Je[e]=!0:(mt[e]=!0,!1)}function Pt(e,n,a){if(Lt(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 Fn(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 $t(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 ot,Gi;function lr(e){if(ot===void 0)try{throw Error()}catch(a){var n=a.stack.trim().match(/\n( *(at )?)/);ot=n&&n[1]||"",Gi=-1<a.stack.indexOf(`
|
|
41
|
+
*/var Fg;function P2(){if(Fg)return Bs;Fg=1;var t=k2(),r=cu(),i=V2();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,v=o.child;v;){if(v===a){g=!0,a=o,l=f;break}if(v===l){g=!0,l=o,a=f;break}v=v.sibling}if(!g){for(v=f.child;v;){if(v===a){g=!0,a=f,l=o;break}if(v===l){g=!0,l=f,a=o;break}v=v.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 b=Object.assign,_=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),w=Symbol.for("react.consumer"),S=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),ae=Symbol.for("react.lazy"),ye=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 z:return"Profiler";case q:return"StrictMode";case A:return"Suspense";case Z:return"SuspenseList";case ye:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case U:return"Portal";case S:return(e.displayName||"Context")+".Provider";case w:return(e._context.displayName||"Context")+".Consumer";case H: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 ve=Array.isArray,G=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),We=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)?ug(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=ug(n),e=cg(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}$(te),Y(te,e)}function St(){$(te),$(re),$(ue)}function Gn(e){e.memoizedState!==null&&Y(We,e);var n=te.current,a=cg(n,e.type);n!==a&&(Y(re,e),Y(te,a))}function Mr(e){re.current===e&&($(te),$(re)),We.current===e&&($(We),ws._currentValue=ee)}var Qe=Object.prototype.hasOwnProperty,qt=t.unstable_scheduleCallback,On=t.unstable_cancelCallback,Di=t.unstable_shouldYield,Li=t.unstable_requestPaint,Tt=t.unstable_now,qa=t.unstable_getCurrentPriorityLevel,ua=t.unstable_ImmediatePriority,Bi=t.unstable_UserBlockingPriority,ca=t.unstable_NormalPriority,xu=t.unstable_LowPriority,Fa=t.unstable_IdlePriority,fa=t.log,Dr=t.unstable_setDisableYieldValue,dn=null,Nt=null;function Rn(e){if(typeof fa=="function"&&Dr(e),Nt&&typeof Nt.setStrictMode=="function")try{Nt.setStrictMode(dn,e)}catch{}}var Mt=Math.clz32?Math.clz32:Va,Ui=Math.log,il=Math.LN2;function Va(e){return e>>>=0,e===0?32:31-(Ui(e)/il|0)|0}var nr=256,Ft=4194304;function Vt(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 Lr(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 v=l&134217727;return v!==0?(l=v&~f,l!==0?o=Vt(l):(g&=v,g!==0?o=Vt(g):a||(a=v&~e,a!==0&&(o=Vt(a))))):(v=l&~f,v!==0?o=Vt(v):g!==0?o=Vt(g):a||(a=l&~e,a!==0&&(o=Vt(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 rr(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function Ou(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=nr;return nr<<=1,(nr&4194048)===0&&(nr=256),e}function ha(){var e=Ft;return Ft<<=1,(Ft&62914560)===0&&(Ft=4194304),e}function ji(e){for(var n=[],a=0;31>a;a++)n.push(e);return n}function wn(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ru(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 v=e.entanglements,T=e.expirationTimes,L=e.hiddenUpdates;for(a=g&~a;0<a;){var F=31-Mt(a),P=1<<F;v[F]=0,T[F]=-1;var j=L[F];if(j!==null)for(L[F]=null,F=0;F<j.length;F++){var I=j[F];I!==null&&(I.lane&=-536870913)}a&=~P}l!==0&&sl(e,l,0),f!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=f&~(g&~n))}function sl(e,n,a){e.pendingLanes|=n,e.suspendedLanes&=~n;var l=31-Mt(n);e.entangledLanes|=n,e.entanglements[l]=e.entanglements[l]|1073741824|a&4194090}function rt(e,n){var a=e.entangledLanes|=n;for(e=e.entanglements;a;){var l=31-Mt(a),o=1<<l;o&n|e[l]&n&&(e[l]|=n),a&=~o}}function kn(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 Hi(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:Cg(e.type))}function zi(e,n){var a=K.p;try{return K.p=e,n()}finally{K.p=a}}var Cn=Math.random().toString(36).slice(2),ht="__reactFiber$"+Cn,Dt="__reactProps$"+Cn,At="__reactContainer$"+Cn,qn="__reactEvents$"+Cn,ll="__reactListeners$"+Cn,ol="__reactHandles$"+Cn,Pa="__reactResources$"+Cn,Br="__reactMarker$"+Cn;function Kt(e){delete e[ht],delete e[Dt],delete e[qn],delete e[ll],delete e[ol]}function ar(e){var n=e[ht];if(n)return n;for(var a=e.parentNode;a;){if(n=a[At]||a[ht]){if(a=n.alternate,n.child!==null||a!==null&&a.child!==null)for(e=mg(e);e!==null;){if(a=e[ht])return a;e=mg(e)}return n}e=a,a=e.parentNode}return null}function ir(e){if(e=e[ht]||e[At]){var n=e.tag;if(n===5||n===6||n===13||n===26||n===27||n===3)return e}return null}function Ur(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(s(33))}function sr(e){var n=e[Pa];return n||(n=e[Pa]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function lt(e){e[Br]=!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]*$"),mt={},Je={};function Lt(e){return Qe.call(Je,e)?!0:Qe.call(mt,e)?!1:Fe.test(e)?Je[e]=!0:(mt[e]=!0,!1)}function Pt(e,n,a){if(Lt(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 Fn(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 $t(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 ot,Gi;function lr(e){if(ot===void 0)try{throw Error()}catch(a){var n=a.stack.trim().match(/\n( *(at )?)/);ot=n&&n[1]||"",Gi=-1<a.stack.indexOf(`
|
|
42
42
|
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+ot+e+Gi}var
|
|
43
|
+
`+ot+e+Gi}var wu=!1;function Cu(e,n){if(!e||wu)return"";wu=!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(I){var j=I}Reflect.construct(e,[],P)}else{try{P.call()}catch(I){j=I}e.call(P.prototype)}}else{try{throw Error()}catch(I){j=I}(P=e())&&typeof P.catch=="function"&&P.catch(function(){})}}catch(I){if(I&&j&&typeof I.stack=="string")return[I.stack,j.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],v=f[1];if(g&&v){var T=g.split(`
|
|
44
44
|
`),L=v.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
|
|
46
|
-
`+T[l].replace(" at new "," at ");return e.displayName&&
|
|
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 F=`
|
|
46
|
+
`+T[l].replace(" at new "," at ");return e.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",e.displayName)),F}while(1<=l&&0<=o);break}}}finally{wu=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?lr(a):""}function D_(e){switch(e.tag){case 26:case 27:case 5:return lr(e.type);case 16:return lr("Lazy");case 13:return lr("Suspense");case 19:return lr("SuspenseList");case 0:case 15:return Cu(e.type,!1);case 11:return Cu(e.type.render,!1);case 1:return Cu(e.type,!0);case 31:return lr("Activity");default:return""}}function rm(e){try{var n="";do n+=D_(e),e=e.return;while(e);return n}catch(a){return`
|
|
47
47
|
Error generating stack: `+a.message+`
|
|
48
|
-
`+a.stack}}function hn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function rm(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function L_(e){var n=rm(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 ol(e){e._valueTracker||(e._valueTracker=L_(e))}function am(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var a=n.getValue(),l="";return e&&(l=rm(e)?e.checked?"true":"false":e.value),e=l,e!==a?(n.setValue(e),!0):!1}function ul(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 B_=/[\n"\\]/g;function mn(e){return e.replace(B_,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Mu(e,n,a,l,o,f,g,v){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=""+hn(n)):e.value!==""+hn(n)&&(e.value=""+hn(n)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),n!=null?Du(e,g,hn(n)):a!=null?Du(e,g,hn(a)):l!=null&&e.removeAttribute("value"),o==null&&f!=null&&(e.defaultChecked=!!f),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+hn(v):e.removeAttribute("name")}function im(e,n,a,l,o,f,g,v){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?""+hn(a):"",n=n!=null?""+hn(n):a,v||n===e.value||(e.value=n),e.defaultValue=n}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=v?e.checked:!!l,e.defaultChecked=!!l,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g)}function Du(e,n,a){n==="number"&&ul(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=""+hn(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 sm(e,n,a){if(n!=null&&(n=""+hn(n),n!==e.value&&(e.value=n),a==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=a!=null?""+hn(a):""}function lm(e,n,a,l){if(n==null){if(l!=null){if(a!=null)throw Error(s(92));if(ve(l)){if(1<l.length)throw Error(s(93));l=l[0]}a=l}a==null&&(a=""),n=a}a=hn(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 U_=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 om(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||U_.has(n)?n==="float"?e.cssFloat=a:e[n]=(""+a).trim():e[n]=a+"px"}function um(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&&om(e,o,l)}else for(var f in n)n.hasOwnProperty(f)&&om(e,f,n[f])}function Lu(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 j_=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"]]),H_=/^[\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 cl(e){return H_.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Bu=null;function Uu(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 cm(e){var n=ir(e);if(n&&(e=n.stateNode)){var a=e[Dt]||null;e:switch(e=n.stateNode,n.type){case"input":if(Mu(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="'+mn(""+n)+'"][type="radio"]'),n=0;n<a.length;n++){var l=a[n];if(l!==e&&l.form===e.form){var o=l[Dt]||null;if(!o)throw Error(s(90));Mu(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&&am(l)}break e;case"textarea":sm(e,a.value,a.defaultValue);break e;case"select":n=a.value,n!=null&&Ya(e,!!a.multiple,n,!1)}}}var ju=!1;function fm(e,n,a){if(ju)return e(n,a);ju=!0;try{var l=e(n);return l}finally{if(ju=!1,(Za!==null||Qa!==null)&&(Ql(),Za&&(n=Za,e=Qa,Qa=Za=null,cm(n),e)))for(n=0;n<e.length;n++)cm(e[n])}}function ki(e,n){var a=e.stateNode;if(a===null)return null;var l=a[Dt]||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 or=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hu=!1;if(or)try{var qi={};Object.defineProperty(qi,"passive",{get:function(){Hu=!0}}),window.addEventListener("test",qi,qi),window.removeEventListener("test",qi,qi)}catch{Hu=!1}var jr=null,Iu=null,fl=null;function dm(){if(fl)return fl;var e,n=Iu,a=n.length,l,o="value"in jr?jr.value:jr.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 fl=o.slice(e,1<l?1-l:void 0)}function dl(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 hl(){return!0}function hm(){return!1}function Yt(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 v in e)e.hasOwnProperty(v)&&(a=e[v],this[v]=a?a(f):f[v]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?hl:hm,this.isPropagationStopped=hm,this}return b(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=hl)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=hl)},persist:function(){},isPersistent:hl}),n}var ma={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ml=Yt(ma),Fi=b({},ma,{view:0,detail:0}),I_=Yt(Fi),zu,Gu,Vi,pl=b({},Fi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qu,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"?(zu=e.screenX-Vi.screenX,Gu=e.screenY-Vi.screenY):Gu=zu=0,Vi=e),zu)},movementY:function(e){return"movementY"in e?e.movementY:Gu}}),mm=Yt(pl),z_=b({},pl,{dataTransfer:0}),G_=Yt(z_),k_=b({},Fi,{relatedTarget:0}),ku=Yt(k_),q_=b({},ma,{animationName:0,elapsedTime:0,pseudoElement:0}),F_=Yt(q_),V_=b({},ma,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),P_=Yt(V_),Y_=b({},ma,{data:0}),pm=Yt(Y_),X_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Z_={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"},Q_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function K_(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=Q_[e])?!!n[e]:!1}function qu(){return K_}var $_=b({},Fi,{key:function(e){if(e.key){var n=X_[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=dl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Z_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qu,charCode:function(e){return e.type==="keypress"?dl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?dl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),W_=Yt($_),J_=b({},pl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gm=Yt(J_),eE=b({},Fi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qu}),tE=Yt(eE),nE=b({},ma,{propertyName:0,elapsedTime:0,pseudoElement:0}),rE=Yt(nE),aE=b({},pl,{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}),iE=Yt(aE),sE=b({},ma,{newState:0,oldState:0}),lE=Yt(sE),oE=[9,13,27,32],Fu=or&&"CompositionEvent"in window,Pi=null;or&&"documentMode"in document&&(Pi=document.documentMode);var uE=or&&"TextEvent"in window&&!Pi,ym=or&&(!Fu||Pi&&8<Pi&&11>=Pi),bm=" ",vm=!1;function _m(e,n){switch(e){case"keyup":return oE.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Em(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ka=!1;function cE(e,n){switch(e){case"compositionend":return Em(n);case"keypress":return n.which!==32?null:(vm=!0,bm);case"textInput":return e=n.data,e===bm&&vm?null:e;default:return null}}function fE(e,n){if(Ka)return e==="compositionend"||!Fu&&_m(e,n)?(e=dm(),fl=Iu=jr=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 ym&&n.locale!=="ko"?null:n.data;default:return null}}var dE={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 Sm(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!dE[e.type]:n==="textarea"}function Tm(e,n,a,l){Za?Qa?Qa.push(l):Qa=[l]:Za=l,n=to(n,"onChange"),0<n.length&&(a=new ml("onChange","change",null,a,l),e.push({event:a,listeners:n}))}var Yi=null,Xi=null;function hE(e){rg(e,0)}function gl(e){var n=Ur(e);if(am(n))return e}function Am(e,n){if(e==="change")return n}var xm=!1;if(or){var Vu;if(or){var Pu="oninput"in document;if(!Pu){var Om=document.createElement("div");Om.setAttribute("oninput","return;"),Pu=typeof Om.oninput=="function"}Vu=Pu}else Vu=!1;xm=Vu&&(!document.documentMode||9<document.documentMode)}function Rm(){Yi&&(Yi.detachEvent("onpropertychange",wm),Xi=Yi=null)}function wm(e){if(e.propertyName==="value"&&gl(Xi)){var n=[];Tm(n,Xi,e,Uu(e)),fm(hE,n)}}function mE(e,n,a){e==="focusin"?(Rm(),Yi=n,Xi=a,Yi.attachEvent("onpropertychange",wm)):e==="focusout"&&Rm()}function pE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return gl(Xi)}function gE(e,n){if(e==="click")return gl(n)}function yE(e,n){if(e==="input"||e==="change")return gl(n)}function bE(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Wt=typeof Object.is=="function"?Object.is:bE;function Zi(e,n){if(Wt(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(!Qe.call(n,o)||!Wt(e[o],n[o]))return!1}return!0}function Cm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nm(e,n){var a=Cm(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=Cm(a)}}function Mm(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Mm(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Dm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=ul(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=ul(e.document)}return n}function Yu(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 vE=or&&"documentMode"in document&&11>=document.documentMode,$a=null,Xu=null,Qi=null,Zu=!1;function Lm(e,n,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Zu||$a==null||$a!==ul(l)||(l=$a,"selectionStart"in l&&Yu(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=to(Xu,"onSelect"),0<l.length&&(n=new ml("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")},Qu={},Bm={};or&&(Bm=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(Qu[e])return Qu[e];if(!Wa[e])return e;var n=Wa[e],a;for(a in n)if(n.hasOwnProperty(a)&&a in Bm)return Qu[e]=n[a];return e}var Um=ga("animationend"),jm=ga("animationiteration"),Hm=ga("animationstart"),_E=ga("transitionrun"),EE=ga("transitionstart"),SE=ga("transitioncancel"),Im=ga("transitionend"),zm=new Map,Ku="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(" ");Ku.push("scrollEnd");function Nn(e,n){zm.set(e,n),X(n,[e])}var Gm=new WeakMap;function pn(e,n){if(typeof e=="object"&&e!==null){var a=Gm.get(e);return a!==void 0?a:(n={value:e,source:n,stack:nm(n)},Gm.set(e,n),n)}return{value:e,source:n,stack:nm(n)}}var gn=[],Ja=0,$u=0;function yl(){for(var e=Ja,n=$u=Ja=0;n<e;){var a=gn[n];gn[n++]=null;var l=gn[n];gn[n++]=null;var o=gn[n];gn[n++]=null;var f=gn[n];if(gn[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&&km(a,o,f)}}function bl(e,n,a,l){gn[Ja++]=e,gn[Ja++]=n,gn[Ja++]=a,gn[Ja++]=l,$u|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Wu(e,n,a,l){return bl(e,n,a,l),vl(e)}function ei(e,n){return bl(e,null,null,n),vl(e)}function km(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-Mt(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,af=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 TE(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 Jt(e,n,a,l){return new TE(e,n,a,l)}function Ju(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ur(e,n){var a=e.alternate;return a===null?(a=Jt(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 qm(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 _l(e,n,a,l,o,f){var g=0;if(l=e,typeof e=="function")Ju(e)&&(g=1);else if(typeof e=="string")g=x2(e,a,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ye:return e=Jt(31,a,n,o),e.elementType=ye,e.lanes=f,e;case R:return ya(a.children,o,f,n);case F:g=8,o|=24;break;case z:return e=Jt(12,a,n,o|2),e.elementType=z,e.lanes=f,e;case A:return e=Jt(13,a,n,o),e.elementType=A,e.lanes=f,e;case Z:return e=Jt(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 w:g=9;break e;case H: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=Jt(g,a,n,o),n.elementType=e,n.type=l,n.lanes=f,n}function ya(e,n,a,l){return e=Jt(7,e,l,n),e.lanes=a,e}function ec(e,n,a){return e=Jt(6,e,null,n),e.lanes=a,e}function tc(e,n,a){return n=Jt(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,El=null,Sl=0,yn=[],bn=0,ba=null,cr=1,fr="";function va(e,n){ni[ri++]=Sl,ni[ri++]=El,El=e,Sl=n}function Fm(e,n,a){yn[bn++]=cr,yn[bn++]=fr,yn[bn++]=ba,ba=e;var l=cr;e=fr;var o=32-Mt(l)-1;l&=~(1<<o),a+=1;var f=32-Mt(n)+o;if(30<f){var g=o-o%5;f=(l&(1<<g)-1).toString(32),l>>=g,o-=g,cr=1<<32-Mt(n)+o|a<<o|l,fr=f+e}else cr=1<<f|a<<o|l,fr=e}function nc(e){e.return!==null&&(va(e,1),Fm(e,1,0))}function rc(e){for(;e===El;)El=ni[--ri],ni[ri]=null,Sl=ni[--ri],ni[ri]=null;for(;e===ba;)ba=yn[--bn],yn[bn]=null,fr=yn[--bn],yn[bn]=null,cr=yn[--bn],yn[bn]=null}var jt=null,et=null,Le=!1,_a=null,Vn=!1,ac=Error(s(519));function Ea(e){var n=Error(s(418,""));throw Wi(pn(n,e)),ac}function Vm(e){var n=e.stateNode,a=e.type,l=e.memoizedProps;switch(n[ht]=e,n[Dt]=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),im(n,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),ol(n);break;case"select":Oe("invalid",n);break;case"textarea":Oe("invalid",n),lm(n,l.value,l.defaultValue,l.children),ol(n)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||n.textContent===""+a||l.suppressHydrationWarning===!0||lg(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=no),n=!0):n=!1,n||Ea(e)}function Pm(e){for(jt=e.return;jt;)switch(jt.tag){case 5:case 13:Vn=!1;return;case 27:case 3:Vn=!0;return;default:jt=jt.return}}function Ki(e){if(e!==jt)return!1;if(!Le)return Pm(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")||Ef(e.type,e.memoizedProps)),a=!a),a&&et&&Ea(e),Pm(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){et=Dn(e.nextSibling);break e}n--}else a!=="$"&&a!=="$!"&&a!=="$?"||n++;e=e.nextSibling}et=null}}else n===27?(n=et,Wr(e.type)?(e=xf,xf=null,et=e):et=n):et=jt?Dn(e.stateNode.nextSibling):null;return!0}function $i(){et=jt=null,Le=!1}function Ym(){var e=_a;return e!==null&&(Qt===null?Qt=e:Qt.push.apply(Qt,e),_a=null),e}function Wi(e){_a===null?_a=[e]:_a.push(e)}var ic=k(null),Sa=null,dr=null;function Hr(e,n,a){Y(ic,n._currentValue),n._currentValue=a}function hr(e){e._currentValue=ic.current,$(ic)}function sc(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 lc(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 v=f;f=o;for(var T=0;T<n.length;T++)if(v.context===n[T]){f.lanes|=a,v=f.alternate,v!==null&&(v.lanes|=a),sc(f.return,a,e),l||(g=null);break e}f=v.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),sc(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 v=o.type;Wt(o.pendingProps.value,g.value)||(e!==null?e.push(v):e=[v])}}else if(o===We.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&&lc(n,e,a,l),n.flags|=262144}function Tl(e){for(e=e.firstContext;e!==null;){if(!Wt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ta(e){Sa=e,dr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Bt(e){return Xm(Sa,e)}function Al(e,n){return Sa===null&&Ta(e),Xm(e,n)}function Xm(e,n){var a=n._currentValue;if(n={context:n,memoizedValue:a,next:null},dr===null){if(e===null)throw Error(s(308));dr=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else dr=dr.next=n;return a}var AE=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()})}},xE=t.unstable_scheduleCallback,OE=t.unstable_NormalPriority,pt={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function oc(){return{controller:new AE,data:new Map,refCount:0}}function es(e){e.refCount--,e.refCount===0&&xE(OE,function(){e.controller.abort()})}var ts=null,uc=0,ai=0,ii=null;function RE(e,n){if(ts===null){var a=ts=[];uc=0,ai=df(),ii={status:"pending",value:void 0,then:function(l){a.push(l)}}}return uc++,n.then(Zm,Zm),n}function Zm(){if(--uc===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 wE(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 Qm=G.S;G.S=function(e,n){typeof n=="object"&&n!==null&&typeof n.then=="function"&&RE(e,n),Qm!==null&&Qm(e,n)};var Aa=k(null);function cc(){var e=Aa.current;return e!==null?e:Ve.pooledCache}function xl(e,n){n===null?Y(Aa,Aa.current):Y(Aa,n.pool)}function Km(){var e=cc();return e===null?null:{parent:pt._currentValue,pool:e}}var ns=Error(s(460)),$m=Error(s(474)),Ol=Error(s(542)),fc={then:function(){}};function Wm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Rl(){}function Jm(e,n,a){switch(a=e[a],a===void 0?e.push(n):a!==n&&(n.then(Rl,Rl),n=a),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,t0(e),e;default:if(typeof n.status=="string")n.then(Rl,Rl);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,t0(e),e}throw rs=n,ns}}var rs=null;function e0(){if(rs===null)throw Error(s(459));var e=rs;return rs=null,e}function t0(e){if(e===ns||e===Ol)throw Error(s(483))}var Ir=!1;function dc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hc(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 zr(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Gr(e,n,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(je&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),km(e,null,a),n}return bl(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,rt(e,a)}}function mc(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 pc=!1;function is(){if(pc){var e=ii;if(e!==null)throw e}}function ss(e,n,a,l){pc=!1;var o=e.updateQueue;Ir=!1;var f=o.firstBaseUpdate,g=o.lastBaseUpdate,v=o.shared.pending;if(v!==null){o.shared.pending=null;var T=v,L=T.next;T.next=null,g===null?f=L:g.next=L,g=T;var q=e.alternate;q!==null&&(q=q.updateQueue,v=q.lastBaseUpdate,v!==g&&(v===null?q.firstBaseUpdate=L:v.next=L,q.lastBaseUpdate=T))}if(f!==null){var P=o.baseState;g=0,q=L=T=null,v=f;do{var j=v.lane&-536870913,I=j!==v.lane;if(I?(Ne&j)===j:(l&j)===j){j!==0&&j===ai&&(pc=!0),q!==null&&(q=q.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var he=e,fe=v;j=n;var ke=a;switch(fe.tag){case 1:if(he=fe.payload,typeof he=="function"){P=he.call(ke,P,j);break e}P=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=fe.payload,j=typeof he=="function"?he.call(ke,P,j):he,j==null)break e;P=b({},P,j);break e;case 2:Ir=!0}}j=v.callback,j!==null&&(e.flags|=64,I&&(e.flags|=8192),I=o.callbacks,I===null?o.callbacks=[j]:I.push(j))}else I={lane:j,tag:v.tag,payload:v.payload,callback:v.callback,next:null},q===null?(L=q=I,T=P):q=q.next=I,g|=j;if(v=v.next,v===null){if(v=o.shared.pending,v===null)break;I=v,v=I.next,I.next=null,o.lastBaseUpdate=I,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),Zr|=g,e.lanes=g,e.memoizedState=P}}function n0(e,n){if(typeof e!="function")throw Error(s(191,e));e.call(n)}function r0(e,n){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)n0(a[e],n)}var si=k(null),wl=k(0);function a0(e,n){e=_r,Y(wl,e),Y(si,n),_r=e|n.baseLanes}function gc(){Y(wl,_r),Y(si,si.current)}function yc(){_r=wl.current,$(si),$(wl)}var kr=0,_e=null,ze=null,ut=null,Cl=!1,li=!1,xa=!1,Nl=0,ls=0,oi=null,CE=0;function at(){throw Error(s(321))}function bc(e,n){if(n===null)return!1;for(var a=0;a<n.length&&a<e.length;a++)if(!Wt(e[a],n[a]))return!1;return!0}function vc(e,n,a,l,o,f){return kr=f,_e=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,G.H=e===null||e.memoizedState===null?k0:q0,xa=!1,f=a(l,o),xa=!1,li&&(f=s0(n,a,l,o)),i0(e),f}function i0(e){G.H=jl;var n=ze!==null&&ze.next!==null;if(kr=0,ut=ze=_e=null,Cl=!1,ls=0,oi=null,n)throw Error(s(300));e===null||yt||(e=e.dependencies,e!==null&&Tl(e)&&(yt=!0))}function s0(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,ut=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)}G.H=jE,f=n(a,l)}while(li);return f}function NE(){var e=G.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 _c(){var e=Nl!==0;return Nl=0,e}function Ec(e,n,a){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~a}function Sc(e){if(Cl){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}Cl=!1}kr=0,ut=ze=_e=null,li=!1,ls=Nl=0,oi=null}function Xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ut===null?_e.memoizedState=ut=e:ut=ut.next=e,ut}function ct(){if(ze===null){var e=_e.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var n=ut===null?_e.memoizedState:ut.next;if(n!==null)ut=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},ut===null?_e.memoizedState=ut=e:ut=ut.next=e}return ut}function Tc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function os(e){var n=ls;return ls+=1,oi===null&&(oi=[]),e=Jm(oi,e,n),n=_e,(ut===null?n.memoizedState:ut.next)===null&&(n=n.alternate,G.H=n===null||n.memoizedState===null?k0:q0),e}function Ml(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return os(e);if(e.$$typeof===S)return Bt(e)}throw Error(s(438,String(e)))}function Ac(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=Tc(),_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 mr(e,n){return typeof n=="function"?n(e):n}function Dl(e){var n=ct();return xc(n,ze,e)}function xc(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 v=g=null,T=null,L=n,q=!1;do{var P=L.lane&-536870913;if(P!==L.lane?(Ne&P)===P:(kr&P)===P){var j=L.revertLane;if(j===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((kr&j)===j){L=L.next,j===ai&&(q=!0);continue}else P={lane:0,revertLane:L.revertLane,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},T===null?(v=T=P,g=f):T=T.next=P,_e.lanes|=j,Zr|=j;P=L.action,xa&&a(f,P),f=L.hasEagerState?L.eagerState:a(f,P)}else j={lane:P,revertLane:L.revertLane,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},T===null?(v=T=j,g=f):T=T.next=j,_e.lanes|=P,Zr|=P;L=L.next}while(L!==null&&L!==n);if(T===null?g=f:T.next=v,!Wt(f,e.memoizedState)&&(yt=!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 Oc(e){var n=ct(),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);Wt(f,n.memoizedState)||(yt=!0),n.memoizedState=f,n.baseQueue===null&&(n.baseState=f),a.lastRenderedState=f}return[f,l]}function l0(e,n,a){var l=_e,o=ct(),f=Le;if(f){if(a===void 0)throw Error(s(407));a=a()}else a=n();var g=!Wt((ze||o).memoizedState,a);g&&(o.memoizedState=a,yt=!0),o=o.queue;var v=c0.bind(null,l,o,e);if(us(2048,8,v,[e]),o.getSnapshot!==n||g||ut!==null&&ut.memoizedState.tag&1){if(l.flags|=2048,ui(9,Ll(),u0.bind(null,l,o,a,n),null),Ve===null)throw Error(s(349));f||(kr&124)!==0||o0(l,n,a)}return a}function o0(e,n,a){e.flags|=16384,e={getSnapshot:n,value:a},n=_e.updateQueue,n===null?(n=Tc(),_e.updateQueue=n,n.stores=[e]):(a=n.stores,a===null?n.stores=[e]:a.push(e))}function u0(e,n,a,l){n.value=a,n.getSnapshot=l,f0(n)&&d0(e)}function c0(e,n,a){return a(function(){f0(n)&&d0(e)})}function f0(e){var n=e.getSnapshot;e=e.value;try{var a=n();return!Wt(e,a)}catch{return!0}}function d0(e){var n=ei(e,2);n!==null&&an(n,e,2)}function Rc(e){var n=Xt();if(typeof e=="function"){var a=e;if(e=a(),xa){Rn(!0);try{a()}finally{Rn(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mr,lastRenderedState:e},n}function h0(e,n,a,l){return e.baseState=a,xc(e,ze,typeof l=="function"?l:mr)}function ME(e,n,a,l,o){if(Ul(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)}};G.T!==null?a(!0):f.isTransition=!1,l(f),a=n.pending,a===null?(f.next=n.pending=f,m0(n,f)):(f.next=a.next,n.pending=a.next=f)}}function m0(e,n){var a=n.action,l=n.payload,o=e.state;if(n.isTransition){var f=G.T,g={};G.T=g;try{var v=a(o,l),T=G.S;T!==null&&T(g,v),p0(e,n,v)}catch(L){wc(e,n,L)}finally{G.T=f}}else try{f=a(o,l),p0(e,n,f)}catch(L){wc(e,n,L)}}function p0(e,n,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){g0(e,n,l)},function(l){return wc(e,n,l)}):g0(e,n,a)}function g0(e,n,a){n.status="fulfilled",n.value=a,y0(n),e.state=a,n=e.pending,n!==null&&(a=n.next,a===n?e.pending=null:(a=a.next,n.next=a,m0(e,a)))}function wc(e,n,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do n.status="rejected",n.reason=a,y0(n),n=n.next;while(n!==l)}e.action=null}function y0(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function b0(e,n){return n}function v0(e,n){if(Le){var a=Ve.formState;if(a!==null){e:{var l=_e;if(Le){if(et){t:{for(var o=et,f=Vn;o.nodeType!==8;){if(!f){o=null;break t}if(o=Dn(o.nextSibling),o===null){o=null;break t}}f=o.data,o=f==="F!"||f==="F"?o:null}if(o){et=Dn(o.nextSibling),l=o.data==="F!";break e}}Ea(l)}l=!1}l&&(n=a[0])}}return a=Xt(),a.memoizedState=a.baseState=n,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:b0,lastRenderedState:n},a.queue=l,a=I0.bind(null,_e,l),l.dispatch=a,l=Rc(!1),f=Lc.bind(null,_e,!1,l.queue),l=Xt(),o={state:n,dispatch:null,action:e,pending:null},l.queue=o,a=ME.bind(null,_e,o,f,a),o.dispatch=a,l.memoizedState=e,[n,a,!1]}function _0(e){var n=ct();return E0(n,ze,e)}function E0(e,n,a){if(n=xc(e,n,b0)[0],e=Dl(mr)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var l=os(n)}catch(g){throw g===ns?Ol:g}else l=n;n=ct();var o=n.queue,f=o.dispatch;return a!==n.memoizedState&&(_e.flags|=2048,ui(9,Ll(),DE.bind(null,o,a),null)),[l,f,e]}function DE(e,n){e.action=n}function S0(e){var n=ct(),a=ze;if(a!==null)return E0(n,a,e);ct(),n=n.memoizedState,a=ct();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=Tc(),_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 Ll(){return{destroy:void 0,resource:void 0}}function T0(){return ct().memoizedState}function Bl(e,n,a,l){var o=Xt();l=l===void 0?null:l,_e.flags|=e,o.memoizedState=ui(1|n,Ll(),a,l)}function us(e,n,a,l){var o=ct();l=l===void 0?null:l;var f=o.memoizedState.inst;ze!==null&&l!==null&&bc(l,ze.memoizedState.deps)?o.memoizedState=ui(n,f,a,l):(_e.flags|=e,o.memoizedState=ui(1|n,f,a,l))}function A0(e,n){Bl(8390656,8,e,n)}function x0(e,n){us(2048,8,e,n)}function O0(e,n){return us(4,2,e,n)}function R0(e,n){return us(4,4,e,n)}function w0(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 C0(e,n,a){a=a!=null?a.concat([e]):null,us(4,4,w0.bind(null,n,e),a)}function Cc(){}function N0(e,n){var a=ct();n=n===void 0?null:n;var l=a.memoizedState;return n!==null&&bc(n,l[1])?l[0]:(a.memoizedState=[e,n],e)}function M0(e,n){var a=ct();n=n===void 0?null:n;var l=a.memoizedState;if(n!==null&&bc(n,l[1]))return l[0];if(l=e(),xa){Rn(!0);try{e()}finally{Rn(!1)}}return a.memoizedState=[l,n],l}function Nc(e,n,a){return a===void 0||(kr&1073741824)!==0?e.memoizedState=n:(e.memoizedState=a,e=Bp(),_e.lanes|=e,Zr|=e,a)}function D0(e,n,a,l){return Wt(a,n)?a:si.current!==null?(e=Nc(e,a,l),Wt(e,n)||(yt=!0),e):(kr&42)===0?(yt=!0,e.memoizedState=a):(e=Bp(),_e.lanes|=e,Zr|=e,n)}function L0(e,n,a,l,o){var f=K.p;K.p=f!==0&&8>f?f:8;var g=G.T,v={};G.T=v,Lc(e,!1,n,a);try{var T=o(),L=G.S;if(L!==null&&L(v,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var q=wE(T,l);cs(e,n,q,rn(e))}else cs(e,n,l,rn(e))}catch(P){cs(e,n,{then:function(){},status:"rejected",reason:P},rn())}finally{K.p=f,G.T=g}}function LE(){}function Mc(e,n,a,l){if(e.tag!==5)throw Error(s(476));var o=B0(e).queue;L0(e,o,n,ee,a===null?LE:function(){return U0(e),a(l)})}function B0(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:mr,lastRenderedState:ee},next:null};var a={};return n.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mr,lastRenderedState:a},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function U0(e){var n=B0(e).next.queue;cs(e,n,{},rn())}function Dc(){return Bt(ws)}function j0(){return ct().memoizedState}function H0(){return ct().memoizedState}function BE(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var a=rn();e=zr(a);var l=Gr(n,e,a);l!==null&&(an(l,n,a),as(l,n,a)),n={cache:oc()},e.payload=n;return}n=n.return}}function UE(e,n,a){var l=rn();a={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Ul(e)?z0(n,a):(a=Wu(e,n,a,l),a!==null&&(an(a,e,l),G0(a,n,l)))}function I0(e,n,a){var l=rn();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(Ul(e))z0(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,v=f(g,a);if(o.hasEagerState=!0,o.eagerState=v,Wt(v,g))return bl(e,n,o,0),Ve===null&&yl(),!1}catch{}finally{}if(a=Wu(e,n,o,l),a!==null)return an(a,e,l),G0(a,n,l),!0}return!1}function Lc(e,n,a,l){if(l={lane:2,revertLane:df(),action:l,hasEagerState:!1,eagerState:null,next:null},Ul(e)){if(n)throw Error(s(479))}else n=Wu(e,a,l,2),n!==null&&an(n,e,2)}function Ul(e){var n=e.alternate;return e===_e||n!==null&&n===_e}function z0(e,n){li=Cl=!0;var a=e.pending;a===null?n.next=n:(n.next=a.next,a.next=n),e.pending=n}function G0(e,n,a){if((a&4194048)!==0){var l=n.lanes;l&=e.pendingLanes,a|=l,n.lanes=a,rt(e,a)}}var jl={readContext:Bt,use:Ml,useCallback:at,useContext:at,useEffect:at,useImperativeHandle:at,useLayoutEffect:at,useInsertionEffect:at,useMemo:at,useReducer:at,useRef:at,useState:at,useDebugValue:at,useDeferredValue:at,useTransition:at,useSyncExternalStore:at,useId:at,useHostTransitionStatus:at,useFormState:at,useActionState:at,useOptimistic:at,useMemoCache:at,useCacheRefresh:at},k0={readContext:Bt,use:Ml,useCallback:function(e,n){return Xt().memoizedState=[e,n===void 0?null:n],e},useContext:Bt,useEffect:A0,useImperativeHandle:function(e,n,a){a=a!=null?a.concat([e]):null,Bl(4194308,4,w0.bind(null,n,e),a)},useLayoutEffect:function(e,n){return Bl(4194308,4,e,n)},useInsertionEffect:function(e,n){Bl(4,2,e,n)},useMemo:function(e,n){var a=Xt();n=n===void 0?null:n;var l=e();if(xa){Rn(!0);try{e()}finally{Rn(!1)}}return a.memoizedState=[l,n],l},useReducer:function(e,n,a){var l=Xt();if(a!==void 0){var o=a(n);if(xa){Rn(!0);try{a(n)}finally{Rn(!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=UE.bind(null,_e,e),[l.memoizedState,e]},useRef:function(e){var n=Xt();return e={current:e},n.memoizedState=e},useState:function(e){e=Rc(e);var n=e.queue,a=I0.bind(null,_e,n);return n.dispatch=a,[e.memoizedState,a]},useDebugValue:Cc,useDeferredValue:function(e,n){var a=Xt();return Nc(a,e,n)},useTransition:function(){var e=Rc(!1);return e=L0.bind(null,_e,e.queue,!0,!1),Xt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,a){var l=_e,o=Xt();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||o0(l,n,a)}o.memoizedState=a;var f={value:a,getSnapshot:n};return o.queue=f,A0(c0.bind(null,l,f,e),[e]),l.flags|=2048,ui(9,Ll(),u0.bind(null,l,f,a,n),null),a},useId:function(){var e=Xt(),n=Ve.identifierPrefix;if(Le){var a=fr,l=cr;a=(l&~(1<<32-Mt(l)-1)).toString(32)+a,n="«"+n+"R"+a,a=Nl++,0<a&&(n+="H"+a.toString(32)),n+="»"}else a=CE++,n="«"+n+"r"+a.toString(32)+"»";return e.memoizedState=n},useHostTransitionStatus:Dc,useFormState:v0,useActionState:v0,useOptimistic:function(e){var n=Xt();n.memoizedState=n.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=a,n=Lc.bind(null,_e,!0,a),a.dispatch=n,[e,n]},useMemoCache:Ac,useCacheRefresh:function(){return Xt().memoizedState=BE.bind(null,_e)}},q0={readContext:Bt,use:Ml,useCallback:N0,useContext:Bt,useEffect:x0,useImperativeHandle:C0,useInsertionEffect:O0,useLayoutEffect:R0,useMemo:M0,useReducer:Dl,useRef:T0,useState:function(){return Dl(mr)},useDebugValue:Cc,useDeferredValue:function(e,n){var a=ct();return D0(a,ze.memoizedState,e,n)},useTransition:function(){var e=Dl(mr)[0],n=ct().memoizedState;return[typeof e=="boolean"?e:os(e),n]},useSyncExternalStore:l0,useId:j0,useHostTransitionStatus:Dc,useFormState:_0,useActionState:_0,useOptimistic:function(e,n){var a=ct();return h0(a,ze,e,n)},useMemoCache:Ac,useCacheRefresh:H0},jE={readContext:Bt,use:Ml,useCallback:N0,useContext:Bt,useEffect:x0,useImperativeHandle:C0,useInsertionEffect:O0,useLayoutEffect:R0,useMemo:M0,useReducer:Oc,useRef:T0,useState:function(){return Oc(mr)},useDebugValue:Cc,useDeferredValue:function(e,n){var a=ct();return ze===null?Nc(a,e,n):D0(a,ze.memoizedState,e,n)},useTransition:function(){var e=Oc(mr)[0],n=ct().memoizedState;return[typeof e=="boolean"?e:os(e),n]},useSyncExternalStore:l0,useId:j0,useHostTransitionStatus:Dc,useFormState:S0,useActionState:S0,useOptimistic:function(e,n){var a=ct();return ze!==null?h0(a,ze,e,n):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Ac,useCacheRefresh:H0},ci=null,fs=0;function Hl(e){var n=fs;return fs+=1,ci===null&&(ci=[]),Jm(ci,e,n)}function ds(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function Il(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 F0(e){var n=e._init;return n(e._payload)}function V0(e){function n(M,C){if(e){var D=M.deletions;D===null?(M.deletions=[C],M.flags|=16):D.push(C)}}function a(M,C){if(!e)return null;for(;C!==null;)n(M,C),C=C.sibling;return null}function l(M){for(var C=new Map;M!==null;)M.key!==null?C.set(M.key,M):C.set(M.index,M),M=M.sibling;return C}function o(M,C){return M=ur(M,C),M.index=0,M.sibling=null,M}function f(M,C,D){return M.index=D,e?(D=M.alternate,D!==null?(D=D.index,D<C?(M.flags|=67108866,C):D):(M.flags|=67108866,C)):(M.flags|=1048576,C)}function g(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function v(M,C,D,V){return C===null||C.tag!==6?(C=ec(D,M.mode,V),C.return=M,C):(C=o(C,D),C.return=M,C)}function T(M,C,D,V){var ne=D.type;return ne===R?q(M,C,D.props.children,V,D.key):C!==null&&(C.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===ae&&F0(ne)===C.type)?(C=o(C,D.props),ds(C,D),C.return=M,C):(C=_l(D.type,D.key,D.props,null,M.mode,V),ds(C,D),C.return=M,C)}function L(M,C,D,V){return C===null||C.tag!==4||C.stateNode.containerInfo!==D.containerInfo||C.stateNode.implementation!==D.implementation?(C=tc(D,M.mode,V),C.return=M,C):(C=o(C,D.children||[]),C.return=M,C)}function q(M,C,D,V,ne){return C===null||C.tag!==7?(C=ya(D,M.mode,V,ne),C.return=M,C):(C=o(C,D),C.return=M,C)}function P(M,C,D){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=ec(""+C,M.mode,D),C.return=M,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case x:return D=_l(C.type,C.key,C.props,null,M.mode,D),ds(D,C),D.return=M,D;case U:return C=tc(C,M.mode,D),C.return=M,C;case ae:var V=C._init;return C=V(C._payload),P(M,C,D)}if(ve(C)||me(C))return C=ya(C,M.mode,D,null),C.return=M,C;if(typeof C.then=="function")return P(M,Hl(C),D);if(C.$$typeof===S)return P(M,Al(M,C),D);Il(M,C)}return null}function j(M,C,D,V){var ne=C!==null?C.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return ne!==null?null:v(M,C,""+D,V);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case x:return D.key===ne?T(M,C,D,V):null;case U:return D.key===ne?L(M,C,D,V):null;case ae:return ne=D._init,D=ne(D._payload),j(M,C,D,V)}if(ve(D)||me(D))return ne!==null?null:q(M,C,D,V,null);if(typeof D.then=="function")return j(M,C,Hl(D),V);if(D.$$typeof===S)return j(M,C,Al(M,D),V);Il(M,D)}return null}function I(M,C,D,V,ne){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return M=M.get(D)||null,v(C,M,""+V,ne);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case x:return M=M.get(V.key===null?D:V.key)||null,T(C,M,V,ne);case U:return M=M.get(V.key===null?D:V.key)||null,L(C,M,V,ne);case ae:var Se=V._init;return V=Se(V._payload),I(M,C,D,V,ne)}if(ve(V)||me(V))return M=M.get(D)||null,q(C,M,V,ne,null);if(typeof V.then=="function")return I(M,C,D,Hl(V),ne);if(V.$$typeof===S)return I(M,C,D,Al(C,V),ne);Il(C,V)}return null}function he(M,C,D,V){for(var ne=null,Se=null,oe=C,de=C=0,vt=null;oe!==null&&de<D.length;de++){oe.index>de?(vt=oe,oe=null):vt=oe.sibling;var De=j(M,oe,D[de],V);if(De===null){oe===null&&(oe=vt);break}e&&oe&&De.alternate===null&&n(M,oe),C=f(De,C,de),Se===null?ne=De:Se.sibling=De,Se=De,oe=vt}if(de===D.length)return a(M,oe),Le&&va(M,de),ne;if(oe===null){for(;de<D.length;de++)oe=P(M,D[de],V),oe!==null&&(C=f(oe,C,de),Se===null?ne=oe:Se.sibling=oe,Se=oe);return Le&&va(M,de),ne}for(oe=l(oe);de<D.length;de++)vt=I(oe,M,de,D[de],V),vt!==null&&(e&&vt.alternate!==null&&oe.delete(vt.key===null?de:vt.key),C=f(vt,C,de),Se===null?ne=vt:Se.sibling=vt,Se=vt);return e&&oe.forEach(function(ra){return n(M,ra)}),Le&&va(M,de),ne}function fe(M,C,D,V){if(D==null)throw Error(s(151));for(var ne=null,Se=null,oe=C,de=C=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 ra=j(M,oe,De.value,V);if(ra===null){oe===null&&(oe=vt);break}e&&oe&&ra.alternate===null&&n(M,oe),C=f(ra,C,de),Se===null?ne=ra:Se.sibling=ra,Se=ra,oe=vt}if(De.done)return a(M,oe),Le&&va(M,de),ne;if(oe===null){for(;!De.done;de++,De=D.next())De=P(M,De.value,V),De!==null&&(C=f(De,C,de),Se===null?ne=De:Se.sibling=De,Se=De);return Le&&va(M,de),ne}for(oe=l(oe);!De.done;de++,De=D.next())De=I(oe,M,de,De.value,V),De!==null&&(e&&De.alternate!==null&&oe.delete(De.key===null?de:De.key),C=f(De,C,de),Se===null?ne=De:Se.sibling=De,Se=De);return e&&oe.forEach(function(H2){return n(M,H2)}),Le&&va(M,de),ne}function ke(M,C,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 x:e:{for(var ne=D.key;C!==null;){if(C.key===ne){if(ne=D.type,ne===R){if(C.tag===7){a(M,C.sibling),V=o(C,D.props.children),V.return=M,M=V;break e}}else if(C.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===ae&&F0(ne)===C.type){a(M,C.sibling),V=o(C,D.props),ds(V,D),V.return=M,M=V;break e}a(M,C);break}else n(M,C);C=C.sibling}D.type===R?(V=ya(D.props.children,M.mode,V,D.key),V.return=M,M=V):(V=_l(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;C!==null;){if(C.key===ne)if(C.tag===4&&C.stateNode.containerInfo===D.containerInfo&&C.stateNode.implementation===D.implementation){a(M,C.sibling),V=o(C,D.children||[]),V.return=M,M=V;break e}else{a(M,C);break}else n(M,C);C=C.sibling}V=tc(D,M.mode,V),V.return=M,M=V}return g(M);case ae:return ne=D._init,D=ne(D._payload),ke(M,C,D,V)}if(ve(D))return he(M,C,D,V);if(me(D)){if(ne=me(D),typeof ne!="function")throw Error(s(150));return D=ne.call(D),fe(M,C,D,V)}if(typeof D.then=="function")return ke(M,C,Hl(D),V);if(D.$$typeof===S)return ke(M,C,Al(M,D),V);Il(M,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,C!==null&&C.tag===6?(a(M,C.sibling),V=o(C,D),V.return=M,M=V):(a(M,C),V=ec(D,M.mode,V),V.return=M,M=V),g(M)):a(M,C)}return function(M,C,D,V){try{fs=0;var ne=ke(M,C,D,V);return ci=null,ne}catch(oe){if(oe===ns||oe===Ol)throw oe;var Se=Jt(29,oe,null,M.mode);return Se.lanes=V,Se.return=M,Se}finally{}}}var fi=V0(!0),P0=V0(!1),vn=k(null),Pn=null;function qr(e){var n=e.alternate;Y(gt,gt.current&1),Y(vn,e),Pn===null&&(n===null||si.current!==null||n.memoizedState!==null)&&(Pn=e)}function Y0(e){if(e.tag===22){if(Y(gt,gt.current),Y(vn,e),Pn===null){var n=e.alternate;n!==null&&n.memoizedState!==null&&(Pn=e)}}else Fr()}function Fr(){Y(gt,gt.current),Y(vn,vn.current)}function pr(e){$(vn),Pn===e&&(Pn=null),$(gt)}var gt=k(0);function zl(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==="$?"||Af(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 Bc(e,n,a,l){n=e.memoizedState,a=a(l,n),a=a==null?n:b({},n,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Uc={enqueueSetState:function(e,n,a){e=e._reactInternals;var l=rn(),o=zr(l);o.payload=n,a!=null&&(o.callback=a),n=Gr(e,o,l),n!==null&&(an(n,e,l),as(n,e,l))},enqueueReplaceState:function(e,n,a){e=e._reactInternals;var l=rn(),o=zr(l);o.tag=1,o.payload=n,a!=null&&(o.callback=a),n=Gr(e,o,l),n!==null&&(an(n,e,l),as(n,e,l))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var a=rn(),l=zr(a);l.tag=2,n!=null&&(l.callback=n),n=Gr(e,l,a),n!==null&&(an(n,e,a),as(n,e,a))}};function X0(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 Z0(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&&Uc.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=b({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}var Gl=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 Q0(e){Gl(e)}function K0(e){console.error(e)}function $0(e){Gl(e)}function kl(e,n){try{var a=e.onUncaughtError;a(n.value,{componentStack:n.stack})}catch(l){setTimeout(function(){throw l})}}function W0(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 jc(e,n,a){return a=zr(a),a.tag=3,a.payload={element:null},a.callback=function(){kl(e,n)},a}function J0(e){return e=zr(e),e.tag=3,e}function ep(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(){W0(n,a,l)}}var g=a.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){W0(n,a,l),typeof o!="function"&&(Qr===null?Qr=new Set([this]):Qr.add(this));var v=l.stack;this.componentDidCatch(l.value,{componentStack:v!==null?v:""})})}function HE(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 Pn===null?lf():a.alternate===null&&tt===0&&(tt=3),a.flags&=-257,a.flags|=65536,a.lanes=o,l===fc?a.flags|=16384:(n=a.updateQueue,n===null?a.updateQueue=new Set([l]):n.add(l),uf(e,l,o)),!1;case 22:return a.flags|=65536,l===fc?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)),uf(e,l,o)),!1}throw Error(s(435,a.tag))}return uf(e,l,o),lf(),!1}if(Le)return n=vn.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=o,l!==ac&&(e=Error(s(422),{cause:l}),Wi(pn(e,a)))):(l!==ac&&(n=Error(s(423),{cause:l}),Wi(pn(n,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,l=pn(l,a),o=jc(e.stateNode,l,o),mc(e,o),tt!==4&&(tt=2)),!1;var f=Error(s(520),{cause:l});if(f=pn(f,a),vs===null?vs=[f]:vs.push(f),tt!==4&&(tt=2),n===null)return!0;l=pn(l,a),a=n;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=jc(a.stateNode,l,e),mc(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"&&(Qr===null||!Qr.has(f))))return a.flags|=65536,o&=-o,a.lanes|=o,o=J0(o),ep(o,e,a,l),mc(a,o),!1}a=a.return}while(a!==null);return!1}var tp=Error(s(461)),yt=!1;function xt(e,n,a,l){n.child=e===null?P0(n,null,a,l):fi(n,e.child,a,l)}function np(e,n,a,l,o){a=a.render;var f=n.ref;if("ref"in l){var g={};for(var v in l)v!=="ref"&&(g[v]=l[v])}else g=l;return Ta(n),l=vc(e,n,a,g,f,o),v=_c(),e!==null&&!yt?(Ec(e,n,o),gr(e,n,o)):(Le&&v&&nc(n),n.flags|=1,xt(e,n,l,o),n.child)}function rp(e,n,a,l,o){if(e===null){var f=a.type;return typeof f=="function"&&!Ju(f)&&f.defaultProps===void 0&&a.compare===null?(n.tag=15,n.type=f,ap(e,n,f,l,o)):(e=_l(a.type,null,l,n,n.mode,o),e.ref=n.ref,e.return=n,n.child=e)}if(f=e.child,!Vc(e,o)){var g=f.memoizedProps;if(a=a.compare,a=a!==null?a:Zi,a(g,l)&&e.ref===n.ref)return gr(e,n,o)}return n.flags|=1,e=ur(f,l),e.ref=n.ref,e.return=n,n.child=e}function ap(e,n,a,l,o){if(e!==null){var f=e.memoizedProps;if(Zi(f,l)&&e.ref===n.ref)if(yt=!1,n.pendingProps=l=f,Vc(e,o))(e.flags&131072)!==0&&(yt=!0);else return n.lanes=e.lanes,gr(e,n,o)}return Hc(e,n,a,l,o)}function ip(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 sp(e,n,l,a)}if((a&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&xl(n,f!==null?f.cachePool:null),f!==null?a0(n,f):gc(),Y0(n);else return n.lanes=n.childLanes=536870912,sp(e,n,f!==null?f.baseLanes|a:a,a)}else f!==null?(xl(n,f.cachePool),a0(n,f),Fr(),n.memoizedState=null):(e!==null&&xl(n,null),gc(),Fr());return xt(e,n,o,a),n.child}function sp(e,n,a,l){var o=cc();return o=o===null?null:{parent:pt._currentValue,pool:o},n.memoizedState={baseLanes:a,cachePool:o},e!==null&&xl(n,null),gc(),Y0(n),e!==null&&Ji(e,n,l,!0),null}function ql(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 Hc(e,n,a,l,o){return Ta(n),a=vc(e,n,a,l,void 0,o),l=_c(),e!==null&&!yt?(Ec(e,n,o),gr(e,n,o)):(Le&&l&&nc(n),n.flags|=1,xt(e,n,a,o),n.child)}function lp(e,n,a,l,o,f){return Ta(n),n.updateQueue=null,a=s0(n,l,a,o),i0(e),l=_c(),e!==null&&!yt?(Ec(e,n,f),gr(e,n,f)):(Le&&l&&nc(n),n.flags|=1,xt(e,n,a,f),n.child)}function op(e,n,a,l,o){if(Ta(n),n.stateNode===null){var f=ti,g=a.contextType;typeof g=="object"&&g!==null&&(f=Bt(g)),f=new a(l,f),n.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Uc,n.stateNode=f,f._reactInternals=n,f=n.stateNode,f.props=l,f.state=n.memoizedState,f.refs={},dc(n),g=a.contextType,f.context=typeof g=="object"&&g!==null?Bt(g):ti,f.state=n.memoizedState,g=a.getDerivedStateFromProps,typeof g=="function"&&(Bc(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&&Uc.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 v=n.memoizedProps,T=Oa(a,v);f.props=T;var L=f.context,q=a.contextType;g=ti,typeof q=="object"&&q!==null&&(g=Bt(q));var P=a.getDerivedStateFromProps;q=typeof P=="function"||typeof f.getSnapshotBeforeUpdate=="function",v=n.pendingProps!==v,q||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(v||L!==g)&&Z0(n,f,l,g),Ir=!1;var j=n.memoizedState;f.state=j,ss(n,l,f,o),is(),L=n.memoizedState,v||j!==L||Ir?(typeof P=="function"&&(Bc(n,a,P,l),L=n.memoizedState),(T=Ir||X0(n,a,T,l,j,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,hc(e,n),g=n.memoizedProps,q=Oa(a,g),f.props=q,P=n.pendingProps,j=f.context,L=a.contextType,T=ti,typeof L=="object"&&L!==null&&(T=Bt(L)),v=a.getDerivedStateFromProps,(L=typeof v=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(g!==P||j!==T)&&Z0(n,f,l,T),Ir=!1,j=n.memoizedState,f.state=j,ss(n,l,f,o),is();var I=n.memoizedState;g!==P||j!==I||Ir||e!==null&&e.dependencies!==null&&Tl(e.dependencies)?(typeof v=="function"&&(Bc(n,a,v,l),I=n.memoizedState),(q=Ir||X0(n,a,q,l,j,I,T)||e!==null&&e.dependencies!==null&&Tl(e.dependencies))?(L||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(l,I,T),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(l,I,T)),typeof f.componentDidUpdate=="function"&&(n.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(n.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(n.flags|=1024),n.memoizedProps=l,n.memoizedState=I),f.props=l,f.state=I,f.context=T,l=q):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(n.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(n.flags|=1024),l=!1)}return f=l,ql(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)):xt(e,n,a,o),n.memoizedState=f.state,e=n.child):e=gr(e,n,o),e}function up(e,n,a,l){return $i(),n.flags|=256,xt(e,n,a,l),n.child}var Ic={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function zc(e){return{baseLanes:e,cachePool:Km()}}function Gc(e,n,a){return e=e!==null?e.childLanes&~a:0,n&&(e|=_n),e}function cp(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:(gt.current&2)!==0),g&&(o=!0,n.flags&=-129),g=(n.flags&32)!==0,n.flags&=-33,e===null){if(Le){if(o?qr(n):Fr(),Le){var v=et,T;if(T=v){e:{for(T=v,v=Vn;T.nodeType!==8;){if(!v){v=null;break e}if(T=Dn(T.nextSibling),T===null){v=null;break e}}v=T}v!==null?(n.memoizedState={dehydrated:v,treeContext:ba!==null?{id:cr,overflow:fr}:null,retryLane:536870912,hydrationErrors:null},T=Jt(18,null,null,0),T.stateNode=v,T.return=n,n.child=T,jt=n,et=null,T=!0):T=!1}T||Ea(n)}if(v=n.memoizedState,v!==null&&(v=v.dehydrated,v!==null))return Af(v)?n.lanes=32:n.lanes=536870912,null;pr(n)}return v=l.children,l=l.fallback,o?(Fr(),o=n.mode,v=Fl({mode:"hidden",children:v},o),l=ya(l,o,a,null),v.return=n,l.return=n,v.sibling=l,n.child=v,o=n.child,o.memoizedState=zc(a),o.childLanes=Gc(e,g,a),n.memoizedState=Ic,l):(qr(n),kc(n,v))}if(T=e.memoizedState,T!==null&&(v=T.dehydrated,v!==null)){if(f)n.flags&256?(qr(n),n.flags&=-257,n=qc(e,n,a)):n.memoizedState!==null?(Fr(),n.child=e.child,n.flags|=128,n=null):(Fr(),o=l.fallback,v=n.mode,l=Fl({mode:"visible",children:l.children},v),o=ya(o,v,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=zc(a),l.childLanes=Gc(e,g,a),n.memoizedState=Ic,n=o);else if(qr(n),Af(v)){if(g=v.nextSibling&&v.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=qc(e,n,a)}else if(yt||Ji(e,n,a,!1),g=(a&e.childLanes)!==0,yt||g){if(g=Ve,g!==null&&(l=a&-a,l=(l&42)!==0?1:kn(l),l=(l&(g.suspendedLanes|a))!==0?0:l,l!==0&&l!==T.retryLane))throw T.retryLane=l,ei(e,l),an(g,e,l),tp;v.data==="$?"||lf(),n=qc(e,n,a)}else v.data==="$?"?(n.flags|=192,n.child=e.child,n=null):(e=T.treeContext,et=Dn(v.nextSibling),jt=n,Le=!0,_a=null,Vn=!1,e!==null&&(yn[bn++]=cr,yn[bn++]=fr,yn[bn++]=ba,cr=e.id,fr=e.overflow,ba=n),n=kc(n,l.children),n.flags|=4096);return n}return o?(Fr(),o=l.fallback,v=n.mode,T=e.child,L=T.sibling,l=ur(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,L!==null?o=ur(L,o):(o=ya(o,v,a,null),o.flags|=2),o.return=n,l.return=n,l.sibling=o,n.child=l,l=o,o=n.child,v=e.child.memoizedState,v===null?v=zc(a):(T=v.cachePool,T!==null?(L=pt._currentValue,T=T.parent!==L?{parent:L,pool:L}:T):T=Km(),v={baseLanes:v.baseLanes|a,cachePool:T}),o.memoizedState=v,o.childLanes=Gc(e,g,a),n.memoizedState=Ic,l):(qr(n),a=e.child,e=a.sibling,a=ur(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 kc(e,n){return n=Fl({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Fl(e,n){return e=Jt(22,e,null,n),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function qc(e,n,a){return fi(n,e.child,null,a),e=kc(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function fp(e,n,a){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n),sc(e.return,n,a)}function Fc(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 dp(e,n,a){var l=n.pendingProps,o=l.revealOrder,f=l.tail;if(xt(e,n,l.children,a),l=gt.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&&fp(e,a,n);else if(e.tag===19)fp(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(gt,l),o){case"forwards":for(a=n.child,o=null;a!==null;)e=a.alternate,e!==null&&zl(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=n.child,n.child=null):(o=a.sibling,a.sibling=null),Fc(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&&zl(e)===null){n.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}Fc(n,!0,a,null,f);break;case"together":Fc(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function gr(e,n,a){if(e!==null&&(n.dependencies=e.dependencies),Zr|=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=ur(e,e.pendingProps),n.child=a,a.return=n;e.sibling!==null;)e=e.sibling,a=a.sibling=ur(e,e.pendingProps),a.return=n;a.sibling=null}return n.child}function Vc(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&Tl(e)))}function IE(e,n,a){switch(n.tag){case 3:Ue(n,n.stateNode.containerInfo),Hr(n,pt,e.memoizedState.cache),$i();break;case 27:case 5:Gn(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?(qr(n),n.flags|=128,null):(a&n.child.childLanes)!==0?cp(e,n,a):(qr(n),e=gr(e,n,a),e!==null?e.sibling:null);qr(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 dp(e,n,a);n.flags|=128}if(o=n.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Y(gt,gt.current),l)break;return null;case 22:case 23:return n.lanes=0,ip(e,n,a);case 24:Hr(n,pt,e.memoizedState.cache)}return gr(e,n,a)}function hp(e,n,a){if(e!==null)if(e.memoizedProps!==n.pendingProps)yt=!0;else{if(!Vc(e,a)&&(n.flags&128)===0)return yt=!1,IE(e,n,a);yt=(e.flags&131072)!==0}else yt=!1,Le&&(n.flags&1048576)!==0&&Fm(n,Sl,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")Ju(l)?(e=Oa(l,e),n.tag=1,n=op(null,n,l,e,a)):(n.tag=0,n=Hc(null,n,l,e,a));else{if(l!=null){if(o=l.$$typeof,o===H){n.tag=11,n=np(null,n,l,e,a);break e}else if(o===W){n.tag=14,n=rp(null,n,l,e,a);break e}}throw n=Pe(l)||l,Error(s(306,n,""))}}return n;case 0:return Hc(e,n,n.type,n.pendingProps,a);case 1:return l=n.type,o=Oa(l,n.pendingProps),op(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,hc(e,n),ss(n,l,null,a);var g=n.memoizedState;if(l=g.cache,Hr(n,pt,l),l!==f.cache&&lc(n,[pt],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=up(e,n,l,a);break e}else if(l!==o){o=pn(Error(s(424)),n),Wi(o),n=up(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(et=Dn(e.firstChild),jt=n,Le=!0,_a=null,Vn=!0,a=P0(n,null,l,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if($i(),l===o){n=gr(e,n,a);break e}xt(e,n,l,a)}n=n.child}return n;case 26:return ql(e,n),e===null?(a=yg(n.type,null,n.pendingProps,null))?n.memoizedState=a:Le||(a=n.type,e=n.pendingProps,l=ro(ue.current).createElement(a),l[ht]=n,l[Dt]=e,Rt(l,a,e),lt(l),n.stateNode=l):n.memoizedState=yg(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return Gn(n),e===null&&Le&&(l=n.stateNode=mg(n.type,n.pendingProps,ue.current),jt=n,Vn=!0,o=et,Wr(n.type)?(xf=o,et=Dn(l.firstChild)):et=o),xt(e,n,n.pendingProps.children,a),ql(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Le&&((o=l=et)&&(l=d2(l,n.type,n.pendingProps,Vn),l!==null?(n.stateNode=l,jt=n,et=Dn(l.firstChild),Vn=!1,o=!0):o=!1),o||Ea(n)),Gn(n),o=n.type,f=n.pendingProps,g=e!==null?e.memoizedProps:null,l=f.children,Ef(o,f)?l=null:g!==null&&Ef(o,g)&&(n.flags|=32),n.memoizedState!==null&&(o=vc(e,n,NE,null,null,a),ws._currentValue=o),ql(e,n),xt(e,n,l,a),n.child;case 6:return e===null&&Le&&((e=a=et)&&(a=h2(a,n.pendingProps,Vn),a!==null?(n.stateNode=a,jt=n,et=null,e=!0):e=!1),e||Ea(n)),null;case 13:return cp(e,n,a);case 4:return Ue(n,n.stateNode.containerInfo),l=n.pendingProps,e===null?n.child=fi(n,null,l,a):xt(e,n,l,a),n.child;case 11:return np(e,n,n.type,n.pendingProps,a);case 7:return xt(e,n,n.pendingProps,a),n.child;case 8:return xt(e,n,n.pendingProps.children,a),n.child;case 12:return xt(e,n,n.pendingProps.children,a),n.child;case 10:return l=n.pendingProps,Hr(n,n.type,l.value),xt(e,n,l.children,a),n.child;case 9:return o=n.type._context,l=n.pendingProps.children,Ta(n),o=Bt(o),l=l(o),n.flags|=1,xt(e,n,l,a),n.child;case 14:return rp(e,n,n.type,n.pendingProps,a);case 15:return ap(e,n,n.type,n.pendingProps,a);case 19:return dp(e,n,a);case 31:return l=n.pendingProps,a=n.mode,l={mode:l.mode,children:l.children},e===null?(a=Fl(l,a),a.ref=n.ref,n.child=a,a.return=n,n=a):(a=ur(e.child,l),a.ref=n.ref,n.child=a,a.return=n,n=a),n;case 22:return ip(e,n,a);case 24:return Ta(n),l=Bt(pt),e===null?(o=cc(),o===null&&(o=Ve,f=oc(),o.pooledCache=f,f.refCount++,f!==null&&(o.pooledCacheLanes|=a),o=f),n.memoizedState={parent:l,cache:o},dc(n),Hr(n,pt,o)):((e.lanes&a)!==0&&(hc(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,pt,l)):(l=f.cache,Hr(n,pt,l),l!==o.cache&&lc(n,[pt],a,!0))),xt(e,n,n.pendingProps.children,a),n.child;case 29:throw n.pendingProps}throw Error(s(156,n.tag))}function yr(e){e.flags|=4}function mp(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Sg(n)){if(n=vn.current,n!==null&&((Ne&4194048)===Ne?Pn!==null:(Ne&62914560)!==Ne&&(Ne&536870912)===0||n!==Pn))throw rs=fc,$m;e.flags|=8192}}function Vl(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 Ke(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 zE(e,n,a){var l=n.pendingProps;switch(rc(n),n.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ke(n),null;case 1:return Ke(n),null;case 3:return a=n.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),n.memoizedState.cache!==l&&(n.flags|=2048),hr(pt),St(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Ki(n)?yr(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Ym())),Ke(n),null;case 26:return a=n.memoizedState,e===null?(yr(n),a!==null?(Ke(n),mp(n,a)):(Ke(n),n.flags&=-16777217)):a?a!==e.memoizedState?(yr(n),Ke(n),mp(n,a)):(Ke(n),n.flags&=-16777217):(e.memoizedProps!==l&&yr(n),Ke(n),n.flags&=-16777217),null;case 27:Mr(n),a=ue.current;var o=n.type;if(e!==null&&n.stateNode!=null)e.memoizedProps!==l&&yr(n);else{if(!l){if(n.stateNode===null)throw Error(s(166));return Ke(n),null}e=te.current,Ki(n)?Vm(n):(e=mg(o,l,a),n.stateNode=e,yr(n))}return Ke(n),null;case 5:if(Mr(n),a=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==l&&yr(n);else{if(!l){if(n.stateNode===null)throw Error(s(166));return Ke(n),null}if(e=te.current,Ki(n))Vm(n);else{switch(o=ro(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[ht]=n,e[Dt]=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(Rt(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&&yr(n)}}return Ke(n),n.flags&=-16777217,null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==l&&yr(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=jt,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}e[ht]=n,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||lg(e.nodeValue,a)),e||Ea(n)}else e=ro(e).createTextNode(l),e[ht]=n,n.stateNode=e}return Ke(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[ht]=n}else $i(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Ke(n),o=!1}else o=Ym(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return n.flags&256?(pr(n),n):(pr(n),null)}if(pr(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),Vl(n,n.updateQueue),Ke(n),null;case 4:return St(),e===null&&gf(n.stateNode.containerInfo),Ke(n),null;case 10:return hr(n.type),Ke(n),null;case 19:if($(gt),o=n.memoizedState,o===null)return Ke(n),null;if(l=(n.flags&128)!==0,f=o.rendering,f===null)if(l)hs(o,!1);else{if(tt!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(f=zl(e),f!==null){for(n.flags|=128,hs(o,!1),e=f.updateQueue,n.updateQueue=e,Vl(n,e),n.subtreeFlags=0,e=a,a=n.child;a!==null;)qm(a,e),a=a.sibling;return Y(gt,gt.current&1|2),n.child}e=e.sibling}o.tail!==null&&Tt()>Xl&&(n.flags|=128,l=!0,hs(o,!1),n.lanes=4194304)}else{if(!l)if(e=zl(f),e!==null){if(n.flags|=128,l=!0,e=e.updateQueue,n.updateQueue=e,Vl(n,e),hs(o,!0),o.tail===null&&o.tailMode==="hidden"&&!f.alternate&&!Le)return Ke(n),null}else 2*Tt()-o.renderingStartTime>Xl&&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=Tt(),n.sibling=null,e=gt.current,Y(gt,l?e&1|2:e&1),n):(Ke(n),null);case 22:case 23:return pr(n),yc(),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&&(Ke(n),n.subtreeFlags&6&&(n.flags|=8192)):Ke(n),a=n.updateQueue,a!==null&&Vl(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),hr(pt),Ke(n),null;case 25:return null;case 30:return null}throw Error(s(156,n.tag))}function GE(e,n){switch(rc(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return hr(pt),St(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return Mr(n),null;case 13:if(pr(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 $(gt),null;case 4:return St(),null;case 10:return hr(n.type),null;case 22:case 23:return pr(n),yc(),e!==null&&$(Aa),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return hr(pt),null;case 25:return null;default:return null}}function pp(e,n){switch(rc(n),n.tag){case 3:hr(pt),St();break;case 26:case 27:case 5:Mr(n);break;case 4:St();break;case 13:pr(n);break;case 19:$(gt);break;case 10:hr(n.type);break;case 22:case 23:pr(n),yc(),e!==null&&$(Aa);break;case 24:hr(pt)}}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(v){qe(n,n.return,v)}}function Vr(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,v=g.destroy;if(v!==void 0){g.destroy=void 0,o=n;var T=a,L=v;try{L()}catch(q){qe(o,T,q)}}}l=l.next}while(l!==f)}}catch(q){qe(n,n.return,q)}}function gp(e){var n=e.updateQueue;if(n!==null){var a=e.stateNode;try{r0(n,a)}catch(l){qe(e,e.return,l)}}}function yp(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 Yn(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 bp(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 Pc(e,n,a){try{var l=e.stateNode;l2(l,e.type,a,n),l[Dt]=n}catch(o){qe(e,e.return,o)}}function vp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Wr(e.type)||e.tag===4}function Yc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vp(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&&Wr(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 Xc(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=no));else if(l!==4&&(l===27&&Wr(e.type)&&(a=e.stateNode,n=null),e=e.child,e!==null))for(Xc(e,n,a),e=e.sibling;e!==null;)Xc(e,n,a),e=e.sibling}function Pl(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&&Wr(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Pl(e,n,a),e=e.sibling;e!==null;)Pl(e,n,a),e=e.sibling}function _p(e){var n=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,o=n.attributes;o.length;)n.removeAttributeNode(o[0]);Rt(n,l,a),n[ht]=e,n[Dt]=a}catch(f){qe(e,e.return,f)}}var br=!1,it=!1,Zc=!1,Ep=typeof WeakSet=="function"?WeakSet:Set,bt=null;function kE(e,n){if(e=e.containerInfo,vf=uo,e=Dm(e),Yu(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,v=-1,T=-1,L=0,q=0,P=e,j=null;t:for(;;){for(var I;P!==a||o!==0&&P.nodeType!==3||(v=g+o),P!==f||l!==0&&P.nodeType!==3||(T=g+l),P.nodeType===3&&(g+=P.nodeValue.length),(I=P.firstChild)!==null;)j=P,P=I;for(;;){if(P===e)break t;if(j===a&&++L===o&&(v=g),j===f&&++q===l&&(T=g),(I=P.nextSibling)!==null)break;P=j,j=P.parentNode}P=I}a=v===-1||T===-1?null:{start:v,end:T}}else a=null}a=a||{start:0,end:0}}else a=null;for(_f={focusedElem:e,selectionRange:a},uo=!1,bt=n;bt!==null;)if(n=bt,e=n.child,(n.subtreeFlags&1024)!==0&&e!==null)e.return=n,bt=e;else for(;bt!==null;){switch(n=bt,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)Tf(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Tf(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,bt=e;break}bt=n.return}}function Sp(e,n,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:Pr(e,a),l&4&&ms(5,a);break;case 1:if(Pr(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&&gp(a),l&512&&ps(a,a.return);break;case 3:if(Pr(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{r0(e,n)}catch(g){qe(a,a.return,g)}}break;case 27:n===null&&l&4&&_p(a);case 26:case 5:Pr(e,a),n===null&&l&4&&bp(a),l&512&&ps(a,a.return);break;case 12:Pr(e,a);break;case 13:Pr(e,a),l&4&&xp(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=KE.bind(null,a),m2(e,a))));break;case 22:if(l=a.memoizedState!==null||br,!l){n=n!==null&&n.memoizedState!==null||it,o=br;var f=it;br=l,(it=n)&&!f?Yr(e,a,(a.subtreeFlags&8772)!==0):Pr(e,a),br=o,it=f}break;case 30:break;default:Pr(e,a)}}function Tp(e){var n=e.alternate;n!==null&&(e.alternate=null,Tp(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&Kt(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,Zt=!1;function vr(e,n,a){for(a=a.child;a!==null;)Ap(e,n,a),a=a.sibling}function Ap(e,n,a){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(dn,a)}catch{}switch(a.tag){case 26:it||Yn(a,n),vr(e,n,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:it||Yn(a,n);var l=Xe,o=Zt;Wr(a.type)&&(Xe=a.stateNode,Zt=!1),vr(e,n,a),As(a.stateNode),Xe=l,Zt=o;break;case 5:it||Yn(a,n);case 6:if(l=Xe,o=Zt,Xe=null,vr(e,n,a),Xe=l,Zt=o,Xe!==null)if(Zt)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&&(Zt?(e=Xe,dg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ds(e)):dg(Xe,a.stateNode));break;case 4:l=Xe,o=Zt,Xe=a.stateNode.containerInfo,Zt=!0,vr(e,n,a),Xe=l,Zt=o;break;case 0:case 11:case 14:case 15:it||Vr(2,a,n),it||Vr(4,a,n),vr(e,n,a);break;case 1:it||(Yn(a,n),l=a.stateNode,typeof l.componentWillUnmount=="function"&&yp(a,n,l)),vr(e,n,a);break;case 21:vr(e,n,a);break;case 22:it=(l=it)||a.memoizedState!==null,vr(e,n,a),it=l;break;default:vr(e,n,a)}}function xp(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 qE(e){switch(e.tag){case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new Ep),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new Ep),n;default:throw Error(s(435,e.tag))}}function Qc(e,n){var a=qE(e);n.forEach(function(l){var o=$E.bind(null,e,l);a.has(l)||(a.add(l),l.then(o,o))})}function en(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,v=g;e:for(;v!==null;){switch(v.tag){case 27:if(Wr(v.type)){Xe=v.stateNode,Zt=!1;break e}break;case 5:Xe=v.stateNode,Zt=!1;break e;case 3:case 4:Xe=v.stateNode.containerInfo,Zt=!0;break e}v=v.return}if(Xe===null)throw Error(s(160));Ap(f,g,o),Xe=null,Zt=!1,f=o.alternate,f!==null&&(f.return=null),o.return=null}if(n.subtreeFlags&13878)for(n=n.child;n!==null;)Op(n,e),n=n.sibling}var Mn=null;function Op(e,n){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:en(n,e),tn(e),l&4&&(Vr(3,e,e.return),ms(3,e),Vr(5,e,e.return));break;case 1:en(n,e),tn(e),l&512&&(it||a===null||Yn(a,a.return)),l&64&&br&&(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=Mn;if(en(n,e),tn(e),l&512&&(it||a===null||Yn(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[Br]||f[ht]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=o.createElement(l),o.head.insertBefore(f,o.querySelector("head > title"))),Rt(f,l,a),f[ht]=e,lt(f),l=f;break e;case"link":var g=_g("link","href",o).get(l+(a.href||""));if(g){for(var v=0;v<g.length;v++)if(f=g[v],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(v,1);break t}}f=o.createElement(l),Rt(f,l,a),o.head.appendChild(f);break;case"meta":if(g=_g("meta","content",o).get(l+(a.content||""))){for(v=0;v<g.length;v++)if(f=g[v],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(v,1);break t}}f=o.createElement(l),Rt(f,l,a),o.head.appendChild(f);break;default:throw Error(s(468,l))}f[ht]=e,lt(f),l=f}e.stateNode=l}else Eg(o,e.type,e.stateNode);else e.stateNode=vg(o,l,e.memoizedProps);else f!==l?(f===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):f.count--,l===null?Eg(o,e.type,e.stateNode):vg(o,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Pc(e,e.memoizedProps,a.memoizedProps)}break;case 27:en(n,e),tn(e),l&512&&(it||a===null||Yn(a,a.return)),a!==null&&l&4&&Pc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(en(n,e),tn(e),l&512&&(it||a===null||Yn(a,a.return)),e.flags&32){o=e.stateNode;try{Xa(o,"")}catch(I){qe(e,e.return,I)}}l&4&&e.stateNode!=null&&(o=e.memoizedProps,Pc(e,o,a!==null?a.memoizedProps:o)),l&1024&&(Zc=!0);break;case 6:if(en(n,e),tn(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(I){qe(e,e.return,I)}}break;case 3:if(so=null,o=Mn,Mn=ao(n.containerInfo),en(n,e),Mn=o,tn(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Ds(n.containerInfo)}catch(I){qe(e,e.return,I)}Zc&&(Zc=!1,Rp(e));break;case 4:l=Mn,Mn=ao(e.stateNode.containerInfo),en(n,e),tn(e),Mn=l;break;case 12:en(n,e),tn(e);break;case 13:en(n,e),tn(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(tf=Tt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Qc(e,l)));break;case 22:o=e.memoizedState!==null;var T=a!==null&&a.memoizedState!==null,L=br,q=it;if(br=L||o,it=q||T,en(n,e),it=q,br=L,tn(e),l&8192)e:for(n=e.stateNode,n._visibility=o?n._visibility&-2:n._visibility|1,o&&(a===null||T||br||it||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{v=T.stateNode;var P=T.memoizedProps.style,j=P!=null&&P.hasOwnProperty("display")?P.display:null;v.style.display=j==null||typeof j=="boolean"?"":(""+j).trim()}}catch(I){qe(T,T.return,I)}}}else if(n.tag===6){if(a===null){T=n;try{T.stateNode.nodeValue=o?"":T.memoizedProps}catch(I){qe(T,T.return,I)}}}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,Qc(e,a))));break;case 19:en(n,e),tn(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Qc(e,l)));break;case 30:break;case 21:break;default:en(n,e),tn(e)}}function tn(e){var n=e.flags;if(n&2){try{for(var a,l=e.return;l!==null;){if(vp(l)){a=l;break}l=l.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var o=a.stateNode,f=Yc(e);Pl(e,f,o);break;case 5:var g=a.stateNode;a.flags&32&&(Xa(g,""),a.flags&=-33);var v=Yc(e);Pl(e,v,g);break;case 3:case 4:var T=a.stateNode.containerInfo,L=Yc(e);Xc(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 Rp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;Rp(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Pr(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Sp(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:Vr(4,n,n.return),Ra(n);break;case 1:Yn(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&yp(n,n.return,a),Ra(n);break;case 27:As(n.stateNode);case 26:case 5:Yn(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 Yr(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:Yr(o,f,a),ms(4,f);break;case 1:if(Yr(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 v=l.stateNode;try{var T=o.shared.hiddenCallbacks;if(T!==null)for(o.shared.hiddenCallbacks=null,o=0;o<T.length;o++)n0(T[o],v)}catch(L){qe(l,l.return,L)}}a&&g&64&&gp(f),ps(f,f.return);break;case 27:_p(f);case 26:case 5:Yr(o,f,a),a&&l===null&&g&4&&bp(f),ps(f,f.return);break;case 12:Yr(o,f,a);break;case 13:Yr(o,f,a),a&&g&4&&xp(o,f);break;case 22:f.memoizedState===null&&Yr(o,f,a),ps(f,f.return);break;case 30:break;default:Yr(o,f,a)}n=n.sibling}}function Kc(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 $c(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 Xn(e,n,a,l){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)wp(e,n,a,l),n=n.sibling}function wp(e,n,a,l){var o=n.flags;switch(n.tag){case 0:case 11:case 15:Xn(e,n,a,l),o&2048&&ms(9,n);break;case 1:Xn(e,n,a,l);break;case 3:Xn(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){Xn(e,n,a,l),e=n.stateNode;try{var f=n.memoizedProps,g=f.id,v=f.onPostCommit;typeof v=="function"&&v(g,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){qe(n,n.return,T)}}else Xn(e,n,a,l);break;case 13:Xn(e,n,a,l);break;case 23:break;case 22:f=n.stateNode,g=n.alternate,n.memoizedState!==null?f._visibility&2?Xn(e,n,a,l):gs(e,n):f._visibility&2?Xn(e,n,a,l):(f._visibility|=2,di(e,n,a,l,(n.subtreeFlags&10256)!==0)),o&2048&&Kc(g,n);break;case 24:Xn(e,n,a,l),o&2048&&$c(n.alternate,n);break;default:Xn(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,v=a,T=l,L=g.flags;switch(g.tag){case 0:case 11:case 15:di(f,g,v,T,o),ms(8,g);break;case 23:break;case 22:var q=g.stateNode;g.memoizedState!==null?q._visibility&2?di(f,g,v,T,o):gs(f,g):(q._visibility|=2,di(f,g,v,T,o)),o&&L&2048&&Kc(g.alternate,g);break;case 24:di(f,g,v,T,o),o&&L&2048&&$c(g.alternate,g);break;default:di(f,g,v,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&&Kc(l.alternate,l);break;case 24:gs(a,l),o&2048&&$c(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;)Cp(e),e=e.sibling}function Cp(e){switch(e.tag){case 26:hi(e),e.flags&ys&&e.memoizedState!==null&&R2(Mn,e.memoizedState,e.memoizedProps);break;case 5:hi(e);break;case 3:case 4:var n=Mn;Mn=ao(e.stateNode.containerInfo),hi(e),Mn=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 Np(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 bs(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];bt=l,Dp(l,e)}Np(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Mp(e),e=e.sibling}function Mp(e){switch(e.tag){case 0:case 11:case 15:bs(e),e.flags&2048&&Vr(9,e,e.return);break;case 3:bs(e);break;case 12:bs(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,Yl(e)):bs(e);break;default:bs(e)}}function Yl(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];bt=l,Dp(l,e)}Np(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Vr(8,n,n.return),Yl(n);break;case 22:a=n.stateNode,a._visibility&2&&(a._visibility&=-3,Yl(n));break;default:Yl(n)}e=e.sibling}}function Dp(e,n){for(;bt!==null;){var a=bt;switch(a.tag){case 0:case 11:case 15:Vr(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,bt=l;else e:for(a=e;bt!==null;){l=bt;var o=l.sibling,f=l.return;if(Tp(l),l===a){bt=null;break e}if(o!==null){o.return=f,bt=o;break e}bt=f}}}var FE={getCacheForType:function(e){var n=Bt(pt),a=n.data.get(e);return a===void 0&&(a=e(),n.data.set(e,a)),a}},VE=typeof WeakMap=="function"?WeakMap:Map,je=0,Ve=null,xe=null,Ne=0,He=0,nn=null,Xr=!1,mi=!1,Wc=!1,_r=0,tt=0,Zr=0,wa=0,Jc=0,_n=0,pi=0,vs=null,Qt=null,ef=!1,tf=0,Xl=1/0,Zl=null,Qr=null,Ot=0,Kr=null,gi=null,yi=0,nf=0,rf=null,Lp=null,_s=0,af=null;function rn(){if((je&2)!==0&&Ne!==0)return Ne&-Ne;if(G.T!==null){var e=ai;return e!==0?e:df()}return Ii()}function Bp(){_n===0&&(_n=(Ne&536870912)===0||Le?da():536870912);var e=vn.current;return e!==null&&(e.flags|=32),_n}function an(e,n,a){(e===Ve&&(He===2||He===9)||e.cancelPendingCommit!==null)&&(bi(e,0),$r(e,Ne,_n,!1)),wn(e,a),((je&2)===0||e!==Ve)&&(e===Ve&&((je&2)===0&&(wa|=a),tt===4&&$r(e,Ne,_n,!1)),Zn(e))}function Up(e,n,a){if((je&6)!==0)throw Error(s(327));var l=!a&&(n&124)===0&&(n&e.expiredLanes)===0||rr(e,n),o=l?XE(e,n):of(e,n,!0),f=l;do{if(o===0){mi&&!l&&$r(e,n,0,!1);break}else{if(a=e.current.alternate,f&&!PE(a)){o=of(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 v=e;o=vs;var T=v.current.memoizedState.isDehydrated;if(T&&(bi(v,g).flags|=256),g=of(v,g,!1),g!==2){if(Wc&&!T){v.errorRecoveryDisabledLanes|=f,wa|=f,o=4;break e}f=Qt,Qt=o,f!==null&&(Qt===null?Qt=f:Qt.push.apply(Qt,f))}o=g}if(f=!1,o!==2)continue}}if(o===1){bi(e,0),$r(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:$r(l,n,_n,!Xr);break e;case 2:Qt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((n&62914560)===n&&(o=tf+300-Tt(),10<o)){if($r(l,n,_n,!Xr),Lr(l,0,!0)!==0)break e;l.timeoutHandle=cg(jp.bind(null,l,a,Qt,Zl,ef,n,_n,wa,pi,Xr,f,2,-0,0),o);break e}jp(l,a,Qt,Zl,ef,n,_n,wa,pi,Xr,f,0,-0,0)}}break}while(!0);Zn(e)}function jp(e,n,a,l,o,f,g,v,T,L,q,P,j,I){if(e.timeoutHandle=-1,P=n.subtreeFlags,(P&8192||(P&16785408)===16785408)&&(Rs={stylesheets:null,count:0,unsuspend:O2},Cp(n),P=w2(),P!==null)){e.cancelPendingCommit=P(Fp.bind(null,e,n,f,a,l,o,g,v,T,q,1,j,I)),$r(e,f,g,!L);return}Fp(e,n,f,a,l,o,g,v,T)}function PE(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(!Wt(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 $r(e,n,a,l){n&=~Jc,n&=~wa,e.suspendedLanes|=n,e.pingedLanes&=~n,l&&(e.warmLanes|=n),l=e.expirationTimes;for(var o=n;0<o;){var f=31-Mt(o),g=1<<f;l[f]=-1,o&=~g}a!==0&&il(e,a,n)}function Ql(){return(je&6)===0?(Es(0),!1):!0}function sf(){if(xe!==null){if(He===0)var e=xe.return;else e=xe,dr=Sa=null,Sc(e),ci=null,fs=0,e=xe;for(;e!==null;)pp(e.alternate,e),e=e.return;xe=null}}function bi(e,n){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,u2(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),sf(),Ve=e,xe=a=ur(e.current,null),Ne=n,He=0,nn=null,Xr=!1,mi=rr(e,n),Wc=!1,pi=_n=Jc=wa=Zr=tt=0,Qt=vs=null,ef=!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-Mt(l),f=1<<o;n|=e[o],l&=~f}return _r=n,yl(),a}function Hp(e,n){_e=null,G.H=jl,n===ns||n===Ol?(n=e0(),He=3):n===$m?(n=e0(),He=4):He=n===tp?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,nn=n,xe===null&&(tt=1,kl(e,pn(n,e.current)))}function Ip(){var e=G.H;return G.H=jl,e===null?jl:e}function zp(){var e=G.A;return G.A=FE,e}function lf(){tt=4,Xr||(Ne&4194048)!==Ne&&vn.current!==null||(mi=!0),(Zr&134217727)===0&&(wa&134217727)===0||Ve===null||$r(Ve,Ne,_n,!1)}function of(e,n,a){var l=je;je|=2;var o=Ip(),f=zp();(Ve!==e||Ne!==n)&&(Zl=null,bi(e,n)),n=!1;var g=tt;e:do try{if(He!==0&&xe!==null){var v=xe,T=nn;switch(He){case 8:sf(),g=6;break e;case 3:case 2:case 9:case 6:vn.current===null&&(n=!0);var L=He;if(He=0,nn=null,vi(e,v,T,L),a&&mi){g=0;break e}break;default:L=He,He=0,nn=null,vi(e,v,T,L)}}YE(),g=tt;break}catch(q){Hp(e,q)}while(!0);return n&&e.shellSuspendCounter++,dr=Sa=null,je=l,G.H=o,G.A=f,xe===null&&(Ve=null,Ne=0,yl()),g}function YE(){for(;xe!==null;)Gp(xe)}function XE(e,n){var a=je;je|=2;var l=Ip(),o=zp();Ve!==e||Ne!==n?(Zl=null,Xl=Tt()+500,bi(e,n)):mi=rr(e,n);e:do try{if(He!==0&&xe!==null){n=xe;var f=nn;t:switch(He){case 1:He=0,nn=null,vi(e,n,f,1);break;case 2:case 9:if(Wm(f)){He=0,nn=null,kp(n);break}n=function(){He!==2&&He!==9||Ve!==e||(He=7),Zn(e)},f.then(n,n);break e;case 3:He=7;break e;case 4:He=5;break e;case 7:Wm(f)?(He=0,nn=null,kp(n)):(He=0,nn=null,vi(e,n,f,7));break;case 5:var g=null;switch(xe.tag){case 26:g=xe.memoizedState;case 5:case 27:var v=xe;if(!g||Sg(g)){He=0,nn=null;var T=v.sibling;if(T!==null)xe=T;else{var L=v.return;L!==null?(xe=L,Kl(L)):xe=null}break t}}He=0,nn=null,vi(e,n,f,5);break;case 6:He=0,nn=null,vi(e,n,f,6);break;case 8:sf(),tt=6;break e;default:throw Error(s(462))}}ZE();break}catch(q){Hp(e,q)}while(!0);return dr=Sa=null,G.H=l,G.A=o,je=a,xe!==null?0:(Ve=null,Ne=0,yl(),tt)}function ZE(){for(;xe!==null&&!Di();)Gp(xe)}function Gp(e){var n=hp(e.alternate,e,_r);e.memoizedProps=e.pendingProps,n===null?Kl(e):xe=n}function kp(e){var n=e,a=n.alternate;switch(n.tag){case 15:case 0:n=lp(a,n,n.pendingProps,n.type,void 0,Ne);break;case 11:n=lp(a,n,n.pendingProps,n.type.render,n.ref,Ne);break;case 5:Sc(n);default:pp(a,n),n=xe=qm(n,_r),n=hp(a,n,_r)}e.memoizedProps=e.pendingProps,n===null?Kl(e):xe=n}function vi(e,n,a,l){dr=Sa=null,Sc(n),ci=null,fs=0;var o=n.return;try{if(HE(e,o,n,a,Ne)){tt=1,kl(e,pn(a,e.current)),xe=null;return}}catch(f){if(o!==null)throw xe=o,f;tt=1,kl(e,pn(a,e.current)),xe=null;return}n.flags&32768?(Le||l===1?e=!0:mi||(Ne&536870912)!==0?e=!1:(Xr=e=!0,(l===2||l===9||l===3||l===6)&&(l=vn.current,l!==null&&l.tag===13&&(l.flags|=16384))),qp(n,e)):Kl(n)}function Kl(e){var n=e;do{if((n.flags&32768)!==0){qp(n,Xr);return}e=n.return;var a=zE(n.alternate,n,_r);if(a!==null){xe=a;return}if(n=n.sibling,n!==null){xe=n;return}xe=n=e}while(n!==null);tt===0&&(tt=5)}function qp(e,n){do{var a=GE(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);tt=6,xe=null}function Fp(e,n,a,l,o,f,g,v,T){e.cancelPendingCommit=null;do $l();while(Ot!==0);if((je&6)!==0)throw Error(s(327));if(n!==null){if(n===e.current)throw Error(s(177));if(f=n.lanes|n.childLanes,f|=$u,wu(e,a,f,g,v,T),e===Ve&&(xe=Ve=null,Ne=0),gi=n,Kr=e,yi=a,nf=f,rf=o,Lp=l,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,WE(ca,function(){return Zp(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||l){l=G.T,G.T=null,o=K.p,K.p=2,g=je,je|=4;try{kE(e,n,a)}finally{je=g,K.p=o,G.T=l}}Ot=1,Vp(),Pp(),Yp()}}function Vp(){if(Ot===1){Ot=0;var e=Kr,n=gi,a=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||a){a=G.T,G.T=null;var l=K.p;K.p=2;var o=je;je|=4;try{Op(n,e);var f=_f,g=Dm(e.containerInfo),v=f.focusedElem,T=f.selectionRange;if(g!==v&&v&&v.ownerDocument&&Mm(v.ownerDocument.documentElement,v)){if(T!==null&&Yu(v)){var L=T.start,q=T.end;if(q===void 0&&(q=L),"selectionStart"in v)v.selectionStart=L,v.selectionEnd=Math.min(q,v.value.length);else{var P=v.ownerDocument||document,j=P&&P.defaultView||window;if(j.getSelection){var I=j.getSelection(),he=v.textContent.length,fe=Math.min(T.start,he),ke=T.end===void 0?fe:Math.min(T.end,he);!I.extend&&fe>ke&&(g=ke,ke=fe,fe=g);var M=Nm(v,fe),C=Nm(v,ke);if(M&&C&&(I.rangeCount!==1||I.anchorNode!==M.node||I.anchorOffset!==M.offset||I.focusNode!==C.node||I.focusOffset!==C.offset)){var D=P.createRange();D.setStart(M.node,M.offset),I.removeAllRanges(),fe>ke?(I.addRange(D),I.extend(C.node,C.offset)):(D.setEnd(C.node,C.offset),I.addRange(D))}}}}for(P=[],I=v;I=I.parentNode;)I.nodeType===1&&P.push({element:I,left:I.scrollLeft,top:I.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<P.length;v++){var V=P[v];V.element.scrollLeft=V.left,V.element.scrollTop=V.top}}uo=!!vf,_f=vf=null}finally{je=o,K.p=l,G.T=a}}e.current=n,Ot=2}}function Pp(){if(Ot===2){Ot=0;var e=Kr,n=gi,a=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||a){a=G.T,G.T=null;var l=K.p;K.p=2;var o=je;je|=4;try{Sp(e,n.alternate,n)}finally{je=o,K.p=l,G.T=a}}Ot=3}}function Yp(){if(Ot===4||Ot===3){Ot=0,Li();var e=Kr,n=gi,a=yi,l=Lp;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?Ot=5:(Ot=0,gi=Kr=null,Xp(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Qr=null),Hi(a),n=n.stateNode,Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(dn,n,void 0,(n.current.flags&128)===128)}catch{}if(l!==null){n=G.T,o=K.p,K.p=2,G.T=null;try{for(var f=e.onRecoverableError,g=0;g<l.length;g++){var v=l[g];f(v.value,{componentStack:v.stack})}}finally{G.T=n,K.p=o}}(yi&3)!==0&&$l(),Zn(e),o=e.pendingLanes,(a&4194090)!==0&&(o&42)!==0?e===af?_s++:(_s=0,af=e):_s=0,Es(0)}}function Xp(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,es(n)))}function $l(e){return Vp(),Pp(),Yp(),Zp()}function Zp(){if(Ot!==5)return!1;var e=Kr,n=nf;nf=0;var a=Hi(yi),l=G.T,o=K.p;try{K.p=32>a?32:a,G.T=null,a=rf,rf=null;var f=Kr,g=yi;if(Ot=0,gi=Kr=null,yi=0,(je&6)!==0)throw Error(s(331));var v=je;if(je|=4,Mp(f.current),wp(f,f.current,g,a),je=v,Es(0,!1),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(dn,f)}catch{}return!0}finally{K.p=o,G.T=l,Xp(e,n)}}function Qp(e,n,a){n=pn(a,n),n=jc(e.stateNode,n,2),e=Gr(e,n,2),e!==null&&(wn(e,2),Zn(e))}function qe(e,n,a){if(e.tag===3)Qp(e,e,a);else for(;n!==null;){if(n.tag===3){Qp(n,e,a);break}else if(n.tag===1){var l=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Qr===null||!Qr.has(l))){e=pn(a,e),a=J0(2),l=Gr(n,a,2),l!==null&&(ep(a,l,n,e),wn(l,2),Zn(l));break}}n=n.return}}function uf(e,n,a){var l=e.pingCache;if(l===null){l=e.pingCache=new VE;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)||(Wc=!0,o.add(a),e=QE.bind(null,e,n,a),n.then(e,e))}function QE(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&&(tt===4||tt===3&&(Ne&62914560)===Ne&&300>Tt()-tf?(je&2)===0&&bi(e,0):Jc|=a,pi===Ne&&(pi=0)),Zn(e)}function Kp(e,n){n===0&&(n=ha()),e=ei(e,n),e!==null&&(wn(e,n),Zn(e))}function KE(e){var n=e.memoizedState,a=0;n!==null&&(a=n.retryLane),Kp(e,a)}function $E(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),Kp(e,a)}function WE(e,n){return qt(e,n)}var Wl=null,_i=null,cf=!1,Jl=!1,ff=!1,Ca=0;function Zn(e){e!==_i&&e.next===null&&(_i===null?Wl=_i=e:_i=_i.next=e),Jl=!0,cf||(cf=!0,e2())}function Es(e,n){if(!ff&&Jl){ff=!0;do for(var a=!1,l=Wl;l!==null;){if(e!==0){var o=l.pendingLanes;if(o===0)var f=0;else{var g=l.suspendedLanes,v=l.pingedLanes;f=(1<<31-Mt(42|e)+1)-1,f&=o&~(g&~v),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(a=!0,eg(l,f))}else f=Ne,f=Lr(l,l===Ve?f:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(f&3)===0||rr(l,f)||(a=!0,eg(l,f));l=l.next}while(a);ff=!1}}function JE(){$p()}function $p(){Jl=cf=!1;var e=0;Ca!==0&&(o2()&&(e=Ca),Ca=0);for(var n=Tt(),a=null,l=Wl;l!==null;){var o=l.next,f=Wp(l,n);f===0?(l.next=null,a===null?Wl=o:a.next=o,o===null&&(_i=a)):(a=l,(e!==0||(f&3)!==0)&&(Jl=!0)),l=o}Es(e)}function Wp(e,n){for(var a=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var g=31-Mt(f),v=1<<g,T=o[g];T===-1?((v&a)===0||(v&l)!==0)&&(o[g]=Ru(v,n)):T<=n&&(e.expiredLanes|=v),f&=~v}if(n=Ve,a=Ne,a=Lr(e,e===n?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===n&&(He===2||He===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&On(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||rr(e,a)){if(n=a&-a,n===e.callbackPriority)return n;switch(l!==null&&On(l),Hi(a)){case 2:case 8:a=Bi;break;case 32:a=ca;break;case 268435456:a=Fa;break;default:a=ca}return l=Jp.bind(null,e),a=qt(a,l),e.callbackPriority=n,e.callbackNode=a,n}return l!==null&&l!==null&&On(l),e.callbackPriority=2,e.callbackNode=null,2}function Jp(e,n){if(Ot!==0&&Ot!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if($l()&&e.callbackNode!==a)return null;var l=Ne;return l=Lr(e,e===Ve?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Up(e,l,n),Wp(e,Tt()),e.callbackNode!=null&&e.callbackNode===a?Jp.bind(null,e):null)}function eg(e,n){if($l())return null;Up(e,n,!0)}function e2(){c2(function(){(je&6)!==0?qt(ua,JE):$p()})}function df(){return Ca===0&&(Ca=da()),Ca}function tg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:cl(""+e)}function ng(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 t2(e,n,a,l,o){if(n==="submit"&&a&&a.stateNode===o){var f=tg((o[Dt]||null).action),g=l.submitter;g&&(n=(n=g[Dt]||null)?tg(n.formAction):g.getAttribute("formAction"),n!==null&&(f=n,g=null));var v=new ml("action","action",null,l,o);e.push({event:v,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Ca!==0){var T=g?ng(o,g):new FormData(o);Mc(a,{pending:!0,data:T,method:o.method,action:f},null,T)}}else typeof f=="function"&&(v.preventDefault(),T=g?ng(o,g):new FormData(o),Mc(a,{pending:!0,data:T,method:o.method,action:f},f,T))},currentTarget:o}]})}}for(var hf=0;hf<Ku.length;hf++){var mf=Ku[hf],n2=mf.toLowerCase(),r2=mf[0].toUpperCase()+mf.slice(1);Nn(n2,"on"+r2)}Nn(Um,"onAnimationEnd"),Nn(jm,"onAnimationIteration"),Nn(Hm,"onAnimationStart"),Nn("dblclick","onDoubleClick"),Nn("focusin","onFocus"),Nn("focusout","onBlur"),Nn(_E,"onTransitionRun"),Nn(EE,"onTransitionStart"),Nn(SE,"onTransitionCancel"),Nn(Im,"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(" "),a2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ss));function rg(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 v=l[g],T=v.instance,L=v.currentTarget;if(v=v.listener,T!==f&&o.isPropagationStopped())break e;f=v,o.currentTarget=L;try{f(o)}catch(q){Gl(q)}o.currentTarget=null,f=T}else for(g=0;g<l.length;g++){if(v=l[g],T=v.instance,L=v.currentTarget,v=v.listener,T!==f&&o.isPropagationStopped())break e;f=v,o.currentTarget=L;try{f(o)}catch(q){Gl(q)}o.currentTarget=null,f=T}}}}function Oe(e,n){var a=n[qn];a===void 0&&(a=n[qn]=new Set);var l=e+"__bubble";a.has(l)||(ag(n,e,2,!1),a.add(l))}function pf(e,n,a){var l=0;n&&(l|=4),ag(a,e,l,n)}var eo="_reactListening"+Math.random().toString(36).slice(2);function gf(e){if(!e[eo]){e[eo]=!0,le.forEach(function(a){a!=="selectionchange"&&(a2.has(a)||pf(a,!1,e),pf(a,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[eo]||(n[eo]=!0,pf("selectionchange",!1,n))}}function ag(e,n,a,l){switch(wg(n)){case 2:var o=M2;break;case 8:o=D2;break;default:o=Nf}a=o.bind(null,n,a,e),o=void 0,!Hu||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 yf(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 v=l.stateNode.containerInfo;if(v===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(;v!==null;){if(g=ar(v),g===null)return;if(T=g.tag,T===5||T===6||T===26||T===27){l=f=g;continue e}v=v.parentNode}}l=l.return}fm(function(){var L=f,q=Uu(a),P=[];e:{var j=zm.get(e);if(j!==void 0){var I=ml,he=e;switch(e){case"keypress":if(dl(a)===0)break e;case"keydown":case"keyup":I=W_;break;case"focusin":he="focus",I=ku;break;case"focusout":he="blur",I=ku;break;case"beforeblur":case"afterblur":I=ku;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":I=mm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":I=G_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":I=tE;break;case Um:case jm:case Hm:I=F_;break;case Im:I=rE;break;case"scroll":case"scrollend":I=I_;break;case"wheel":I=iE;break;case"copy":case"cut":case"paste":I=P_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":I=gm;break;case"toggle":case"beforetoggle":I=lE}var fe=(n&4)!==0,ke=!fe&&(e==="scroll"||e==="scrollend"),M=fe?j!==null?j+"Capture":null:j;fe=[];for(var C=L,D;C!==null;){var V=C;if(D=V.stateNode,V=V.tag,V!==5&&V!==26&&V!==27||D===null||M===null||(V=ki(C,M),V!=null&&fe.push(Ts(C,V,D))),ke)break;C=C.return}0<fe.length&&(j=new I(j,he,null,a,q),P.push({event:j,listeners:fe}))}}if((n&7)===0){e:{if(j=e==="mouseover"||e==="pointerover",I=e==="mouseout"||e==="pointerout",j&&a!==Bu&&(he=a.relatedTarget||a.fromElement)&&(ar(he)||he[At]))break e;if((I||j)&&(j=q.window===q?q:(j=q.ownerDocument)?j.defaultView||j.parentWindow:window,I?(he=a.relatedTarget||a.toElement,I=L,he=he?ar(he):null,he!==null&&(ke=c(he),fe=he.tag,he!==ke||fe!==5&&fe!==27&&fe!==6)&&(he=null)):(I=null,he=L),I!==he)){if(fe=mm,V="onMouseLeave",M="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(fe=gm,V="onPointerLeave",M="onPointerEnter",C="pointer"),ke=I==null?j:Ur(I),D=he==null?j:Ur(he),j=new fe(V,C+"leave",I,a,q),j.target=ke,j.relatedTarget=D,V=null,ar(q)===L&&(fe=new fe(M,C+"enter",he,a,q),fe.target=D,fe.relatedTarget=ke,V=fe),ke=V,I&&he)t:{for(fe=I,M=he,C=0,D=fe;D;D=Ei(D))C++;for(D=0,V=M;V;V=Ei(V))D++;for(;0<C-D;)fe=Ei(fe),C--;for(;0<D-C;)M=Ei(M),D--;for(;C--;){if(fe===M||M!==null&&fe===M.alternate)break t;fe=Ei(fe),M=Ei(M)}fe=null}else fe=null;I!==null&&ig(P,j,I,fe,!1),he!==null&&ke!==null&&ig(P,ke,he,fe,!0)}}e:{if(j=L?Ur(L):window,I=j.nodeName&&j.nodeName.toLowerCase(),I==="select"||I==="input"&&j.type==="file")var ne=Am;else if(Sm(j))if(xm)ne=yE;else{ne=pE;var Se=mE}else I=j.nodeName,!I||I.toLowerCase()!=="input"||j.type!=="checkbox"&&j.type!=="radio"?L&&Lu(L.elementType)&&(ne=Am):ne=gE;if(ne&&(ne=ne(e,L))){Tm(P,ne,a,q);break e}Se&&Se(e,j,L),e==="focusout"&&L&&j.type==="number"&&L.memoizedProps.value!=null&&Du(j,"number",j.value)}switch(Se=L?Ur(L):window,e){case"focusin":(Sm(Se)||Se.contentEditable==="true")&&($a=Se,Xu=L,Qi=null);break;case"focusout":Qi=Xu=$a=null;break;case"mousedown":Zu=!0;break;case"contextmenu":case"mouseup":case"dragend":Zu=!1,Lm(P,a,q);break;case"selectionchange":if(vE)break;case"keydown":case"keyup":Lm(P,a,q)}var oe;if(Fu)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?_m(e,a)&&(de="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(de="onCompositionStart");de&&(ym&&a.locale!=="ko"&&(Ka||de!=="onCompositionStart"?de==="onCompositionEnd"&&Ka&&(oe=dm()):(jr=q,Iu="value"in jr?jr.value:jr.textContent,Ka=!0)),Se=to(L,de),0<Se.length&&(de=new pm(de,e,null,a,q),P.push({event:de,listeners:Se}),oe?de.data=oe:(oe=Em(a),oe!==null&&(de.data=oe)))),(oe=uE?cE(e,a):fE(e,a))&&(de=to(L,"onBeforeInput"),0<de.length&&(Se=new pm("onBeforeInput","beforeinput",null,a,q),P.push({event:Se,listeners:de}),Se.data=oe)),t2(P,e,L,a,q)}rg(P,n)})}function Ts(e,n,a){return{instance:e,listener:n,currentTarget:a}}function to(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 ig(e,n,a,l,o){for(var f=n._reactName,g=[];a!==null&&a!==l;){var v=a,T=v.alternate,L=v.stateNode;if(v=v.tag,T!==null&&T===l)break;v!==5&&v!==26&&v!==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 i2=/\r\n?/g,s2=/\u0000|\uFFFD/g;function sg(e){return(typeof e=="string"?e:""+e).replace(i2,`
|
|
49
|
-
`).replace(s2,"")}function lg(e,n){return n=sg(n),sg(e)===n}function no(){}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":Fn(e,"class",l);break;case"tabIndex":Fn(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Fn(e,a,l);break;case"style":um(e,l,f);break;case"data":if(n!=="object"){Fn(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=cl(""+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=cl(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=no);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=cl(""+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),Pt(e,"popover",l);break;case"xlinkActuate":$t(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":$t(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":$t(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":$t(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":$t(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":$t(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":$t(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":$t(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":$t(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Pt(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=j_.get(a)||a,Pt(e,a,l))}}function bf(e,n,a,l,o,f){switch(a){case"style":um(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=no);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[Dt]||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,""):Pt(e,a,l)}}}function Rt(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 v=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":v=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(s(137,n));break;default:Ge(e,n,l,q,a,null)}}im(e,f,v,T,L,g,o,!1),ol(e);return;case"select":Oe("invalid",e),l=g=f=null;for(o in a)if(a.hasOwnProperty(o)&&(v=a[o],v!=null))switch(o){case"value":f=v;break;case"defaultValue":g=v;break;case"multiple":l=v;default:Ge(e,n,o,v,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)&&(v=a[g],v!=null))switch(g){case"value":l=v;break;case"defaultValue":o=v;break;case"children":f=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(s(91));break;default:Ge(e,n,g,v,a,null)}lm(e,l,o,f),ol(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(Lu(n)){for(q in a)a.hasOwnProperty(q)&&(l=a[q],l!==void 0&&bf(e,n,q,l,a,void 0));return}}for(v in a)a.hasOwnProperty(v)&&(l=a[v],l!=null&&Ge(e,n,v,l,a,null))}function l2(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,v=null,T=null,L=null,q=null;for(I in a){var P=a[I];if(a.hasOwnProperty(I)&&P!=null)switch(I){case"checked":break;case"value":break;case"defaultValue":T=P;default:l.hasOwnProperty(I)||Ge(e,n,I,null,l,P)}}for(var j in l){var I=l[j];if(P=a[j],l.hasOwnProperty(j)&&(I!=null||P!=null))switch(j){case"type":f=I;break;case"name":o=I;break;case"checked":L=I;break;case"defaultChecked":q=I;break;case"value":g=I;break;case"defaultValue":v=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(s(137,n));break;default:I!==P&&Ge(e,n,j,I,l,P)}}Mu(e,g,v,T,L,q,f,o);return;case"select":I=g=v=j=null;for(f in a)if(T=a[f],a.hasOwnProperty(f)&&T!=null)switch(f){case"value":break;case"multiple":I=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":j=f;break;case"defaultValue":v=f;break;case"multiple":g=f;default:f!==T&&Ge(e,n,o,f,l,T)}n=v,a=g,l=I,j!=null?Ya(e,!!a,j,!1):!!l!=!!a&&(n!=null?Ya(e,!!a,n,!0):Ya(e,!!a,a?[]:"",!1));return;case"textarea":I=j=null;for(v in a)if(o=a[v],a.hasOwnProperty(v)&&o!=null&&!l.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Ge(e,n,v,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":j=o;break;case"defaultValue":I=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)}sm(e,j,I);return;case"option":for(var he in a)if(j=a[he],a.hasOwnProperty(he)&&j!=null&&!l.hasOwnProperty(he))switch(he){case"selected":e.selected=!1;break;default:Ge(e,n,he,null,l,j)}for(T in l)if(j=l[T],I=a[T],l.hasOwnProperty(T)&&j!==I&&(j!=null||I!=null))switch(T){case"selected":e.selected=j&&typeof j!="function"&&typeof j!="symbol";break;default:Ge(e,n,T,j,l,I)}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)j=a[fe],a.hasOwnProperty(fe)&&j!=null&&!l.hasOwnProperty(fe)&&Ge(e,n,fe,null,l,j);for(L in l)if(j=l[L],I=a[L],l.hasOwnProperty(L)&&j!==I&&(j!=null||I!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(s(137,n));break;default:Ge(e,n,L,j,l,I)}return;default:if(Lu(n)){for(var ke in a)j=a[ke],a.hasOwnProperty(ke)&&j!==void 0&&!l.hasOwnProperty(ke)&&bf(e,n,ke,void 0,l,j);for(q in l)j=l[q],I=a[q],!l.hasOwnProperty(q)||j===I||j===void 0&&I===void 0||bf(e,n,q,j,l,I);return}}for(var M in a)j=a[M],a.hasOwnProperty(M)&&j!=null&&!l.hasOwnProperty(M)&&Ge(e,n,M,null,l,j);for(P in l)j=l[P],I=a[P],!l.hasOwnProperty(P)||j===I||j==null&&I==null||Ge(e,n,P,j,l,I)}var vf=null,_f=null;function ro(e){return e.nodeType===9?e:e.ownerDocument}function og(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 ug(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 Ef(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 Sf=null;function o2(){var e=window.event;return e&&e.type==="popstate"?e===Sf?!1:(Sf=e,!0):(Sf=null,!1)}var cg=typeof setTimeout=="function"?setTimeout:void 0,u2=typeof clearTimeout=="function"?clearTimeout:void 0,fg=typeof Promise=="function"?Promise:void 0,c2=typeof queueMicrotask=="function"?queueMicrotask:typeof fg<"u"?function(e){return fg.resolve(null).then(e).catch(f2)}:cg;function f2(e){setTimeout(function(){throw e})}function Wr(e){return e==="head"}function dg(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 v=g.nextSibling,T=g.nodeName;g[Br]||T==="SCRIPT"||T==="STYLE"||T==="LINK"&&g.rel.toLowerCase()==="stylesheet"||a.removeChild(g),g=v}}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 Tf(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":Tf(a),Kt(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function d2(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[Br])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=Dn(e.nextSibling),e===null)break}return null}function h2(e,n,a){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Dn(e.nextSibling),e===null))return null;return e}function Af(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function m2(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 Dn(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 xf=null;function hg(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 mg(e,n,a){switch(n=ro(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]);Kt(e)}var En=new Map,pg=new Set;function ao(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Er=K.d;K.d={f:p2,r:g2,D:y2,C:b2,L:v2,m:_2,X:S2,S:E2,M:T2};function p2(){var e=Er.f(),n=Ql();return e||n}function g2(e){var n=ir(e);n!==null&&n.tag===5&&n.type==="form"?U0(n):Er.r(e)}var Si=typeof document>"u"?null:document;function gg(e,n,a){var l=Si;if(l&&typeof n=="string"&&n){var o=mn(n);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),pg.has(o)||(pg.add(o),e={rel:e,crossOrigin:a,href:n},l.querySelector(o)===null&&(n=l.createElement("link"),Rt(n,"link",e),lt(n),l.head.appendChild(n)))}}function y2(e){Er.D(e),gg("dns-prefetch",e,null)}function b2(e,n){Er.C(e,n),gg("preconnect",e,n)}function v2(e,n,a){Er.L(e,n,a);var l=Si;if(l&&e&&n){var o='link[rel="preload"][as="'+mn(n)+'"]';n==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+mn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+mn(a.imageSizes)+'"]')):o+='[href="'+mn(e)+'"]';var f=o;switch(n){case"style":f=Ti(e);break;case"script":f=Ai(e)}En.has(f)||(e=b({rel:"preload",href:n==="image"&&a&&a.imageSrcSet?void 0:e,as:n},a),En.set(f,e),l.querySelector(o)!==null||n==="style"&&l.querySelector(xs(f))||n==="script"&&l.querySelector(Os(f))||(n=l.createElement("link"),Rt(n,"link",e),lt(n),l.head.appendChild(n)))}}function _2(e,n){Er.m(e,n);var a=Si;if(a&&e){var l=n&&typeof n.as=="string"?n.as:"script",o='link[rel="modulepreload"][as="'+mn(l)+'"][href="'+mn(e)+'"]',f=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=Ai(e)}if(!En.has(f)&&(e=b({rel:"modulepreload",href:e},n),En.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"),Rt(l,"link",e),lt(l),a.head.appendChild(l)}}}function E2(e,n,a){Er.S(e,n,a);var l=Si;if(l&&e){var o=sr(l).hoistableStyles,f=Ti(e);n=n||"default";var g=o.get(f);if(!g){var v={loading:0,preload:null};if(g=l.querySelector(xs(f)))v.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":n},a),(a=En.get(f))&&Of(e,a);var T=g=l.createElement("link");lt(T),Rt(T,"link",e),T._p=new Promise(function(L,q){T.onload=L,T.onerror=q}),T.addEventListener("load",function(){v.loading|=1}),T.addEventListener("error",function(){v.loading|=2}),v.loading|=4,io(g,n,l)}g={type:"stylesheet",instance:g,count:1,state:v},o.set(f,g)}}}function S2(e,n){Er.X(e,n);var a=Si;if(a&&e){var l=sr(a).hoistableScripts,o=Ai(e),f=l.get(o);f||(f=a.querySelector(Os(o)),f||(e=b({src:e,async:!0},n),(n=En.get(o))&&Rf(e,n),f=a.createElement("script"),lt(f),Rt(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(o,f))}}function T2(e,n){Er.M(e,n);var a=Si;if(a&&e){var l=sr(a).hoistableScripts,o=Ai(e),f=l.get(o);f||(f=a.querySelector(Os(o)),f||(e=b({src:e,async:!0,type:"module"},n),(n=En.get(o))&&Rf(e,n),f=a.createElement("script"),lt(f),Rt(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(o,f))}}function yg(e,n,a,l){var o=(o=ue.current)?ao(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=sr(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=sr(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),En.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},En.set(e,a),f||A2(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=sr(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="'+mn(e)+'"'}function xs(e){return'link[rel="stylesheet"]['+e+"]"}function bg(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function A2(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}),Rt(n,"link",a),lt(n),e.head.appendChild(n))}function Ai(e){return'[src="'+mn(e)+'"]'}function Os(e){return"script[async]"+e}function vg(e,n,a){if(n.count++,n.instance===null)switch(n.type){case"style":var l=e.querySelector('style[data-href~="'+mn(a.href)+'"]');if(l)return n.instance=l,lt(l),l;var o=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),lt(l),Rt(l,"style",o),io(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,lt(f),f;l=bg(a),(o=En.get(o))&&Of(l,o),f=(e.ownerDocument||e).createElement("link"),lt(f);var g=f;return g._p=new Promise(function(v,T){g.onload=v,g.onerror=T}),Rt(f,"link",l),n.state.loading|=4,io(f,a.precedence,e),n.instance=f;case"script":return f=Ai(a.src),(o=e.querySelector(Os(f)))?(n.instance=o,lt(o),o):(l=a,(o=En.get(f))&&(l=b({},a),Rf(l,o)),e=e.ownerDocument||e,o=e.createElement("script"),lt(o),Rt(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,io(l,a.precedence,e));return n.instance}function io(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 v=l[g];if(v.dataset.precedence===n)f=v;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 Of(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function Rf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var so=null;function _g(e,n,a){if(so===null){var l=new Map,o=so=new Map;o.set(a,l)}else o=so,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[Br]||f[ht]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var g=f.getAttribute(n)||"";g=e+g;var v=l.get(g);v?v.push(f):l.set(g,[f])}}return l}function Eg(e,n,a){e=e.ownerDocument||e,e.head.insertBefore(a,n==="title"?e.querySelector("head > title"):null)}function x2(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 Sg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Rs=null;function O2(){}function R2(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=lo.bind(l),e.then(l,l)),n.state.loading|=4,n.instance=f,lt(f);return}f=e.ownerDocument||e,a=bg(a),(o=En.get(o))&&Of(a,o),f=f.createElement("link"),lt(f);var g=f;g._p=new Promise(function(v,T){g.onload=v,g.onerror=T}),Rt(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=lo.bind(l),e.addEventListener("load",n),e.addEventListener("error",n))}}function w2(){if(Rs===null)throw Error(s(475));var e=Rs;return e.stylesheets&&e.count===0&&wf(e,e.stylesheets),0<e.count?function(n){var a=setTimeout(function(){if(e.stylesheets&&wf(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 lo(){if(this.count--,this.count===0){if(this.stylesheets)wf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var oo=null;function wf(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,oo=new Map,n.forEach(C2,e),oo=null,lo.call(e))}function C2(e,n){if(!(n.state.loading&4)){var a=oo.get(e);if(a)var l=a.get(null);else{a=new Map,oo.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=lo.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 N2(e,n,a,l,o,f,g,v){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=ji(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ji(0),this.hiddenUpdates=ji(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=f,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map}function Tg(e,n,a,l,o,f,g,v,T,L,q,P){return e=new N2(e,n,a,g,v,T,L,P),n=1,f===!0&&(n|=24),f=Jt(3,null,null,n),e.current=f,f.stateNode=e,n=oc(),n.refCount++,e.pooledCache=n,n.refCount++,f.memoizedState={element:l,isDehydrated:a,cache:n},dc(f),e}function Ag(e){return e?(e=ti,e):ti}function xg(e,n,a,l,o,f){o=Ag(o),l.context===null?l.context=o:l.pendingContext=o,l=zr(n),l.payload={element:a},f=f===void 0?null:f,f!==null&&(l.callback=f),a=Gr(e,l,n),a!==null&&(an(a,e,n),as(a,e,n))}function Og(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<n?a:n}}function Cf(e,n){Og(e,n),(e=e.alternate)&&Og(e,n)}function Rg(e){if(e.tag===13){var n=ei(e,67108864);n!==null&&an(n,e,67108864),Cf(e,67108864)}}var uo=!0;function M2(e,n,a,l){var o=G.T;G.T=null;var f=K.p;try{K.p=2,Nf(e,n,a,l)}finally{K.p=f,G.T=o}}function D2(e,n,a,l){var o=G.T;G.T=null;var f=K.p;try{K.p=8,Nf(e,n,a,l)}finally{K.p=f,G.T=o}}function Nf(e,n,a,l){if(uo){var o=Mf(l);if(o===null)yf(e,n,l,co,a),Cg(e,l);else if(B2(o,e,n,a,l))l.stopPropagation();else if(Cg(e,l),n&4&&-1<L2.indexOf(e)){for(;o!==null;){var f=ir(o);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var g=Vt(f.pendingLanes);if(g!==0){var v=f;for(v.pendingLanes|=2,v.entangledLanes|=2;g;){var T=1<<31-Mt(g);v.entanglements[1]|=T,g&=~T}Zn(f),(je&6)===0&&(Xl=Tt()+500,Es(0))}}break;case 13:v=ei(f,2),v!==null&&an(v,f,2),Ql(),Cf(f,2)}if(f=Mf(l),f===null&&yf(e,n,l,co,a),f===o)break;o=f}o!==null&&l.stopPropagation()}else yf(e,n,l,null,a)}}function Mf(e){return e=Uu(e),Df(e)}var co=null;function Df(e){if(co=null,e=ar(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 co=e,null}function wg(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 Ou:return 32;case Fa:return 268435456;default:return 32}default:return 32}}var Lf=!1,Jr=null,ea=null,ta=null,Cs=new Map,Ns=new Map,na=[],L2="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 Cg(e,n){switch(e){case"focusin":case"focusout":Jr=null;break;case"dragenter":case"dragleave":ea=null;break;case"mouseover":case"mouseout":ta=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=ir(n),n!==null&&Rg(n)),e):(e.eventSystemFlags|=l,n=e.targetContainers,o!==null&&n.indexOf(o)===-1&&n.push(o),e)}function B2(e,n,a,l,o){switch(n){case"focusin":return Jr=Ms(Jr,e,n,a,l,o),!0;case"dragenter":return ea=Ms(ea,e,n,a,l,o),!0;case"mouseover":return ta=Ms(ta,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 Ng(e){var n=ar(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=rn();l=kn(l);var o=ei(a,l);o!==null&&an(o,a,l),Cf(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 fo(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var a=Mf(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Bu=l,a.target.dispatchEvent(l),Bu=null}else return n=ir(a),n!==null&&Rg(n),e.blockedOn=a,!1;n.shift()}return!0}function Mg(e,n,a){fo(e)&&a.delete(n)}function U2(){Lf=!1,Jr!==null&&fo(Jr)&&(Jr=null),ea!==null&&fo(ea)&&(ea=null),ta!==null&&fo(ta)&&(ta=null),Cs.forEach(Mg),Ns.forEach(Mg)}function ho(e,n){e.blockedOn===n&&(e.blockedOn=null,Lf||(Lf=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,U2)))}var mo=null;function Dg(e){mo!==e&&(mo=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){mo===e&&(mo=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(Df(l||a)===null)continue;break}var f=ir(a);f!==null&&(e.splice(n,3),n-=3,Mc(f,{pending:!0,data:o,method:a.method,action:l},l,o))}}))}function Ds(e){function n(T){return ho(T,e)}Jr!==null&&ho(Jr,e),ea!==null&&ho(ea,e),ta!==null&&ho(ta,e),Cs.forEach(n),Ns.forEach(n);for(var a=0;a<na.length;a++){var l=na[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<na.length&&(a=na[0],a.blockedOn===null);)Ng(a),a.blockedOn===null&&na.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[Dt]||null;if(typeof f=="function")g||Dg(a);else if(g){var v=null;if(f&&f.hasAttribute("formAction")){if(o=f,g=f[Dt]||null)v=g.formAction;else if(Df(o)!==null)continue}else v=g.action;typeof v=="function"?a[l+1]=v:(a.splice(l,3),l-=3),Dg(a)}}}function Bf(e){this._internalRoot=e}po.prototype.render=Bf.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(s(409));var a=n.current,l=rn();xg(a,l,e,n,null,null)},po.prototype.unmount=Bf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;xg(e.current,2,null,e,null,null),Ql(),n[At]=null}};function po(e){this._internalRoot=e}po.prototype.unstable_scheduleHydration=function(e){if(e){var n=Ii();e={blockedOn:null,target:e,priority:n};for(var a=0;a<na.length&&n!==0&&n<na[a].priority;a++);na.splice(a,0,e),a===0&&Ng(e)}};var Lg=r.version;if(Lg!=="19.1.1")throw Error(s(527,Lg,"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 j2={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var go=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!go.isDisabled&&go.supportsFiber)try{dn=go.inject(j2),Nt=go}catch{}}return Bs.createRoot=function(e,n){if(!u(e))throw Error(s(299));var a=!1,l="",o=Q0,f=K0,g=$0,v=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&&(v=n.unstable_transitionCallbacks)),n=Tg(e,1,!1,null,null,a,l,o,f,g,v,null),e[At]=n.current,gf(e),new Bf(n)},Bs.hydrateRoot=function(e,n,a){if(!u(e))throw Error(s(299));var l=!1,o="",f=Q0,g=K0,v=$0,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&&(v=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(T=a.unstable_transitionCallbacks),a.formState!==void 0&&(L=a.formState)),n=Tg(e,1,!0,n,a??null,l,o,f,g,v,T,L),n.context=Ag(null),a=n.current,l=rn(),l=kn(l),o=zr(l),o.callback=null,Gr(a,o,l),a=l,n.current.lanes=a,wn(n,a),Zn(n),e[At]=n.current,gf(e),new po(n)},Bs.version="19.1.1",Bs}var Fg;function Y2(){if(Fg)return jf.exports;Fg=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=P2(),jf.exports}var X2=Y2(),B=uu();const _1=ou(B);var kf={exports:{}},qf={};/**
|
|
48
|
+
`+a.stack}}function hn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function am(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function L_(e){var n=am(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 ul(e){e._valueTracker||(e._valueTracker=L_(e))}function im(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var a=n.getValue(),l="";return e&&(l=am(e)?e.checked?"true":"false":e.value),e=l,e!==a?(n.setValue(e),!0):!1}function cl(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 B_=/[\n"\\]/g;function mn(e){return e.replace(B_,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Nu(e,n,a,l,o,f,g,v){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=""+hn(n)):e.value!==""+hn(n)&&(e.value=""+hn(n)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),n!=null?Mu(e,g,hn(n)):a!=null?Mu(e,g,hn(a)):l!=null&&e.removeAttribute("value"),o==null&&f!=null&&(e.defaultChecked=!!f),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+hn(v):e.removeAttribute("name")}function sm(e,n,a,l,o,f,g,v){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?""+hn(a):"",n=n!=null?""+hn(n):a,v||n===e.value||(e.value=n),e.defaultValue=n}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=v?e.checked:!!l,e.defaultChecked=!!l,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g)}function Mu(e,n,a){n==="number"&&cl(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=""+hn(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 lm(e,n,a){if(n!=null&&(n=""+hn(n),n!==e.value&&(e.value=n),a==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=a!=null?""+hn(a):""}function om(e,n,a,l){if(n==null){if(l!=null){if(a!=null)throw Error(s(92));if(ve(l)){if(1<l.length)throw Error(s(93));l=l[0]}a=l}a==null&&(a=""),n=a}a=hn(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 U_=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 um(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||U_.has(n)?n==="float"?e.cssFloat=a:e[n]=(""+a).trim():e[n]=a+"px"}function cm(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&&um(e,o,l)}else for(var f in n)n.hasOwnProperty(f)&&um(e,f,n[f])}function Du(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 j_=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"]]),H_=/^[\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 fl(e){return H_.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Lu=null;function Bu(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 fm(e){var n=ir(e);if(n&&(e=n.stateNode)){var a=e[Dt]||null;e:switch(e=n.stateNode,n.type){case"input":if(Nu(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="'+mn(""+n)+'"][type="radio"]'),n=0;n<a.length;n++){var l=a[n];if(l!==e&&l.form===e.form){var o=l[Dt]||null;if(!o)throw Error(s(90));Nu(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&&im(l)}break e;case"textarea":lm(e,a.value,a.defaultValue);break e;case"select":n=a.value,n!=null&&Ya(e,!!a.multiple,n,!1)}}}var Uu=!1;function dm(e,n,a){if(Uu)return e(n,a);Uu=!0;try{var l=e(n);return l}finally{if(Uu=!1,(Za!==null||Qa!==null)&&(Kl(),Za&&(n=Za,e=Qa,Qa=Za=null,fm(n),e)))for(n=0;n<e.length;n++)fm(e[n])}}function ki(e,n){var a=e.stateNode;if(a===null)return null;var l=a[Dt]||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 or=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ju=!1;if(or)try{var qi={};Object.defineProperty(qi,"passive",{get:function(){ju=!0}}),window.addEventListener("test",qi,qi),window.removeEventListener("test",qi,qi)}catch{ju=!1}var jr=null,Hu=null,dl=null;function hm(){if(dl)return dl;var e,n=Hu,a=n.length,l,o="value"in jr?jr.value:jr.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 dl=o.slice(e,1<l?1-l:void 0)}function hl(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 ml(){return!0}function mm(){return!1}function Yt(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 v in e)e.hasOwnProperty(v)&&(a=e[v],this[v]=a?a(f):f[v]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?ml:mm,this.isPropagationStopped=mm,this}return b(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=ml)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ml)},persist:function(){},isPersistent:ml}),n}var ma={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pl=Yt(ma),Fi=b({},ma,{view:0,detail:0}),I_=Yt(Fi),Iu,zu,Vi,gl=b({},Fi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ku,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"?(Iu=e.screenX-Vi.screenX,zu=e.screenY-Vi.screenY):zu=Iu=0,Vi=e),Iu)},movementY:function(e){return"movementY"in e?e.movementY:zu}}),pm=Yt(gl),z_=b({},gl,{dataTransfer:0}),G_=Yt(z_),k_=b({},Fi,{relatedTarget:0}),Gu=Yt(k_),q_=b({},ma,{animationName:0,elapsedTime:0,pseudoElement:0}),F_=Yt(q_),V_=b({},ma,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),P_=Yt(V_),Y_=b({},ma,{data:0}),gm=Yt(Y_),X_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Z_={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"},Q_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function K_(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=Q_[e])?!!n[e]:!1}function ku(){return K_}var $_=b({},Fi,{key:function(e){if(e.key){var n=X_[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=hl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Z_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ku,charCode:function(e){return e.type==="keypress"?hl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?hl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),W_=Yt($_),J_=b({},gl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ym=Yt(J_),eE=b({},Fi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ku}),tE=Yt(eE),nE=b({},ma,{propertyName:0,elapsedTime:0,pseudoElement:0}),rE=Yt(nE),aE=b({},gl,{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}),iE=Yt(aE),sE=b({},ma,{newState:0,oldState:0}),lE=Yt(sE),oE=[9,13,27,32],qu=or&&"CompositionEvent"in window,Pi=null;or&&"documentMode"in document&&(Pi=document.documentMode);var uE=or&&"TextEvent"in window&&!Pi,bm=or&&(!qu||Pi&&8<Pi&&11>=Pi),vm=" ",_m=!1;function Em(e,n){switch(e){case"keyup":return oE.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Sm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ka=!1;function cE(e,n){switch(e){case"compositionend":return Sm(n);case"keypress":return n.which!==32?null:(_m=!0,vm);case"textInput":return e=n.data,e===vm&&_m?null:e;default:return null}}function fE(e,n){if(Ka)return e==="compositionend"||!qu&&Em(e,n)?(e=hm(),dl=Hu=jr=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 bm&&n.locale!=="ko"?null:n.data;default:return null}}var dE={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 Tm(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!dE[e.type]:n==="textarea"}function Am(e,n,a,l){Za?Qa?Qa.push(l):Qa=[l]:Za=l,n=no(n,"onChange"),0<n.length&&(a=new pl("onChange","change",null,a,l),e.push({event:a,listeners:n}))}var Yi=null,Xi=null;function hE(e){ag(e,0)}function yl(e){var n=Ur(e);if(im(n))return e}function xm(e,n){if(e==="change")return n}var Om=!1;if(or){var Fu;if(or){var Vu="oninput"in document;if(!Vu){var Rm=document.createElement("div");Rm.setAttribute("oninput","return;"),Vu=typeof Rm.oninput=="function"}Fu=Vu}else Fu=!1;Om=Fu&&(!document.documentMode||9<document.documentMode)}function wm(){Yi&&(Yi.detachEvent("onpropertychange",Cm),Xi=Yi=null)}function Cm(e){if(e.propertyName==="value"&&yl(Xi)){var n=[];Am(n,Xi,e,Bu(e)),dm(hE,n)}}function mE(e,n,a){e==="focusin"?(wm(),Yi=n,Xi=a,Yi.attachEvent("onpropertychange",Cm)):e==="focusout"&&wm()}function pE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return yl(Xi)}function gE(e,n){if(e==="click")return yl(n)}function yE(e,n){if(e==="input"||e==="change")return yl(n)}function bE(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Wt=typeof Object.is=="function"?Object.is:bE;function Zi(e,n){if(Wt(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(!Qe.call(n,o)||!Wt(e[o],n[o]))return!1}return!0}function Nm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Mm(e,n){var a=Nm(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=Nm(a)}}function Dm(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Dm(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Lm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=cl(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=cl(e.document)}return n}function Pu(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 vE=or&&"documentMode"in document&&11>=document.documentMode,$a=null,Yu=null,Qi=null,Xu=!1;function Bm(e,n,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Xu||$a==null||$a!==cl(l)||(l=$a,"selectionStart"in l&&Pu(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=no(Yu,"onSelect"),0<l.length&&(n=new pl("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")},Zu={},Um={};or&&(Um=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(Zu[e])return Zu[e];if(!Wa[e])return e;var n=Wa[e],a;for(a in n)if(n.hasOwnProperty(a)&&a in Um)return Zu[e]=n[a];return e}var jm=ga("animationend"),Hm=ga("animationiteration"),Im=ga("animationstart"),_E=ga("transitionrun"),EE=ga("transitionstart"),SE=ga("transitioncancel"),zm=ga("transitionend"),Gm=new Map,Qu="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(" ");Qu.push("scrollEnd");function Nn(e,n){Gm.set(e,n),X(n,[e])}var km=new WeakMap;function pn(e,n){if(typeof e=="object"&&e!==null){var a=km.get(e);return a!==void 0?a:(n={value:e,source:n,stack:rm(n)},km.set(e,n),n)}return{value:e,source:n,stack:rm(n)}}var gn=[],Ja=0,Ku=0;function bl(){for(var e=Ja,n=Ku=Ja=0;n<e;){var a=gn[n];gn[n++]=null;var l=gn[n];gn[n++]=null;var o=gn[n];gn[n++]=null;var f=gn[n];if(gn[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&&qm(a,o,f)}}function vl(e,n,a,l){gn[Ja++]=e,gn[Ja++]=n,gn[Ja++]=a,gn[Ja++]=l,Ku|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function $u(e,n,a,l){return vl(e,n,a,l),_l(e)}function ei(e,n){return vl(e,null,null,n),_l(e)}function qm(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-Mt(a),e=f.hiddenUpdates,l=e[o],l===null?e[o]=[n]:l.push(n),n.lane=a|536870912),f):null}function _l(e){if(50<_s)throw _s=0,rf=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 TE(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 Jt(e,n,a,l){return new TE(e,n,a,l)}function Wu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ur(e,n){var a=e.alternate;return a===null?(a=Jt(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 Fm(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 El(e,n,a,l,o,f){var g=0;if(l=e,typeof e=="function")Wu(e)&&(g=1);else if(typeof e=="string")g=x2(e,a,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ye:return e=Jt(31,a,n,o),e.elementType=ye,e.lanes=f,e;case R:return ya(a.children,o,f,n);case q:g=8,o|=24;break;case z:return e=Jt(12,a,n,o|2),e.elementType=z,e.lanes=f,e;case A:return e=Jt(13,a,n,o),e.elementType=A,e.lanes=f,e;case Z:return e=Jt(19,a,n,o),e.elementType=Z,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case E:case S:g=10;break e;case w:g=9;break e;case H: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=Jt(g,a,n,o),n.elementType=e,n.type=l,n.lanes=f,n}function ya(e,n,a,l){return e=Jt(7,e,l,n),e.lanes=a,e}function Ju(e,n,a){return e=Jt(6,e,null,n),e.lanes=a,e}function ec(e,n,a){return n=Jt(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,Sl=null,Tl=0,yn=[],bn=0,ba=null,cr=1,fr="";function va(e,n){ni[ri++]=Tl,ni[ri++]=Sl,Sl=e,Tl=n}function Vm(e,n,a){yn[bn++]=cr,yn[bn++]=fr,yn[bn++]=ba,ba=e;var l=cr;e=fr;var o=32-Mt(l)-1;l&=~(1<<o),a+=1;var f=32-Mt(n)+o;if(30<f){var g=o-o%5;f=(l&(1<<g)-1).toString(32),l>>=g,o-=g,cr=1<<32-Mt(n)+o|a<<o|l,fr=f+e}else cr=1<<f|a<<o|l,fr=e}function tc(e){e.return!==null&&(va(e,1),Vm(e,1,0))}function nc(e){for(;e===Sl;)Sl=ni[--ri],ni[ri]=null,Tl=ni[--ri],ni[ri]=null;for(;e===ba;)ba=yn[--bn],yn[bn]=null,fr=yn[--bn],yn[bn]=null,cr=yn[--bn],yn[bn]=null}var jt=null,et=null,Le=!1,_a=null,Vn=!1,rc=Error(s(519));function Ea(e){var n=Error(s(418,""));throw Wi(pn(n,e)),rc}function Pm(e){var n=e.stateNode,a=e.type,l=e.memoizedProps;switch(n[ht]=e,n[Dt]=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),sm(n,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),ul(n);break;case"select":Oe("invalid",n);break;case"textarea":Oe("invalid",n),om(n,l.value,l.defaultValue,l.children),ul(n)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||n.textContent===""+a||l.suppressHydrationWarning===!0||og(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=ro),n=!0):n=!1,n||Ea(e)}function Ym(e){for(jt=e.return;jt;)switch(jt.tag){case 5:case 13:Vn=!1;return;case 27:case 3:Vn=!0;return;default:jt=jt.return}}function Ki(e){if(e!==jt)return!1;if(!Le)return Ym(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")||_f(e.type,e.memoizedProps)),a=!a),a&&et&&Ea(e),Ym(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){et=Dn(e.nextSibling);break e}n--}else a!=="$"&&a!=="$!"&&a!=="$?"||n++;e=e.nextSibling}et=null}}else n===27?(n=et,Wr(e.type)?(e=Af,Af=null,et=e):et=n):et=jt?Dn(e.stateNode.nextSibling):null;return!0}function $i(){et=jt=null,Le=!1}function Xm(){var e=_a;return e!==null&&(Qt===null?Qt=e:Qt.push.apply(Qt,e),_a=null),e}function Wi(e){_a===null?_a=[e]:_a.push(e)}var ac=k(null),Sa=null,dr=null;function Hr(e,n,a){Y(ac,n._currentValue),n._currentValue=a}function hr(e){e._currentValue=ac.current,$(ac)}function ic(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 sc(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 v=f;f=o;for(var T=0;T<n.length;T++)if(v.context===n[T]){f.lanes|=a,v=f.alternate,v!==null&&(v.lanes|=a),ic(f.return,a,e),l||(g=null);break e}f=v.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),ic(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 v=o.type;Wt(o.pendingProps.value,g.value)||(e!==null?e.push(v):e=[v])}}else if(o===We.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&&sc(n,e,a,l),n.flags|=262144}function Al(e){for(e=e.firstContext;e!==null;){if(!Wt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ta(e){Sa=e,dr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Bt(e){return Zm(Sa,e)}function xl(e,n){return Sa===null&&Ta(e),Zm(e,n)}function Zm(e,n){var a=n._currentValue;if(n={context:n,memoizedValue:a,next:null},dr===null){if(e===null)throw Error(s(308));dr=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else dr=dr.next=n;return a}var AE=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()})}},xE=t.unstable_scheduleCallback,OE=t.unstable_NormalPriority,pt={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function lc(){return{controller:new AE,data:new Map,refCount:0}}function es(e){e.refCount--,e.refCount===0&&xE(OE,function(){e.controller.abort()})}var ts=null,oc=0,ai=0,ii=null;function RE(e,n){if(ts===null){var a=ts=[];oc=0,ai=ff(),ii={status:"pending",value:void 0,then:function(l){a.push(l)}}}return oc++,n.then(Qm,Qm),n}function Qm(){if(--oc===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 wE(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 Km=G.S;G.S=function(e,n){typeof n=="object"&&n!==null&&typeof n.then=="function"&&RE(e,n),Km!==null&&Km(e,n)};var Aa=k(null);function uc(){var e=Aa.current;return e!==null?e:Ve.pooledCache}function Ol(e,n){n===null?Y(Aa,Aa.current):Y(Aa,n.pool)}function $m(){var e=uc();return e===null?null:{parent:pt._currentValue,pool:e}}var ns=Error(s(460)),Wm=Error(s(474)),Rl=Error(s(542)),cc={then:function(){}};function Jm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function wl(){}function e0(e,n,a){switch(a=e[a],a===void 0?e.push(n):a!==n&&(n.then(wl,wl),n=a),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,n0(e),e;default:if(typeof n.status=="string")n.then(wl,wl);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,n0(e),e}throw rs=n,ns}}var rs=null;function t0(){if(rs===null)throw Error(s(459));var e=rs;return rs=null,e}function n0(e){if(e===ns||e===Rl)throw Error(s(483))}var Ir=!1;function fc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function dc(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 zr(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Gr(e,n,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(je&2)!==0){var o=l.pending;return o===null?n.next=n:(n.next=o.next,o.next=n),l.pending=n,n=_l(e),qm(e,null,a),n}return vl(e,l,n,a),_l(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,rt(e,a)}}function hc(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 mc=!1;function is(){if(mc){var e=ii;if(e!==null)throw e}}function ss(e,n,a,l){mc=!1;var o=e.updateQueue;Ir=!1;var f=o.firstBaseUpdate,g=o.lastBaseUpdate,v=o.shared.pending;if(v!==null){o.shared.pending=null;var T=v,L=T.next;T.next=null,g===null?f=L:g.next=L,g=T;var F=e.alternate;F!==null&&(F=F.updateQueue,v=F.lastBaseUpdate,v!==g&&(v===null?F.firstBaseUpdate=L:v.next=L,F.lastBaseUpdate=T))}if(f!==null){var P=o.baseState;g=0,F=L=T=null,v=f;do{var j=v.lane&-536870913,I=j!==v.lane;if(I?(Ne&j)===j:(l&j)===j){j!==0&&j===ai&&(mc=!0),F!==null&&(F=F.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var he=e,fe=v;j=n;var ke=a;switch(fe.tag){case 1:if(he=fe.payload,typeof he=="function"){P=he.call(ke,P,j);break e}P=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=fe.payload,j=typeof he=="function"?he.call(ke,P,j):he,j==null)break e;P=b({},P,j);break e;case 2:Ir=!0}}j=v.callback,j!==null&&(e.flags|=64,I&&(e.flags|=8192),I=o.callbacks,I===null?o.callbacks=[j]:I.push(j))}else I={lane:j,tag:v.tag,payload:v.payload,callback:v.callback,next:null},F===null?(L=F=I,T=P):F=F.next=I,g|=j;if(v=v.next,v===null){if(v=o.shared.pending,v===null)break;I=v,v=I.next,I.next=null,o.lastBaseUpdate=I,o.shared.pending=null}}while(!0);F===null&&(T=P),o.baseState=T,o.firstBaseUpdate=L,o.lastBaseUpdate=F,f===null&&(o.shared.lanes=0),Zr|=g,e.lanes=g,e.memoizedState=P}}function r0(e,n){if(typeof e!="function")throw Error(s(191,e));e.call(n)}function a0(e,n){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)r0(a[e],n)}var si=k(null),Cl=k(0);function i0(e,n){e=_r,Y(Cl,e),Y(si,n),_r=e|n.baseLanes}function pc(){Y(Cl,_r),Y(si,si.current)}function gc(){_r=Cl.current,$(si),$(Cl)}var kr=0,_e=null,ze=null,ut=null,Nl=!1,li=!1,xa=!1,Ml=0,ls=0,oi=null,CE=0;function at(){throw Error(s(321))}function yc(e,n){if(n===null)return!1;for(var a=0;a<n.length&&a<e.length;a++)if(!Wt(e[a],n[a]))return!1;return!0}function bc(e,n,a,l,o,f){return kr=f,_e=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,G.H=e===null||e.memoizedState===null?q0:F0,xa=!1,f=a(l,o),xa=!1,li&&(f=l0(n,a,l,o)),s0(e),f}function s0(e){G.H=Hl;var n=ze!==null&&ze.next!==null;if(kr=0,ut=ze=_e=null,Nl=!1,ls=0,oi=null,n)throw Error(s(300));e===null||yt||(e=e.dependencies,e!==null&&Al(e)&&(yt=!0))}function l0(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,ut=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)}G.H=jE,f=n(a,l)}while(li);return f}function NE(){var e=G.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 vc(){var e=Ml!==0;return Ml=0,e}function _c(e,n,a){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~a}function Ec(e){if(Nl){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}Nl=!1}kr=0,ut=ze=_e=null,li=!1,ls=Ml=0,oi=null}function Xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ut===null?_e.memoizedState=ut=e:ut=ut.next=e,ut}function ct(){if(ze===null){var e=_e.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var n=ut===null?_e.memoizedState:ut.next;if(n!==null)ut=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},ut===null?_e.memoizedState=ut=e:ut=ut.next=e}return ut}function Sc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function os(e){var n=ls;return ls+=1,oi===null&&(oi=[]),e=e0(oi,e,n),n=_e,(ut===null?n.memoizedState:ut.next)===null&&(n=n.alternate,G.H=n===null||n.memoizedState===null?q0:F0),e}function Dl(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return os(e);if(e.$$typeof===S)return Bt(e)}throw Error(s(438,String(e)))}function Tc(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=Sc(),_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 mr(e,n){return typeof n=="function"?n(e):n}function Ll(e){var n=ct();return Ac(n,ze,e)}function Ac(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 v=g=null,T=null,L=n,F=!1;do{var P=L.lane&-536870913;if(P!==L.lane?(Ne&P)===P:(kr&P)===P){var j=L.revertLane;if(j===0)T!==null&&(T=T.next={lane:0,revertLane:0,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),P===ai&&(F=!0);else if((kr&j)===j){L=L.next,j===ai&&(F=!0);continue}else P={lane:0,revertLane:L.revertLane,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},T===null?(v=T=P,g=f):T=T.next=P,_e.lanes|=j,Zr|=j;P=L.action,xa&&a(f,P),f=L.hasEagerState?L.eagerState:a(f,P)}else j={lane:P,revertLane:L.revertLane,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},T===null?(v=T=j,g=f):T=T.next=j,_e.lanes|=P,Zr|=P;L=L.next}while(L!==null&&L!==n);if(T===null?g=f:T.next=v,!Wt(f,e.memoizedState)&&(yt=!0,F&&(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 xc(e){var n=ct(),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);Wt(f,n.memoizedState)||(yt=!0),n.memoizedState=f,n.baseQueue===null&&(n.baseState=f),a.lastRenderedState=f}return[f,l]}function o0(e,n,a){var l=_e,o=ct(),f=Le;if(f){if(a===void 0)throw Error(s(407));a=a()}else a=n();var g=!Wt((ze||o).memoizedState,a);g&&(o.memoizedState=a,yt=!0),o=o.queue;var v=f0.bind(null,l,o,e);if(us(2048,8,v,[e]),o.getSnapshot!==n||g||ut!==null&&ut.memoizedState.tag&1){if(l.flags|=2048,ui(9,Bl(),c0.bind(null,l,o,a,n),null),Ve===null)throw Error(s(349));f||(kr&124)!==0||u0(l,n,a)}return a}function u0(e,n,a){e.flags|=16384,e={getSnapshot:n,value:a},n=_e.updateQueue,n===null?(n=Sc(),_e.updateQueue=n,n.stores=[e]):(a=n.stores,a===null?n.stores=[e]:a.push(e))}function c0(e,n,a,l){n.value=a,n.getSnapshot=l,d0(n)&&h0(e)}function f0(e,n,a){return a(function(){d0(n)&&h0(e)})}function d0(e){var n=e.getSnapshot;e=e.value;try{var a=n();return!Wt(e,a)}catch{return!0}}function h0(e){var n=ei(e,2);n!==null&&an(n,e,2)}function Oc(e){var n=Xt();if(typeof e=="function"){var a=e;if(e=a(),xa){Rn(!0);try{a()}finally{Rn(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mr,lastRenderedState:e},n}function m0(e,n,a,l){return e.baseState=a,Ac(e,ze,typeof l=="function"?l:mr)}function ME(e,n,a,l,o){if(jl(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)}};G.T!==null?a(!0):f.isTransition=!1,l(f),a=n.pending,a===null?(f.next=n.pending=f,p0(n,f)):(f.next=a.next,n.pending=a.next=f)}}function p0(e,n){var a=n.action,l=n.payload,o=e.state;if(n.isTransition){var f=G.T,g={};G.T=g;try{var v=a(o,l),T=G.S;T!==null&&T(g,v),g0(e,n,v)}catch(L){Rc(e,n,L)}finally{G.T=f}}else try{f=a(o,l),g0(e,n,f)}catch(L){Rc(e,n,L)}}function g0(e,n,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){y0(e,n,l)},function(l){return Rc(e,n,l)}):y0(e,n,a)}function y0(e,n,a){n.status="fulfilled",n.value=a,b0(n),e.state=a,n=e.pending,n!==null&&(a=n.next,a===n?e.pending=null:(a=a.next,n.next=a,p0(e,a)))}function Rc(e,n,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do n.status="rejected",n.reason=a,b0(n),n=n.next;while(n!==l)}e.action=null}function b0(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function v0(e,n){return n}function _0(e,n){if(Le){var a=Ve.formState;if(a!==null){e:{var l=_e;if(Le){if(et){t:{for(var o=et,f=Vn;o.nodeType!==8;){if(!f){o=null;break t}if(o=Dn(o.nextSibling),o===null){o=null;break t}}f=o.data,o=f==="F!"||f==="F"?o:null}if(o){et=Dn(o.nextSibling),l=o.data==="F!";break e}}Ea(l)}l=!1}l&&(n=a[0])}}return a=Xt(),a.memoizedState=a.baseState=n,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:v0,lastRenderedState:n},a.queue=l,a=z0.bind(null,_e,l),l.dispatch=a,l=Oc(!1),f=Dc.bind(null,_e,!1,l.queue),l=Xt(),o={state:n,dispatch:null,action:e,pending:null},l.queue=o,a=ME.bind(null,_e,o,f,a),o.dispatch=a,l.memoizedState=e,[n,a,!1]}function E0(e){var n=ct();return S0(n,ze,e)}function S0(e,n,a){if(n=Ac(e,n,v0)[0],e=Ll(mr)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var l=os(n)}catch(g){throw g===ns?Rl:g}else l=n;n=ct();var o=n.queue,f=o.dispatch;return a!==n.memoizedState&&(_e.flags|=2048,ui(9,Bl(),DE.bind(null,o,a),null)),[l,f,e]}function DE(e,n){e.action=n}function T0(e){var n=ct(),a=ze;if(a!==null)return S0(n,a,e);ct(),n=n.memoizedState,a=ct();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=Sc(),_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 Bl(){return{destroy:void 0,resource:void 0}}function A0(){return ct().memoizedState}function Ul(e,n,a,l){var o=Xt();l=l===void 0?null:l,_e.flags|=e,o.memoizedState=ui(1|n,Bl(),a,l)}function us(e,n,a,l){var o=ct();l=l===void 0?null:l;var f=o.memoizedState.inst;ze!==null&&l!==null&&yc(l,ze.memoizedState.deps)?o.memoizedState=ui(n,f,a,l):(_e.flags|=e,o.memoizedState=ui(1|n,f,a,l))}function x0(e,n){Ul(8390656,8,e,n)}function O0(e,n){us(2048,8,e,n)}function R0(e,n){return us(4,2,e,n)}function w0(e,n){return us(4,4,e,n)}function C0(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 N0(e,n,a){a=a!=null?a.concat([e]):null,us(4,4,C0.bind(null,n,e),a)}function wc(){}function M0(e,n){var a=ct();n=n===void 0?null:n;var l=a.memoizedState;return n!==null&&yc(n,l[1])?l[0]:(a.memoizedState=[e,n],e)}function D0(e,n){var a=ct();n=n===void 0?null:n;var l=a.memoizedState;if(n!==null&&yc(n,l[1]))return l[0];if(l=e(),xa){Rn(!0);try{e()}finally{Rn(!1)}}return a.memoizedState=[l,n],l}function Cc(e,n,a){return a===void 0||(kr&1073741824)!==0?e.memoizedState=n:(e.memoizedState=a,e=Up(),_e.lanes|=e,Zr|=e,a)}function L0(e,n,a,l){return Wt(a,n)?a:si.current!==null?(e=Cc(e,a,l),Wt(e,n)||(yt=!0),e):(kr&42)===0?(yt=!0,e.memoizedState=a):(e=Up(),_e.lanes|=e,Zr|=e,n)}function B0(e,n,a,l,o){var f=K.p;K.p=f!==0&&8>f?f:8;var g=G.T,v={};G.T=v,Dc(e,!1,n,a);try{var T=o(),L=G.S;if(L!==null&&L(v,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var F=wE(T,l);cs(e,n,F,rn(e))}else cs(e,n,l,rn(e))}catch(P){cs(e,n,{then:function(){},status:"rejected",reason:P},rn())}finally{K.p=f,G.T=g}}function LE(){}function Nc(e,n,a,l){if(e.tag!==5)throw Error(s(476));var o=U0(e).queue;B0(e,o,n,ee,a===null?LE:function(){return j0(e),a(l)})}function U0(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:mr,lastRenderedState:ee},next:null};var a={};return n.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mr,lastRenderedState:a},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function j0(e){var n=U0(e).next.queue;cs(e,n,{},rn())}function Mc(){return Bt(ws)}function H0(){return ct().memoizedState}function I0(){return ct().memoizedState}function BE(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var a=rn();e=zr(a);var l=Gr(n,e,a);l!==null&&(an(l,n,a),as(l,n,a)),n={cache:lc()},e.payload=n;return}n=n.return}}function UE(e,n,a){var l=rn();a={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},jl(e)?G0(n,a):(a=$u(e,n,a,l),a!==null&&(an(a,e,l),k0(a,n,l)))}function z0(e,n,a){var l=rn();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(jl(e))G0(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,v=f(g,a);if(o.hasEagerState=!0,o.eagerState=v,Wt(v,g))return vl(e,n,o,0),Ve===null&&bl(),!1}catch{}finally{}if(a=$u(e,n,o,l),a!==null)return an(a,e,l),k0(a,n,l),!0}return!1}function Dc(e,n,a,l){if(l={lane:2,revertLane:ff(),action:l,hasEagerState:!1,eagerState:null,next:null},jl(e)){if(n)throw Error(s(479))}else n=$u(e,a,l,2),n!==null&&an(n,e,2)}function jl(e){var n=e.alternate;return e===_e||n!==null&&n===_e}function G0(e,n){li=Nl=!0;var a=e.pending;a===null?n.next=n:(n.next=a.next,a.next=n),e.pending=n}function k0(e,n,a){if((a&4194048)!==0){var l=n.lanes;l&=e.pendingLanes,a|=l,n.lanes=a,rt(e,a)}}var Hl={readContext:Bt,use:Dl,useCallback:at,useContext:at,useEffect:at,useImperativeHandle:at,useLayoutEffect:at,useInsertionEffect:at,useMemo:at,useReducer:at,useRef:at,useState:at,useDebugValue:at,useDeferredValue:at,useTransition:at,useSyncExternalStore:at,useId:at,useHostTransitionStatus:at,useFormState:at,useActionState:at,useOptimistic:at,useMemoCache:at,useCacheRefresh:at},q0={readContext:Bt,use:Dl,useCallback:function(e,n){return Xt().memoizedState=[e,n===void 0?null:n],e},useContext:Bt,useEffect:x0,useImperativeHandle:function(e,n,a){a=a!=null?a.concat([e]):null,Ul(4194308,4,C0.bind(null,n,e),a)},useLayoutEffect:function(e,n){return Ul(4194308,4,e,n)},useInsertionEffect:function(e,n){Ul(4,2,e,n)},useMemo:function(e,n){var a=Xt();n=n===void 0?null:n;var l=e();if(xa){Rn(!0);try{e()}finally{Rn(!1)}}return a.memoizedState=[l,n],l},useReducer:function(e,n,a){var l=Xt();if(a!==void 0){var o=a(n);if(xa){Rn(!0);try{a(n)}finally{Rn(!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=UE.bind(null,_e,e),[l.memoizedState,e]},useRef:function(e){var n=Xt();return e={current:e},n.memoizedState=e},useState:function(e){e=Oc(e);var n=e.queue,a=z0.bind(null,_e,n);return n.dispatch=a,[e.memoizedState,a]},useDebugValue:wc,useDeferredValue:function(e,n){var a=Xt();return Cc(a,e,n)},useTransition:function(){var e=Oc(!1);return e=B0.bind(null,_e,e.queue,!0,!1),Xt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,a){var l=_e,o=Xt();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||u0(l,n,a)}o.memoizedState=a;var f={value:a,getSnapshot:n};return o.queue=f,x0(f0.bind(null,l,f,e),[e]),l.flags|=2048,ui(9,Bl(),c0.bind(null,l,f,a,n),null),a},useId:function(){var e=Xt(),n=Ve.identifierPrefix;if(Le){var a=fr,l=cr;a=(l&~(1<<32-Mt(l)-1)).toString(32)+a,n="«"+n+"R"+a,a=Ml++,0<a&&(n+="H"+a.toString(32)),n+="»"}else a=CE++,n="«"+n+"r"+a.toString(32)+"»";return e.memoizedState=n},useHostTransitionStatus:Mc,useFormState:_0,useActionState:_0,useOptimistic:function(e){var n=Xt();n.memoizedState=n.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=a,n=Dc.bind(null,_e,!0,a),a.dispatch=n,[e,n]},useMemoCache:Tc,useCacheRefresh:function(){return Xt().memoizedState=BE.bind(null,_e)}},F0={readContext:Bt,use:Dl,useCallback:M0,useContext:Bt,useEffect:O0,useImperativeHandle:N0,useInsertionEffect:R0,useLayoutEffect:w0,useMemo:D0,useReducer:Ll,useRef:A0,useState:function(){return Ll(mr)},useDebugValue:wc,useDeferredValue:function(e,n){var a=ct();return L0(a,ze.memoizedState,e,n)},useTransition:function(){var e=Ll(mr)[0],n=ct().memoizedState;return[typeof e=="boolean"?e:os(e),n]},useSyncExternalStore:o0,useId:H0,useHostTransitionStatus:Mc,useFormState:E0,useActionState:E0,useOptimistic:function(e,n){var a=ct();return m0(a,ze,e,n)},useMemoCache:Tc,useCacheRefresh:I0},jE={readContext:Bt,use:Dl,useCallback:M0,useContext:Bt,useEffect:O0,useImperativeHandle:N0,useInsertionEffect:R0,useLayoutEffect:w0,useMemo:D0,useReducer:xc,useRef:A0,useState:function(){return xc(mr)},useDebugValue:wc,useDeferredValue:function(e,n){var a=ct();return ze===null?Cc(a,e,n):L0(a,ze.memoizedState,e,n)},useTransition:function(){var e=xc(mr)[0],n=ct().memoizedState;return[typeof e=="boolean"?e:os(e),n]},useSyncExternalStore:o0,useId:H0,useHostTransitionStatus:Mc,useFormState:T0,useActionState:T0,useOptimistic:function(e,n){var a=ct();return ze!==null?m0(a,ze,e,n):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Tc,useCacheRefresh:I0},ci=null,fs=0;function Il(e){var n=fs;return fs+=1,ci===null&&(ci=[]),e0(ci,e,n)}function ds(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function zl(e,n){throw n.$$typeof===_?Error(s(525)):(e=Object.prototype.toString.call(n),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function V0(e){var n=e._init;return n(e._payload)}function P0(e){function n(M,C){if(e){var D=M.deletions;D===null?(M.deletions=[C],M.flags|=16):D.push(C)}}function a(M,C){if(!e)return null;for(;C!==null;)n(M,C),C=C.sibling;return null}function l(M){for(var C=new Map;M!==null;)M.key!==null?C.set(M.key,M):C.set(M.index,M),M=M.sibling;return C}function o(M,C){return M=ur(M,C),M.index=0,M.sibling=null,M}function f(M,C,D){return M.index=D,e?(D=M.alternate,D!==null?(D=D.index,D<C?(M.flags|=67108866,C):D):(M.flags|=67108866,C)):(M.flags|=1048576,C)}function g(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function v(M,C,D,V){return C===null||C.tag!==6?(C=Ju(D,M.mode,V),C.return=M,C):(C=o(C,D),C.return=M,C)}function T(M,C,D,V){var ne=D.type;return ne===R?F(M,C,D.props.children,V,D.key):C!==null&&(C.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===ae&&V0(ne)===C.type)?(C=o(C,D.props),ds(C,D),C.return=M,C):(C=El(D.type,D.key,D.props,null,M.mode,V),ds(C,D),C.return=M,C)}function L(M,C,D,V){return C===null||C.tag!==4||C.stateNode.containerInfo!==D.containerInfo||C.stateNode.implementation!==D.implementation?(C=ec(D,M.mode,V),C.return=M,C):(C=o(C,D.children||[]),C.return=M,C)}function F(M,C,D,V,ne){return C===null||C.tag!==7?(C=ya(D,M.mode,V,ne),C.return=M,C):(C=o(C,D),C.return=M,C)}function P(M,C,D){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=Ju(""+C,M.mode,D),C.return=M,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case x:return D=El(C.type,C.key,C.props,null,M.mode,D),ds(D,C),D.return=M,D;case U:return C=ec(C,M.mode,D),C.return=M,C;case ae:var V=C._init;return C=V(C._payload),P(M,C,D)}if(ve(C)||me(C))return C=ya(C,M.mode,D,null),C.return=M,C;if(typeof C.then=="function")return P(M,Il(C),D);if(C.$$typeof===S)return P(M,xl(M,C),D);zl(M,C)}return null}function j(M,C,D,V){var ne=C!==null?C.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return ne!==null?null:v(M,C,""+D,V);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case x:return D.key===ne?T(M,C,D,V):null;case U:return D.key===ne?L(M,C,D,V):null;case ae:return ne=D._init,D=ne(D._payload),j(M,C,D,V)}if(ve(D)||me(D))return ne!==null?null:F(M,C,D,V,null);if(typeof D.then=="function")return j(M,C,Il(D),V);if(D.$$typeof===S)return j(M,C,xl(M,D),V);zl(M,D)}return null}function I(M,C,D,V,ne){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return M=M.get(D)||null,v(C,M,""+V,ne);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case x:return M=M.get(V.key===null?D:V.key)||null,T(C,M,V,ne);case U:return M=M.get(V.key===null?D:V.key)||null,L(C,M,V,ne);case ae:var Se=V._init;return V=Se(V._payload),I(M,C,D,V,ne)}if(ve(V)||me(V))return M=M.get(D)||null,F(C,M,V,ne,null);if(typeof V.then=="function")return I(M,C,D,Il(V),ne);if(V.$$typeof===S)return I(M,C,D,xl(C,V),ne);zl(C,V)}return null}function he(M,C,D,V){for(var ne=null,Se=null,oe=C,de=C=0,vt=null;oe!==null&&de<D.length;de++){oe.index>de?(vt=oe,oe=null):vt=oe.sibling;var De=j(M,oe,D[de],V);if(De===null){oe===null&&(oe=vt);break}e&&oe&&De.alternate===null&&n(M,oe),C=f(De,C,de),Se===null?ne=De:Se.sibling=De,Se=De,oe=vt}if(de===D.length)return a(M,oe),Le&&va(M,de),ne;if(oe===null){for(;de<D.length;de++)oe=P(M,D[de],V),oe!==null&&(C=f(oe,C,de),Se===null?ne=oe:Se.sibling=oe,Se=oe);return Le&&va(M,de),ne}for(oe=l(oe);de<D.length;de++)vt=I(oe,M,de,D[de],V),vt!==null&&(e&&vt.alternate!==null&&oe.delete(vt.key===null?de:vt.key),C=f(vt,C,de),Se===null?ne=vt:Se.sibling=vt,Se=vt);return e&&oe.forEach(function(ra){return n(M,ra)}),Le&&va(M,de),ne}function fe(M,C,D,V){if(D==null)throw Error(s(151));for(var ne=null,Se=null,oe=C,de=C=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 ra=j(M,oe,De.value,V);if(ra===null){oe===null&&(oe=vt);break}e&&oe&&ra.alternate===null&&n(M,oe),C=f(ra,C,de),Se===null?ne=ra:Se.sibling=ra,Se=ra,oe=vt}if(De.done)return a(M,oe),Le&&va(M,de),ne;if(oe===null){for(;!De.done;de++,De=D.next())De=P(M,De.value,V),De!==null&&(C=f(De,C,de),Se===null?ne=De:Se.sibling=De,Se=De);return Le&&va(M,de),ne}for(oe=l(oe);!De.done;de++,De=D.next())De=I(oe,M,de,De.value,V),De!==null&&(e&&De.alternate!==null&&oe.delete(De.key===null?de:De.key),C=f(De,C,de),Se===null?ne=De:Se.sibling=De,Se=De);return e&&oe.forEach(function(H2){return n(M,H2)}),Le&&va(M,de),ne}function ke(M,C,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 x:e:{for(var ne=D.key;C!==null;){if(C.key===ne){if(ne=D.type,ne===R){if(C.tag===7){a(M,C.sibling),V=o(C,D.props.children),V.return=M,M=V;break e}}else if(C.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===ae&&V0(ne)===C.type){a(M,C.sibling),V=o(C,D.props),ds(V,D),V.return=M,M=V;break e}a(M,C);break}else n(M,C);C=C.sibling}D.type===R?(V=ya(D.props.children,M.mode,V,D.key),V.return=M,M=V):(V=El(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;C!==null;){if(C.key===ne)if(C.tag===4&&C.stateNode.containerInfo===D.containerInfo&&C.stateNode.implementation===D.implementation){a(M,C.sibling),V=o(C,D.children||[]),V.return=M,M=V;break e}else{a(M,C);break}else n(M,C);C=C.sibling}V=ec(D,M.mode,V),V.return=M,M=V}return g(M);case ae:return ne=D._init,D=ne(D._payload),ke(M,C,D,V)}if(ve(D))return he(M,C,D,V);if(me(D)){if(ne=me(D),typeof ne!="function")throw Error(s(150));return D=ne.call(D),fe(M,C,D,V)}if(typeof D.then=="function")return ke(M,C,Il(D),V);if(D.$$typeof===S)return ke(M,C,xl(M,D),V);zl(M,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,C!==null&&C.tag===6?(a(M,C.sibling),V=o(C,D),V.return=M,M=V):(a(M,C),V=Ju(D,M.mode,V),V.return=M,M=V),g(M)):a(M,C)}return function(M,C,D,V){try{fs=0;var ne=ke(M,C,D,V);return ci=null,ne}catch(oe){if(oe===ns||oe===Rl)throw oe;var Se=Jt(29,oe,null,M.mode);return Se.lanes=V,Se.return=M,Se}finally{}}}var fi=P0(!0),Y0=P0(!1),vn=k(null),Pn=null;function qr(e){var n=e.alternate;Y(gt,gt.current&1),Y(vn,e),Pn===null&&(n===null||si.current!==null||n.memoizedState!==null)&&(Pn=e)}function X0(e){if(e.tag===22){if(Y(gt,gt.current),Y(vn,e),Pn===null){var n=e.alternate;n!==null&&n.memoizedState!==null&&(Pn=e)}}else Fr()}function Fr(){Y(gt,gt.current),Y(vn,vn.current)}function pr(e){$(vn),Pn===e&&(Pn=null),$(gt)}var gt=k(0);function Gl(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==="$?"||Tf(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 Lc(e,n,a,l){n=e.memoizedState,a=a(l,n),a=a==null?n:b({},n,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Bc={enqueueSetState:function(e,n,a){e=e._reactInternals;var l=rn(),o=zr(l);o.payload=n,a!=null&&(o.callback=a),n=Gr(e,o,l),n!==null&&(an(n,e,l),as(n,e,l))},enqueueReplaceState:function(e,n,a){e=e._reactInternals;var l=rn(),o=zr(l);o.tag=1,o.payload=n,a!=null&&(o.callback=a),n=Gr(e,o,l),n!==null&&(an(n,e,l),as(n,e,l))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var a=rn(),l=zr(a);l.tag=2,n!=null&&(l.callback=n),n=Gr(e,l,a),n!==null&&(an(n,e,a),as(n,e,a))}};function Z0(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 Q0(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&&Bc.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=b({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}var kl=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 K0(e){kl(e)}function $0(e){console.error(e)}function W0(e){kl(e)}function ql(e,n){try{var a=e.onUncaughtError;a(n.value,{componentStack:n.stack})}catch(l){setTimeout(function(){throw l})}}function J0(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 Uc(e,n,a){return a=zr(a),a.tag=3,a.payload={element:null},a.callback=function(){ql(e,n)},a}function ep(e){return e=zr(e),e.tag=3,e}function tp(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(){J0(n,a,l)}}var g=a.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){J0(n,a,l),typeof o!="function"&&(Qr===null?Qr=new Set([this]):Qr.add(this));var v=l.stack;this.componentDidCatch(l.value,{componentStack:v!==null?v:""})})}function HE(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 Pn===null?sf():a.alternate===null&&tt===0&&(tt=3),a.flags&=-257,a.flags|=65536,a.lanes=o,l===cc?a.flags|=16384:(n=a.updateQueue,n===null?a.updateQueue=new Set([l]):n.add(l),of(e,l,o)),!1;case 22:return a.flags|=65536,l===cc?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)),of(e,l,o)),!1}throw Error(s(435,a.tag))}return of(e,l,o),sf(),!1}if(Le)return n=vn.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=o,l!==rc&&(e=Error(s(422),{cause:l}),Wi(pn(e,a)))):(l!==rc&&(n=Error(s(423),{cause:l}),Wi(pn(n,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,l=pn(l,a),o=Uc(e.stateNode,l,o),hc(e,o),tt!==4&&(tt=2)),!1;var f=Error(s(520),{cause:l});if(f=pn(f,a),vs===null?vs=[f]:vs.push(f),tt!==4&&(tt=2),n===null)return!0;l=pn(l,a),a=n;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=Uc(a.stateNode,l,e),hc(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"&&(Qr===null||!Qr.has(f))))return a.flags|=65536,o&=-o,a.lanes|=o,o=ep(o),tp(o,e,a,l),hc(a,o),!1}a=a.return}while(a!==null);return!1}var np=Error(s(461)),yt=!1;function xt(e,n,a,l){n.child=e===null?Y0(n,null,a,l):fi(n,e.child,a,l)}function rp(e,n,a,l,o){a=a.render;var f=n.ref;if("ref"in l){var g={};for(var v in l)v!=="ref"&&(g[v]=l[v])}else g=l;return Ta(n),l=bc(e,n,a,g,f,o),v=vc(),e!==null&&!yt?(_c(e,n,o),gr(e,n,o)):(Le&&v&&tc(n),n.flags|=1,xt(e,n,l,o),n.child)}function ap(e,n,a,l,o){if(e===null){var f=a.type;return typeof f=="function"&&!Wu(f)&&f.defaultProps===void 0&&a.compare===null?(n.tag=15,n.type=f,ip(e,n,f,l,o)):(e=El(a.type,null,l,n,n.mode,o),e.ref=n.ref,e.return=n,n.child=e)}if(f=e.child,!Fc(e,o)){var g=f.memoizedProps;if(a=a.compare,a=a!==null?a:Zi,a(g,l)&&e.ref===n.ref)return gr(e,n,o)}return n.flags|=1,e=ur(f,l),e.ref=n.ref,e.return=n,n.child=e}function ip(e,n,a,l,o){if(e!==null){var f=e.memoizedProps;if(Zi(f,l)&&e.ref===n.ref)if(yt=!1,n.pendingProps=l=f,Fc(e,o))(e.flags&131072)!==0&&(yt=!0);else return n.lanes=e.lanes,gr(e,n,o)}return jc(e,n,a,l,o)}function sp(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 lp(e,n,l,a)}if((a&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ol(n,f!==null?f.cachePool:null),f!==null?i0(n,f):pc(),X0(n);else return n.lanes=n.childLanes=536870912,lp(e,n,f!==null?f.baseLanes|a:a,a)}else f!==null?(Ol(n,f.cachePool),i0(n,f),Fr(),n.memoizedState=null):(e!==null&&Ol(n,null),pc(),Fr());return xt(e,n,o,a),n.child}function lp(e,n,a,l){var o=uc();return o=o===null?null:{parent:pt._currentValue,pool:o},n.memoizedState={baseLanes:a,cachePool:o},e!==null&&Ol(n,null),pc(),X0(n),e!==null&&Ji(e,n,l,!0),null}function Fl(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 jc(e,n,a,l,o){return Ta(n),a=bc(e,n,a,l,void 0,o),l=vc(),e!==null&&!yt?(_c(e,n,o),gr(e,n,o)):(Le&&l&&tc(n),n.flags|=1,xt(e,n,a,o),n.child)}function op(e,n,a,l,o,f){return Ta(n),n.updateQueue=null,a=l0(n,l,a,o),s0(e),l=vc(),e!==null&&!yt?(_c(e,n,f),gr(e,n,f)):(Le&&l&&tc(n),n.flags|=1,xt(e,n,a,f),n.child)}function up(e,n,a,l,o){if(Ta(n),n.stateNode===null){var f=ti,g=a.contextType;typeof g=="object"&&g!==null&&(f=Bt(g)),f=new a(l,f),n.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Bc,n.stateNode=f,f._reactInternals=n,f=n.stateNode,f.props=l,f.state=n.memoizedState,f.refs={},fc(n),g=a.contextType,f.context=typeof g=="object"&&g!==null?Bt(g):ti,f.state=n.memoizedState,g=a.getDerivedStateFromProps,typeof g=="function"&&(Lc(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&&Bc.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 v=n.memoizedProps,T=Oa(a,v);f.props=T;var L=f.context,F=a.contextType;g=ti,typeof F=="object"&&F!==null&&(g=Bt(F));var P=a.getDerivedStateFromProps;F=typeof P=="function"||typeof f.getSnapshotBeforeUpdate=="function",v=n.pendingProps!==v,F||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(v||L!==g)&&Q0(n,f,l,g),Ir=!1;var j=n.memoizedState;f.state=j,ss(n,l,f,o),is(),L=n.memoizedState,v||j!==L||Ir?(typeof P=="function"&&(Lc(n,a,P,l),L=n.memoizedState),(T=Ir||Z0(n,a,T,l,j,L,g))?(F||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,dc(e,n),g=n.memoizedProps,F=Oa(a,g),f.props=F,P=n.pendingProps,j=f.context,L=a.contextType,T=ti,typeof L=="object"&&L!==null&&(T=Bt(L)),v=a.getDerivedStateFromProps,(L=typeof v=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(g!==P||j!==T)&&Q0(n,f,l,T),Ir=!1,j=n.memoizedState,f.state=j,ss(n,l,f,o),is();var I=n.memoizedState;g!==P||j!==I||Ir||e!==null&&e.dependencies!==null&&Al(e.dependencies)?(typeof v=="function"&&(Lc(n,a,v,l),I=n.memoizedState),(F=Ir||Z0(n,a,F,l,j,I,T)||e!==null&&e.dependencies!==null&&Al(e.dependencies))?(L||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(l,I,T),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(l,I,T)),typeof f.componentDidUpdate=="function"&&(n.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(n.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(n.flags|=1024),n.memoizedProps=l,n.memoizedState=I),f.props=l,f.state=I,f.context=T,l=F):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(n.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(n.flags|=1024),l=!1)}return f=l,Fl(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)):xt(e,n,a,o),n.memoizedState=f.state,e=n.child):e=gr(e,n,o),e}function cp(e,n,a,l){return $i(),n.flags|=256,xt(e,n,a,l),n.child}var Hc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ic(e){return{baseLanes:e,cachePool:$m()}}function zc(e,n,a){return e=e!==null?e.childLanes&~a:0,n&&(e|=_n),e}function fp(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:(gt.current&2)!==0),g&&(o=!0,n.flags&=-129),g=(n.flags&32)!==0,n.flags&=-33,e===null){if(Le){if(o?qr(n):Fr(),Le){var v=et,T;if(T=v){e:{for(T=v,v=Vn;T.nodeType!==8;){if(!v){v=null;break e}if(T=Dn(T.nextSibling),T===null){v=null;break e}}v=T}v!==null?(n.memoizedState={dehydrated:v,treeContext:ba!==null?{id:cr,overflow:fr}:null,retryLane:536870912,hydrationErrors:null},T=Jt(18,null,null,0),T.stateNode=v,T.return=n,n.child=T,jt=n,et=null,T=!0):T=!1}T||Ea(n)}if(v=n.memoizedState,v!==null&&(v=v.dehydrated,v!==null))return Tf(v)?n.lanes=32:n.lanes=536870912,null;pr(n)}return v=l.children,l=l.fallback,o?(Fr(),o=n.mode,v=Vl({mode:"hidden",children:v},o),l=ya(l,o,a,null),v.return=n,l.return=n,v.sibling=l,n.child=v,o=n.child,o.memoizedState=Ic(a),o.childLanes=zc(e,g,a),n.memoizedState=Hc,l):(qr(n),Gc(n,v))}if(T=e.memoizedState,T!==null&&(v=T.dehydrated,v!==null)){if(f)n.flags&256?(qr(n),n.flags&=-257,n=kc(e,n,a)):n.memoizedState!==null?(Fr(),n.child=e.child,n.flags|=128,n=null):(Fr(),o=l.fallback,v=n.mode,l=Vl({mode:"visible",children:l.children},v),o=ya(o,v,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=Ic(a),l.childLanes=zc(e,g,a),n.memoizedState=Hc,n=o);else if(qr(n),Tf(v)){if(g=v.nextSibling&&v.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=kc(e,n,a)}else if(yt||Ji(e,n,a,!1),g=(a&e.childLanes)!==0,yt||g){if(g=Ve,g!==null&&(l=a&-a,l=(l&42)!==0?1:kn(l),l=(l&(g.suspendedLanes|a))!==0?0:l,l!==0&&l!==T.retryLane))throw T.retryLane=l,ei(e,l),an(g,e,l),np;v.data==="$?"||sf(),n=kc(e,n,a)}else v.data==="$?"?(n.flags|=192,n.child=e.child,n=null):(e=T.treeContext,et=Dn(v.nextSibling),jt=n,Le=!0,_a=null,Vn=!1,e!==null&&(yn[bn++]=cr,yn[bn++]=fr,yn[bn++]=ba,cr=e.id,fr=e.overflow,ba=n),n=Gc(n,l.children),n.flags|=4096);return n}return o?(Fr(),o=l.fallback,v=n.mode,T=e.child,L=T.sibling,l=ur(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,L!==null?o=ur(L,o):(o=ya(o,v,a,null),o.flags|=2),o.return=n,l.return=n,l.sibling=o,n.child=l,l=o,o=n.child,v=e.child.memoizedState,v===null?v=Ic(a):(T=v.cachePool,T!==null?(L=pt._currentValue,T=T.parent!==L?{parent:L,pool:L}:T):T=$m(),v={baseLanes:v.baseLanes|a,cachePool:T}),o.memoizedState=v,o.childLanes=zc(e,g,a),n.memoizedState=Hc,l):(qr(n),a=e.child,e=a.sibling,a=ur(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 Gc(e,n){return n=Vl({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Vl(e,n){return e=Jt(22,e,null,n),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function kc(e,n,a){return fi(n,e.child,null,a),e=Gc(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function dp(e,n,a){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n),ic(e.return,n,a)}function qc(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 hp(e,n,a){var l=n.pendingProps,o=l.revealOrder,f=l.tail;if(xt(e,n,l.children,a),l=gt.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&&dp(e,a,n);else if(e.tag===19)dp(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(gt,l),o){case"forwards":for(a=n.child,o=null;a!==null;)e=a.alternate,e!==null&&Gl(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=n.child,n.child=null):(o=a.sibling,a.sibling=null),qc(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&&Gl(e)===null){n.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}qc(n,!0,a,null,f);break;case"together":qc(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function gr(e,n,a){if(e!==null&&(n.dependencies=e.dependencies),Zr|=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=ur(e,e.pendingProps),n.child=a,a.return=n;e.sibling!==null;)e=e.sibling,a=a.sibling=ur(e,e.pendingProps),a.return=n;a.sibling=null}return n.child}function Fc(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&Al(e)))}function IE(e,n,a){switch(n.tag){case 3:Ue(n,n.stateNode.containerInfo),Hr(n,pt,e.memoizedState.cache),$i();break;case 27:case 5:Gn(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?(qr(n),n.flags|=128,null):(a&n.child.childLanes)!==0?fp(e,n,a):(qr(n),e=gr(e,n,a),e!==null?e.sibling:null);qr(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 hp(e,n,a);n.flags|=128}if(o=n.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Y(gt,gt.current),l)break;return null;case 22:case 23:return n.lanes=0,sp(e,n,a);case 24:Hr(n,pt,e.memoizedState.cache)}return gr(e,n,a)}function mp(e,n,a){if(e!==null)if(e.memoizedProps!==n.pendingProps)yt=!0;else{if(!Fc(e,a)&&(n.flags&128)===0)return yt=!1,IE(e,n,a);yt=(e.flags&131072)!==0}else yt=!1,Le&&(n.flags&1048576)!==0&&Vm(n,Tl,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")Wu(l)?(e=Oa(l,e),n.tag=1,n=up(null,n,l,e,a)):(n.tag=0,n=jc(null,n,l,e,a));else{if(l!=null){if(o=l.$$typeof,o===H){n.tag=11,n=rp(null,n,l,e,a);break e}else if(o===W){n.tag=14,n=ap(null,n,l,e,a);break e}}throw n=Pe(l)||l,Error(s(306,n,""))}}return n;case 0:return jc(e,n,n.type,n.pendingProps,a);case 1:return l=n.type,o=Oa(l,n.pendingProps),up(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,dc(e,n),ss(n,l,null,a);var g=n.memoizedState;if(l=g.cache,Hr(n,pt,l),l!==f.cache&&sc(n,[pt],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=cp(e,n,l,a);break e}else if(l!==o){o=pn(Error(s(424)),n),Wi(o),n=cp(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(et=Dn(e.firstChild),jt=n,Le=!0,_a=null,Vn=!0,a=Y0(n,null,l,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if($i(),l===o){n=gr(e,n,a);break e}xt(e,n,l,a)}n=n.child}return n;case 26:return Fl(e,n),e===null?(a=bg(n.type,null,n.pendingProps,null))?n.memoizedState=a:Le||(a=n.type,e=n.pendingProps,l=ao(ue.current).createElement(a),l[ht]=n,l[Dt]=e,Rt(l,a,e),lt(l),n.stateNode=l):n.memoizedState=bg(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return Gn(n),e===null&&Le&&(l=n.stateNode=pg(n.type,n.pendingProps,ue.current),jt=n,Vn=!0,o=et,Wr(n.type)?(Af=o,et=Dn(l.firstChild)):et=o),xt(e,n,n.pendingProps.children,a),Fl(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Le&&((o=l=et)&&(l=d2(l,n.type,n.pendingProps,Vn),l!==null?(n.stateNode=l,jt=n,et=Dn(l.firstChild),Vn=!1,o=!0):o=!1),o||Ea(n)),Gn(n),o=n.type,f=n.pendingProps,g=e!==null?e.memoizedProps:null,l=f.children,_f(o,f)?l=null:g!==null&&_f(o,g)&&(n.flags|=32),n.memoizedState!==null&&(o=bc(e,n,NE,null,null,a),ws._currentValue=o),Fl(e,n),xt(e,n,l,a),n.child;case 6:return e===null&&Le&&((e=a=et)&&(a=h2(a,n.pendingProps,Vn),a!==null?(n.stateNode=a,jt=n,et=null,e=!0):e=!1),e||Ea(n)),null;case 13:return fp(e,n,a);case 4:return Ue(n,n.stateNode.containerInfo),l=n.pendingProps,e===null?n.child=fi(n,null,l,a):xt(e,n,l,a),n.child;case 11:return rp(e,n,n.type,n.pendingProps,a);case 7:return xt(e,n,n.pendingProps,a),n.child;case 8:return xt(e,n,n.pendingProps.children,a),n.child;case 12:return xt(e,n,n.pendingProps.children,a),n.child;case 10:return l=n.pendingProps,Hr(n,n.type,l.value),xt(e,n,l.children,a),n.child;case 9:return o=n.type._context,l=n.pendingProps.children,Ta(n),o=Bt(o),l=l(o),n.flags|=1,xt(e,n,l,a),n.child;case 14:return ap(e,n,n.type,n.pendingProps,a);case 15:return ip(e,n,n.type,n.pendingProps,a);case 19:return hp(e,n,a);case 31:return l=n.pendingProps,a=n.mode,l={mode:l.mode,children:l.children},e===null?(a=Vl(l,a),a.ref=n.ref,n.child=a,a.return=n,n=a):(a=ur(e.child,l),a.ref=n.ref,n.child=a,a.return=n,n=a),n;case 22:return sp(e,n,a);case 24:return Ta(n),l=Bt(pt),e===null?(o=uc(),o===null&&(o=Ve,f=lc(),o.pooledCache=f,f.refCount++,f!==null&&(o.pooledCacheLanes|=a),o=f),n.memoizedState={parent:l,cache:o},fc(n),Hr(n,pt,o)):((e.lanes&a)!==0&&(dc(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,pt,l)):(l=f.cache,Hr(n,pt,l),l!==o.cache&&sc(n,[pt],a,!0))),xt(e,n,n.pendingProps.children,a),n.child;case 29:throw n.pendingProps}throw Error(s(156,n.tag))}function yr(e){e.flags|=4}function pp(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Tg(n)){if(n=vn.current,n!==null&&((Ne&4194048)===Ne?Pn!==null:(Ne&62914560)!==Ne&&(Ne&536870912)===0||n!==Pn))throw rs=cc,Wm;e.flags|=8192}}function Pl(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 Ke(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 zE(e,n,a){var l=n.pendingProps;switch(nc(n),n.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ke(n),null;case 1:return Ke(n),null;case 3:return a=n.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),n.memoizedState.cache!==l&&(n.flags|=2048),hr(pt),St(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Ki(n)?yr(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Xm())),Ke(n),null;case 26:return a=n.memoizedState,e===null?(yr(n),a!==null?(Ke(n),pp(n,a)):(Ke(n),n.flags&=-16777217)):a?a!==e.memoizedState?(yr(n),Ke(n),pp(n,a)):(Ke(n),n.flags&=-16777217):(e.memoizedProps!==l&&yr(n),Ke(n),n.flags&=-16777217),null;case 27:Mr(n),a=ue.current;var o=n.type;if(e!==null&&n.stateNode!=null)e.memoizedProps!==l&&yr(n);else{if(!l){if(n.stateNode===null)throw Error(s(166));return Ke(n),null}e=te.current,Ki(n)?Pm(n):(e=pg(o,l,a),n.stateNode=e,yr(n))}return Ke(n),null;case 5:if(Mr(n),a=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==l&&yr(n);else{if(!l){if(n.stateNode===null)throw Error(s(166));return Ke(n),null}if(e=te.current,Ki(n))Pm(n);else{switch(o=ao(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[ht]=n,e[Dt]=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(Rt(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&&yr(n)}}return Ke(n),n.flags&=-16777217,null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==l&&yr(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=jt,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}e[ht]=n,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||og(e.nodeValue,a)),e||Ea(n)}else e=ao(e).createTextNode(l),e[ht]=n,n.stateNode=e}return Ke(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[ht]=n}else $i(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Ke(n),o=!1}else o=Xm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return n.flags&256?(pr(n),n):(pr(n),null)}if(pr(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),Pl(n,n.updateQueue),Ke(n),null;case 4:return St(),e===null&&pf(n.stateNode.containerInfo),Ke(n),null;case 10:return hr(n.type),Ke(n),null;case 19:if($(gt),o=n.memoizedState,o===null)return Ke(n),null;if(l=(n.flags&128)!==0,f=o.rendering,f===null)if(l)hs(o,!1);else{if(tt!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(f=Gl(e),f!==null){for(n.flags|=128,hs(o,!1),e=f.updateQueue,n.updateQueue=e,Pl(n,e),n.subtreeFlags=0,e=a,a=n.child;a!==null;)Fm(a,e),a=a.sibling;return Y(gt,gt.current&1|2),n.child}e=e.sibling}o.tail!==null&&Tt()>Zl&&(n.flags|=128,l=!0,hs(o,!1),n.lanes=4194304)}else{if(!l)if(e=Gl(f),e!==null){if(n.flags|=128,l=!0,e=e.updateQueue,n.updateQueue=e,Pl(n,e),hs(o,!0),o.tail===null&&o.tailMode==="hidden"&&!f.alternate&&!Le)return Ke(n),null}else 2*Tt()-o.renderingStartTime>Zl&&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=Tt(),n.sibling=null,e=gt.current,Y(gt,l?e&1|2:e&1),n):(Ke(n),null);case 22:case 23:return pr(n),gc(),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&&(Ke(n),n.subtreeFlags&6&&(n.flags|=8192)):Ke(n),a=n.updateQueue,a!==null&&Pl(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),hr(pt),Ke(n),null;case 25:return null;case 30:return null}throw Error(s(156,n.tag))}function GE(e,n){switch(nc(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return hr(pt),St(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return Mr(n),null;case 13:if(pr(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 $(gt),null;case 4:return St(),null;case 10:return hr(n.type),null;case 22:case 23:return pr(n),gc(),e!==null&&$(Aa),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return hr(pt),null;case 25:return null;default:return null}}function gp(e,n){switch(nc(n),n.tag){case 3:hr(pt),St();break;case 26:case 27:case 5:Mr(n);break;case 4:St();break;case 13:pr(n);break;case 19:$(gt);break;case 10:hr(n.type);break;case 22:case 23:pr(n),gc(),e!==null&&$(Aa);break;case 24:hr(pt)}}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(v){qe(n,n.return,v)}}function Vr(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,v=g.destroy;if(v!==void 0){g.destroy=void 0,o=n;var T=a,L=v;try{L()}catch(F){qe(o,T,F)}}}l=l.next}while(l!==f)}}catch(F){qe(n,n.return,F)}}function yp(e){var n=e.updateQueue;if(n!==null){var a=e.stateNode;try{a0(n,a)}catch(l){qe(e,e.return,l)}}}function bp(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 Yn(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 vp(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 Vc(e,n,a){try{var l=e.stateNode;l2(l,e.type,a,n),l[Dt]=n}catch(o){qe(e,e.return,o)}}function _p(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Wr(e.type)||e.tag===4}function Pc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_p(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&&Wr(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 Yc(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=ro));else if(l!==4&&(l===27&&Wr(e.type)&&(a=e.stateNode,n=null),e=e.child,e!==null))for(Yc(e,n,a),e=e.sibling;e!==null;)Yc(e,n,a),e=e.sibling}function Yl(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&&Wr(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Yl(e,n,a),e=e.sibling;e!==null;)Yl(e,n,a),e=e.sibling}function Ep(e){var n=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,o=n.attributes;o.length;)n.removeAttributeNode(o[0]);Rt(n,l,a),n[ht]=e,n[Dt]=a}catch(f){qe(e,e.return,f)}}var br=!1,it=!1,Xc=!1,Sp=typeof WeakSet=="function"?WeakSet:Set,bt=null;function kE(e,n){if(e=e.containerInfo,bf=co,e=Lm(e),Pu(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,v=-1,T=-1,L=0,F=0,P=e,j=null;t:for(;;){for(var I;P!==a||o!==0&&P.nodeType!==3||(v=g+o),P!==f||l!==0&&P.nodeType!==3||(T=g+l),P.nodeType===3&&(g+=P.nodeValue.length),(I=P.firstChild)!==null;)j=P,P=I;for(;;){if(P===e)break t;if(j===a&&++L===o&&(v=g),j===f&&++F===l&&(T=g),(I=P.nextSibling)!==null)break;P=j,j=P.parentNode}P=I}a=v===-1||T===-1?null:{start:v,end:T}}else a=null}a=a||{start:0,end:0}}else a=null;for(vf={focusedElem:e,selectionRange:a},co=!1,bt=n;bt!==null;)if(n=bt,e=n.child,(n.subtreeFlags&1024)!==0&&e!==null)e.return=n,bt=e;else for(;bt!==null;){switch(n=bt,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)Sf(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Sf(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,bt=e;break}bt=n.return}}function Tp(e,n,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:Pr(e,a),l&4&&ms(5,a);break;case 1:if(Pr(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&&yp(a),l&512&&ps(a,a.return);break;case 3:if(Pr(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{a0(e,n)}catch(g){qe(a,a.return,g)}}break;case 27:n===null&&l&4&&Ep(a);case 26:case 5:Pr(e,a),n===null&&l&4&&vp(a),l&512&&ps(a,a.return);break;case 12:Pr(e,a);break;case 13:Pr(e,a),l&4&&Op(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=KE.bind(null,a),m2(e,a))));break;case 22:if(l=a.memoizedState!==null||br,!l){n=n!==null&&n.memoizedState!==null||it,o=br;var f=it;br=l,(it=n)&&!f?Yr(e,a,(a.subtreeFlags&8772)!==0):Pr(e,a),br=o,it=f}break;case 30:break;default:Pr(e,a)}}function Ap(e){var n=e.alternate;n!==null&&(e.alternate=null,Ap(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&Kt(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,Zt=!1;function vr(e,n,a){for(a=a.child;a!==null;)xp(e,n,a),a=a.sibling}function xp(e,n,a){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(dn,a)}catch{}switch(a.tag){case 26:it||Yn(a,n),vr(e,n,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:it||Yn(a,n);var l=Xe,o=Zt;Wr(a.type)&&(Xe=a.stateNode,Zt=!1),vr(e,n,a),As(a.stateNode),Xe=l,Zt=o;break;case 5:it||Yn(a,n);case 6:if(l=Xe,o=Zt,Xe=null,vr(e,n,a),Xe=l,Zt=o,Xe!==null)if(Zt)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&&(Zt?(e=Xe,hg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ds(e)):hg(Xe,a.stateNode));break;case 4:l=Xe,o=Zt,Xe=a.stateNode.containerInfo,Zt=!0,vr(e,n,a),Xe=l,Zt=o;break;case 0:case 11:case 14:case 15:it||Vr(2,a,n),it||Vr(4,a,n),vr(e,n,a);break;case 1:it||(Yn(a,n),l=a.stateNode,typeof l.componentWillUnmount=="function"&&bp(a,n,l)),vr(e,n,a);break;case 21:vr(e,n,a);break;case 22:it=(l=it)||a.memoizedState!==null,vr(e,n,a),it=l;break;default:vr(e,n,a)}}function Op(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 qE(e){switch(e.tag){case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new Sp),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new Sp),n;default:throw Error(s(435,e.tag))}}function Zc(e,n){var a=qE(e);n.forEach(function(l){var o=$E.bind(null,e,l);a.has(l)||(a.add(l),l.then(o,o))})}function en(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,v=g;e:for(;v!==null;){switch(v.tag){case 27:if(Wr(v.type)){Xe=v.stateNode,Zt=!1;break e}break;case 5:Xe=v.stateNode,Zt=!1;break e;case 3:case 4:Xe=v.stateNode.containerInfo,Zt=!0;break e}v=v.return}if(Xe===null)throw Error(s(160));xp(f,g,o),Xe=null,Zt=!1,f=o.alternate,f!==null&&(f.return=null),o.return=null}if(n.subtreeFlags&13878)for(n=n.child;n!==null;)Rp(n,e),n=n.sibling}var Mn=null;function Rp(e,n){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:en(n,e),tn(e),l&4&&(Vr(3,e,e.return),ms(3,e),Vr(5,e,e.return));break;case 1:en(n,e),tn(e),l&512&&(it||a===null||Yn(a,a.return)),l&64&&br&&(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=Mn;if(en(n,e),tn(e),l&512&&(it||a===null||Yn(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[Br]||f[ht]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=o.createElement(l),o.head.insertBefore(f,o.querySelector("head > title"))),Rt(f,l,a),f[ht]=e,lt(f),l=f;break e;case"link":var g=Eg("link","href",o).get(l+(a.href||""));if(g){for(var v=0;v<g.length;v++)if(f=g[v],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(v,1);break t}}f=o.createElement(l),Rt(f,l,a),o.head.appendChild(f);break;case"meta":if(g=Eg("meta","content",o).get(l+(a.content||""))){for(v=0;v<g.length;v++)if(f=g[v],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(v,1);break t}}f=o.createElement(l),Rt(f,l,a),o.head.appendChild(f);break;default:throw Error(s(468,l))}f[ht]=e,lt(f),l=f}e.stateNode=l}else Sg(o,e.type,e.stateNode);else e.stateNode=_g(o,l,e.memoizedProps);else f!==l?(f===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):f.count--,l===null?Sg(o,e.type,e.stateNode):_g(o,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Vc(e,e.memoizedProps,a.memoizedProps)}break;case 27:en(n,e),tn(e),l&512&&(it||a===null||Yn(a,a.return)),a!==null&&l&4&&Vc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(en(n,e),tn(e),l&512&&(it||a===null||Yn(a,a.return)),e.flags&32){o=e.stateNode;try{Xa(o,"")}catch(I){qe(e,e.return,I)}}l&4&&e.stateNode!=null&&(o=e.memoizedProps,Vc(e,o,a!==null?a.memoizedProps:o)),l&1024&&(Xc=!0);break;case 6:if(en(n,e),tn(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(I){qe(e,e.return,I)}}break;case 3:if(lo=null,o=Mn,Mn=io(n.containerInfo),en(n,e),Mn=o,tn(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Ds(n.containerInfo)}catch(I){qe(e,e.return,I)}Xc&&(Xc=!1,wp(e));break;case 4:l=Mn,Mn=io(e.stateNode.containerInfo),en(n,e),tn(e),Mn=l;break;case 12:en(n,e),tn(e);break;case 13:en(n,e),tn(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(ef=Tt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Zc(e,l)));break;case 22:o=e.memoizedState!==null;var T=a!==null&&a.memoizedState!==null,L=br,F=it;if(br=L||o,it=F||T,en(n,e),it=F,br=L,tn(e),l&8192)e:for(n=e.stateNode,n._visibility=o?n._visibility&-2:n._visibility|1,o&&(a===null||T||br||it||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{v=T.stateNode;var P=T.memoizedProps.style,j=P!=null&&P.hasOwnProperty("display")?P.display:null;v.style.display=j==null||typeof j=="boolean"?"":(""+j).trim()}}catch(I){qe(T,T.return,I)}}}else if(n.tag===6){if(a===null){T=n;try{T.stateNode.nodeValue=o?"":T.memoizedProps}catch(I){qe(T,T.return,I)}}}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,Zc(e,a))));break;case 19:en(n,e),tn(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Zc(e,l)));break;case 30:break;case 21:break;default:en(n,e),tn(e)}}function tn(e){var n=e.flags;if(n&2){try{for(var a,l=e.return;l!==null;){if(_p(l)){a=l;break}l=l.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var o=a.stateNode,f=Pc(e);Yl(e,f,o);break;case 5:var g=a.stateNode;a.flags&32&&(Xa(g,""),a.flags&=-33);var v=Pc(e);Yl(e,v,g);break;case 3:case 4:var T=a.stateNode.containerInfo,L=Pc(e);Yc(e,L,T);break;default:throw Error(s(161))}}catch(F){qe(e,e.return,F)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function wp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;wp(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Pr(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Tp(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:Vr(4,n,n.return),Ra(n);break;case 1:Yn(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&bp(n,n.return,a),Ra(n);break;case 27:As(n.stateNode);case 26:case 5:Yn(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 Yr(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:Yr(o,f,a),ms(4,f);break;case 1:if(Yr(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 v=l.stateNode;try{var T=o.shared.hiddenCallbacks;if(T!==null)for(o.shared.hiddenCallbacks=null,o=0;o<T.length;o++)r0(T[o],v)}catch(L){qe(l,l.return,L)}}a&&g&64&&yp(f),ps(f,f.return);break;case 27:Ep(f);case 26:case 5:Yr(o,f,a),a&&l===null&&g&4&&vp(f),ps(f,f.return);break;case 12:Yr(o,f,a);break;case 13:Yr(o,f,a),a&&g&4&&Op(o,f);break;case 22:f.memoizedState===null&&Yr(o,f,a),ps(f,f.return);break;case 30:break;default:Yr(o,f,a)}n=n.sibling}}function Qc(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 Kc(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 Xn(e,n,a,l){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Cp(e,n,a,l),n=n.sibling}function Cp(e,n,a,l){var o=n.flags;switch(n.tag){case 0:case 11:case 15:Xn(e,n,a,l),o&2048&&ms(9,n);break;case 1:Xn(e,n,a,l);break;case 3:Xn(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){Xn(e,n,a,l),e=n.stateNode;try{var f=n.memoizedProps,g=f.id,v=f.onPostCommit;typeof v=="function"&&v(g,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){qe(n,n.return,T)}}else Xn(e,n,a,l);break;case 13:Xn(e,n,a,l);break;case 23:break;case 22:f=n.stateNode,g=n.alternate,n.memoizedState!==null?f._visibility&2?Xn(e,n,a,l):gs(e,n):f._visibility&2?Xn(e,n,a,l):(f._visibility|=2,di(e,n,a,l,(n.subtreeFlags&10256)!==0)),o&2048&&Qc(g,n);break;case 24:Xn(e,n,a,l),o&2048&&Kc(n.alternate,n);break;default:Xn(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,v=a,T=l,L=g.flags;switch(g.tag){case 0:case 11:case 15:di(f,g,v,T,o),ms(8,g);break;case 23:break;case 22:var F=g.stateNode;g.memoizedState!==null?F._visibility&2?di(f,g,v,T,o):gs(f,g):(F._visibility|=2,di(f,g,v,T,o)),o&&L&2048&&Qc(g.alternate,g);break;case 24:di(f,g,v,T,o),o&&L&2048&&Kc(g.alternate,g);break;default:di(f,g,v,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&&Qc(l.alternate,l);break;case 24:gs(a,l),o&2048&&Kc(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;)Np(e),e=e.sibling}function Np(e){switch(e.tag){case 26:hi(e),e.flags&ys&&e.memoizedState!==null&&R2(Mn,e.memoizedState,e.memoizedProps);break;case 5:hi(e);break;case 3:case 4:var n=Mn;Mn=io(e.stateNode.containerInfo),hi(e),Mn=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 Mp(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 bs(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];bt=l,Lp(l,e)}Mp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Dp(e),e=e.sibling}function Dp(e){switch(e.tag){case 0:case 11:case 15:bs(e),e.flags&2048&&Vr(9,e,e.return);break;case 3:bs(e);break;case 12:bs(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,Xl(e)):bs(e);break;default:bs(e)}}function Xl(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];bt=l,Lp(l,e)}Mp(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Vr(8,n,n.return),Xl(n);break;case 22:a=n.stateNode,a._visibility&2&&(a._visibility&=-3,Xl(n));break;default:Xl(n)}e=e.sibling}}function Lp(e,n){for(;bt!==null;){var a=bt;switch(a.tag){case 0:case 11:case 15:Vr(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,bt=l;else e:for(a=e;bt!==null;){l=bt;var o=l.sibling,f=l.return;if(Ap(l),l===a){bt=null;break e}if(o!==null){o.return=f,bt=o;break e}bt=f}}}var FE={getCacheForType:function(e){var n=Bt(pt),a=n.data.get(e);return a===void 0&&(a=e(),n.data.set(e,a)),a}},VE=typeof WeakMap=="function"?WeakMap:Map,je=0,Ve=null,xe=null,Ne=0,He=0,nn=null,Xr=!1,mi=!1,$c=!1,_r=0,tt=0,Zr=0,wa=0,Wc=0,_n=0,pi=0,vs=null,Qt=null,Jc=!1,ef=0,Zl=1/0,Ql=null,Qr=null,Ot=0,Kr=null,gi=null,yi=0,tf=0,nf=null,Bp=null,_s=0,rf=null;function rn(){if((je&2)!==0&&Ne!==0)return Ne&-Ne;if(G.T!==null){var e=ai;return e!==0?e:ff()}return Ii()}function Up(){_n===0&&(_n=(Ne&536870912)===0||Le?da():536870912);var e=vn.current;return e!==null&&(e.flags|=32),_n}function an(e,n,a){(e===Ve&&(He===2||He===9)||e.cancelPendingCommit!==null)&&(bi(e,0),$r(e,Ne,_n,!1)),wn(e,a),((je&2)===0||e!==Ve)&&(e===Ve&&((je&2)===0&&(wa|=a),tt===4&&$r(e,Ne,_n,!1)),Zn(e))}function jp(e,n,a){if((je&6)!==0)throw Error(s(327));var l=!a&&(n&124)===0&&(n&e.expiredLanes)===0||rr(e,n),o=l?XE(e,n):lf(e,n,!0),f=l;do{if(o===0){mi&&!l&&$r(e,n,0,!1);break}else{if(a=e.current.alternate,f&&!PE(a)){o=lf(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 v=e;o=vs;var T=v.current.memoizedState.isDehydrated;if(T&&(bi(v,g).flags|=256),g=lf(v,g,!1),g!==2){if($c&&!T){v.errorRecoveryDisabledLanes|=f,wa|=f,o=4;break e}f=Qt,Qt=o,f!==null&&(Qt===null?Qt=f:Qt.push.apply(Qt,f))}o=g}if(f=!1,o!==2)continue}}if(o===1){bi(e,0),$r(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:$r(l,n,_n,!Xr);break e;case 2:Qt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((n&62914560)===n&&(o=ef+300-Tt(),10<o)){if($r(l,n,_n,!Xr),Lr(l,0,!0)!==0)break e;l.timeoutHandle=fg(Hp.bind(null,l,a,Qt,Ql,Jc,n,_n,wa,pi,Xr,f,2,-0,0),o);break e}Hp(l,a,Qt,Ql,Jc,n,_n,wa,pi,Xr,f,0,-0,0)}}break}while(!0);Zn(e)}function Hp(e,n,a,l,o,f,g,v,T,L,F,P,j,I){if(e.timeoutHandle=-1,P=n.subtreeFlags,(P&8192||(P&16785408)===16785408)&&(Rs={stylesheets:null,count:0,unsuspend:O2},Np(n),P=w2(),P!==null)){e.cancelPendingCommit=P(Vp.bind(null,e,n,f,a,l,o,g,v,T,F,1,j,I)),$r(e,f,g,!L);return}Vp(e,n,f,a,l,o,g,v,T)}function PE(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(!Wt(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 $r(e,n,a,l){n&=~Wc,n&=~wa,e.suspendedLanes|=n,e.pingedLanes&=~n,l&&(e.warmLanes|=n),l=e.expirationTimes;for(var o=n;0<o;){var f=31-Mt(o),g=1<<f;l[f]=-1,o&=~g}a!==0&&sl(e,a,n)}function Kl(){return(je&6)===0?(Es(0),!1):!0}function af(){if(xe!==null){if(He===0)var e=xe.return;else e=xe,dr=Sa=null,Ec(e),ci=null,fs=0,e=xe;for(;e!==null;)gp(e.alternate,e),e=e.return;xe=null}}function bi(e,n){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,u2(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),af(),Ve=e,xe=a=ur(e.current,null),Ne=n,He=0,nn=null,Xr=!1,mi=rr(e,n),$c=!1,pi=_n=Wc=wa=Zr=tt=0,Qt=vs=null,Jc=!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-Mt(l),f=1<<o;n|=e[o],l&=~f}return _r=n,bl(),a}function Ip(e,n){_e=null,G.H=Hl,n===ns||n===Rl?(n=t0(),He=3):n===Wm?(n=t0(),He=4):He=n===np?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,nn=n,xe===null&&(tt=1,ql(e,pn(n,e.current)))}function zp(){var e=G.H;return G.H=Hl,e===null?Hl:e}function Gp(){var e=G.A;return G.A=FE,e}function sf(){tt=4,Xr||(Ne&4194048)!==Ne&&vn.current!==null||(mi=!0),(Zr&134217727)===0&&(wa&134217727)===0||Ve===null||$r(Ve,Ne,_n,!1)}function lf(e,n,a){var l=je;je|=2;var o=zp(),f=Gp();(Ve!==e||Ne!==n)&&(Ql=null,bi(e,n)),n=!1;var g=tt;e:do try{if(He!==0&&xe!==null){var v=xe,T=nn;switch(He){case 8:af(),g=6;break e;case 3:case 2:case 9:case 6:vn.current===null&&(n=!0);var L=He;if(He=0,nn=null,vi(e,v,T,L),a&&mi){g=0;break e}break;default:L=He,He=0,nn=null,vi(e,v,T,L)}}YE(),g=tt;break}catch(F){Ip(e,F)}while(!0);return n&&e.shellSuspendCounter++,dr=Sa=null,je=l,G.H=o,G.A=f,xe===null&&(Ve=null,Ne=0,bl()),g}function YE(){for(;xe!==null;)kp(xe)}function XE(e,n){var a=je;je|=2;var l=zp(),o=Gp();Ve!==e||Ne!==n?(Ql=null,Zl=Tt()+500,bi(e,n)):mi=rr(e,n);e:do try{if(He!==0&&xe!==null){n=xe;var f=nn;t:switch(He){case 1:He=0,nn=null,vi(e,n,f,1);break;case 2:case 9:if(Jm(f)){He=0,nn=null,qp(n);break}n=function(){He!==2&&He!==9||Ve!==e||(He=7),Zn(e)},f.then(n,n);break e;case 3:He=7;break e;case 4:He=5;break e;case 7:Jm(f)?(He=0,nn=null,qp(n)):(He=0,nn=null,vi(e,n,f,7));break;case 5:var g=null;switch(xe.tag){case 26:g=xe.memoizedState;case 5:case 27:var v=xe;if(!g||Tg(g)){He=0,nn=null;var T=v.sibling;if(T!==null)xe=T;else{var L=v.return;L!==null?(xe=L,$l(L)):xe=null}break t}}He=0,nn=null,vi(e,n,f,5);break;case 6:He=0,nn=null,vi(e,n,f,6);break;case 8:af(),tt=6;break e;default:throw Error(s(462))}}ZE();break}catch(F){Ip(e,F)}while(!0);return dr=Sa=null,G.H=l,G.A=o,je=a,xe!==null?0:(Ve=null,Ne=0,bl(),tt)}function ZE(){for(;xe!==null&&!Di();)kp(xe)}function kp(e){var n=mp(e.alternate,e,_r);e.memoizedProps=e.pendingProps,n===null?$l(e):xe=n}function qp(e){var n=e,a=n.alternate;switch(n.tag){case 15:case 0:n=op(a,n,n.pendingProps,n.type,void 0,Ne);break;case 11:n=op(a,n,n.pendingProps,n.type.render,n.ref,Ne);break;case 5:Ec(n);default:gp(a,n),n=xe=Fm(n,_r),n=mp(a,n,_r)}e.memoizedProps=e.pendingProps,n===null?$l(e):xe=n}function vi(e,n,a,l){dr=Sa=null,Ec(n),ci=null,fs=0;var o=n.return;try{if(HE(e,o,n,a,Ne)){tt=1,ql(e,pn(a,e.current)),xe=null;return}}catch(f){if(o!==null)throw xe=o,f;tt=1,ql(e,pn(a,e.current)),xe=null;return}n.flags&32768?(Le||l===1?e=!0:mi||(Ne&536870912)!==0?e=!1:(Xr=e=!0,(l===2||l===9||l===3||l===6)&&(l=vn.current,l!==null&&l.tag===13&&(l.flags|=16384))),Fp(n,e)):$l(n)}function $l(e){var n=e;do{if((n.flags&32768)!==0){Fp(n,Xr);return}e=n.return;var a=zE(n.alternate,n,_r);if(a!==null){xe=a;return}if(n=n.sibling,n!==null){xe=n;return}xe=n=e}while(n!==null);tt===0&&(tt=5)}function Fp(e,n){do{var a=GE(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);tt=6,xe=null}function Vp(e,n,a,l,o,f,g,v,T){e.cancelPendingCommit=null;do Wl();while(Ot!==0);if((je&6)!==0)throw Error(s(327));if(n!==null){if(n===e.current)throw Error(s(177));if(f=n.lanes|n.childLanes,f|=Ku,Ru(e,a,f,g,v,T),e===Ve&&(xe=Ve=null,Ne=0),gi=n,Kr=e,yi=a,tf=f,nf=o,Bp=l,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,WE(ca,function(){return Qp(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||l){l=G.T,G.T=null,o=K.p,K.p=2,g=je,je|=4;try{kE(e,n,a)}finally{je=g,K.p=o,G.T=l}}Ot=1,Pp(),Yp(),Xp()}}function Pp(){if(Ot===1){Ot=0;var e=Kr,n=gi,a=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||a){a=G.T,G.T=null;var l=K.p;K.p=2;var o=je;je|=4;try{Rp(n,e);var f=vf,g=Lm(e.containerInfo),v=f.focusedElem,T=f.selectionRange;if(g!==v&&v&&v.ownerDocument&&Dm(v.ownerDocument.documentElement,v)){if(T!==null&&Pu(v)){var L=T.start,F=T.end;if(F===void 0&&(F=L),"selectionStart"in v)v.selectionStart=L,v.selectionEnd=Math.min(F,v.value.length);else{var P=v.ownerDocument||document,j=P&&P.defaultView||window;if(j.getSelection){var I=j.getSelection(),he=v.textContent.length,fe=Math.min(T.start,he),ke=T.end===void 0?fe:Math.min(T.end,he);!I.extend&&fe>ke&&(g=ke,ke=fe,fe=g);var M=Mm(v,fe),C=Mm(v,ke);if(M&&C&&(I.rangeCount!==1||I.anchorNode!==M.node||I.anchorOffset!==M.offset||I.focusNode!==C.node||I.focusOffset!==C.offset)){var D=P.createRange();D.setStart(M.node,M.offset),I.removeAllRanges(),fe>ke?(I.addRange(D),I.extend(C.node,C.offset)):(D.setEnd(C.node,C.offset),I.addRange(D))}}}}for(P=[],I=v;I=I.parentNode;)I.nodeType===1&&P.push({element:I,left:I.scrollLeft,top:I.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<P.length;v++){var V=P[v];V.element.scrollLeft=V.left,V.element.scrollTop=V.top}}co=!!bf,vf=bf=null}finally{je=o,K.p=l,G.T=a}}e.current=n,Ot=2}}function Yp(){if(Ot===2){Ot=0;var e=Kr,n=gi,a=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||a){a=G.T,G.T=null;var l=K.p;K.p=2;var o=je;je|=4;try{Tp(e,n.alternate,n)}finally{je=o,K.p=l,G.T=a}}Ot=3}}function Xp(){if(Ot===4||Ot===3){Ot=0,Li();var e=Kr,n=gi,a=yi,l=Bp;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?Ot=5:(Ot=0,gi=Kr=null,Zp(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Qr=null),Hi(a),n=n.stateNode,Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(dn,n,void 0,(n.current.flags&128)===128)}catch{}if(l!==null){n=G.T,o=K.p,K.p=2,G.T=null;try{for(var f=e.onRecoverableError,g=0;g<l.length;g++){var v=l[g];f(v.value,{componentStack:v.stack})}}finally{G.T=n,K.p=o}}(yi&3)!==0&&Wl(),Zn(e),o=e.pendingLanes,(a&4194090)!==0&&(o&42)!==0?e===rf?_s++:(_s=0,rf=e):_s=0,Es(0)}}function Zp(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,es(n)))}function Wl(e){return Pp(),Yp(),Xp(),Qp()}function Qp(){if(Ot!==5)return!1;var e=Kr,n=tf;tf=0;var a=Hi(yi),l=G.T,o=K.p;try{K.p=32>a?32:a,G.T=null,a=nf,nf=null;var f=Kr,g=yi;if(Ot=0,gi=Kr=null,yi=0,(je&6)!==0)throw Error(s(331));var v=je;if(je|=4,Dp(f.current),Cp(f,f.current,g,a),je=v,Es(0,!1),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(dn,f)}catch{}return!0}finally{K.p=o,G.T=l,Zp(e,n)}}function Kp(e,n,a){n=pn(a,n),n=Uc(e.stateNode,n,2),e=Gr(e,n,2),e!==null&&(wn(e,2),Zn(e))}function qe(e,n,a){if(e.tag===3)Kp(e,e,a);else for(;n!==null;){if(n.tag===3){Kp(n,e,a);break}else if(n.tag===1){var l=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Qr===null||!Qr.has(l))){e=pn(a,e),a=ep(2),l=Gr(n,a,2),l!==null&&(tp(a,l,n,e),wn(l,2),Zn(l));break}}n=n.return}}function of(e,n,a){var l=e.pingCache;if(l===null){l=e.pingCache=new VE;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)||($c=!0,o.add(a),e=QE.bind(null,e,n,a),n.then(e,e))}function QE(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&&(tt===4||tt===3&&(Ne&62914560)===Ne&&300>Tt()-ef?(je&2)===0&&bi(e,0):Wc|=a,pi===Ne&&(pi=0)),Zn(e)}function $p(e,n){n===0&&(n=ha()),e=ei(e,n),e!==null&&(wn(e,n),Zn(e))}function KE(e){var n=e.memoizedState,a=0;n!==null&&(a=n.retryLane),$p(e,a)}function $E(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),$p(e,a)}function WE(e,n){return qt(e,n)}var Jl=null,_i=null,uf=!1,eo=!1,cf=!1,Ca=0;function Zn(e){e!==_i&&e.next===null&&(_i===null?Jl=_i=e:_i=_i.next=e),eo=!0,uf||(uf=!0,e2())}function Es(e,n){if(!cf&&eo){cf=!0;do for(var a=!1,l=Jl;l!==null;){if(e!==0){var o=l.pendingLanes;if(o===0)var f=0;else{var g=l.suspendedLanes,v=l.pingedLanes;f=(1<<31-Mt(42|e)+1)-1,f&=o&~(g&~v),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(a=!0,tg(l,f))}else f=Ne,f=Lr(l,l===Ve?f:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(f&3)===0||rr(l,f)||(a=!0,tg(l,f));l=l.next}while(a);cf=!1}}function JE(){Wp()}function Wp(){eo=uf=!1;var e=0;Ca!==0&&(o2()&&(e=Ca),Ca=0);for(var n=Tt(),a=null,l=Jl;l!==null;){var o=l.next,f=Jp(l,n);f===0?(l.next=null,a===null?Jl=o:a.next=o,o===null&&(_i=a)):(a=l,(e!==0||(f&3)!==0)&&(eo=!0)),l=o}Es(e)}function Jp(e,n){for(var a=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var g=31-Mt(f),v=1<<g,T=o[g];T===-1?((v&a)===0||(v&l)!==0)&&(o[g]=Ou(v,n)):T<=n&&(e.expiredLanes|=v),f&=~v}if(n=Ve,a=Ne,a=Lr(e,e===n?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===n&&(He===2||He===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&On(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||rr(e,a)){if(n=a&-a,n===e.callbackPriority)return n;switch(l!==null&&On(l),Hi(a)){case 2:case 8:a=Bi;break;case 32:a=ca;break;case 268435456:a=Fa;break;default:a=ca}return l=eg.bind(null,e),a=qt(a,l),e.callbackPriority=n,e.callbackNode=a,n}return l!==null&&l!==null&&On(l),e.callbackPriority=2,e.callbackNode=null,2}function eg(e,n){if(Ot!==0&&Ot!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Wl()&&e.callbackNode!==a)return null;var l=Ne;return l=Lr(e,e===Ve?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(jp(e,l,n),Jp(e,Tt()),e.callbackNode!=null&&e.callbackNode===a?eg.bind(null,e):null)}function tg(e,n){if(Wl())return null;jp(e,n,!0)}function e2(){c2(function(){(je&6)!==0?qt(ua,JE):Wp()})}function ff(){return Ca===0&&(Ca=da()),Ca}function ng(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:fl(""+e)}function rg(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 t2(e,n,a,l,o){if(n==="submit"&&a&&a.stateNode===o){var f=ng((o[Dt]||null).action),g=l.submitter;g&&(n=(n=g[Dt]||null)?ng(n.formAction):g.getAttribute("formAction"),n!==null&&(f=n,g=null));var v=new pl("action","action",null,l,o);e.push({event:v,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Ca!==0){var T=g?rg(o,g):new FormData(o);Nc(a,{pending:!0,data:T,method:o.method,action:f},null,T)}}else typeof f=="function"&&(v.preventDefault(),T=g?rg(o,g):new FormData(o),Nc(a,{pending:!0,data:T,method:o.method,action:f},f,T))},currentTarget:o}]})}}for(var df=0;df<Qu.length;df++){var hf=Qu[df],n2=hf.toLowerCase(),r2=hf[0].toUpperCase()+hf.slice(1);Nn(n2,"on"+r2)}Nn(jm,"onAnimationEnd"),Nn(Hm,"onAnimationIteration"),Nn(Im,"onAnimationStart"),Nn("dblclick","onDoubleClick"),Nn("focusin","onFocus"),Nn("focusout","onBlur"),Nn(_E,"onTransitionRun"),Nn(EE,"onTransitionStart"),Nn(SE,"onTransitionCancel"),Nn(zm,"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(" "),a2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ss));function ag(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 v=l[g],T=v.instance,L=v.currentTarget;if(v=v.listener,T!==f&&o.isPropagationStopped())break e;f=v,o.currentTarget=L;try{f(o)}catch(F){kl(F)}o.currentTarget=null,f=T}else for(g=0;g<l.length;g++){if(v=l[g],T=v.instance,L=v.currentTarget,v=v.listener,T!==f&&o.isPropagationStopped())break e;f=v,o.currentTarget=L;try{f(o)}catch(F){kl(F)}o.currentTarget=null,f=T}}}}function Oe(e,n){var a=n[qn];a===void 0&&(a=n[qn]=new Set);var l=e+"__bubble";a.has(l)||(ig(n,e,2,!1),a.add(l))}function mf(e,n,a){var l=0;n&&(l|=4),ig(a,e,l,n)}var to="_reactListening"+Math.random().toString(36).slice(2);function pf(e){if(!e[to]){e[to]=!0,le.forEach(function(a){a!=="selectionchange"&&(a2.has(a)||mf(a,!1,e),mf(a,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[to]||(n[to]=!0,mf("selectionchange",!1,n))}}function ig(e,n,a,l){switch(Cg(n)){case 2:var o=M2;break;case 8:o=D2;break;default:o=Cf}a=o.bind(null,n,a,e),o=void 0,!ju||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 gf(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 v=l.stateNode.containerInfo;if(v===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(;v!==null;){if(g=ar(v),g===null)return;if(T=g.tag,T===5||T===6||T===26||T===27){l=f=g;continue e}v=v.parentNode}}l=l.return}dm(function(){var L=f,F=Bu(a),P=[];e:{var j=Gm.get(e);if(j!==void 0){var I=pl,he=e;switch(e){case"keypress":if(hl(a)===0)break e;case"keydown":case"keyup":I=W_;break;case"focusin":he="focus",I=Gu;break;case"focusout":he="blur",I=Gu;break;case"beforeblur":case"afterblur":I=Gu;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":I=pm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":I=G_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":I=tE;break;case jm:case Hm:case Im:I=F_;break;case zm:I=rE;break;case"scroll":case"scrollend":I=I_;break;case"wheel":I=iE;break;case"copy":case"cut":case"paste":I=P_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":I=ym;break;case"toggle":case"beforetoggle":I=lE}var fe=(n&4)!==0,ke=!fe&&(e==="scroll"||e==="scrollend"),M=fe?j!==null?j+"Capture":null:j;fe=[];for(var C=L,D;C!==null;){var V=C;if(D=V.stateNode,V=V.tag,V!==5&&V!==26&&V!==27||D===null||M===null||(V=ki(C,M),V!=null&&fe.push(Ts(C,V,D))),ke)break;C=C.return}0<fe.length&&(j=new I(j,he,null,a,F),P.push({event:j,listeners:fe}))}}if((n&7)===0){e:{if(j=e==="mouseover"||e==="pointerover",I=e==="mouseout"||e==="pointerout",j&&a!==Lu&&(he=a.relatedTarget||a.fromElement)&&(ar(he)||he[At]))break e;if((I||j)&&(j=F.window===F?F:(j=F.ownerDocument)?j.defaultView||j.parentWindow:window,I?(he=a.relatedTarget||a.toElement,I=L,he=he?ar(he):null,he!==null&&(ke=c(he),fe=he.tag,he!==ke||fe!==5&&fe!==27&&fe!==6)&&(he=null)):(I=null,he=L),I!==he)){if(fe=pm,V="onMouseLeave",M="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(fe=ym,V="onPointerLeave",M="onPointerEnter",C="pointer"),ke=I==null?j:Ur(I),D=he==null?j:Ur(he),j=new fe(V,C+"leave",I,a,F),j.target=ke,j.relatedTarget=D,V=null,ar(F)===L&&(fe=new fe(M,C+"enter",he,a,F),fe.target=D,fe.relatedTarget=ke,V=fe),ke=V,I&&he)t:{for(fe=I,M=he,C=0,D=fe;D;D=Ei(D))C++;for(D=0,V=M;V;V=Ei(V))D++;for(;0<C-D;)fe=Ei(fe),C--;for(;0<D-C;)M=Ei(M),D--;for(;C--;){if(fe===M||M!==null&&fe===M.alternate)break t;fe=Ei(fe),M=Ei(M)}fe=null}else fe=null;I!==null&&sg(P,j,I,fe,!1),he!==null&&ke!==null&&sg(P,ke,he,fe,!0)}}e:{if(j=L?Ur(L):window,I=j.nodeName&&j.nodeName.toLowerCase(),I==="select"||I==="input"&&j.type==="file")var ne=xm;else if(Tm(j))if(Om)ne=yE;else{ne=pE;var Se=mE}else I=j.nodeName,!I||I.toLowerCase()!=="input"||j.type!=="checkbox"&&j.type!=="radio"?L&&Du(L.elementType)&&(ne=xm):ne=gE;if(ne&&(ne=ne(e,L))){Am(P,ne,a,F);break e}Se&&Se(e,j,L),e==="focusout"&&L&&j.type==="number"&&L.memoizedProps.value!=null&&Mu(j,"number",j.value)}switch(Se=L?Ur(L):window,e){case"focusin":(Tm(Se)||Se.contentEditable==="true")&&($a=Se,Yu=L,Qi=null);break;case"focusout":Qi=Yu=$a=null;break;case"mousedown":Xu=!0;break;case"contextmenu":case"mouseup":case"dragend":Xu=!1,Bm(P,a,F);break;case"selectionchange":if(vE)break;case"keydown":case"keyup":Bm(P,a,F)}var oe;if(qu)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?Em(e,a)&&(de="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(de="onCompositionStart");de&&(bm&&a.locale!=="ko"&&(Ka||de!=="onCompositionStart"?de==="onCompositionEnd"&&Ka&&(oe=hm()):(jr=F,Hu="value"in jr?jr.value:jr.textContent,Ka=!0)),Se=no(L,de),0<Se.length&&(de=new gm(de,e,null,a,F),P.push({event:de,listeners:Se}),oe?de.data=oe:(oe=Sm(a),oe!==null&&(de.data=oe)))),(oe=uE?cE(e,a):fE(e,a))&&(de=no(L,"onBeforeInput"),0<de.length&&(Se=new gm("onBeforeInput","beforeinput",null,a,F),P.push({event:Se,listeners:de}),Se.data=oe)),t2(P,e,L,a,F)}ag(P,n)})}function Ts(e,n,a){return{instance:e,listener:n,currentTarget:a}}function no(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 sg(e,n,a,l,o){for(var f=n._reactName,g=[];a!==null&&a!==l;){var v=a,T=v.alternate,L=v.stateNode;if(v=v.tag,T!==null&&T===l)break;v!==5&&v!==26&&v!==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 i2=/\r\n?/g,s2=/\u0000|\uFFFD/g;function lg(e){return(typeof e=="string"?e:""+e).replace(i2,`
|
|
49
|
+
`).replace(s2,"")}function og(e,n){return n=lg(n),lg(e)===n}function ro(){}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":Fn(e,"class",l);break;case"tabIndex":Fn(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Fn(e,a,l);break;case"style":cm(e,l,f);break;case"data":if(n!=="object"){Fn(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=fl(""+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=fl(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=ro);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=fl(""+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),Pt(e,"popover",l);break;case"xlinkActuate":$t(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":$t(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":$t(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":$t(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":$t(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":$t(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":$t(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":$t(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":$t(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Pt(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=j_.get(a)||a,Pt(e,a,l))}}function yf(e,n,a,l,o,f){switch(a){case"style":cm(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=ro);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[Dt]||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,""):Pt(e,a,l)}}}function Rt(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 v=f=g=o=null,T=null,L=null;for(l in a)if(a.hasOwnProperty(l)){var F=a[l];if(F!=null)switch(l){case"name":o=F;break;case"type":g=F;break;case"checked":T=F;break;case"defaultChecked":L=F;break;case"value":f=F;break;case"defaultValue":v=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(s(137,n));break;default:Ge(e,n,l,F,a,null)}}sm(e,f,v,T,L,g,o,!1),ul(e);return;case"select":Oe("invalid",e),l=g=f=null;for(o in a)if(a.hasOwnProperty(o)&&(v=a[o],v!=null))switch(o){case"value":f=v;break;case"defaultValue":g=v;break;case"multiple":l=v;default:Ge(e,n,o,v,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)&&(v=a[g],v!=null))switch(g){case"value":l=v;break;case"defaultValue":o=v;break;case"children":f=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(s(91));break;default:Ge(e,n,g,v,a,null)}om(e,l,o,f),ul(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(Du(n)){for(F in a)a.hasOwnProperty(F)&&(l=a[F],l!==void 0&&yf(e,n,F,l,a,void 0));return}}for(v in a)a.hasOwnProperty(v)&&(l=a[v],l!=null&&Ge(e,n,v,l,a,null))}function l2(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,v=null,T=null,L=null,F=null;for(I in a){var P=a[I];if(a.hasOwnProperty(I)&&P!=null)switch(I){case"checked":break;case"value":break;case"defaultValue":T=P;default:l.hasOwnProperty(I)||Ge(e,n,I,null,l,P)}}for(var j in l){var I=l[j];if(P=a[j],l.hasOwnProperty(j)&&(I!=null||P!=null))switch(j){case"type":f=I;break;case"name":o=I;break;case"checked":L=I;break;case"defaultChecked":F=I;break;case"value":g=I;break;case"defaultValue":v=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(s(137,n));break;default:I!==P&&Ge(e,n,j,I,l,P)}}Nu(e,g,v,T,L,F,f,o);return;case"select":I=g=v=j=null;for(f in a)if(T=a[f],a.hasOwnProperty(f)&&T!=null)switch(f){case"value":break;case"multiple":I=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":j=f;break;case"defaultValue":v=f;break;case"multiple":g=f;default:f!==T&&Ge(e,n,o,f,l,T)}n=v,a=g,l=I,j!=null?Ya(e,!!a,j,!1):!!l!=!!a&&(n!=null?Ya(e,!!a,n,!0):Ya(e,!!a,a?[]:"",!1));return;case"textarea":I=j=null;for(v in a)if(o=a[v],a.hasOwnProperty(v)&&o!=null&&!l.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Ge(e,n,v,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":j=o;break;case"defaultValue":I=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)}lm(e,j,I);return;case"option":for(var he in a)if(j=a[he],a.hasOwnProperty(he)&&j!=null&&!l.hasOwnProperty(he))switch(he){case"selected":e.selected=!1;break;default:Ge(e,n,he,null,l,j)}for(T in l)if(j=l[T],I=a[T],l.hasOwnProperty(T)&&j!==I&&(j!=null||I!=null))switch(T){case"selected":e.selected=j&&typeof j!="function"&&typeof j!="symbol";break;default:Ge(e,n,T,j,l,I)}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)j=a[fe],a.hasOwnProperty(fe)&&j!=null&&!l.hasOwnProperty(fe)&&Ge(e,n,fe,null,l,j);for(L in l)if(j=l[L],I=a[L],l.hasOwnProperty(L)&&j!==I&&(j!=null||I!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(s(137,n));break;default:Ge(e,n,L,j,l,I)}return;default:if(Du(n)){for(var ke in a)j=a[ke],a.hasOwnProperty(ke)&&j!==void 0&&!l.hasOwnProperty(ke)&&yf(e,n,ke,void 0,l,j);for(F in l)j=l[F],I=a[F],!l.hasOwnProperty(F)||j===I||j===void 0&&I===void 0||yf(e,n,F,j,l,I);return}}for(var M in a)j=a[M],a.hasOwnProperty(M)&&j!=null&&!l.hasOwnProperty(M)&&Ge(e,n,M,null,l,j);for(P in l)j=l[P],I=a[P],!l.hasOwnProperty(P)||j===I||j==null&&I==null||Ge(e,n,P,j,l,I)}var bf=null,vf=null;function ao(e){return e.nodeType===9?e:e.ownerDocument}function ug(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 cg(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 _f(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 Ef=null;function o2(){var e=window.event;return e&&e.type==="popstate"?e===Ef?!1:(Ef=e,!0):(Ef=null,!1)}var fg=typeof setTimeout=="function"?setTimeout:void 0,u2=typeof clearTimeout=="function"?clearTimeout:void 0,dg=typeof Promise=="function"?Promise:void 0,c2=typeof queueMicrotask=="function"?queueMicrotask:typeof dg<"u"?function(e){return dg.resolve(null).then(e).catch(f2)}:fg;function f2(e){setTimeout(function(){throw e})}function Wr(e){return e==="head"}function hg(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 v=g.nextSibling,T=g.nodeName;g[Br]||T==="SCRIPT"||T==="STYLE"||T==="LINK"&&g.rel.toLowerCase()==="stylesheet"||a.removeChild(g),g=v}}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 Sf(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":Sf(a),Kt(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function d2(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[Br])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=Dn(e.nextSibling),e===null)break}return null}function h2(e,n,a){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Dn(e.nextSibling),e===null))return null;return e}function Tf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function m2(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 Dn(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 Af=null;function mg(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 pg(e,n,a){switch(n=ao(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]);Kt(e)}var En=new Map,gg=new Set;function io(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Er=K.d;K.d={f:p2,r:g2,D:y2,C:b2,L:v2,m:_2,X:S2,S:E2,M:T2};function p2(){var e=Er.f(),n=Kl();return e||n}function g2(e){var n=ir(e);n!==null&&n.tag===5&&n.type==="form"?j0(n):Er.r(e)}var Si=typeof document>"u"?null:document;function yg(e,n,a){var l=Si;if(l&&typeof n=="string"&&n){var o=mn(n);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),gg.has(o)||(gg.add(o),e={rel:e,crossOrigin:a,href:n},l.querySelector(o)===null&&(n=l.createElement("link"),Rt(n,"link",e),lt(n),l.head.appendChild(n)))}}function y2(e){Er.D(e),yg("dns-prefetch",e,null)}function b2(e,n){Er.C(e,n),yg("preconnect",e,n)}function v2(e,n,a){Er.L(e,n,a);var l=Si;if(l&&e&&n){var o='link[rel="preload"][as="'+mn(n)+'"]';n==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+mn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+mn(a.imageSizes)+'"]')):o+='[href="'+mn(e)+'"]';var f=o;switch(n){case"style":f=Ti(e);break;case"script":f=Ai(e)}En.has(f)||(e=b({rel:"preload",href:n==="image"&&a&&a.imageSrcSet?void 0:e,as:n},a),En.set(f,e),l.querySelector(o)!==null||n==="style"&&l.querySelector(xs(f))||n==="script"&&l.querySelector(Os(f))||(n=l.createElement("link"),Rt(n,"link",e),lt(n),l.head.appendChild(n)))}}function _2(e,n){Er.m(e,n);var a=Si;if(a&&e){var l=n&&typeof n.as=="string"?n.as:"script",o='link[rel="modulepreload"][as="'+mn(l)+'"][href="'+mn(e)+'"]',f=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=Ai(e)}if(!En.has(f)&&(e=b({rel:"modulepreload",href:e},n),En.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"),Rt(l,"link",e),lt(l),a.head.appendChild(l)}}}function E2(e,n,a){Er.S(e,n,a);var l=Si;if(l&&e){var o=sr(l).hoistableStyles,f=Ti(e);n=n||"default";var g=o.get(f);if(!g){var v={loading:0,preload:null};if(g=l.querySelector(xs(f)))v.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":n},a),(a=En.get(f))&&xf(e,a);var T=g=l.createElement("link");lt(T),Rt(T,"link",e),T._p=new Promise(function(L,F){T.onload=L,T.onerror=F}),T.addEventListener("load",function(){v.loading|=1}),T.addEventListener("error",function(){v.loading|=2}),v.loading|=4,so(g,n,l)}g={type:"stylesheet",instance:g,count:1,state:v},o.set(f,g)}}}function S2(e,n){Er.X(e,n);var a=Si;if(a&&e){var l=sr(a).hoistableScripts,o=Ai(e),f=l.get(o);f||(f=a.querySelector(Os(o)),f||(e=b({src:e,async:!0},n),(n=En.get(o))&&Of(e,n),f=a.createElement("script"),lt(f),Rt(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(o,f))}}function T2(e,n){Er.M(e,n);var a=Si;if(a&&e){var l=sr(a).hoistableScripts,o=Ai(e),f=l.get(o);f||(f=a.querySelector(Os(o)),f||(e=b({src:e,async:!0,type:"module"},n),(n=En.get(o))&&Of(e,n),f=a.createElement("script"),lt(f),Rt(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(o,f))}}function bg(e,n,a,l){var o=(o=ue.current)?io(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=sr(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=sr(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),En.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},En.set(e,a),f||A2(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=sr(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="'+mn(e)+'"'}function xs(e){return'link[rel="stylesheet"]['+e+"]"}function vg(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function A2(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}),Rt(n,"link",a),lt(n),e.head.appendChild(n))}function Ai(e){return'[src="'+mn(e)+'"]'}function Os(e){return"script[async]"+e}function _g(e,n,a){if(n.count++,n.instance===null)switch(n.type){case"style":var l=e.querySelector('style[data-href~="'+mn(a.href)+'"]');if(l)return n.instance=l,lt(l),l;var o=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),lt(l),Rt(l,"style",o),so(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,lt(f),f;l=vg(a),(o=En.get(o))&&xf(l,o),f=(e.ownerDocument||e).createElement("link"),lt(f);var g=f;return g._p=new Promise(function(v,T){g.onload=v,g.onerror=T}),Rt(f,"link",l),n.state.loading|=4,so(f,a.precedence,e),n.instance=f;case"script":return f=Ai(a.src),(o=e.querySelector(Os(f)))?(n.instance=o,lt(o),o):(l=a,(o=En.get(f))&&(l=b({},a),Of(l,o)),e=e.ownerDocument||e,o=e.createElement("script"),lt(o),Rt(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,so(l,a.precedence,e));return n.instance}function so(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 v=l[g];if(v.dataset.precedence===n)f=v;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 xf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function Of(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var lo=null;function Eg(e,n,a){if(lo===null){var l=new Map,o=lo=new Map;o.set(a,l)}else o=lo,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[Br]||f[ht]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var g=f.getAttribute(n)||"";g=e+g;var v=l.get(g);v?v.push(f):l.set(g,[f])}}return l}function Sg(e,n,a){e=e.ownerDocument||e,e.head.insertBefore(a,n==="title"?e.querySelector("head > title"):null)}function x2(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 Tg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Rs=null;function O2(){}function R2(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=oo.bind(l),e.then(l,l)),n.state.loading|=4,n.instance=f,lt(f);return}f=e.ownerDocument||e,a=vg(a),(o=En.get(o))&&xf(a,o),f=f.createElement("link"),lt(f);var g=f;g._p=new Promise(function(v,T){g.onload=v,g.onerror=T}),Rt(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=oo.bind(l),e.addEventListener("load",n),e.addEventListener("error",n))}}function w2(){if(Rs===null)throw Error(s(475));var e=Rs;return e.stylesheets&&e.count===0&&Rf(e,e.stylesheets),0<e.count?function(n){var a=setTimeout(function(){if(e.stylesheets&&Rf(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 oo(){if(this.count--,this.count===0){if(this.stylesheets)Rf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var uo=null;function Rf(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,uo=new Map,n.forEach(C2,e),uo=null,oo.call(e))}function C2(e,n){if(!(n.state.loading&4)){var a=uo.get(e);if(a)var l=a.get(null);else{a=new Map,uo.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=oo.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 N2(e,n,a,l,o,f,g,v){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=ji(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ji(0),this.hiddenUpdates=ji(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=f,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map}function Ag(e,n,a,l,o,f,g,v,T,L,F,P){return e=new N2(e,n,a,g,v,T,L,P),n=1,f===!0&&(n|=24),f=Jt(3,null,null,n),e.current=f,f.stateNode=e,n=lc(),n.refCount++,e.pooledCache=n,n.refCount++,f.memoizedState={element:l,isDehydrated:a,cache:n},fc(f),e}function xg(e){return e?(e=ti,e):ti}function Og(e,n,a,l,o,f){o=xg(o),l.context===null?l.context=o:l.pendingContext=o,l=zr(n),l.payload={element:a},f=f===void 0?null:f,f!==null&&(l.callback=f),a=Gr(e,l,n),a!==null&&(an(a,e,n),as(a,e,n))}function Rg(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<n?a:n}}function wf(e,n){Rg(e,n),(e=e.alternate)&&Rg(e,n)}function wg(e){if(e.tag===13){var n=ei(e,67108864);n!==null&&an(n,e,67108864),wf(e,67108864)}}var co=!0;function M2(e,n,a,l){var o=G.T;G.T=null;var f=K.p;try{K.p=2,Cf(e,n,a,l)}finally{K.p=f,G.T=o}}function D2(e,n,a,l){var o=G.T;G.T=null;var f=K.p;try{K.p=8,Cf(e,n,a,l)}finally{K.p=f,G.T=o}}function Cf(e,n,a,l){if(co){var o=Nf(l);if(o===null)gf(e,n,l,fo,a),Ng(e,l);else if(B2(o,e,n,a,l))l.stopPropagation();else if(Ng(e,l),n&4&&-1<L2.indexOf(e)){for(;o!==null;){var f=ir(o);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var g=Vt(f.pendingLanes);if(g!==0){var v=f;for(v.pendingLanes|=2,v.entangledLanes|=2;g;){var T=1<<31-Mt(g);v.entanglements[1]|=T,g&=~T}Zn(f),(je&6)===0&&(Zl=Tt()+500,Es(0))}}break;case 13:v=ei(f,2),v!==null&&an(v,f,2),Kl(),wf(f,2)}if(f=Nf(l),f===null&&gf(e,n,l,fo,a),f===o)break;o=f}o!==null&&l.stopPropagation()}else gf(e,n,l,null,a)}}function Nf(e){return e=Bu(e),Mf(e)}var fo=null;function Mf(e){if(fo=null,e=ar(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 fo=e,null}function Cg(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 xu:return 32;case Fa:return 268435456;default:return 32}default:return 32}}var Df=!1,Jr=null,ea=null,ta=null,Cs=new Map,Ns=new Map,na=[],L2="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 Ng(e,n){switch(e){case"focusin":case"focusout":Jr=null;break;case"dragenter":case"dragleave":ea=null;break;case"mouseover":case"mouseout":ta=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=ir(n),n!==null&&wg(n)),e):(e.eventSystemFlags|=l,n=e.targetContainers,o!==null&&n.indexOf(o)===-1&&n.push(o),e)}function B2(e,n,a,l,o){switch(n){case"focusin":return Jr=Ms(Jr,e,n,a,l,o),!0;case"dragenter":return ea=Ms(ea,e,n,a,l,o),!0;case"mouseover":return ta=Ms(ta,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 Mg(e){var n=ar(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=rn();l=kn(l);var o=ei(a,l);o!==null&&an(o,a,l),wf(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 ho(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var a=Nf(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Lu=l,a.target.dispatchEvent(l),Lu=null}else return n=ir(a),n!==null&&wg(n),e.blockedOn=a,!1;n.shift()}return!0}function Dg(e,n,a){ho(e)&&a.delete(n)}function U2(){Df=!1,Jr!==null&&ho(Jr)&&(Jr=null),ea!==null&&ho(ea)&&(ea=null),ta!==null&&ho(ta)&&(ta=null),Cs.forEach(Dg),Ns.forEach(Dg)}function mo(e,n){e.blockedOn===n&&(e.blockedOn=null,Df||(Df=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,U2)))}var po=null;function Lg(e){po!==e&&(po=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){po===e&&(po=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(Mf(l||a)===null)continue;break}var f=ir(a);f!==null&&(e.splice(n,3),n-=3,Nc(f,{pending:!0,data:o,method:a.method,action:l},l,o))}}))}function Ds(e){function n(T){return mo(T,e)}Jr!==null&&mo(Jr,e),ea!==null&&mo(ea,e),ta!==null&&mo(ta,e),Cs.forEach(n),Ns.forEach(n);for(var a=0;a<na.length;a++){var l=na[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<na.length&&(a=na[0],a.blockedOn===null);)Mg(a),a.blockedOn===null&&na.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[Dt]||null;if(typeof f=="function")g||Lg(a);else if(g){var v=null;if(f&&f.hasAttribute("formAction")){if(o=f,g=f[Dt]||null)v=g.formAction;else if(Mf(o)!==null)continue}else v=g.action;typeof v=="function"?a[l+1]=v:(a.splice(l,3),l-=3),Lg(a)}}}function Lf(e){this._internalRoot=e}go.prototype.render=Lf.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(s(409));var a=n.current,l=rn();Og(a,l,e,n,null,null)},go.prototype.unmount=Lf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Og(e.current,2,null,e,null,null),Kl(),n[At]=null}};function go(e){this._internalRoot=e}go.prototype.unstable_scheduleHydration=function(e){if(e){var n=Ii();e={blockedOn:null,target:e,priority:n};for(var a=0;a<na.length&&n!==0&&n<na[a].priority;a++);na.splice(a,0,e),a===0&&Mg(e)}};var Bg=r.version;if(Bg!=="19.1.1")throw Error(s(527,Bg,"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 j2={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var yo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!yo.isDisabled&&yo.supportsFiber)try{dn=yo.inject(j2),Nt=yo}catch{}}return Bs.createRoot=function(e,n){if(!u(e))throw Error(s(299));var a=!1,l="",o=K0,f=$0,g=W0,v=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&&(v=n.unstable_transitionCallbacks)),n=Ag(e,1,!1,null,null,a,l,o,f,g,v,null),e[At]=n.current,pf(e),new Lf(n)},Bs.hydrateRoot=function(e,n,a){if(!u(e))throw Error(s(299));var l=!1,o="",f=K0,g=$0,v=W0,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&&(v=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(T=a.unstable_transitionCallbacks),a.formState!==void 0&&(L=a.formState)),n=Ag(e,1,!0,n,a??null,l,o,f,g,v,T,L),n.context=xg(null),a=n.current,l=rn(),l=kn(l),o=zr(l),o.callback=null,Gr(a,o,l),a=l,n.current.lanes=a,wn(n,a),Zn(n),e[At]=n.current,pf(e),new go(n)},Bs.version="19.1.1",Bs}var Vg;function Y2(){if(Vg)return Uf.exports;Vg=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(),Uf.exports=P2(),Uf.exports}var X2=Y2(),B=cu();const E1=uu(B);var Gf={exports:{}},kf={};/**
|
|
50
50
|
* @license React
|
|
51
51
|
* use-sync-external-store-with-selector.production.js
|
|
52
52
|
*
|
|
@@ -54,61 +54,61 @@ Error generating stack: `+a.message+`
|
|
|
54
54
|
*
|
|
55
55
|
* This source code is licensed under the MIT license found in the
|
|
56
56
|
* LICENSE file in the root directory of this source tree.
|
|
57
|
-
*/var
|
|
57
|
+
*/var Pg;function Z2(){if(Pg)return kf;Pg=1;var t=cu();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 kf.useSyncExternalStoreWithSelector=function(m,p,b,_,x){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 z(A){if(!E){if(E=!0,w=A,A=_(A),x!==void 0&&R.hasValue){var Z=R.value;if(x(Z,A))return S=Z}return S=A}if(Z=S,i(w,A))return Z;var W=_(A);return x!==void 0&&x(Z,W)?(w=A,Z):(w=A,S=W)}var E=!1,w,S,H=b===void 0?null:b;return[function(){return z(p())},H===null?void 0:function(){return z(H())}]},[p,b,_,x]);var q=s(m,U[0],U[1]);return c(function(){R.hasValue=!0,R.value=q},[q]),h(q),q},kf}var Yg;function Q2(){return Yg||(Yg=1,Gf.exports=Z2()),Gf.exports}var K2=Q2(),$2=B.version.startsWith("19"),W2=Symbol.for($2?"react.transitional.element":"react.element"),J2=Symbol.for("react.portal"),eS=Symbol.for("react.fragment"),tS=Symbol.for("react.strict_mode"),nS=Symbol.for("react.profiler"),rS=Symbol.for("react.consumer"),aS=Symbol.for("react.context"),S1=Symbol.for("react.forward_ref"),iS=Symbol.for("react.suspense"),sS=Symbol.for("react.suspense_list"),bh=Symbol.for("react.memo"),lS=Symbol.for("react.lazy"),oS=S1,uS=bh;function cS(t){if(typeof t=="object"&&t!==null){const{$$typeof:r}=t;switch(r){case W2:switch(t=t.type,t){case eS:case nS:case tS:case iS:case sS:return t;default:switch(t=t&&t.$$typeof,t){case aS:case S1:case lS:case bh:return t;case rS:return t;default:return r}}case J2:return r}}}function fS(t){return cS(t)===bh}function dS(t,r,i,s,{areStatesEqual:u,areOwnPropsEqual:c,areStatePropsEqual:d}){let h=!1,m,p,b,_,x;function U(w,S){return m=w,p=S,b=t(m,p),_=r(s,p),x=i(b,_,p),h=!0,x}function R(){return b=t(m,p),r.dependsOnOwnProps&&(_=r(s,p)),x=i(b,_,p),x}function q(){return t.dependsOnOwnProps&&(b=t(m,p)),r.dependsOnOwnProps&&(_=r(s,p)),x=i(b,_,p),x}function z(){const w=t(m,p),S=!d(w,b);return b=w,S&&(x=i(b,_,p)),x}function E(w,S){const H=!c(S,p),A=!u(w,m,S,p);return m=w,p=S,H&&A?R():H?q():A?z():x}return function(S,H){return h?E(S,H):U(S,H)}}function hS(t,{initMapStateToProps:r,initMapDispatchToProps:i,initMergeProps:s,...u}){const c=r(t,u),d=i(t,u),h=s(t,u);return dS(c,d,h,t,u)}function mS(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 qd(t){return function(i){const s=t(i);function u(){return s}return u.dependsOnOwnProps=!1,u}}function Xg(t){return t.dependsOnOwnProps?!!t.dependsOnOwnProps:t.length!==1}function T1(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=Xg(t);let p=c(h,m);return typeof p=="function"&&(c.mapToProps=p,c.dependsOnOwnProps=Xg(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 pS(t){return t&&typeof t=="object"?qd(r=>mS(t,r)):t?typeof t=="function"?T1(t):vh(t,"mapDispatchToProps"):qd(r=>({dispatch:r}))}function gS(t){return t?typeof t=="function"?T1(t):vh(t,"mapStateToProps"):qd(()=>({}))}function yS(t,r,i){return{...i,...t,...r}}function bS(t){return function(i,{displayName:s,areMergedPropsEqual:u}){let c=!1,d;return function(m,p,b){const _=t(m,p,b);return c?u(_,d)||(d=_):(c=!0,d=_),d}}}function vS(t){return t?typeof t=="function"?bS(t):vh(t,"mergeProps"):()=>yS}function _S(t){t()}function ES(){let t=null,r=null;return{clear(){t=null,r=null},notify(){_S(()=>{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 Zg={notify(){},get:()=>[]};function A1(t,r){let i,s=Zg,u=0,c=!1;function d(q){b();const z=s.subscribe(q);let E=!1;return()=>{E||(E=!0,z(),_())}}function h(){s.notify()}function m(){R.onStateChange&&R.onStateChange()}function p(){return c}function b(){u++,i||(i=r?r.addNestedSub(m):t.subscribe(m),s=ES())}function _(){u--,i&&u===0&&(i(),i=void 0,s.clear(),s=Zg)}function x(){c||(c=!0,b())}function U(){c&&(c=!1,_())}const R={addNestedSub:d,notifyNestedSubs:h,handleChangeWrapper:m,isSubscribed:p,trySubscribe:x,tryUnsubscribe:U,getListeners:()=>s};return R}var SS=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",TS=SS(),AS=()=>typeof navigator<"u"&&navigator.product==="ReactNative",xS=AS(),OS=()=>TS||xS?B.useLayoutEffect:B.useEffect,Wo=OS();function Qg(t,r){return t===r?t!==0||r!==0||1/t===1/r:t!==t&&r!==r}function qf(t,r){if(Qg(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])||!Qg(t[i[u]],r[i[u]]))return!1;return!0}var RS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},wS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},CS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},x1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},NS={[oS]:CS,[uS]:x1};function Kg(t){return fS(t)?x1:NS[t.$$typeof]||RS}var MS=Object.defineProperty,DS=Object.getOwnPropertyNames,$g=Object.getOwnPropertySymbols,LS=Object.getOwnPropertyDescriptor,BS=Object.getPrototypeOf,Wg=Object.prototype;function Fd(t,r){if(typeof r!="string"){if(Wg){const c=BS(r);c&&c!==Wg&&Fd(t,c)}let i=DS(r);$g&&(i=i.concat($g(r)));const s=Kg(t),u=Kg(r);for(let c=0;c<i.length;++c){const d=i[c];if(!wS[d]&&!(u&&u[d])&&!(s&&s[d])){const h=LS(r,d);try{MS(t,d,h)}catch{}}}}return t}var US=Symbol.for("react-redux-context"),jS=typeof globalThis<"u"?globalThis:{};function HS(){if(!B.createContext)return{};const t=jS[US]??=new Map;let r=t.get(B.createContext);return r||(r=B.createContext(null),t.set(B.createContext,r)),r}var wr=HS(),IS=[null,null];function zS(t,r,i){Wo(()=>t(...r),i)}function GS(t,r,i,s,u,c){t.current=s,i.current=!1,u.current&&(u.current=null,c())}function kS(t,r,i,s,u,c,d,h,m,p,b){if(!t)return()=>{};let _=!1,x=null;const U=()=>{if(_||!h.current)return;const q=r.getState();let z,E;try{z=s(q,u.current)}catch(w){E=w,x=w}E||(x=null),z===c.current?d.current||p():(c.current=z,m.current=z,d.current=!0,b())};return i.onStateChange=U,i.trySubscribe(),U(),()=>{if(_=!0,i.tryUnsubscribe(),i.onStateChange=null,x)throw x}}function qS(t,r){return t===r}function FS(t,r,i,{pure:s,areStatesEqual:u=qS,areOwnPropsEqual:c=qf,areStatePropsEqual:d=qf,areMergedPropsEqual:h=qf,forwardRef:m=!1,context:p=wr}={}){const b=p,_=gS(t),x=pS(r),U=vS(i),R=!!t;return z=>{const E=z.displayName||z.name||"Component",w=`Connect(${E})`,S={shouldHandleStateChanges:R,displayName:w,wrappedComponentName:E,WrappedComponent:z,initMapStateToProps:_,initMapDispatchToProps:x,initMergeProps:U,areStatesEqual:u,areStatePropsEqual:d,areOwnPropsEqual:c,areMergedPropsEqual:h};function H(W){const[ae,ye,Ee]=B.useMemo(()=>{const{reactReduxForwardedRef:Qe,...qt}=W;return[W.context,Qe,qt]},[W]),se=B.useMemo(()=>{let Qe=b;return ae?.Consumer,Qe},[ae,b]),me=B.useContext(se),ce=!!W.store&&!!W.store.getState&&!!W.store.dispatch,Pe=!!me&&!!me.store,ve=ce?W.store:me.store,G=Pe?me.getServerState:ve.getState,K=B.useMemo(()=>hS(ve.dispatch,S),[ve]),[ee,Ae]=B.useMemo(()=>{if(!R)return IS;const Qe=A1(ve,ce?void 0:me.subscription),qt=Qe.notifyNestedSubs.bind(Qe);return[Qe,qt]},[ve,ce,me]),O=B.useMemo(()=>ce?me:{...me,subscription:ee},[ce,me,ee]),k=B.useRef(void 0),$=B.useRef(Ee),Y=B.useRef(void 0),te=B.useRef(!1),re=B.useRef(!1),ue=B.useRef(void 0);Wo(()=>(re.current=!0,()=>{re.current=!1}),[]);const We=B.useMemo(()=>()=>Y.current&&Ee===$.current?Y.current:K(ve.getState(),Ee),[ve,Ee]),Ue=B.useMemo(()=>qt=>ee?kS(R,ve,ee,K,$,k,te,re,Y,Ae,qt):()=>{},[ee]);zS(GS,[$,k,te,Ee,Y,Ae]);let St;try{St=B.useSyncExternalStore(Ue,We,G?()=>K(G(),Ee):We)}catch(Qe){throw ue.current&&(Qe.message+=`
|
|
58
58
|
The error may be correlated with this previous error:
|
|
59
59
|
${ue.current.stack}
|
|
60
60
|
|
|
61
|
-
`),Qe}
|
|
61
|
+
`),Qe}Wo(()=>{ue.current=void 0,Y.current=void 0,k.current=St});const Gn=B.useMemo(()=>B.createElement(z,{...St,ref:ye}),[ye,z,St]);return B.useMemo(()=>R?B.createElement(se.Provider,{value:O},Gn):Gn,[se,Gn,O])}const Z=B.memo(H);if(Z.WrappedComponent=z,Z.displayName=H.displayName=w,m){const ae=B.forwardRef(function(Ee,se){return B.createElement(Z,{...Ee,reactReduxForwardedRef:se})});return ae.displayName=w,ae.WrappedComponent=z,Fd(ae,z)}return Fd(Z,z)}}var VS=FS;function PS(t){const{children:r,context:i,serverState:s,store:u}=t,c=B.useMemo(()=>{const m=A1(u);return{store:u,subscription:m,getServerState:s?()=>s:void 0}},[u,s]),d=B.useMemo(()=>u.getState(),[u]);Wo(()=>{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||wr;return B.createElement(h.Provider,{value:c},r)}var YS=PS;function _h(t=wr){return function(){return B.useContext(t)}}var O1=_h();function R1(t=wr){const r=t===wr?O1:_h(t),i=()=>{const{store:s}=r();return s};return Object.assign(i,{withTypes:()=>i}),i}var XS=R1();function ZS(t=wr){const r=t===wr?XS:R1(t),i=()=>r().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var QS=ZS(),KS=(t,r)=>t===r;function $S(t=wr){const r=t===wr?O1:_h(t),i=(s,u={})=>{const{equalityFn:c=KS}=typeof u=="function"?{equalityFn:u}:u,d=r(),{store:h,subscription:m,getServerState:p}=d;B.useRef(!0);const b=B.useCallback({[s.name](x){return s(x)}}[s.name],[s]),_=K2.useSyncExternalStoreWithSelector(m.addNestedSub,h.getState,p||h.getState,b,c);return B.useDebugValue(_),_};return Object.assign(i,{withTypes:()=>i}),i}var WS=$S(),Ff={exports:{}};/*!
|
|
62
62
|
Copyright (c) 2018 Jed Watson.
|
|
63
63
|
Licensed under the MIT License (MIT), see
|
|
64
64
|
http://jedwatson.github.io/classnames
|
|
65
|
-
*/var Wg;function JS(){return Wg||(Wg=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})()})(Vf)),Vf.exports}var eT=JS();const Q=ou(eT);var Pd=function(t,r){return Pd=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])},Pd(t,r)};function An(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");Pd(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 cu(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 Wn(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 Kn(t,r){var i=r&&r.cache?r.cache:lT,s=r&&r.serializer?r.serializer:iT,u=r&&r.strategy?r.strategy:rT;return u(t,{cache:i,serializer:s})}function tT(t){return t==null||typeof t=="number"||typeof t=="boolean"}function nT(t,r,i,s){var u=tT(s)?s:i(s),c=r.get(u);return typeof c>"u"&&(c=t.call(this,s),r.set(u,c)),c}function R1(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 w1(t,r,i,s,u){return i.bind(r,t,s,u)}function rT(t,r){var i=t.length===1?nT:R1;return w1(t,this,i,r.cache.create(),r.serializer)}function aT(t,r){return w1(t,this,R1,r.cache.create(),r.serializer)}var iT=function(){return JSON.stringify(arguments)},sT=(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})(),lT={create:function(){return new sT}},$n={variadic:aT},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 Jg(t){return t.type===Ye.literal}function oT(t){return t.type===Ye.argument}function C1(t){return t.type===Ye.number}function N1(t){return t.type===Ye.date}function M1(t){return t.type===Ye.time}function D1(t){return t.type===Ye.select}function L1(t){return t.type===Ye.plural}function uT(t){return t.type===Ye.pound}function B1(t){return t.type===Ye.tag}function U1(t){return!!(t&&typeof t=="object"&&t.type===Ri.number)}function Yd(t){return!!(t&&typeof t=="object"&&t.type===Ri.dateTime)}var j1=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,cT=/(?:[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 fT(t){var r={};return t.replace(cT,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 dT=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function hT(t){if(t.length===0)throw new Error("Number skeleton cannot be empty");for(var r=t.split(dT).filter(function(x){return x.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,b=m;p<b.length;p++){var E=b[p];if(E.length===0)throw new Error("Invalid number skeleton")}i.push({stem:h,options:m})}return i}function mT(t){return t.replace(/^(.*?)-/,"")}var ey=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,H1=/^(@+)?(\+|#+)?[rs]?$/g,pT=/(\*)(0+)|(#+)(0+)|(0+)/g,I1=/^(0+)$/;function ty(t){var r={};return t[t.length-1]==="r"?r.roundingPriority="morePrecision":t[t.length-1]==="s"&&(r.roundingPriority="lessPrecision"),t.replace(H1,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 z1(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 gT(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)),!I1.test(t))throw new Error("Malformed concise eng/scientific notation");r.minimumIntegerDigits=t.length}return r}function ny(t){var r={},i=z1(t);return i||r}function yT(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=mT(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),ny(p))},{}));continue;case"engineering":r=ie(ie(ie({},r),{notation:"engineering"}),u.options.reduce(function(m,p){return ie(ie({},m),ny(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(pT,function(m,p,b,E,x,U){if(p)r.minimumIntegerDigits=b.length;else{if(E&&x)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(I1.test(u.stem)){r.minimumIntegerDigits=u.stem.length;continue}if(ey.test(u.stem)){if(u.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");u.stem.replace(ey,function(m,p,b,E,x,U){return b==="*"?r.minimumFractionDigits=p.length:E&&E[0]==="#"?r.maximumFractionDigits=E.length:x&&U?(r.minimumFractionDigits=x.length,r.maximumFractionDigits=x.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),ty(c)));continue}if(H1.test(u.stem)){r=ie(ie({},r),ty(u.stem));continue}var d=z1(u.stem);d&&(r=ie(ie({},r),d));var h=gT(u.stem);h&&(r=ie(ie({},r),h))}return r}var bo={"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 bT(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=vT(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 vT(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=bo[s||""]||bo[i||""]||bo["".concat(i,"-001")]||bo["001"];return u[0]}var Pf,_T=new RegExp("^".concat(j1.source,"*")),ET=new RegExp("".concat(j1.source,"*$"));function Me(t,r){return{start:t,end:r}}var ST=!!String.prototype.startsWith&&"_a".startsWith("a",1),TT=!!String.fromCodePoint,AT=!!Object.fromEntries,xT=!!String.prototype.codePointAt,OT=!!String.prototype.trimStart,RT=!!String.prototype.trimEnd,wT=!!Number.isSafeInteger,CT=wT?Number.isSafeInteger:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Xd=!0;try{var NT=k1("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Xd=((Pf=NT.exec("a"))===null||Pf===void 0?void 0:Pf[0])==="a"}catch{Xd=!1}var ry=ST?function(r,i,s){return r.startsWith(i,s)}:function(r,i,s){return r.slice(s,s+i.length)===i},Zd=TT?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},ay=AT?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},G1=xT?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}},MT=OT?function(r){return r.trimStart()}:function(r){return r.replace(_T,"")},DT=RT?function(r){return r.trimEnd()}:function(r){return r.replace(ET,"")};function k1(t,r){return new RegExp(t,r)}var Qd;if(Xd){var iy=k1("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Qd=function(r,i){var s;iy.lastIndex=i;var u=iy.exec(r);return(s=u[1])!==null&&s!==void 0?s:""}}else Qd=function(r,i){for(var s=[];;){var u=G1(r,i);if(u===void 0||q1(u)||jT(u))break;s.push(u),i+=u>=65536?2:1}return Zd.apply(void 0,s)};var LT=(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&&Kd(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()||!Kd(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()&&UT(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||!BT(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 Zd.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(),Zd(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=Qd(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 b=this.clonePosition(),E=this.parseSimpleArgStyleIfPossible();if(E.err)return E;var x=DT(E.val);if(x.length===0)return this.error(we.EXPECT_ARGUMENT_STYLE,Me(this.clonePosition(),this.clonePosition()));var U=Me(b,this.clonePosition());p={style:x,styleLocation:U}}var R=this.tryParseArgumentClose(u);if(R.err)return R;var F=Me(u,this.clonePosition());if(p&&ry(p?.style,"::",0)){var z=MT(p.style.slice(2));if(h==="number"){var E=this.parseNumberSkeletonFromString(z,p.styleLocation);return E.err?E:{val:{type:Ye.number,value:s,location:F,style:E.val},err:null}}else{if(z.length===0)return this.error(we.EXPECT_DATE_TIME_SKELETON,F);var _=z;this.locale&&(_=bT(z,this.locale));var x={type:Ri.dateTime,pattern:_,location:p.styleLocation,parsedOptions:this.shouldParseSkeletons?fT(_):{}},w=h==="date"?Ye.date:Ye.time;return{val:{type:w,value:s,location:F,style:x},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 H=this.parseIdentifierIfPossible(),A=0;if(h!=="select"&&H.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(),H=this.parseIdentifierIfPossible(),A=E.val}var Z=this.tryParsePluralOrSelectOptions(r,h,i,H);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:ay(Z.val),location:W},err:null}:{val:{type:Ye.plural,value:s,options:ay(Z.val),offset:A,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=hT(r)}catch{return this.error(we.INVALID_NUMBER_SKELETON,i)}return{val:{type:Ri.number,tokens:s,location:i,parsedOptions:this.shouldParseSkeletons?yT(s):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(r,i,s,u){for(var c,d=!1,h=[],m=new Set,p=u.value,b=u.location;;){if(p.length===0){var E=this.clonePosition();if(i!=="select"&&this.bumpIf("=")){var x=this.tryParseDecimalInteger(we.EXPECT_PLURAL_ARGUMENT_SELECTOR,we.INVALID_PLURAL_ARGUMENT_SELECTOR);if(x.err)return x;b=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,b);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,b=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,CT(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=G1(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(ry(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()&&q1(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 Kd(t){return t>=97&&t<=122||t>=65&&t<=90}function BT(t){return Kd(t)||t===47}function UT(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 q1(t){return t>=9&&t<=13||t===32||t===133||t>=8206&&t<=8207||t===8232||t===8233}function jT(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 $d(t){t.forEach(function(r){if(delete r.location,D1(r)||L1(r))for(var i in r.options)delete r.options[i].location,$d(r.options[i].value);else C1(r)&&U1(r.style)||(N1(r)||M1(r))&&Yd(r.style)?delete r.style.location:B1(r)&&$d(r.children)})}function HT(t,r){r===void 0&&(r={}),r=ie({shouldParseSkeletons:!0,requiresOtherClause:!0},r);var i=new LT(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||$d(i.val),i.val}var er;(function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"})(er||(er={}));var oa=(function(t){An(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),sy=(function(t){An(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('", "'),'"'),er.INVALID_VALUE,c)||this}return r})(oa),IT=(function(t){An(r,t);function r(i,s,u){return t.call(this,'Value for "'.concat(i,'" must be of type ').concat(s),er.INVALID_VALUE,u)||this}return r})(oa),zT=(function(t){An(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,'"'),er.MISSING_VALUE,s)||this}return r})(oa),It;(function(t){t[t.literal=0]="literal",t[t.object=1]="object"})(It||(It={}));function GT(t){return t.length<2?t:t.reduce(function(r,i){var s=r[r.length-1];return!s||s.type!==It.literal||i.type!==It.literal?r.push(i):s.value+=i.value,r},[])}function F1(t){return typeof t=="function"}function Fo(t,r,i,s,u,c,d){if(t.length===1&&Jg(t[0]))return[{type:It.literal,value:t[0].value}];for(var h=[],m=0,p=t;m<p.length;m++){var b=p[m];if(Jg(b)){h.push({type:It.literal,value:b.value});continue}if(uT(b)){typeof c=="number"&&h.push({type:It.literal,value:i.getNumberFormat(r).format(c)});continue}var E=b.value;if(!(u&&E in u))throw new zT(E,d);var x=u[E];if(oT(b)){(!x||typeof x=="string"||typeof x=="number")&&(x=typeof x=="string"||typeof x=="number"?String(x):""),h.push({type:typeof x=="string"?It.literal:It.object,value:x});continue}if(N1(b)){var U=typeof b.style=="string"?s.date[b.style]:Yd(b.style)?b.style.parsedOptions:void 0;h.push({type:It.literal,value:i.getDateTimeFormat(r,U).format(x)});continue}if(M1(b)){var U=typeof b.style=="string"?s.time[b.style]:Yd(b.style)?b.style.parsedOptions:s.time.medium;h.push({type:It.literal,value:i.getDateTimeFormat(r,U).format(x)});continue}if(C1(b)){var U=typeof b.style=="string"?s.number[b.style]:U1(b.style)?b.style.parsedOptions:void 0;U&&U.scale&&(x=x*(U.scale||1)),h.push({type:It.literal,value:i.getNumberFormat(r,U).format(x)});continue}if(B1(b)){var R=b.children,F=b.value,z=u[F];if(!F1(z))throw new IT(F,"function",d);var _=Fo(R,r,i,s,u,c),w=z(_.map(function(A){return A.value}));Array.isArray(w)||(w=[w]),h.push.apply(h,w.map(function(A){return{type:typeof A=="string"?It.literal:It.object,value:A}}))}if(D1(b)){var S=b.options[x]||b.options.other;if(!S)throw new sy(b.value,x,Object.keys(b.options),d);h.push.apply(h,Fo(S.value,r,i,s,u));continue}if(L1(b)){var S=b.options["=".concat(x)];if(!S){if(!Intl.PluralRules)throw new oa(`Intl.PluralRules is not available in this environment.
|
|
65
|
+
*/var Jg;function JS(){return Jg||(Jg=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})()})(Ff)),Ff.exports}var eT=JS();const Q=uu(eT);var Vd=function(t,r){return Vd=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])},Vd(t,r)};function An(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");Vd(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 fu(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 Wn(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 Kn(t,r){var i=r&&r.cache?r.cache:lT,s=r&&r.serializer?r.serializer:iT,u=r&&r.strategy?r.strategy:rT;return u(t,{cache:i,serializer:s})}function tT(t){return t==null||typeof t=="number"||typeof t=="boolean"}function nT(t,r,i,s){var u=tT(s)?s:i(s),c=r.get(u);return typeof c>"u"&&(c=t.call(this,s),r.set(u,c)),c}function w1(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 C1(t,r,i,s,u){return i.bind(r,t,s,u)}function rT(t,r){var i=t.length===1?nT:w1;return C1(t,this,i,r.cache.create(),r.serializer)}function aT(t,r){return C1(t,this,w1,r.cache.create(),r.serializer)}var iT=function(){return JSON.stringify(arguments)},sT=(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})(),lT={create:function(){return new sT}},$n={variadic:aT},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 ey(t){return t.type===Ye.literal}function oT(t){return t.type===Ye.argument}function N1(t){return t.type===Ye.number}function M1(t){return t.type===Ye.date}function D1(t){return t.type===Ye.time}function L1(t){return t.type===Ye.select}function B1(t){return t.type===Ye.plural}function uT(t){return t.type===Ye.pound}function U1(t){return t.type===Ye.tag}function j1(t){return!!(t&&typeof t=="object"&&t.type===Ri.number)}function Pd(t){return!!(t&&typeof t=="object"&&t.type===Ri.dateTime)}var H1=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,cT=/(?:[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 fT(t){var r={};return t.replace(cT,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 dT=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function hT(t){if(t.length===0)throw new Error("Number skeleton cannot be empty");for(var r=t.split(dT).filter(function(x){return x.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,b=m;p<b.length;p++){var _=b[p];if(_.length===0)throw new Error("Invalid number skeleton")}i.push({stem:h,options:m})}return i}function mT(t){return t.replace(/^(.*?)-/,"")}var ty=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,I1=/^(@+)?(\+|#+)?[rs]?$/g,pT=/(\*)(0+)|(#+)(0+)|(0+)/g,z1=/^(0+)$/;function ny(t){var r={};return t[t.length-1]==="r"?r.roundingPriority="morePrecision":t[t.length-1]==="s"&&(r.roundingPriority="lessPrecision"),t.replace(I1,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 G1(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 gT(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)),!z1.test(t))throw new Error("Malformed concise eng/scientific notation");r.minimumIntegerDigits=t.length}return r}function ry(t){var r={},i=G1(t);return i||r}function yT(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=mT(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),ry(p))},{}));continue;case"engineering":r=ie(ie(ie({},r),{notation:"engineering"}),u.options.reduce(function(m,p){return ie(ie({},m),ry(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(pT,function(m,p,b,_,x,U){if(p)r.minimumIntegerDigits=b.length;else{if(_&&x)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(z1.test(u.stem)){r.minimumIntegerDigits=u.stem.length;continue}if(ty.test(u.stem)){if(u.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");u.stem.replace(ty,function(m,p,b,_,x,U){return b==="*"?r.minimumFractionDigits=p.length:_&&_[0]==="#"?r.maximumFractionDigits=_.length:x&&U?(r.minimumFractionDigits=x.length,r.maximumFractionDigits=x.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),ny(c)));continue}if(I1.test(u.stem)){r=ie(ie({},r),ny(u.stem));continue}var d=G1(u.stem);d&&(r=ie(ie({},r),d));var h=gT(u.stem);h&&(r=ie(ie({},r),h))}return r}var vo={"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 bT(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=vT(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 vT(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=vo[s||""]||vo[i||""]||vo["".concat(i,"-001")]||vo["001"];return u[0]}var Vf,_T=new RegExp("^".concat(H1.source,"*")),ET=new RegExp("".concat(H1.source,"*$"));function Me(t,r){return{start:t,end:r}}var ST=!!String.prototype.startsWith&&"_a".startsWith("a",1),TT=!!String.fromCodePoint,AT=!!Object.fromEntries,xT=!!String.prototype.codePointAt,OT=!!String.prototype.trimStart,RT=!!String.prototype.trimEnd,wT=!!Number.isSafeInteger,CT=wT?Number.isSafeInteger:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Yd=!0;try{var NT=q1("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Yd=((Vf=NT.exec("a"))===null||Vf===void 0?void 0:Vf[0])==="a"}catch{Yd=!1}var ay=ST?function(r,i,s){return r.startsWith(i,s)}:function(r,i,s){return r.slice(s,s+i.length)===i},Xd=TT?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},iy=AT?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},k1=xT?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}},MT=OT?function(r){return r.trimStart()}:function(r){return r.replace(_T,"")},DT=RT?function(r){return r.trimEnd()}:function(r){return r.replace(ET,"")};function q1(t,r){return new RegExp(t,r)}var Zd;if(Yd){var sy=q1("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Zd=function(r,i){var s;sy.lastIndex=i;var u=sy.exec(r);return(s=u[1])!==null&&s!==void 0?s:""}}else Zd=function(r,i){for(var s=[];;){var u=k1(r,i);if(u===void 0||F1(u)||jT(u))break;s.push(u),i+=u>=65536?2:1}return Xd.apply(void 0,s)};var LT=(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&&Qd(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()||!Qd(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()&&UT(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||!BT(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 Xd.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(),Xd(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=Zd(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 b=this.clonePosition(),_=this.parseSimpleArgStyleIfPossible();if(_.err)return _;var x=DT(_.val);if(x.length===0)return this.error(we.EXPECT_ARGUMENT_STYLE,Me(this.clonePosition(),this.clonePosition()));var U=Me(b,this.clonePosition());p={style:x,styleLocation:U}}var R=this.tryParseArgumentClose(u);if(R.err)return R;var q=Me(u,this.clonePosition());if(p&&ay(p?.style,"::",0)){var z=MT(p.style.slice(2));if(h==="number"){var _=this.parseNumberSkeletonFromString(z,p.styleLocation);return _.err?_:{val:{type:Ye.number,value:s,location:q,style:_.val},err:null}}else{if(z.length===0)return this.error(we.EXPECT_DATE_TIME_SKELETON,q);var E=z;this.locale&&(E=bT(z,this.locale));var x={type:Ri.dateTime,pattern:E,location:p.styleLocation,parsedOptions:this.shouldParseSkeletons?fT(E):{}},w=h==="date"?Ye.date:Ye.time;return{val:{type:w,value:s,location:q,style:x},err:null}}}return{val:{type:h==="number"?Ye.number:h==="date"?Ye.date:Ye.time,value:s,location:q,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 H=this.parseIdentifierIfPossible(),A=0;if(h!=="select"&&H.value==="offset"){if(!this.bumpIf(":"))return this.error(we.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Me(this.clonePosition(),this.clonePosition()));this.bumpSpace();var _=this.tryParseDecimalInteger(we.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,we.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(_.err)return _;this.bumpSpace(),H=this.parseIdentifierIfPossible(),A=_.val}var Z=this.tryParsePluralOrSelectOptions(r,h,i,H);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:iy(Z.val),location:W},err:null}:{val:{type:Ye.plural,value:s,options:iy(Z.val),offset:A,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=hT(r)}catch{return this.error(we.INVALID_NUMBER_SKELETON,i)}return{val:{type:Ri.number,tokens:s,location:i,parsedOptions:this.shouldParseSkeletons?yT(s):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(r,i,s,u){for(var c,d=!1,h=[],m=new Set,p=u.value,b=u.location;;){if(p.length===0){var _=this.clonePosition();if(i!=="select"&&this.bumpIf("=")){var x=this.tryParseDecimalInteger(we.EXPECT_PLURAL_ARGUMENT_SELECTOR,we.INVALID_PLURAL_ARGUMENT_SELECTOR);if(x.err)return x;b=Me(_,this.clonePosition()),p=this.message.slice(_.offset,this.offset())}else break}if(m.has(p))return this.error(i==="select"?we.DUPLICATE_SELECT_ARGUMENT_SELECTOR:we.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,b);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 q=this.tryParseArgumentClose(U);if(q.err)return q;h.push([p,{value:R.val,location:Me(U,this.clonePosition())}]),m.add(p),this.bumpSpace(),c=this.parseIdentifierIfPossible(),p=c.value,b=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,CT(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=k1(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(ay(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()&&F1(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 Qd(t){return t>=97&&t<=122||t>=65&&t<=90}function BT(t){return Qd(t)||t===47}function UT(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 F1(t){return t>=9&&t<=13||t===32||t===133||t>=8206&&t<=8207||t===8232||t===8233}function jT(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 Kd(t){t.forEach(function(r){if(delete r.location,L1(r)||B1(r))for(var i in r.options)delete r.options[i].location,Kd(r.options[i].value);else N1(r)&&j1(r.style)||(M1(r)||D1(r))&&Pd(r.style)?delete r.style.location:U1(r)&&Kd(r.children)})}function HT(t,r){r===void 0&&(r={}),r=ie({shouldParseSkeletons:!0,requiresOtherClause:!0},r);var i=new LT(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||Kd(i.val),i.val}var er;(function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"})(er||(er={}));var oa=(function(t){An(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),ly=(function(t){An(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('", "'),'"'),er.INVALID_VALUE,c)||this}return r})(oa),IT=(function(t){An(r,t);function r(i,s,u){return t.call(this,'Value for "'.concat(i,'" must be of type ').concat(s),er.INVALID_VALUE,u)||this}return r})(oa),zT=(function(t){An(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,'"'),er.MISSING_VALUE,s)||this}return r})(oa),It;(function(t){t[t.literal=0]="literal",t[t.object=1]="object"})(It||(It={}));function GT(t){return t.length<2?t:t.reduce(function(r,i){var s=r[r.length-1];return!s||s.type!==It.literal||i.type!==It.literal?r.push(i):s.value+=i.value,r},[])}function V1(t){return typeof t=="function"}function Vo(t,r,i,s,u,c,d){if(t.length===1&&ey(t[0]))return[{type:It.literal,value:t[0].value}];for(var h=[],m=0,p=t;m<p.length;m++){var b=p[m];if(ey(b)){h.push({type:It.literal,value:b.value});continue}if(uT(b)){typeof c=="number"&&h.push({type:It.literal,value:i.getNumberFormat(r).format(c)});continue}var _=b.value;if(!(u&&_ in u))throw new zT(_,d);var x=u[_];if(oT(b)){(!x||typeof x=="string"||typeof x=="number")&&(x=typeof x=="string"||typeof x=="number"?String(x):""),h.push({type:typeof x=="string"?It.literal:It.object,value:x});continue}if(M1(b)){var U=typeof b.style=="string"?s.date[b.style]:Pd(b.style)?b.style.parsedOptions:void 0;h.push({type:It.literal,value:i.getDateTimeFormat(r,U).format(x)});continue}if(D1(b)){var U=typeof b.style=="string"?s.time[b.style]:Pd(b.style)?b.style.parsedOptions:s.time.medium;h.push({type:It.literal,value:i.getDateTimeFormat(r,U).format(x)});continue}if(N1(b)){var U=typeof b.style=="string"?s.number[b.style]:j1(b.style)?b.style.parsedOptions:void 0;U&&U.scale&&(x=x*(U.scale||1)),h.push({type:It.literal,value:i.getNumberFormat(r,U).format(x)});continue}if(U1(b)){var R=b.children,q=b.value,z=u[q];if(!V1(z))throw new IT(q,"function",d);var E=Vo(R,r,i,s,u,c),w=z(E.map(function(A){return A.value}));Array.isArray(w)||(w=[w]),h.push.apply(h,w.map(function(A){return{type:typeof A=="string"?It.literal:It.object,value:A}}))}if(L1(b)){var S=b.options[x]||b.options.other;if(!S)throw new ly(b.value,x,Object.keys(b.options),d);h.push.apply(h,Vo(S.value,r,i,s,u));continue}if(B1(b)){var S=b.options["=".concat(x)];if(!S){if(!Intl.PluralRules)throw new oa(`Intl.PluralRules is not available in this environment.
|
|
66
66
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
67
|
-
`,er.MISSING_INTL_API,d);var H=i.getPluralRules(r,{type:b.pluralType}).select(x-(b.offset||0));S=b.options[H]||b.options.other}if(!S)throw new
|
|
67
|
+
`,er.MISSING_INTL_API,d);var H=i.getPluralRules(r,{type:b.pluralType}).select(x-(b.offset||0));S=b.options[H]||b.options.other}if(!S)throw new ly(b.value,x,Object.keys(b.options),d);h.push.apply(h,Vo(S.value,r,i,s,u,x-(b.offset||0)));continue}}return GT(h)}function kT(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 qT(t,r){return r?Object.keys(t).reduce(function(i,s){return i[s]=kT(t[s],r[s]),i},ie({},t)):t}function Pf(t){return{create:function(){return{get:function(r){return t[r]},set:function(r,i){t[r]=i}}}}}function FT(t){return t===void 0&&(t={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Kn(function(){for(var r,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((r=Intl.NumberFormat).bind.apply(r,Wn([void 0],i,!1)))},{cache:Pf(t.number),strategy:$n.variadic}),getDateTimeFormat:Kn(function(){for(var r,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((r=Intl.DateTimeFormat).bind.apply(r,Wn([void 0],i,!1)))},{cache:Pf(t.dateTime),strategy:$n.variadic}),getPluralRules:Kn(function(){for(var r,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((r=Intl.PluralRules).bind.apply(r,Wn([void 0],i,!1)))},{cache:Pf(t.pluralRules),strategy:$n.variadic})}}var P1=(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 b=p.reduce(function(_,x){return!_.length||x.type!==It.literal||typeof _[_.length-1]!="string"?_.push(x.value):_[_.length-1]+=x.value,_},[]);return b.length<=1?b[0]||"":b},this.formatToParts=function(m){return Vo(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=fu(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=qT(t.formats,s),this.formatters=u&&u.formatters||FT(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=HT,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 tl=(function(t){An(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
68
|
`).concat(d?`
|
|
69
69
|
`.concat(d.message,`
|
|
70
|
-
`).concat(d.stack):""))||this,c.code=i,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(c,r),c}return r})(Error),VT=(function(t){An(r,t);function r(i,s){return t.call(this,za.UNSUPPORTED_FORMATTER,i,s)||this}return r})(tl),PT=(function(t){An(r,t);function r(i,s){return t.call(this,za.INVALID_CONFIG,i,s)||this}return r})(tl),
|
|
70
|
+
`).concat(d.stack):""))||this,c.code=i,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(c,r),c}return r})(Error),VT=(function(t){An(r,t);function r(i,s){return t.call(this,za.UNSUPPORTED_FORMATTER,i,s)||this}return r})(tl),PT=(function(t){An(r,t);function r(i,s){return t.call(this,za.INVALID_CONFIG,i,s)||this}return r})(tl),oy=(function(t){An(r,t);function r(i,s){return t.call(this,za.MISSING_DATA,i,s)||this}return r})(tl),xn=(function(t){An(r,t);function r(i,s,u){var c=t.call(this,za.FORMAT_ERROR,"".concat(i,`
|
|
71
71
|
Locale: `).concat(s,`
|
|
72
|
-
`),u)||this;return c.locale=s,c}return r})(tl),
|
|
72
|
+
`),u)||this;return c.locale=s,c}return r})(tl),Yf=(function(t){An(r,t);function r(i,s,u,c){var d=t.call(this,"".concat(i,`
|
|
73
73
|
MessageID: `).concat(u?.id,`
|
|
74
74
|
Default Message: `).concat(u?.defaultMessage,`
|
|
75
75
|
Description: `).concat(u?.description,`
|
|
76
|
-
`),s,c)||this;return d.descriptor=u,d.locale=s,d}return r})(xn),YT=(function(t){An(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})(tl);function XT(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 ZT=function(t){},QT=function(t){},
|
|
76
|
+
`),s,c)||this;return d.descriptor=u,d.locale=s,d}return r})(xn),YT=(function(t){An(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})(tl);function XT(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 ZT=function(t){},QT=function(t){},Y1={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:ZT,onWarn:QT};function X1(){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 KT(t){t===void 0&&(t=X1());var r=Intl.RelativeTimeFormat,i=Intl.ListFormat,s=Intl.DisplayNames,u=Kn(function(){for(var h,m=[],p=0;p<arguments.length;p++)m[p]=arguments[p];return new((h=Intl.DateTimeFormat).bind.apply(h,Wn([void 0],m,!1)))},{cache:Na(t.dateTime),strategy:$n.variadic}),c=Kn(function(){for(var h,m=[],p=0;p<arguments.length;p++)m[p]=arguments[p];return new((h=Intl.NumberFormat).bind.apply(h,Wn([void 0],m,!1)))},{cache:Na(t.number),strategy:$n.variadic}),d=Kn(function(){for(var h,m=[],p=0;p<arguments.length;p++)m[p]=arguments[p];return new((h=Intl.PluralRules).bind.apply(h,Wn([void 0],m,!1)))},{cache:Na(t.pluralRules),strategy:$n.variadic});return{getDateTimeFormat:u,getNumberFormat:c,getMessageFormat:Kn(function(h,m,p,b){return new P1(h,m,p,ie({formatters:{getNumberFormat:c,getDateTimeFormat:u,getPluralRules:d}},b||{}))},{cache:Na(t.message),strategy:$n.variadic}),getRelativeTimeFormat:Kn(function(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];return new(r.bind.apply(r,Wn([void 0],h,!1)))},{cache:Na(t.relativeTime),strategy:$n.variadic}),getPluralRules:d,getListFormat:Kn(function(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];return new(i.bind.apply(i,Wn([void 0],h,!1)))},{cache:Na(t.list),strategy:$n.variadic}),getDisplayNames:Kn(function(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];return new(s.bind.apply(s,Wn([void 0],h,!1)))},{cache:Na(t.displayNames),strategy:$n.variadic})}}function Eh(t,r,i,s){var u=t&&t[r],c;if(u&&(c=u[i]),c)return c;s(new VT("No ".concat(r," format named: ").concat(i)))}function _o(t,r){return Object.keys(t).reduce(function(i,s){return i[s]=ie({timeZone:r},t[s]),i},{})}function uy(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 cy(t,r){if(!r)return t;var i=P1.formats;return ie(ie(ie({},i),t),{date:uy(_o(i.date,r),_o(t.date||{},r)),time:uy(_o(i.time,r),_o(t.time||{},r))})}var $d=function(t,r,i,s,u){var c=t.locale,d=t.formats,h=t.messages,m=t.defaultLocale,p=t.defaultFormats,b=t.fallbackOnEmptyString,_=t.onError,x=t.timeZone,U=t.defaultRichTextElements;i===void 0&&(i={id:""});var R=i.id,q=i.defaultMessage;XT(!!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 z=String(R),E=h&&Object.prototype.hasOwnProperty.call(h,z)&&h[z];if(Array.isArray(E)&&E.length===1&&E[0].type===Ye.literal)return E[0].value;if(!s&&E&&typeof E=="string"&&!U)return E.replace(/'\{(.*?)\}'/gi,"{$1}");if(s=ie(ie({},U),s||{}),d=cy(d,x),p=cy(p,x),!E){if(b===!1&&E==="")return E;if((!q||c&&c.toLowerCase()!==m.toLowerCase())&&_(new YT(i,c)),q)try{var w=r.getMessageFormat(q,m,p,u);return w.format(s)}catch(S){return _(new Yf('Error formatting default message for: "'.concat(z,'", rendering default message verbatim'),c,i,S)),typeof q=="string"?q:z}return z}try{var w=r.getMessageFormat(E,c,d,ie({formatters:r},u||{}));return w.format(s)}catch(S){_(new Yf('Error formatting message: "'.concat(z,'", using ').concat(q?"default message":"id"," as fallback."),c,i,S))}if(q)try{var w=r.getMessageFormat(q,m,p,u);return w.format(s)}catch(S){_(new Yf('Error formatting the default message for: "'.concat(z,'", rendering message verbatim'),c,i,S))}return typeof E=="string"?E:typeof q=="string"?q:z},$T=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function nl(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&&Eh(c,r,m,d)),b=Ni(s,$T,p);return r==="time"&&!b.hour&&!b.minute&&!b.second&&!b.timeStyle&&!b.dateStyle&&(b=ie(ie({},b),{hour:"numeric",minute:"numeric"})),i(u,b)}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=c===void 0?{}:c,h=typeof u=="string"?new Date(u||0):u;try{return nl(t,"date",r,d).format(h)}catch(m){t.onError(new xn("Error formatting date.",t.locale,m))}return String(h)}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 nl(t,"time",r,d).format(h)}catch(m){t.onError(new xn("Error formatting time.",t.locale,m))}return String(h)}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=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 nl(t,"dateTimeRange",r,h).formatRange(m,p)}catch(b){t.onError(new xn("Error formatting date time range.",t.locale,b))}return String(m)}function tA(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 nl(t,"date",r,d).formatToParts(h)}catch(m){t.onError(new xn("Error formatting date.",t.locale,m))}return[]}function nA(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 nl(t,"time",r,d).formatToParts(h)}catch(m){t.onError(new xn("Error formatting time.",t.locale,m))}return[]}var rA=["style","type","fallback","languageDisplay"];function aA(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
77
|
Try polyfilling it using "@formatjs/intl-displaynames"
|
|
78
|
-
`,er.MISSING_INTL_API));var h=Ni(s,rA);try{return r(u,h).of(i)}catch(m){c(new xn("Error formatting display name.",u,m))}}var iA=["type","style"],
|
|
78
|
+
`,er.MISSING_INTL_API));var h=Ni(s,rA);try{return r(u,h).of(i)}catch(m){c(new xn("Error formatting display name.",u,m))}}var iA=["type","style"],fy=Date.now();function sA(t){return"".concat(fy,"_").concat(t,"_").concat(fy)}function lA(t,r,i,s){s===void 0&&(s={});var u=Z1(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 Z1(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
79
|
Try polyfilling it using "@formatjs/intl-listformat"
|
|
80
|
-
`,er.MISSING_INTL_API));var h=Ni(s,iA);try{var m={},p=i.map(function(b,
|
|
80
|
+
`,er.MISSING_INTL_API));var h=Ni(s,iA);try{var m={},p=i.map(function(b,_){if(typeof b=="object"){var x=sA(_);return m[x]=b,x}return String(b)});return r(u,h).formatToParts(p).map(function(b){return b.type==="literal"?b:ie(ie({},b),{value:m[b.value]||b.value})})}catch(b){c(new xn("Error formatting list.",u,b))}return i}var oA=["type"];function uA(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
81
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
82
|
-
`,er.MISSING_INTL_API));var d=Ni(s,oA);try{return r(u,d).select(i)}catch(h){c(new xn("Error formatting plural.",u,h))}return"other"}var cA=["numeric","style"];function fA(t,r,i){var s=t.locale,u=t.formats,c=t.onError;i===void 0&&(i={});var d=i.format,h=!!d&&
|
|
82
|
+
`,er.MISSING_INTL_API));var d=Ni(s,oA);try{return r(u,d).select(i)}catch(h){c(new xn("Error formatting plural.",u,h))}return"other"}var cA=["numeric","style"];function fA(t,r,i){var s=t.locale,u=t.formats,c=t.onError;i===void 0&&(i={});var d=i.format,h=!!d&&Eh(u,"relative",d,c)||{},m=Ni(i,cA,h);return r(s,m)}function dA(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
83
|
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
|
84
|
-
`,er.MISSING_INTL_API));try{return fA(t,r,u).format(i,s)}catch(d){t.onError(new xn("Error formatting relative time.",t.locale,d))}return String(i)}var hA=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function
|
|
84
|
+
`,er.MISSING_INTL_API));try{return fA(t,r,u).format(i,s)}catch(d){t.onError(new xn("Error formatting relative time.",t.locale,d))}return String(i)}var hA=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function Q1(t,r,i){var s=t.locale,u=t.formats,c=t.onError;i===void 0&&(i={});var d=i.format,h=d&&Eh(u,"number",d,c)||{},m=Ni(i,hA,h);return r(s,m)}function mA(t,r,i,s){s===void 0&&(s={});try{return Q1(t,r,s).format(i)}catch(u){t.onError(new xn("Error formatting number.",t.locale,u))}return String(i)}function pA(t,r,i,s){s===void 0&&(s={});try{return Q1(t,r,s).formatToParts(i)}catch(u){t.onError(new xn("Error formatting number.",t.locale,u))}return[]}function gA(t){var r=t?t[Object.keys(t)[0]]:void 0;return typeof r=="string"}function yA(t){t.onWarn&&t.defaultRichTextElements&&gA(t.messages||{})&&t.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
|
|
85
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 bA(t,r){var i=KT(r),s=ie(ie({},
|
|
86
|
+
For more details see https://formatjs.github.io/docs/getting-started/message-distribution`)}function bA(t,r){var i=KT(r),s=ie(ie({},Y1),t),u=s.locale,c=s.defaultLocale,d=s.onError;return u?!Intl.NumberFormat.supportedLocalesOf(u).length&&d?d(new oy('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 oy('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 PT('"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"),yA(s),ie(ie({},s),{formatters:i,formatNumber:mA.bind(null,s,i.getNumberFormat),formatNumberToParts:pA.bind(null,s,i.getNumberFormat),formatRelativeTime:dA.bind(null,s,i.getRelativeTimeFormat),formatDate:WT.bind(null,s,i.getDateTimeFormat),formatDateToParts:tA.bind(null,s,i.getDateTimeFormat),formatTime:JT.bind(null,s,i.getDateTimeFormat),formatDateTimeRange:eA.bind(null,s,i.getDateTimeFormat),formatTimeToParts:nA.bind(null,s,i.getDateTimeFormat),formatPlural:uA.bind(null,s,i.getPluralRules),formatMessage:$d.bind(null,s,i),$t:$d.bind(null,s,i),formatList:lA.bind(null,s,i.getListFormat),formatListToParts:Z1.bind(null,s,i.getListFormat),formatDisplayName:aA.bind(null,s,i.getDisplayNames)})}function vA(t,r,i){if(i===void 0&&(i=Error),!t)throw new i(r)}function K1(t){vA(t,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var $1=ie(ie({},Y1),{textComponent:B.Fragment}),_A={key:42},EA=function(t){return B.isValidElement(t)?B.createElement(B.Fragment,_A,t):t},SA=function(t){var r;return(r=B.Children.map(t,EA))!==null&&r!==void 0?r:[]};function TA(t){return function(r){return t(B.Children.toArray(r))}}function AA(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 Xf={exports:{}},Be={};/** @license React v16.13.1
|
|
87
87
|
* react-is.production.min.js
|
|
88
88
|
*
|
|
89
89
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
90
90
|
*
|
|
91
91
|
* This source code is licensed under the MIT license found in the
|
|
92
92
|
* LICENSE file in the root directory of this source tree.
|
|
93
|
-
*/var fy;function xA(){if(fy)return Be;fy=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,b=t?Symbol.for("react.forward_ref"):60112,E=t?Symbol.for("react.suspense"):60113,x=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,z=t?Symbol.for("react.fundamental"):60117,_=t?Symbol.for("react.responder"):60118,w=t?Symbol.for("react.scope"):60119;function S(A){if(typeof A=="object"&&A!==null){var Z=A.$$typeof;switch(Z){case r:switch(A=A.type,A){case m:case p:case s:case c:case u:case E:return A;default:switch(A=A&&A.$$typeof,A){case h:case b:case R:case U:case d:return A;default:return Z}}case i:return Z}}}function H(A){return S(A)===p}return Be.AsyncMode=m,Be.ConcurrentMode=p,Be.ContextConsumer=h,Be.ContextProvider=d,Be.Element=r,Be.ForwardRef=b,Be.Fragment=s,Be.Lazy=R,Be.Memo=U,Be.Portal=i,Be.Profiler=c,Be.StrictMode=u,Be.Suspense=E,Be.isAsyncMode=function(A){return H(A)||S(A)===m},Be.isConcurrentMode=H,Be.isContextConsumer=function(A){return S(A)===h},Be.isContextProvider=function(A){return S(A)===d},Be.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===r},Be.isForwardRef=function(A){return S(A)===b},Be.isFragment=function(A){return S(A)===s},Be.isLazy=function(A){return S(A)===R},Be.isMemo=function(A){return S(A)===U},Be.isPortal=function(A){return S(A)===i},Be.isProfiler=function(A){return S(A)===c},Be.isStrictMode=function(A){return S(A)===u},Be.isSuspense=function(A){return S(A)===E},Be.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===s||A===p||A===c||A===u||A===E||A===x||typeof A=="object"&&A!==null&&(A.$$typeof===R||A.$$typeof===U||A.$$typeof===d||A.$$typeof===h||A.$$typeof===b||A.$$typeof===z||A.$$typeof===_||A.$$typeof===w||A.$$typeof===F)},Be.typeOf=S,Be}var dy;function OA(){return dy||(dy=1,Zf.exports=xA()),Zf.exports}var Qf,hy;function RA(){if(hy)return Qf;hy=1;var t=OA(),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,b=Object.getOwnPropertyDescriptor,E=Object.getPrototypeOf,x=Object.prototype;function U(R,F,z){if(typeof F!="string"){if(x){var _=E(F);_&&_!==x&&U(R,_,z)}var w=m(F);p&&(w=w.concat(p(F)));for(var S=d(R),H=d(F),A=0;A<w.length;++A){var Z=w[A];if(!i[Z]&&!(z&&z[Z])&&!(H&&H[Z])&&!(S&&S[Z])){var W=b(F,Z);try{h(R,Z,W)}catch{}}}}return R}return Qf=U,Qf}RA();var Th=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=B.createContext(null)):B.createContext(null);Th.Consumer;var wA=Th.Provider,CA=wA,NA=Th;function fu(){var t=B.useContext(NA);return Q1(t),t}var Jd;(function(t){t.formatDate="FormattedDate",t.formatTime="FormattedTime",t.formatNumber="FormattedNumber",t.formatList="FormattedList",t.formatDisplayName="FormattedDisplayName"})(Jd||(Jd={}));var eh;(function(t){t.formatDate="FormattedDateParts",t.formatTime="FormattedTimeParts",t.formatNumber="FormattedNumberParts",t.formatList="FormattedListParts"})(eh||(eh={}));function $1(t){var r=function(i){var s=fu(),u=i.value,c=i.children,d=cu(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=eh[t],r}function rl(t){var r=function(i){var s=fu(),u=i.value,c=i.children,d=cu(i,["value","children"]),h=s[t](u,d);if(typeof c=="function")return c(h);var m=s.textComponent||B.Fragment;return B.createElement(m,null,h)};return r.displayName=Jd[t],r}function W1(t){return t&&Object.keys(t).reduce(function(r,i){var s=t[i];return r[i]=F1(s)?TA(s):s,r},{})}var my=function(t,r,i,s){for(var u=[],c=4;c<arguments.length;c++)u[c-4]=arguments[c];var d=W1(s),h=Wd.apply(void 0,Wn([t,r,i,d],u,!1));return Array.isArray(h)?SA(h):h},py=function(t,r){var i=t.defaultRichTextElements,s=cu(t,["defaultRichTextElements"]),u=W1(i),c=bA(ie(ie(ie({},K1),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:my.bind(null,d,c.formatters),$t:my.bind(null,d,c.formatters)})};function Kf(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 MA=(function(t){An(r,t);function r(){var i=t!==null&&t.apply(this,arguments)||this;return i.cache=Y1(),i.state={cache:i.cache,intl:py(Kf(i.props),i.cache),prevConfig:Kf(i.props)},i}return r.getDerivedStateFromProps=function(i,s){var u=s.prevConfig,c=s.cache,d=Kf(i);return AA(u,d)?null:{intl:py(d,c),prevConfig:d}},r.prototype.render=function(){return Q1(this.state.intl),B.createElement(CA,{value:this.state.intl},this.props.children)},r.displayName="IntlProvider",r.defaultProps=K1,r})(B.PureComponent);rl("formatDate");rl("formatTime");rl("formatNumber");rl("formatList");rl("formatDisplayName");$1("formatDate");$1("formatTime");const DA="_app_1rj0t_1",LA={app:DA},Nr=QS,st=WS,J1="%[a-f0-9]{2}",gy=new RegExp("("+J1+")|([^%]+?)","gi"),yy=new RegExp("("+J1+")+","gi");function th(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([],th(i),th(s))}function BA(t){try{return decodeURIComponent(t)}catch{let r=t.match(gy)||[];for(let i=1;i<r.length;i++)t=th(r,i).join(""),r=t.match(gy)||[];return t}}function UA(t){const r={"%FE%FF":"��","%FF%FE":"��"};let i=yy.exec(t);for(;i;){try{r[i[0]]=decodeURIComponent(i[0])}catch{const u=BA(i[0]);u!==i[0]&&(r[i[0]]=u)}i=yy.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 jA(t){if(typeof t!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return decodeURIComponent(t)}catch{return UA(t)}}function HA(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 ev(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 IA=t=>t==null,zA=t=>encodeURIComponent(t).replaceAll(/[!'()*]/g,r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`),nh=Symbol("encodeFragmentIdentifier");function GA(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,[ft(r,t),"[",u,"]"].join("")]:[...i,[ft(r,t),"[",ft(u,t),"]=",ft(s,t)].join("")]};case"bracket":return r=>(i,s)=>s===void 0||t.skipNull&&s===null||t.skipEmptyString&&s===""?i:s===null?[...i,[ft(r,t),"[]"].join("")]:[...i,[ft(r,t),"[]=",ft(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,[ft(r,t),":list="].join("")]:[...i,[ft(r,t),":list=",ft(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?[[ft(i,t),r,ft(u,t)].join("")]:[[s,ft(u,t)].join(t.arrayFormatSeparator)])}default:return r=>(i,s)=>s===void 0||t.skipNull&&s===null||t.skipEmptyString&&s===""?i:s===null?[...i,ft(r,t)]:[...i,[ft(r,t),"=",ft(s,t)].join("")]}}function kA(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&&Ar(s,t).includes(t.arrayFormatSeparator);s=d?Ar(s,t):s;const h=c||d?s.split(t.arrayFormatSeparator).map(m=>Ar(m,t)):s===null?s:Ar(s,t);u[i]=h};case"bracket-separator":return(i,s,u)=>{const c=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!c){u[i]=s&&Ar(s,t);return}const d=s===null?[]:Ar(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 tv(t){if(typeof t!="string"||t.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function ft(t,r){return r.encode?r.strict?zA(t):encodeURIComponent(t):t}function Ar(t,r){return r.decode?jA(t):t}function nv(t){return Array.isArray(t)?t.sort():typeof t=="object"?nv(Object.keys(t)).sort((r,i)=>Number(r)-Number(i)).map(r=>t[r]):t}function rv(t){const r=t.indexOf("#");return r!==-1&&(t=t.slice(0,r)),t}function qA(t){let r="";const i=t.indexOf("#");return i!==-1&&(r=t.slice(i)),r}function by(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 Ah(t){t=rv(t);const r=t.indexOf("?");return r===-1?"":t.slice(r+1)}function xh(t,r){r={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...r},tv(r.arrayFormatSeparator);const i=kA(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]=ev(c,"=");d===void 0&&(d=c),h=h===void 0?null:["comma","separator","bracket-separator"].includes(r.arrayFormat)?h:Ar(h,r),i(Ar(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]=by(h,r,m)}else typeof c=="object"&&c!==null&&r.types[u]==="string"?s[u]=Object.values(c).join(r.arrayFormatSeparator):s[u]=by(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)?nv(d):d,u},Object.create(null))}function av(t,r){if(!t)return"";r={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...r},tv(r.arrayFormatSeparator);const i=d=>r.skipNull&&IA(t[d])||r.skipEmptyString&&t[d]==="",s=GA(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?ft(d,r):Array.isArray(h)?h.length===0&&r.arrayFormat==="bracket-separator"?ft(d,r)+"[]":h.reduce(s(d),[]).join("&"):ft(d,r)+"="+ft(h,r)}).filter(d=>d.length>0).join("&")}function iv(t,r){r={decode:!0,...r};let[i,s]=ev(t,"#");return i===void 0&&(i=t),{url:i?.split("?")?.[0]??"",query:xh(Ah(t),r),...r&&r.parseFragmentIdentifier&&s?{fragmentIdentifier:Ar(s,r)}:{}}}function sv(t,r){r={encode:!0,strict:!0,[nh]:!0,...r};const i=rv(t.url).split("?")[0]||"",s=Ah(t.url),u={...xh(s,{sort:!1,...r}),...t.query};let c=av(u,r);c&&=`?${c}`;let d=qA(t.url);if(typeof t.fragmentIdentifier=="string"){const h=new URL(i);h.hash=t.fragmentIdentifier,d=r[nh]?h.hash:`#${t.fragmentIdentifier}`}return`${i}${c}${d}`}function lv(t,r,i){i={parseFragmentIdentifier:!0,[nh]:!1,...i};const{url:s,query:u,fragmentIdentifier:c}=iv(t,i);return sv({url:s,query:HA(u,r),fragmentIdentifier:c},i)}function FA(t,r,i){const s=Array.isArray(r)?u=>!r.includes(u):(u,c)=>!r(u,c);return lv(t,s,i)}const du=Object.freeze(Object.defineProperty({__proto__:null,exclude:FA,extract:Ah,parse:xh,parseUrl:iv,pick:lv,stringify:av,stringifyUrl:sv},Symbol.toStringTag,{value:"Module"}));var Ln={},Bn={},Ie={},_o={},pe={},vy;function fn(){return vy||(vy=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 _y;function VA(){if(_y)return _o;_y=1,Object.defineProperty(_o,"__esModule",{value:!0});const t=fn(),r=()=>({type:t.DRAWER_CLOSE});return _o.default=r,_o}var Eo={},Ey;function PA(){if(Ey)return Eo;Ey=1,Object.defineProperty(Eo,"__esModule",{value:!0});const t=fn(),r=(i,s)=>({type:t.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:i,intent:s}});return Eo.default=r,Eo}var So={},Sy;function YA(){if(Sy)return So;Sy=1,Object.defineProperty(So,"__esModule",{value:!0});const t=fn(),r=i=>({type:t.GUEST_CONNECTED,payload:{sessionId:i}});return So.default=r,So}var To={},Ty;function XA(){if(Ty)return To;Ty=1,Object.defineProperty(To,"__esModule",{value:!0});const t=fn(),r=i=>({type:t.GUEST_DISCONNECTED,payload:{sessionId:i}});return To.default=r,To}var Ao={},Ay;function ZA(){if(Ay)return Ao;Ay=1,Object.defineProperty(Ao,"__esModule",{value:!0});const t=fn(),r=(i,s)=>({type:t.GUEST_LOCALE_CHANGED,payload:{previousLocale:i,newLocale:s}});return Ao.default=r,Ao}var xo={},xy;function QA(){if(xy)return xo;xy=1,Object.defineProperty(xo,"__esModule",{value:!0});const t=fn(),r=i=>({type:t.DRAWER_OPEN,payload:{parameters:{contentUrl:i}}});return xo.default=r,xo}var Oo={},$e={},Oy;function Oh(){if(Oy)return $e;Oy=1,Object.defineProperty($e,"__esModule",{value:!0}),$e.getStringRepresentationFromMessage=$e.MessageTypeEnum=$e.AudioMessage=$e.FileMessage=$e.ImageMessage=$e.VideoMessage=$e.MarkdownMessage=$e.DetailMessage=$e.TextMessage=$e.Message=void 0;class t{type;sender;sources;quickReplies;constructor(E,x,U=[],R=[]){this.type=E,this.sender=x,this.sources=U,this.quickReplies=R}addQuickReply(E,x){this.quickReplies.push({label:E,payload:x})}}$e.Message=t;class r extends t{text;constructor(E,x,U=[],R=[]){super(m.TEXT,x,U,R),this.text=E}}$e.TextMessage=r;class i extends t{title;text;imageUrl;itemUrl;buttons;constructor(E,x){super(m.DETAIL,x),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)}}$e.DetailMessage=i;class s extends t{markdown;constructor(E,x,U=[],R=[]){super(m.MARKDOWN,x,U,R),this.markdown=E}}$e.MarkdownMessage=s;class u extends t{url;constructor(E,x){super(m.VIDEO,x),this.url=E}}$e.VideoMessage=u;class c extends t{url;constructor(E,x){super(m.IMAGE,x),this.url=E}}$e.ImageMessage=c;class d extends t{url;constructor(E,x){super(m.FILE,x),this.url=E}}$e.FileMessage=d;class h extends t{url;constructor(E,x){super(m.AUDIO,x),this.url=E}}$e.AudioMessage=h;var m;(function(b){b.TEXT="TEXT",b.DETAIL="DETAIL",b.MARKDOWN="MARKDOWN",b.VIDEO="VIDEO",b.IMAGE="IMAGE",b.FILE="FILE",b.AUDIO="AUDIO"})(m||($e.MessageTypeEnum=m={}));const p=b=>{switch(b.type){case m.TEXT:return b.text;case m.DETAIL:return`${b.title}`;case m.MARKDOWN:return b.markdown;case m.VIDEO:return`Video Url: ${b.url}`;case m.IMAGE:return`Image Url: ${b.url}`;case m.FILE:return`File Url: ${b.url}`;case m.AUDIO:return`Audio Url: ${b.url}`;default:throw new Error("Unknown message type "+b.type)}};return $e.getStringRepresentationFromMessage=p,$e}var sn={},Ry;function Rh(){if(Ry)return sn;Ry=1,Object.defineProperty(sn,"__esModule",{value:!0}),sn.UserType=sn.PersonUser=sn.GuestUser=sn.BotUser=sn.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}}sn.User=t;class r extends t{constructor(){super(u.BOT,null,"Chatbot","bot.svg")}}sn.BotUser=r;class i extends t{constructor(){super(u.GUEST,null,"Guest","visitor.svg")}}sn.GuestUser=i;class s extends t{constructor(d,h,m){super(u.PERSON,d,h,m)}}sn.PersonUser=s;var u;return(function(c){c.GUEST="GUEST",c.BOT="BOT",c.PERSON="PERSON"})(u||(sn.UserType=u={})),sn}var wy;function KA(){if(wy)return Oo;wy=1,Object.defineProperty(Oo,"__esModule",{value:!0});const t=Oh(),r=Rh(),i=fn(),s=u=>{const c=new t.TextMessage(u,new r.GuestUser);return{type:i.MESSAGE_FROM_GUEST,message:c}};return Oo.default=s,Oo}var Ro={},Cy;function $A(){if(Cy)return Ro;Cy=1,Object.defineProperty(Ro,"__esModule",{value:!0});const t=Oh(),r=Rh(),i=fn(),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 Ro.default=s,Ro}var wo={},Ny;function WA(){if(Ny)return wo;Ny=1,Object.defineProperty(wo,"__esModule",{value:!0});const t=fn(),r=i=>({type:t.NLU_REQUEST_EVENT,event:i});return wo.default=r,wo}var Co={},My;function JA(){if(My)return Co;My=1,Object.defineProperty(Co,"__esModule",{value:!0});const t=fn(),r=()=>({type:t.RESTART_CHAT_REQUEST});return Co.default=r,Co}var No={},Dy;function ex(){if(Dy)return No;Dy=1,Object.defineProperty(No,"__esModule",{value:!0});const t=fn(),r=i=>({type:t.MESSAGE_TO_GUEST,message:i});return No.default=r,No}var Mo={},Ly;function tx(){if(Ly)return Mo;Ly=1,Object.defineProperty(Mo,"__esModule",{value:!0});const t=fn(),r=(i,s,u=null,c=null)=>({type:t.TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:i,reaction:s,category:u,comment:c}});return Mo.default=r,Mo}var By;function nx(){if(By)return Ie;By=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(VA());Ie.closeDrawer=r.default;const i=t(PA());Ie.feedbackFromGuestResponse=i.default;const s=t(YA());Ie.guestConnected=s.default;const u=t(XA());Ie.guestDisconnected=u.default;const c=t(ZA());Ie.guestLocaleChanged=c.default;const d=t(QA());Ie.openDrawer=d.default;const h=t(KA());Ie.receiveTextMessageFromGuest=h.default;const m=t($A());Ie.receiveTextMessageWithoutAnalysisFromGuest=m.default;const p=t(WA());Ie.requestNLUEvent=p.default;const b=t(JA());Ie.restartChatRequest=b.default;const E=t(ex());Ie.sendMessageToGuest=E.default;const x=t(tx());return Ie.transcriptItemGuestReaction=x.default,Ie}var $f={},Uy;function rx(){return Uy||(Uy=1,Object.defineProperty($f,"__esModule",{value:!0})),$f}var jy;function ax(){return jy||(jy=1,(function(t){var r=Bn&&Bn.__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=Bn&&Bn.__setModuleDefault||(Object.create?(function(c,d){Object.defineProperty(c,"default",{enumerable:!0,value:d})}):function(c,d){c.default=d}),s=Bn&&Bn.__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=Bn&&Bn.__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(nx()),t.ActionTypes=s(fn()),u(rx(),t)})(Bn)),Bn}var ln={},Wf={},Hy;function ix(){return Hy||(Hy=1,Object.defineProperty(Wf,"__esModule",{value:!0})),Wf}var Us={},Iy;function sx(){if(Iy)return Us;Iy=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 zy;function lx(){if(zy)return ln;zy=1;var t=ln&&ln.__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=ln&&ln.__setModuleDefault||(Object.create?(function(u,c){Object.defineProperty(u,"default",{enumerable:!0,value:c})}):function(u,c){u.default=c}),i=ln&&ln.__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(ln,"__esModule",{value:!0}),ln.NullableCmsAdapter=ln.KnowledgeBase=void 0,ln.KnowledgeBase=i(ix());const s=sx();return ln.NullableCmsAdapter={knowledgeBase:new s.NullableKnowledgeBaseAdapter},ln}var Ma={},Jf={},Gy;function ox(){return Gy||(Gy=1,Object.defineProperty(Jf,"__esModule",{value:!0})),Jf}var ed={},ky;function ux(){return ky||(ky=1,Object.defineProperty(ed,"__esModule",{value:!0})),ed}var td={},qy;function cx(){return qy||(qy=1,Object.defineProperty(td,"__esModule",{value:!0})),td}var nd={},Fy;function fx(){return Fy||(Fy=1,Object.defineProperty(nd,"__esModule",{value:!0})),nd}var js={},Vy;function dx(){if(Vy)return js;Vy=1,Object.defineProperty(js,"__esModule",{value:!0}),js.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 js.checkMiddlewareCondition=t,js}var rd={},Py;function hx(){return Py||(Py=1,Object.defineProperty(rd,"__esModule",{value:!0})),rd}var ad={},Yy;function mx(){return Yy||(Yy=1,Object.defineProperty(ad,"__esModule",{value:!0})),ad}var id={},Xy;function px(){return Xy||(Xy=1,Object.defineProperty(id,"__esModule",{value:!0})),id}var Zy;function gx(){return Zy||(Zy=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(ox(),t),i(ux(),t),i(cx(),t),i(fx(),t),i(dx(),t),i(hx(),t),i(mx(),t),i(px(),t)})(Ma)),Ma}var Da={},Un={},Qy;function yx(){if(Qy)return Un;Qy=1,Object.defineProperty(Un,"__esModule",{value:!0}),Un.ButtonTypeEnum=Un.PostbackButton=Un.UrlButton=Un.Button=void 0;class t{title;type;constructor(c,d){this.title=c,this.type=d}}Un.Button=t;class r extends t{url;constructor(c,d){super(c,s.WEB_URL),this.url=d}}Un.UrlButton=r;class i extends t{payload;constructor(c,d){super(c,s.POSTBACK),this.payload=d}}Un.PostbackButton=i;var s;return(function(u){u.WEB_URL="web_url",u.POSTBACK="postback"})(s||(Un.ButtonTypeEnum=s={})),Un}var sd={},Ky;function bx(){return Ky||(Ky=1,Object.defineProperty(sd,"__esModule",{value:!0})),sd}var Hs={},$y;function vx(){if($y)return Hs;$y=1,Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.SatisfactionEnum=void 0;var t;return(function(r){r.GOOD="GOOD",r.BAD="BAD"})(t||(Hs.SatisfactionEnum=t={})),Hs}var Wy;function Jy(){return Wy||(Wy=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(yx(),t),i(bx(),t),i(vx(),t),i(Oh(),t),i(Rh(),t)})(Da)),Da}var eb;function _x(){return eb||(eb=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.__exportStar||function(c,d){for(var h in c)h!=="default"&&!Object.prototype.hasOwnProperty.call(d,h)&&r(d,c,h)},u=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}})();Object.defineProperty(t,"__esModule",{value:!0}),t.Model=t.CMS=void 0,s(ax(),t),t.CMS=u(lx()),s(gx(),t),t.Model=u(Jy()),s(Jy(),t)})(Ln)),Ln}var Te=_x();const ov=t=>r=>(t.payload.type!==Te.ActionTypes.MESSAGE_FROM_GUEST&&r(Te.Actions.receiveTextMessageWithoutAnalysisFromGuest(t.label,t.payload)),r(t.payload)),uv=t=>(r,i)=>{const{quickReplies:s}=i().chat,u=s.find(c=>t.toLocaleLowerCase().indexOf(c.label.toLocaleLowerCase())>-1);return r(u?ov({...u,label:t}):JSON.parse(JSON.stringify(Te.Actions.receiveTextMessageFromGuest(t))))},wh="MESSAGE_TO_PARENT_PAGE",Ch="RESTORE_PREVIOUS_CHAT_MESSAGES",Nh="AUDIO_MESSAGE_FROM_USER",Mh="RECEIVE_SPEECH_TRANSCRIPTION",Dh="ENABLE_CONVERSATION_RATING",cv="LOAD_SOURCE_INFOS_RESPONSE",Lh="LOAD_SOURCE_INFOS_ERROR",Bh="LOAD_SOURCE_INFOS_REQUEST",Uh="CLOSE_SOURCE_INFOS",Ex="webclient.get.started",fv="webclient.window.expand",dv="webclient.window.close",hv="webclient.transcript.pdf.download",Sx=[wh,Ch,Nh,Mh,Dh,Bh,Uh],Tx=t=>({type:Nh,buffer:t}),Ax=t=>({type:Mh,transcription:t}),xx=t=>({type:Te.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:t}}}),Ox=()=>({type:hv}),Rx=({rating:t})=>({type:Dh,payload:{rating:t}}),wx=(t,r)=>({type:Te.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:t,feedback:r}}),mv=t=>Te.Actions.requestNLUEvent(t),Cx=t=>({type:Ch,messages:t}),Nx=t=>{switch(t.type){case Te.ButtonTypeEnum.WEB_URL:return gv(t.url);case Te.ButtonTypeEnum.POSTBACK:return t.payload;default:throw new Error(`unknown button type ${t.type}`)}},pv=t=>gv(t),gv=t=>({type:wh,message:{type:"webclient.change.url",url:t}});/*! js-cookie v3.0.5 | MIT */function Do(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 Mx={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 rh(t,r){function i(u,c,d){if(!(typeof document>"u")){d=Do({},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 b=decodeURIComponent(m[0]);if(d[b]=t.read(p,b),u===b)break}catch{}}return u?d[u]:d}}return Object.create({set:i,get:s,remove:function(u,c){i(u,"",Do({},c,{expires:-1}))},withAttributes:function(u){return rh(this.converter,Do({},this.attributes,u))},withConverter:function(u){return rh(Do({},this.converter,u),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(t)}})}var Lo=rh(Mx,{path:"/"});const wt=[];for(let t=0;t<256;++t)wt.push((t+256).toString(16).slice(1));function Dx(t,r=0){return(wt[t[r+0]]+wt[t[r+1]]+wt[t[r+2]]+wt[t[r+3]]+"-"+wt[t[r+4]]+wt[t[r+5]]+"-"+wt[t[r+6]]+wt[t[r+7]]+"-"+wt[t[r+8]]+wt[t[r+9]]+"-"+wt[t[r+10]]+wt[t[r+11]]+wt[t[r+12]]+wt[t[r+13]]+wt[t[r+14]]+wt[t[r+15]]).toLowerCase()}let ld;const Lx=new Uint8Array(16);function Bx(){if(!ld){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ld=crypto.getRandomValues.bind(crypto)}return ld(Lx)}const Ux=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),tb={randomUUID:Ux};function Wo(t,r,i){if(tb.randomUUID&&!t)return tb.randomUUID();t=t||{};const s=t.random??t.rng?.()??Bx();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,Dx(s)}function Ct(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 jx=typeof Symbol=="function"&&Symbol.observable||"@@observable",nb=jx,od=()=>Math.random().toString(36).substring(7).split("").join("."),Hx={INIT:`@@redux/INIT${od()}`,REPLACE:`@@redux/REPLACE${od()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${od()}`},Jo=Hx;function jh(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 yv(t,r,i){if(typeof t!="function")throw new Error(Ct(2));if(typeof r=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(Ct(0));if(typeof r=="function"&&typeof i>"u"&&(i=r,r=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(Ct(1));return i(yv)(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((z,_)=>{d.set(_,z)}))}function b(){if(m)throw new Error(Ct(3));return u}function E(z){if(typeof z!="function")throw new Error(Ct(4));if(m)throw new Error(Ct(5));let _=!0;p();const w=h++;return d.set(w,z),function(){if(_){if(m)throw new Error(Ct(6));_=!1,p(),d.delete(w),c=null}}}function x(z){if(!jh(z))throw new Error(Ct(7));if(typeof z.type>"u")throw new Error(Ct(8));if(typeof z.type!="string")throw new Error(Ct(17));if(m)throw new Error(Ct(9));try{m=!0,u=s(u,z)}finally{m=!1}return(c=d).forEach(w=>{w()}),z}function U(z){if(typeof z!="function")throw new Error(Ct(10));s=z,x({type:Jo.REPLACE})}function R(){const z=E;return{subscribe(_){if(typeof _!="object"||_===null)throw new Error(Ct(11));function w(){const H=_;H.next&&H.next(b())}return w(),{unsubscribe:z(w)}},[nb](){return this}}}return x({type:Jo.INIT}),{dispatch:x,subscribe:E,getState:b,replaceReducer:U,[nb]:R}}function Ix(t){Object.keys(t).forEach(r=>{const i=t[r];if(typeof i(void 0,{type:Jo.INIT})>"u")throw new Error(Ct(12));if(typeof i(void 0,{type:Jo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ct(13))})}function bv(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{Ix(i)}catch(c){u=c}return function(d={},h){if(u)throw u;let m=!1;const p={};for(let b=0;b<s.length;b++){const E=s[b],x=i[E],U=d[E],R=x(U,h);if(typeof R>"u")throw h&&h.type,new Error(Ct(14));p[E]=R,m=m||R!==U}return m=m||s.length!==Object.keys(d).length,m?p:d}}function eu(...t){return t.length===0?r=>r:t.length===1?t[0]:t.reduce((r,i)=>(...s)=>r(i(...s)))}function zx(...t){return r=>(i,s)=>{const u=r(i,s);let c=()=>{throw new Error(Ct(15))};const d={getState:u.getState,dispatch:(m,...p)=>c(m,...p)},h=t.map(m=>m(d));return c=eu(...h)(u.dispatch),{...u,dispatch:c}}}function Gx(t){return jh(t)&&"type"in t&&typeof t.type=="string"}var vv=Symbol.for("immer-nothing"),rb=Symbol.for("immer-draftable"),un=Symbol.for("immer-state");function zn(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[un]}function Cr(t){return t?_v(t)||Array.isArray(t)||!!t[rb]||!!t.constructor?.[rb]||mu(t)||pu(t):!1}var kx=Object.prototype.constructor.toString();function _v(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)===kx}function tu(t,r){hu(t)===0?Reflect.ownKeys(t).forEach(i=>{r(i,t[i],t)}):t.forEach((i,s)=>r(s,i,t))}function hu(t){const r=t[un];return r?r.type_:Array.isArray(t)?1:mu(t)?2:pu(t)?3:0}function ah(t,r){return hu(t)===2?t.has(r):Object.prototype.hasOwnProperty.call(t,r)}function Ev(t,r,i){const s=hu(t);s===2?t.set(r,i):s===3?t.add(i):t[r]=i}function qx(t,r){return t===r?t!==0||1/t===1/r:t!==t&&r!==r}function mu(t){return t instanceof Map}function pu(t){return t instanceof Set}function ja(t){return t.copy_||t.base_}function ih(t,r){if(mu(t))return new Map(t);if(pu(t))return new Set(t);if(Array.isArray(t))return Array.prototype.slice.call(t);const i=_v(t);if(r===!0||r==="class_only"&&!i){const s=Object.getOwnPropertyDescriptors(t);delete s[un];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 Hh(t,r=!1){return gu(t)||Ga(t)||!Cr(t)||(hu(t)>1&&(t.set=t.add=t.clear=t.delete=Fx),Object.freeze(t),r&&Object.entries(t).forEach(([i,s])=>Hh(s,!0))),t}function Fx(){zn(2)}function gu(t){return Object.isFrozen(t)}var Vx={};function ka(t){const r=Vx[t];return r||zn(0,t),r}var Ws;function Sv(){return Ws}function Px(t,r){return{drafts_:[],parent_:t,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function ab(t,r){r&&(ka("Patches"),t.patches_=[],t.inversePatches_=[],t.patchListener_=r)}function sh(t){lh(t),t.drafts_.forEach(Yx),t.drafts_=null}function lh(t){t===Ws&&(Ws=t.parent_)}function ib(t){return Ws=Px(Ws,t)}function Yx(t){const r=t[un];r.type_===0||r.type_===1?r.revoke_():r.revoked_=!0}function sb(t,r){r.unfinalizedDrafts_=r.drafts_.length;const i=r.drafts_[0];return t!==void 0&&t!==i?(i[un].modified_&&(sh(r),zn(4)),Cr(t)&&(t=nu(r,t),r.parent_||ru(r,t)),r.patches_&&ka("Patches").generateReplacementPatches_(i[un].base_,t,r.patches_,r.inversePatches_)):t=nu(r,i,[]),sh(r),r.patches_&&r.patchListener_(r.patches_,r.inversePatches_),t!==vv?t:void 0}function nu(t,r,i){if(gu(r))return r;const s=r[un];if(!s)return tu(r,(u,c)=>lb(t,s,r,u,c,i)),r;if(s.scope_!==t)return r;if(!s.modified_)return ru(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),tu(c,(h,m)=>lb(t,s,u,h,m,i,d)),ru(t,u,!1),i&&t.patches_&&ka("Patches").generatePatches_(s,i,t.patches_,t.inversePatches_)}return s.copy_}function lb(t,r,i,s,u,c,d){if(Ga(u)){const h=c&&r&&r.type_!==3&&!ah(r.assigned_,s)?c.concat(s):void 0,m=nu(t,u,h);if(Ev(i,s,m),Ga(m))t.canAutoFreeze_=!1;else return}else d&&i.add(u);if(Cr(u)&&!gu(u)){if(!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1)return;nu(t,u),(!r||!r.scope_.parent_)&&typeof s!="symbol"&&Object.prototype.propertyIsEnumerable.call(i,s)&&ru(t,u)}}function ru(t,r,i=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Hh(r,i)}function Xx(t,r){const i=Array.isArray(t),s={type_:i?1:0,scope_:r?r.scope_:Sv(),modified_:!1,finalized_:!1,assigned_:{},parent_:r,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1};let u=s,c=Ih;i&&(u=[s],c=Js);const{revoke:d,proxy:h}=Proxy.revocable(u,c);return s.draft_=h,s.revoke_=d,h}var Ih={get(t,r){if(r===un)return t;const i=ja(t);if(!ah(i,r))return Zx(t,i,r);const s=i[r];return t.finalized_||!Cr(s)?s:s===ud(t.base_,r)?(cd(t),t.copy_[r]=uh(s,t)):s},has(t,r){return r in ja(t)},ownKeys(t){return Reflect.ownKeys(ja(t))},set(t,r,i){const s=Tv(ja(t),r);if(s?.set)return s.set.call(t.draft_,i),!0;if(!t.modified_){const u=ud(ja(t),r),c=u?.[un];if(c&&c.base_===i)return t.copy_[r]=i,t.assigned_[r]=!1,!0;if(qx(i,u)&&(i!==void 0||ah(t.base_,r)))return!0;cd(t),oh(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 ud(t.base_,r)!==void 0||r in t.base_?(t.assigned_[r]=!1,cd(t),oh(t)):delete t.assigned_[r],t.copy_&&delete t.copy_[r],!0},getOwnPropertyDescriptor(t,r){const i=ja(t),s=Reflect.getOwnPropertyDescriptor(i,r);return s&&{writable:!0,configurable:t.type_!==1||r!=="length",enumerable:s.enumerable,value:i[r]}},defineProperty(){zn(11)},getPrototypeOf(t){return wi(t.base_)},setPrototypeOf(){zn(12)}},Js={};tu(Ih,(t,r)=>{Js[t]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}});Js.deleteProperty=function(t,r){return Js.set.call(this,t,r,void 0)};Js.set=function(t,r,i){return Ih.set.call(this,t[0],r,i,t[0])};function ud(t,r){const i=t[un];return(i?ja(i):t)[r]}function Zx(t,r,i){const s=Tv(r,i);return s?"value"in s?s.value:s.get?.call(t.draft_):void 0}function Tv(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 oh(t){t.modified_||(t.modified_=!0,t.parent_&&oh(t.parent_))}function cd(t){t.copy_||(t.copy_=ih(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Qx=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,b=>i.call(this,b,...p))}}typeof i!="function"&&zn(6),s!==void 0&&typeof s!="function"&&zn(7);let u;if(Cr(r)){const c=ib(this),d=uh(r,void 0);let h=!0;try{u=i(d),h=!1}finally{h?sh(c):lh(c)}return ab(c,s),sb(u,c)}else if(!r||typeof r!="object"){if(u=i(r),u===void 0&&(u=r),u===vv&&(u=void 0),this.autoFreeze_&&Hh(u,!0),s){const c=[],d=[];ka("Patches").generateReplacementPatches_(r,u,c,d),s(c,d)}return u}else zn(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){Cr(t)||zn(8),Ga(t)&&(t=Kx(t));const r=ib(this),i=uh(t,void 0);return i[un].isManual_=!0,lh(r),i}finishDraft(t,r){const i=t&&t[un];(!i||!i.isManual_)&&zn(9);const{scope_:s}=i;return ab(s,r),sb(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 uh(t,r){const i=mu(t)?ka("MapSet").proxyMap_(t,r):pu(t)?ka("MapSet").proxySet_(t,r):Xx(t,r);return(r?r.scope_:Sv()).drafts_.push(i),i}function Kx(t){return Ga(t)||zn(10,t),Av(t)}function Av(t){if(!Cr(t)||gu(t))return t;const r=t[un];let i;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,i=ih(t,r.scope_.immer_.useStrictShallowCopy_)}else i=ih(t,!0);return tu(i,(s,u)=>{Ev(i,s,Av(u))}),r&&(r.finalized_=!1),i}var cn=new Qx,xv=cn.produce;cn.produceWithPatches.bind(cn);cn.setAutoFreeze.bind(cn);cn.setUseStrictShallowCopy.bind(cn);cn.applyPatches.bind(cn);cn.createDraft.bind(cn);cn.finishDraft.bind(cn);function Ov(t){return({dispatch:i,getState:s})=>u=>c=>typeof c=="function"?c(i,s,t):u(c)}var $x=Ov(),Wx=Ov,Jx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?eu:eu.apply(null,arguments)};function ob(t,r){function i(...s){if(r){let u=r(...s);if(!u)throw new Error(xr(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=>Gx(s)&&s.type===t,i}var Rv=class Zs extends Array{constructor(...r){super(...r),Object.setPrototypeOf(this,Zs.prototype)}static get[Symbol.species](){return Zs}concat(...r){return super.concat.apply(this,r)}prepend(...r){return r.length===1&&Array.isArray(r[0])?new Zs(...r[0].concat(this)):new Zs(...r.concat(this))}};function ub(t){return Cr(t)?xv(t,()=>{}):t}function Bo(t,r,i){return t.has(r)?t.get(r):t.set(r,i(r)).get(r)}function eO(t){return typeof t=="boolean"}var tO=()=>function(r){const{thunk:i=!0,immutableCheck:s=!0,serializableCheck:u=!0,actionCreatorCheck:c=!0}=r??{};let d=new Rv;return i&&(eO(i)?d.push($x):d.push(Wx(i.extraArgument))),d},nO="RTK_autoBatch",cb=t=>r=>{setTimeout(r,t)},rO=(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:cb(10):t.type==="callback"?t.queueNotification:cb(t.timeout),p=()=>{d=!1,c&&(c=!1,h.forEach(b=>b()))};return Object.assign({},s,{subscribe(b){const E=()=>u&&b(),x=s.subscribe(E);return h.add(b),()=>{x(),h.delete(b)}},dispatch(b){try{return u=!b?.meta?.[nO],c=!u,c&&(d||(d=!0,m(p))),s.dispatch(b)}finally{u=!0}}})},aO=t=>function(i){const{autoBatch:s=!0}=i??{};let u=new Rv(t);return s&&u.push(rO(typeof s=="object"?s:void 0)),u};function iO(t){const r=tO(),{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(jh(i))h=bv(i);else throw new Error(xr(1));let m;typeof s=="function"?m=s(r):m=r();let p=eu;u&&(p=Jx({trace:!1,...typeof u=="object"&&u}));const b=zx(...m),E=aO(b);let x=typeof d=="function"?d(E):E();const U=p(...x);return yv(h,c,U)}function wv(t){const r={},i=[];let s;const u={addCase(c,d){const h=typeof c=="string"?c:c.type;if(!h)throw new Error(xr(28));if(h in r)throw new Error(xr(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 sO(t){return typeof t=="function"}function lO(t,r){let[i,s,u]=wv(r),c;if(sO(t))c=()=>ub(t());else{const h=ub(t);c=()=>h}function d(h=c(),m){let p=[i[m.type],...s.filter(({matcher:b})=>b(m)).map(({reducer:b})=>b)];return p.filter(b=>!!b).length===0&&(p=[u]),p.reduce((b,E)=>{if(E)if(Ga(b)){const U=E(b,m);return U===void 0?b:U}else{if(Cr(b))return xv(b,x=>E(x,m));{const x=E(b,m);if(x===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return x}}return b},h)}return d.getInitialState=c,d}var oO=Symbol.for("rtk-slice-createasyncthunk");function uO(t,r){return`${t}/${r}`}function cO({creators:t}={}){const r=t?.asyncThunk?.[oO];return function(s){const{name:u,reducerPath:c=u}=s;if(!u)throw new Error(xr(11));const d=(typeof s.reducers=="function"?s.reducers(dO()):s.reducers)||{},h=Object.keys(d),m={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(S,H){const A=typeof S=="string"?S:S.type;if(!A)throw new Error(xr(12));if(A in m.sliceCaseReducersByType)throw new Error(xr(13));return m.sliceCaseReducersByType[A]=H,p},addMatcher(S,H){return m.sliceMatchers.push({matcher:S,reducer:H}),p},exposeAction(S,H){return m.actionCreators[S]=H,p},exposeCaseReducer(S,H){return m.sliceCaseReducersByName[S]=H,p}};h.forEach(S=>{const H=d[S],A={reducerName:S,type:uO(u,S),createNotation:typeof s.reducers=="function"};mO(H)?gO(A,H,p,r):hO(A,H,p)});function b(){const[S={},H=[],A=void 0]=typeof s.extraReducers=="function"?wv(s.extraReducers):[s.extraReducers],Z={...S,...m.sliceCaseReducersByType};return lO(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 H)W.addMatcher(ae.matcher,ae.reducer);A&&W.addDefaultCase(A)})}const E=S=>S,x=new Map,U=new WeakMap;let R;function F(S,H){return R||(R=b()),R(S,H)}function z(){return R||(R=b()),R.getInitialState()}function _(S,H=!1){function A(W){let ae=W[S];return typeof ae>"u"&&H&&(ae=Bo(U,A,z)),ae}function Z(W=E){const ae=Bo(x,H,()=>new WeakMap);return Bo(ae,W,()=>{const ye={};for(const[Ee,se]of Object.entries(s.selectors??{}))ye[Ee]=fO(se,W,()=>Bo(U,W,z),H);return ye})}return{reducerPath:S,getSelectors:Z,get selectors(){return Z(A)},selectSlice:A}}const w={name:u,reducer:F,actions:m.actionCreators,caseReducers:m.sliceCaseReducersByName,getInitialState:z,..._(c),injectInto(S,{reducerPath:H,...A}={}){const Z=H??c;return S.inject({reducerPath:Z,reducer:F},A),{...w,..._(Z,!0)}}};return w}}function fO(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 zh=cO();function dO(){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 hO({type:t,reducerName:r,createNotation:i},s,u){let c,d;if("reducer"in s){if(i&&!pO(s))throw new Error(xr(17));c=s.reducer,d=s.prepare}else c=s;u.addCase(t,c).exposeCaseReducer(r,c).exposeAction(r,d?ob(t,d):ob(t))}function mO(t){return t._reducerDefinitionType==="asyncThunk"}function pO(t){return t._reducerDefinitionType==="reducerWithPrepare"}function gO({type:t,reducerName:r},i,s,u){if(!u)throw new Error(xr(18));const{payloadCreator:c,fulfilled:d,pending:h,rejected:m,settled:p,options:b}=i,E=u(t,c,b);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||Uo,pending:h||Uo,rejected:m||Uo,settled:p||Uo})}function Uo(){}function xr(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 yO={formValues:{}},Cv=zh({name:"start-screen",initialState:yO,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:bO,startAuthenticatedChat:vO,showStartScreen:_O,requestLogin:EO,loginWindowClosed:SO}=Cv.actions,TO=Cv.reducer,Nv="RESET_CHAT_STATE",Mv="TOGGLE_TRANSCRIPT_MAIL_OVERLAY",Dv="SHOW_CONVERSATION_RATING_OVERLAY",Lv="HIDE_CONVERSATION_RATING_OVERLAY",Bv=()=>({type:dv}),AO=()=>({type:Nv}),Uv=()=>({type:Mv}),au=(t,r=void 0)=>({type:Dv,payload:{opener:t,defaultRating:r}}),xO=()=>({type:Lv}),fb=(t,r,i)=>(s,u)=>{try{const c=u().connection.sessionId;if(!c)throw new Error("Session ID is not available");s({type:Bh,payload:{chunkId:i}}),db(t,c,r,i,!1,s),db(t,c,r,i,!0,s)}catch(c){console.error("Error loading source infos:",c),s({type:Lh})}},db=(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:cv,payload:m})}).catch(h=>{console.error("Error fetching source infos:",h),c({type:Lh,payload:{highlighted:u}})})},OO=()=>({type:Uh}),Gh="CONNECT",kh="CONNECTING",qh="CONNECTED",Fh="DISCONNECTED",Vh="RECONNECTED",Ph="RESTORE_SESSION_ID",yu="START",bu="CLEAR_SESSION_ID",RO=[Gh,kh,qh,Fh,Vh,Ph],wO=(t,r)=>({type:Gh,clientName:t,querystrings:r}),CO=t=>({type:Ph,sessionId:t}),NO=()=>({type:kh}),MO=()=>({type:qh}),DO=()=>({type:Fh}),LO=()=>({type:Vh}),jv=(t,r)=>(i,s)=>{const u=s().connection,{formValues:c,loginToken:d}=s().startScreen;let h=u.sessionId;h===void 0&&(h=Wo());let m=u.userId;if(m===void 0){const p=Lo.get("bubble-chat-user-id")||Lo.get("bubble-chat-userId")||Lo.get("bf-webclient-userId");m=p||Wo(),Lo.set("bubble-chat-user-id",m)}i({type:yu,payload:{sessionId:h,userId:m,clientName:t,loginToken:d,querystrings:{...r,...c}}})},vu=(t,r)=>(i,s)=>{const u=s().connection.sessionId||"";if(i(BO(u)),i(AO()),s().settings.enableStartScreen)i(_O());else return i(jv(t,r))},BO=t=>({type:bu,payload:{sessionId:t}}),Ze=()=>{const t=fu();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||{}),iu=(t=>(t.GUEST="GUEST",t.BOT="BOT",t.PERSON="PERSON",t))(iu||{});const UO="_container_q2uun_1",jO="_chatcontent_q2uun_6",HO="_accessabilityHidden_q2uun_12",fd={container:UO,chatcontent:jO,accessabilityHidden:HO},IO="_messageContainer_ofi0g_1",zO="_messages_ofi0g_12",hb={messageContainer:IO,messages:zO};function Ha(){return Ha=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},Ha.apply(this,arguments)}const GO=["children","options"],kO={footnoteReference:"7"},mb=["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"}),pb={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},qO=["style","script","pre"],FO=["src","href","data","formAction","srcDoc","action"],VO=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,PO=/mailto:/i,YO=/\n{2,}$/,gb=/^(\s*>[\s\S]*?)(?=\n\n|$)/,XO=/^ *> ?/gm,ZO=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,QO=/^ {2,}\n/,KO=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,yb=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,bb=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,$O=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,WO=/^(?:\n *)*\n/,JO=/\r\n?/g,eR=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,tR=/^\[\^([^\]]+)]/,nR=/\f/g,rR=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,aR=/^\s*?\[(x|\s)\]/,vb=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,_b=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Eb=/^([^\n]+)\n *(=|-){3,} *\n/,dd=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,iR=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Sb=/^<!--[\s\S]*?(?:-->)/,sR=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,hd=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,lR=/^\{.*\}$/,oR=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,uR=/^<([^ >]+@[^ >]+)>/,cR=/^<([^ >]+:\/[^ >]+)>/,fR=/-([a-z])?/gi,Tb=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,dR=/^[^\n]+(?: \n|\n{2,})/,hR=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,mR=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,pR=/^\[([^\]]*)\] ?\[([^\]]*)\]/,gR=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,yR=/\t/g,bR=/(^ *\||\| *$)/g,vR=/^ *:-+: *$/,_R=/^ *:-+ *$/,ER=/^ *-+: *$/,_u=t=>`(?=[\\s\\S]+?\\1${t?"\\1":""})`,Eu="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",SR=RegExp(`^([*_])\\1${_u(1)}${Eu}\\1\\1(?!\\1)`),TR=RegExp(`^([*_])${_u(0)}${Eu}\\1(?!\\1)`),AR=RegExp(`^(==)${_u(0)}${Eu}\\1`),xR=RegExp(`^(~~)${_u(0)}${Eu}\\1`),OR=/^(:[a-zA-Z0-9-_]+:)/,RR=/^\\([^0-9A-Za-z\s])/,wR=/\\([^0-9A-Za-z\s])/g,CR=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,NR=/^\n+/,MR=/^([ \t]*)/,DR=/(?:^|\n)( *)$/,Yh="(?:\\d+\\.)",Xh="(?:[*+-])";function Hv(t){return"( *)("+(t===1?Yh:Xh)+") +"}const Iv=Hv(1),zv=Hv(2);function Gv(t){return RegExp("^"+(t===1?Iv:zv))}const LR=Gv(1),BR=Gv(2);function kv(t){return RegExp("^"+(t===1?Iv:zv)+"[^\\n]*(?:\\n(?!\\1"+(t===1?Yh:Xh)+" )[^\\n]*)*(\\n|$)","gm")}const UR=kv(1),jR=kv(2);function qv(t){const r=t===1?Yh:Xh;return RegExp("^( *)("+r+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+r+" (?!"+r+" ))\\n*|\\s*\\n*$)")}const Fv=qv(1),Vv=qv(2);function Ab(t,r){const i=r===1,s=i?Fv:Vv,u=i?UR:jR,c=i?LR:BR;return{t:d=>c.test(d),o:Ci(function(d,h){const m=DR.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,b=d[0].replace(YO,`
|
|
94
|
-
`).match(u);let
|
|
93
|
+
*/var dy;function xA(){if(dy)return Be;dy=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,b=t?Symbol.for("react.forward_ref"):60112,_=t?Symbol.for("react.suspense"):60113,x=t?Symbol.for("react.suspense_list"):60120,U=t?Symbol.for("react.memo"):60115,R=t?Symbol.for("react.lazy"):60116,q=t?Symbol.for("react.block"):60121,z=t?Symbol.for("react.fundamental"):60117,E=t?Symbol.for("react.responder"):60118,w=t?Symbol.for("react.scope"):60119;function S(A){if(typeof A=="object"&&A!==null){var Z=A.$$typeof;switch(Z){case r:switch(A=A.type,A){case m:case p:case s:case c:case u:case _:return A;default:switch(A=A&&A.$$typeof,A){case h:case b:case R:case U:case d:return A;default:return Z}}case i:return Z}}}function H(A){return S(A)===p}return Be.AsyncMode=m,Be.ConcurrentMode=p,Be.ContextConsumer=h,Be.ContextProvider=d,Be.Element=r,Be.ForwardRef=b,Be.Fragment=s,Be.Lazy=R,Be.Memo=U,Be.Portal=i,Be.Profiler=c,Be.StrictMode=u,Be.Suspense=_,Be.isAsyncMode=function(A){return H(A)||S(A)===m},Be.isConcurrentMode=H,Be.isContextConsumer=function(A){return S(A)===h},Be.isContextProvider=function(A){return S(A)===d},Be.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===r},Be.isForwardRef=function(A){return S(A)===b},Be.isFragment=function(A){return S(A)===s},Be.isLazy=function(A){return S(A)===R},Be.isMemo=function(A){return S(A)===U},Be.isPortal=function(A){return S(A)===i},Be.isProfiler=function(A){return S(A)===c},Be.isStrictMode=function(A){return S(A)===u},Be.isSuspense=function(A){return S(A)===_},Be.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===s||A===p||A===c||A===u||A===_||A===x||typeof A=="object"&&A!==null&&(A.$$typeof===R||A.$$typeof===U||A.$$typeof===d||A.$$typeof===h||A.$$typeof===b||A.$$typeof===z||A.$$typeof===E||A.$$typeof===w||A.$$typeof===q)},Be.typeOf=S,Be}var hy;function OA(){return hy||(hy=1,Xf.exports=xA()),Xf.exports}var Zf,my;function RA(){if(my)return Zf;my=1;var t=OA(),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,b=Object.getOwnPropertyDescriptor,_=Object.getPrototypeOf,x=Object.prototype;function U(R,q,z){if(typeof q!="string"){if(x){var E=_(q);E&&E!==x&&U(R,E,z)}var w=m(q);p&&(w=w.concat(p(q)));for(var S=d(R),H=d(q),A=0;A<w.length;++A){var Z=w[A];if(!i[Z]&&!(z&&z[Z])&&!(H&&H[Z])&&!(S&&S[Z])){var W=b(q,Z);try{h(R,Z,W)}catch{}}}}return R}return Zf=U,Zf}RA();var Sh=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=B.createContext(null)):B.createContext(null);Sh.Consumer;var wA=Sh.Provider,CA=wA,NA=Sh;function du(){var t=B.useContext(NA);return K1(t),t}var Wd;(function(t){t.formatDate="FormattedDate",t.formatTime="FormattedTime",t.formatNumber="FormattedNumber",t.formatList="FormattedList",t.formatDisplayName="FormattedDisplayName"})(Wd||(Wd={}));var Jd;(function(t){t.formatDate="FormattedDateParts",t.formatTime="FormattedTimeParts",t.formatNumber="FormattedNumberParts",t.formatList="FormattedListParts"})(Jd||(Jd={}));function W1(t){var r=function(i){var s=du(),u=i.value,c=i.children,d=fu(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=Jd[t],r}function rl(t){var r=function(i){var s=du(),u=i.value,c=i.children,d=fu(i,["value","children"]),h=s[t](u,d);if(typeof c=="function")return c(h);var m=s.textComponent||B.Fragment;return B.createElement(m,null,h)};return r.displayName=Wd[t],r}function J1(t){return t&&Object.keys(t).reduce(function(r,i){var s=t[i];return r[i]=V1(s)?TA(s):s,r},{})}var py=function(t,r,i,s){for(var u=[],c=4;c<arguments.length;c++)u[c-4]=arguments[c];var d=J1(s),h=$d.apply(void 0,Wn([t,r,i,d],u,!1));return Array.isArray(h)?SA(h):h},gy=function(t,r){var i=t.defaultRichTextElements,s=fu(t,["defaultRichTextElements"]),u=J1(i),c=bA(ie(ie(ie({},$1),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:py.bind(null,d,c.formatters),$t:py.bind(null,d,c.formatters)})};function Qf(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 MA=(function(t){An(r,t);function r(){var i=t!==null&&t.apply(this,arguments)||this;return i.cache=X1(),i.state={cache:i.cache,intl:gy(Qf(i.props),i.cache),prevConfig:Qf(i.props)},i}return r.getDerivedStateFromProps=function(i,s){var u=s.prevConfig,c=s.cache,d=Qf(i);return AA(u,d)?null:{intl:gy(d,c),prevConfig:d}},r.prototype.render=function(){return K1(this.state.intl),B.createElement(CA,{value:this.state.intl},this.props.children)},r.displayName="IntlProvider",r.defaultProps=$1,r})(B.PureComponent);rl("formatDate");rl("formatTime");rl("formatNumber");rl("formatList");rl("formatDisplayName");W1("formatDate");W1("formatTime");const DA="_app_1rj0t_1",LA={app:DA},Nr=QS,st=WS,ev="%[a-f0-9]{2}",yy=new RegExp("("+ev+")|([^%]+?)","gi"),by=new RegExp("("+ev+")+","gi");function eh(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([],eh(i),eh(s))}function BA(t){try{return decodeURIComponent(t)}catch{let r=t.match(yy)||[];for(let i=1;i<r.length;i++)t=eh(r,i).join(""),r=t.match(yy)||[];return t}}function UA(t){const r={"%FE%FF":"��","%FF%FE":"��"};let i=by.exec(t);for(;i;){try{r[i[0]]=decodeURIComponent(i[0])}catch{const u=BA(i[0]);u!==i[0]&&(r[i[0]]=u)}i=by.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 jA(t){if(typeof t!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return decodeURIComponent(t)}catch{return UA(t)}}function HA(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 tv(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 IA=t=>t==null,zA=t=>encodeURIComponent(t).replaceAll(/[!'()*]/g,r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`),th=Symbol("encodeFragmentIdentifier");function GA(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,[ft(r,t),"[",u,"]"].join("")]:[...i,[ft(r,t),"[",ft(u,t),"]=",ft(s,t)].join("")]};case"bracket":return r=>(i,s)=>s===void 0||t.skipNull&&s===null||t.skipEmptyString&&s===""?i:s===null?[...i,[ft(r,t),"[]"].join("")]:[...i,[ft(r,t),"[]=",ft(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,[ft(r,t),":list="].join("")]:[...i,[ft(r,t),":list=",ft(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?[[ft(i,t),r,ft(u,t)].join("")]:[[s,ft(u,t)].join(t.arrayFormatSeparator)])}default:return r=>(i,s)=>s===void 0||t.skipNull&&s===null||t.skipEmptyString&&s===""?i:s===null?[...i,ft(r,t)]:[...i,[ft(r,t),"=",ft(s,t)].join("")]}}function kA(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&&Ar(s,t).includes(t.arrayFormatSeparator);s=d?Ar(s,t):s;const h=c||d?s.split(t.arrayFormatSeparator).map(m=>Ar(m,t)):s===null?s:Ar(s,t);u[i]=h};case"bracket-separator":return(i,s,u)=>{const c=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!c){u[i]=s&&Ar(s,t);return}const d=s===null?[]:Ar(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 nv(t){if(typeof t!="string"||t.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function ft(t,r){return r.encode?r.strict?zA(t):encodeURIComponent(t):t}function Ar(t,r){return r.decode?jA(t):t}function rv(t){return Array.isArray(t)?t.sort():typeof t=="object"?rv(Object.keys(t)).sort((r,i)=>Number(r)-Number(i)).map(r=>t[r]):t}function av(t){const r=t.indexOf("#");return r!==-1&&(t=t.slice(0,r)),t}function qA(t){let r="";const i=t.indexOf("#");return i!==-1&&(r=t.slice(i)),r}function vy(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 Th(t){t=av(t);const r=t.indexOf("?");return r===-1?"":t.slice(r+1)}function Ah(t,r){r={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...r},nv(r.arrayFormatSeparator);const i=kA(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]=tv(c,"=");d===void 0&&(d=c),h=h===void 0?null:["comma","separator","bracket-separator"].includes(r.arrayFormat)?h:Ar(h,r),i(Ar(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]=vy(h,r,m)}else typeof c=="object"&&c!==null&&r.types[u]==="string"?s[u]=Object.values(c).join(r.arrayFormatSeparator):s[u]=vy(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)?rv(d):d,u},Object.create(null))}function iv(t,r){if(!t)return"";r={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...r},nv(r.arrayFormatSeparator);const i=d=>r.skipNull&&IA(t[d])||r.skipEmptyString&&t[d]==="",s=GA(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?ft(d,r):Array.isArray(h)?h.length===0&&r.arrayFormat==="bracket-separator"?ft(d,r)+"[]":h.reduce(s(d),[]).join("&"):ft(d,r)+"="+ft(h,r)}).filter(d=>d.length>0).join("&")}function sv(t,r){r={decode:!0,...r};let[i,s]=tv(t,"#");return i===void 0&&(i=t),{url:i?.split("?")?.[0]??"",query:Ah(Th(t),r),...r&&r.parseFragmentIdentifier&&s?{fragmentIdentifier:Ar(s,r)}:{}}}function lv(t,r){r={encode:!0,strict:!0,[th]:!0,...r};const i=av(t.url).split("?")[0]||"",s=Th(t.url),u={...Ah(s,{sort:!1,...r}),...t.query};let c=iv(u,r);c&&=`?${c}`;let d=qA(t.url);if(typeof t.fragmentIdentifier=="string"){const h=new URL(i);h.hash=t.fragmentIdentifier,d=r[th]?h.hash:`#${t.fragmentIdentifier}`}return`${i}${c}${d}`}function ov(t,r,i){i={parseFragmentIdentifier:!0,[th]:!1,...i};const{url:s,query:u,fragmentIdentifier:c}=sv(t,i);return lv({url:s,query:HA(u,r),fragmentIdentifier:c},i)}function FA(t,r,i){const s=Array.isArray(r)?u=>!r.includes(u):(u,c)=>!r(u,c);return ov(t,s,i)}const hu=Object.freeze(Object.defineProperty({__proto__:null,exclude:FA,extract:Th,parse:Ah,parseUrl:sv,pick:ov,stringify:iv,stringifyUrl:lv},Symbol.toStringTag,{value:"Module"}));var Ln={},Bn={},Ie={},Eo={},pe={},_y;function fn(){return _y||(_y=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 Ey;function VA(){if(Ey)return Eo;Ey=1,Object.defineProperty(Eo,"__esModule",{value:!0});const t=fn(),r=()=>({type:t.DRAWER_CLOSE});return Eo.default=r,Eo}var So={},Sy;function PA(){if(Sy)return So;Sy=1,Object.defineProperty(So,"__esModule",{value:!0});const t=fn(),r=(i,s)=>({type:t.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:i,intent:s}});return So.default=r,So}var To={},Ty;function YA(){if(Ty)return To;Ty=1,Object.defineProperty(To,"__esModule",{value:!0});const t=fn(),r=i=>({type:t.GUEST_CONNECTED,payload:{sessionId:i}});return To.default=r,To}var Ao={},Ay;function XA(){if(Ay)return Ao;Ay=1,Object.defineProperty(Ao,"__esModule",{value:!0});const t=fn(),r=i=>({type:t.GUEST_DISCONNECTED,payload:{sessionId:i}});return Ao.default=r,Ao}var xo={},xy;function ZA(){if(xy)return xo;xy=1,Object.defineProperty(xo,"__esModule",{value:!0});const t=fn(),r=(i,s)=>({type:t.GUEST_LOCALE_CHANGED,payload:{previousLocale:i,newLocale:s}});return xo.default=r,xo}var Oo={},Oy;function QA(){if(Oy)return Oo;Oy=1,Object.defineProperty(Oo,"__esModule",{value:!0});const t=fn(),r=i=>({type:t.DRAWER_OPEN,payload:{parameters:{contentUrl:i}}});return Oo.default=r,Oo}var Ro={},$e={},Ry;function xh(){if(Ry)return $e;Ry=1,Object.defineProperty($e,"__esModule",{value:!0}),$e.getStringRepresentationFromMessage=$e.MessageTypeEnum=$e.AudioMessage=$e.FileMessage=$e.ImageMessage=$e.VideoMessage=$e.MarkdownMessage=$e.DetailMessage=$e.TextMessage=$e.Message=void 0;class t{type;sender;sources;quickReplies;constructor(_,x,U=[],R=[]){this.type=_,this.sender=x,this.sources=U,this.quickReplies=R}addQuickReply(_,x){this.quickReplies.push({label:_,payload:x})}}$e.Message=t;class r extends t{text;constructor(_,x,U=[],R=[]){super(m.TEXT,x,U,R),this.text=_}}$e.TextMessage=r;class i extends t{title;text;imageUrl;itemUrl;buttons;constructor(_,x){super(m.DETAIL,x),this.title=_,this.text="",this.imageUrl="",this.itemUrl="",this.buttons=[]}setImageUrl(_){this.imageUrl=_}setItemUrl(_){this.itemUrl=_}setText(_){this.text=_}addButton(_){this.buttons.push(_)}}$e.DetailMessage=i;class s extends t{markdown;constructor(_,x,U=[],R=[]){super(m.MARKDOWN,x,U,R),this.markdown=_}}$e.MarkdownMessage=s;class u extends t{url;constructor(_,x){super(m.VIDEO,x),this.url=_}}$e.VideoMessage=u;class c extends t{url;constructor(_,x){super(m.IMAGE,x),this.url=_}}$e.ImageMessage=c;class d extends t{url;constructor(_,x){super(m.FILE,x),this.url=_}}$e.FileMessage=d;class h extends t{url;constructor(_,x){super(m.AUDIO,x),this.url=_}}$e.AudioMessage=h;var m;(function(b){b.TEXT="TEXT",b.DETAIL="DETAIL",b.MARKDOWN="MARKDOWN",b.VIDEO="VIDEO",b.IMAGE="IMAGE",b.FILE="FILE",b.AUDIO="AUDIO"})(m||($e.MessageTypeEnum=m={}));const p=b=>{switch(b.type){case m.TEXT:return b.text;case m.DETAIL:return`${b.title}`;case m.MARKDOWN:return b.markdown;case m.VIDEO:return`Video Url: ${b.url}`;case m.IMAGE:return`Image Url: ${b.url}`;case m.FILE:return`File Url: ${b.url}`;case m.AUDIO:return`Audio Url: ${b.url}`;default:throw new Error("Unknown message type "+b.type)}};return $e.getStringRepresentationFromMessage=p,$e}var sn={},wy;function Oh(){if(wy)return sn;wy=1,Object.defineProperty(sn,"__esModule",{value:!0}),sn.UserType=sn.PersonUser=sn.GuestUser=sn.BotUser=sn.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}}sn.User=t;class r extends t{constructor(){super(u.BOT,null,"Chatbot","bot.svg")}}sn.BotUser=r;class i extends t{constructor(){super(u.GUEST,null,"Guest","visitor.svg")}}sn.GuestUser=i;class s extends t{constructor(d,h,m){super(u.PERSON,d,h,m)}}sn.PersonUser=s;var u;return(function(c){c.GUEST="GUEST",c.BOT="BOT",c.PERSON="PERSON"})(u||(sn.UserType=u={})),sn}var Cy;function KA(){if(Cy)return Ro;Cy=1,Object.defineProperty(Ro,"__esModule",{value:!0});const t=xh(),r=Oh(),i=fn(),s=u=>{const c=new t.TextMessage(u,new r.GuestUser);return{type:i.MESSAGE_FROM_GUEST,message:c}};return Ro.default=s,Ro}var wo={},Ny;function $A(){if(Ny)return wo;Ny=1,Object.defineProperty(wo,"__esModule",{value:!0});const t=xh(),r=Oh(),i=fn(),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 wo.default=s,wo}var Co={},My;function WA(){if(My)return Co;My=1,Object.defineProperty(Co,"__esModule",{value:!0});const t=fn(),r=i=>({type:t.NLU_REQUEST_EVENT,event:i});return Co.default=r,Co}var No={},Dy;function JA(){if(Dy)return No;Dy=1,Object.defineProperty(No,"__esModule",{value:!0});const t=fn(),r=()=>({type:t.RESTART_CHAT_REQUEST});return No.default=r,No}var Mo={},Ly;function ex(){if(Ly)return Mo;Ly=1,Object.defineProperty(Mo,"__esModule",{value:!0});const t=fn(),r=i=>({type:t.MESSAGE_TO_GUEST,message:i});return Mo.default=r,Mo}var Do={},By;function tx(){if(By)return Do;By=1,Object.defineProperty(Do,"__esModule",{value:!0});const t=fn(),r=(i,s,u=null,c=null)=>({type:t.TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:i,reaction:s,category:u,comment:c}});return Do.default=r,Do}var Uy;function nx(){if(Uy)return Ie;Uy=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(VA());Ie.closeDrawer=r.default;const i=t(PA());Ie.feedbackFromGuestResponse=i.default;const s=t(YA());Ie.guestConnected=s.default;const u=t(XA());Ie.guestDisconnected=u.default;const c=t(ZA());Ie.guestLocaleChanged=c.default;const d=t(QA());Ie.openDrawer=d.default;const h=t(KA());Ie.receiveTextMessageFromGuest=h.default;const m=t($A());Ie.receiveTextMessageWithoutAnalysisFromGuest=m.default;const p=t(WA());Ie.requestNLUEvent=p.default;const b=t(JA());Ie.restartChatRequest=b.default;const _=t(ex());Ie.sendMessageToGuest=_.default;const x=t(tx());return Ie.transcriptItemGuestReaction=x.default,Ie}var Kf={},jy;function rx(){return jy||(jy=1,Object.defineProperty(Kf,"__esModule",{value:!0})),Kf}var Hy;function ax(){return Hy||(Hy=1,(function(t){var r=Bn&&Bn.__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=Bn&&Bn.__setModuleDefault||(Object.create?(function(c,d){Object.defineProperty(c,"default",{enumerable:!0,value:d})}):function(c,d){c.default=d}),s=Bn&&Bn.__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=Bn&&Bn.__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(nx()),t.ActionTypes=s(fn()),u(rx(),t)})(Bn)),Bn}var ln={},$f={},Iy;function ix(){return Iy||(Iy=1,Object.defineProperty($f,"__esModule",{value:!0})),$f}var Us={},zy;function sx(){if(zy)return Us;zy=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 Gy;function lx(){if(Gy)return ln;Gy=1;var t=ln&&ln.__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=ln&&ln.__setModuleDefault||(Object.create?(function(u,c){Object.defineProperty(u,"default",{enumerable:!0,value:c})}):function(u,c){u.default=c}),i=ln&&ln.__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(ln,"__esModule",{value:!0}),ln.NullableCmsAdapter=ln.KnowledgeBase=void 0,ln.KnowledgeBase=i(ix());const s=sx();return ln.NullableCmsAdapter={knowledgeBase:new s.NullableKnowledgeBaseAdapter},ln}var Ma={},Wf={},ky;function ox(){return ky||(ky=1,Object.defineProperty(Wf,"__esModule",{value:!0})),Wf}var Jf={},qy;function ux(){return qy||(qy=1,Object.defineProperty(Jf,"__esModule",{value:!0})),Jf}var ed={},Fy;function cx(){return Fy||(Fy=1,Object.defineProperty(ed,"__esModule",{value:!0})),ed}var td={},Vy;function fx(){return Vy||(Vy=1,Object.defineProperty(td,"__esModule",{value:!0})),td}var js={},Py;function dx(){if(Py)return js;Py=1,Object.defineProperty(js,"__esModule",{value:!0}),js.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 js.checkMiddlewareCondition=t,js}var nd={},Yy;function hx(){return Yy||(Yy=1,Object.defineProperty(nd,"__esModule",{value:!0})),nd}var rd={},Xy;function mx(){return Xy||(Xy=1,Object.defineProperty(rd,"__esModule",{value:!0})),rd}var ad={},Zy;function px(){return Zy||(Zy=1,Object.defineProperty(ad,"__esModule",{value:!0})),ad}var Qy;function gx(){return Qy||(Qy=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(ox(),t),i(ux(),t),i(cx(),t),i(fx(),t),i(dx(),t),i(hx(),t),i(mx(),t),i(px(),t)})(Ma)),Ma}var Da={},Un={},Ky;function yx(){if(Ky)return Un;Ky=1,Object.defineProperty(Un,"__esModule",{value:!0}),Un.ButtonTypeEnum=Un.PostbackButton=Un.UrlButton=Un.Button=void 0;class t{title;type;constructor(c,d){this.title=c,this.type=d}}Un.Button=t;class r extends t{url;constructor(c,d){super(c,s.WEB_URL),this.url=d}}Un.UrlButton=r;class i extends t{payload;constructor(c,d){super(c,s.POSTBACK),this.payload=d}}Un.PostbackButton=i;var s;return(function(u){u.WEB_URL="web_url",u.POSTBACK="postback"})(s||(Un.ButtonTypeEnum=s={})),Un}var id={},$y;function bx(){return $y||($y=1,Object.defineProperty(id,"__esModule",{value:!0})),id}var Hs={},Wy;function vx(){if(Wy)return Hs;Wy=1,Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.SatisfactionEnum=void 0;var t;return(function(r){r.GOOD="GOOD",r.BAD="BAD"})(t||(Hs.SatisfactionEnum=t={})),Hs}var Jy;function eb(){return Jy||(Jy=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(yx(),t),i(bx(),t),i(vx(),t),i(xh(),t),i(Oh(),t)})(Da)),Da}var tb;function _x(){return tb||(tb=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.__exportStar||function(c,d){for(var h in c)h!=="default"&&!Object.prototype.hasOwnProperty.call(d,h)&&r(d,c,h)},u=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}})();Object.defineProperty(t,"__esModule",{value:!0}),t.Model=t.CMS=void 0,s(ax(),t),t.CMS=u(lx()),s(gx(),t),t.Model=u(eb()),s(eb(),t)})(Ln)),Ln}var Te=_x();const uv=t=>r=>(t.payload.type!==Te.ActionTypes.MESSAGE_FROM_GUEST&&r(Te.Actions.receiveTextMessageWithoutAnalysisFromGuest(t.label,t.payload)),r(t.payload)),cv=t=>(r,i)=>{const{quickReplies:s}=i().chat,u=s.find(c=>t.toLocaleLowerCase().indexOf(c.label.toLocaleLowerCase())>-1);return r(u?uv({...u,label:t}):JSON.parse(JSON.stringify(Te.Actions.receiveTextMessageFromGuest(t))))},Rh="MESSAGE_TO_PARENT_PAGE",wh="RESTORE_PREVIOUS_CHAT_MESSAGES",Ch="AUDIO_MESSAGE_FROM_USER",Nh="RECEIVE_SPEECH_TRANSCRIPTION",Mh="ENABLE_CONVERSATION_RATING",fv="LOAD_SOURCE_INFOS_RESPONSE",Dh="LOAD_SOURCE_INFOS_ERROR",Lh="LOAD_SOURCE_INFOS_REQUEST",Bh="CLOSE_SOURCE_INFOS",Ex="webclient.get.started",dv="webclient.window.expand",hv="webclient.window.close",mv="webclient.transcript.pdf.download",Sx=[Rh,wh,Ch,Nh,Mh,Lh,Bh],Tx=t=>({type:Ch,buffer:t}),Ax=t=>({type:Nh,transcription:t}),xx=t=>({type:Te.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:t}}}),Ox=()=>({type:mv}),Rx=({rating:t})=>({type:Mh,payload:{rating:t}}),wx=(t,r)=>({type:Te.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:t,feedback:r}}),pv=t=>Te.Actions.requestNLUEvent(t),Cx=t=>({type:wh,messages:t}),Nx=t=>{switch(t.type){case Te.ButtonTypeEnum.WEB_URL:return yv(t.url);case Te.ButtonTypeEnum.POSTBACK:return t.payload;default:throw new Error(`unknown button type ${t.type}`)}},gv=t=>yv(t),yv=t=>({type:Rh,message:{type:"webclient.change.url",url:t}});/*! js-cookie v3.0.5 | MIT */function Lo(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 Mx={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 nh(t,r){function i(u,c,d){if(!(typeof document>"u")){d=Lo({},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 b=decodeURIComponent(m[0]);if(d[b]=t.read(p,b),u===b)break}catch{}}return u?d[u]:d}}return Object.create({set:i,get:s,remove:function(u,c){i(u,"",Lo({},c,{expires:-1}))},withAttributes:function(u){return nh(this.converter,Lo({},this.attributes,u))},withConverter:function(u){return nh(Lo({},this.converter,u),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(t)}})}var Bo=nh(Mx,{path:"/"});const wt=[];for(let t=0;t<256;++t)wt.push((t+256).toString(16).slice(1));function Dx(t,r=0){return(wt[t[r+0]]+wt[t[r+1]]+wt[t[r+2]]+wt[t[r+3]]+"-"+wt[t[r+4]]+wt[t[r+5]]+"-"+wt[t[r+6]]+wt[t[r+7]]+"-"+wt[t[r+8]]+wt[t[r+9]]+"-"+wt[t[r+10]]+wt[t[r+11]]+wt[t[r+12]]+wt[t[r+13]]+wt[t[r+14]]+wt[t[r+15]]).toLowerCase()}let sd;const Lx=new Uint8Array(16);function Bx(){if(!sd){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");sd=crypto.getRandomValues.bind(crypto)}return sd(Lx)}const Ux=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),nb={randomUUID:Ux};function Jo(t,r,i){if(nb.randomUUID&&!t)return nb.randomUUID();t=t||{};const s=t.random??t.rng?.()??Bx();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,Dx(s)}const Uh=()=>jx(window.location.pathname),jx=t=>{const r=t.split("/"),i=t.endsWith("/");return r[r.length-(i?2:1)]};function Ct(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 Hx=typeof Symbol=="function"&&Symbol.observable||"@@observable",rb=Hx,ld=()=>Math.random().toString(36).substring(7).split("").join("."),Ix={INIT:`@@redux/INIT${ld()}`,REPLACE:`@@redux/REPLACE${ld()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ld()}`},eu=Ix;function jh(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 bv(t,r,i){if(typeof t!="function")throw new Error(Ct(2));if(typeof r=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(Ct(0));if(typeof r=="function"&&typeof i>"u"&&(i=r,r=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(Ct(1));return i(bv)(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((z,E)=>{d.set(E,z)}))}function b(){if(m)throw new Error(Ct(3));return u}function _(z){if(typeof z!="function")throw new Error(Ct(4));if(m)throw new Error(Ct(5));let E=!0;p();const w=h++;return d.set(w,z),function(){if(E){if(m)throw new Error(Ct(6));E=!1,p(),d.delete(w),c=null}}}function x(z){if(!jh(z))throw new Error(Ct(7));if(typeof z.type>"u")throw new Error(Ct(8));if(typeof z.type!="string")throw new Error(Ct(17));if(m)throw new Error(Ct(9));try{m=!0,u=s(u,z)}finally{m=!1}return(c=d).forEach(w=>{w()}),z}function U(z){if(typeof z!="function")throw new Error(Ct(10));s=z,x({type:eu.REPLACE})}function R(){const z=_;return{subscribe(E){if(typeof E!="object"||E===null)throw new Error(Ct(11));function w(){const H=E;H.next&&H.next(b())}return w(),{unsubscribe:z(w)}},[rb](){return this}}}return x({type:eu.INIT}),{dispatch:x,subscribe:_,getState:b,replaceReducer:U,[rb]:R}}function zx(t){Object.keys(t).forEach(r=>{const i=t[r];if(typeof i(void 0,{type:eu.INIT})>"u")throw new Error(Ct(12));if(typeof i(void 0,{type:eu.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ct(13))})}function vv(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{zx(i)}catch(c){u=c}return function(d={},h){if(u)throw u;let m=!1;const p={};for(let b=0;b<s.length;b++){const _=s[b],x=i[_],U=d[_],R=x(U,h);if(typeof R>"u")throw h&&h.type,new Error(Ct(14));p[_]=R,m=m||R!==U}return m=m||s.length!==Object.keys(d).length,m?p:d}}function tu(...t){return t.length===0?r=>r:t.length===1?t[0]:t.reduce((r,i)=>(...s)=>r(i(...s)))}function Gx(...t){return r=>(i,s)=>{const u=r(i,s);let c=()=>{throw new Error(Ct(15))};const d={getState:u.getState,dispatch:(m,...p)=>c(m,...p)},h=t.map(m=>m(d));return c=tu(...h)(u.dispatch),{...u,dispatch:c}}}function kx(t){return jh(t)&&"type"in t&&typeof t.type=="string"}var _v=Symbol.for("immer-nothing"),ab=Symbol.for("immer-draftable"),un=Symbol.for("immer-state");function zn(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[un]}function Cr(t){return t?Ev(t)||Array.isArray(t)||!!t[ab]||!!t.constructor?.[ab]||pu(t)||gu(t):!1}var qx=Object.prototype.constructor.toString();function Ev(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)===qx}function nu(t,r){mu(t)===0?Reflect.ownKeys(t).forEach(i=>{r(i,t[i],t)}):t.forEach((i,s)=>r(s,i,t))}function mu(t){const r=t[un];return r?r.type_:Array.isArray(t)?1:pu(t)?2:gu(t)?3:0}function rh(t,r){return mu(t)===2?t.has(r):Object.prototype.hasOwnProperty.call(t,r)}function Sv(t,r,i){const s=mu(t);s===2?t.set(r,i):s===3?t.add(i):t[r]=i}function Fx(t,r){return t===r?t!==0||1/t===1/r:t!==t&&r!==r}function pu(t){return t instanceof Map}function gu(t){return t instanceof Set}function ja(t){return t.copy_||t.base_}function ah(t,r){if(pu(t))return new Map(t);if(gu(t))return new Set(t);if(Array.isArray(t))return Array.prototype.slice.call(t);const i=Ev(t);if(r===!0||r==="class_only"&&!i){const s=Object.getOwnPropertyDescriptors(t);delete s[un];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 Hh(t,r=!1){return yu(t)||Ga(t)||!Cr(t)||(mu(t)>1&&(t.set=t.add=t.clear=t.delete=Vx),Object.freeze(t),r&&Object.entries(t).forEach(([i,s])=>Hh(s,!0))),t}function Vx(){zn(2)}function yu(t){return Object.isFrozen(t)}var Px={};function ka(t){const r=Px[t];return r||zn(0,t),r}var Ws;function Tv(){return Ws}function Yx(t,r){return{drafts_:[],parent_:t,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function ib(t,r){r&&(ka("Patches"),t.patches_=[],t.inversePatches_=[],t.patchListener_=r)}function ih(t){sh(t),t.drafts_.forEach(Xx),t.drafts_=null}function sh(t){t===Ws&&(Ws=t.parent_)}function sb(t){return Ws=Yx(Ws,t)}function Xx(t){const r=t[un];r.type_===0||r.type_===1?r.revoke_():r.revoked_=!0}function lb(t,r){r.unfinalizedDrafts_=r.drafts_.length;const i=r.drafts_[0];return t!==void 0&&t!==i?(i[un].modified_&&(ih(r),zn(4)),Cr(t)&&(t=ru(r,t),r.parent_||au(r,t)),r.patches_&&ka("Patches").generateReplacementPatches_(i[un].base_,t,r.patches_,r.inversePatches_)):t=ru(r,i,[]),ih(r),r.patches_&&r.patchListener_(r.patches_,r.inversePatches_),t!==_v?t:void 0}function ru(t,r,i){if(yu(r))return r;const s=r[un];if(!s)return nu(r,(u,c)=>ob(t,s,r,u,c,i)),r;if(s.scope_!==t)return r;if(!s.modified_)return au(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),nu(c,(h,m)=>ob(t,s,u,h,m,i,d)),au(t,u,!1),i&&t.patches_&&ka("Patches").generatePatches_(s,i,t.patches_,t.inversePatches_)}return s.copy_}function ob(t,r,i,s,u,c,d){if(Ga(u)){const h=c&&r&&r.type_!==3&&!rh(r.assigned_,s)?c.concat(s):void 0,m=ru(t,u,h);if(Sv(i,s,m),Ga(m))t.canAutoFreeze_=!1;else return}else d&&i.add(u);if(Cr(u)&&!yu(u)){if(!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1)return;ru(t,u),(!r||!r.scope_.parent_)&&typeof s!="symbol"&&Object.prototype.propertyIsEnumerable.call(i,s)&&au(t,u)}}function au(t,r,i=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Hh(r,i)}function Zx(t,r){const i=Array.isArray(t),s={type_:i?1:0,scope_:r?r.scope_:Tv(),modified_:!1,finalized_:!1,assigned_:{},parent_:r,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1};let u=s,c=Ih;i&&(u=[s],c=Js);const{revoke:d,proxy:h}=Proxy.revocable(u,c);return s.draft_=h,s.revoke_=d,h}var Ih={get(t,r){if(r===un)return t;const i=ja(t);if(!rh(i,r))return Qx(t,i,r);const s=i[r];return t.finalized_||!Cr(s)?s:s===od(t.base_,r)?(ud(t),t.copy_[r]=oh(s,t)):s},has(t,r){return r in ja(t)},ownKeys(t){return Reflect.ownKeys(ja(t))},set(t,r,i){const s=Av(ja(t),r);if(s?.set)return s.set.call(t.draft_,i),!0;if(!t.modified_){const u=od(ja(t),r),c=u?.[un];if(c&&c.base_===i)return t.copy_[r]=i,t.assigned_[r]=!1,!0;if(Fx(i,u)&&(i!==void 0||rh(t.base_,r)))return!0;ud(t),lh(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 od(t.base_,r)!==void 0||r in t.base_?(t.assigned_[r]=!1,ud(t),lh(t)):delete t.assigned_[r],t.copy_&&delete t.copy_[r],!0},getOwnPropertyDescriptor(t,r){const i=ja(t),s=Reflect.getOwnPropertyDescriptor(i,r);return s&&{writable:!0,configurable:t.type_!==1||r!=="length",enumerable:s.enumerable,value:i[r]}},defineProperty(){zn(11)},getPrototypeOf(t){return wi(t.base_)},setPrototypeOf(){zn(12)}},Js={};nu(Ih,(t,r)=>{Js[t]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}});Js.deleteProperty=function(t,r){return Js.set.call(this,t,r,void 0)};Js.set=function(t,r,i){return Ih.set.call(this,t[0],r,i,t[0])};function od(t,r){const i=t[un];return(i?ja(i):t)[r]}function Qx(t,r,i){const s=Av(r,i);return s?"value"in s?s.value:s.get?.call(t.draft_):void 0}function Av(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 lh(t){t.modified_||(t.modified_=!0,t.parent_&&lh(t.parent_))}function ud(t){t.copy_||(t.copy_=ah(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Kx=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,b=>i.call(this,b,...p))}}typeof i!="function"&&zn(6),s!==void 0&&typeof s!="function"&&zn(7);let u;if(Cr(r)){const c=sb(this),d=oh(r,void 0);let h=!0;try{u=i(d),h=!1}finally{h?ih(c):sh(c)}return ib(c,s),lb(u,c)}else if(!r||typeof r!="object"){if(u=i(r),u===void 0&&(u=r),u===_v&&(u=void 0),this.autoFreeze_&&Hh(u,!0),s){const c=[],d=[];ka("Patches").generateReplacementPatches_(r,u,c,d),s(c,d)}return u}else zn(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){Cr(t)||zn(8),Ga(t)&&(t=$x(t));const r=sb(this),i=oh(t,void 0);return i[un].isManual_=!0,sh(r),i}finishDraft(t,r){const i=t&&t[un];(!i||!i.isManual_)&&zn(9);const{scope_:s}=i;return ib(s,r),lb(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 oh(t,r){const i=pu(t)?ka("MapSet").proxyMap_(t,r):gu(t)?ka("MapSet").proxySet_(t,r):Zx(t,r);return(r?r.scope_:Tv()).drafts_.push(i),i}function $x(t){return Ga(t)||zn(10,t),xv(t)}function xv(t){if(!Cr(t)||yu(t))return t;const r=t[un];let i;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,i=ah(t,r.scope_.immer_.useStrictShallowCopy_)}else i=ah(t,!0);return nu(i,(s,u)=>{Sv(i,s,xv(u))}),r&&(r.finalized_=!1),i}var cn=new Kx,Ov=cn.produce;cn.produceWithPatches.bind(cn);cn.setAutoFreeze.bind(cn);cn.setUseStrictShallowCopy.bind(cn);cn.applyPatches.bind(cn);cn.createDraft.bind(cn);cn.finishDraft.bind(cn);function Rv(t){return({dispatch:i,getState:s})=>u=>c=>typeof c=="function"?c(i,s,t):u(c)}var Wx=Rv(),Jx=Rv,eO=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?tu:tu.apply(null,arguments)};function ub(t,r){function i(...s){if(r){let u=r(...s);if(!u)throw new Error(xr(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=>kx(s)&&s.type===t,i}var wv=class Zs extends Array{constructor(...r){super(...r),Object.setPrototypeOf(this,Zs.prototype)}static get[Symbol.species](){return Zs}concat(...r){return super.concat.apply(this,r)}prepend(...r){return r.length===1&&Array.isArray(r[0])?new Zs(...r[0].concat(this)):new Zs(...r.concat(this))}};function cb(t){return Cr(t)?Ov(t,()=>{}):t}function Uo(t,r,i){return t.has(r)?t.get(r):t.set(r,i(r)).get(r)}function tO(t){return typeof t=="boolean"}var nO=()=>function(r){const{thunk:i=!0,immutableCheck:s=!0,serializableCheck:u=!0,actionCreatorCheck:c=!0}=r??{};let d=new wv;return i&&(tO(i)?d.push(Wx):d.push(Jx(i.extraArgument))),d},rO="RTK_autoBatch",fb=t=>r=>{setTimeout(r,t)},aO=(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:fb(10):t.type==="callback"?t.queueNotification:fb(t.timeout),p=()=>{d=!1,c&&(c=!1,h.forEach(b=>b()))};return Object.assign({},s,{subscribe(b){const _=()=>u&&b(),x=s.subscribe(_);return h.add(b),()=>{x(),h.delete(b)}},dispatch(b){try{return u=!b?.meta?.[rO],c=!u,c&&(d||(d=!0,m(p))),s.dispatch(b)}finally{u=!0}}})},iO=t=>function(i){const{autoBatch:s=!0}=i??{};let u=new wv(t);return s&&u.push(aO(typeof s=="object"?s:void 0)),u};function sO(t){const r=nO(),{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(jh(i))h=vv(i);else throw new Error(xr(1));let m;typeof s=="function"?m=s(r):m=r();let p=tu;u&&(p=eO({trace:!1,...typeof u=="object"&&u}));const b=Gx(...m),_=iO(b);let x=typeof d=="function"?d(_):_();const U=p(...x);return bv(h,c,U)}function Cv(t){const r={},i=[];let s;const u={addCase(c,d){const h=typeof c=="string"?c:c.type;if(!h)throw new Error(xr(28));if(h in r)throw new Error(xr(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 lO(t){return typeof t=="function"}function oO(t,r){let[i,s,u]=Cv(r),c;if(lO(t))c=()=>cb(t());else{const h=cb(t);c=()=>h}function d(h=c(),m){let p=[i[m.type],...s.filter(({matcher:b})=>b(m)).map(({reducer:b})=>b)];return p.filter(b=>!!b).length===0&&(p=[u]),p.reduce((b,_)=>{if(_)if(Ga(b)){const U=_(b,m);return U===void 0?b:U}else{if(Cr(b))return Ov(b,x=>_(x,m));{const x=_(b,m);if(x===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return x}}return b},h)}return d.getInitialState=c,d}var uO=Symbol.for("rtk-slice-createasyncthunk");function cO(t,r){return`${t}/${r}`}function fO({creators:t}={}){const r=t?.asyncThunk?.[uO];return function(s){const{name:u,reducerPath:c=u}=s;if(!u)throw new Error(xr(11));const d=(typeof s.reducers=="function"?s.reducers(hO()):s.reducers)||{},h=Object.keys(d),m={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(S,H){const A=typeof S=="string"?S:S.type;if(!A)throw new Error(xr(12));if(A in m.sliceCaseReducersByType)throw new Error(xr(13));return m.sliceCaseReducersByType[A]=H,p},addMatcher(S,H){return m.sliceMatchers.push({matcher:S,reducer:H}),p},exposeAction(S,H){return m.actionCreators[S]=H,p},exposeCaseReducer(S,H){return m.sliceCaseReducersByName[S]=H,p}};h.forEach(S=>{const H=d[S],A={reducerName:S,type:cO(u,S),createNotation:typeof s.reducers=="function"};pO(H)?yO(A,H,p,r):mO(A,H,p)});function b(){const[S={},H=[],A=void 0]=typeof s.extraReducers=="function"?Cv(s.extraReducers):[s.extraReducers],Z={...S,...m.sliceCaseReducersByType};return oO(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 H)W.addMatcher(ae.matcher,ae.reducer);A&&W.addDefaultCase(A)})}const _=S=>S,x=new Map,U=new WeakMap;let R;function q(S,H){return R||(R=b()),R(S,H)}function z(){return R||(R=b()),R.getInitialState()}function E(S,H=!1){function A(W){let ae=W[S];return typeof ae>"u"&&H&&(ae=Uo(U,A,z)),ae}function Z(W=_){const ae=Uo(x,H,()=>new WeakMap);return Uo(ae,W,()=>{const ye={};for(const[Ee,se]of Object.entries(s.selectors??{}))ye[Ee]=dO(se,W,()=>Uo(U,W,z),H);return ye})}return{reducerPath:S,getSelectors:Z,get selectors(){return Z(A)},selectSlice:A}}const w={name:u,reducer:q,actions:m.actionCreators,caseReducers:m.sliceCaseReducersByName,getInitialState:z,...E(c),injectInto(S,{reducerPath:H,...A}={}){const Z=H??c;return S.inject({reducerPath:Z,reducer:q},A),{...w,...E(Z,!0)}}};return w}}function dO(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 zh=fO();function hO(){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 mO({type:t,reducerName:r,createNotation:i},s,u){let c,d;if("reducer"in s){if(i&&!gO(s))throw new Error(xr(17));c=s.reducer,d=s.prepare}else c=s;u.addCase(t,c).exposeCaseReducer(r,c).exposeAction(r,d?ub(t,d):ub(t))}function pO(t){return t._reducerDefinitionType==="asyncThunk"}function gO(t){return t._reducerDefinitionType==="reducerWithPrepare"}function yO({type:t,reducerName:r},i,s,u){if(!u)throw new Error(xr(18));const{payloadCreator:c,fulfilled:d,pending:h,rejected:m,settled:p,options:b}=i,_=u(t,c,b);s.exposeAction(r,_),d&&s.addCase(_.fulfilled,d),h&&s.addCase(_.pending,h),m&&s.addCase(_.rejected,m),p&&s.addMatcher(_.settled,p),s.exposeCaseReducer(r,{fulfilled:d||jo,pending:h||jo,rejected:m||jo,settled:p||jo})}function jo(){}function xr(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 bO={formValues:{}},Nv=zh({name:"start-screen",initialState:bO,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:vO,startAuthenticatedChat:_O,showStartScreen:EO,requestLogin:SO,loginWindowClosed:TO}=Nv.actions,AO=Nv.reducer,Mv="RESET_CHAT_STATE",Dv="TOGGLE_TRANSCRIPT_MAIL_OVERLAY",Lv="SHOW_CONVERSATION_RATING_OVERLAY",Bv="HIDE_CONVERSATION_RATING_OVERLAY",Uv=()=>({type:hv}),xO=()=>({type:Mv}),jv=()=>({type:Dv}),iu=(t,r=void 0)=>({type:Lv,payload:{opener:t,defaultRating:r}}),OO=()=>({type:Bv}),db=(t,r,i)=>(s,u)=>{try{const c=u().connection.sessionId;if(!c)throw new Error("Session ID is not available");s({type:Lh,payload:{chunkId:i}}),hb(t,c,r,i,!1,s),hb(t,c,r,i,!0,s)}catch(c){console.error("Error loading source infos:",c),s({type:Dh})}},hb=(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:fv,payload:m})}).catch(h=>{console.error("Error fetching source infos:",h),c({type:Dh,payload:{highlighted:u}})})},RO=()=>({type:Bh}),Gh="CONNECT",kh="CONNECTING",qh="CONNECTED",Fh="DISCONNECTED",Vh="RECONNECTED",Ph="RESTORE_SESSION_ID",bu="START",vu="CLEAR_SESSION_ID",wO=[Gh,kh,qh,Fh,Vh,Ph],CO=(t,r)=>({type:Gh,clientName:t,querystrings:r}),NO=t=>({type:Ph,sessionId:t}),MO=()=>({type:kh}),DO=()=>({type:qh}),LO=()=>({type:Fh}),BO=()=>({type:Vh}),Hv=(t,r)=>(i,s)=>{const u=s().connection,{formValues:c,loginToken:d}=s().startScreen;let h=u.sessionId;h===void 0&&(h=Jo());let m=u.userId;if(m===void 0){const p=Bo.get("bubble-chat-user-id")||Bo.get("bubble-chat-userId")||Bo.get("bf-webclient-userId");m=p||Jo(),Bo.set("bubble-chat-user-id",m)}i({type:bu,payload:{sessionId:h,userId:m,clientName:t,loginToken:d,querystrings:{...r,...c}}})},al=()=>(t,r)=>{const i=r().connection.sessionId||"";if(t(UO(i)),t(xO()),r().settings.enableStartScreen)t(EO());else{const s=Uh(),u=hu.parse(window.location.search);return t(Hv(s,u))}},UO=t=>({type:vu,payload:{sessionId:t}}),Ze=()=>{const t=du();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||{}),su=(t=>(t.GUEST="GUEST",t.BOT="BOT",t.PERSON="PERSON",t))(su||{});const jO="_container_q2uun_1",HO="_chatcontent_q2uun_6",IO="_accessabilityHidden_q2uun_12",cd={container:jO,chatcontent:HO,accessabilityHidden:IO},zO="_messageContainer_ofi0g_1",GO="_messages_ofi0g_12",mb={messageContainer:zO,messages:GO};function Ha(){return Ha=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},Ha.apply(this,arguments)}const kO=["children","options"],qO={footnoteReference:"7"},pb=["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"}),gb={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},FO=["style","script","pre"],VO=["src","href","data","formAction","srcDoc","action"],PO=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,YO=/mailto:/i,XO=/\n{2,}$/,yb=/^(\s*>[\s\S]*?)(?=\n\n|$)/,ZO=/^ *> ?/gm,QO=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,KO=/^ {2,}\n/,$O=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,bb=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,vb=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,WO=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,JO=/^(?:\n *)*\n/,eR=/\r\n?/g,tR=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,nR=/^\[\^([^\]]+)]/,rR=/\f/g,aR=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,iR=/^\s*?\[(x|\s)\]/,_b=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Eb=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Sb=/^([^\n]+)\n *(=|-){3,} *\n/,fd=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,sR=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Tb=/^<!--[\s\S]*?(?:-->)/,lR=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,dd=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,oR=/^\{.*\}$/,uR=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,cR=/^<([^ >]+@[^ >]+)>/,fR=/^<([^ >]+:\/[^ >]+)>/,dR=/-([a-z])?/gi,Ab=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,hR=/^[^\n]+(?: \n|\n{2,})/,mR=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,pR=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,gR=/^\[([^\]]*)\] ?\[([^\]]*)\]/,yR=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,bR=/\t/g,vR=/(^ *\||\| *$)/g,_R=/^ *:-+: *$/,ER=/^ *:-+ *$/,SR=/^ *-+: *$/,_u=t=>`(?=[\\s\\S]+?\\1${t?"\\1":""})`,Eu="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",TR=RegExp(`^([*_])\\1${_u(1)}${Eu}\\1\\1(?!\\1)`),AR=RegExp(`^([*_])${_u(0)}${Eu}\\1(?!\\1)`),xR=RegExp(`^(==)${_u(0)}${Eu}\\1`),OR=RegExp(`^(~~)${_u(0)}${Eu}\\1`),RR=/^(:[a-zA-Z0-9-_]+:)/,wR=/^\\([^0-9A-Za-z\s])/,CR=/\\([^0-9A-Za-z\s])/g,NR=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,MR=/^\n+/,DR=/^([ \t]*)/,LR=/(?:^|\n)( *)$/,Yh="(?:\\d+\\.)",Xh="(?:[*+-])";function Iv(t){return"( *)("+(t===1?Yh:Xh)+") +"}const zv=Iv(1),Gv=Iv(2);function kv(t){return RegExp("^"+(t===1?zv:Gv))}const BR=kv(1),UR=kv(2);function qv(t){return RegExp("^"+(t===1?zv:Gv)+"[^\\n]*(?:\\n(?!\\1"+(t===1?Yh:Xh)+" )[^\\n]*)*(\\n|$)","gm")}const jR=qv(1),HR=qv(2);function Fv(t){const r=t===1?Yh:Xh;return RegExp("^( *)("+r+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+r+" (?!"+r+" ))\\n*|\\s*\\n*$)")}const Vv=Fv(1),Pv=Fv(2);function xb(t,r){const i=r===1,s=i?Vv:Pv,u=i?jR:HR,c=i?BR:UR;return{t:d=>c.test(d),o:Ci(function(d,h){const m=LR.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,b=d[0].replace(XO,`
|
|
94
|
+
`).match(u);let _=!1;return{items:b.map(function(x,U){const R=c.exec(x)[0].length,q=RegExp("^ {1,"+R+"}","gm"),z=x.replace(q,"").replace(c,""),E=U===b.length-1,w=z.indexOf(`
|
|
95
95
|
|
|
96
|
-
`)!==-1||_
|
|
96
|
+
`)!==-1||E&&_;_=w;const S=m.inline,H=m.list;let A;m.list=!0,w?(m.inline=!1,A=$s(z)+`
|
|
97
97
|
|
|
98
|
-
`):(m.inline=!0,A=$s(z));const Z=h(A,m);return m.inline=S,m.list=H,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,b){return t("li",{key:b},h(p,m))}))}}const
|
|
99
|
-
`).map(function(p){return
|
|
98
|
+
`):(m.inline=!0,A=$s(z));const Z=h(A,m);return m.inline=S,m.list=H,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,b){return t("li",{key:b},h(p,m))}))}}const IR=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),zR=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function $s(t){let r=t.length;for(;r>0&&t[r-1]<=" ";)r--;return t.slice(0,r)}function Po(t,r){return t.startsWith(r)}function GR(t,r,i){if(Array.isArray(i)){for(let s=0;s<i.length;s++)if(Po(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 kR(t){return SR.test(t)?"right":_R.test(t)?"center":ER.test(t)?"left":null}function Ob(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,b)=>{m.trim()==="|"&&(h(),s)?p!==0&&p!==b.length-1&&c.push([]):d+=m}),h(),i.inTable=u,c}function qR(t,r,i){i.inline=!0;const s=t[2]?t[2].replace(vR,"").split("|").map(kR):[],u=t[3]?(function(d,h,m){return d.trim().split(`
|
|
99
|
+
`).map(function(p){return Ob(p,h,m,!0)})})(t[3],r,i):[],c=Ob(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 Rb(t,r){return t.align[r]==null?{}:{textAlign:t.align[r]}}function Ci(t){return t.inline=1,t}function aa(t){return Ci(function(r,i){return i.inline?t.exec(r):null})}function ia(t){return Ci(function(r,i){return i.inline||i.simple?t.exec(r):null})}function Sr(t){return function(r,i){return i.inline||i.simple?null:t.exec(r)}}function Ho(t){return Ci(function(r){return t.exec(r)})}const FR=/(javascript|vbscript|data(?!:image)):/i;function VR(t){try{const r=decodeURIComponent(t).replace(/[^A-Za-z0-9/:]/g,"");if(FR.test(r))return null}catch{return null}return t}function Qn(t){return t&&t.replace(CR,"$1")}function Yo(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 PR(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 YR(t,r,i){const s=i.inline||!1;i.inline=!1;const u=t(r,i);return i.inline=s,u}const hd=(t,r,i)=>({children:Yo(r,t[2],i)});function md(){return{}}function pd(){return null}function XR(...t){return t.filter(Boolean).join(" ")}function gd(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 ZR(t="",r={}){r.overrides=r.overrides||{},r.namedCodesToUnicode=r.namedCodesToUnicode?Ha({},gb,r.namedCodesToUnicode):gb;const i=r.slugify||Is,s=r.sanitizer||VR,u=r.createElement||B.createElement,c=[yb,bb,vb,r.enforceAtxHeadings?Eb:_b,Sb,Ab,Vv,Pv],d=[...c,hR,fd,Tb,dd];function h(E,w,...S){const H=gd(r.overrides,E+".props",{});return u((function(A,Z){const W=gd(Z,A);return W?typeof W=="function"||typeof W=="object"&&"render"in W?W:gd(Z,A+".component",A):A})(E,r.overrides),Ha({},w,H,{className:XR(w?.className,H.className)||void 0}),...S)}function m(E){E=E.replace(aR,"");let w=!1;r.forceInline?w=!0:r.forceBlock||(w=yR.test(E)===!1);const S=R(U(w?E:$s(E).replace(MR,"")+`
|
|
100
100
|
|
|
101
|
-
`,{inline:w}));for(;typeof S[S.length-1]=="string"&&!S[S.length-1].trim();)S.pop();if(r.wrapper===null)return S;const H=r.wrapper||(w?"span":"div");let A;if(S.length>1||r.forceWrapper)A=S;else{if(S.length===1)return A=S[0],typeof A=="string"?h("span",{key:"outer"},A):A;A=null}return u(H,{key:"outer"},A)}function p(
|
|
102
|
-
`},21:{o:Ci(function(
|
|
101
|
+
`,{inline:w}));for(;typeof S[S.length-1]=="string"&&!S[S.length-1].trim();)S.pop();if(r.wrapper===null)return S;const H=r.wrapper||(w?"span":"div");let A;if(S.length>1||r.forceWrapper)A=S;else{if(S.length===1)return A=S[0],typeof A=="string"?h("span",{key:"outer"},A):A;A=null}return u(H,{key:"outer"},A)}function p(E,w){if(!w||!w.trim())return null;const S=w.match(PO);return S?S.reduce(function(H,A){const Z=A.indexOf("=");if(Z!==-1){const W=(function(se){return se.indexOf("-")!==-1&&se.match(lR)===null&&(se=se.replace(dR,function(me,ce){return ce.toUpperCase()})),se})(A.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})(A.slice(Z+1).trim()),ye=pb[W]||W;if(ye==="ref")return H;const Ee=H[ye]=(function(se,me,ce,Pe){return me==="style"?(function(ve){const G=[];let K="",ee=!1,Ae=!1,O="";if(!ve)return G;for(let $=0;$<ve.length;$++){const Y=ve[$];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(),We=te.slice(re+1).trim();G.push([ue,We])}}K=""}}const k=K.trim();if(k){const $=k.indexOf(":");if($>0){const Y=k.slice(0,$).trim(),te=k.slice($+1).trim();G.push([Y,te])}}return G})(ce).reduce(function(ve,[G,K]){return ve[G.replace(/(-[a-z])/g,ee=>ee[1].toUpperCase())]=Pe(K,se,G),ve},{}):VO.indexOf(me)!==-1?Pe(Qn(ce),se,me):(ce.match(oR)&&(ce=Qn(ce.slice(1,ce.length-1))),ce==="true"||ce!=="false"&&ce)})(E,W,ae,s);typeof Ee=="string"&&(fd.test(Ee)||dd.test(Ee))&&(H[ye]=m(Ee.trim()))}else A!=="style"&&(H[pb[A]||A]=!0);return H},{}):null}const b=[],_={},x={0:{t:[">"],o:Sr(yb),i:1,u(E,w,S){const[,H,A]=E[0].replace(ZO,"").match(QO);return{alert:H,children:w(A,S)}},l(E,w,S){const H={key:S.key};return E.alert&&(H.className="markdown-alert-"+i(E.alert.toLowerCase(),Is),E.children.unshift({attrs:{},children:[{type:"27",text:E.alert}],noInnerParse:!0,type:"11",tag:"header"})),h("blockquote",H,w(E.children,S))}},1:{o:Ho(KO),i:1,u:md,l:(E,w,S)=>h("br",{key:S.key})},2:{t:E=>{const w=E[0];return w==="-"||w==="*"||w==="_"},o:Sr($O),i:1,u:md,l:(E,w,S)=>h("hr",{key:S.key})},3:{t:[" "],o:Sr(vb),i:0,u:E=>({lang:void 0,text:Qn($s(E[0].replace(/^ {4}/gm,"")))}),l:(E,w,S)=>h("pre",{key:S.key},h("code",Ha({},E.attrs,{className:E.lang?"lang-"+E.lang:""}),E.text))},4:{t:["```","~~~"],o:Sr(bb),i:0,u:E=>({attrs:p("code",E[3]||""),lang:E[2]||void 0,text:E[4],type:"3"})},5:{t:["`"],o:ia(WO),i:3,u:E=>({text:Qn(E[2])}),l:(E,w,S)=>h("code",{key:S.key},E.text)},6:{t:["[^"],o:Sr(tR),i:0,u:E=>(b.push({footnote:E[2],identifier:E[1]}),{}),l:pd},7:{t:["[^"],o:aa(nR),i:1,u:E=>({target:"#"+i(E[1],Is),text:E[1]}),l:(E,w,S)=>h("a",{key:S.key,href:s(E.target,"a","href")},h("sup",{key:S.key},E.text))},8:{t:["[ ]","[x]"],o:aa(iR),i:1,u:E=>({completed:E[1].toLowerCase()==="x"}),l:(E,w,S)=>h("input",{checked:E.completed,key:S.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:Sr(r.enforceAtxHeadings?Eb:_b),i:1,u:(E,w,S)=>({children:Yo(w,E[2],S),id:i(E[2],Is),level:E[1].length}),l:(E,w,S)=>h("h"+E.level,{id:E.id,key:S.key},w(E.children,S))},10:{o:Sr(Sb),i:0,u:(E,w,S)=>({children:Yo(w,E[1],S),level:E[2]==="="?1:2,type:"9"})},11:{t:["<"],o:Ho(fd),i:1,u(E,w,S){const[,H]=E[3].match(DR),A=RegExp("^"+H,"gm"),Z=E[3].replace(A,""),W=(ae=Z,d.some(ce=>ce.test(ae))?YR:Yo);var ae;const ye=E[1].toLowerCase(),Ee=FO.indexOf(ye)!==-1,se=(Ee?ye:E[1]).trim(),me={attrs:p(se,E[2]),noInnerParse:Ee,tag:se};if(S.inAnchor=S.inAnchor||ye==="a",Ee)me.text=E[3];else{const ce=S.inHTML;S.inHTML=!0,me.children=W(w,Z,S),S.inHTML=ce}return S.inAnchor=!1,me},l:(E,w,S)=>h(E.tag,Ha({key:S.key},E.attrs),E.text||(E.children?w(E.children,S):""))},13:{t:["<"],o:Ho(dd),i:1,u(E){const w=E[1].trim();return{attrs:p(w,E[2]||""),tag:w}},l:(E,w,S)=>h(E.tag,Ha({},E.attrs,{key:S.key}))},12:{t:["<!--"],o:Ho(Tb),i:1,u:()=>({}),l:pd},14:{t:["!["],o:ia(zR),i:1,u:E=>({alt:Qn(E[1]),target:Qn(E[2]),title:Qn(E[3])}),l:(E,w,S)=>h("img",{key:S.key,alt:E.alt||void 0,title:E.title||void 0,src:s(E.target,"img","src")})},15:{t:["["],o:aa(IR),i:3,u:(E,w,S)=>({children:PR(w,E[1],S),target:Qn(E[2]),title:Qn(E[3])}),l:(E,w,S)=>h("a",{key:S.key,href:s(E.target,"a","href"),title:E.title},w(E.children,S))},16:{t:["<"],o:aa(fR),i:0,u:E=>({children:[{text:E[1],type:"27"}],target:E[1],type:"15"})},17:{t:(E,w)=>!w.inAnchor&&!r.disableAutoLink&&(Po(E,"http://")||Po(E,"https://")),o:aa(uR),i:0,u:E=>({children:[{text:E[1],type:"27"}],target:E[1],title:void 0,type:"15"})},18:{t:["<"],o:aa(cR),i:0,u(E){let w=E[1],S=E[1];return YO.test(S)||(S="mailto:"+S),{children:[{text:w.replace("mailto:",""),type:"27"}],target:S,type:"15"}}},20:xb(h,1),33:xb(h,2),19:{o:Sr(JO),i:3,u:md,l:()=>`
|
|
102
|
+
`},21:{o:Ci(function(E,w){if(w.inline||w.simple||w.inHTML&&E.indexOf(`
|
|
103
103
|
|
|
104
104
|
`)===-1&&w.prevCapture.indexOf(`
|
|
105
105
|
|
|
106
|
-
`)===-1)return null;let S="";
|
|
106
|
+
`)===-1)return null;let S="";E.split(`
|
|
107
107
|
`).every(A=>(A+=`
|
|
108
|
-
`,!c.some(Z=>Z.test(A))&&(S+=A,!!A.trim())));const H=$s(S);return H===""?null:[S,,H]}),i:3,u:
|
|
109
|
-
`).replace(nR,"").replace(yR," ")})(H),A)}})(x),R=(F=(function(_,w){return function(S,H,A){const Z=_[S.type].l;return w?w(()=>Z(S,H,A),S,H,A):Z(S,H,A)}})(x,r.renderRule),function _(w,S={}){if(Array.isArray(w)){const H=S.key,A=[];let Z=!1;for(let W=0;W<w.length;W++){S.key=W;const ae=_(w[W],S),ye=typeof ae=="string";ye&&Z?A[A.length-1]+=ae:ae!==null&&A.push(ae),Z=ye}return S.key=H,A}return F(w,_,S)});var F;const z=m(t);return b.length?h("div",null,z,h("footer",{key:"footer"},b.map(function(_){return h("div",{id:i(_.identifier,Is),key:_.identifier},_.identifier,R(U(_.footnote,{inline:!0})))}))):z}const Or=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,GO);return B.cloneElement(XR(r,i),s)},ZR="_generalConditionsContainer_55hjg_1",QR="_generalConditions_55hjg_1",KR="_generalConditionsHeader_55hjg_15",$R="_generalConditionsBody_55hjg_26",WR="_generalConditionsAccept_55hjg_35",zs={generalConditionsContainer:ZR,generalConditions:QR,generalConditionsHeader:KR,generalConditionsBody:$R,generalConditionsAccept:WR},JR=()=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:y.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"})}),ew=()=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:y.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"})}),tw="general-conditions.header",nw="general-conditions.body",Rb="general-conditions.accept-conditions-note",rw=()=>{const t=Ze(),[r,i]=B.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(tw),d=t(Rb);return y.jsxs("div",{className:Q(zs.generalConditionsContainer,"chat__generalConditions"),children:[!!c?.length&&y.jsxs("div",{className:zs.generalConditions,children:[y.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:[y.jsx(Or,{children:c}),r?y.jsx(ew,{}):y.jsx(JR,{})]}),y.jsx("div",{className:Q(zs.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:r&&y.jsx(Or,{children:t(nw)||""})})]}),!!d?.length&&y.jsx("div",{className:Q(zs.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:y.jsx(Or,{children:t(Rb)||""})})]})},aw="_messageContainer_1rxi5_1",iw="_message_1rxi5_1",sw="_messageBot_1rxi5_14",lw="_messageBotLast_1rxi5_45",ow="_avatar_1rxi5_45",uw="_messageBotFirst_1rxi5_54",cw="_messageBotAnimated_1rxi5_67",fw="_messageGuest_1rxi5_78",dw="_messageGuestFirst_1rxi5_84",hw="_messageGuestLast_1rxi5_90",mw="_botAvatar_1rxi5_104",pw="_agentAvatar_1rxi5_108",gw="_bubble_1rxi5_112",yw="_bubbleContent_1rxi5_118",bw="_bubbleLeft_1rxi5_132",vw="_leftText_1rxi5_143",_w="_bubbleRight_1rxi5_150",Ew="_rightText_1rxi5_160",Sw="_sourceInfoReference_1rxi5_192",Tw="_sourceInfoReferenceActive_1rxi5_204",ge={messageContainer:aw,message:iw,messageBot:sw,messageBotLast:lw,avatar:ow,messageBotFirst:uw,messageBotAnimated:cw,messageGuest:fw,messageGuestFirst:dw,messageGuestLast:hw,botAvatar:mw,agentAvatar:pw,bubble:gw,bubbleContent:yw,bubbleLeft:bw,leftText:vw,bubbleRight:_w,rightText:Ew,sourceInfoReference:Sw,sourceInfoReferenceActive:Tw},Zh=(t,r)=>{B.useEffect(()=>{const i=s=>{t.current&&!t.current.contains(s.target)&&r()};return document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)},[t,r])};var bd,wb;function Qh(){if(wb)return bd;wb=1;function t(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}return bd=t,bd}var vd,Cb;function Aw(){if(Cb)return vd;Cb=1;var t=typeof yo=="object"&&yo&&yo.Object===Object&&yo;return vd=t,vd}var _d,Nb;function Pv(){if(Nb)return _d;Nb=1;var t=Aw(),r=typeof self=="object"&&self&&self.Object===Object&&self,i=t||r||Function("return this")();return _d=i,_d}var Ed,Mb;function xw(){if(Mb)return Ed;Mb=1;var t=Pv(),r=function(){return t.Date.now()};return Ed=r,Ed}var Sd,Db;function Ow(){if(Db)return Sd;Db=1;var t=/\s/;function r(i){for(var s=i.length;s--&&t.test(i.charAt(s)););return s}return Sd=r,Sd}var Td,Lb;function Rw(){if(Lb)return Td;Lb=1;var t=Ow(),r=/^\s+/;function i(s){return s&&s.slice(0,t(s)+1).replace(r,"")}return Td=i,Td}var Ad,Bb;function Yv(){if(Bb)return Ad;Bb=1;var t=Pv(),r=t.Symbol;return Ad=r,Ad}var xd,Ub;function ww(){if(Ub)return xd;Ub=1;var t=Yv(),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 b=s.call(d);return p&&(h?d[u]=m:delete d[u]),b}return xd=c,xd}var Od,jb;function Cw(){if(jb)return Od;jb=1;var t=Object.prototype,r=t.toString;function i(s){return r.call(s)}return Od=i,Od}var Rd,Hb;function Nw(){if(Hb)return Rd;Hb=1;var t=Yv(),r=ww(),i=Cw(),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 Rd=d,Rd}var wd,Ib;function Mw(){if(Ib)return wd;Ib=1;function t(r){return r!=null&&typeof r=="object"}return wd=t,wd}var Cd,zb;function Dw(){if(zb)return Cd;zb=1;var t=Nw(),r=Mw(),i="[object Symbol]";function s(u){return typeof u=="symbol"||r(u)&&t(u)==i}return Cd=s,Cd}var Nd,Gb;function Lw(){if(Gb)return Nd;Gb=1;var t=Rw(),r=Qh(),i=Dw(),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 b=typeof p.valueOf=="function"?p.valueOf():p;p=r(b)?b+"":b}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 Nd=m,Nd}var Md,kb;function Xv(){if(kb)return Md;kb=1;var t=Qh(),r=xw(),i=Lw(),s="Expected a function",u=Math.max,c=Math.min;function d(h,m,p){var b,E,x,U,R,F,z=0,_=!1,w=!1,S=!0;if(typeof h!="function")throw new TypeError(s);m=i(m)||0,t(p)&&(_=!!p.leading,w="maxWait"in p,x=w?u(i(p.maxWait)||0,m):x,S="trailing"in p?!!p.trailing:S);function H(ce){var Pe=b,ve=E;return b=E=void 0,z=ce,U=h.apply(ve,Pe),U}function A(ce){return z=ce,R=setTimeout(ae,m),_?H(ce):U}function Z(ce){var Pe=ce-F,ve=ce-z,G=m-Pe;return w?c(G,x-ve):G}function W(ce){var Pe=ce-F,ve=ce-z;return F===void 0||Pe>=m||Pe<0||w&&ve>=x}function ae(){var ce=r();if(W(ce))return ye(ce);R=setTimeout(ae,Z(ce))}function ye(ce){return R=void 0,S&&b?H(ce):(b=E=void 0,U)}function Ee(){R!==void 0&&clearTimeout(R),z=0,b=F=E=R=void 0}function se(){return R===void 0?U:ye(r())}function me(){var ce=r(),Pe=W(ce);if(b=arguments,E=this,F=ce,Pe){if(R===void 0)return A(F);if(w)return clearTimeout(R),R=setTimeout(ae,m),H(F)}return R===void 0&&(R=setTimeout(ae,m)),U}return me.cancel=Ee,me.flush=se,me}return Md=d,Md}var Bw=Xv();const Uw=ou(Bw),jw="_container_131ib_1",Hw="_categoryContainer_131ib_13",Iw="_categoryButton_131ib_20",zw="_active_131ib_35",Gw="_commentTextarea_131ib_44",Gs={container:jw,categoryContainer:Hw,categoryButton:Iw,active:zw,commentTextarea:Gw},kw=(t,r,i)=>{B.useEffect(()=>{if(t){const s=()=>{const c=["button:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])',"a[href]","input:not([disabled])","select:not([disabled])"].join(","),d=r.current?Array.from(r.current.querySelectorAll(c)):[],h=i.current?Array.from(i.current.querySelectorAll(c)):[];return[...d,...h]},u=c=>{if(c.key==="Tab"){const d=s();if(d.length>0){const h=d[0],m=d[d.length-1],p=document.activeElement;!c.shiftKey&&p===m?(c.preventDefault(),h.focus()):c.shiftKey&&p===h&&(c.preventDefault(),m.focus())}}};return document.addEventListener("keydown",u,!0),()=>{document.removeEventListener("keydown",u,!0)}}},[t,r,i])},qw=({open:t,actionsRef:r,reaction:i,onReaction:s})=>{const u=Ze(),c=B.useRef(null),d=Uw(p=>{s({...i,comment:p})},300);B.useEffect(()=>()=>d.flush(),[d]),kw(t,r,c);const h=p=>{s({...i,category:i.category===p?void 0:p})},m=p=>d(p.target.value);return t?y.jsxs("div",{ref:c,className:Gs.container,role:"dialog","aria-modal":"true","aria-labelledby":"bad-reaction-title",children:[y.jsx("h2",{id:"bad-reaction-title",children:u("bot-bubble.reaction.say-more")}),y.jsx("div",{className:Gs.categoryContainer,role:"radiogroup",children:["WRONG_INFORMATION","MISSING_INFORMATION","OLD_INFORMATION","UNCLEAR","OFF_TOPIC"].map(p=>y.jsx("button",{className:Q(Gs.categoryButton,i?.category===p&&Gs.active),onClick:()=>h(p),"aria-pressed":i?.category===p,"aria-label":u(`bot-bubble.reaction.category.${p}`),tabIndex:0,role:"radio",children:u(`bot-bubble.reaction.category.${p}`)},p))}),y.jsx("textarea",{id:"comment",name:"comment",placeholder:u("bot-bubble.reaction.comment"),defaultValue:i?.comment,onChange:m,className:Gs.commentTextarea,rows:3,"aria-label":u("bot-bubble.reaction.comment")})]}):null},Fw="_botMessageActionContainer_18fjb_1",Vw="_alwaysVisible_18fjb_15",Pw="_active_18fjb_19",Yw="_botMessageActionInnerContainer_18fjb_27",Xw="_header_18fjb_52",Zw="_botMessageActions_18fjb_57",Qw="_reported_18fjb_68",Kw="_action_18fjb_72",$w="_wave_18fjb_86",Ww="_anyReport_18fjb_156",Jw="_closeButton_18fjb_172",nt={botMessageActionContainer:Fw,alwaysVisible:Vw,active:Pw,botMessageActionInnerContainer:Yw,header:Xw,botMessageActions:Zw,reported:Qw,action:Kw,wave:$w,anyReport:Ww,closeButton:Jw},e6=({isSubmitting:t,onClick:r})=>{const i=Ze();return y.jsx("button",{className:Q(nt.action,nt.closeButton,"tooltip--bottom-left"),"aria-label":i("bot-bubble.reaction.close"),"data-title":i("bot-bubble.reaction.close"),tabIndex:0,onClick:r,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:t?y.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"}):y.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"})})})},t6=({alwaysVisible:t,senderType:r,reaction:i,botMessageRef:s,message:u,onReaction:c})=>{const d=Ze(),[h,m]=B.useState(!1),[p,b]=B.useState(!1),[E,x]=B.useState(!1),U=B.useRef(null),R=B.useRef(null);Zh(U,()=>{x(!1)});const F=A=>{A.key==="Escape"&&x(!1)};B.useEffect(()=>(document.addEventListener("keydown",F),()=>{document.removeEventListener("keydown",F)}),[]),B.useEffect(()=>{E&&U.current?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[E]);const z=A=>{R.current&&clearTimeout(R.current),b(!0),c(A),R.current=setTimeout(()=>{b(!1)},1e3)},_=B.useCallback(async()=>{if(s.current)try{m(!0);const A=s.current.innerHTML,Z=s.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([A],{type:"text/html"}),"text/plain":new Blob([Z],{type:"text/plain"})})]),await new Promise(W=>setTimeout(W,1500))}finally{m(!1)}},[s]),w=()=>{x(!1),c(i?.type==="GOOD"?null:{type:"GOOD"})},S=()=>{c({...u.reaction,type:"BAD"}),x(!E)},H=A=>Z=>{(Z.key==="Enter"||Z.key===" ")&&A()};return y.jsx("div",{ref:U,className:Q(nt.botMessageActionContainer,t&&nt.alwaysVisible,E&&nt.active),children:y.jsxs("div",{className:Q(nt.botMessageActionInnerContainer,t&&nt.alwaysVisible,E&&nt.active,i&&nt.reported),role:"group",children:[y.jsxs("div",{className:nt.header,children:[y.jsxs("div",{className:Q(nt.botMessageActions,i&&nt.reported),children:[r===iu.BOT&&y.jsx("button",{className:Q(nt.action,nt.wave,i?.type&&nt.anyReport,i?.type==="GOOD"&&nt.reported,"tooltip--top-right"),tabIndex:0,"aria-label":d(i?.type==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),"aria-pressed":i?.type==="GOOD","data-title":d(i?.type==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),onPointerDown:w,onKeyDown:H(w),children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:i?.type==="GOOD"?y.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"}):y.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===iu.BOT&&y.jsx("button",{className:Q(nt.action,nt.wave,i?.type&&nt.anyReport,i?.type==="BAD"&&nt.reported,"tooltip--top-right"),tabIndex:0,"aria-label":d("bot-bubble.reaction.bad"),"aria-pressed":i?.type==="BAD","data-title":d("bot-bubble.reaction.bad"),onPointerDown:S,onKeyDown:H(S),children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:i?.type==="BAD"?y.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"}):y.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"})})}),y.jsx("button",{className:Q(nt.action,nt.wave,"tooltip--top-right"),style:{visibility:E?"hidden":"visible"},tabIndex:0,"aria-label":d("bot-bubble.copy"),"data-title":d("bot-bubble.copy"),onClick:_,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:h?y.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"}):y.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"})})})]}),E&&y.jsx(e6,{isSubmitting:p,onClick:()=>x(!1)})]}),u.reaction&&y.jsx(qw,{open:E,actionsRef:U,reaction:u.reaction,onReaction:z})]})})},Zv=B.forwardRef(({message:t,isAnimated:r,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:u,children:c,onReaction:d},h)=>{const m=Ze(),p=B.useRef(null),b=t.sender.type===Te.UserType.BOT;return y.jsxs("li",{ref:h,className:Q(ge.message,ge.messageBot,i&&ge.lastMessage,s&&ge.messageBotFirst,u&&ge.messageBotLast,"chat__bubbleContainer",r&&ge.messageBotAnimated,r&&"chat__bubbleContainer--animated",b?"chat__botBubbleContainer":"chat__agentBubbleContainer",s&&"chat__bubbleContainer--first",u&&"chat__bubbleContainer--last"),children:[y.jsx("img",{className:Q(ge.avatar,b?ge.botAvatar:ge.agentAvatar,"chat__avatar",b?"chat__botAvatar":"chat__agentAvatar"),src:`${t.sender.avatar}`,alt:b?"Bot":"Agent",referrerPolicy:"no-referrer"}),y.jsxs("div",{className:ge.messageContainer,children:[y.jsx("div",{ref:p,className:Q(ge.bubble,ge.bubbleLeft,"chat__bubble",b?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":m(b?"bot-bubble.label":"agent-bubble.label"),children:y.jsx("div",{className:Q(ge.leftText),children:c})}),d&&y.jsx(t6,{alwaysVisible:i&&u,senderType:t.sender.type,reaction:t.reaction,message:t,botMessageRef:p,onReaction:d})]})]})}),n6="_sourceList_1n31h_1",r6="_source_1n31h_1",a6="_label_1n31h_37",Dd={sourceList:n6,source:r6,label:a6},Qv=t=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:y.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"})}),Kv=t=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:y.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"})}),$v=t=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:y.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"})}),Wv=t=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:y.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"})}),i6=({type:t,...r})=>{switch(t){case"WEBSITE":return y.jsx(Wv,{...r});case"PDF":return y.jsx($v,{...r});case"DOCX":return y.jsx(Qv,{...r});default:return y.jsx(Kv,{...r})}},Kh=({sources:t,onLinkClick:r})=>{const i=Ze(),s=c=>()=>{r(c.url)},u=c=>d=>{(d.key==="Enter"||d.key===" ")&&r(c.url)};return t.length?y.jsx("ul",{className:Dd.sourceList,"aria-label":i("bot-bubble.sources"),children:t.map(c=>y.jsx("li",{className:Dd.source,children:y.jsxs("a",{role:"button",tabIndex:0,"aria-label":`${i("bot-bubble.source.open")}: ${c.label}`,onClick:s(c),onKeyDown:u(c),children:[y.jsx(i6,{type:c.type,"aria-hidden":"true"}),y.jsx("div",{className:Dd.label,children:c.label})]})},c.url))}):null},s6="_button_3ui4g_1",l6="_buttonDefault_3ui4g_13",o6="_buttonPrimary_3ui4g_28",el={button:s6,buttonDefault:l6,buttonPrimary:o6},Su=({className:t,children:r,...i})=>y.jsx("button",{className:Q(el.button,t),type:"button",role:"button",...i,children:r}),u6="_title_137pi_1",c6="_buttons_137pi_6",f6="_button_137pi_6",d6="_imageContainer_137pi_29",h6="_image_137pi_29",m6="_video_container_137pi_44",p6="_video_137pi_44",g6="_only_137pi_58",on={title:u6,buttons:c6,button:f6,imageContainer:d6,image:h6,video_container:m6,video:p6,only:g6},y6=({buttons:t,onButtonClick:r})=>y.jsx("div",{className:Q(on.buttons,"chat__bubbleButtons"),children:t.map((i,s)=>y.jsx(Su,{className:Q(on.button,"chat__bubbleButton"),onClick:()=>r(i),children:i.title},s))}),qb="newtab#",Jv=({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(qb)===0?y.jsx("a",{href:d.slice(qb.length),title:c,target:"_blank",rel:"noopener noreferrer",children:h}):y.jsx("a",{onClick:s(d),title:c,href:d,children:h});return y.jsx(Or,{options:{...r,overrides:{a:u}},children:t})},b6=({text:t,onLinkClick:r})=>t?y.jsx("div",{children:y.jsx(Jv,{markdown:t,onLinkClick:r})}):null,v6=({title:t})=>t?y.jsx("h1",{className:on.title,children:t}):null,_6=({title:t,text:r,buttons:i,onButtonClick:s,onLinkClick:u})=>t?.length||r?.length||i?.length?y.jsxs("div",{className:Q(ge.bubbleContent),children:[y.jsx(v6,{title:t}),y.jsx(b6,{text:r,onLinkClick:u}),y.jsx(y6,{buttons:i,onButtonClick:s})]}):null,E6=({alt:t,imageUrl:r,itemUrl:i,hasBody:s})=>r?i?i.indexOf("youtube.com")>-1?y.jsx("div",{className:on.video_container,children:y.jsx("iframe",{className:Q(on.video,{[on.only]:!s}),title:"Youtube",width:"100%",src:i+"?rel=0",frameBorder:"0",allowFullScreen:!0})}):y.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",children:y.jsx("div",{className:on.imageContainer,children:y.jsx("img",{className:Q(on.image,{[on.only]:!s}),src:r,alt:t})})}):y.jsx("div",{className:on.imageContainer,children:y.jsx("img",{className:Q(on.image,{[on.only]:!s}),src:r,alt:t})}):null,S6=({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 y.jsxs("div",{className:Q(on.detailMessage),children:[y.jsx(E6,{hasBody:m,imageUrl:i,itemUrl:s,alt:t||""}),m&&y.jsx(_6,{title:t,text:r,buttons:u,onLinkClick:h,onButtonClick:d}),y.jsx(Kh,{sources:c,onLinkClick:h})]})},T6=B.forwardRef(({isFirstMessageBySender:t,isLastMessageBySender:r,children:i},s)=>{const u=Ze();return y.jsx("li",{ref:s,className:Q(ge.message,ge.messageGuest,t&&ge.messageGuestFirst,r&&ge.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",t&&"chat__bubbleContainer--first",r&&"chat__bubbleContainer--last"),children:y.jsx("div",{className:Q(ge.bubble,ge.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":u("guest-bubble.label"),children:y.jsx("div",{className:Q(ge.rightText),children:i})})})}),A6="_markdown_nw7vg_1",e_={markdown:A6},t_=()=>x6(window.location.pathname),x6=t=>{const r=t.split("/"),i=t.endsWith("/");return r[r.length-(i?2:1)]},Tu=()=>B.useMemo(()=>t_(),[]),Ho="source-info-reference",O6=({actionId:t,markdown:r,sources:i,onLinkClick:s})=>{const u=Tu(),c=Nr(),d=R6(),h=st(b=>{const E=b.chat.sourceInfos;if(E?.type==="loaded"||E?.type==="loading")return E.chunkId}),m=b=>E=>{const x=E.key;(x==="ArrowDown"||x==="ArrowRight"||x==="Enter"||x===" "||x==="Space")&&(E.stopPropagation(),c(fb(u,t,b)))},p=b=>()=>{c(fb(u,t,b))};return B.useLayoutEffect(()=>{document.querySelectorAll(`.${Ho}`).forEach(b=>{const E=b.previousSibling;E&&E.nodeType===Node.TEXT_NODE&&E.textContent?.endsWith(" ")&&E.textContent?.trim().length&&b.classList.add(`${Ho}--before-space`);const x=b.nextSibling;x&&x.nodeType===Node.TEXT_NODE&&x.textContent?.startsWith(" ")&&x.textContent?.trim().length&&b.classList.add(`${Ho}--after-space`)})},[r]),y.jsxs("div",{className:ge.bubbleContent,children:[y.jsx("div",{className:e_.markdown,children:y.jsx(Jv,{markdown:r,onLinkClick:s,markdownOptions:{renderRule(b,E,x,U){if(E.type===kO.footnoteReference){const R=E.text===h;return y.jsx("span",{className:Q(ge.sourceInfoReference,R&&ge.sourceInfoReferenceActive,Ho),children:y.jsx("a",{type:"button",tabIndex:0,onClick:p(E.text),onKeyDown:m(E.text),children:d(E.text)})},U.key)}return b()}}})}),y.jsx(Kh,{sources:i,onLinkClick:s})]})},R6=()=>{const t=[];return i=>{const s=t.indexOf(i);return s>-1?s+1:(t.push(i),t.length)}},w6="_text_gp0s0_1",C6="_command_gp0s0_5",Fb={text:w6,command:C6},N6=({text:t,commands:r=[]})=>{const i=r.find(u=>t.startsWith(`/${u}`)),s=i?t.slice(i.length+1):t;return y.jsxs("div",{children:[i&&y.jsxs("code",{className:Fb.command,children:["/",i]}),s.split(`
|
|
110
|
-
`).map((u,c)=>y.jsxs("span",{className:Fb.text,children:[u,y.jsx("br",{})]},c))]})},M6=({text:t,commands:r,sources:i,onLinkClick:s})=>y.jsxs("div",{className:ge.bubbleContent,children:[y.jsx(N6,{text:t,commands:r}),y.jsx(Kh,{sources:i,onLinkClick:s})]}),D6=B.forwardRef(({message:t,commands:r,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:u,onReaction:c,onButtonClick:d,onLinkClick:h},m)=>{const p=L6(t._id,t,r,d,h),b=E=>{c(t._id,E)};switch(t.sender.type){case Te.UserType.GUEST:return y.jsx(T6,{ref:m,isFirstMessageBySender:s,isLastMessageBySender:u,children:p});default:return y.jsx(Zv,{ref:m,message:t,isAnimated:!1,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:u,onReaction:b,children:p})}}),L6=(t,r,i,s,u)=>{switch(r.type){case Te.MessageTypeEnum.TEXT:{const c=r;return y.jsx(M6,{text:c.text,commands:i,sources:r.sources||[],onLinkClick:u})}case Te.MessageTypeEnum.DETAIL:{const c=r;return y.jsx(S6,{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 y.jsx(O6,{actionId:t,markdown:c.markdown,sources:c.sources||[],onLinkClick:u})}}},B6=(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,U6=_1.memo(D6,B6),j6="_ticontainer_xg0dn_1",H6="_tiblock_xg0dn_5",I6="_tidot_xg0dn_12",ks={ticontainer:j6,tiblock:H6,tidot:I6},z6=({isTyping:t=!1})=>y.jsx("div",{className:ks.ticontainer,children:y.jsx("div",{className:ks.tiblock,children:t?y.jsxs(y.Fragment,{children:[y.jsx("div",{className:Q(ks.tidot,"chat__typingIndicator")}),y.jsx("div",{className:Q(ks.tidot,"chat__typingIndicator")}),y.jsx("div",{className:Q(ks.tidot,"chat__typingIndicator")})]}):null})}),G6=Object.assign({_id:"typing-indicator"},new Te.TextMessage("",new Te.BotUser)),k6=({messages:t,isBotTyping:r,commands:i,onTranscriptItemReaction:s,onButtonClick:u,onLinkClick:c})=>{const d=B.useRef(0),h=B.useRef(!0),m=B.useRef(null),p=B.useRef(null),b=B.useRef(null),E=st(R=>R.settings.enableGeneralConditions);B.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(b.current){const R=b.current.offsetTop;m.current.scrollTop=R}h.current&&(h.current=!1),d.current=t.length}},[t,h,r]);let x;const U=t.length;return y.jsxs("div",{ref:m,className:Q(hb.messageContainer,"chat__messageContainer"),style:{scrollBehavior:t.length&&h.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[E&&y.jsx(rw,{}),y.jsxs("ul",{className:hb.messages,children:[t.map((R,F)=>{const z=q6(R,x),_=F6(R,F,t,r);x=R.sender.type;const w=F+1===U,S=R._id||`added-${F}`;return y.jsx(U6,{ref:w?b:null,message:R,commands:i,isLastMessage:w,isFirstMessageBySender:z,isLastMessageBySender:_,onButtonClick:u,onLinkClick:c,onReaction:s},w&&!r?"last":S)}),r&&y.jsx(Zv,{ref:p,message:G6,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:x!==Te.UserType.BOT,isLastMessageBySender:!0,children:y.jsx(z6,{isTyping:!0})},"last")]})]})},q6=(t,r)=>!r||r!==t.sender.type,F6=(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},V6="_bottomSheet_jp8dl_1",P6="_bottomSheetOpen_jp8dl_15",Y6="_bottomSheetClose_jp8dl_20",Rr={bottomSheet:V6,bottomSheetOpen:P6,bottomSheetClose:Y6},X6="_container_xc2nx_1",Vb={container:X6},Z6=({contentUrl:t})=>{const r=st(c=>c.connection.sessionId),[i,s]=B.useState(!1);B.useEffect(()=>{s(c=>c||!!t)},[t]);const u=B.useMemo(()=>{if(t&&r){const c=new URL(t,document.baseURI);return c.searchParams.set("sessionId",r),c.toString()}else return},[t,r]);return y.jsx("div",{className:Q(Vb.container,Rr.bottomSheet,{[Rr.bottomSheetOpen]:!!t,[Rr.bottomSheetClose]:i&&!t}),children:u&&y.jsx("iframe",{title:"Drawer",src:u,className:Vb.iframe})})},Q6="_container_z787n_1",K6={container:Q6},$6=({title:t,href:r,children:i})=>y.jsx("a",{href:r,title:t,target:"_blank",rel:"noopener noreferrer",children:i}),W6=()=>{const r=Ze()("powered-by");return r&&r.length?y.jsx("div",{className:Q(K6.container,"chat__poweredBy"),children:y.jsx(Or,{options:{overrides:{a:$6}},children:r})}):null},n_=({className:t,children:r,...i})=>y.jsx(Su,{className:Q(el.buttonDefault,t),type:"button",...i,children:r}),su=({className:t,children:r,...i})=>y.jsx(Su,{className:Q(el.buttonPrimary,t),...i,children:r}),J6="_container_h23mk_1",eC="_formContainer_h23mk_17",tC="_emailInput_h23mk_22",nC="_description_h23mk_52",rC="_actions_h23mk_57",aC="_validationError_h23mk_67",iC="_submitted_h23mk_74",La={container:J6,formContainer:eC,emailInput:tC,description:nC,actions:rC,validationError:aC,submitted:iC},sC=({visible:t,onEmailExport:r,onClose:i})=>{const s=Ze(),[u,c]=B.useState(void 0),[d,h]=B.useState(!1),[m,p]=B.useState(void 0),b=B.useRef(null);B.useEffect(()=>{t?(b.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))},x=U=>{const R=U.target.value.trim(),F=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(R);p(F?R:"")};return y.jsxs("div",{className:Q(La.container,Rr.bottomSheet,{[Rr.bottomSheetOpen]:u===!0,[Rr.bottomSheetClose]:u===!1}),children:[y.jsx("h2",{children:s("export-transcript.email.title")}),y.jsx(Or,{className:La.description,children:s("export-transcript.email.description")||""}),y.jsxs("form",{onSubmit:E,className:La.formContainer,children:[y.jsxs("div",{children:[y.jsx("input",{disabled:d,ref:b,type:"email",placeholder:s("export-transcript.email.placeholder"),className:La.emailInput,onChange:x}),m?.length===0?y.jsx("div",{className:La.validationError,children:s("export-transcript.email.invalid")}):null]}),y.jsxs("div",{className:La.actions,children:[y.jsx(n_,{onClick:i,children:s("export-transcript.email.cancel")}),y.jsx(su,{type:"submit",disabled:d||m===void 0||m.length===0,children:s("export-transcript.email.send")})]})]}),d&&y.jsx("div",{className:La.submitted,children:s("export-transcript.email.success")})]})},lC="_inputContainer_fi5ao_1",oC={inputContainer:lC},uC="_blockUserInput_pot9c_1",cC={blockUserInput:uC},fC=({visible:t})=>{const r=Ze();return t?y.jsx("div",{className:Q(cC.blockUserInput,"chat__blockUserInput"),children:r("block-user-input.title")}):null},dC="_commandsDropdown_5ytuv_1",hC="_commands_5ytuv_1",mC="_command_5ytuv_1",pC="_commandActive_5ytuv_46",gC="_commandsSelections_5ytuv_55",Qs={commandsDropdown:dC,commands:hC,command:mC,commandActive:pC,commandsSelections:gC},yC=(t,r,i,s,u)=>{B.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])},bC=({text:t,commands:r,onSelectCommand:i,onVisibilityChange:s})=>{const u=B.useRef(null),c=Ze(),[d,h]=B.useState([]),[m,p]=B.useState(Pb(r)),[b,E]=B.useState(0),x=U=>i(`/${U}`);return Zh(u,()=>h([])),yC(d,b,x,E,h),B.useEffect(()=>{p(Pb(r))},[r]),B.useEffect(()=>{const U=t.length||0;U===0||U>m||!t.startsWith("/")?h([]):h(r.filter(vC(t))),E(0)},[r,t,m]),B.useEffect(()=>{s(!!d.length)},[d,s]),d.length?y.jsx("div",{ref:u,className:Qs.commandsDropdown,children:y.jsx("ul",{id:"command-list",className:Qs.commands,role:"listbox",children:d.map((U,R)=>y.jsxs("li",{className:Q([Qs.command,b===R&&Qs.commandActive]),role:"option",onClick:()=>x(U),onMouseOver:()=>E(R),children:[y.jsxs("h1",{children:["/",U]}),y.jsx("p",{children:c(`commands.${U}`)})]},U))})}):null},Pb=t=>Math.max(...t.map(r=>r.length+1)),vC=t=>r=>{const i=`/${r}`;return i.startsWith(t)&&i.length>=t.length},Yb=3,_C=({commands:t,onSelectCommand:r})=>{const i=Ze(),[s,u]=B.useState(!1),c=p=>()=>{r(`/${p}`),u(!1)},d=()=>{u(!0)},h=()=>{u(!1)},m=s?t:t.slice(0,Yb);return y.jsxs("div",{className:Qs.commandsSelections,children:[m.map(p=>y.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?y.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>Yb?y.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]})},EC="_callToActionContainer_d8izj_1",SC="_callToActionTitle_d8izj_23",TC="_rateOverlay_d8izj_30",AC="_body_d8izj_52",xC="_footer_d8izj_60",OC="_actions_d8izj_75",RC="_bubbles_d8izj_89",wC="_stars_d8izj_191",CC="_starsSmall_d8izj_205",NC="_starsLarge_d8izj_211",MC="_star_d8izj_191",DC="_starReadonly_d8izj_225",LC="_starIcon_d8izj_235",BC="_starsDescriptionContainer_d8izj_253",UC="_starsDescription_d8izj_253",zt={callToActionContainer:EC,callToActionTitle:SC,rateOverlay:TC,body:AC,footer:xC,actions:OC,bubbles:RC,stars:wC,starsSmall:CC,starsLarge:NC,star:MC,starReadonly:DC,starIcon:LC,starsDescriptionContainer:BC,starsDescription:UC},jC=({value:t,index:r,count:i,readonly:s,onHover:u,onClick:c})=>{const d=h=>{c&&h.key==="Enter"&&c()};return y.jsx("li",{className:Q(zt.star,{[zt.starReadonly]:s},"chat__conversationRating__star"),children:y.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:y.jsx("span",{role:"img","aria-label":"Star",className:Q(zt.starIcon),children:y.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"star",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:y.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"})})})})})},Xb=5,r_=({value:t,size:r,readonly:i=!1,onChange:s})=>{const[u,c]=B.useState(void 0),d=()=>{c(void 0)},h=p=>()=>{if(!i){const b=p+1;c(b)}},m=p=>()=>{s&&!i&&(s(p===0&&t===1?0:p+1),c(void 0))};return y.jsx("ul",{tabIndex:0,role:"radiogroup",className:Q(zt.stars,{[zt.starsSmall]:r==="small",[zt.starsLarge]:r==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:r==="small",chat__conversationRating__stars__large:r==="large"}),onMouseOut:d,children:Array(Xb).fill(0).map((p,b)=>y.jsx(jC,{value:u===void 0?t:u,index:b,count:Xb,readonly:i,onHover:h(b),onClick:m(b)},b))})},HC=({visible:t,onRate:r})=>{const i=Ze();return t?y.jsxs("div",{className:Q(zt.callToActionContainer,"chat__conversationRating__callToAction"),children:[y.jsx("div",{className:Q(zt.callToActionTitle,"chat__conversationRating__callToAction__title"),children:i("conversation-rating.call-to-action.title")}),y.jsx(r_,{value:0,size:"small",onChange:r})]}):null},Ld=({isFirstMessageBySender:t,isLastMessageBySender:r,children:i})=>y.jsxs("div",{className:Q(ge.message,ge.messageBot,t&&ge.messageBotFirst,r&&ge.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",t&&"chat__bubbleContainer--first",r&&"chat__bubbleContainer--last"),children:[y.jsx("img",{className:Q(ge.avatar,ge.botAvatar),src:"bot.svg",alt:"Bot"}),y.jsx("div",{className:Q(ge.bubble,ge.bubbleLeft,"chat__bubble","chat__botBubble"),children:y.jsx("div",{className:Q(ge.leftText,ge.bubbleContent),children:i})})]}),IC=({children:t})=>y.jsx("div",{className:Q(ge.message,ge.messageGuest,ge.messageGuestFirst,ge.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:y.jsx("div",{className:Q(ge.bubble,ge.bubbleRight,"chat__bubble","chat__guestBubble"),children:y.jsx("div",{className:Q(ge.rightText,ge.bubbleContent),children:t})})}),zC=()=>{const t=Ze(),r=Nr(),i=st(_=>_.chat.conversationRating),[s,u]=B.useState(i.rating?.value||0),[c,d]=B.useState(void 0),[h,m]=B.useState(void 0),[p,b]=B.useState({submitted:!1,feedback:""}),E=B.useRef(null),[x,U]=B.useState(!1),R=Tu();B.useEffect(()=>{i.opener?(b({submitted:!1,feedback:""}),m(!0)):h===!0&&m(!1)},[i.opener,h]),B.useEffect(()=>{u(i.rating?.value||0)},[i.rating?.value,i.opener]),B.useEffect(()=>{E.current&&(E.current.value=i.rating?.feedback||"")},[i.rating?.feedback]),B.useEffect(()=>{const _=s>0?t(`conversation-rating.overlay.bot-message.rate-feedback.value-${s}`):void 0;d(_?.length?_:void 0)},[s,t]),B.useEffect(()=>{p.submitted?setTimeout(()=>U(!0),p.feedback.length?500:0):U(!1)},[p]);const F=_=>{_.preventDefault();const w=E.current?.value?.trim()||"";r(wx(s,w)),b({submitted:!0,feedback:w})},z=()=>{if(i.opener==="CLOSE_CHAT")r(Bv());else if(i.opener==="RESTART_CHAT"){const _=du.parse(window.location.search);r(vu(R,_))}else r(xO())};return y.jsx("div",{className:Q(zt.rateOverlay,Rr.bottomSheet,"chat__conversationRating__overlay",{[Rr.bottomSheetOpen]:h===!0,[Rr.bottomSheetClose]:h===!1}),children:y.jsxs("form",{onSubmit:F,children:[y.jsxs("div",{className:Q(zt.body,"chat__conversationRating__overlay__body"),children:[y.jsx("div",{}),y.jsx("div",{className:Q(zt.bubbles),children:i.opener&&y.jsxs(y.Fragment,{children:[y.jsxs(Ld,{isFirstMessageBySender:!0,isLastMessageBySender:!c,children:[y.jsx("h2",{children:t("conversation-rating.overlay.title")}),y.jsxs("div",{className:Q(zt.starsDescriptionContainer),children:[y.jsx(r_,{value:s,size:"large",readonly:p.submitted,onChange:u}),y.jsxs("div",{className:Q(zt.starsDescription),children:[y.jsx("div",{children:t("conversation-rating.overlay.star.very-bad")}),y.jsx("div",{children:t("conversation-rating.overlay.star.very-good")})]})]})]}),c&&y.jsx(Ld,{isFirstMessageBySender:!1,isLastMessageBySender:!x||!!p.feedback.length,children:y.jsx("div",{children:c})}),!!p.feedback.length&&y.jsx(IC,{children:p.feedback}),x&&y.jsx(Ld,{isFirstMessageBySender:!!p.feedback.length,isLastMessageBySender:!0,children:y.jsx("div",{children:t("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),y.jsxs("div",{className:Q(zt.footer,"chat__conversationRating__overlay__footer"),children:[!p.submitted&&y.jsx("input",{ref:E,defaultValue:i.rating?.feedback||"",placeholder:t("conversation-rating.overlay.guest-feedback.input-placeholder")}),y.jsxs("div",{className:Q(zt.actions,"chat__conversationRating__overlay__footer__actions"),children:[p.submitted?y.jsx(su,{type:"button",disabled:!s,onClick:z,children:i.opener==="CLOSE_CHAT"?t("conversation-rating.overlay.action.close-chat"):i.opener==="RESTART_CHAT"?t("conversation-rating.overlay.action.restart-chat"):t("conversation-rating.overlay.action.back-to-chat")},"close-button"):y.jsx(su,{type:"submit",disabled:!s,children:t("conversation-rating.overlay.action.submit")},"submit-button"),i.opener!=="CHAT"&&!p.submitted&&y.jsx(n_,{onClick:z,children:i.opener==="CLOSE_CHAT"?t("conversation-rating.overlay.action.close-chat"):i.opener==="RESTART_CHAT"?t("conversation-rating.overlay.action.restart-chat"):t("conversation-rating.overlay.action.cancel")})]})]})]})})},GC=({numberOfMessagesFromGuest:t})=>{const r=Nr(),i=st(c=>c.chat.conversationRating),s=c=>{r(au("CHAT",c))},u=!i.rating?.value&&t>=1;return i.enabled?y.jsxs(y.Fragment,{children:[y.jsx(HC,{visible:u,onRate:s}),y.jsx(zC,{})]}):null},kC=B.memo(GC),qC="_inputWrapper_e3h44_1",FC="_withOpenCommands_e3h44_14",VC="_messageInputWrapper_e3h44_20",PC="_messageInput_e3h44_20",YC="_buttons_e3h44_44",XC="_button_e3h44_44",xi={inputWrapper:qC,withOpenCommands:FC,messageInputWrapper:VC,messageInput:PC,buttons:YC,button:XC},ZC="_audioRecorder_g845f_1",QC="_audioButton_g845f_6",KC="_recorderIcon_g845f_37",$C="_spinning_g845f_60",Ba={audioRecorder:ZC,audioButton:QC,recorderIcon:KC,spinning:$C},Zb=2048,lu=16e3;class WC extends _1.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(Zb,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+=Zb}}handleClickSubmitAudio(){const r=eN(this.leftchannel,this.recordingLength),i=tN(r,this.sampleRate||0),s=JC(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 y.jsxs("div",{className:Ba.audioRecorder,children:[this.state.recordingState==="none"&&y.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:y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.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"}),y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),this.state.recordingState==="connecting"&&y.jsxs("svg",{className:Ba.spinning,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.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"}),y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),this.state.recordingState==="recording"&&y.jsxs("div",{className:Ba.audioRecorder,children:[y.jsx("button",{className:Q(Ba.audioButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate("message-input.actions.stop-audio-recording.label"),tabIndex:0,children:y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.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"}),y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),y.jsx("div",{className:Ba.recorderIcon}),y.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:y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),y.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})]})})]})]})}}const JC=t=>{const r=new ArrayBuffer(44+t.length*2),i=new DataView(r);Io(i,0,"RIFF"),i.setUint32(4,44+t.length*2,!0),Io(i,8,"WAVE"),Io(i,12,"fmt "),i.setUint32(16,16,!0),i.setUint16(20,1,!0),i.setUint16(22,1,!0),i.setUint32(24,lu,!0),i.setUint32(28,lu*4,!0),i.setUint16(32,4,!0),i.setUint16(34,16,!0),Io(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"})},Io=(t,r,i)=>{for(let s=0;s<i.length;s++)t.setUint8(r+s,i.charCodeAt(s))},eN=(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},tN=(t,r)=>{if(lu===r)return t;const i=r/lu,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 b=d;b<h&&b<t.length;b++)m+=t[b],p++;u[c]=m/p,c++,d=h}return u},nN=({disabled:t,textInput:r,commandsVisible:i,hasCommands:s,onTextInput:u,onTextInputSubmit:c,onAudioRecorded:d})=>{const h=Ze(),m=B.useRef(null),{enableSpeechSupport:p}=st(R=>R.settings);B.useEffect(()=>{m.current?.focus()},[r]);const b=()=>{const R=m.current;R&&r.trim().length>=1&&c(r.trim())&&(R.value="",R.style.height="",R.focus())},E=R=>{R.preventDefault(),b()},x=R=>{const F=R.target.value;u(F),R.target.style.height="";const{scrollHeight:z}=R.target;R.target.style.height=`${z>150?150:z}px`},U=R=>{R.code==="Enter"&&!R.shiftKey?(R.repeat||b(),R.preventDefault()):i&&(R.code==="ArrowUp"||R.code==="ArrowDown")&&R.preventDefault()};return y.jsxs("form",{className:Q(xi.inputWrapper,i&&xi.withOpenCommands,"chat__textInput"),onSubmit:E,children:[y.jsx("div",{className:xi.messageInputWrapper,children:y.jsx("textarea",{id:"user_input",ref:m,className:xi.messageInput,tabIndex:0,placeholder:h("message-input-placeholder"),value:r,onChange:x,onKeyDown:U,"aria-label":h("message-input-label"),"aria-controls":s?"command-list":void 0,"aria-haspopup":s?"listbox":void 0})}),y.jsx("div",{className:Q(xi.buttons,"chat__buttons"),children:r.length||!p||navigator.mediaDevices===void 0?y.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:y.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:y.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&&y.jsx(WC,{translate:h,onAudioRecorded:d})})]})},rN="_quickReplies_83npe_1",aN="_quickReply_83npe_9",Qb={quickReplies:rN,quickReply:aN},iN=({quickReplies:t,onQuickReplyClick:r})=>t.length?y.jsx("div",{className:Q(Qb.quickReplies,"chat__quickReplies"),children:t.map(i=>y.jsx(Su,{tabIndex:0,className:Q(Qb.quickReply,"chat__button","chat__quickReply"),onClick:()=>r(i),children:i.label},i.label))}):null,Kb=5e3,sN=1e3,lN=({isBotTyping:t,quickReplies:r,numberOfMessagesFromGuest:i,commands:s,onTextInput:u,onQuickReplyClick:c,onAudioRecorded:d})=>{const[h,m]=B.useState(""),[p,b]=B.useState(!1),[E,x]=B.useState(!1),U=B.useRef(0),R=B.useRef(0);B.useEffect(()=>{if(p&&!t){const _=U.current?Date.now()-U.current:0;_>Kb?b(!1):setTimeout(()=>{b(!1)},Kb-_)}},[p,t]),B.useEffect(()=>{p&&(U.current=Date.now())},[p]);const F=_=>{const w=Date.now()-R.current<sN;return E?!1:t||w?(b(!0),!1):(u(_),m(""),R.current=Date.now(),!0)},z=_=>{m(_+" ")};return y.jsxs("div",{className:Q(oC.inputContainer),children:[y.jsx(iN,{quickReplies:r,onQuickReplyClick:c}),y.jsx(fC,{visible:p}),!p&&y.jsx(kC,{numberOfMessagesFromGuest:i}),!!s?.length&&y.jsx(bC,{text:h,commands:s,onSelectCommand:z,onVisibilityChange:x}),y.jsx(nN,{textInput:h,disabled:p,commandsVisible:E,hasCommands:!!s?.length,onTextInput:m,onTextInputSubmit:F,onAudioRecorded:d}),!!s?.length&&y.jsx(_C,{commands:s,onSelectCommand:m})]})},oN=({clientName:t,messages:r,quickReplies:i,isBotTyping:s,drawerContentUrl:u,onMessageFromUser:c,onQuickReplyClick:d,onButtonClick:h,onLinkClick:m,onAudioRecorded:p,onTranscriptExport:b,onTranscriptItemReaction:E})=>{const x=Nr(),U=st(H=>H.connection.connectionState),{enableTranscriptExportEmail:R,commands:F}=st(H=>H.settings),{showTranscriptMailOverlay:z,conversationRating:_}=st(H=>H.chat),w=r.filter(H=>H.sender.type===iu.GUEST).length;B.useEffect(()=>{if(U===Ia.CONNECTED){const H=du.parse(window.location.search);x(jv(t,H))}},[t,U,x]);const S=()=>{x(Uv())};return y.jsxs("div",{className:fd.container,children:[y.jsxs("div",{className:Q([fd.chatcontent,(z||_?.opener)&&fd.accessabilityHidden]),children:[y.jsx(k6,{messages:r,isBotTyping:s,commands:F,onButtonClick:h,onLinkClick:m,onTranscriptItemReaction:E}),y.jsx(lN,{isBotTyping:s,quickReplies:s?[]:i,numberOfMessagesFromGuest:w,commands:F,onQuickReplyClick:d,onTextInput:c,onAudioRecorded:p}),y.jsx(W6,{})]}),R&&y.jsx(sC,{visible:!!z,onEmailExport:b,onClose:S}),y.jsx(Z6,{contentUrl:u})]})},uN=t=>{const{messages:r,quickReplies:i,isBotTyping:s,drawerContentUrl:u}=t.chat;return{messages:r,quickReplies:i,isBotTyping:s,drawerContentUrl:u}},cN=t=>({onRestartChat:(r,i)=>t(vu(r,i)),onMessageFromUser:r=>t(uv(r)),onAudioRecorded:r=>t(Tx(r)),onActionFromUser:r=>t(r),onQuickReplyClick:r=>t(ov(r)),onNluEvent:r=>t(mv(r)),onButtonClick:r=>t(Nx(r)),onLinkClick:r=>t(pv(r)),onTranscriptExport:r=>t(xx(r)),onTranscriptItemReaction:(r,i)=>{t(Te.Actions.transcriptItemGuestReaction(r,i?.type||null,i?.category,i?.comment))}}),fN=VS(uN,cN)(oN),a_=()=>{const[t,r]=B.useState(!1);return B.useEffect(()=>{r((()=>{try{return window.self!==window.top}catch{return!0}})())},[]),t},dN=t=>r=>{const i=r.key;(i==="ArrowDown"||i==="ArrowRight"||i==="Enter"||i===" "||i==="Space")&&(r.stopPropagation(),t())},hN=({onClick:t})=>{const r=Ze();return a_()?y.jsx("button",{className:"tooltip--bottom-left","aria-label":r("header.close-chat"),"data-title":r("header.close-chat"),tabIndex:0,onClick:t,onKeyDown:dN(t),children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.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},mN="_header_3gvbz_1",pN="_logoContainer_3gvbz_14",gN="_logo_3gvbz_14",yN="_actions_3gvbz_28",bN="_active_3gvbz_43",vN="_menuContainer_3gvbz_56",_N="_menu_3gvbz_56",EN="_divider_3gvbz_86",sa={header:mN,logoContainer:pN,logo:gN,actions:yN,active:bN,menuContainer:vN,menu:_N,divider:EN},SN=({icon:t})=>{switch(t){case"arrow-counter-clockwise":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.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 y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.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 y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.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 y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.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 y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.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 y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.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 y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.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 y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.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 y.jsx("div",{})}},TN=B.forwardRef(({selected:t,item:r,onClick:i},s)=>{const u=Ze(),c=d=>{d.preventDefault(),i()};return y.jsx("li",{"aria-selected":t,role:"option",className:r.withDivider?sa.divider:void 0,children:y.jsxs("a",{ref:s,type:"button",role:"button",tabIndex:-1,onClick:c,children:[y.jsx(SN,{icon:r.icon}),y.jsx("span",{children:u(`header.menu.${r.id}`)})]})})}),AN=(t,r)=>{const i=a_(),{menuItems:s,enableStandaloneView:u,enableTranscriptExportPdf:c,enableTranscriptExportEmail:d}=st(p=>p.settings),h=st(p=>p.chat.conversationRating.enabled);return B.useMemo(()=>{const p=[],b=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&&b.length)){const E=p.pop();E&&s.length&&p.push({...E,withDivider:!0})}return p.push(...b),p},[t,r,c,d,u,h,i,s])},xN=({chatStarted:t,hasGuestMessages:r})=>{const i=Nr(),s=Ze(),[u,c]=B.useState(!1),[d,h]=B.useState(-1),m=B.useRef(null),p=B.useRef(null),b=B.useRef([]),E=AN(t,r);B.useEffect(()=>{b.current[d]?.focus()},[d]);const x=B.useCallback(()=>{i(au("RESTART_CHAT")),c(!1),h(0)},[i]),U=B.useCallback(z=>{switch(z.type){case"restart-chat":x();break;case"expand-chat-window":window.open(window.location.href,"_blank");break;case"download-transcript":i(Ox());break;case"send-transcript":i(Uv());break;case"rate-conversation":i(au("MENU"));break;case"link":i(pv(z.url));break;case"action":i(JSON.parse(JSON.stringify(z.action)));break}c(!1)},[i,x,c]);B.useEffect(()=>{const z=_=>{if(u)switch(_.key){case"Enter":_.preventDefault(),U(E[d]);break;case"ArrowUp":h(w=>w>0?w-1:E.length-1);break;case"ArrowDown":h(w=>w<E.length-1?w+1:0);break;case"Escape":c(!1);break;case"Tab":d>-1&&c(!1);break}};return document.addEventListener("keydown",z),()=>{document.removeEventListener("keydown",z)}},[u,d,E,h,c,U]),B.useEffect(()=>{u||h(-1)},[u,d]),Zh(p,()=>c(!1));const R=()=>{c(z=>!z)},F=()=>{setTimeout(()=>{const z=document.activeElement;p.current&&!p.current.contains(z)&&c(!1)},0)};return E.length?y.jsxs("div",{className:Q(sa.menuContainer),ref:p,children:[y.jsx("button",{ref:m,className:Q(u&&sa.active,u?"tooltip-hidden":"tooltip--bottom-left"),"aria-label":s("header.menu.title"),"data-title":s("header.menu.title"),onClick:R,onBlur:F,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.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"})})}),u&&y.jsx("nav",{className:sa.menu,"aria-label":s("header.menu.title"),children:y.jsx("ul",{tabIndex:0,children:E.map((z,_)=>y.jsx(TN,{ref:w=>{b.current[_]=w},selected:d===_,item:z,onClick:()=>U(z)},z.id))})})]}):null},$b=({className:t,chatStarted:r,...i})=>{const s=Nr(),u=st(h=>h.chat.conversationRating),c=st(h=>h.chat.messages.some(m=>m.sender.type===Te.UserType.GUEST)),d=()=>{u.enabled&&!u.opener&&c?s(au("CLOSE_CHAT")):s(Bv())};return y.jsxs("div",{className:Q([sa.header,t]),...i,children:[y.jsx("div",{className:sa.logoContainer,children:y.jsx("div",{className:sa.logo})}),y.jsxs("div",{className:sa.actions,children:[y.jsx(xN,{chatStarted:r,hasGuestMessages:c}),y.jsx(hN,{onClick:d})]})]})},ON="_chatwindow_rkbir_1",RN="_chatwindowWithAside_rkbir_21",Wb={chatwindow:ON,chatwindowWithAside:RN},i_=()=>{const[t,r]=B.useState(!1);return B.useEffect(()=>{const i=window.matchMedia("(max-width: 1023px)"),s=()=>r(i.matches);return s(),i.addEventListener("change",s),()=>i.removeEventListener("change",s)},[]),t},wN="_sourceInfos_vei0l_1",CN="_waitForLoading_vei0l_24",NN="_loadingContent_vei0l_28",MN="_sourceHeader_vei0l_37",DN="_sourceHeaderIcon_vei0l_57",LN="_sourceContent_vei0l_61",BN="_openSourceButton_vei0l_69",UN="_sourceButtonLabel_vei0l_79",jN="_closeSourceInfosButton_vei0l_101",HN="_loadingSourceInfos_vei0l_125",IN="_loading_vei0l_28",zN="_loadingError_vei0l_139",GN="_highlightLoadingInfo_vei0l_155",kN="_highlightLoadingInfoInnerContainer_vei0l_169",qN="_highlightLoadingInfoContent_vei0l_178",FN="_highlightLoadingInfoCloseIcon_vei0l_198",VN="_highlightLoader_vei0l_203",PN="_highlightLoaderLoading_vei0l_210",Et={sourceInfos:wN,waitForLoading:CN,loadingContent:NN,sourceHeader:MN,sourceHeaderIcon:DN,sourceContent:LN,openSourceButton:BN,sourceButtonLabel:UN,closeSourceInfosButton:jN,loadingSourceInfos:HN,loading:IN,loadingError:zN,highlightLoadingInfo:GN,highlightLoadingInfoInnerContainer:kN,highlightLoadingInfoContent:qN,highlightLoadingInfoCloseIcon:FN,highlightLoader:VN,highlightLoaderLoading:PN},YN=({onClick:t})=>{const r=Ze();return y.jsx("button",{className:Q(Et.closeSourceInfosButton,"tooltip--bottom-left"),"aria-label":r("source-infos.close"),"data-title":r("source-infos.close"),tabIndex:0,onClick:t,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.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"})})})},XN=B.forwardRef(({sourceInfos:t,onClose:r,...i},s)=>y.jsxs("div",{className:Et.sourceHeader,...i,ref:s,children:[y.jsx("div",{children:t?y.jsx("p",{id:"source-info-title",children:t.title}):y.jsx("p",{children:" "})}),y.jsx(YN,{onClick:r})]})),ZN=({loading:t})=>y.jsx("div",{className:Et.highlightLoader,children:t&&y.jsx("div",{className:Et.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:s_,setPrototypeOf:Jb,isFrozen:QN,getPrototypeOf:KN,getOwnPropertyDescriptor:$N}=Object;let{freeze:Gt,seal:Tn,create:l_}=Object,{apply:ch,construct:fh}=typeof Reflect<"u"&&Reflect;Gt||(Gt=function(r){return r});Tn||(Tn=function(r){return r});ch||(ch=function(r,i,s){return r.apply(i,s)});fh||(fh=function(r,i){return new r(...i)});const zo=kt(Array.prototype.forEach),WN=kt(Array.prototype.lastIndexOf),e1=kt(Array.prototype.pop),qs=kt(Array.prototype.push),JN=kt(Array.prototype.splice),Yo=kt(String.prototype.toLowerCase),Bd=kt(String.prototype.toString),t1=kt(String.prototype.match),Fs=kt(String.prototype.replace),e3=kt(String.prototype.indexOf),t3=kt(String.prototype.trim),Hn=kt(Object.prototype.hasOwnProperty),Ht=kt(RegExp.prototype.test),Vs=n3(TypeError);function kt(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 ch(t,r,s)}}function n3(t){return function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return fh(t,i)}}function Re(t,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Yo;Jb&&Jb(t,null);let s=r.length;for(;s--;){let u=r[s];if(typeof u=="string"){const c=i(u);c!==u&&(QN(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 Tr(t){const r=l_(null);for(const[i,s]of s_(t))Hn(t,i)&&(Array.isArray(s)?r[i]=r3(s):s&&typeof s=="object"&&s.constructor===Object?r[i]=Tr(s):r[i]=s);return r}function Ps(t,r){for(;t!==null;){const s=$N(t,r);if(s){if(s.get)return kt(s.get);if(typeof s.value=="function")return kt(s.value)}t=KN(t)}function i(){return null}return i}const n1=Gt(["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"]),Ud=Gt(["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"]),jd=Gt(["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"]),a3=Gt(["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"]),Hd=Gt(["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"]),i3=Gt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),r1=Gt(["#text"]),a1=Gt(["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"]),Id=Gt(["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"]),i1=Gt(["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"]),Go=Gt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),s3=Tn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),l3=Tn(/<%[\w\W]*|[\w\W]*%>/gm),o3=Tn(/\$\{[\w\W]*/gm),u3=Tn(/^data-[\-\w.\u00B7-\uFFFF]+$/),c3=Tn(/^aria-[\-\w]+$/),o_=Tn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),f3=Tn(/^(?:\w+script|data):/i),d3=Tn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),u_=Tn(/^html$/i),h3=Tn(/^[a-z][.\w]*(-[.\w]+)+$/i);var s1=Object.freeze({__proto__:null,ARIA_ATTR:c3,ATTR_WHITESPACE:d3,CUSTOM_ELEMENT:h3,DATA_ATTR:u3,DOCTYPE_NAME:u_,ERB_EXPR:l3,IS_ALLOWED_URI:o_,IS_SCRIPT_OR_DATA:f3,MUSTACHE_EXPR:s3,TMPLIT_EXPR:o3});const Ys={element:1,text:3,progressingInstruction:7,comment:8,document:9},m3=function(){return typeof window>"u"?null:window},p3=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}},l1=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function c_(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:m3();const r=le=>c_(le);if(r.version="3.2.6",r.removed=[],!t||!t.document||t.document.nodeType!==Ys.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:b=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:E,DOMParser:x,trustedTypes:U}=t,R=m.prototype,F=Ps(R,"cloneNode"),z=Ps(R,"remove"),_=Ps(R,"nextSibling"),w=Ps(R,"childNodes"),S=Ps(R,"parentNode");if(typeof d=="function"){const le=i.createElement("template");le.content&&le.content.ownerDocument&&(i=le.content.ownerDocument)}let H,A="";const{implementation:Z,createNodeIterator:W,createDocumentFragment:ae,getElementsByTagName:ye}=i,{importNode:Ee}=s;let se=l1();r.isSupported=typeof s_=="function"&&typeof S=="function"&&Z&&Z.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:me,ERB_EXPR:ce,TMPLIT_EXPR:Pe,DATA_ATTR:ve,ARIA_ATTR:G,IS_SCRIPT_OR_DATA:K,ATTR_WHITESPACE:ee,CUSTOM_ELEMENT:Ae}=s1;let{IS_ALLOWED_URI:O}=s1,k=null;const $=Re({},[...n1,...Ud,...jd,...Hd,...r1]);let Y=null;const te=Re({},[...a1,...Id,...i1,...Go]);let re=Object.seal(l_(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,We=null,Ue=!0,St=!0,Gn=!1,Mr=!0,Qe=!1,qt=!0,On=!1,Di=!1,Li=!1,Tt=!1,qa=!1,ua=!1,Bi=!0,ca=!1;const Ou="user-content-";let Fa=!0,fa=!1,Dr={},dn=null;const Nt=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 Rn=null;const Mt=Re({},["audio","video","img","source","image","track"]);let Ui=null;const al=Re({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Va="http://www.w3.org/1998/Math/MathML",nr="http://www.w3.org/2000/svg",Ft="http://www.w3.org/1999/xhtml";let Vt=Ft,Lr=!1,rr=null;const Ru=Re({},[Va,nr,Ft],Bd);let da=Re({},["mi","mo","mn","ms","mtext"]),ha=Re({},["annotation-xml"]);const ji=Re({},["title","style","font","a","script"]);let wn=null;const wu=["application/xhtml+xml","text/html"],il="text/html";let rt=null,kn=null;const Hi=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(!(kn&&kn===N)){if((!N||typeof N!="object")&&(N={}),N=Tr(N),wn=wu.indexOf(N.PARSER_MEDIA_TYPE)===-1?il:N.PARSER_MEDIA_TYPE,rt=wn==="application/xhtml+xml"?Bd:Yo,k=Hn(N,"ALLOWED_TAGS")?Re({},N.ALLOWED_TAGS,rt):$,Y=Hn(N,"ALLOWED_ATTR")?Re({},N.ALLOWED_ATTR,rt):te,rr=Hn(N,"ALLOWED_NAMESPACES")?Re({},N.ALLOWED_NAMESPACES,Bd):Ru,Ui=Hn(N,"ADD_URI_SAFE_ATTR")?Re(Tr(al),N.ADD_URI_SAFE_ATTR,rt):al,Rn=Hn(N,"ADD_DATA_URI_TAGS")?Re(Tr(Mt),N.ADD_DATA_URI_TAGS,rt):Mt,dn=Hn(N,"FORBID_CONTENTS")?Re({},N.FORBID_CONTENTS,rt):Nt,ue=Hn(N,"FORBID_TAGS")?Re({},N.FORBID_TAGS,rt):Tr({}),We=Hn(N,"FORBID_ATTR")?Re({},N.FORBID_ATTR,rt):Tr({}),Dr=Hn(N,"USE_PROFILES")?N.USE_PROFILES:!1,Ue=N.ALLOW_ARIA_ATTR!==!1,St=N.ALLOW_DATA_ATTR!==!1,Gn=N.ALLOW_UNKNOWN_PROTOCOLS||!1,Mr=N.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Qe=N.SAFE_FOR_TEMPLATES||!1,qt=N.SAFE_FOR_XML!==!1,On=N.WHOLE_DOCUMENT||!1,Tt=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||o_,Vt=N.NAMESPACE||Ft,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),Qe&&(St=!1),qa&&(Tt=!0),Dr&&(k=Re({},r1),Y=[],Dr.html===!0&&(Re(k,n1),Re(Y,a1)),Dr.svg===!0&&(Re(k,Ud),Re(Y,Id),Re(Y,Go)),Dr.svgFilters===!0&&(Re(k,jd),Re(Y,Id),Re(Y,Go)),Dr.mathMl===!0&&(Re(k,Hd),Re(Y,i1),Re(Y,Go))),N.ADD_TAGS&&(k===$&&(k=Tr(k)),Re(k,N.ADD_TAGS,rt)),N.ADD_ATTR&&(Y===te&&(Y=Tr(Y)),Re(Y,N.ADD_ATTR,rt)),N.ADD_URI_SAFE_ATTR&&Re(Ui,N.ADD_URI_SAFE_ATTR,rt),N.FORBID_CONTENTS&&(dn===Nt&&(dn=Tr(dn)),Re(dn,N.FORBID_CONTENTS,rt)),Fa&&(k["#text"]=!0),On&&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 Vs('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof N.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Vs('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');H=N.TRUSTED_TYPES_POLICY,A=H.createHTML("")}else H===void 0&&(H=p3(U,u)),H!==null&&typeof A=="string"&&(A=H.createHTML(""));Gt&&Gt(N),kn=N}},Cn=Re({},[...Ud,...jd,...a3]),ht=Re({},[...Hd,...i3]),Dt=function(N){let X=S(N);(!X||!X.tagName)&&(X={namespaceURI:Vt,tagName:"template"});const J=Yo(N.tagName),Fe=Yo(X.tagName);return rr[N.namespaceURI]?N.namespaceURI===nr?X.namespaceURI===Ft?J==="svg":X.namespaceURI===Va?J==="svg"&&(Fe==="annotation-xml"||da[Fe]):!!Cn[J]:N.namespaceURI===Va?X.namespaceURI===Ft?J==="math":X.namespaceURI===nr?J==="math"&&ha[Fe]:!!ht[J]:N.namespaceURI===Ft?X.namespaceURI===nr&&!ha[Fe]||X.namespaceURI===Va&&!da[Fe]?!1:!ht[J]&&(ji[J]||!Cn[J]):!!(wn==="application/xhtml+xml"&&rr[N.namespaceURI]):!1},At=function(N){qs(r.removed,{element:N});try{S(N).removeChild(N)}catch{z(N)}},qn=function(N,X){try{qs(r.removed,{attribute:X.getAttributeNode(N),from:X})}catch{qs(r.removed,{attribute:null,from:X})}if(X.removeAttribute(N),N==="is")if(Tt||qa)try{At(X)}catch{}else try{X.setAttribute(N,"")}catch{}},sl=function(N){let X=null,J=null;if(Li)N="<remove></remove>"+N;else{const Je=t1(N,/^[\r\n\t ]+/);J=Je&&Je[0]}wn==="application/xhtml+xml"&&Vt===Ft&&(N='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+N+"</body></html>");const Fe=H?H.createHTML(N):N;if(Vt===Ft)try{X=new x().parseFromString(Fe,wn)}catch{}if(!X||!X.documentElement){X=Z.createDocument(Vt,"template",null);try{X.documentElement.innerHTML=Lr?A:Fe}catch{}}const mt=X.body||X.documentElement;return N&&J&&mt.insertBefore(i.createTextNode(J),mt.childNodes[0]||null),Vt===Ft?ye.call(X,On?"html":"body")[0]:On?X.documentElement:mt},ll=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 b)||typeof N.removeAttribute!="function"||typeof N.setAttribute!="function"||typeof N.namespaceURI!="string"||typeof N.insertBefore!="function"||typeof N.hasChildNodes!="function")},Br=function(N){return typeof h=="function"&&N instanceof h};function Kt(le,N,X){zo(le,J=>{J.call(r,N,X,kn)})}const ar=function(N){let X=null;if(Kt(se.beforeSanitizeElements,N,null),Pa(N))return At(N),!0;const J=rt(N.nodeName);if(Kt(se.uponSanitizeElement,N,{tagName:J,allowedTags:k}),qt&&N.hasChildNodes()&&!Br(N.firstElementChild)&&Ht(/<[/\w!]/g,N.innerHTML)&&Ht(/<[/\w!]/g,N.textContent)||N.nodeType===Ys.progressingInstruction||qt&&N.nodeType===Ys.comment&&Ht(/<[/\w]/g,N.data))return At(N),!0;if(!k[J]||ue[J]){if(!ue[J]&&Ur(J)&&(re.tagNameCheck instanceof RegExp&&Ht(re.tagNameCheck,J)||re.tagNameCheck instanceof Function&&re.tagNameCheck(J)))return!1;if(Fa&&!dn[J]){const Fe=S(N)||N.parentNode,mt=w(N)||N.childNodes;if(mt&&Fe){const Je=mt.length;for(let Lt=Je-1;Lt>=0;--Lt){const Pt=F(mt[Lt],!0);Pt.__removalCount=(N.__removalCount||0)+1,Fe.insertBefore(Pt,_(N))}}}return At(N),!0}return N instanceof m&&!Dt(N)||(J==="noscript"||J==="noembed"||J==="noframes")&&Ht(/<\/no(script|embed|frames)/i,N.innerHTML)?(At(N),!0):(Qe&&N.nodeType===Ys.text&&(X=N.textContent,zo([me,ce,Pe],Fe=>{X=Fs(X,Fe," ")}),N.textContent!==X&&(qs(r.removed,{element:N.cloneNode()}),N.textContent=X)),Kt(se.afterSanitizeElements,N,null),!1)},ir=function(N,X,J){if(Bi&&(X==="id"||X==="name")&&(J in i||J in Hi))return!1;if(!(St&&!We[X]&&Ht(ve,X))){if(!(Ue&&Ht(G,X))){if(!Y[X]||We[X]){if(!(Ur(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,Fs(J,ee,""))){if(!((X==="src"||X==="xlink:href"||X==="href")&&N!=="script"&&e3(J,"data:")===0&&Rn[N])){if(!(Gn&&!Ht(K,Fs(J,ee,"")))){if(J)return!1}}}}}}return!0},Ur=function(N){return N!=="annotation-xml"&&t1(N,Ae)},sr=function(N){Kt(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 mt=X[Fe],{name:Je,namespaceURI:Lt,value:Pt}=mt,Fn=rt(Je),$t=Pt;let ot=Je==="value"?$t:t3($t);if(J.attrName=Fn,J.attrValue=ot,J.keepAttr=!0,J.forceKeepAttr=void 0,Kt(se.uponSanitizeAttribute,N,J),ot=J.attrValue,ca&&(Fn==="id"||Fn==="name")&&(qn(Je,N),ot=Ou+ot),qt&&Ht(/((--!?|])>)|<\/(style|title)/i,ot)){qn(Je,N);continue}if(J.forceKeepAttr)continue;if(!J.keepAttr){qn(Je,N);continue}if(!Mr&&Ht(/\/>/i,ot)){qn(Je,N);continue}Qe&&zo([me,ce,Pe],lr=>{ot=Fs(ot,lr," ")});const Gi=rt(N.nodeName);if(!ir(Gi,Fn,ot)){qn(Je,N);continue}if(H&&typeof U=="object"&&typeof U.getAttributeType=="function"&&!Lt)switch(U.getAttributeType(Gi,Fn)){case"TrustedHTML":{ot=H.createHTML(ot);break}case"TrustedScriptURL":{ot=H.createScriptURL(ot);break}}if(ot!==$t)try{Lt?N.setAttributeNS(Lt,Je,ot):N.setAttribute(Je,ot),Pa(N)?At(N):e1(r.removed)}catch{qn(Je,N)}}Kt(se.afterSanitizeAttributes,N,null)},lt=function le(N){let X=null;const J=ll(N);for(Kt(se.beforeSanitizeShadowDOM,N,null);X=J.nextNode();)Kt(se.uponSanitizeShadowNode,X,null),ar(X),sr(X),X.content instanceof c&&le(X.content);Kt(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,mt=null;if(Lr=!le,Lr&&(le="<!-->"),typeof le!="string"&&!Br(le))if(typeof le.toString=="function"){if(le=le.toString(),typeof le!="string")throw Vs("dirty is not a string, aborting")}else throw Vs("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 Pt=rt(le.nodeName);if(!k[Pt]||ue[Pt])throw Vs("root node is forbidden and cannot be sanitized in-place")}}else if(le instanceof h)X=sl("<!---->"),J=X.ownerDocument.importNode(le,!0),J.nodeType===Ys.element&&J.nodeName==="BODY"||J.nodeName==="HTML"?X=J:X.appendChild(J);else{if(!Tt&&!Qe&&!On&&le.indexOf("<")===-1)return H&&ua?H.createHTML(le):le;if(X=sl(le),!X)return Tt?null:ua?A:""}X&&Li&&At(X.firstChild);const Je=ll(fa?le:X);for(;Fe=Je.nextNode();)ar(Fe),sr(Fe),Fe.content instanceof c&<(Fe.content);if(fa)return le;if(Tt){if(qa)for(mt=ae.call(X.ownerDocument);X.firstChild;)mt.appendChild(X.firstChild);else mt=X;return(Y.shadowroot||Y.shadowrootmode)&&(mt=Ee.call(s,mt,!0)),mt}let Lt=On?X.outerHTML:X.innerHTML;return On&&k["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&Ht(u_,X.ownerDocument.doctype.name)&&(Lt="<!DOCTYPE "+X.ownerDocument.doctype.name+`>
|
|
111
|
-
`+Lt),Qe&&zo([me,ce,Pe],Pt=>{Lt=Fs(Lt,Pt," ")}),H&&ua?H.createHTML(Lt):Lt},r.setConfig=function(){let le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};zi(le),Di=!0},r.clearConfig=function(){kn=null,Di=!1},r.isValidAttribute=function(le,N,X){kn||zi({});const J=rt(le),Fe=rt(N);return ir(J,Fe,X)},r.addHook=function(le,N){typeof N=="function"&&qs(se[le],N)},r.removeHook=function(le,N){if(N!==void 0){const X=WN(se[le],N);return X===-1?void 0:JN(se[le],X,1)[0]}return e1(se[le])},r.removeHooks=function(le){se[le]=[]},r.removeAllHooks=function(){se=l1()},r}var g3=c_();const y3=({onClose:t})=>{const r=Ze();return y.jsxs("div",{className:Et.highlightLoadingInfo,onClick:t,children:[y.jsx("div",{className:Et.highlightLoadingInfoCloseIcon,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.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"})})}),y.jsxs("div",{className:Et.highlightLoadingInfoInnerContainer,children:[y.jsxs("div",{className:Et.highlightLoadingInfoContent,children:[y.jsx("h3",{children:r("source-infos.highlight-loading.title")}),y.jsx("p",{children:r("source-infos.highlight-loading.description")})]}),y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"#000000",viewBox:"0 0 256 256",children:y.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"})})]})]})},b3=({title:t,href:r,children:i})=>y.jsx("a",{href:r,title:t,target:"_blank",rel:"noopener noreferrer",children:i}),v3=({className:t,children:r,...i})=>y.jsx("a",{className:Q(el.button,el.buttonDefault,t),type:"button",role:"button",...i,children:r}),_3=t=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:y.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"})}),E3=({type:t,...r})=>{switch(t){case"WEBSITE":return y.jsx(Wv,{...r});case"PDF":return y.jsx($v,{...r});case"DOCX":return y.jsx(Qv,{...r});case"TEXT":return y.jsx(_3,{...r});default:return y.jsx(Kv,{...r})}},S3=({url:t,knowledgeBaseType:r})=>{const i=Ze();return y.jsx(v3,{className:Et.openSourceButton,href:t,target:"_blank",children:y.jsxs("div",{className:Et.sourceButtonLabel,children:[y.jsx("div",{className:Et.sourceHeaderIcon,children:y.jsx(E3,{type:r})}),y.jsx("p",{children:i("source-infos.open-source")})]})})},T3=({sourceInfos:{content:t,url:r,knowledgeBaseType:i,highlighted:s}})=>{const[u,c]=B.useState(!s);B.useEffect(()=>{s&&c(!1)},[s]);const d=g3.sanitize(t,{USE_PROFILES:{html:!0}});return y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:Q(Et.sourceContent,e_.markdown),children:[y.jsx(Or,{options:{overrides:{a:b3}},children:d}),u&&y.jsx(y3,{onClose:()=>c(!1)})]}),y.jsx(S3,{url:r,knowledgeBaseType:i})]})},A3=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,x3=()=>{const t=Ze();return y.jsxs("div",{className:Et.loadingError,children:[y.jsx("h1",{children:t("source-infos.error.title")}),y.jsx("img",{src:A3,title:t("source-infos.error.title")}),y.jsx("p",{children:t("source-infos.error.info")})]})},O3=()=>y.jsx("div",{className:Et.loadingSourceInfos,children:y.jsx("svg",{className:Et.loading,xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.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 R3({sourceInfos:t,onClose:r,threshold:i=100}){const s=B.useRef(null),[u,c]=B.useState(0),[d,h]=B.useState(!1),m=B.useRef(null),p=B.useRef(null),b=B.useCallback(R=>{m.current=R,h(!0)},[]),E=B.useCallback(R=>{if(m.current!==null&&d){const F=R-m.current;F>0&&c(F)}},[d]),x=B.useCallback(()=>{h(!1),u>i&&r(),c(0),m.current=null},[u,i,r]),U=B.useCallback(R=>{const F=A=>b(A.touches[0].clientY),z=A=>E(A.touches[0].clientY),_=()=>x(),w=A=>{A.preventDefault(),b(A.clientY),window.addEventListener("mousemove",S),window.addEventListener("mouseup",H)},S=A=>E(A.clientY),H=()=>{x(),window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",H)};R.addEventListener("touchstart",F),R.addEventListener("touchmove",z),R.addEventListener("touchend",_),R.addEventListener("mousedown",w),p.current=()=>{R.removeEventListener("touchstart",F),R.removeEventListener("touchmove",z),R.removeEventListener("touchend",_),R.removeEventListener("mousedown",w),window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",H)}},[b,E,x]);return B.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]=B.useState(!0);return B.useEffect(()=>{let s=null;return t?.type==="loading"?(i(!0),s=setTimeout(()=>{i(!1)},300)):i(!t),()=>{s&&clearTimeout(s)}},[t]),r},C3=()=>{const t=Nr(),r=st(m=>m.chat.sourceInfos),i=i_(),s=B.useRef(null),u=w3(r);B.useEffect(()=>{s.current&&r?.type==="loading"&&(i?s.current.showModal():(s.current.setAttribute("open","true"),s.current?.focus()))},[r,i]);const c=B.useCallback(()=>{s.current&&(i?s.current.close():s.current.removeAttribute("open"),t(OO()))},[t,i]),{ref:d,dragOffsetY:h}=R3({onClose:c,sourceInfos:r});return r?y.jsx("dialog",{ref:s,className:Q(Et.sourceInfos,u?Et.waitForLoading:r.type==="loading"?Et.loadingContent:""),style:i&&h?{transform:`translateY(${h}px)`}:{},onClose:c,autoFocus:!0,role:"dialog","aria-labelledby":"source-info-title",children:u?null:y.jsxs(y.Fragment,{children:[y.jsx(XN,{ref:d,tabIndex:-1,sourceInfos:r.type==="loaded"?r:void 0,onClose:c}),r.type==="loading"?y.jsx(O3,{}):r.type==="loading-error"?y.jsx(x3,{}):y.jsxs(y.Fragment,{children:[y.jsx(ZN,{loading:!r.highlighted}),y.jsx(T3,{sourceInfos:r})]})]})}):null},N3="_container_1aof3_1",M3="_body_1aof3_7",D3="_intro_1aof3_14",L3="_footer_1aof3_39",B3="_footnote_1aof3_43",U3="_containerWithFootnote_1aof3_58",j3="_startChatButton_1aof3_73",H3="_spinner_1aof3_88",I3="_formFields_1aof3_92",z3="_formField_1aof3_92",G3="_radio_1aof3_104",k3="_checkbox_1aof3_111",q3="_input_1aof3_119",F3="_inputLabel_1aof3_153",V3="_selectWrapper_1aof3_157",P3="_select_1aof3_157",Y3="_selectLabel_1aof3_203",_t={container:N3,body:M3,intro:D3,footer:L3,footnote:B3,containerWithFootnote:U3,startChatButton:j3,spinner:H3,formFields:I3,formField:z3,radio:G3,checkbox:k3,input:q3,inputLabel:F3,selectWrapper:V3,select:P3,selectLabel:Y3},X3=({name:t,label:r,defaultValue:i,required:s,onChange:u})=>{const c=d=>{u(d.currentTarget.checked?"true":"false")};return y.jsxs("label",{className:Q(_t.checkbox,"chat__startScreen__checkbox"),htmlFor:t,children:[y.jsx("input",{type:"checkbox",id:t,name:t,defaultChecked:i==="true",required:s,onChange:c}),y.jsx("div",{children:r})]})},Z3=({type:t,name:r,label:i,defaultValue:s,placeholder:u,required:c,multiple:d,min:h,max:m,pattern:p,onChange:b})=>{const E=x=>{b(x.target.value)};return y.jsxs("label",{className:Q(_t.input,"chat__startScreen__input"),htmlFor:r,children:[y.jsx("div",{className:Q(_t.inputLabel),children:i}),y.jsx("input",{type:t,id:r,name:r,defaultValue:s,placeholder:u,required:c,multiple:d,min:h,max:m,pattern:p,onChange:E})]})},Q3=({name:t,value:r,label:i,defaultChecked:s,required:u,onChange:c})=>{const d=`${t}-${r}`,h=m=>{c(m.target.value)};return y.jsxs("label",{className:Q(_t.radio,"chat__startScreen__radio"),htmlFor:d,children:[y.jsx("input",{id:d,type:"radio",name:t,value:r,defaultChecked:s,required:u,onChange:h}),y.jsx("span",{className:Q(_t.label),children:i})]})},K3=({name:t,label:r,defaultValue:i,required:s,multiple:u,options:c,onChange:d})=>{const h=m=>{d(m.target.value)};return y.jsxs("label",{className:Q(_t.select,"chat__startScreen__select"),htmlFor:t,children:[y.jsx("div",{className:Q(_t.selectLabel),children:r}),y.jsx("div",{className:Q(_t.selectWrapper),children:y.jsx("select",{id:t,name:t,defaultValue:i,required:s,multiple:u,onChange:h,children:Object.entries(c||{}).map(([m,p])=>y.jsx("option",{value:m,selected:p===i,children:p}))})})]})},$3="start-screen.intro",W3="start-screen.start-chat",J3="start-screen.waiting-for-login",e8="start-screen.footnote",jn="start-screen.form",o1=`${jn}.fields`,t8=()=>{const t=Ze(),r=Nr(),i=Tu(),s=st(R=>R.startScreen.loginRequestToken),u=st(R=>R.settings.requiresUserAuthentication);B.useEffect(()=>{let R;if(s){const _=window.screenX+(window.outerWidth-600)/2,w=window.screenY+(window.outerHeight-700)/2,S=window.open(`/${i}/auth/login?loginRequestToken=${s}`,"Login",`width=600,height=700,left=${_},top=${w},resizable=yes,scrollbars=yes`);R=setInterval(()=>{S?.closed&&(r(SO()),clearInterval(R))},500)}return()=>{R&&clearInterval(R)}},[i,s,r]);const[c,d]=B.useState({}),h=()=>{const R=Object.entries(c).reduce((F,[z,_])=>({...F,[z]:_.value}),{});r(u?EO({loginRequestToken:Wo(),formValues:R}):bO({formValues:R}))},m=t($3),p=t(s?J3:W3),b=t(e8),E=B.useMemo(()=>t(o1)?.split(";").map(R=>R.trim())??[],[t(o1)]);B.useEffect(()=>{E.length&&Object.keys(c).length===0&&d(E.reduce((R,F)=>({...R,[F]:n8(F,t)}),{}))},[t,E,c]);const x=R=>{R.preventDefault(),h()},U=R=>F=>{d(z=>({...z,[R]:{...z[R],value:F}}))};return y.jsxs("form",{onSubmit:x,className:Q(_t.container,b&&_t.containerWithFootnote,"chat__startScreen"),children:[y.jsxs("div",{className:Q(_t.body,"chat__startScreen__body"),children:[m&&y.jsx("div",{className:Q(_t.intro,"chat__startScreen__intro"),children:y.jsx(Or,{options:{overrides:{a:u1}},children:m})}),y.jsx("div",{className:Q(_t.formFields,"chat__startScreen__fields"),children:Object.values(c).map(({type:R,name:F,label:z,placeholder:_,defaultValue:w,options:S,required:H,multiple:A,min:Z,max:W,pattern:ae})=>y.jsx("div",{className:Q(_t.formField,"chat__startScreen__field"),children:(()=>{switch(R){case"radio":return y.jsxs(y.Fragment,{children:[y.jsx("div",{children:z}),Object.entries(S||{}).map(([ye,Ee])=>y.jsx(Q3,{name:F,value:ye,label:Ee,defaultChecked:ye===w,required:H,onChange:U(F)},ye))]});case"checkbox":return y.jsx(X3,{name:F,label:z,defaultValue:w,required:H,onChange:U(F)});case"select":return y.jsx(K3,{name:F,label:z,defaultValue:w,required:H,multiple:A,options:S,onChange:U(F)});default:return y.jsx(Z3,{type:R,name:F,label:z,placeholder:_,defaultValue:w,required:H,multiple:A,min:Z,max:W,pattern:ae,onChange:U(F)})}})()},F))})]}),y.jsxs("div",{className:Q(_t.footer,"chat__startScreen__footer"),children:[y.jsxs(su,{type:"submit",className:_t.startChatButton,disabled:!!s,children:[!!s&&y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",className:_t.spinner,children:y.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"})}),y.jsx("div",{children:p})]}),b&&y.jsx("div",{className:_t.footnote,children:y.jsx(Or,{options:{overrides:{a:u1}},children:b})})]})]})},u1=({title:t,href:r,children:i})=>y.jsx("a",{href:r,title:t,target:"_blank",rel:"noopener noreferrer",children:i}),n8=(t,r)=>{const i=r(`${jn}.${t}.type`)||"text",s=r(`${jn}.${t}.required`)==="true",u=r(`${jn}.${t}.multiple`)==="true",c=r(`${jn}.${t}.placeholder`),d=r(`${jn}.${t}.label`)||"",h=r(`${jn}.${t}.defaultValue`),m=r(`${jn}.${t}.min`),p=r(`${jn}.${t}.max`),b=r(`${jn}.${t}.pattern`),E=a8(r(`${jn}.${t}.options`));return{name:t,label:d,placeholder:c,value:r8(i,h,E)||"",defaultValue:h,options:E,type:i,required:s,multiple:u,min:m,max:p,pattern:b}},r8=(t,r,i)=>r||t==="select"&&Object.keys(i)[0]||"",a8=(t="")=>t.split(";").map(r=>r.trim()).reduce((r,i)=>{const[s,u]=i.split(":").map(c=>c.trim());return{...r,[s]:u}},{}),i8=()=>{const t=fu();B.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"},s8=({clientName:t})=>{i8();const r=Nr(),i=st(b=>b.intl.messages),s=Ze(),u=st(b=>b.settings.enableStartScreen),c=st(b=>b.startScreen.startScreenStatus),[d,h]=B.useState(void 0);B.useEffect(()=>{const b=du.parse(window.location.search);b.cssClassName&&h(b.cssClassName);const E=x=>{switch(x.data.type){case Oi.TRIGGER_ACTION:r(x.data.action);break;case Oi.TRIGGER_STORY:r(mv(x.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(uv(x.data.text));break;case Oi.RESTART_CHAT:r(vu(t,b));break}};return r(wO(t,b)),window.addEventListener("message",x=>E(x),!1),()=>window.removeEventListener("message",E)},[t,r]),B.useEffect(()=>{const b=s("page.title");b&&document&&(document.title=b)},[i,s]);const m=u===void 0,p=u===!1||c==="HIDDEN";return y.jsx("div",{className:Q(Wb.chatwindow,p&&Wb.chatwindowWithAside,"chat__chatwindow",d),children:m?null:p?y.jsxs(y.Fragment,{children:[y.jsx("header",{children:y.jsx($b,{chatStarted:!0})}),y.jsx("main",{children:y.jsx(fN,{clientName:t})}),y.jsx("aside",{children:y.jsx(C3,{})})]}):y.jsxs(y.Fragment,{children:[y.jsx("header",{children:y.jsx($b,{chatStarted:!1})}),y.jsx("main",{children:y.jsx(t8,{})})]})})},l8=()=>{const t=Tu(),r=i_(),i=st(u=>u.intl.locale),s=st(u=>u.intl.messages);return y.jsx(MA,{locale:i,messages:s,onError:()=>{},children:y.jsx("div",{className:Q([LA.app,r?"chat__small":"chat__large"]),children:y.jsx(s8,{clientName:t})})})};var zd,c1;function o8(){if(c1)return zd;c1=1;var t=Xv(),r=Qh(),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 zd=s,zd}var u8=o8();const c8=ou(u8);function f8(t){return t&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function d8(t){return t}function h8(t,r){r=r||{};const i=r.delimiter||".",s=r.maxDepth,u=r.transformKey||d8,c={};function d(h,m,p){p=p||1,Object.keys(h).forEach(function(b){const E=h[b],x=r.safe&&Array.isArray(E),U=Object.prototype.toString.call(E),R=f8(E),F=U==="[object Object]"||U==="[object Array]",z=m?m+i+u(b):u(b);if(!x&&!R&&F&&Object.keys(E).length&&(!r.maxDepth||p<s))return d(E,z,p+1);c[z]=E})}return d(t),c}const f_={"page.title":"Bubble Chat Chatbot","message-input-label":"Benutzereingabe","message-input-placeholder":"Nachricht eingeben","message-input.actions.submit.label":"Nachricht senden","message-input.actions.start-audio-recording.label":"Spracheingabe starten","message-input.actions.stop-audio-recording.label":"Spracheingabe stoppen","message-input.actions.submit-audio-recording.label":"Spracheingabe übermitteln","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.reaction.say-more":"Erzähle mir bitte mehr","bot-bubble.reaction.category.WRONG_INFORMATION":"Falsch","bot-bubble.reaction.category.MISSING_INFORMATION":"Unvollständig","bot-bubble.reaction.category.OLD_INFORMATION":"Veraltet","bot-bubble.reaction.category.UNCLEAR":"Unklar","bot-bubble.reaction.category.OFF_TOPIC":"Nicht zur Frage passend","bot-bubble.reaction.comment":"Gedanken mit mir teilen...","bot-bubble.reaction.close":"Schliessen","bot-bubble.copy":"Kopieren","bot-bubble.sources":"Quellenliste","bot-bubble.source.open":"Quelle öffnen","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:
|
|
108
|
+
`,!c.some(Z=>Z.test(A))&&(S+=A,!!A.trim())));const H=$s(S);return H===""?null:[S,,H]}),i:3,u:hd,l:(E,w,S)=>h("p",{key:S.key},w(E.children,S))},22:{t:["["],o:aa(mR),i:0,u:E=>(_[E[1]]={target:E[2],title:E[4]},{}),l:pd},23:{t:["!["],o:ia(pR),i:0,u:E=>({alt:E[1]?Qn(E[1]):void 0,ref:E[2]}),l:(E,w,S)=>_[E.ref]?h("img",{key:S.key,alt:E.alt,src:s(_[E.ref].target,"img","src"),title:_[E.ref].title}):null},24:{t:E=>E[0]==="["&&E.indexOf("](")===-1,o:aa(gR),i:0,u:(E,w,S)=>({children:w(E[1],S),fallbackChildren:E[0],ref:E[2]}),l:(E,w,S)=>_[E.ref]?h("a",{key:S.key,href:s(_[E.ref].target,"a","href"),title:_[E.ref].title},w(E.children,S)):h("span",{key:S.key},E.fallbackChildren)},25:{t:["|"],o:Sr(Ab),i:1,u:qR,l(E,w,S){const H=E;return h("table",{key:S.key},h("thead",null,h("tr",null,H.header.map(function(A,Z){return h("th",{key:Z,style:Rb(H,Z)},w(A,S))}))),h("tbody",null,H.cells.map(function(A,Z){return h("tr",{key:Z},A.map(function(W,ae){return h("td",{key:ae,style:Rb(H,ae)},w(W,S))}))})))}},27:{o:Ci(function(E,w){let S;return Po(E,":")&&(S=RR.exec(E)),S||NR.exec(E)}),i:4,u(E){const w=E[0];return{text:w.indexOf("&")===-1?w:w.replace(sR,(S,H)=>r.namedCodesToUnicode[H]||S)}},l:E=>E.text},28:{t:["**","__"],o:ia(TR),i:2,u:(E,w,S)=>({children:w(E[2],S)}),l:(E,w,S)=>h("strong",{key:S.key},w(E.children,S))},29:{t:E=>{const w=E[0];return(w==="*"||w==="_")&&E[1]!==w},o:ia(AR),i:3,u:(E,w,S)=>({children:w(E[2],S)}),l:(E,w,S)=>h("em",{key:S.key},w(E.children,S))},30:{t:["\\"],o:ia(wR),i:1,u:E=>({text:E[1],type:"27"})},31:{t:["=="],o:ia(xR),i:3,u:hd,l:(E,w,S)=>h("mark",{key:S.key},w(E.children,S))},32:{t:["~~"],o:ia(OR),i:3,u:hd,l:(E,w,S)=>h("del",{key:S.key},w(E.children,S))}};r.disableParsingRawHTML===!0&&(delete x[11],delete x[13]);const U=(function(E){var w=Object.keys(E);function S(H,A){var Z=[];if(A.prevCapture=A.prevCapture||"",H.trim())for(;H;)for(var W=0;W<w.length;){var ae=w[W],ye=E[ae];if(!ye.t||GR(H,A,ye.t)){var Ee=ye.o(H,A);if(Ee&&Ee[0]){H=H.substring(Ee[0].length);var se=ye.u(Ee,S,A);A.prevCapture+=Ee[0],se.type||(se.type=ae),Z.push(se);break}W++}else W++}return A.prevCapture="",Z}return w.sort(function(H,A){return E[H].i-E[A].i||(H<A?-1:1)}),function(H,A){return S((function(Z){return Z.replace(eR,`
|
|
109
|
+
`).replace(rR,"").replace(bR," ")})(H),A)}})(x),R=(q=(function(E,w){return function(S,H,A){const Z=E[S.type].l;return w?w(()=>Z(S,H,A),S,H,A):Z(S,H,A)}})(x,r.renderRule),function E(w,S={}){if(Array.isArray(w)){const H=S.key,A=[];let Z=!1;for(let W=0;W<w.length;W++){S.key=W;const ae=E(w[W],S),ye=typeof ae=="string";ye&&Z?A[A.length-1]+=ae:ae!==null&&A.push(ae),Z=ye}return S.key=H,A}return q(w,E,S)});var q;const z=m(t);return b.length?h("div",null,z,h("footer",{key:"footer"},b.map(function(E){return h("div",{id:i(E.identifier,Is),key:E.identifier},E.identifier,R(U(E.footnote,{inline:!0})))}))):z}const Or=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,kO);return B.cloneElement(ZR(r,i),s)},QR="_generalConditionsContainer_55hjg_1",KR="_generalConditions_55hjg_1",$R="_generalConditionsHeader_55hjg_15",WR="_generalConditionsBody_55hjg_26",JR="_generalConditionsAccept_55hjg_35",zs={generalConditionsContainer:QR,generalConditions:KR,generalConditionsHeader:$R,generalConditionsBody:WR,generalConditionsAccept:JR},ew=()=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:y.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"})}),tw=()=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:y.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"})}),nw="general-conditions.header",rw="general-conditions.body",wb="general-conditions.accept-conditions-note",aw=()=>{const t=Ze(),[r,i]=B.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(nw),d=t(wb);return y.jsxs("div",{className:Q(zs.generalConditionsContainer,"chat__generalConditions"),children:[!!c?.length&&y.jsxs("div",{className:zs.generalConditions,children:[y.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:[y.jsx(Or,{children:c}),r?y.jsx(tw,{}):y.jsx(ew,{})]}),y.jsx("div",{className:Q(zs.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:r&&y.jsx(Or,{children:t(rw)||""})})]}),!!d?.length&&y.jsx("div",{className:Q(zs.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:y.jsx(Or,{children:t(wb)||""})})]})},iw="_messageContainer_1rxi5_1",sw="_message_1rxi5_1",lw="_messageBot_1rxi5_14",ow="_messageBotLast_1rxi5_45",uw="_avatar_1rxi5_45",cw="_messageBotFirst_1rxi5_54",fw="_messageBotAnimated_1rxi5_67",dw="_messageGuest_1rxi5_78",hw="_messageGuestFirst_1rxi5_84",mw="_messageGuestLast_1rxi5_90",pw="_botAvatar_1rxi5_104",gw="_agentAvatar_1rxi5_108",yw="_bubble_1rxi5_112",bw="_bubbleContent_1rxi5_118",vw="_bubbleLeft_1rxi5_132",_w="_leftText_1rxi5_143",Ew="_bubbleRight_1rxi5_150",Sw="_rightText_1rxi5_160",Tw="_sourceInfoReference_1rxi5_192",Aw="_sourceInfoReferenceActive_1rxi5_204",ge={messageContainer:iw,message:sw,messageBot:lw,messageBotLast:ow,avatar:uw,messageBotFirst:cw,messageBotAnimated:fw,messageGuest:dw,messageGuestFirst:hw,messageGuestLast:mw,botAvatar:pw,agentAvatar:gw,bubble:yw,bubbleContent:bw,bubbleLeft:vw,leftText:_w,bubbleRight:Ew,rightText:Sw,sourceInfoReference:Tw,sourceInfoReferenceActive:Aw},Zh=(t,r)=>{B.useEffect(()=>{const i=s=>{t.current&&!t.current.contains(s.target)&&r()};return document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)},[t,r])};var yd,Cb;function Qh(){if(Cb)return yd;Cb=1;function t(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}return yd=t,yd}var bd,Nb;function xw(){if(Nb)return bd;Nb=1;var t=typeof bo=="object"&&bo&&bo.Object===Object&&bo;return bd=t,bd}var vd,Mb;function Yv(){if(Mb)return vd;Mb=1;var t=xw(),r=typeof self=="object"&&self&&self.Object===Object&&self,i=t||r||Function("return this")();return vd=i,vd}var _d,Db;function Ow(){if(Db)return _d;Db=1;var t=Yv(),r=function(){return t.Date.now()};return _d=r,_d}var Ed,Lb;function Rw(){if(Lb)return Ed;Lb=1;var t=/\s/;function r(i){for(var s=i.length;s--&&t.test(i.charAt(s)););return s}return Ed=r,Ed}var Sd,Bb;function ww(){if(Bb)return Sd;Bb=1;var t=Rw(),r=/^\s+/;function i(s){return s&&s.slice(0,t(s)+1).replace(r,"")}return Sd=i,Sd}var Td,Ub;function Xv(){if(Ub)return Td;Ub=1;var t=Yv(),r=t.Symbol;return Td=r,Td}var Ad,jb;function Cw(){if(jb)return Ad;jb=1;var t=Xv(),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 b=s.call(d);return p&&(h?d[u]=m:delete d[u]),b}return Ad=c,Ad}var xd,Hb;function Nw(){if(Hb)return xd;Hb=1;var t=Object.prototype,r=t.toString;function i(s){return r.call(s)}return xd=i,xd}var Od,Ib;function Mw(){if(Ib)return Od;Ib=1;var t=Xv(),r=Cw(),i=Nw(),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 Od=d,Od}var Rd,zb;function Dw(){if(zb)return Rd;zb=1;function t(r){return r!=null&&typeof r=="object"}return Rd=t,Rd}var wd,Gb;function Lw(){if(Gb)return wd;Gb=1;var t=Mw(),r=Dw(),i="[object Symbol]";function s(u){return typeof u=="symbol"||r(u)&&t(u)==i}return wd=s,wd}var Cd,kb;function Bw(){if(kb)return Cd;kb=1;var t=ww(),r=Qh(),i=Lw(),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 b=typeof p.valueOf=="function"?p.valueOf():p;p=r(b)?b+"":b}if(typeof p!="string")return p===0?p:+p;p=t(p);var _=c.test(p);return _||d.test(p)?h(p.slice(2),_?2:8):u.test(p)?s:+p}return Cd=m,Cd}var Nd,qb;function Zv(){if(qb)return Nd;qb=1;var t=Qh(),r=Ow(),i=Bw(),s="Expected a function",u=Math.max,c=Math.min;function d(h,m,p){var b,_,x,U,R,q,z=0,E=!1,w=!1,S=!0;if(typeof h!="function")throw new TypeError(s);m=i(m)||0,t(p)&&(E=!!p.leading,w="maxWait"in p,x=w?u(i(p.maxWait)||0,m):x,S="trailing"in p?!!p.trailing:S);function H(ce){var Pe=b,ve=_;return b=_=void 0,z=ce,U=h.apply(ve,Pe),U}function A(ce){return z=ce,R=setTimeout(ae,m),E?H(ce):U}function Z(ce){var Pe=ce-q,ve=ce-z,G=m-Pe;return w?c(G,x-ve):G}function W(ce){var Pe=ce-q,ve=ce-z;return q===void 0||Pe>=m||Pe<0||w&&ve>=x}function ae(){var ce=r();if(W(ce))return ye(ce);R=setTimeout(ae,Z(ce))}function ye(ce){return R=void 0,S&&b?H(ce):(b=_=void 0,U)}function Ee(){R!==void 0&&clearTimeout(R),z=0,b=q=_=R=void 0}function se(){return R===void 0?U:ye(r())}function me(){var ce=r(),Pe=W(ce);if(b=arguments,_=this,q=ce,Pe){if(R===void 0)return A(q);if(w)return clearTimeout(R),R=setTimeout(ae,m),H(q)}return R===void 0&&(R=setTimeout(ae,m)),U}return me.cancel=Ee,me.flush=se,me}return Nd=d,Nd}var Uw=Zv();const jw=uu(Uw),Hw="_container_131ib_1",Iw="_categoryContainer_131ib_13",zw="_categoryButton_131ib_20",Gw="_active_131ib_35",kw="_commentTextarea_131ib_44",Gs={container:Hw,categoryContainer:Iw,categoryButton:zw,active:Gw,commentTextarea:kw},qw=(t,r,i)=>{B.useEffect(()=>{if(t){const s=()=>{const c=["button:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])',"a[href]","input:not([disabled])","select:not([disabled])"].join(","),d=r.current?Array.from(r.current.querySelectorAll(c)):[],h=i.current?Array.from(i.current.querySelectorAll(c)):[];return[...d,...h]},u=c=>{if(c.key==="Tab"){const d=s();if(d.length>0){const h=d[0],m=d[d.length-1],p=document.activeElement;!c.shiftKey&&p===m?(c.preventDefault(),h.focus()):c.shiftKey&&p===h&&(c.preventDefault(),m.focus())}}};return document.addEventListener("keydown",u,!0),()=>{document.removeEventListener("keydown",u,!0)}}},[t,r,i])},Fw=({open:t,actionsRef:r,reaction:i,onReaction:s})=>{const u=Ze(),c=B.useRef(null),d=jw(p=>{s({...i,comment:p})},300);B.useEffect(()=>()=>d.flush(),[d]),qw(t,r,c);const h=p=>{s({...i,category:i.category===p?void 0:p})},m=p=>d(p.target.value);return t?y.jsxs("div",{ref:c,className:Gs.container,role:"dialog","aria-modal":"true","aria-labelledby":"bad-reaction-title",children:[y.jsx("h2",{id:"bad-reaction-title",children:u("bot-bubble.reaction.say-more")}),y.jsx("div",{className:Gs.categoryContainer,role:"radiogroup",children:["WRONG_INFORMATION","MISSING_INFORMATION","OLD_INFORMATION","UNCLEAR","OFF_TOPIC"].map(p=>y.jsx("button",{className:Q(Gs.categoryButton,i?.category===p&&Gs.active),onClick:()=>h(p),"aria-pressed":i?.category===p,"aria-label":u(`bot-bubble.reaction.category.${p}`),tabIndex:0,role:"radio",children:u(`bot-bubble.reaction.category.${p}`)},p))}),y.jsx("textarea",{id:"comment",name:"comment",placeholder:u("bot-bubble.reaction.comment"),defaultValue:i?.comment,onChange:m,className:Gs.commentTextarea,rows:3,"aria-label":u("bot-bubble.reaction.comment")})]}):null},Vw="_botMessageActionContainer_18fjb_1",Pw="_alwaysVisible_18fjb_15",Yw="_active_18fjb_19",Xw="_botMessageActionInnerContainer_18fjb_27",Zw="_header_18fjb_52",Qw="_botMessageActions_18fjb_57",Kw="_reported_18fjb_68",$w="_action_18fjb_72",Ww="_wave_18fjb_86",Jw="_anyReport_18fjb_156",e6="_closeButton_18fjb_172",nt={botMessageActionContainer:Vw,alwaysVisible:Pw,active:Yw,botMessageActionInnerContainer:Xw,header:Zw,botMessageActions:Qw,reported:Kw,action:$w,wave:Ww,anyReport:Jw,closeButton:e6},t6=({isSubmitting:t,onClick:r})=>{const i=Ze();return y.jsx("button",{className:Q(nt.action,nt.closeButton,"tooltip--bottom-left"),"aria-label":i("bot-bubble.reaction.close"),"data-title":i("bot-bubble.reaction.close"),tabIndex:0,onClick:r,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:t?y.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"}):y.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"})})})},n6=({alwaysVisible:t,senderType:r,reaction:i,botMessageRef:s,message:u,onReaction:c})=>{const d=Ze(),[h,m]=B.useState(!1),[p,b]=B.useState(!1),[_,x]=B.useState(!1),U=B.useRef(null),R=B.useRef(null);Zh(U,()=>{x(!1)});const q=A=>{A.key==="Escape"&&x(!1)};B.useEffect(()=>(document.addEventListener("keydown",q),()=>{document.removeEventListener("keydown",q)}),[]),B.useEffect(()=>{_&&U.current?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[_]);const z=A=>{R.current&&clearTimeout(R.current),b(!0),c(A),R.current=setTimeout(()=>{b(!1)},1e3)},E=B.useCallback(async()=>{if(s.current)try{m(!0);const A=s.current.innerHTML,Z=s.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([A],{type:"text/html"}),"text/plain":new Blob([Z],{type:"text/plain"})})]),await new Promise(W=>setTimeout(W,1500))}finally{m(!1)}},[s]),w=()=>{x(!1),c(i?.type==="GOOD"?null:{type:"GOOD"})},S=()=>{c({...u.reaction,type:"BAD"}),x(!_)},H=A=>Z=>{(Z.key==="Enter"||Z.key===" ")&&A()};return y.jsx("div",{ref:U,className:Q(nt.botMessageActionContainer,t&&nt.alwaysVisible,_&&nt.active),children:y.jsxs("div",{className:Q(nt.botMessageActionInnerContainer,t&&nt.alwaysVisible,_&&nt.active,i&&nt.reported),role:"group",children:[y.jsxs("div",{className:nt.header,children:[y.jsxs("div",{className:Q(nt.botMessageActions,i&&nt.reported),children:[r===su.BOT&&y.jsx("button",{className:Q(nt.action,nt.wave,i?.type&&nt.anyReport,i?.type==="GOOD"&&nt.reported,"tooltip--top-right"),tabIndex:0,"aria-label":d(i?.type==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),"aria-pressed":i?.type==="GOOD","data-title":d(i?.type==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),onPointerDown:w,onKeyDown:H(w),children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:i?.type==="GOOD"?y.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"}):y.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===su.BOT&&y.jsx("button",{className:Q(nt.action,nt.wave,i?.type&&nt.anyReport,i?.type==="BAD"&&nt.reported,"tooltip--top-right"),tabIndex:0,"aria-label":d("bot-bubble.reaction.bad"),"aria-pressed":i?.type==="BAD","data-title":d("bot-bubble.reaction.bad"),onPointerDown:S,onKeyDown:H(S),children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:i?.type==="BAD"?y.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"}):y.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"})})}),y.jsx("button",{className:Q(nt.action,nt.wave,"tooltip--top-right"),style:{visibility:_?"hidden":"visible"},tabIndex:0,"aria-label":d("bot-bubble.copy"),"data-title":d("bot-bubble.copy"),onClick:E,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:h?y.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"}):y.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"})})})]}),_&&y.jsx(t6,{isSubmitting:p,onClick:()=>x(!1)})]}),u.reaction&&y.jsx(Fw,{open:_,actionsRef:U,reaction:u.reaction,onReaction:z})]})})},Qv=B.forwardRef(({message:t,isAnimated:r,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:u,children:c,onReaction:d},h)=>{const m=Ze(),p=B.useRef(null),b=t.sender.type===Te.UserType.BOT;return y.jsxs("li",{ref:h,className:Q(ge.message,ge.messageBot,i&&ge.lastMessage,s&&ge.messageBotFirst,u&&ge.messageBotLast,"chat__bubbleContainer",r&&ge.messageBotAnimated,r&&"chat__bubbleContainer--animated",b?"chat__botBubbleContainer":"chat__agentBubbleContainer",s&&"chat__bubbleContainer--first",u&&"chat__bubbleContainer--last"),children:[y.jsx("img",{className:Q(ge.avatar,b?ge.botAvatar:ge.agentAvatar,"chat__avatar",b?"chat__botAvatar":"chat__agentAvatar"),src:`${t.sender.avatar}`,alt:b?"Bot":"Agent",referrerPolicy:"no-referrer"}),y.jsxs("div",{className:ge.messageContainer,children:[y.jsx("div",{ref:p,className:Q(ge.bubble,ge.bubbleLeft,"chat__bubble",b?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":m(b?"bot-bubble.label":"agent-bubble.label"),children:y.jsx("div",{className:Q(ge.leftText),children:c})}),d&&y.jsx(n6,{alwaysVisible:i&&u,senderType:t.sender.type,reaction:t.reaction,message:t,botMessageRef:p,onReaction:d})]})]})}),r6="_sourceList_1n31h_1",a6="_source_1n31h_1",i6="_label_1n31h_37",Md={sourceList:r6,source:a6,label:i6},Kv=t=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:y.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"})}),$v=t=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:y.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"})}),Wv=t=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:y.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"})}),Jv=t=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:y.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"})}),s6=({type:t,...r})=>{switch(t){case"WEBSITE":return y.jsx(Jv,{...r});case"PDF":return y.jsx(Wv,{...r});case"DOCX":return y.jsx(Kv,{...r});default:return y.jsx($v,{...r})}},Kh=({sources:t,onLinkClick:r})=>{const i=Ze(),s=c=>()=>{r(c.url)},u=c=>d=>{(d.key==="Enter"||d.key===" ")&&r(c.url)};return t.length?y.jsx("ul",{className:Md.sourceList,"aria-label":i("bot-bubble.sources"),children:t.map(c=>y.jsx("li",{className:Md.source,children:y.jsxs("a",{role:"button",tabIndex:0,"aria-label":`${i("bot-bubble.source.open")}: ${c.label}`,onClick:s(c),onKeyDown:u(c),children:[y.jsx(s6,{type:c.type,"aria-hidden":"true"}),y.jsx("div",{className:Md.label,children:c.label})]})},c.url))}):null},l6="_button_3ui4g_1",o6="_buttonDefault_3ui4g_13",u6="_buttonPrimary_3ui4g_28",el={button:l6,buttonDefault:o6,buttonPrimary:u6},Su=({className:t,children:r,...i})=>y.jsx("button",{className:Q(el.button,t),type:"button",role:"button",...i,children:r}),c6="_title_137pi_1",f6="_buttons_137pi_6",d6="_button_137pi_6",h6="_imageContainer_137pi_29",m6="_image_137pi_29",p6="_video_container_137pi_44",g6="_video_137pi_44",y6="_only_137pi_58",on={title:c6,buttons:f6,button:d6,imageContainer:h6,image:m6,video_container:p6,video:g6,only:y6},b6=({buttons:t,onButtonClick:r})=>y.jsx("div",{className:Q(on.buttons,"chat__bubbleButtons"),children:t.map((i,s)=>y.jsx(Su,{className:Q(on.button,"chat__bubbleButton"),onClick:()=>r(i),children:i.title},s))}),Fb="newtab#",e_=({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(Fb)===0?y.jsx("a",{href:d.slice(Fb.length),title:c,target:"_blank",rel:"noopener noreferrer",children:h}):y.jsx("a",{onClick:s(d),title:c,href:d,children:h});return y.jsx(Or,{options:{...r,overrides:{a:u}},children:t})},v6=({text:t,onLinkClick:r})=>t?y.jsx("div",{children:y.jsx(e_,{markdown:t,onLinkClick:r})}):null,_6=({title:t})=>t?y.jsx("h1",{className:on.title,children:t}):null,E6=({title:t,text:r,buttons:i,onButtonClick:s,onLinkClick:u})=>t?.length||r?.length||i?.length?y.jsxs("div",{className:Q(ge.bubbleContent),children:[y.jsx(_6,{title:t}),y.jsx(v6,{text:r,onLinkClick:u}),y.jsx(b6,{buttons:i,onButtonClick:s})]}):null,S6=({alt:t,imageUrl:r,itemUrl:i,hasBody:s})=>r?i?i.indexOf("youtube.com")>-1?y.jsx("div",{className:on.video_container,children:y.jsx("iframe",{className:Q(on.video,{[on.only]:!s}),title:"Youtube",width:"100%",src:i+"?rel=0",frameBorder:"0",allowFullScreen:!0})}):y.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",children:y.jsx("div",{className:on.imageContainer,children:y.jsx("img",{className:Q(on.image,{[on.only]:!s}),src:r,alt:t})})}):y.jsx("div",{className:on.imageContainer,children:y.jsx("img",{className:Q(on.image,{[on.only]:!s}),src:r,alt:t})}):null,T6=({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 y.jsxs("div",{className:Q(on.detailMessage),children:[y.jsx(S6,{hasBody:m,imageUrl:i,itemUrl:s,alt:t||""}),m&&y.jsx(E6,{title:t,text:r,buttons:u,onLinkClick:h,onButtonClick:d}),y.jsx(Kh,{sources:c,onLinkClick:h})]})},A6=B.forwardRef(({isFirstMessageBySender:t,isLastMessageBySender:r,children:i},s)=>{const u=Ze();return y.jsx("li",{ref:s,className:Q(ge.message,ge.messageGuest,t&&ge.messageGuestFirst,r&&ge.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",t&&"chat__bubbleContainer--first",r&&"chat__bubbleContainer--last"),children:y.jsx("div",{className:Q(ge.bubble,ge.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":u("guest-bubble.label"),children:y.jsx("div",{className:Q(ge.rightText),children:i})})})}),x6="_markdown_nw7vg_1",t_={markdown:x6},$h=()=>B.useMemo(()=>Uh(),[]),Io="source-info-reference",O6=({actionId:t,markdown:r,sources:i,onLinkClick:s})=>{const u=$h(),c=Nr(),d=R6(),h=st(b=>{const _=b.chat.sourceInfos;if(_?.type==="loaded"||_?.type==="loading")return _.chunkId}),m=b=>_=>{const x=_.key;(x==="ArrowDown"||x==="ArrowRight"||x==="Enter"||x===" "||x==="Space")&&(_.stopPropagation(),c(db(u,t,b)))},p=b=>()=>{c(db(u,t,b))};return B.useLayoutEffect(()=>{document.querySelectorAll(`.${Io}`).forEach(b=>{const _=b.previousSibling;_&&_.nodeType===Node.TEXT_NODE&&_.textContent?.endsWith(" ")&&_.textContent?.trim().length&&b.classList.add(`${Io}--before-space`);const x=b.nextSibling;x&&x.nodeType===Node.TEXT_NODE&&x.textContent?.startsWith(" ")&&x.textContent?.trim().length&&b.classList.add(`${Io}--after-space`)})},[r]),y.jsxs("div",{className:ge.bubbleContent,children:[y.jsx("div",{className:t_.markdown,children:y.jsx(e_,{markdown:r,onLinkClick:s,markdownOptions:{renderRule(b,_,x,U){if(_.type===qO.footnoteReference){const R=_.text===h;return y.jsx("span",{className:Q(ge.sourceInfoReference,R&&ge.sourceInfoReferenceActive,Io),children:y.jsx("a",{type:"button",tabIndex:0,onClick:p(_.text),onKeyDown:m(_.text),children:d(_.text)})},U.key)}return b()}}})}),y.jsx(Kh,{sources:i,onLinkClick:s})]})},R6=()=>{const t=[];return i=>{const s=t.indexOf(i);return s>-1?s+1:(t.push(i),t.length)}},w6="_text_gp0s0_1",C6="_command_gp0s0_5",Vb={text:w6,command:C6},N6=({text:t,commands:r=[]})=>{const i=r.find(u=>t.startsWith(`/${u}`)),s=i?t.slice(i.length+1):t;return y.jsxs("div",{children:[i&&y.jsxs("code",{className:Vb.command,children:["/",i]}),s.split(`
|
|
110
|
+
`).map((u,c)=>y.jsxs("span",{className:Vb.text,children:[u,y.jsx("br",{})]},c))]})},M6=({text:t,commands:r,sources:i,onLinkClick:s})=>y.jsxs("div",{className:ge.bubbleContent,children:[y.jsx(N6,{text:t,commands:r}),y.jsx(Kh,{sources:i,onLinkClick:s})]}),D6=B.forwardRef(({message:t,commands:r,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:u,onReaction:c,onButtonClick:d,onLinkClick:h},m)=>{const p=L6(t._id,t,r,d,h),b=_=>{c(t._id,_)};switch(t.sender.type){case Te.UserType.GUEST:return y.jsx(A6,{ref:m,isFirstMessageBySender:s,isLastMessageBySender:u,children:p});default:return y.jsx(Qv,{ref:m,message:t,isAnimated:!1,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:u,onReaction:b,children:p})}}),L6=(t,r,i,s,u)=>{switch(r.type){case Te.MessageTypeEnum.TEXT:{const c=r;return y.jsx(M6,{text:c.text,commands:i,sources:r.sources||[],onLinkClick:u})}case Te.MessageTypeEnum.DETAIL:{const c=r;return y.jsx(T6,{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 y.jsx(O6,{actionId:t,markdown:c.markdown,sources:c.sources||[],onLinkClick:u})}}},B6=(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,U6=E1.memo(D6,B6),j6="_ticontainer_xg0dn_1",H6="_tiblock_xg0dn_5",I6="_tidot_xg0dn_12",ks={ticontainer:j6,tiblock:H6,tidot:I6},z6=({isTyping:t=!1})=>y.jsx("div",{className:ks.ticontainer,children:y.jsx("div",{className:ks.tiblock,children:t?y.jsxs(y.Fragment,{children:[y.jsx("div",{className:Q(ks.tidot,"chat__typingIndicator")}),y.jsx("div",{className:Q(ks.tidot,"chat__typingIndicator")}),y.jsx("div",{className:Q(ks.tidot,"chat__typingIndicator")})]}):null})}),G6=Object.assign({_id:"typing-indicator"},new Te.TextMessage("",new Te.BotUser)),k6=({messages:t,isBotTyping:r,commands:i,onTranscriptItemReaction:s,onButtonClick:u,onLinkClick:c})=>{const d=B.useRef(0),h=B.useRef(!0),m=B.useRef(null),p=B.useRef(null),b=B.useRef(null),_=st(R=>R.settings.enableGeneralConditions);B.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(b.current){const R=b.current.offsetTop;m.current.scrollTop=R}h.current&&(h.current=!1),d.current=t.length}},[t,h,r]);let x;const U=t.length;return y.jsxs("div",{ref:m,className:Q(mb.messageContainer,"chat__messageContainer"),style:{scrollBehavior:t.length&&h.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[_&&y.jsx(aw,{}),y.jsxs("ul",{className:mb.messages,children:[t.map((R,q)=>{const z=q6(R,x),E=F6(R,q,t,r);x=R.sender.type;const w=q+1===U,S=R._id||`added-${q}`;return y.jsx(U6,{ref:w?b:null,message:R,commands:i,isLastMessage:w,isFirstMessageBySender:z,isLastMessageBySender:E,onButtonClick:u,onLinkClick:c,onReaction:s},w&&!r?"last":S)}),r&&y.jsx(Qv,{ref:p,message:G6,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:x!==Te.UserType.BOT,isLastMessageBySender:!0,children:y.jsx(z6,{isTyping:!0})},"last")]})]})},q6=(t,r)=>!r||r!==t.sender.type,F6=(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},V6="_bottomSheet_jp8dl_1",P6="_bottomSheetOpen_jp8dl_15",Y6="_bottomSheetClose_jp8dl_20",Rr={bottomSheet:V6,bottomSheetOpen:P6,bottomSheetClose:Y6},X6="_container_xc2nx_1",Pb={container:X6},Z6=({contentUrl:t})=>{const r=st(c=>c.connection.sessionId),[i,s]=B.useState(!1);B.useEffect(()=>{s(c=>c||!!t)},[t]);const u=B.useMemo(()=>{if(t&&r){const c=new URL(t,document.baseURI);return c.searchParams.set("sessionId",r),c.toString()}else return},[t,r]);return y.jsx("div",{className:Q(Pb.container,Rr.bottomSheet,{[Rr.bottomSheetOpen]:!!t,[Rr.bottomSheetClose]:i&&!t}),children:u&&y.jsx("iframe",{title:"Drawer",src:u,className:Pb.iframe})})},Q6="_container_z787n_1",K6={container:Q6},$6=({title:t,href:r,children:i})=>y.jsx("a",{href:r,title:t,target:"_blank",rel:"noopener noreferrer",children:i}),W6=()=>{const r=Ze()("powered-by");return r&&r.length?y.jsx("div",{className:Q(K6.container,"chat__poweredBy"),children:y.jsx(Or,{options:{overrides:{a:$6}},children:r})}):null},n_=({className:t,children:r,...i})=>y.jsx(Su,{className:Q(el.buttonDefault,t),type:"button",...i,children:r}),lu=({className:t,children:r,...i})=>y.jsx(Su,{className:Q(el.buttonPrimary,t),...i,children:r}),J6="_container_h23mk_1",eC="_formContainer_h23mk_17",tC="_emailInput_h23mk_22",nC="_description_h23mk_52",rC="_actions_h23mk_57",aC="_validationError_h23mk_67",iC="_submitted_h23mk_74",La={container:J6,formContainer:eC,emailInput:tC,description:nC,actions:rC,validationError:aC,submitted:iC},sC=({visible:t,onEmailExport:r,onClose:i})=>{const s=Ze(),[u,c]=B.useState(void 0),[d,h]=B.useState(!1),[m,p]=B.useState(void 0),b=B.useRef(null);B.useEffect(()=>{t?(b.current?.focus(),h(!1),c(t)):u===!0&&c(!1)},[t,u]);const _=U=>{U.preventDefault(),m&&m.length>0&&(r(m),h(!0),setTimeout(i,3*1e3))},x=U=>{const R=U.target.value.trim(),q=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(R);p(q?R:"")};return y.jsxs("div",{className:Q(La.container,Rr.bottomSheet,{[Rr.bottomSheetOpen]:u===!0,[Rr.bottomSheetClose]:u===!1}),children:[y.jsx("h2",{children:s("export-transcript.email.title")}),y.jsx(Or,{className:La.description,children:s("export-transcript.email.description")||""}),y.jsxs("form",{onSubmit:_,className:La.formContainer,children:[y.jsxs("div",{children:[y.jsx("input",{disabled:d,ref:b,type:"email",placeholder:s("export-transcript.email.placeholder"),className:La.emailInput,onChange:x}),m?.length===0?y.jsx("div",{className:La.validationError,children:s("export-transcript.email.invalid")}):null]}),y.jsxs("div",{className:La.actions,children:[y.jsx(n_,{onClick:i,children:s("export-transcript.email.cancel")}),y.jsx(lu,{type:"submit",disabled:d||m===void 0||m.length===0,children:s("export-transcript.email.send")})]})]}),d&&y.jsx("div",{className:La.submitted,children:s("export-transcript.email.success")})]})},lC="_inputContainer_fi5ao_1",oC={inputContainer:lC},uC="_blockUserInput_pot9c_1",cC={blockUserInput:uC},fC=({visible:t})=>{const r=Ze();return t?y.jsx("div",{className:Q(cC.blockUserInput,"chat__blockUserInput"),children:r("block-user-input.title")}):null},dC="_commandsDropdown_5ytuv_1",hC="_commands_5ytuv_1",mC="_command_5ytuv_1",pC="_commandActive_5ytuv_46",gC="_commandsSelections_5ytuv_55",Qs={commandsDropdown:dC,commands:hC,command:mC,commandActive:pC,commandsSelections:gC},yC=(t,r,i,s,u)=>{B.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])},bC=({text:t,commands:r,onSelectCommand:i,onVisibilityChange:s})=>{const u=B.useRef(null),c=Ze(),[d,h]=B.useState([]),[m,p]=B.useState(Yb(r)),[b,_]=B.useState(0),x=U=>i(`/${U}`);return Zh(u,()=>h([])),yC(d,b,x,_,h),B.useEffect(()=>{p(Yb(r))},[r]),B.useEffect(()=>{const U=t.length||0;U===0||U>m||!t.startsWith("/")?h([]):h(r.filter(vC(t))),_(0)},[r,t,m]),B.useEffect(()=>{s(!!d.length)},[d,s]),d.length?y.jsx("div",{ref:u,className:Qs.commandsDropdown,children:y.jsx("ul",{id:"command-list",className:Qs.commands,role:"listbox",children:d.map((U,R)=>y.jsxs("li",{className:Q([Qs.command,b===R&&Qs.commandActive]),role:"option",onClick:()=>x(U),onMouseOver:()=>_(R),children:[y.jsxs("h1",{children:["/",U]}),y.jsx("p",{children:c(`commands.${U}`)})]},U))})}):null},Yb=t=>Math.max(...t.map(r=>r.length+1)),vC=t=>r=>{const i=`/${r}`;return i.startsWith(t)&&i.length>=t.length},Xb=3,_C=({commands:t,onSelectCommand:r})=>{const i=Ze(),[s,u]=B.useState(!1),c=p=>()=>{r(`/${p}`),u(!1)},d=()=>{u(!0)},h=()=>{u(!1)},m=s?t:t.slice(0,Xb);return y.jsxs("div",{className:Qs.commandsSelections,children:[m.map(p=>y.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?y.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>Xb?y.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]})},EC="_callToActionContainer_d8izj_1",SC="_callToActionTitle_d8izj_23",TC="_rateOverlay_d8izj_30",AC="_body_d8izj_52",xC="_footer_d8izj_60",OC="_actions_d8izj_75",RC="_bubbles_d8izj_89",wC="_stars_d8izj_191",CC="_starsSmall_d8izj_205",NC="_starsLarge_d8izj_211",MC="_star_d8izj_191",DC="_starReadonly_d8izj_225",LC="_starIcon_d8izj_235",BC="_starsDescriptionContainer_d8izj_253",UC="_starsDescription_d8izj_253",zt={callToActionContainer:EC,callToActionTitle:SC,rateOverlay:TC,body:AC,footer:xC,actions:OC,bubbles:RC,stars:wC,starsSmall:CC,starsLarge:NC,star:MC,starReadonly:DC,starIcon:LC,starsDescriptionContainer:BC,starsDescription:UC},jC=({value:t,index:r,count:i,readonly:s,onHover:u,onClick:c})=>{const d=h=>{c&&h.key==="Enter"&&c()};return y.jsx("li",{className:Q(zt.star,{[zt.starReadonly]:s},"chat__conversationRating__star"),children:y.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:y.jsx("span",{role:"img","aria-label":"Star",className:Q(zt.starIcon),children:y.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"star",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:y.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"})})})})})},Zb=5,r_=({value:t,size:r,readonly:i=!1,onChange:s})=>{const[u,c]=B.useState(void 0),d=()=>{c(void 0)},h=p=>()=>{if(!i){const b=p+1;c(b)}},m=p=>()=>{s&&!i&&(s(p===0&&t===1?0:p+1),c(void 0))};return y.jsx("ul",{tabIndex:0,role:"radiogroup",className:Q(zt.stars,{[zt.starsSmall]:r==="small",[zt.starsLarge]:r==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:r==="small",chat__conversationRating__stars__large:r==="large"}),onMouseOut:d,children:Array(Zb).fill(0).map((p,b)=>y.jsx(jC,{value:u===void 0?t:u,index:b,count:Zb,readonly:i,onHover:h(b),onClick:m(b)},b))})},HC=({visible:t,onRate:r})=>{const i=Ze();return t?y.jsxs("div",{className:Q(zt.callToActionContainer,"chat__conversationRating__callToAction"),children:[y.jsx("div",{className:Q(zt.callToActionTitle,"chat__conversationRating__callToAction__title"),children:i("conversation-rating.call-to-action.title")}),y.jsx(r_,{value:0,size:"small",onChange:r})]}):null},Dd=({isFirstMessageBySender:t,isLastMessageBySender:r,children:i})=>y.jsxs("div",{className:Q(ge.message,ge.messageBot,t&&ge.messageBotFirst,r&&ge.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",t&&"chat__bubbleContainer--first",r&&"chat__bubbleContainer--last"),children:[y.jsx("img",{className:Q(ge.avatar,ge.botAvatar),src:"bot.svg",alt:"Bot"}),y.jsx("div",{className:Q(ge.bubble,ge.bubbleLeft,"chat__bubble","chat__botBubble"),children:y.jsx("div",{className:Q(ge.leftText,ge.bubbleContent),children:i})})]}),IC=({children:t})=>y.jsx("div",{className:Q(ge.message,ge.messageGuest,ge.messageGuestFirst,ge.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:y.jsx("div",{className:Q(ge.bubble,ge.bubbleRight,"chat__bubble","chat__guestBubble"),children:y.jsx("div",{className:Q(ge.rightText,ge.bubbleContent),children:t})})}),zC=()=>{const t=Ze(),r=Nr(),i=st(z=>z.chat.conversationRating),[s,u]=B.useState(i.rating?.value||0),[c,d]=B.useState(void 0),[h,m]=B.useState(void 0),[p,b]=B.useState({submitted:!1,feedback:""}),_=B.useRef(null),[x,U]=B.useState(!1);B.useEffect(()=>{i.opener?(b({submitted:!1,feedback:""}),m(!0)):h===!0&&m(!1)},[i.opener,h]),B.useEffect(()=>{u(i.rating?.value||0)},[i.rating?.value,i.opener]),B.useEffect(()=>{_.current&&(_.current.value=i.rating?.feedback||"")},[i.rating?.feedback]),B.useEffect(()=>{const z=s>0?t(`conversation-rating.overlay.bot-message.rate-feedback.value-${s}`):void 0;d(z?.length?z:void 0)},[s,t]),B.useEffect(()=>{p.submitted?setTimeout(()=>U(!0),p.feedback.length?500:0):U(!1)},[p]);const R=z=>{z.preventDefault();const E=_.current?.value?.trim()||"";r(wx(s,E)),b({submitted:!0,feedback:E})},q=()=>{i.opener==="CLOSE_CHAT"?r(Uv()):i.opener==="RESTART_CHAT"?r(al()):r(OO())};return y.jsx("div",{className:Q(zt.rateOverlay,Rr.bottomSheet,"chat__conversationRating__overlay",{[Rr.bottomSheetOpen]:h===!0,[Rr.bottomSheetClose]:h===!1}),children:y.jsxs("form",{onSubmit:R,children:[y.jsxs("div",{className:Q(zt.body,"chat__conversationRating__overlay__body"),children:[y.jsx("div",{}),y.jsx("div",{className:Q(zt.bubbles),children:i.opener&&y.jsxs(y.Fragment,{children:[y.jsxs(Dd,{isFirstMessageBySender:!0,isLastMessageBySender:!c,children:[y.jsx("h2",{children:t("conversation-rating.overlay.title")}),y.jsxs("div",{className:Q(zt.starsDescriptionContainer),children:[y.jsx(r_,{value:s,size:"large",readonly:p.submitted,onChange:u}),y.jsxs("div",{className:Q(zt.starsDescription),children:[y.jsx("div",{children:t("conversation-rating.overlay.star.very-bad")}),y.jsx("div",{children:t("conversation-rating.overlay.star.very-good")})]})]})]}),c&&y.jsx(Dd,{isFirstMessageBySender:!1,isLastMessageBySender:!x||!!p.feedback.length,children:y.jsx("div",{children:c})}),!!p.feedback.length&&y.jsx(IC,{children:p.feedback}),x&&y.jsx(Dd,{isFirstMessageBySender:!!p.feedback.length,isLastMessageBySender:!0,children:y.jsx("div",{children:t("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),y.jsxs("div",{className:Q(zt.footer,"chat__conversationRating__overlay__footer"),children:[!p.submitted&&y.jsx("input",{ref:_,defaultValue:i.rating?.feedback||"",placeholder:t("conversation-rating.overlay.guest-feedback.input-placeholder")}),y.jsxs("div",{className:Q(zt.actions,"chat__conversationRating__overlay__footer__actions"),children:[p.submitted?y.jsx(lu,{type:"button",disabled:!s,onClick:q,children:i.opener==="CLOSE_CHAT"?t("conversation-rating.overlay.action.close-chat"):i.opener==="RESTART_CHAT"?t("conversation-rating.overlay.action.restart-chat"):t("conversation-rating.overlay.action.back-to-chat")},"close-button"):y.jsx(lu,{type:"submit",disabled:!s,children:t("conversation-rating.overlay.action.submit")},"submit-button"),i.opener!=="CHAT"&&!p.submitted&&y.jsx(n_,{onClick:q,children:i.opener==="CLOSE_CHAT"?t("conversation-rating.overlay.action.close-chat"):i.opener==="RESTART_CHAT"?t("conversation-rating.overlay.action.restart-chat"):t("conversation-rating.overlay.action.cancel")})]})]})]})})},GC=({numberOfMessagesFromGuest:t})=>{const r=Nr(),i=st(c=>c.chat.conversationRating),s=c=>{r(iu("CHAT",c))},u=!i.rating?.value&&t>=1;return i.enabled?y.jsxs(y.Fragment,{children:[y.jsx(HC,{visible:u,onRate:s}),y.jsx(zC,{})]}):null},kC=B.memo(GC),qC="_inputWrapper_e3h44_1",FC="_withOpenCommands_e3h44_14",VC="_messageInputWrapper_e3h44_20",PC="_messageInput_e3h44_20",YC="_buttons_e3h44_44",XC="_button_e3h44_44",xi={inputWrapper:qC,withOpenCommands:FC,messageInputWrapper:VC,messageInput:PC,buttons:YC,button:XC},ZC="_audioRecorder_g845f_1",QC="_audioButton_g845f_6",KC="_recorderIcon_g845f_37",$C="_spinning_g845f_60",Ba={audioRecorder:ZC,audioButton:QC,recorderIcon:KC,spinning:$C},Qb=2048,ou=16e3;class WC extends E1.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(Qb,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+=Qb}}handleClickSubmitAudio(){const r=eN(this.leftchannel,this.recordingLength),i=tN(r,this.sampleRate||0),s=JC(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 y.jsxs("div",{className:Ba.audioRecorder,children:[this.state.recordingState==="none"&&y.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:y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.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"}),y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),this.state.recordingState==="connecting"&&y.jsxs("svg",{className:Ba.spinning,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.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"}),y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),this.state.recordingState==="recording"&&y.jsxs("div",{className:Ba.audioRecorder,children:[y.jsx("button",{className:Q(Ba.audioButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate("message-input.actions.stop-audio-recording.label"),tabIndex:0,children:y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.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"}),y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),y.jsx("div",{className:Ba.recorderIcon}),y.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:y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),y.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})]})})]})]})}}const JC=t=>{const r=new ArrayBuffer(44+t.length*2),i=new DataView(r);zo(i,0,"RIFF"),i.setUint32(4,44+t.length*2,!0),zo(i,8,"WAVE"),zo(i,12,"fmt "),i.setUint32(16,16,!0),i.setUint16(20,1,!0),i.setUint16(22,1,!0),i.setUint32(24,ou,!0),i.setUint32(28,ou*4,!0),i.setUint16(32,4,!0),i.setUint16(34,16,!0),zo(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"})},zo=(t,r,i)=>{for(let s=0;s<i.length;s++)t.setUint8(r+s,i.charCodeAt(s))},eN=(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},tN=(t,r)=>{if(ou===r)return t;const i=r/ou,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 b=d;b<h&&b<t.length;b++)m+=t[b],p++;u[c]=m/p,c++,d=h}return u},nN=({disabled:t,textInput:r,commandsVisible:i,hasCommands:s,onTextInput:u,onTextInputSubmit:c,onAudioRecorded:d})=>{const h=Ze(),m=B.useRef(null),{enableSpeechSupport:p}=st(R=>R.settings);B.useEffect(()=>{m.current?.focus()},[r]);const b=()=>{const R=m.current;R&&r.trim().length>=1&&c(r.trim())&&(R.value="",R.style.height="",R.focus())},_=R=>{R.preventDefault(),b()},x=R=>{const q=R.target.value;u(q),R.target.style.height="";const{scrollHeight:z}=R.target;R.target.style.height=`${z>150?150:z}px`},U=R=>{R.code==="Enter"&&!R.shiftKey?(R.repeat||b(),R.preventDefault()):i&&(R.code==="ArrowUp"||R.code==="ArrowDown")&&R.preventDefault()};return y.jsxs("form",{className:Q(xi.inputWrapper,i&&xi.withOpenCommands,"chat__textInput"),onSubmit:_,children:[y.jsx("div",{className:xi.messageInputWrapper,children:y.jsx("textarea",{id:"user_input",ref:m,className:xi.messageInput,tabIndex:0,placeholder:h("message-input-placeholder"),value:r,onChange:x,onKeyDown:U,"aria-label":h("message-input-label"),"aria-controls":s?"command-list":void 0,"aria-haspopup":s?"listbox":void 0})}),y.jsx("div",{className:Q(xi.buttons,"chat__buttons"),children:r.length||!p||navigator.mediaDevices===void 0?y.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:y.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:y.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&&y.jsx(WC,{translate:h,onAudioRecorded:d})})]})},rN="_quickReplies_83npe_1",aN="_quickReply_83npe_9",Kb={quickReplies:rN,quickReply:aN},iN=({quickReplies:t,onQuickReplyClick:r})=>t.length?y.jsx("div",{className:Q(Kb.quickReplies,"chat__quickReplies"),children:t.map(i=>y.jsx(Su,{tabIndex:0,className:Q(Kb.quickReply,"chat__button","chat__quickReply"),onClick:()=>r(i),children:i.label},i.label))}):null,$b=5e3,sN=1e3,lN=({isBotTyping:t,quickReplies:r,numberOfMessagesFromGuest:i,commands:s,onTextInput:u,onQuickReplyClick:c,onAudioRecorded:d})=>{const[h,m]=B.useState(""),[p,b]=B.useState(!1),[_,x]=B.useState(!1),U=B.useRef(0),R=B.useRef(0);B.useEffect(()=>{if(p&&!t){const E=U.current?Date.now()-U.current:0;E>$b?b(!1):setTimeout(()=>{b(!1)},$b-E)}},[p,t]),B.useEffect(()=>{p&&(U.current=Date.now())},[p]);const q=E=>{const w=Date.now()-R.current<sN;return _?!1:t||w?(b(!0),!1):(u(E),m(""),R.current=Date.now(),!0)},z=E=>{m(E+" ")};return y.jsxs("div",{className:Q(oC.inputContainer),children:[y.jsx(iN,{quickReplies:r,onQuickReplyClick:c}),y.jsx(fC,{visible:p}),!p&&y.jsx(kC,{numberOfMessagesFromGuest:i}),!!s?.length&&y.jsx(bC,{text:h,commands:s,onSelectCommand:z,onVisibilityChange:x}),y.jsx(nN,{textInput:h,disabled:p,commandsVisible:_,hasCommands:!!s?.length,onTextInput:m,onTextInputSubmit:q,onAudioRecorded:d}),!!s?.length&&y.jsx(_C,{commands:s,onSelectCommand:m})]})},oN=({clientName:t,messages:r,quickReplies:i,isBotTyping:s,drawerContentUrl:u,onMessageFromUser:c,onQuickReplyClick:d,onButtonClick:h,onLinkClick:m,onAudioRecorded:p,onTranscriptExport:b,onTranscriptItemReaction:_})=>{const x=Nr(),U=st(H=>H.connection.connectionState),{enableTranscriptExportEmail:R,commands:q}=st(H=>H.settings),{showTranscriptMailOverlay:z,conversationRating:E}=st(H=>H.chat),w=r.filter(H=>H.sender.type===su.GUEST).length;B.useEffect(()=>{if(U===Ia.CONNECTED){const H=hu.parse(window.location.search);x(Hv(t,H))}},[t,U,x]);const S=()=>{x(jv())};return y.jsxs("div",{className:cd.container,children:[y.jsxs("div",{className:Q([cd.chatcontent,(z||E?.opener)&&cd.accessabilityHidden]),children:[y.jsx(k6,{messages:r,isBotTyping:s,commands:q,onButtonClick:h,onLinkClick:m,onTranscriptItemReaction:_}),y.jsx(lN,{isBotTyping:s,quickReplies:s?[]:i,numberOfMessagesFromGuest:w,commands:q,onQuickReplyClick:d,onTextInput:c,onAudioRecorded:p}),y.jsx(W6,{})]}),R&&y.jsx(sC,{visible:!!z,onEmailExport:b,onClose:S}),y.jsx(Z6,{contentUrl:u})]})},uN=t=>{const{messages:r,quickReplies:i,isBotTyping:s,drawerContentUrl:u}=t.chat;return{messages:r,quickReplies:i,isBotTyping:s,drawerContentUrl:u}},cN=t=>({onRestartChat:()=>t(al()),onMessageFromUser:r=>t(cv(r)),onAudioRecorded:r=>t(Tx(r)),onActionFromUser:r=>t(r),onQuickReplyClick:r=>t(uv(r)),onNluEvent:r=>t(pv(r)),onButtonClick:r=>t(Nx(r)),onLinkClick:r=>t(gv(r)),onTranscriptExport:r=>t(xx(r)),onTranscriptItemReaction:(r,i)=>{t(Te.Actions.transcriptItemGuestReaction(r,i?.type||null,i?.category,i?.comment))}}),fN=VS(uN,cN)(oN),a_=()=>{const[t,r]=B.useState(!1);return B.useEffect(()=>{r((()=>{try{return window.self!==window.top}catch{return!0}})())},[]),t},dN=t=>r=>{const i=r.key;(i==="ArrowDown"||i==="ArrowRight"||i==="Enter"||i===" "||i==="Space")&&(r.stopPropagation(),t())},hN=({onClick:t})=>{const r=Ze();return a_()?y.jsx("button",{className:"tooltip--bottom-left","aria-label":r("header.close-chat"),"data-title":r("header.close-chat"),tabIndex:0,onClick:t,onKeyDown:dN(t),children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.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},mN="_header_3gvbz_1",pN="_logoContainer_3gvbz_14",gN="_logo_3gvbz_14",yN="_actions_3gvbz_28",bN="_active_3gvbz_43",vN="_menuContainer_3gvbz_56",_N="_menu_3gvbz_56",EN="_divider_3gvbz_86",sa={header:mN,logoContainer:pN,logo:gN,actions:yN,active:bN,menuContainer:vN,menu:_N,divider:EN},SN=({icon:t})=>{switch(t){case"arrow-counter-clockwise":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.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 y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.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 y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.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 y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.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 y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.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 y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.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 y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.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 y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.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 y.jsx("div",{})}},TN=B.forwardRef(({selected:t,item:r,onClick:i},s)=>{const u=Ze(),c=d=>{d.preventDefault(),i()};return y.jsx("li",{"aria-selected":t,role:"option",className:r.withDivider?sa.divider:void 0,children:y.jsxs("a",{ref:s,type:"button",role:"button",tabIndex:-1,onClick:c,children:[y.jsx(SN,{icon:r.icon}),y.jsx("span",{children:u(`header.menu.${r.id}`)})]})})}),AN=(t,r)=>{const i=a_(),{menuItems:s,enableStandaloneView:u,enableTranscriptExportPdf:c,enableTranscriptExportEmail:d}=st(p=>p.settings),h=st(p=>p.chat.conversationRating.enabled);return B.useMemo(()=>{const p=[],b=s.filter(({visibility:_})=>t?_==="always"||_==="chat-only":_==="always"||_==="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&&b.length)){const _=p.pop();_&&s.length&&p.push({..._,withDivider:!0})}return p.push(...b),p},[t,r,c,d,u,h,i,s])},xN=({chatStarted:t,hasGuestMessages:r})=>{const i=Nr(),s=Ze(),[u,c]=B.useState(!1),[d,h]=B.useState(-1),m=B.useRef(null),p=B.useRef(null),b=B.useRef([]),_=AN(t,r);B.useEffect(()=>{b.current[d]?.focus()},[d]);const x=B.useCallback(()=>{i(r?iu("RESTART_CHAT"):al()),c(!1),h(0)},[r,i]),U=B.useCallback(z=>{switch(z.type){case"restart-chat":x();break;case"expand-chat-window":window.open(window.location.href,"_blank");break;case"download-transcript":i(Ox());break;case"send-transcript":i(jv());break;case"rate-conversation":i(iu("MENU"));break;case"link":i(gv(z.url));break;case"action":i(JSON.parse(JSON.stringify(z.action)));break}c(!1)},[i,x,c]);B.useEffect(()=>{const z=E=>{if(u)switch(E.key){case"Enter":E.preventDefault(),U(_[d]);break;case"ArrowUp":h(w=>w>0?w-1:_.length-1);break;case"ArrowDown":h(w=>w<_.length-1?w+1:0);break;case"Escape":c(!1);break;case"Tab":d>-1&&c(!1);break}};return document.addEventListener("keydown",z),()=>{document.removeEventListener("keydown",z)}},[u,d,_,h,c,U]),B.useEffect(()=>{u||h(-1)},[u,d]),Zh(p,()=>c(!1));const R=()=>{c(z=>!z)},q=()=>{setTimeout(()=>{const z=document.activeElement;p.current&&!p.current.contains(z)&&c(!1)},0)};return _.length?y.jsxs("div",{className:Q(sa.menuContainer),ref:p,children:[y.jsx("button",{ref:m,className:Q(u&&sa.active,u?"tooltip-hidden":"tooltip--bottom-left"),"aria-label":s("header.menu.title"),"data-title":s("header.menu.title"),onClick:R,onBlur:q,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.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"})})}),u&&y.jsx("nav",{className:sa.menu,"aria-label":s("header.menu.title"),children:y.jsx("ul",{tabIndex:0,children:_.map((z,E)=>y.jsx(TN,{ref:w=>{b.current[E]=w},selected:d===E,item:z,onClick:()=>U(z)},z.id))})})]}):null},Wb=({className:t,chatStarted:r,...i})=>{const s=Nr(),u=st(h=>h.chat.conversationRating),c=st(h=>h.chat.messages.some(m=>m.sender.type===Te.UserType.GUEST)),d=()=>{u.enabled&&!u.opener&&c?s(iu("CLOSE_CHAT")):s(Uv())};return y.jsxs("div",{className:Q([sa.header,t]),...i,children:[y.jsx("div",{className:sa.logoContainer,children:y.jsx("div",{className:sa.logo})}),y.jsxs("div",{className:sa.actions,children:[y.jsx(xN,{chatStarted:r,hasGuestMessages:c}),y.jsx(hN,{onClick:d})]})]})},ON="_chatwindow_rkbir_1",RN="_chatwindowWithAside_rkbir_21",Jb={chatwindow:ON,chatwindowWithAside:RN},i_=()=>{const[t,r]=B.useState(!1);return B.useEffect(()=>{const i=window.matchMedia("(max-width: 1023px)"),s=()=>r(i.matches);return s(),i.addEventListener("change",s),()=>i.removeEventListener("change",s)},[]),t},wN="_sourceInfos_vei0l_1",CN="_waitForLoading_vei0l_24",NN="_loadingContent_vei0l_28",MN="_sourceHeader_vei0l_37",DN="_sourceHeaderIcon_vei0l_57",LN="_sourceContent_vei0l_61",BN="_openSourceButton_vei0l_69",UN="_sourceButtonLabel_vei0l_79",jN="_closeSourceInfosButton_vei0l_101",HN="_loadingSourceInfos_vei0l_125",IN="_loading_vei0l_28",zN="_loadingError_vei0l_139",GN="_highlightLoadingInfo_vei0l_155",kN="_highlightLoadingInfoInnerContainer_vei0l_169",qN="_highlightLoadingInfoContent_vei0l_178",FN="_highlightLoadingInfoCloseIcon_vei0l_198",VN="_highlightLoader_vei0l_203",PN="_highlightLoaderLoading_vei0l_210",Et={sourceInfos:wN,waitForLoading:CN,loadingContent:NN,sourceHeader:MN,sourceHeaderIcon:DN,sourceContent:LN,openSourceButton:BN,sourceButtonLabel:UN,closeSourceInfosButton:jN,loadingSourceInfos:HN,loading:IN,loadingError:zN,highlightLoadingInfo:GN,highlightLoadingInfoInnerContainer:kN,highlightLoadingInfoContent:qN,highlightLoadingInfoCloseIcon:FN,highlightLoader:VN,highlightLoaderLoading:PN},YN=({onClick:t})=>{const r=Ze();return y.jsx("button",{className:Q(Et.closeSourceInfosButton,"tooltip--bottom-left"),"aria-label":r("source-infos.close"),"data-title":r("source-infos.close"),tabIndex:0,onClick:t,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.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"})})})},XN=B.forwardRef(({sourceInfos:t,onClose:r,...i},s)=>y.jsxs("div",{className:Et.sourceHeader,...i,ref:s,children:[y.jsx("div",{children:t?y.jsx("p",{id:"source-info-title",children:t.title}):y.jsx("p",{children:" "})}),y.jsx(YN,{onClick:r})]})),ZN=({loading:t})=>y.jsx("div",{className:Et.highlightLoader,children:t&&y.jsx("div",{className:Et.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:s_,setPrototypeOf:e1,isFrozen:QN,getPrototypeOf:KN,getOwnPropertyDescriptor:$N}=Object;let{freeze:Gt,seal:Tn,create:l_}=Object,{apply:uh,construct:ch}=typeof Reflect<"u"&&Reflect;Gt||(Gt=function(r){return r});Tn||(Tn=function(r){return r});uh||(uh=function(r,i,s){return r.apply(i,s)});ch||(ch=function(r,i){return new r(...i)});const Go=kt(Array.prototype.forEach),WN=kt(Array.prototype.lastIndexOf),t1=kt(Array.prototype.pop),qs=kt(Array.prototype.push),JN=kt(Array.prototype.splice),Xo=kt(String.prototype.toLowerCase),Ld=kt(String.prototype.toString),n1=kt(String.prototype.match),Fs=kt(String.prototype.replace),e3=kt(String.prototype.indexOf),t3=kt(String.prototype.trim),Hn=kt(Object.prototype.hasOwnProperty),Ht=kt(RegExp.prototype.test),Vs=n3(TypeError);function kt(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 uh(t,r,s)}}function n3(t){return function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return ch(t,i)}}function Re(t,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Xo;e1&&e1(t,null);let s=r.length;for(;s--;){let u=r[s];if(typeof u=="string"){const c=i(u);c!==u&&(QN(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 Tr(t){const r=l_(null);for(const[i,s]of s_(t))Hn(t,i)&&(Array.isArray(s)?r[i]=r3(s):s&&typeof s=="object"&&s.constructor===Object?r[i]=Tr(s):r[i]=s);return r}function Ps(t,r){for(;t!==null;){const s=$N(t,r);if(s){if(s.get)return kt(s.get);if(typeof s.value=="function")return kt(s.value)}t=KN(t)}function i(){return null}return i}const r1=Gt(["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"]),Bd=Gt(["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"]),Ud=Gt(["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"]),a3=Gt(["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"]),jd=Gt(["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"]),i3=Gt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),a1=Gt(["#text"]),i1=Gt(["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"]),Hd=Gt(["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"]),s1=Gt(["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"]),ko=Gt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),s3=Tn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),l3=Tn(/<%[\w\W]*|[\w\W]*%>/gm),o3=Tn(/\$\{[\w\W]*/gm),u3=Tn(/^data-[\-\w.\u00B7-\uFFFF]+$/),c3=Tn(/^aria-[\-\w]+$/),o_=Tn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),f3=Tn(/^(?:\w+script|data):/i),d3=Tn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),u_=Tn(/^html$/i),h3=Tn(/^[a-z][.\w]*(-[.\w]+)+$/i);var l1=Object.freeze({__proto__:null,ARIA_ATTR:c3,ATTR_WHITESPACE:d3,CUSTOM_ELEMENT:h3,DATA_ATTR:u3,DOCTYPE_NAME:u_,ERB_EXPR:l3,IS_ALLOWED_URI:o_,IS_SCRIPT_OR_DATA:f3,MUSTACHE_EXPR:s3,TMPLIT_EXPR:o3});const Ys={element:1,text:3,progressingInstruction:7,comment:8,document:9},m3=function(){return typeof window>"u"?null:window},p3=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}},o1=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function c_(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:m3();const r=le=>c_(le);if(r.version="3.2.6",r.removed=[],!t||!t.document||t.document.nodeType!==Ys.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:b=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:_,DOMParser:x,trustedTypes:U}=t,R=m.prototype,q=Ps(R,"cloneNode"),z=Ps(R,"remove"),E=Ps(R,"nextSibling"),w=Ps(R,"childNodes"),S=Ps(R,"parentNode");if(typeof d=="function"){const le=i.createElement("template");le.content&&le.content.ownerDocument&&(i=le.content.ownerDocument)}let H,A="";const{implementation:Z,createNodeIterator:W,createDocumentFragment:ae,getElementsByTagName:ye}=i,{importNode:Ee}=s;let se=o1();r.isSupported=typeof s_=="function"&&typeof S=="function"&&Z&&Z.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:me,ERB_EXPR:ce,TMPLIT_EXPR:Pe,DATA_ATTR:ve,ARIA_ATTR:G,IS_SCRIPT_OR_DATA:K,ATTR_WHITESPACE:ee,CUSTOM_ELEMENT:Ae}=l1;let{IS_ALLOWED_URI:O}=l1,k=null;const $=Re({},[...r1,...Bd,...Ud,...jd,...a1]);let Y=null;const te=Re({},[...i1,...Hd,...s1,...ko]);let re=Object.seal(l_(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,We=null,Ue=!0,St=!0,Gn=!1,Mr=!0,Qe=!1,qt=!0,On=!1,Di=!1,Li=!1,Tt=!1,qa=!1,ua=!1,Bi=!0,ca=!1;const xu="user-content-";let Fa=!0,fa=!1,Dr={},dn=null;const Nt=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 Rn=null;const Mt=Re({},["audio","video","img","source","image","track"]);let Ui=null;const il=Re({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Va="http://www.w3.org/1998/Math/MathML",nr="http://www.w3.org/2000/svg",Ft="http://www.w3.org/1999/xhtml";let Vt=Ft,Lr=!1,rr=null;const Ou=Re({},[Va,nr,Ft],Ld);let da=Re({},["mi","mo","mn","ms","mtext"]),ha=Re({},["annotation-xml"]);const ji=Re({},["title","style","font","a","script"]);let wn=null;const Ru=["application/xhtml+xml","text/html"],sl="text/html";let rt=null,kn=null;const Hi=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(!(kn&&kn===N)){if((!N||typeof N!="object")&&(N={}),N=Tr(N),wn=Ru.indexOf(N.PARSER_MEDIA_TYPE)===-1?sl:N.PARSER_MEDIA_TYPE,rt=wn==="application/xhtml+xml"?Ld:Xo,k=Hn(N,"ALLOWED_TAGS")?Re({},N.ALLOWED_TAGS,rt):$,Y=Hn(N,"ALLOWED_ATTR")?Re({},N.ALLOWED_ATTR,rt):te,rr=Hn(N,"ALLOWED_NAMESPACES")?Re({},N.ALLOWED_NAMESPACES,Ld):Ou,Ui=Hn(N,"ADD_URI_SAFE_ATTR")?Re(Tr(il),N.ADD_URI_SAFE_ATTR,rt):il,Rn=Hn(N,"ADD_DATA_URI_TAGS")?Re(Tr(Mt),N.ADD_DATA_URI_TAGS,rt):Mt,dn=Hn(N,"FORBID_CONTENTS")?Re({},N.FORBID_CONTENTS,rt):Nt,ue=Hn(N,"FORBID_TAGS")?Re({},N.FORBID_TAGS,rt):Tr({}),We=Hn(N,"FORBID_ATTR")?Re({},N.FORBID_ATTR,rt):Tr({}),Dr=Hn(N,"USE_PROFILES")?N.USE_PROFILES:!1,Ue=N.ALLOW_ARIA_ATTR!==!1,St=N.ALLOW_DATA_ATTR!==!1,Gn=N.ALLOW_UNKNOWN_PROTOCOLS||!1,Mr=N.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Qe=N.SAFE_FOR_TEMPLATES||!1,qt=N.SAFE_FOR_XML!==!1,On=N.WHOLE_DOCUMENT||!1,Tt=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||o_,Vt=N.NAMESPACE||Ft,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),Qe&&(St=!1),qa&&(Tt=!0),Dr&&(k=Re({},a1),Y=[],Dr.html===!0&&(Re(k,r1),Re(Y,i1)),Dr.svg===!0&&(Re(k,Bd),Re(Y,Hd),Re(Y,ko)),Dr.svgFilters===!0&&(Re(k,Ud),Re(Y,Hd),Re(Y,ko)),Dr.mathMl===!0&&(Re(k,jd),Re(Y,s1),Re(Y,ko))),N.ADD_TAGS&&(k===$&&(k=Tr(k)),Re(k,N.ADD_TAGS,rt)),N.ADD_ATTR&&(Y===te&&(Y=Tr(Y)),Re(Y,N.ADD_ATTR,rt)),N.ADD_URI_SAFE_ATTR&&Re(Ui,N.ADD_URI_SAFE_ATTR,rt),N.FORBID_CONTENTS&&(dn===Nt&&(dn=Tr(dn)),Re(dn,N.FORBID_CONTENTS,rt)),Fa&&(k["#text"]=!0),On&&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 Vs('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof N.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Vs('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');H=N.TRUSTED_TYPES_POLICY,A=H.createHTML("")}else H===void 0&&(H=p3(U,u)),H!==null&&typeof A=="string"&&(A=H.createHTML(""));Gt&&Gt(N),kn=N}},Cn=Re({},[...Bd,...Ud,...a3]),ht=Re({},[...jd,...i3]),Dt=function(N){let X=S(N);(!X||!X.tagName)&&(X={namespaceURI:Vt,tagName:"template"});const J=Xo(N.tagName),Fe=Xo(X.tagName);return rr[N.namespaceURI]?N.namespaceURI===nr?X.namespaceURI===Ft?J==="svg":X.namespaceURI===Va?J==="svg"&&(Fe==="annotation-xml"||da[Fe]):!!Cn[J]:N.namespaceURI===Va?X.namespaceURI===Ft?J==="math":X.namespaceURI===nr?J==="math"&&ha[Fe]:!!ht[J]:N.namespaceURI===Ft?X.namespaceURI===nr&&!ha[Fe]||X.namespaceURI===Va&&!da[Fe]?!1:!ht[J]&&(ji[J]||!Cn[J]):!!(wn==="application/xhtml+xml"&&rr[N.namespaceURI]):!1},At=function(N){qs(r.removed,{element:N});try{S(N).removeChild(N)}catch{z(N)}},qn=function(N,X){try{qs(r.removed,{attribute:X.getAttributeNode(N),from:X})}catch{qs(r.removed,{attribute:null,from:X})}if(X.removeAttribute(N),N==="is")if(Tt||qa)try{At(X)}catch{}else try{X.setAttribute(N,"")}catch{}},ll=function(N){let X=null,J=null;if(Li)N="<remove></remove>"+N;else{const Je=n1(N,/^[\r\n\t ]+/);J=Je&&Je[0]}wn==="application/xhtml+xml"&&Vt===Ft&&(N='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+N+"</body></html>");const Fe=H?H.createHTML(N):N;if(Vt===Ft)try{X=new x().parseFromString(Fe,wn)}catch{}if(!X||!X.documentElement){X=Z.createDocument(Vt,"template",null);try{X.documentElement.innerHTML=Lr?A:Fe}catch{}}const mt=X.body||X.documentElement;return N&&J&&mt.insertBefore(i.createTextNode(J),mt.childNodes[0]||null),Vt===Ft?ye.call(X,On?"html":"body")[0]:On?X.documentElement:mt},ol=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 _&&(typeof N.nodeName!="string"||typeof N.textContent!="string"||typeof N.removeChild!="function"||!(N.attributes instanceof b)||typeof N.removeAttribute!="function"||typeof N.setAttribute!="function"||typeof N.namespaceURI!="string"||typeof N.insertBefore!="function"||typeof N.hasChildNodes!="function")},Br=function(N){return typeof h=="function"&&N instanceof h};function Kt(le,N,X){Go(le,J=>{J.call(r,N,X,kn)})}const ar=function(N){let X=null;if(Kt(se.beforeSanitizeElements,N,null),Pa(N))return At(N),!0;const J=rt(N.nodeName);if(Kt(se.uponSanitizeElement,N,{tagName:J,allowedTags:k}),qt&&N.hasChildNodes()&&!Br(N.firstElementChild)&&Ht(/<[/\w!]/g,N.innerHTML)&&Ht(/<[/\w!]/g,N.textContent)||N.nodeType===Ys.progressingInstruction||qt&&N.nodeType===Ys.comment&&Ht(/<[/\w]/g,N.data))return At(N),!0;if(!k[J]||ue[J]){if(!ue[J]&&Ur(J)&&(re.tagNameCheck instanceof RegExp&&Ht(re.tagNameCheck,J)||re.tagNameCheck instanceof Function&&re.tagNameCheck(J)))return!1;if(Fa&&!dn[J]){const Fe=S(N)||N.parentNode,mt=w(N)||N.childNodes;if(mt&&Fe){const Je=mt.length;for(let Lt=Je-1;Lt>=0;--Lt){const Pt=q(mt[Lt],!0);Pt.__removalCount=(N.__removalCount||0)+1,Fe.insertBefore(Pt,E(N))}}}return At(N),!0}return N instanceof m&&!Dt(N)||(J==="noscript"||J==="noembed"||J==="noframes")&&Ht(/<\/no(script|embed|frames)/i,N.innerHTML)?(At(N),!0):(Qe&&N.nodeType===Ys.text&&(X=N.textContent,Go([me,ce,Pe],Fe=>{X=Fs(X,Fe," ")}),N.textContent!==X&&(qs(r.removed,{element:N.cloneNode()}),N.textContent=X)),Kt(se.afterSanitizeElements,N,null),!1)},ir=function(N,X,J){if(Bi&&(X==="id"||X==="name")&&(J in i||J in Hi))return!1;if(!(St&&!We[X]&&Ht(ve,X))){if(!(Ue&&Ht(G,X))){if(!Y[X]||We[X]){if(!(Ur(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,Fs(J,ee,""))){if(!((X==="src"||X==="xlink:href"||X==="href")&&N!=="script"&&e3(J,"data:")===0&&Rn[N])){if(!(Gn&&!Ht(K,Fs(J,ee,"")))){if(J)return!1}}}}}}return!0},Ur=function(N){return N!=="annotation-xml"&&n1(N,Ae)},sr=function(N){Kt(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 mt=X[Fe],{name:Je,namespaceURI:Lt,value:Pt}=mt,Fn=rt(Je),$t=Pt;let ot=Je==="value"?$t:t3($t);if(J.attrName=Fn,J.attrValue=ot,J.keepAttr=!0,J.forceKeepAttr=void 0,Kt(se.uponSanitizeAttribute,N,J),ot=J.attrValue,ca&&(Fn==="id"||Fn==="name")&&(qn(Je,N),ot=xu+ot),qt&&Ht(/((--!?|])>)|<\/(style|title)/i,ot)){qn(Je,N);continue}if(J.forceKeepAttr)continue;if(!J.keepAttr){qn(Je,N);continue}if(!Mr&&Ht(/\/>/i,ot)){qn(Je,N);continue}Qe&&Go([me,ce,Pe],lr=>{ot=Fs(ot,lr," ")});const Gi=rt(N.nodeName);if(!ir(Gi,Fn,ot)){qn(Je,N);continue}if(H&&typeof U=="object"&&typeof U.getAttributeType=="function"&&!Lt)switch(U.getAttributeType(Gi,Fn)){case"TrustedHTML":{ot=H.createHTML(ot);break}case"TrustedScriptURL":{ot=H.createScriptURL(ot);break}}if(ot!==$t)try{Lt?N.setAttributeNS(Lt,Je,ot):N.setAttribute(Je,ot),Pa(N)?At(N):t1(r.removed)}catch{qn(Je,N)}}Kt(se.afterSanitizeAttributes,N,null)},lt=function le(N){let X=null;const J=ol(N);for(Kt(se.beforeSanitizeShadowDOM,N,null);X=J.nextNode();)Kt(se.uponSanitizeShadowNode,X,null),ar(X),sr(X),X.content instanceof c&&le(X.content);Kt(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,mt=null;if(Lr=!le,Lr&&(le="<!-->"),typeof le!="string"&&!Br(le))if(typeof le.toString=="function"){if(le=le.toString(),typeof le!="string")throw Vs("dirty is not a string, aborting")}else throw Vs("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 Pt=rt(le.nodeName);if(!k[Pt]||ue[Pt])throw Vs("root node is forbidden and cannot be sanitized in-place")}}else if(le instanceof h)X=ll("<!---->"),J=X.ownerDocument.importNode(le,!0),J.nodeType===Ys.element&&J.nodeName==="BODY"||J.nodeName==="HTML"?X=J:X.appendChild(J);else{if(!Tt&&!Qe&&!On&&le.indexOf("<")===-1)return H&&ua?H.createHTML(le):le;if(X=ll(le),!X)return Tt?null:ua?A:""}X&&Li&&At(X.firstChild);const Je=ol(fa?le:X);for(;Fe=Je.nextNode();)ar(Fe),sr(Fe),Fe.content instanceof c&<(Fe.content);if(fa)return le;if(Tt){if(qa)for(mt=ae.call(X.ownerDocument);X.firstChild;)mt.appendChild(X.firstChild);else mt=X;return(Y.shadowroot||Y.shadowrootmode)&&(mt=Ee.call(s,mt,!0)),mt}let Lt=On?X.outerHTML:X.innerHTML;return On&&k["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&Ht(u_,X.ownerDocument.doctype.name)&&(Lt="<!DOCTYPE "+X.ownerDocument.doctype.name+`>
|
|
111
|
+
`+Lt),Qe&&Go([me,ce,Pe],Pt=>{Lt=Fs(Lt,Pt," ")}),H&&ua?H.createHTML(Lt):Lt},r.setConfig=function(){let le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};zi(le),Di=!0},r.clearConfig=function(){kn=null,Di=!1},r.isValidAttribute=function(le,N,X){kn||zi({});const J=rt(le),Fe=rt(N);return ir(J,Fe,X)},r.addHook=function(le,N){typeof N=="function"&&qs(se[le],N)},r.removeHook=function(le,N){if(N!==void 0){const X=WN(se[le],N);return X===-1?void 0:JN(se[le],X,1)[0]}return t1(se[le])},r.removeHooks=function(le){se[le]=[]},r.removeAllHooks=function(){se=o1()},r}var g3=c_();const y3=({onClose:t})=>{const r=Ze();return y.jsxs("div",{className:Et.highlightLoadingInfo,onClick:t,children:[y.jsx("div",{className:Et.highlightLoadingInfoCloseIcon,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.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"})})}),y.jsxs("div",{className:Et.highlightLoadingInfoInnerContainer,children:[y.jsxs("div",{className:Et.highlightLoadingInfoContent,children:[y.jsx("h3",{children:r("source-infos.highlight-loading.title")}),y.jsx("p",{children:r("source-infos.highlight-loading.description")})]}),y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"#000000",viewBox:"0 0 256 256",children:y.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"})})]})]})},b3=({title:t,href:r,children:i})=>y.jsx("a",{href:r,title:t,target:"_blank",rel:"noopener noreferrer",children:i}),v3=({className:t,children:r,...i})=>y.jsx("a",{className:Q(el.button,el.buttonDefault,t),type:"button",role:"button",...i,children:r}),_3=t=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:y.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"})}),E3=({type:t,...r})=>{switch(t){case"WEBSITE":return y.jsx(Jv,{...r});case"PDF":return y.jsx(Wv,{...r});case"DOCX":return y.jsx(Kv,{...r});case"TEXT":return y.jsx(_3,{...r});default:return y.jsx($v,{...r})}},S3=({url:t,knowledgeBaseType:r})=>{const i=Ze();return y.jsx(v3,{className:Et.openSourceButton,href:t,target:"_blank",children:y.jsxs("div",{className:Et.sourceButtonLabel,children:[y.jsx("div",{className:Et.sourceHeaderIcon,children:y.jsx(E3,{type:r})}),y.jsx("p",{children:i("source-infos.open-source")})]})})},T3=({sourceInfos:{content:t,url:r,knowledgeBaseType:i,highlighted:s}})=>{const[u,c]=B.useState(!s);B.useEffect(()=>{s&&c(!1)},[s]);const d=g3.sanitize(t,{USE_PROFILES:{html:!0}});return y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:Q(Et.sourceContent,t_.markdown),children:[y.jsx(Or,{options:{overrides:{a:b3}},children:d}),u&&y.jsx(y3,{onClose:()=>c(!1)})]}),y.jsx(S3,{url:r,knowledgeBaseType:i})]})},A3=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,x3=()=>{const t=Ze();return y.jsxs("div",{className:Et.loadingError,children:[y.jsx("h1",{children:t("source-infos.error.title")}),y.jsx("img",{src:A3,title:t("source-infos.error.title")}),y.jsx("p",{children:t("source-infos.error.info")})]})},O3=()=>y.jsx("div",{className:Et.loadingSourceInfos,children:y.jsx("svg",{className:Et.loading,xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.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 R3({sourceInfos:t,onClose:r,threshold:i=100}){const s=B.useRef(null),[u,c]=B.useState(0),[d,h]=B.useState(!1),m=B.useRef(null),p=B.useRef(null),b=B.useCallback(R=>{m.current=R,h(!0)},[]),_=B.useCallback(R=>{if(m.current!==null&&d){const q=R-m.current;q>0&&c(q)}},[d]),x=B.useCallback(()=>{h(!1),u>i&&r(),c(0),m.current=null},[u,i,r]),U=B.useCallback(R=>{const q=A=>b(A.touches[0].clientY),z=A=>_(A.touches[0].clientY),E=()=>x(),w=A=>{A.preventDefault(),b(A.clientY),window.addEventListener("mousemove",S),window.addEventListener("mouseup",H)},S=A=>_(A.clientY),H=()=>{x(),window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",H)};R.addEventListener("touchstart",q),R.addEventListener("touchmove",z),R.addEventListener("touchend",E),R.addEventListener("mousedown",w),p.current=()=>{R.removeEventListener("touchstart",q),R.removeEventListener("touchmove",z),R.removeEventListener("touchend",E),R.removeEventListener("mousedown",w),window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",H)}},[b,_,x]);return B.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]=B.useState(!0);return B.useEffect(()=>{let s=null;return t?.type==="loading"?(i(!0),s=setTimeout(()=>{i(!1)},300)):i(!t),()=>{s&&clearTimeout(s)}},[t]),r},C3=()=>{const t=Nr(),r=st(m=>m.chat.sourceInfos),i=i_(),s=B.useRef(null),u=w3(r);B.useEffect(()=>{s.current&&r?.type==="loading"&&(i?s.current.showModal():(s.current.setAttribute("open","true"),s.current?.focus()))},[r,i]);const c=B.useCallback(()=>{s.current&&(i?s.current.close():s.current.removeAttribute("open"),t(RO()))},[t,i]),{ref:d,dragOffsetY:h}=R3({onClose:c,sourceInfos:r});return r?y.jsx("dialog",{ref:s,className:Q(Et.sourceInfos,u?Et.waitForLoading:r.type==="loading"?Et.loadingContent:""),style:i&&h?{transform:`translateY(${h}px)`}:{},onClose:c,autoFocus:!0,role:"dialog","aria-labelledby":"source-info-title",children:u?null:y.jsxs(y.Fragment,{children:[y.jsx(XN,{ref:d,tabIndex:-1,sourceInfos:r.type==="loaded"?r:void 0,onClose:c}),r.type==="loading"?y.jsx(O3,{}):r.type==="loading-error"?y.jsx(x3,{}):y.jsxs(y.Fragment,{children:[y.jsx(ZN,{loading:!r.highlighted}),y.jsx(T3,{sourceInfos:r})]})]})}):null},N3="_container_1aof3_1",M3="_body_1aof3_7",D3="_intro_1aof3_14",L3="_footer_1aof3_39",B3="_footnote_1aof3_43",U3="_containerWithFootnote_1aof3_58",j3="_startChatButton_1aof3_73",H3="_spinner_1aof3_88",I3="_formFields_1aof3_92",z3="_formField_1aof3_92",G3="_radio_1aof3_104",k3="_checkbox_1aof3_111",q3="_input_1aof3_119",F3="_inputLabel_1aof3_153",V3="_selectWrapper_1aof3_157",P3="_select_1aof3_157",Y3="_selectLabel_1aof3_203",_t={container:N3,body:M3,intro:D3,footer:L3,footnote:B3,containerWithFootnote:U3,startChatButton:j3,spinner:H3,formFields:I3,formField:z3,radio:G3,checkbox:k3,input:q3,inputLabel:F3,selectWrapper:V3,select:P3,selectLabel:Y3},X3=({name:t,label:r,defaultValue:i,required:s,onChange:u})=>{const c=d=>{u(d.currentTarget.checked?"true":"false")};return y.jsxs("label",{className:Q(_t.checkbox,"chat__startScreen__checkbox"),htmlFor:t,children:[y.jsx("input",{type:"checkbox",id:t,name:t,defaultChecked:i==="true",required:s,onChange:c}),y.jsx("div",{children:r})]})},Z3=({type:t,name:r,label:i,defaultValue:s,placeholder:u,required:c,multiple:d,min:h,max:m,pattern:p,onChange:b})=>{const _=x=>{b(x.target.value)};return y.jsxs("label",{className:Q(_t.input,"chat__startScreen__input"),htmlFor:r,children:[y.jsx("div",{className:Q(_t.inputLabel),children:i}),y.jsx("input",{type:t,id:r,name:r,defaultValue:s,placeholder:u,required:c,multiple:d,min:h,max:m,pattern:p,onChange:_})]})},Q3=({name:t,value:r,label:i,defaultChecked:s,required:u,onChange:c})=>{const d=`${t}-${r}`,h=m=>{c(m.target.value)};return y.jsxs("label",{className:Q(_t.radio,"chat__startScreen__radio"),htmlFor:d,children:[y.jsx("input",{id:d,type:"radio",name:t,value:r,defaultChecked:s,required:u,onChange:h}),y.jsx("span",{className:Q(_t.label),children:i})]})},K3=({name:t,label:r,defaultValue:i,required:s,multiple:u,options:c,onChange:d})=>{const h=m=>{d(m.target.value)};return y.jsxs("label",{className:Q(_t.select,"chat__startScreen__select"),htmlFor:t,children:[y.jsx("div",{className:Q(_t.selectLabel),children:r}),y.jsx("div",{className:Q(_t.selectWrapper),children:y.jsx("select",{id:t,name:t,defaultValue:i,required:s,multiple:u,onChange:h,children:Object.entries(c||{}).map(([m,p])=>y.jsx("option",{value:m,selected:p===i,children:p}))})})]})},$3="start-screen.intro",W3="start-screen.start-chat",J3="start-screen.waiting-for-login",e8="start-screen.footnote",jn="start-screen.form",u1=`${jn}.fields`,t8=()=>{const t=Ze(),r=Nr(),i=$h(),s=st(R=>R.startScreen.loginRequestToken),u=st(R=>R.settings.requiresUserAuthentication);B.useEffect(()=>{let R;if(s){const E=window.screenX+(window.outerWidth-600)/2,w=window.screenY+(window.outerHeight-700)/2,S=window.open(`/${i}/auth/login?loginRequestToken=${s}`,"Login",`width=600,height=700,left=${E},top=${w},resizable=yes,scrollbars=yes`);R=setInterval(()=>{S?.closed&&(r(TO()),clearInterval(R))},500)}return()=>{R&&clearInterval(R)}},[i,s,r]);const[c,d]=B.useState({}),h=()=>{const R=Object.entries(c).reduce((q,[z,E])=>({...q,[z]:E.value}),{});r(u?SO({loginRequestToken:Jo(),formValues:R}):vO({formValues:R}))},m=t($3),p=t(s?J3:W3),b=t(e8),_=B.useMemo(()=>t(u1)?.split(";").map(R=>R.trim())??[],[t(u1)]);B.useEffect(()=>{_.length&&Object.keys(c).length===0&&d(_.reduce((R,q)=>({...R,[q]:n8(q,t)}),{}))},[t,_,c]);const x=R=>{R.preventDefault(),h()},U=R=>q=>{d(z=>({...z,[R]:{...z[R],value:q}}))};return y.jsxs("form",{onSubmit:x,className:Q(_t.container,b&&_t.containerWithFootnote,"chat__startScreen"),children:[y.jsxs("div",{className:Q(_t.body,"chat__startScreen__body"),children:[m&&y.jsx("div",{className:Q(_t.intro,"chat__startScreen__intro"),children:y.jsx(Or,{options:{overrides:{a:c1}},children:m})}),y.jsx("div",{className:Q(_t.formFields,"chat__startScreen__fields"),children:Object.values(c).map(({type:R,name:q,label:z,placeholder:E,defaultValue:w,options:S,required:H,multiple:A,min:Z,max:W,pattern:ae})=>y.jsx("div",{className:Q(_t.formField,"chat__startScreen__field"),children:(()=>{switch(R){case"radio":return y.jsxs(y.Fragment,{children:[y.jsx("div",{children:z}),Object.entries(S||{}).map(([ye,Ee])=>y.jsx(Q3,{name:q,value:ye,label:Ee,defaultChecked:ye===w,required:H,onChange:U(q)},ye))]});case"checkbox":return y.jsx(X3,{name:q,label:z,defaultValue:w,required:H,onChange:U(q)});case"select":return y.jsx(K3,{name:q,label:z,defaultValue:w,required:H,multiple:A,options:S,onChange:U(q)});default:return y.jsx(Z3,{type:R,name:q,label:z,placeholder:E,defaultValue:w,required:H,multiple:A,min:Z,max:W,pattern:ae,onChange:U(q)})}})()},q))})]}),y.jsxs("div",{className:Q(_t.footer,"chat__startScreen__footer"),children:[y.jsxs(lu,{type:"submit",className:_t.startChatButton,disabled:!!s,children:[!!s&&y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",className:_t.spinner,children:y.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"})}),y.jsx("div",{children:p})]}),b&&y.jsx("div",{className:_t.footnote,children:y.jsx(Or,{options:{overrides:{a:c1}},children:b})})]})]})},c1=({title:t,href:r,children:i})=>y.jsx("a",{href:r,title:t,target:"_blank",rel:"noopener noreferrer",children:i}),n8=(t,r)=>{const i=r(`${jn}.${t}.type`)||"text",s=r(`${jn}.${t}.required`)==="true",u=r(`${jn}.${t}.multiple`)==="true",c=r(`${jn}.${t}.placeholder`),d=r(`${jn}.${t}.label`)||"",h=r(`${jn}.${t}.defaultValue`),m=r(`${jn}.${t}.min`),p=r(`${jn}.${t}.max`),b=r(`${jn}.${t}.pattern`),_=a8(r(`${jn}.${t}.options`));return{name:t,label:d,placeholder:c,value:r8(i,h,_)||"",defaultValue:h,options:_,type:i,required:s,multiple:u,min:m,max:p,pattern:b}},r8=(t,r,i)=>r||t==="select"&&Object.keys(i)[0]||"",a8=(t="")=>t.split(";").map(r=>r.trim()).reduce((r,i)=>{const[s,u]=i.split(":").map(c=>c.trim());return{...r,[s]:u}},{}),i8=()=>{const t=du();B.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"},s8=({clientName:t})=>{i8();const r=Nr(),i=st(b=>b.intl.messages),s=Ze(),u=st(b=>b.settings.enableStartScreen),c=st(b=>b.startScreen.startScreenStatus),[d,h]=B.useState(void 0);B.useEffect(()=>{const b=hu.parse(window.location.search);b.cssClassName&&h(b.cssClassName);const _=x=>{switch(x.data.type){case Oi.TRIGGER_ACTION:r(x.data.action);break;case Oi.TRIGGER_STORY:r(pv(x.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(cv(x.data.text));break;case Oi.RESTART_CHAT:r(al());break}};return r(CO(t,b)),window.addEventListener("message",x=>_(x),!1),()=>window.removeEventListener("message",_)},[t,r]),B.useEffect(()=>{const b=s("page.title");b&&document&&(document.title=b)},[i,s]);const m=u===void 0,p=u===!1||c==="HIDDEN";return y.jsx("div",{className:Q(Jb.chatwindow,p&&Jb.chatwindowWithAside,"chat__chatwindow",d),children:m?null:p?y.jsxs(y.Fragment,{children:[y.jsx("header",{children:y.jsx(Wb,{chatStarted:!0})}),y.jsx("main",{children:y.jsx(fN,{clientName:t})}),y.jsx("aside",{children:y.jsx(C3,{})})]}):y.jsxs(y.Fragment,{children:[y.jsx("header",{children:y.jsx(Wb,{chatStarted:!1})}),y.jsx("main",{children:y.jsx(t8,{})})]})})},l8=()=>{const t=$h(),r=i_(),i=st(u=>u.intl.locale),s=st(u=>u.intl.messages);return y.jsx(MA,{locale:i,messages:s,onError:()=>{},children:y.jsx("div",{className:Q([LA.app,r?"chat__small":"chat__large"]),children:y.jsx(s8,{clientName:t})})})};var Id,f1;function o8(){if(f1)return Id;f1=1;var t=Zv(),r=Qh(),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 Id=s,Id}var u8=o8();const c8=uu(u8);function f8(t){return t&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function d8(t){return t}function h8(t,r){r=r||{};const i=r.delimiter||".",s=r.maxDepth,u=r.transformKey||d8,c={};function d(h,m,p){p=p||1,Object.keys(h).forEach(function(b){const _=h[b],x=r.safe&&Array.isArray(_),U=Object.prototype.toString.call(_),R=f8(_),q=U==="[object Object]"||U==="[object Array]",z=m?m+i+u(b):u(b);if(!x&&!R&&q&&Object.keys(_).length&&(!r.maxDepth||p<s))return d(_,z,p+1);c[z]=_})}return d(t),c}const f_={"page.title":"Bubble Chat Chatbot","message-input-label":"Benutzereingabe","message-input-placeholder":"Nachricht eingeben","message-input.actions.submit.label":"Nachricht senden","message-input.actions.start-audio-recording.label":"Spracheingabe starten","message-input.actions.stop-audio-recording.label":"Spracheingabe stoppen","message-input.actions.submit-audio-recording.label":"Spracheingabe übermitteln","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.reaction.say-more":"Erzähle mir bitte mehr","bot-bubble.reaction.category.WRONG_INFORMATION":"Falsch","bot-bubble.reaction.category.MISSING_INFORMATION":"Unvollständig","bot-bubble.reaction.category.OLD_INFORMATION":"Veraltet","bot-bubble.reaction.category.UNCLEAR":"Unklar","bot-bubble.reaction.category.OFF_TOPIC":"Nicht zur Frage passend","bot-bubble.reaction.comment":"Gedanken mit mir teilen...","bot-bubble.reaction.close":"Schliessen","bot-bubble.copy":"Kopieren","bot-bubble.sources":"Quellenliste","bot-bubble.source.open":"Quelle öffnen","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
112
|
|
|
113
113
|
- Der Chatverlauf wird im EU-Raum gespeichert und kann nur von autorisierten Personen eingesehen werden.
|
|
114
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.restart-chat":"Chat neu starten","conversation-rating.overlay.action.cancel":"Abbrechen","start-screen.intro":"","start-screen.start-chat":"Chat starten","start-screen.waiting-for-login":"Warte auf Login ...","header.close-chat":"Chat minimieren","header.menu.title":"Menü","header.menu.restart-chat":"Chat neu starten","header.menu.expand-chat-window":"Fenster maximieren","header.menu.download-transcript":"Chatverlauf herunterladen","header.menu.send-transcript":"Chatverlauf versenden","header.menu.export-transcript":"Chatverlauf exportieren","header.menu.rate-conversation":"Chat bewerten","source-infos.close":"Schliessen","source-infos.open-source":"Quelle öffnen","source-infos.error.title":"Fehler","source-infos.error.info":"Oops! Etwas ist schiefgelaufen. Bitte versuche es erneut oder kontaktiere den Support, falls das Problem weiterhin besteht.","source-infos.highlight-loading.title":"Relevante Inhalte werden markiert...","source-infos.highlight-loading.description":"Einen Moment – die Quelle wird analysiert.","commands.show-more.action":"Weitere ...","commands.show-more.tooltip":"Weitere Befehle anzeigen","commands.show-less.action":"Weniger ...","commands.show-less.tooltip":"Weniger Befehle anzeigen"},m8={"page.title":"Bubble Chat Chatbot","message-input-label":"User input","message-input-placeholder":"Enter a message","message-input.actions.submit.label":"Send message","message-input.actions.start-audio-recording.label":"Start voice input","message-input.actions.stop-audio-recording.label":"Stop voice input","message-input.actions.submit-audio-recording.label":"Transmit voice input","guest-bubble.label":"Your message","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.reaction.say-more":"Please tell us more","bot-bubble.reaction.category.WRONG_INFORMATION":"Wrong","bot-bubble.reaction.category.MISSING_INFORMATION":"Incomplete","bot-bubble.reaction.category.OLD_INFORMATION":"Outdated","bot-bubble.reaction.category.UNCLEAR":"Unclear","bot-bubble.reaction.category.OFF_TOPIC":"Not relevant to the question","bot-bubble.reaction.comment":"Share your thoughts with us...","bot-bubble.reaction.close":"Close","bot-bubble.copy":"Copy","bot-bubble.sources":"Source list","bot-bubble.source.open":"Open source","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:
|
|
@@ -120,5 +120,5 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
|
|
|
120
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.restart-chat":"Redémarrer le chat","conversation-rating.overlay.action.cancel":"Annuler","start-screen.intro":"","start-screen.start-chat":"Démarrer le chat","start-screen.waiting-for-login":"En attente de connexion ...","header.close-chat":"Minimiser le chat","header.menu.title":"Menu","header.menu.restart-chat":"Redémarrer le chat","header.menu.expand-chat-window":"Agrandir la fenêtre","header.menu.download-transcript":"Télécharger l'historique du chat","header.menu.send-transcript":"Envoyer l'historique du chat","header.menu.export-transcript":"Exporter l'historique du chat","header.menu.rate-conversation":"Évaluer le chat","source-infos.close":"Fermer","source-infos.open-source":"Ouvrir source","source-infos.error.title":"Erreur","source-infos.error.info":"Oups ! Quelque chose s'est mal passé. Merci de réessayer ou de contacter le support si le problème persiste.","source-infos.highlight-loading.title":"Contenus pertinents en surbrillance...","source-infos.highlight-loading.description":"Un instant - la source est analysée","commands.show-more.action":"Plus","commands.show-more.tooltip":"Afficher plus de commandes","commands.show-less.action":"Moins","commands.show-less.tooltip":"Afficher moins de commandes"},g8={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Inserire un messaggio","message-input.actions.submit.label":"Invia messaggio","message-input.actions.start-audio-recording.label":"Avviare l'input vocale","message-input.actions.stop-audio-recording.label":"Interrompere l'input vocale","message-input.actions.submit-audio-recording.label":"Trasmettere l'input vocale","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.reaction.say-more":"Disci più, per favore","bot-bubble.reaction.category.WRONG_INFORMATION":"Errate","bot-bubble.reaction.category.MISSING_INFORMATION":"Incompleto","bot-bubble.reaction.category.OLD_INFORMATION":"Obsoleta","bot-bubble.reaction.category.UNCLEAR":"Poco chiaro","bot-bubble.reaction.category.OFF_TOPIC":"Non pertinente alla domanda","bot-bubble.reaction.comment":"Condividete con noi i vostri pensieri...","bot-bubble.reaction.close":"Chiudere","bot-bubble.copy":"Copia","bot-bubble.sources":"Elenco delle fonti","bot-bubble.source.open":"Fonte aperta","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
121
|
|
|
122
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.restart-chat":"Riavviare la chat","conversation-rating.overlay.action.cancel":"Annulla","start-screen.intro":"","start-screen.start-chat":"Avviare la chat","start-screen.waiting-for-login":"In attesa di login ...","header.close-chat":"Minimizzare la chat","header.menu.title":"Menu","header.menu.restart-chat":"Riavviare la chat","header.menu.expand-chat-window":"Espandere la finestra","header.menu.download-transcript":"Scaricare la trascrizione","header.menu.send-transcript":"Inviare la trascrizione","header.menu.export-transcript":"Esportare la trascrizione","header.menu.rate-conversation":"Valutare la conversazione","source-infos.close":"Chiudere","source-infos.open-source":"Fonte aperta","source-infos.error.title":"Errore","source-infos.error.info":"Ops! Qualcosa è andato storto. Riprovare o contattare l'assistenza se il problema persiste.","source-infos.highlight-loading.title":"Il contenuto rilevante è evidenziato...","source-infos.highlight-loading.description":"Un momento - la fonte è in fase di analisi","commands.show-more.action":"Di più","commands.show-more.tooltip":"Mostra più comandi","commands.show-less.action":"Meno","commands.show-less.tooltip":"Mostra meno comandi"},y8=["de","en","fr","it"],d_={locale:"de",messages:f_},b8=(t,r)=>{if(y8.includes(t)){const i=v8(t),s=h8(r);return{...i,...s}}return r},v8=t=>{switch(t.toString()){case"en":return m8;case"fr":return p8;case"it":return g8;default:return f_}},_8=(t=E8,r)=>{switch(r.type){case kh:return Object.assign({},t,{connectionState:Ia.CONNECTING});case qh:return Object.assign({},t,{connectionState:Ia.CONNECTED});case Fh:return Object.assign({},t,{connectionState:Ia.DISCONNECTED});case Vh:return Object.assign({},t,{connectionState:Ia.RECONNECTED});case Ph:return Object.assign({},t,{sessionId:r.sessionId});case yu:return Object.assign({},t,{sessionId:r.payload.sessionId,userId:r.payload.userId});case bu:return Object.assign({},t,{sessionId:void 0});default:return t}},E8={connectionState:Ia.DISCONNECTED,sessionId:void 0,userId:void 0},S8=(t=d1,r)=>{switch(r.type){case Nv:return d1;case yu:return Ua({type:"webclient.chat.started"}),t;case bu: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 f1(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 Ch:{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 wh: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 fv:return Ua(r),t;case dv:return Ua(r),{...t,conversationRating:{...t.conversationRating,opener:void 0}};case Mh:{const i=new Te.TextMessage(r.transcription,new Te.GuestUser),s=Object.assign({},i,{_id:Wo()});return f1(t,s)}case Te.ActionTypes.TRANSCRIPT_ITEM_GUEST_REACTION:{const i=t.messages.map(s=>s._id===r.payload.actionId?Object.assign({},s,r.payload.reaction?{reaction:{type:r.payload.reaction,category:r.payload.category,comment:r.payload.comment}}:{reaction:void 0}):s);return Object.assign({},t,{messages:i})}case Dh:{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 Dv:{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 Lv:{const i={...t.conversationRating,opener:void 0};return Object.assign({},t,{conversationRating:i})}case Bh:return{...t,sourceInfos:{type:"loading",chunkId:r.payload.chunkId}};case Lh:{const{highlighted:i}=r.payload;return t.sourceInfos?.type==="loaded"&&i?{...t,sourceInfos:{...t.sourceInfos,highlighted:!0}}:{...t,sourceInfos:{type:"loading-error"}}}case cv:{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 Uh:return{...t,sourceInfos:void 0};case Mv:return{...t,showTranscriptMailOverlay:!t.showTranscriptMailOverlay,conversationRating:{...t.conversationRating,opener:void 0}};default:return t}},f1=(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=>{T8()?window.top?.postMessage(t,"*"):t.type==="webclient.change.url"&&window.open(t.url)},T8=()=>typeof window<"u"&&window.self!==window.top,d1={messages:[],quickReplies:[],isBotTyping:!1,showTranscriptMailOverlay:!1,conversationRating:{enabled:!1}},h_=zh({name:"intl",initialState:d_,reducers:{updateIntl:(t,r)=>{t.locale=r.payload.language,t.messages=r.payload.messages}}}),{updateIntl:A8}=h_.actions,x8=h_.reducer,O8={version:void 0,requiresUserAuthentication:!1,enableStartScreen:void 0,enableStandaloneView:!1,enableTranscriptExportEmail:!1,enableTranscriptExportPdf:!1,enableGeneralConditions:!1,enableSpeechSupport:!1,commands:[],menuItems:[]},m_=zh({name:"settings",initialState:O8,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:R8}=m_.actions,w8=m_.reducer,C8=bv({settings:w8,chat:S8,startScreen:TO,connection:_8,intl:x8}),N8="bubble-chat",p_="state-last-saved-at",g_="state",M8=t=>{try{if(!B8())return;const r=h1(t,p_);if(L8(r))return;{const i=h1(t,g_);return i===null?void 0:JSON.parse(i)}}catch(r){console.error(r);return}},D8=(t,r)=>{try{const i=JSON.stringify(r);m1(t,g_,i);const s=new Date().toISOString();m1(t,p_,s)}catch(i){console.error(i)}},L8=t=>{if(t===null)return!1;const r=new Date(t);return r.setHours(r.getHours()+12),new Date>r},B8=()=>typeof localStorage<"u",h1=(t,r)=>{const i=y_(t,r);return localStorage.getItem(i)},m1=(t,r,i)=>{const s=y_(t,r);return localStorage.setItem(s,i)},y_=(t,r)=>`${N8}-${t}-${r}`,tr=Object.create(null);tr.open="0";tr.close="1";tr.ping="2";tr.pong="3";tr.message="4";tr.upgrade="5";tr.noop="6";const Xo=Object.create(null);Object.keys(tr).forEach(t=>{Xo[tr[t]]=t});const dh={type:"error",data:"parser error"},b_=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",v_=typeof ArrayBuffer=="function",__=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,$h=({type:t,data:r},i,s)=>b_&&r instanceof Blob?i?s(r):p1(r,s):v_&&(r instanceof ArrayBuffer||__(r))?i?s(r):p1(new Blob([r]),s):s(tr[t]+(r||"")),p1=(t,r)=>{const i=new FileReader;return i.onload=function(){const s=i.result.split(",")[1];r("b"+(s||""))},i.readAsDataURL(t)};function g1(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let Gd;function U8(t,r){if(b_&&t.data instanceof Blob)return t.data.arrayBuffer().then(g1).then(r);if(v_&&(t.data instanceof ArrayBuffer||__(t.data)))return r(g1(t.data));$h(t,!1,i=>{Gd||(Gd=new TextEncoder),r(Gd.encode(i))})}const y1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ks=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<y1.length;t++)Ks[y1.charCodeAt(t)]=t;const j8=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),b=new Uint8Array(p);for(s=0;s<i;s+=4)c=Ks[t.charCodeAt(s)],d=Ks[t.charCodeAt(s+1)],h=Ks[t.charCodeAt(s+2)],m=Ks[t.charCodeAt(s+3)],b[u++]=c<<2|d>>4,b[u++]=(d&15)<<4|h>>2,b[u++]=(h&3)<<6|m&63;return p},H8=typeof ArrayBuffer=="function",Wh=(t,r)=>{if(typeof t!="string")return{type:"message",data:E_(t,r)};const i=t.charAt(0);return i==="b"?{type:"message",data:I8(t.substring(1),r)}:Xo[i]?t.length>1?{type:Xo[i],data:t.substring(1)}:{type:Xo[i]}:dh},I8=(t,r)=>{if(H8){const i=j8(t);return E_(i,r)}else return{base64:!0,data:t}},E_=(t,r)=>{switch(r){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},S_="",z8=(t,r)=>{const i=t.length,s=new Array(i);let u=0;t.forEach((c,d)=>{$h(c,!1,h=>{s[d]=h,++u===i&&r(s.join(S_))})})},G8=(t,r)=>{const i=t.split(S_),s=[];for(let u=0;u<i.length;u++){const c=Wh(i[u],r);if(s.push(c),c.type==="error")break}return s};function k8(){return new TransformStream({transform(t,r){U8(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 kd;function ko(t){return t.reduce((r,i)=>r+i.length,0)}function qo(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 q8(t,r){kd||(kd=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(ko(i)<1)break;const m=qo(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(ko(i)<2)break;const m=qo(i,2);u=new DataView(m.buffer,m.byteOffset,m.length).getUint16(0),s=3}else if(s===2){if(ko(i)<8)break;const m=qo(i,8),p=new DataView(m.buffer,m.byteOffset,m.length),b=p.getUint32(0);if(b>Math.pow(2,21)-1){h.enqueue(dh);break}u=b*Math.pow(2,32)+p.getUint32(4),s=3}else{if(ko(i)<u)break;const m=qo(i,u);h.enqueue(Wh(c?m:kd.decode(m),r)),s=0}if(u===0||u>t){h.enqueue(dh);break}}}})}const T_=4;function dt(t){if(t)return F8(t)}function F8(t){for(var r in dt.prototype)t[r]=dt.prototype[r];return t}dt.prototype.on=dt.prototype.addEventListener=function(t,r){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(r),this};dt.prototype.once=function(t,r){function i(){this.off(t,i),r.apply(this,arguments)}return i.fn=r,this.on(t,i),this};dt.prototype.off=dt.prototype.removeListener=dt.prototype.removeAllListeners=dt.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};dt.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};dt.prototype.emitReserved=dt.prototype.emit;dt.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};dt.prototype.hasListeners=function(t){return!!this.listeners(t).length};const Au=typeof Promise=="function"&&typeof Promise.resolve=="function"?r=>Promise.resolve().then(r):(r,i)=>i(r,0),Sn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),V8="arraybuffer";function A_(t,...r){return r.reduce((i,s)=>(t.hasOwnProperty(s)&&(i[s]=t[s]),i),{})}const P8=Sn.setTimeout,Y8=Sn.clearTimeout;function xu(t,r){r.useNativeTimers?(t.setTimeoutFn=P8.bind(Sn),t.clearTimeoutFn=Y8.bind(Sn)):(t.setTimeoutFn=Sn.setTimeout.bind(Sn),t.clearTimeoutFn=Sn.clearTimeout.bind(Sn))}const X8=1.33;function Z8(t){return typeof t=="string"?Q8(t):Math.ceil((t.byteLength||t.size)*X8)}function Q8(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 x_(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function K8(t){let r="";for(let i in t)t.hasOwnProperty(i)&&(r.length&&(r+="&"),r+=encodeURIComponent(i)+"="+encodeURIComponent(t[i]));return r}function $8(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 W8 extends Error{constructor(r,i,s){super(r),this.description=i,this.context=s,this.type="TransportError"}}class Jh extends dt{constructor(r){super(),this.writable=!1,xu(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 W8(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=Wh(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=K8(r);return i.length?"?"+i:""}}class J8 extends Jh{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)};G8(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,z8(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]=x_()),!this.supportsBinary&&!i.sid&&(i.b64=1),this.createUri(r,i)}}let O_=!1;try{O_=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const eM=O_;function tM(){}class nM extends J8{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 Jn extends dt{constructor(r,i,s){super(),this.createRequest=r,xu(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=A_(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=Jn.requestsCount++,Jn.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=tM,r)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Jn.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()}}Jn.requestsCount=0;Jn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",b1);else if(typeof addEventListener=="function"){const t="onpagehide"in Sn?"pagehide":"unload";addEventListener(t,b1,!1)}}function b1(){for(let t in Jn.requests)Jn.requests.hasOwnProperty(t)&&Jn.requests[t].abort()}const rM=(function(){const t=R_({xdomain:!1});return t&&t.responseType!==null})();class aM extends nM{constructor(r){super(r);const i=r&&r.forceBase64;this.supportsBinary=rM&&!i}request(r={}){return Object.assign(r,{xd:this.xd},this.opts),new Jn(R_,this.uri(),r)}}function R_(t){const r=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!r||eM))return new XMLHttpRequest}catch{}if(!r)try{return new Sn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const w_=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class iM extends Jh{get name(){return"websocket"}doOpen(){const r=this.uri(),i=this.opts.protocols,s=w_?{}:A_(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;$h(s,this.supportsBinary,c=>{try{this.doWrite(s,c)}catch{}u&&Au(()=>{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]=x_()),this.supportsBinary||(i.b64=1),this.createUri(r,i)}}const qd=Sn.WebSocket||Sn.MozWebSocket;class sM extends iM{createSocket(r,i,s){return w_?new qd(r,i,s):i?new qd(r,i):new qd(r)}doWrite(r,i){this.ws.send(i)}}class lM extends Jh{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=q8(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=r.readable.pipeThrough(i).getReader(),u=k8();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&&Au(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var r;(r=this._transport)===null||r===void 0||r.close()}}const oM={websocket:sM,webtransport:lM,polling:aM},uM=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,cM=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function hh(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=uM.exec(t||""),c={},d=14;for(;d--;)c[cM[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=fM(c,c.path),c.queryKey=dM(c,c.query),c}function fM(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 dM(t,r){const i={};return r.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,u,c){u&&(i[u]=c)}),i}const mh=typeof addEventListener=="function"&&typeof removeEventListener=="function",Zo=[];mh&&addEventListener("offline",()=>{Zo.forEach(t=>t())},!1);class la extends dt{constructor(r,i){if(super(),this.binaryType=V8,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=hh(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=hh(i.host).host);xu(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=$8(this.opts.query)),mh&&(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"})},Zo.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(r){const i=Object.assign({},this.opts.query);i.EIO=T_,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+=Z8(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,Au(()=>{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(),mh&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=Zo.indexOf(this._offlineEventListener);s!==-1&&Zo.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",r,i),this.writeBuffer=[],this._prevBufferLen=0}}}la.protocol=T_;class hM 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"&&(b(),this.setTransport(i),i.send([{type:"upgrade"}]),this.emitReserved("upgrade",i),i=null,this.upgrading=!1,this.flush())})}else{const x=new Error("probe error");x.transport=i.name,this.emitReserved("upgradeError",x)}}))};function c(){s||(s=!0,b(),i.close(),i=null)}const d=E=>{const x=new Error("probe error: "+E);x.transport=i.name,c(),this.emitReserved("upgradeError",x)};function h(){d("transport closed")}function m(){d("socket closed")}function p(E){i&&E.name!==i.name&&c()}const b=()=>{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 mM=class extends hM{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=>oM[u]).filter(u=>!!u)),super(r,s)}};function pM(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=hh(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 gM=typeof ArrayBuffer=="function",yM=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,C_=Object.prototype.toString,bM=typeof Blob=="function"||typeof Blob<"u"&&C_.call(Blob)==="[object BlobConstructor]",vM=typeof File=="function"||typeof File<"u"&&C_.call(File)==="[object FileConstructor]";function em(t){return gM&&(t instanceof ArrayBuffer||yM(t))||bM&&t instanceof Blob||vM&&t instanceof File}function Qo(t,r){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let i=0,s=t.length;i<s;i++)if(Qo(t[i]))return!0;return!1}if(em(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return Qo(t.toJSON(),!0);for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&Qo(t[i]))return!0;return!1}function _M(t){const r=[],i=t.data,s=t;return s.data=ph(i,r),s.attachments=r.length,{packet:s,buffers:r}}function ph(t,r){if(!t)return t;if(em(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]=ph(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]=ph(t[s],r));return i}return t}function EM(t,r){return t.data=gh(t.data,r),delete t.attachments,t}function gh(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]=gh(t[i],r);else if(typeof t=="object")for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(t[i]=gh(t[i],r));return t}const SM=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],TM=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 AM{constructor(r){this.replacer=r}encode(r){return(r.type===Ce.EVENT||r.type===Ce.ACK)&&Qo(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=_M(r),s=this.encodeAsString(i.packet),u=i.buffers;return u.unshift(s),u}}function v1(t){return Object.prototype.toString.call(t)==="[object Object]"}class tm extends dt{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 xM(i),i.attachments===0&&super.emitReserved("decoded",i)):super.emitReserved("decoded",i)}else if(em(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(tm.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 v1(i);case Ce.DISCONNECT:return i===void 0;case Ce.CONNECT_ERROR:return typeof i=="string"||v1(i);case Ce.EVENT:case Ce.BINARY_EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&SM.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 xM{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=EM(this.reconPack,this.buffers);return this.finishedReconstruction(),i}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const OM=Object.freeze(Object.defineProperty({__proto__:null,Decoder:tm,Encoder:AM,get PacketType(){return Ce},protocol:TM},Symbol.toStringTag,{value:"Module"}));function In(t,r,i){return t.on(r,i),function(){t.off(r,i)}}const RM=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class N_ extends dt{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=[In(r,"open",this.onopen.bind(this)),In(r,"packet",this.onpacket.bind(this)),In(r,"error",this.onerror.bind(this)),In(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(RM.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 b=this.ids++,E=i.pop();this._registerAckCallback(b,E),d.id=b}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 yh extends dt{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,xu(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||OM;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 mM(this.uri,this.opts);const i=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const u=In(i,"open",function(){s.onopen(),r&&r()}),c=h=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",h),r?r(h):this.maybeReconnectOnOpen()},d=In(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(In(r,"ping",this.onping.bind(this)),In(r,"data",this.ondata.bind(this)),In(r,"error",this.onerror.bind(this)),In(r,"close",this.onclose.bind(this)),In(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){Au(()=>{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 N_(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 Xs={};function Ko(t,r){typeof t=="object"&&(r=t,t=void 0),r=r||{};const i=pM(t,r.path||"/socket.io"),s=i.source,u=i.id,c=i.path,d=Xs[u]&&c in Xs[u].nsps,h=r.forceNew||r["force new connection"]||r.multiplex===!1||d;let m;return h?m=new yh(s,r):(Xs[u]||(Xs[u]=new yh(s,r)),m=Xs[u]),i.query&&!r.query&&(r.query=i.queryKey),m.socket(i.path,r)}Object.assign(Ko,{Manager:yh,Socket:N_,io:Ko,connect:Ko});const wM=[Te.ActionTypes.MESSAGE_TO_GUEST,Te.ActionTypes.EVENT_TO_GUEST,Te.ActionTypes.TYPING_ON,Te.ActionTypes.TYPING_OFF,Te.ActionTypes.RESTART_CHAT_REQUEST,...RO,...Sx,"@@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===Gh){s?.disconnect(),t(NO());const d=`/chat?${du.stringify(u.querystrings)}`;s=Ko(`/${u.clientName}${d}`),s.on("action",t),s.on("connect",()=>t(MO())),s.on("disconnect",()=>t(DO())),s.on("reconnect",()=>t(LO())),s.on("set-translations",(h,m)=>{t(A8({language:h,messages:b8(h,m)}))}),s.on("set-settings",h=>{t(R8(h))}),s.on("enable-conversation-rating",h=>t(Rx(h))),s.on("speech-transcription",h=>t(Ax(h))),s.on("restore-client-state",h=>{t(CO(h.sessionId)),t(Cx(h.messages))}),s.on("expand-window",({devices:h,initial:m=!1})=>{t({type:fv,devices:h,initial:m})}),s.on("restart-chat",()=>{t(vu(u.clientName,u.querystrings))}),s.on("login-success",h=>{t(vO({loginToken:h.loginToken}))})}else if(u.type==="start-screen/requestLogin")s?.emit("login-requested",u.payload);else if(u.type===yu)s?.emit("start-chat",u.payload);else if(u.type===bu)s?.emit("terminate-session",u.payload);else if(u.type===Ex)s?.emit("get-started",JSON.stringify(u));else if(u.type===Nh)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===hv){const{connection:{sessionId:d}}=r();window.location.href=`/transcript-pdf/${d}`}else wM.indexOf(u.type)===-1&&u.meta===void 0&&s&&s.emit("action",JSON.stringify(u));return c}},M_=t_(),NM={...M8(M_),intl:d_},bh=iO({middleware:t=>t().concat(CM),reducer:C8,preloadedState:NM});bh.subscribe(c8(()=>{const t=bh.getState();D8(M_,{connection:t.connection,startScreen:t.startScreen})},1e3));const MM=document.getElementById("root"),DM=X2.createRoot(MM);DM.render(y.jsx(YS,{store:bh,children:y.jsx(l8,{})}));
|
|
124
|
-
//# sourceMappingURL=index-
|
|
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.restart-chat":"Riavviare la chat","conversation-rating.overlay.action.cancel":"Annulla","start-screen.intro":"","start-screen.start-chat":"Avviare la chat","start-screen.waiting-for-login":"In attesa di login ...","header.close-chat":"Minimizzare la chat","header.menu.title":"Menu","header.menu.restart-chat":"Riavviare la chat","header.menu.expand-chat-window":"Espandere la finestra","header.menu.download-transcript":"Scaricare la trascrizione","header.menu.send-transcript":"Inviare la trascrizione","header.menu.export-transcript":"Esportare la trascrizione","header.menu.rate-conversation":"Valutare la conversazione","source-infos.close":"Chiudere","source-infos.open-source":"Fonte aperta","source-infos.error.title":"Errore","source-infos.error.info":"Ops! Qualcosa è andato storto. Riprovare o contattare l'assistenza se il problema persiste.","source-infos.highlight-loading.title":"Il contenuto rilevante è evidenziato...","source-infos.highlight-loading.description":"Un momento - la fonte è in fase di analisi","commands.show-more.action":"Di più","commands.show-more.tooltip":"Mostra più comandi","commands.show-less.action":"Meno","commands.show-less.tooltip":"Mostra meno comandi"},y8=["de","en","fr","it"],d_={locale:"de",messages:f_},b8=(t,r)=>{if(y8.includes(t)){const i=v8(t),s=h8(r);return{...i,...s}}return r},v8=t=>{switch(t.toString()){case"en":return m8;case"fr":return p8;case"it":return g8;default:return f_}},_8=(t=E8,r)=>{switch(r.type){case kh:return Object.assign({},t,{connectionState:Ia.CONNECTING});case qh:return Object.assign({},t,{connectionState:Ia.CONNECTED});case Fh:return Object.assign({},t,{connectionState:Ia.DISCONNECTED});case Vh:return Object.assign({},t,{connectionState:Ia.RECONNECTED});case Ph:return Object.assign({},t,{sessionId:r.sessionId});case bu:return Object.assign({},t,{sessionId:r.payload.sessionId,userId:r.payload.userId});case vu:return Object.assign({},t,{sessionId:void 0});default:return t}},E8={connectionState:Ia.DISCONNECTED,sessionId:void 0,userId:void 0},S8=(t=h1,r)=>{switch(r.type){case Mv:return h1;case bu:return Ua({type:"webclient.chat.started"}),t;case vu: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 d1(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 wh:{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 Rh: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 dv:return Ua(r),t;case hv:return Ua(r),{...t,conversationRating:{...t.conversationRating,opener:void 0}};case Nh:{const i=new Te.TextMessage(r.transcription,new Te.GuestUser),s=Object.assign({},i,{_id:Jo()});return d1(t,s)}case Te.ActionTypes.TRANSCRIPT_ITEM_GUEST_REACTION:{const i=t.messages.map(s=>s._id===r.payload.actionId?Object.assign({},s,r.payload.reaction?{reaction:{type:r.payload.reaction,category:r.payload.category,comment:r.payload.comment}}:{reaction:void 0}):s);return Object.assign({},t,{messages:i})}case Mh:{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 Lv:{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 Bv:{const i={...t.conversationRating,opener:void 0};return Object.assign({},t,{conversationRating:i})}case Lh:return{...t,sourceInfos:{type:"loading",chunkId:r.payload.chunkId}};case Dh:{const{highlighted:i}=r.payload;return t.sourceInfos?.type==="loaded"&&i?{...t,sourceInfos:{...t.sourceInfos,highlighted:!0}}:{...t,sourceInfos:{type:"loading-error"}}}case fv:{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 Bh:return{...t,sourceInfos:void 0};case Dv:return{...t,showTranscriptMailOverlay:!t.showTranscriptMailOverlay,conversationRating:{...t.conversationRating,opener:void 0}};default:return t}},d1=(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=>{T8()?window.top?.postMessage(t,"*"):t.type==="webclient.change.url"&&window.open(t.url)},T8=()=>typeof window<"u"&&window.self!==window.top,h1={messages:[],quickReplies:[],isBotTyping:!1,showTranscriptMailOverlay:!1,conversationRating:{enabled:!1}},h_=zh({name:"intl",initialState:d_,reducers:{updateIntl:(t,r)=>{t.locale=r.payload.language,t.messages=r.payload.messages}}}),{updateIntl:A8}=h_.actions,x8=h_.reducer,O8={version:void 0,requiresUserAuthentication:!1,enableStartScreen:void 0,enableStandaloneView:!1,enableTranscriptExportEmail:!1,enableTranscriptExportPdf:!1,enableGeneralConditions:!1,enableSpeechSupport:!1,commands:[],menuItems:[]},m_=zh({name:"settings",initialState:O8,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:R8}=m_.actions,w8=m_.reducer,C8=vv({settings:w8,chat:S8,startScreen:AO,connection:_8,intl:x8}),N8="bubble-chat",p_="state-last-saved-at",g_="state",M8=t=>{try{if(!B8())return;const r=m1(t,p_);if(L8(r))return;{const i=m1(t,g_);return i===null?void 0:JSON.parse(i)}}catch(r){console.error(r);return}},D8=(t,r)=>{try{const i=JSON.stringify(r);p1(t,g_,i);const s=new Date().toISOString();p1(t,p_,s)}catch(i){console.error(i)}},L8=t=>{if(t===null)return!1;const r=new Date(t);return r.setHours(r.getHours()+12),new Date>r},B8=()=>typeof localStorage<"u",m1=(t,r)=>{const i=y_(t,r);return localStorage.getItem(i)},p1=(t,r,i)=>{const s=y_(t,r);return localStorage.setItem(s,i)},y_=(t,r)=>`${N8}-${t}-${r}`,tr=Object.create(null);tr.open="0";tr.close="1";tr.ping="2";tr.pong="3";tr.message="4";tr.upgrade="5";tr.noop="6";const Zo=Object.create(null);Object.keys(tr).forEach(t=>{Zo[tr[t]]=t});const fh={type:"error",data:"parser error"},b_=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",v_=typeof ArrayBuffer=="function",__=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,Wh=({type:t,data:r},i,s)=>b_&&r instanceof Blob?i?s(r):g1(r,s):v_&&(r instanceof ArrayBuffer||__(r))?i?s(r):g1(new Blob([r]),s):s(tr[t]+(r||"")),g1=(t,r)=>{const i=new FileReader;return i.onload=function(){const s=i.result.split(",")[1];r("b"+(s||""))},i.readAsDataURL(t)};function y1(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let zd;function U8(t,r){if(b_&&t.data instanceof Blob)return t.data.arrayBuffer().then(y1).then(r);if(v_&&(t.data instanceof ArrayBuffer||__(t.data)))return r(y1(t.data));Wh(t,!1,i=>{zd||(zd=new TextEncoder),r(zd.encode(i))})}const b1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ks=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<b1.length;t++)Ks[b1.charCodeAt(t)]=t;const j8=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),b=new Uint8Array(p);for(s=0;s<i;s+=4)c=Ks[t.charCodeAt(s)],d=Ks[t.charCodeAt(s+1)],h=Ks[t.charCodeAt(s+2)],m=Ks[t.charCodeAt(s+3)],b[u++]=c<<2|d>>4,b[u++]=(d&15)<<4|h>>2,b[u++]=(h&3)<<6|m&63;return p},H8=typeof ArrayBuffer=="function",Jh=(t,r)=>{if(typeof t!="string")return{type:"message",data:E_(t,r)};const i=t.charAt(0);return i==="b"?{type:"message",data:I8(t.substring(1),r)}:Zo[i]?t.length>1?{type:Zo[i],data:t.substring(1)}:{type:Zo[i]}:fh},I8=(t,r)=>{if(H8){const i=j8(t);return E_(i,r)}else return{base64:!0,data:t}},E_=(t,r)=>{switch(r){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},S_="",z8=(t,r)=>{const i=t.length,s=new Array(i);let u=0;t.forEach((c,d)=>{Wh(c,!1,h=>{s[d]=h,++u===i&&r(s.join(S_))})})},G8=(t,r)=>{const i=t.split(S_),s=[];for(let u=0;u<i.length;u++){const c=Jh(i[u],r);if(s.push(c),c.type==="error")break}return s};function k8(){return new TransformStream({transform(t,r){U8(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 Gd;function qo(t){return t.reduce((r,i)=>r+i.length,0)}function Fo(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 q8(t,r){Gd||(Gd=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(qo(i)<1)break;const m=Fo(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(qo(i)<2)break;const m=Fo(i,2);u=new DataView(m.buffer,m.byteOffset,m.length).getUint16(0),s=3}else if(s===2){if(qo(i)<8)break;const m=Fo(i,8),p=new DataView(m.buffer,m.byteOffset,m.length),b=p.getUint32(0);if(b>Math.pow(2,21)-1){h.enqueue(fh);break}u=b*Math.pow(2,32)+p.getUint32(4),s=3}else{if(qo(i)<u)break;const m=Fo(i,u);h.enqueue(Jh(c?m:Gd.decode(m),r)),s=0}if(u===0||u>t){h.enqueue(fh);break}}}})}const T_=4;function dt(t){if(t)return F8(t)}function F8(t){for(var r in dt.prototype)t[r]=dt.prototype[r];return t}dt.prototype.on=dt.prototype.addEventListener=function(t,r){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(r),this};dt.prototype.once=function(t,r){function i(){this.off(t,i),r.apply(this,arguments)}return i.fn=r,this.on(t,i),this};dt.prototype.off=dt.prototype.removeListener=dt.prototype.removeAllListeners=dt.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};dt.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};dt.prototype.emitReserved=dt.prototype.emit;dt.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};dt.prototype.hasListeners=function(t){return!!this.listeners(t).length};const Tu=typeof Promise=="function"&&typeof Promise.resolve=="function"?r=>Promise.resolve().then(r):(r,i)=>i(r,0),Sn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),V8="arraybuffer";function A_(t,...r){return r.reduce((i,s)=>(t.hasOwnProperty(s)&&(i[s]=t[s]),i),{})}const P8=Sn.setTimeout,Y8=Sn.clearTimeout;function Au(t,r){r.useNativeTimers?(t.setTimeoutFn=P8.bind(Sn),t.clearTimeoutFn=Y8.bind(Sn)):(t.setTimeoutFn=Sn.setTimeout.bind(Sn),t.clearTimeoutFn=Sn.clearTimeout.bind(Sn))}const X8=1.33;function Z8(t){return typeof t=="string"?Q8(t):Math.ceil((t.byteLength||t.size)*X8)}function Q8(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 x_(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function K8(t){let r="";for(let i in t)t.hasOwnProperty(i)&&(r.length&&(r+="&"),r+=encodeURIComponent(i)+"="+encodeURIComponent(t[i]));return r}function $8(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 W8 extends Error{constructor(r,i,s){super(r),this.description=i,this.context=s,this.type="TransportError"}}class em extends dt{constructor(r){super(),this.writable=!1,Au(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 W8(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=Jh(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=K8(r);return i.length?"?"+i:""}}class J8 extends em{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)};G8(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,z8(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]=x_()),!this.supportsBinary&&!i.sid&&(i.b64=1),this.createUri(r,i)}}let O_=!1;try{O_=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const eM=O_;function tM(){}class nM extends J8{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 Jn extends dt{constructor(r,i,s){super(),this.createRequest=r,Au(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=A_(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=Jn.requestsCount++,Jn.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=tM,r)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Jn.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()}}Jn.requestsCount=0;Jn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",v1);else if(typeof addEventListener=="function"){const t="onpagehide"in Sn?"pagehide":"unload";addEventListener(t,v1,!1)}}function v1(){for(let t in Jn.requests)Jn.requests.hasOwnProperty(t)&&Jn.requests[t].abort()}const rM=(function(){const t=R_({xdomain:!1});return t&&t.responseType!==null})();class aM extends nM{constructor(r){super(r);const i=r&&r.forceBase64;this.supportsBinary=rM&&!i}request(r={}){return Object.assign(r,{xd:this.xd},this.opts),new Jn(R_,this.uri(),r)}}function R_(t){const r=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!r||eM))return new XMLHttpRequest}catch{}if(!r)try{return new Sn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const w_=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class iM extends em{get name(){return"websocket"}doOpen(){const r=this.uri(),i=this.opts.protocols,s=w_?{}:A_(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;Wh(s,this.supportsBinary,c=>{try{this.doWrite(s,c)}catch{}u&&Tu(()=>{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]=x_()),this.supportsBinary||(i.b64=1),this.createUri(r,i)}}const kd=Sn.WebSocket||Sn.MozWebSocket;class sM extends iM{createSocket(r,i,s){return w_?new kd(r,i,s):i?new kd(r,i):new kd(r)}doWrite(r,i){this.ws.send(i)}}class lM extends em{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=q8(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=r.readable.pipeThrough(i).getReader(),u=k8();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&&Tu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var r;(r=this._transport)===null||r===void 0||r.close()}}const oM={websocket:sM,webtransport:lM,polling:aM},uM=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,cM=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function dh(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=uM.exec(t||""),c={},d=14;for(;d--;)c[cM[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=fM(c,c.path),c.queryKey=dM(c,c.query),c}function fM(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 dM(t,r){const i={};return r.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,u,c){u&&(i[u]=c)}),i}const hh=typeof addEventListener=="function"&&typeof removeEventListener=="function",Qo=[];hh&&addEventListener("offline",()=>{Qo.forEach(t=>t())},!1);class la extends dt{constructor(r,i){if(super(),this.binaryType=V8,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=dh(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=dh(i.host).host);Au(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=$8(this.opts.query)),hh&&(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"})},Qo.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(r){const i=Object.assign({},this.opts.query);i.EIO=T_,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+=Z8(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,Tu(()=>{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(),hh&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=Qo.indexOf(this._offlineEventListener);s!==-1&&Qo.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",r,i),this.writeBuffer=[],this._prevBufferLen=0}}}la.protocol=T_;class hM 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",_=>{if(!s)if(_.type==="pong"&&_.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",i),!i)return;la.priorWebsocketSuccess=i.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(b(),this.setTransport(i),i.send([{type:"upgrade"}]),this.emitReserved("upgrade",i),i=null,this.upgrading=!1,this.flush())})}else{const x=new Error("probe error");x.transport=i.name,this.emitReserved("upgradeError",x)}}))};function c(){s||(s=!0,b(),i.close(),i=null)}const d=_=>{const x=new Error("probe error: "+_);x.transport=i.name,c(),this.emitReserved("upgradeError",x)};function h(){d("transport closed")}function m(){d("socket closed")}function p(_){i&&_.name!==i.name&&c()}const b=()=>{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 mM=class extends hM{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=>oM[u]).filter(u=>!!u)),super(r,s)}};function pM(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=dh(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 gM=typeof ArrayBuffer=="function",yM=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,C_=Object.prototype.toString,bM=typeof Blob=="function"||typeof Blob<"u"&&C_.call(Blob)==="[object BlobConstructor]",vM=typeof File=="function"||typeof File<"u"&&C_.call(File)==="[object FileConstructor]";function tm(t){return gM&&(t instanceof ArrayBuffer||yM(t))||bM&&t instanceof Blob||vM&&t instanceof File}function Ko(t,r){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let i=0,s=t.length;i<s;i++)if(Ko(t[i]))return!0;return!1}if(tm(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return Ko(t.toJSON(),!0);for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&Ko(t[i]))return!0;return!1}function _M(t){const r=[],i=t.data,s=t;return s.data=mh(i,r),s.attachments=r.length,{packet:s,buffers:r}}function mh(t,r){if(!t)return t;if(tm(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]=mh(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]=mh(t[s],r));return i}return t}function EM(t,r){return t.data=ph(t.data,r),delete t.attachments,t}function ph(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]=ph(t[i],r);else if(typeof t=="object")for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(t[i]=ph(t[i],r));return t}const SM=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],TM=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 AM{constructor(r){this.replacer=r}encode(r){return(r.type===Ce.EVENT||r.type===Ce.ACK)&&Ko(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=_M(r),s=this.encodeAsString(i.packet),u=i.buffers;return u.unshift(s),u}}function _1(t){return Object.prototype.toString.call(t)==="[object Object]"}class nm extends dt{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 xM(i),i.attachments===0&&super.emitReserved("decoded",i)):super.emitReserved("decoded",i)}else if(tm(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(nm.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 _1(i);case Ce.DISCONNECT:return i===void 0;case Ce.CONNECT_ERROR:return typeof i=="string"||_1(i);case Ce.EVENT:case Ce.BINARY_EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&SM.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 xM{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=EM(this.reconPack,this.buffers);return this.finishedReconstruction(),i}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const OM=Object.freeze(Object.defineProperty({__proto__:null,Decoder:nm,Encoder:AM,get PacketType(){return Ce},protocol:TM},Symbol.toStringTag,{value:"Module"}));function In(t,r,i){return t.on(r,i),function(){t.off(r,i)}}const RM=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class N_ extends dt{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=[In(r,"open",this.onopen.bind(this)),In(r,"packet",this.onpacket.bind(this)),In(r,"error",this.onerror.bind(this)),In(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(RM.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 b=this.ids++,_=i.pop();this._registerAckCallback(b,_),d.id=b}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 gh extends dt{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,Au(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||OM;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 mM(this.uri,this.opts);const i=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const u=In(i,"open",function(){s.onopen(),r&&r()}),c=h=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",h),r?r(h):this.maybeReconnectOnOpen()},d=In(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(In(r,"ping",this.onping.bind(this)),In(r,"data",this.ondata.bind(this)),In(r,"error",this.onerror.bind(this)),In(r,"close",this.onclose.bind(this)),In(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){Tu(()=>{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 N_(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 Xs={};function $o(t,r){typeof t=="object"&&(r=t,t=void 0),r=r||{};const i=pM(t,r.path||"/socket.io"),s=i.source,u=i.id,c=i.path,d=Xs[u]&&c in Xs[u].nsps,h=r.forceNew||r["force new connection"]||r.multiplex===!1||d;let m;return h?m=new gh(s,r):(Xs[u]||(Xs[u]=new gh(s,r)),m=Xs[u]),i.query&&!r.query&&(r.query=i.queryKey),m.socket(i.path,r)}Object.assign($o,{Manager:gh,Socket:N_,io:$o,connect:$o});const wM=[Te.ActionTypes.MESSAGE_TO_GUEST,Te.ActionTypes.EVENT_TO_GUEST,Te.ActionTypes.TYPING_ON,Te.ActionTypes.TYPING_OFF,Te.ActionTypes.RESTART_CHAT_REQUEST,...wO,...Sx,"@@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===Gh){s?.disconnect(),t(MO());const d=`/chat?${hu.stringify(u.querystrings)}`;s=$o(`/${u.clientName}${d}`),s.on("action",t),s.on("connect",()=>t(DO())),s.on("disconnect",()=>t(LO())),s.on("reconnect",()=>t(BO())),s.on("set-translations",(h,m)=>{t(A8({language:h,messages:b8(h,m)}))}),s.on("set-settings",h=>{t(R8(h))}),s.on("enable-conversation-rating",h=>t(Rx(h))),s.on("speech-transcription",h=>t(Ax(h))),s.on("restore-client-state",h=>{t(NO(h.sessionId)),t(Cx(h.messages))}),s.on("expand-window",({devices:h,initial:m=!1})=>{t({type:dv,devices:h,initial:m})}),s.on("restart-chat",()=>{t(al())}),s.on("login-success",h=>{t(_O({loginToken:h.loginToken}))})}else if(u.type==="start-screen/requestLogin")s?.emit("login-requested",u.payload);else if(u.type===bu)s?.emit("start-chat",u.payload);else if(u.type===vu)s?.emit("terminate-session",u.payload);else if(u.type===Ex)s?.emit("get-started",JSON.stringify(u));else if(u.type===Ch)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===mv){const{connection:{sessionId:d}}=r();window.location.href=`/transcript-pdf/${d}`}else wM.indexOf(u.type)===-1&&u.meta===void 0&&s&&s.emit("action",JSON.stringify(u));return c}},M_=Uh(),NM={...M8(M_),intl:d_},yh=sO({middleware:t=>t().concat(CM),reducer:C8,preloadedState:NM});yh.subscribe(c8(()=>{const t=yh.getState();D8(M_,{connection:t.connection,startScreen:t.startScreen})},1e3));const MM=document.getElementById("root"),DM=X2.createRoot(MM);DM.render(y.jsx(YS,{store:yh,children:y.jsx(l8,{})}));
|
|
124
|
+
//# sourceMappingURL=index-Cb4rsY_2.js.map
|